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
timestamp[ns, tz=UTC]
date_merged
timestamp[ns, tz=UTC]
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
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/JIT/Regression/JitBlue/Runtime_54647/Runtime_54647.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.Intrinsics; namespace Runtime_54647 { struct Vector64x2 { Vector64<int> _fld1; Vector64<int> _fld2; } class Program { static int Main(string[] args) { var val1 = new Vector64x2(); var val2 = new Vector64x2(); Copy(ref val1, val2); return 100; } [MethodImpl(MethodImplOptions.NoInlining)] static void Copy(ref Vector64x2 dst, Vector64x2 src) { dst = src; } } }
// 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.Intrinsics; namespace Runtime_54647 { struct Vector64x2 { Vector64<int> _fld1; Vector64<int> _fld2; } class Program { static int Main(string[] args) { var val1 = new Vector64x2(); var val2 = new Vector64x2(); Copy(ref val1, val2); return 100; } [MethodImpl(MethodImplOptions.NoInlining)] static void Copy(ref Vector64x2 dst, Vector64x2 src) { dst = src; } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/Insert.Vector64.Int32.1.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 Insert_Vector64_Int32_1() { var test = new InsertTest__Insert_Vector64_Int32_1(); 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 InsertTest__Insert_Vector64_Int32_1 { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(Int32[] inArray1, Int32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>(); 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<Int32, 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<Int32> _fld1; public Int32 _fld3; 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>>()); testStruct._fld3 = TestLibrary.Generator.GetInt32(); return testStruct; } public void RunStructFldScenario(InsertTest__Insert_Vector64_Int32_1 testClass) { var result = AdvSimd.Insert(_fld1, ElementIndex, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(InsertTest__Insert_Vector64_Int32_1 testClass) { fixed (Vector64<Int32>* pFld1 = &_fld1) fixed (Int32* pFld3 = &_fld3) { var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)pFld1), ElementIndex, *pFld3 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Int32>>() / sizeof(Int32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Int32>>() / sizeof(Int32); private static readonly byte ElementIndex = 1; private static Int32[] _data1 = new Int32[Op1ElementCount]; private static Vector64<Int32> _clsVar1; private static Int32 _clsVar3; private Vector64<Int32> _fld1; private Int32 _fld3; private DataTable _dataTable; static InsertTest__Insert_Vector64_Int32_1() { 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>>()); _clsVar3 = TestLibrary.Generator.GetInt32(); } public InsertTest__Insert_Vector64_Int32_1() { 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>>()); _fld3 = TestLibrary.Generator.GetInt32(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } _dataTable = new DataTable(_data1, new Int32[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.Insert( Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr), ElementIndex, _fld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _fld3, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), ElementIndex, _fld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _fld3, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); Int32 op3 = TestLibrary.Generator.GetInt32(); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.Insert), new Type[] { typeof(Vector64<Int32>), typeof(byte), typeof(Int32) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr), ElementIndex, op3 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); Int32 op3 = TestLibrary.Generator.GetInt32(); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.Insert), new Type[] { typeof(Vector64<Int32>), typeof(byte), typeof(Int32) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), ElementIndex, op3 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Insert( _clsVar1, ElementIndex, _clsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar3, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<Int32>* pClsVar1 = &_clsVar1) fixed (Int32* pClsVar3 = &_clsVar3) { var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)pClsVar1), ElementIndex, *pClsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar3, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr); var op3 = TestLibrary.Generator.GetInt32(); var result = AdvSimd.Insert(op1, ElementIndex, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op3, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)); var op3 = TestLibrary.Generator.GetInt32(); var result = AdvSimd.Insert(op1, ElementIndex, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new InsertTest__Insert_Vector64_Int32_1(); var result = AdvSimd.Insert(test._fld1, ElementIndex, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new InsertTest__Insert_Vector64_Int32_1(); fixed (Vector64<Int32>* pFld1 = &test._fld1) fixed (Int32* pFld3 = &test._fld3) { var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)pFld1), ElementIndex, *pFld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Insert(_fld1, ElementIndex, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld3, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<Int32>* pFld1 = &_fld1) fixed (Int32* pFld3 = &_fld3) { var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)pFld1), ElementIndex, *pFld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld3, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.Insert(test._fld1, ElementIndex, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)(&test._fld1)), ElementIndex, test._fld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _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> op1, Int32 op3, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Int32>>()); ValidateResult(inArray1, op3, outArray, method); } private void ValidateResult(void* op1, Int32 op3, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Int32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Int32>>()); ValidateResult(inArray1, op3, outArray, method); } private void ValidateResult(Int32[] firstOp, Int32 thirdOp, Int32[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.Insert(firstOp, ElementIndex, thirdOp, i) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.Insert)}<Int32>(Vector64<Int32>, 1, Int32): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: {thirdOp}"); 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 Insert_Vector64_Int32_1() { var test = new InsertTest__Insert_Vector64_Int32_1(); 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 InsertTest__Insert_Vector64_Int32_1 { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(Int32[] inArray1, Int32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int32>(); 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<Int32, 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<Int32> _fld1; public Int32 _fld3; 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>>()); testStruct._fld3 = TestLibrary.Generator.GetInt32(); return testStruct; } public void RunStructFldScenario(InsertTest__Insert_Vector64_Int32_1 testClass) { var result = AdvSimd.Insert(_fld1, ElementIndex, _fld3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(InsertTest__Insert_Vector64_Int32_1 testClass) { fixed (Vector64<Int32>* pFld1 = &_fld1) fixed (Int32* pFld3 = &_fld3) { var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)pFld1), ElementIndex, *pFld3 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld3, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Int32>>() / sizeof(Int32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<Int32>>() / sizeof(Int32); private static readonly byte ElementIndex = 1; private static Int32[] _data1 = new Int32[Op1ElementCount]; private static Vector64<Int32> _clsVar1; private static Int32 _clsVar3; private Vector64<Int32> _fld1; private Int32 _fld3; private DataTable _dataTable; static InsertTest__Insert_Vector64_Int32_1() { 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>>()); _clsVar3 = TestLibrary.Generator.GetInt32(); } public InsertTest__Insert_Vector64_Int32_1() { 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>>()); _fld3 = TestLibrary.Generator.GetInt32(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } _dataTable = new DataTable(_data1, new Int32[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.Insert( Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr), ElementIndex, _fld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _fld3, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), ElementIndex, _fld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _fld3, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); Int32 op3 = TestLibrary.Generator.GetInt32(); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.Insert), new Type[] { typeof(Vector64<Int32>), typeof(byte), typeof(Int32) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr), ElementIndex, op3 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); Int32 op3 = TestLibrary.Generator.GetInt32(); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.Insert), new Type[] { typeof(Vector64<Int32>), typeof(byte), typeof(Int32) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), ElementIndex, op3 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<Int32>)(result)); ValidateResult(_dataTable.inArray1Ptr, op3, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.Insert( _clsVar1, ElementIndex, _clsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar3, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<Int32>* pClsVar1 = &_clsVar1) fixed (Int32* pClsVar3 = &_clsVar3) { var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)pClsVar1), ElementIndex, *pClsVar3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar3, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr); var op3 = TestLibrary.Generator.GetInt32(); var result = AdvSimd.Insert(op1, ElementIndex, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op3, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)); var op3 = TestLibrary.Generator.GetInt32(); var result = AdvSimd.Insert(op1, ElementIndex, op3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new InsertTest__Insert_Vector64_Int32_1(); var result = AdvSimd.Insert(test._fld1, ElementIndex, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new InsertTest__Insert_Vector64_Int32_1(); fixed (Vector64<Int32>* pFld1 = &test._fld1) fixed (Int32* pFld3 = &test._fld3) { var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)pFld1), ElementIndex, *pFld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.Insert(_fld1, ElementIndex, _fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld3, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<Int32>* pFld1 = &_fld1) fixed (Int32* pFld3 = &_fld3) { var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)pFld1), ElementIndex, *pFld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld3, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.Insert(test._fld1, ElementIndex, test._fld3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.Insert( AdvSimd.LoadVector64((Int32*)(&test._fld1)), ElementIndex, test._fld3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld3, _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> op1, Int32 op3, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Int32>>()); ValidateResult(inArray1, op3, outArray, method); } private void ValidateResult(void* op1, Int32 op3, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] outArray = new Int32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<Int32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<Int32>>()); ValidateResult(inArray1, op3, outArray, method); } private void ValidateResult(Int32[] firstOp, Int32 thirdOp, Int32[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.Insert(firstOp, ElementIndex, thirdOp, i) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.Insert)}<Int32>(Vector64<Int32>, 1, Int32): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" thirdOp: {thirdOp}"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/installer/tests/Assets/TestProjects/StandaloneApp21/Program.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 StandaloneApp { public static class Program { public static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.WriteLine(string.Join(Environment.NewLine, args)); // A small operation involving NewtonSoft.Json to ensure the assembly is loaded properly var t = typeof(Newtonsoft.Json.JsonReader); } } }
// 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 StandaloneApp { public static class Program { public static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.WriteLine(string.Join(Environment.NewLine, args)); // A small operation involving NewtonSoft.Json to ensure the assembly is loaded properly var t = typeof(Newtonsoft.Json.JsonReader); } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/StructLayoutAttribute.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 { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)] public sealed class StructLayoutAttribute : Attribute { public StructLayoutAttribute(LayoutKind layoutKind) { Value = layoutKind; } public StructLayoutAttribute(short layoutKind) { Value = (LayoutKind)layoutKind; } public LayoutKind Value { get; } public int Pack; public int Size; public CharSet CharSet; } }
// 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 { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)] public sealed class StructLayoutAttribute : Attribute { public StructLayoutAttribute(LayoutKind layoutKind) { Value = layoutKind; } public StructLayoutAttribute(short layoutKind) { Value = (LayoutKind)layoutKind; } public LayoutKind Value { get; } public int Pack; public int Size; public CharSet CharSet; } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/Microsoft.Extensions.DependencyInjection.Specification.Tests/src/Fakes/ClassWithServiceProvider.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.Text; namespace Microsoft.Extensions.DependencyInjection.Specification.Fakes { public class ClassWithServiceProvider { public ClassWithServiceProvider(IServiceProvider serviceProvider) { ServiceProvider = serviceProvider; } public IServiceProvider ServiceProvider { get; } } }
// 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.Text; namespace Microsoft.Extensions.DependencyInjection.Specification.Fakes { public class ClassWithServiceProvider { public ClassWithServiceProvider(IServiceProvider serviceProvider) { ServiceProvider = serviceProvider; } public IServiceProvider ServiceProvider { get; } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/JIT/Directed/nullabletypes/isinstvaluetype.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma warning disable 0184 using System; using System.Runtime.InteropServices; internal class Program { private static void Eval(int testCase, bool b1, bool b2) { if (b1 != b2) throw new Exception(string.Format("case {0:000} failed: v1 {1} v2 {2}", testCase, b1, b2)); } private static void TestCase0001() { { EmptyStruct v = default(EmptyStruct); ValueType o = v; Eval(0001, o is EmptyStruct, true); Eval(0002, o is EmptyStruct[], false); Eval(0003, o is EmptyStruct?, true); Eval(0004, o is EmptyStruct?[], false); Eval(0005, o is NotEmptyStruct, false); Eval(0006, o is NotEmptyStruct[], false); Eval(0007, o is NotEmptyStruct?, false); Eval(0008, o is NotEmptyStruct?[], false); Eval(0009, o is EmptyStructGen<int>, false); Eval(0010, o is EmptyStructGen<int>[], false); Eval(0011, o is EmptyStructGen<int>?, false); Eval(0012, o is EmptyStructGen<int>?[], false); Eval(0013, o is NotEmptyStructGen<Guid>, false); Eval(0014, o is NotEmptyStructGen<Guid>[], false); Eval(0015, o is NotEmptyStructGen<Guid>?, false); Eval(0016, o is NotEmptyStructGen<Guid>?[], false); Eval(0017, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0018, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0019, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0020, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0021, o is NestedStruct, false); Eval(0022, o is NestedStruct[], false); Eval(0023, o is NestedStruct?, false); Eval(0024, o is NestedStruct?[], false); Eval(0025, o is NestedStructGen<Decimal>, false); Eval(0026, o is NestedStructGen<Decimal>[], false); Eval(0027, o is NestedStructGen<Decimal>?, false); Eval(0028, o is NestedStructGen<Decimal>?[], false); Eval(0029, o is ExplicitFieldOffsetStruct, false); Eval(0030, o is ExplicitFieldOffsetStruct[], false); Eval(0031, o is ExplicitFieldOffsetStruct?, false); Eval(0032, o is ExplicitFieldOffsetStruct?[], false); Eval(0041, o is MarshalAsStruct, false); Eval(0042, o is MarshalAsStruct[], false); Eval(0043, o is MarshalAsStruct?, false); Eval(0044, o is MarshalAsStruct?[], false); Eval(0045, o is ImplementOneInterface, false); Eval(0046, o is ImplementOneInterface[], false); Eval(0047, o is ImplementOneInterface?, false); Eval(0048, o is ImplementOneInterface?[], false); Eval(0049, o is ImplementTwoInterface, false); Eval(0050, o is ImplementTwoInterface[], false); Eval(0051, o is ImplementTwoInterface?, false); Eval(0052, o is ImplementTwoInterface?[], false); Eval(0053, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0054, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0055, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0056, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0057, o is ImplementTwoInterfaceGen<int>, false); Eval(0058, o is ImplementTwoInterfaceGen<int>[], false); Eval(0059, o is ImplementTwoInterfaceGen<int>?, false); Eval(0060, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0061, o is ImplementAllInterface<int>, false); Eval(0062, o is ImplementAllInterface<int>[], false); Eval(0063, o is ImplementAllInterface<int>?, false); Eval(0064, o is ImplementAllInterface<int>?[], false); Eval(0065, o is IntE, false); Eval(0066, o is IntE[], false); Eval(0067, o is IntE?, false); Eval(0068, o is IntE?[], false); Eval(0069, o is ByteE, false); Eval(0070, o is ByteE[], false); Eval(0071, o is ByteE?, false); Eval(0072, o is ByteE?[], false); Eval(0073, o is LongE, false); Eval(0074, o is LongE[], false); Eval(0075, o is LongE?, false); Eval(0076, o is LongE?[], false); Eval(0077, o is char, false); Eval(0078, o is char[], false); Eval(0079, o is char?, false); Eval(0080, o is char?[], false); Eval(0081, o is bool, false); Eval(0082, o is bool[], false); Eval(0083, o is bool?, false); Eval(0084, o is bool?[], false); Eval(0085, o is byte, false); Eval(0086, o is byte[], false); Eval(0087, o is byte?, false); Eval(0088, o is byte?[], false); Eval(0089, o is sbyte, false); Eval(0090, o is sbyte[], false); Eval(0091, o is sbyte?, false); Eval(0092, o is sbyte?[], false); Eval(0093, o is short, false); Eval(0094, o is short[], false); Eval(0095, o is short?, false); Eval(0096, o is short?[], false); Eval(0097, o is ushort, false); Eval(0098, o is ushort[], false); Eval(0099, o is ushort?, false); Eval(0100, o is ushort?[], false); Eval(0101, o is int, false); Eval(0102, o is int[], false); Eval(0103, o is int?, false); Eval(0104, o is int?[], false); Eval(0105, o is uint, false); Eval(0106, o is uint[], false); Eval(0107, o is uint?, false); Eval(0108, o is uint?[], false); Eval(0109, o is long, false); Eval(0110, o is long[], false); Eval(0111, o is long?, false); Eval(0112, o is long?[], false); Eval(0113, o is ulong, false); Eval(0114, o is ulong[], false); Eval(0115, o is ulong?, false); Eval(0116, o is ulong?[], false); Eval(0117, o is float, false); Eval(0118, o is float[], false); Eval(0119, o is float?, false); Eval(0120, o is float?[], false); Eval(0121, o is double, false); Eval(0122, o is double[], false); Eval(0123, o is double?, false); Eval(0124, o is double?[], false); Eval(0125, o is decimal, false); Eval(0126, o is decimal[], false); Eval(0127, o is decimal?, false); Eval(0128, o is decimal?[], false); Eval(0129, o is IntPtr, false); Eval(0130, o is IntPtr[], false); Eval(0131, o is IntPtr?, false); Eval(0132, o is IntPtr?[], false); Eval(0133, o is UIntPtr, false); Eval(0134, o is UIntPtr[], false); Eval(0135, o is UIntPtr?, false); Eval(0136, o is UIntPtr?[], false); Eval(0137, o is Guid, false); Eval(0138, o is Guid[], false); Eval(0139, o is Guid?, false); Eval(0140, o is Guid?[], false); Eval(0141, o is GCHandle, false); Eval(0142, o is GCHandle[], false); Eval(0143, o is GCHandle?, false); Eval(0144, o is GCHandle?[], false); Eval(0145, o is object, true); Eval(0146, o is object[], false); Eval(0147, o is string, false); Eval(0148, o is string[], false); Eval(0149, o is ValueType, true); Eval(0150, o is ValueType[], false); Eval(0151, o is Array, false); Eval(0152, o is Array[], false); Eval(0153, o is Enum, false); Eval(0154, o is Enum[], false); Eval(0155, o is Delegate, false); Eval(0156, o is Delegate[], false); Eval(0157, o is MulticastDelegate, false); Eval(0158, o is MulticastDelegate[], false); Eval(0159, o is IEmpty, false); Eval(0160, o is IEmpty[], false); Eval(0161, o is INotEmpty, false); Eval(0162, o is INotEmpty[], false); Eval(0163, o is IEmptyGen<int>, false); Eval(0164, o is IEmptyGen<int>[], false); Eval(0165, o is INotEmptyGen<int>, false); Eval(0166, o is INotEmptyGen<int>[], false); Eval(0167, o is SimpleDelegate, false); Eval(0168, o is SimpleDelegate[], false); Eval(0169, o is GenericDelegate<int>, false); Eval(0170, o is GenericDelegate<int>[], false); Eval(0171, o is EmptyClass, false); Eval(0172, o is EmptyClass[], false); Eval(0173, o is NotEmptyClass, false); Eval(0174, o is NotEmptyClass[], false); Eval(0175, o is EmptyClassGen<int>, false); Eval(0176, o is EmptyClassGen<int>[], false); Eval(0177, o is NotEmptyClassGen<Guid>, false); Eval(0178, o is NotEmptyClassGen<Guid>[], false); Eval(0179, o is NotEmptyClassConstrainedGen<object>, false); Eval(0180, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0181, o is NestedClass, false); Eval(0182, o is NestedClass[], false); Eval(0183, o is NestedClassGen<Decimal>, false); Eval(0184, o is NestedClassGen<Decimal>[], false); Eval(0185, o is ImplementOneInterfaceC, false); Eval(0186, o is ImplementOneInterfaceC[], false); Eval(0187, o is ImplementTwoInterfaceC, false); Eval(0188, o is ImplementTwoInterfaceC[], false); Eval(0189, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0190, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0191, o is ImplementTwoInterfaceGenC<int>, false); Eval(0192, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0193, o is ImplementAllInterfaceC<int>, false); Eval(0194, o is ImplementAllInterfaceC<int>[], false); Eval(0195, o is SealedClass, false); Eval(0196, o is SealedClass[], false); } { EmptyStruct? v = default(EmptyStruct); ValueType o = v; Eval(0197, o is EmptyStruct, true); Eval(0198, o is EmptyStruct[], false); Eval(0199, o is EmptyStruct?, true); Eval(0200, o is EmptyStruct?[], false); Eval(0201, o is NotEmptyStruct, false); Eval(0202, o is NotEmptyStruct[], false); Eval(0203, o is NotEmptyStruct?, false); Eval(0204, o is NotEmptyStruct?[], false); Eval(0205, o is EmptyStructGen<int>, false); Eval(0206, o is EmptyStructGen<int>[], false); Eval(0207, o is EmptyStructGen<int>?, false); Eval(0208, o is EmptyStructGen<int>?[], false); Eval(0209, o is NotEmptyStructGen<Guid>, false); Eval(0210, o is NotEmptyStructGen<Guid>[], false); Eval(0211, o is NotEmptyStructGen<Guid>?, false); Eval(0212, o is NotEmptyStructGen<Guid>?[], false); Eval(0213, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0214, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0215, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0216, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0217, o is NestedStruct, false); Eval(0218, o is NestedStruct[], false); Eval(0219, o is NestedStruct?, false); Eval(0220, o is NestedStruct?[], false); Eval(0221, o is NestedStructGen<Decimal>, false); Eval(0222, o is NestedStructGen<Decimal>[], false); Eval(0223, o is NestedStructGen<Decimal>?, false); Eval(0224, o is NestedStructGen<Decimal>?[], false); Eval(0225, o is ExplicitFieldOffsetStruct, false); Eval(0226, o is ExplicitFieldOffsetStruct[], false); Eval(0227, o is ExplicitFieldOffsetStruct?, false); Eval(0228, o is ExplicitFieldOffsetStruct?[], false); Eval(0237, o is MarshalAsStruct, false); Eval(0238, o is MarshalAsStruct[], false); Eval(0239, o is MarshalAsStruct?, false); Eval(0240, o is MarshalAsStruct?[], false); Eval(0241, o is ImplementOneInterface, false); Eval(0242, o is ImplementOneInterface[], false); Eval(0243, o is ImplementOneInterface?, false); Eval(0244, o is ImplementOneInterface?[], false); Eval(0245, o is ImplementTwoInterface, false); Eval(0246, o is ImplementTwoInterface[], false); Eval(0247, o is ImplementTwoInterface?, false); Eval(0248, o is ImplementTwoInterface?[], false); Eval(0249, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0250, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0251, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0252, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0253, o is ImplementTwoInterfaceGen<int>, false); Eval(0254, o is ImplementTwoInterfaceGen<int>[], false); Eval(0255, o is ImplementTwoInterfaceGen<int>?, false); Eval(0256, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0257, o is ImplementAllInterface<int>, false); Eval(0258, o is ImplementAllInterface<int>[], false); Eval(0259, o is ImplementAllInterface<int>?, false); Eval(0260, o is ImplementAllInterface<int>?[], false); Eval(0261, o is IntE, false); Eval(0262, o is IntE[], false); Eval(0263, o is IntE?, false); Eval(0264, o is IntE?[], false); Eval(0265, o is ByteE, false); Eval(0266, o is ByteE[], false); Eval(0267, o is ByteE?, false); Eval(0268, o is ByteE?[], false); Eval(0269, o is LongE, false); Eval(0270, o is LongE[], false); Eval(0271, o is LongE?, false); Eval(0272, o is LongE?[], false); Eval(0273, o is char, false); Eval(0274, o is char[], false); Eval(0275, o is char?, false); Eval(0276, o is char?[], false); Eval(0277, o is bool, false); Eval(0278, o is bool[], false); Eval(0279, o is bool?, false); Eval(0280, o is bool?[], false); Eval(0281, o is byte, false); Eval(0282, o is byte[], false); Eval(0283, o is byte?, false); Eval(0284, o is byte?[], false); Eval(0285, o is sbyte, false); Eval(0286, o is sbyte[], false); Eval(0287, o is sbyte?, false); Eval(0288, o is sbyte?[], false); Eval(0289, o is short, false); Eval(0290, o is short[], false); Eval(0291, o is short?, false); Eval(0292, o is short?[], false); Eval(0293, o is ushort, false); Eval(0294, o is ushort[], false); Eval(0295, o is ushort?, false); Eval(0296, o is ushort?[], false); Eval(0297, o is int, false); Eval(0298, o is int[], false); Eval(0299, o is int?, false); Eval(0300, o is int?[], false); Eval(0301, o is uint, false); Eval(0302, o is uint[], false); Eval(0303, o is uint?, false); Eval(0304, o is uint?[], false); Eval(0305, o is long, false); Eval(0306, o is long[], false); Eval(0307, o is long?, false); Eval(0308, o is long?[], false); Eval(0309, o is ulong, false); Eval(0310, o is ulong[], false); Eval(0311, o is ulong?, false); Eval(0312, o is ulong?[], false); Eval(0313, o is float, false); Eval(0314, o is float[], false); Eval(0315, o is float?, false); Eval(0316, o is float?[], false); Eval(0317, o is double, false); Eval(0318, o is double[], false); Eval(0319, o is double?, false); Eval(0320, o is double?[], false); Eval(0321, o is decimal, false); Eval(0322, o is decimal[], false); Eval(0323, o is decimal?, false); Eval(0324, o is decimal?[], false); Eval(0325, o is IntPtr, false); Eval(0326, o is IntPtr[], false); Eval(0327, o is IntPtr?, false); Eval(0328, o is IntPtr?[], false); Eval(0329, o is UIntPtr, false); Eval(0330, o is UIntPtr[], false); Eval(0331, o is UIntPtr?, false); Eval(0332, o is UIntPtr?[], false); Eval(0333, o is Guid, false); Eval(0334, o is Guid[], false); Eval(0335, o is Guid?, false); Eval(0336, o is Guid?[], false); Eval(0337, o is GCHandle, false); Eval(0338, o is GCHandle[], false); Eval(0339, o is GCHandle?, false); Eval(0340, o is GCHandle?[], false); Eval(0341, o is object, true); Eval(0342, o is object[], false); Eval(0343, o is string, false); Eval(0344, o is string[], false); Eval(0345, o is ValueType, true); Eval(0346, o is ValueType[], false); Eval(0347, o is Array, false); Eval(0348, o is Array[], false); Eval(0349, o is Enum, false); Eval(0350, o is Enum[], false); Eval(0351, o is Delegate, false); Eval(0352, o is Delegate[], false); Eval(0353, o is MulticastDelegate, false); Eval(0354, o is MulticastDelegate[], false); Eval(0355, o is IEmpty, false); Eval(0356, o is IEmpty[], false); Eval(0357, o is INotEmpty, false); Eval(0358, o is INotEmpty[], false); Eval(0359, o is IEmptyGen<int>, false); Eval(0360, o is IEmptyGen<int>[], false); Eval(0361, o is INotEmptyGen<int>, false); Eval(0362, o is INotEmptyGen<int>[], false); Eval(0363, o is SimpleDelegate, false); Eval(0364, o is SimpleDelegate[], false); Eval(0365, o is GenericDelegate<int>, false); Eval(0366, o is GenericDelegate<int>[], false); Eval(0367, o is EmptyClass, false); Eval(0368, o is EmptyClass[], false); Eval(0369, o is NotEmptyClass, false); Eval(0370, o is NotEmptyClass[], false); Eval(0371, o is EmptyClassGen<int>, false); Eval(0372, o is EmptyClassGen<int>[], false); Eval(0373, o is NotEmptyClassGen<Guid>, false); Eval(0374, o is NotEmptyClassGen<Guid>[], false); Eval(0375, o is NotEmptyClassConstrainedGen<object>, false); Eval(0376, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0377, o is NestedClass, false); Eval(0378, o is NestedClass[], false); Eval(0379, o is NestedClassGen<Decimal>, false); Eval(0380, o is NestedClassGen<Decimal>[], false); Eval(0381, o is ImplementOneInterfaceC, false); Eval(0382, o is ImplementOneInterfaceC[], false); Eval(0383, o is ImplementTwoInterfaceC, false); Eval(0384, o is ImplementTwoInterfaceC[], false); Eval(0385, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0386, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0387, o is ImplementTwoInterfaceGenC<int>, false); Eval(0388, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0389, o is ImplementAllInterfaceC<int>, false); Eval(0390, o is ImplementAllInterfaceC<int>[], false); Eval(0391, o is SealedClass, false); Eval(0392, o is SealedClass[], false); } { EmptyStruct? v = default(EmptyStruct?); ValueType o = v; Eval(0393, o is EmptyStruct, false); Eval(0394, o is EmptyStruct[], false); Eval(0395, o is EmptyStruct?, false); Eval(0396, o is EmptyStruct?[], false); Eval(0397, o is NotEmptyStruct, false); Eval(0398, o is NotEmptyStruct[], false); Eval(0399, o is NotEmptyStruct?, false); Eval(0400, o is NotEmptyStruct?[], false); Eval(0401, o is EmptyStructGen<int>, false); Eval(0402, o is EmptyStructGen<int>[], false); Eval(0403, o is EmptyStructGen<int>?, false); Eval(0404, o is EmptyStructGen<int>?[], false); Eval(0405, o is NotEmptyStructGen<Guid>, false); Eval(0406, o is NotEmptyStructGen<Guid>[], false); Eval(0407, o is NotEmptyStructGen<Guid>?, false); Eval(0408, o is NotEmptyStructGen<Guid>?[], false); Eval(0409, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0410, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0411, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0412, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0413, o is NestedStruct, false); Eval(0414, o is NestedStruct[], false); Eval(0415, o is NestedStruct?, false); Eval(0416, o is NestedStruct?[], false); Eval(0417, o is NestedStructGen<Decimal>, false); Eval(0418, o is NestedStructGen<Decimal>[], false); Eval(0419, o is NestedStructGen<Decimal>?, false); Eval(0420, o is NestedStructGen<Decimal>?[], false); Eval(0421, o is ExplicitFieldOffsetStruct, false); Eval(0422, o is ExplicitFieldOffsetStruct[], false); Eval(0423, o is ExplicitFieldOffsetStruct?, false); Eval(0424, o is ExplicitFieldOffsetStruct?[], false); Eval(0433, o is MarshalAsStruct, false); Eval(0434, o is MarshalAsStruct[], false); Eval(0435, o is MarshalAsStruct?, false); Eval(0436, o is MarshalAsStruct?[], false); Eval(0437, o is ImplementOneInterface, false); Eval(0438, o is ImplementOneInterface[], false); Eval(0439, o is ImplementOneInterface?, false); Eval(0440, o is ImplementOneInterface?[], false); Eval(0441, o is ImplementTwoInterface, false); Eval(0442, o is ImplementTwoInterface[], false); Eval(0443, o is ImplementTwoInterface?, false); Eval(0444, o is ImplementTwoInterface?[], false); Eval(0445, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0446, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0447, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0448, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0449, o is ImplementTwoInterfaceGen<int>, false); Eval(0450, o is ImplementTwoInterfaceGen<int>[], false); Eval(0451, o is ImplementTwoInterfaceGen<int>?, false); Eval(0452, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0453, o is ImplementAllInterface<int>, false); Eval(0454, o is ImplementAllInterface<int>[], false); Eval(0455, o is ImplementAllInterface<int>?, false); Eval(0456, o is ImplementAllInterface<int>?[], false); Eval(0457, o is IntE, false); Eval(0458, o is IntE[], false); Eval(0459, o is IntE?, false); Eval(0460, o is IntE?[], false); Eval(0461, o is ByteE, false); Eval(0462, o is ByteE[], false); Eval(0463, o is ByteE?, false); Eval(0464, o is ByteE?[], false); Eval(0465, o is LongE, false); Eval(0466, o is LongE[], false); Eval(0467, o is LongE?, false); Eval(0468, o is LongE?[], false); Eval(0469, o is char, false); Eval(0470, o is char[], false); Eval(0471, o is char?, false); Eval(0472, o is char?[], false); Eval(0473, o is bool, false); Eval(0474, o is bool[], false); Eval(0475, o is bool?, false); Eval(0476, o is bool?[], false); Eval(0477, o is byte, false); Eval(0478, o is byte[], false); Eval(0479, o is byte?, false); Eval(0480, o is byte?[], false); Eval(0481, o is sbyte, false); Eval(0482, o is sbyte[], false); Eval(0483, o is sbyte?, false); Eval(0484, o is sbyte?[], false); Eval(0485, o is short, false); Eval(0486, o is short[], false); Eval(0487, o is short?, false); Eval(0488, o is short?[], false); Eval(0489, o is ushort, false); Eval(0490, o is ushort[], false); Eval(0491, o is ushort?, false); Eval(0492, o is ushort?[], false); Eval(0493, o is int, false); Eval(0494, o is int[], false); Eval(0495, o is int?, false); Eval(0496, o is int?[], false); Eval(0497, o is uint, false); Eval(0498, o is uint[], false); Eval(0499, o is uint?, false); Eval(0500, o is uint?[], false); Eval(0501, o is long, false); Eval(0502, o is long[], false); Eval(0503, o is long?, false); Eval(0504, o is long?[], false); Eval(0505, o is ulong, false); Eval(0506, o is ulong[], false); Eval(0507, o is ulong?, false); Eval(0508, o is ulong?[], false); Eval(0509, o is float, false); Eval(0510, o is float[], false); Eval(0511, o is float?, false); Eval(0512, o is float?[], false); Eval(0513, o is double, false); Eval(0514, o is double[], false); Eval(0515, o is double?, false); Eval(0516, o is double?[], false); Eval(0517, o is decimal, false); Eval(0518, o is decimal[], false); Eval(0519, o is decimal?, false); Eval(0520, o is decimal?[], false); Eval(0521, o is IntPtr, false); Eval(0522, o is IntPtr[], false); Eval(0523, o is IntPtr?, false); Eval(0524, o is IntPtr?[], false); Eval(0525, o is UIntPtr, false); Eval(0526, o is UIntPtr[], false); Eval(0527, o is UIntPtr?, false); Eval(0528, o is UIntPtr?[], false); Eval(0529, o is Guid, false); Eval(0530, o is Guid[], false); Eval(0531, o is Guid?, false); Eval(0532, o is Guid?[], false); Eval(0533, o is GCHandle, false); Eval(0534, o is GCHandle[], false); Eval(0535, o is GCHandle?, false); Eval(0536, o is GCHandle?[], false); Eval(0537, o is object, false); Eval(0538, o is object[], false); Eval(0539, o is string, false); Eval(0540, o is string[], false); Eval(0541, o is ValueType, false); Eval(0542, o is ValueType[], false); Eval(0543, o is Array, false); Eval(0544, o is Array[], false); Eval(0545, o is Enum, false); Eval(0546, o is Enum[], false); Eval(0547, o is Delegate, false); Eval(0548, o is Delegate[], false); Eval(0549, o is MulticastDelegate, false); Eval(0550, o is MulticastDelegate[], false); Eval(0551, o is IEmpty, false); Eval(0552, o is IEmpty[], false); Eval(0553, o is INotEmpty, false); Eval(0554, o is INotEmpty[], false); Eval(0555, o is IEmptyGen<int>, false); Eval(0556, o is IEmptyGen<int>[], false); Eval(0557, o is INotEmptyGen<int>, false); Eval(0558, o is INotEmptyGen<int>[], false); Eval(0559, o is SimpleDelegate, false); Eval(0560, o is SimpleDelegate[], false); Eval(0561, o is GenericDelegate<int>, false); Eval(0562, o is GenericDelegate<int>[], false); Eval(0563, o is EmptyClass, false); Eval(0564, o is EmptyClass[], false); Eval(0565, o is NotEmptyClass, false); Eval(0566, o is NotEmptyClass[], false); Eval(0567, o is EmptyClassGen<int>, false); Eval(0568, o is EmptyClassGen<int>[], false); Eval(0569, o is NotEmptyClassGen<Guid>, false); Eval(0570, o is NotEmptyClassGen<Guid>[], false); Eval(0571, o is NotEmptyClassConstrainedGen<object>, false); Eval(0572, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0573, o is NestedClass, false); Eval(0574, o is NestedClass[], false); Eval(0575, o is NestedClassGen<Decimal>, false); Eval(0576, o is NestedClassGen<Decimal>[], false); Eval(0577, o is ImplementOneInterfaceC, false); Eval(0578, o is ImplementOneInterfaceC[], false); Eval(0579, o is ImplementTwoInterfaceC, false); Eval(0580, o is ImplementTwoInterfaceC[], false); Eval(0581, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0582, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0583, o is ImplementTwoInterfaceGenC<int>, false); Eval(0584, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0585, o is ImplementAllInterfaceC<int>, false); Eval(0586, o is ImplementAllInterfaceC<int>[], false); Eval(0587, o is SealedClass, false); Eval(0588, o is SealedClass[], false); } } // end of test case 0001 private static void TestCase0002() { { NotEmptyStruct v = default(NotEmptyStruct); ValueType o = v; Eval(0589, o is EmptyStruct, false); Eval(0590, o is EmptyStruct[], false); Eval(0591, o is EmptyStruct?, false); Eval(0592, o is EmptyStruct?[], false); Eval(0593, o is NotEmptyStruct, true); Eval(0594, o is NotEmptyStruct[], false); Eval(0595, o is NotEmptyStruct?, true); Eval(0596, o is NotEmptyStruct?[], false); Eval(0597, o is EmptyStructGen<int>, false); Eval(0598, o is EmptyStructGen<int>[], false); Eval(0599, o is EmptyStructGen<int>?, false); Eval(0600, o is EmptyStructGen<int>?[], false); Eval(0601, o is NotEmptyStructGen<Guid>, false); Eval(0602, o is NotEmptyStructGen<Guid>[], false); Eval(0603, o is NotEmptyStructGen<Guid>?, false); Eval(0604, o is NotEmptyStructGen<Guid>?[], false); Eval(0605, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0606, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0607, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0608, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0609, o is NestedStruct, false); Eval(0610, o is NestedStruct[], false); Eval(0611, o is NestedStruct?, false); Eval(0612, o is NestedStruct?[], false); Eval(0613, o is NestedStructGen<Decimal>, false); Eval(0614, o is NestedStructGen<Decimal>[], false); Eval(0615, o is NestedStructGen<Decimal>?, false); Eval(0616, o is NestedStructGen<Decimal>?[], false); Eval(0617, o is ExplicitFieldOffsetStruct, false); Eval(0618, o is ExplicitFieldOffsetStruct[], false); Eval(0619, o is ExplicitFieldOffsetStruct?, false); Eval(0620, o is ExplicitFieldOffsetStruct?[], false); Eval(0629, o is MarshalAsStruct, false); Eval(0630, o is MarshalAsStruct[], false); Eval(0631, o is MarshalAsStruct?, false); Eval(0632, o is MarshalAsStruct?[], false); Eval(0633, o is ImplementOneInterface, false); Eval(0634, o is ImplementOneInterface[], false); Eval(0635, o is ImplementOneInterface?, false); Eval(0636, o is ImplementOneInterface?[], false); Eval(0637, o is ImplementTwoInterface, false); Eval(0638, o is ImplementTwoInterface[], false); Eval(0639, o is ImplementTwoInterface?, false); Eval(0640, o is ImplementTwoInterface?[], false); Eval(0641, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0642, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0643, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0644, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0645, o is ImplementTwoInterfaceGen<int>, false); Eval(0646, o is ImplementTwoInterfaceGen<int>[], false); Eval(0647, o is ImplementTwoInterfaceGen<int>?, false); Eval(0648, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0649, o is ImplementAllInterface<int>, false); Eval(0650, o is ImplementAllInterface<int>[], false); Eval(0651, o is ImplementAllInterface<int>?, false); Eval(0652, o is ImplementAllInterface<int>?[], false); Eval(0653, o is IntE, false); Eval(0654, o is IntE[], false); Eval(0655, o is IntE?, false); Eval(0656, o is IntE?[], false); Eval(0657, o is ByteE, false); Eval(0658, o is ByteE[], false); Eval(0659, o is ByteE?, false); Eval(0660, o is ByteE?[], false); Eval(0661, o is LongE, false); Eval(0662, o is LongE[], false); Eval(0663, o is LongE?, false); Eval(0664, o is LongE?[], false); Eval(0665, o is char, false); Eval(0666, o is char[], false); Eval(0667, o is char?, false); Eval(0668, o is char?[], false); Eval(0669, o is bool, false); Eval(0670, o is bool[], false); Eval(0671, o is bool?, false); Eval(0672, o is bool?[], false); Eval(0673, o is byte, false); Eval(0674, o is byte[], false); Eval(0675, o is byte?, false); Eval(0676, o is byte?[], false); Eval(0677, o is sbyte, false); Eval(0678, o is sbyte[], false); Eval(0679, o is sbyte?, false); Eval(0680, o is sbyte?[], false); Eval(0681, o is short, false); Eval(0682, o is short[], false); Eval(0683, o is short?, false); Eval(0684, o is short?[], false); Eval(0685, o is ushort, false); Eval(0686, o is ushort[], false); Eval(0687, o is ushort?, false); Eval(0688, o is ushort?[], false); Eval(0689, o is int, false); Eval(0690, o is int[], false); Eval(0691, o is int?, false); Eval(0692, o is int?[], false); Eval(0693, o is uint, false); Eval(0694, o is uint[], false); Eval(0695, o is uint?, false); Eval(0696, o is uint?[], false); Eval(0697, o is long, false); Eval(0698, o is long[], false); Eval(0699, o is long?, false); Eval(0700, o is long?[], false); Eval(0701, o is ulong, false); Eval(0702, o is ulong[], false); Eval(0703, o is ulong?, false); Eval(0704, o is ulong?[], false); Eval(0705, o is float, false); Eval(0706, o is float[], false); Eval(0707, o is float?, false); Eval(0708, o is float?[], false); Eval(0709, o is double, false); Eval(0710, o is double[], false); Eval(0711, o is double?, false); Eval(0712, o is double?[], false); Eval(0713, o is decimal, false); Eval(0714, o is decimal[], false); Eval(0715, o is decimal?, false); Eval(0716, o is decimal?[], false); Eval(0717, o is IntPtr, false); Eval(0718, o is IntPtr[], false); Eval(0719, o is IntPtr?, false); Eval(0720, o is IntPtr?[], false); Eval(0721, o is UIntPtr, false); Eval(0722, o is UIntPtr[], false); Eval(0723, o is UIntPtr?, false); Eval(0724, o is UIntPtr?[], false); Eval(0725, o is Guid, false); Eval(0726, o is Guid[], false); Eval(0727, o is Guid?, false); Eval(0728, o is Guid?[], false); Eval(0729, o is GCHandle, false); Eval(0730, o is GCHandle[], false); Eval(0731, o is GCHandle?, false); Eval(0732, o is GCHandle?[], false); Eval(0733, o is object, true); Eval(0734, o is object[], false); Eval(0735, o is string, false); Eval(0736, o is string[], false); Eval(0737, o is ValueType, true); Eval(0738, o is ValueType[], false); Eval(0739, o is Array, false); Eval(0740, o is Array[], false); Eval(0741, o is Enum, false); Eval(0742, o is Enum[], false); Eval(0743, o is Delegate, false); Eval(0744, o is Delegate[], false); Eval(0745, o is MulticastDelegate, false); Eval(0746, o is MulticastDelegate[], false); Eval(0747, o is IEmpty, false); Eval(0748, o is IEmpty[], false); Eval(0749, o is INotEmpty, false); Eval(0750, o is INotEmpty[], false); Eval(0751, o is IEmptyGen<int>, false); Eval(0752, o is IEmptyGen<int>[], false); Eval(0753, o is INotEmptyGen<int>, false); Eval(0754, o is INotEmptyGen<int>[], false); Eval(0755, o is SimpleDelegate, false); Eval(0756, o is SimpleDelegate[], false); Eval(0757, o is GenericDelegate<int>, false); Eval(0758, o is GenericDelegate<int>[], false); Eval(0759, o is EmptyClass, false); Eval(0760, o is EmptyClass[], false); Eval(0761, o is NotEmptyClass, false); Eval(0762, o is NotEmptyClass[], false); Eval(0763, o is EmptyClassGen<int>, false); Eval(0764, o is EmptyClassGen<int>[], false); Eval(0765, o is NotEmptyClassGen<Guid>, false); Eval(0766, o is NotEmptyClassGen<Guid>[], false); Eval(0767, o is NotEmptyClassConstrainedGen<object>, false); Eval(0768, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0769, o is NestedClass, false); Eval(0770, o is NestedClass[], false); Eval(0771, o is NestedClassGen<Decimal>, false); Eval(0772, o is NestedClassGen<Decimal>[], false); Eval(0773, o is ImplementOneInterfaceC, false); Eval(0774, o is ImplementOneInterfaceC[], false); Eval(0775, o is ImplementTwoInterfaceC, false); Eval(0776, o is ImplementTwoInterfaceC[], false); Eval(0777, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0778, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0779, o is ImplementTwoInterfaceGenC<int>, false); Eval(0780, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0781, o is ImplementAllInterfaceC<int>, false); Eval(0782, o is ImplementAllInterfaceC<int>[], false); Eval(0783, o is SealedClass, false); Eval(0784, o is SealedClass[], false); } { NotEmptyStruct? v = default(NotEmptyStruct); ValueType o = v; Eval(0785, o is EmptyStruct, false); Eval(0786, o is EmptyStruct[], false); Eval(0787, o is EmptyStruct?, false); Eval(0788, o is EmptyStruct?[], false); Eval(0789, o is NotEmptyStruct, true); Eval(0790, o is NotEmptyStruct[], false); Eval(0791, o is NotEmptyStruct?, true); Eval(0792, o is NotEmptyStruct?[], false); Eval(0793, o is EmptyStructGen<int>, false); Eval(0794, o is EmptyStructGen<int>[], false); Eval(0795, o is EmptyStructGen<int>?, false); Eval(0796, o is EmptyStructGen<int>?[], false); Eval(0797, o is NotEmptyStructGen<Guid>, false); Eval(0798, o is NotEmptyStructGen<Guid>[], false); Eval(0799, o is NotEmptyStructGen<Guid>?, false); Eval(0800, o is NotEmptyStructGen<Guid>?[], false); Eval(0801, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0802, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0803, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0804, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0805, o is NestedStruct, false); Eval(0806, o is NestedStruct[], false); Eval(0807, o is NestedStruct?, false); Eval(0808, o is NestedStruct?[], false); Eval(0809, o is NestedStructGen<Decimal>, false); Eval(0810, o is NestedStructGen<Decimal>[], false); Eval(0811, o is NestedStructGen<Decimal>?, false); Eval(0812, o is NestedStructGen<Decimal>?[], false); Eval(0813, o is ExplicitFieldOffsetStruct, false); Eval(0814, o is ExplicitFieldOffsetStruct[], false); Eval(0815, o is ExplicitFieldOffsetStruct?, false); Eval(0816, o is ExplicitFieldOffsetStruct?[], false); Eval(0825, o is MarshalAsStruct, false); Eval(0826, o is MarshalAsStruct[], false); Eval(0827, o is MarshalAsStruct?, false); Eval(0828, o is MarshalAsStruct?[], false); Eval(0829, o is ImplementOneInterface, false); Eval(0830, o is ImplementOneInterface[], false); Eval(0831, o is ImplementOneInterface?, false); Eval(0832, o is ImplementOneInterface?[], false); Eval(0833, o is ImplementTwoInterface, false); Eval(0834, o is ImplementTwoInterface[], false); Eval(0835, o is ImplementTwoInterface?, false); Eval(0836, o is ImplementTwoInterface?[], false); Eval(0837, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0838, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0839, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0840, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0841, o is ImplementTwoInterfaceGen<int>, false); Eval(0842, o is ImplementTwoInterfaceGen<int>[], false); Eval(0843, o is ImplementTwoInterfaceGen<int>?, false); Eval(0844, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0845, o is ImplementAllInterface<int>, false); Eval(0846, o is ImplementAllInterface<int>[], false); Eval(0847, o is ImplementAllInterface<int>?, false); Eval(0848, o is ImplementAllInterface<int>?[], false); Eval(0849, o is IntE, false); Eval(0850, o is IntE[], false); Eval(0851, o is IntE?, false); Eval(0852, o is IntE?[], false); Eval(0853, o is ByteE, false); Eval(0854, o is ByteE[], false); Eval(0855, o is ByteE?, false); Eval(0856, o is ByteE?[], false); Eval(0857, o is LongE, false); Eval(0858, o is LongE[], false); Eval(0859, o is LongE?, false); Eval(0860, o is LongE?[], false); Eval(0861, o is char, false); Eval(0862, o is char[], false); Eval(0863, o is char?, false); Eval(0864, o is char?[], false); Eval(0865, o is bool, false); Eval(0866, o is bool[], false); Eval(0867, o is bool?, false); Eval(0868, o is bool?[], false); Eval(0869, o is byte, false); Eval(0870, o is byte[], false); Eval(0871, o is byte?, false); Eval(0872, o is byte?[], false); Eval(0873, o is sbyte, false); Eval(0874, o is sbyte[], false); Eval(0875, o is sbyte?, false); Eval(0876, o is sbyte?[], false); Eval(0877, o is short, false); Eval(0878, o is short[], false); Eval(0879, o is short?, false); Eval(0880, o is short?[], false); Eval(0881, o is ushort, false); Eval(0882, o is ushort[], false); Eval(0883, o is ushort?, false); Eval(0884, o is ushort?[], false); Eval(0885, o is int, false); Eval(0886, o is int[], false); Eval(0887, o is int?, false); Eval(0888, o is int?[], false); Eval(0889, o is uint, false); Eval(0890, o is uint[], false); Eval(0891, o is uint?, false); Eval(0892, o is uint?[], false); Eval(0893, o is long, false); Eval(0894, o is long[], false); Eval(0895, o is long?, false); Eval(0896, o is long?[], false); Eval(0897, o is ulong, false); Eval(0898, o is ulong[], false); Eval(0899, o is ulong?, false); Eval(0900, o is ulong?[], false); Eval(0901, o is float, false); Eval(0902, o is float[], false); Eval(0903, o is float?, false); Eval(0904, o is float?[], false); Eval(0905, o is double, false); Eval(0906, o is double[], false); Eval(0907, o is double?, false); Eval(0908, o is double?[], false); Eval(0909, o is decimal, false); Eval(0910, o is decimal[], false); Eval(0911, o is decimal?, false); Eval(0912, o is decimal?[], false); Eval(0913, o is IntPtr, false); Eval(0914, o is IntPtr[], false); Eval(0915, o is IntPtr?, false); Eval(0916, o is IntPtr?[], false); Eval(0917, o is UIntPtr, false); Eval(0918, o is UIntPtr[], false); Eval(0919, o is UIntPtr?, false); Eval(0920, o is UIntPtr?[], false); Eval(0921, o is Guid, false); Eval(0922, o is Guid[], false); Eval(0923, o is Guid?, false); Eval(0924, o is Guid?[], false); Eval(0925, o is GCHandle, false); Eval(0926, o is GCHandle[], false); Eval(0927, o is GCHandle?, false); Eval(0928, o is GCHandle?[], false); Eval(0929, o is object, true); Eval(0930, o is object[], false); Eval(0931, o is string, false); Eval(0932, o is string[], false); Eval(0933, o is ValueType, true); Eval(0934, o is ValueType[], false); Eval(0935, o is Array, false); Eval(0936, o is Array[], false); Eval(0937, o is Enum, false); Eval(0938, o is Enum[], false); Eval(0939, o is Delegate, false); Eval(0940, o is Delegate[], false); Eval(0941, o is MulticastDelegate, false); Eval(0942, o is MulticastDelegate[], false); Eval(0943, o is IEmpty, false); Eval(0944, o is IEmpty[], false); Eval(0945, o is INotEmpty, false); Eval(0946, o is INotEmpty[], false); Eval(0947, o is IEmptyGen<int>, false); Eval(0948, o is IEmptyGen<int>[], false); Eval(0949, o is INotEmptyGen<int>, false); Eval(0950, o is INotEmptyGen<int>[], false); Eval(0951, o is SimpleDelegate, false); Eval(0952, o is SimpleDelegate[], false); Eval(0953, o is GenericDelegate<int>, false); Eval(0954, o is GenericDelegate<int>[], false); Eval(0955, o is EmptyClass, false); Eval(0956, o is EmptyClass[], false); Eval(0957, o is NotEmptyClass, false); Eval(0958, o is NotEmptyClass[], false); Eval(0959, o is EmptyClassGen<int>, false); Eval(0960, o is EmptyClassGen<int>[], false); Eval(0961, o is NotEmptyClassGen<Guid>, false); Eval(0962, o is NotEmptyClassGen<Guid>[], false); Eval(0963, o is NotEmptyClassConstrainedGen<object>, false); Eval(0964, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0965, o is NestedClass, false); Eval(0966, o is NestedClass[], false); Eval(0967, o is NestedClassGen<Decimal>, false); Eval(0968, o is NestedClassGen<Decimal>[], false); Eval(0969, o is ImplementOneInterfaceC, false); Eval(0970, o is ImplementOneInterfaceC[], false); Eval(0971, o is ImplementTwoInterfaceC, false); Eval(0972, o is ImplementTwoInterfaceC[], false); Eval(0973, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0974, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0975, o is ImplementTwoInterfaceGenC<int>, false); Eval(0976, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0977, o is ImplementAllInterfaceC<int>, false); Eval(0978, o is ImplementAllInterfaceC<int>[], false); Eval(0979, o is SealedClass, false); Eval(0980, o is SealedClass[], false); } { NotEmptyStruct? v = default(NotEmptyStruct?); ValueType o = v; Eval(0981, o is EmptyStruct, false); Eval(0982, o is EmptyStruct[], false); Eval(0983, o is EmptyStruct?, false); Eval(0984, o is EmptyStruct?[], false); Eval(0985, o is NotEmptyStruct, false); Eval(0986, o is NotEmptyStruct[], false); Eval(0987, o is NotEmptyStruct?, false); Eval(0988, o is NotEmptyStruct?[], false); Eval(0989, o is EmptyStructGen<int>, false); Eval(0990, o is EmptyStructGen<int>[], false); Eval(0991, o is EmptyStructGen<int>?, false); Eval(0992, o is EmptyStructGen<int>?[], false); Eval(0993, o is NotEmptyStructGen<Guid>, false); Eval(0994, o is NotEmptyStructGen<Guid>[], false); Eval(0995, o is NotEmptyStructGen<Guid>?, false); Eval(0996, o is NotEmptyStructGen<Guid>?[], false); Eval(0997, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0998, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0999, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1000, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1001, o is NestedStruct, false); Eval(1002, o is NestedStruct[], false); Eval(1003, o is NestedStruct?, false); Eval(1004, o is NestedStruct?[], false); Eval(1005, o is NestedStructGen<Decimal>, false); Eval(1006, o is NestedStructGen<Decimal>[], false); Eval(1007, o is NestedStructGen<Decimal>?, false); Eval(1008, o is NestedStructGen<Decimal>?[], false); Eval(1009, o is ExplicitFieldOffsetStruct, false); Eval(1010, o is ExplicitFieldOffsetStruct[], false); Eval(1011, o is ExplicitFieldOffsetStruct?, false); Eval(1012, o is ExplicitFieldOffsetStruct?[], false); Eval(1021, o is MarshalAsStruct, false); Eval(1022, o is MarshalAsStruct[], false); Eval(1023, o is MarshalAsStruct?, false); Eval(1024, o is MarshalAsStruct?[], false); Eval(1025, o is ImplementOneInterface, false); Eval(1026, o is ImplementOneInterface[], false); Eval(1027, o is ImplementOneInterface?, false); Eval(1028, o is ImplementOneInterface?[], false); Eval(1029, o is ImplementTwoInterface, false); Eval(1030, o is ImplementTwoInterface[], false); Eval(1031, o is ImplementTwoInterface?, false); Eval(1032, o is ImplementTwoInterface?[], false); Eval(1033, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1034, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1035, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1036, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1037, o is ImplementTwoInterfaceGen<int>, false); Eval(1038, o is ImplementTwoInterfaceGen<int>[], false); Eval(1039, o is ImplementTwoInterfaceGen<int>?, false); Eval(1040, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1041, o is ImplementAllInterface<int>, false); Eval(1042, o is ImplementAllInterface<int>[], false); Eval(1043, o is ImplementAllInterface<int>?, false); Eval(1044, o is ImplementAllInterface<int>?[], false); Eval(1045, o is IntE, false); Eval(1046, o is IntE[], false); Eval(1047, o is IntE?, false); Eval(1048, o is IntE?[], false); Eval(1049, o is ByteE, false); Eval(1050, o is ByteE[], false); Eval(1051, o is ByteE?, false); Eval(1052, o is ByteE?[], false); Eval(1053, o is LongE, false); Eval(1054, o is LongE[], false); Eval(1055, o is LongE?, false); Eval(1056, o is LongE?[], false); Eval(1057, o is char, false); Eval(1058, o is char[], false); Eval(1059, o is char?, false); Eval(1060, o is char?[], false); Eval(1061, o is bool, false); Eval(1062, o is bool[], false); Eval(1063, o is bool?, false); Eval(1064, o is bool?[], false); Eval(1065, o is byte, false); Eval(1066, o is byte[], false); Eval(1067, o is byte?, false); Eval(1068, o is byte?[], false); Eval(1069, o is sbyte, false); Eval(1070, o is sbyte[], false); Eval(1071, o is sbyte?, false); Eval(1072, o is sbyte?[], false); Eval(1073, o is short, false); Eval(1074, o is short[], false); Eval(1075, o is short?, false); Eval(1076, o is short?[], false); Eval(1077, o is ushort, false); Eval(1078, o is ushort[], false); Eval(1079, o is ushort?, false); Eval(1080, o is ushort?[], false); Eval(1081, o is int, false); Eval(1082, o is int[], false); Eval(1083, o is int?, false); Eval(1084, o is int?[], false); Eval(1085, o is uint, false); Eval(1086, o is uint[], false); Eval(1087, o is uint?, false); Eval(1088, o is uint?[], false); Eval(1089, o is long, false); Eval(1090, o is long[], false); Eval(1091, o is long?, false); Eval(1092, o is long?[], false); Eval(1093, o is ulong, false); Eval(1094, o is ulong[], false); Eval(1095, o is ulong?, false); Eval(1096, o is ulong?[], false); Eval(1097, o is float, false); Eval(1098, o is float[], false); Eval(1099, o is float?, false); Eval(1100, o is float?[], false); Eval(1101, o is double, false); Eval(1102, o is double[], false); Eval(1103, o is double?, false); Eval(1104, o is double?[], false); Eval(1105, o is decimal, false); Eval(1106, o is decimal[], false); Eval(1107, o is decimal?, false); Eval(1108, o is decimal?[], false); Eval(1109, o is IntPtr, false); Eval(1110, o is IntPtr[], false); Eval(1111, o is IntPtr?, false); Eval(1112, o is IntPtr?[], false); Eval(1113, o is UIntPtr, false); Eval(1114, o is UIntPtr[], false); Eval(1115, o is UIntPtr?, false); Eval(1116, o is UIntPtr?[], false); Eval(1117, o is Guid, false); Eval(1118, o is Guid[], false); Eval(1119, o is Guid?, false); Eval(1120, o is Guid?[], false); Eval(1121, o is GCHandle, false); Eval(1122, o is GCHandle[], false); Eval(1123, o is GCHandle?, false); Eval(1124, o is GCHandle?[], false); Eval(1125, o is object, false); Eval(1126, o is object[], false); Eval(1127, o is string, false); Eval(1128, o is string[], false); Eval(1129, o is ValueType, false); Eval(1130, o is ValueType[], false); Eval(1131, o is Array, false); Eval(1132, o is Array[], false); Eval(1133, o is Enum, false); Eval(1134, o is Enum[], false); Eval(1135, o is Delegate, false); Eval(1136, o is Delegate[], false); Eval(1137, o is MulticastDelegate, false); Eval(1138, o is MulticastDelegate[], false); Eval(1139, o is IEmpty, false); Eval(1140, o is IEmpty[], false); Eval(1141, o is INotEmpty, false); Eval(1142, o is INotEmpty[], false); Eval(1143, o is IEmptyGen<int>, false); Eval(1144, o is IEmptyGen<int>[], false); Eval(1145, o is INotEmptyGen<int>, false); Eval(1146, o is INotEmptyGen<int>[], false); Eval(1147, o is SimpleDelegate, false); Eval(1148, o is SimpleDelegate[], false); Eval(1149, o is GenericDelegate<int>, false); Eval(1150, o is GenericDelegate<int>[], false); Eval(1151, o is EmptyClass, false); Eval(1152, o is EmptyClass[], false); Eval(1153, o is NotEmptyClass, false); Eval(1154, o is NotEmptyClass[], false); Eval(1155, o is EmptyClassGen<int>, false); Eval(1156, o is EmptyClassGen<int>[], false); Eval(1157, o is NotEmptyClassGen<Guid>, false); Eval(1158, o is NotEmptyClassGen<Guid>[], false); Eval(1159, o is NotEmptyClassConstrainedGen<object>, false); Eval(1160, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1161, o is NestedClass, false); Eval(1162, o is NestedClass[], false); Eval(1163, o is NestedClassGen<Decimal>, false); Eval(1164, o is NestedClassGen<Decimal>[], false); Eval(1165, o is ImplementOneInterfaceC, false); Eval(1166, o is ImplementOneInterfaceC[], false); Eval(1167, o is ImplementTwoInterfaceC, false); Eval(1168, o is ImplementTwoInterfaceC[], false); Eval(1169, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1170, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1171, o is ImplementTwoInterfaceGenC<int>, false); Eval(1172, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1173, o is ImplementAllInterfaceC<int>, false); Eval(1174, o is ImplementAllInterfaceC<int>[], false); Eval(1175, o is SealedClass, false); Eval(1176, o is SealedClass[], false); } } // end of test case 0002 private static void TestCase0003() { { EmptyStructGen<int> v = default(EmptyStructGen<int>); ValueType o = v; Eval(1177, o is EmptyStruct, false); Eval(1178, o is EmptyStruct[], false); Eval(1179, o is EmptyStruct?, false); Eval(1180, o is EmptyStruct?[], false); Eval(1181, o is NotEmptyStruct, false); Eval(1182, o is NotEmptyStruct[], false); Eval(1183, o is NotEmptyStruct?, false); Eval(1184, o is NotEmptyStruct?[], false); Eval(1185, o is EmptyStructGen<int>, true); Eval(1186, o is EmptyStructGen<int>[], false); Eval(1187, o is EmptyStructGen<int>?, true); Eval(1188, o is EmptyStructGen<int>?[], false); Eval(1189, o is NotEmptyStructGen<Guid>, false); Eval(1190, o is NotEmptyStructGen<Guid>[], false); Eval(1191, o is NotEmptyStructGen<Guid>?, false); Eval(1192, o is NotEmptyStructGen<Guid>?[], false); Eval(1193, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1194, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1195, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1196, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1197, o is NestedStruct, false); Eval(1198, o is NestedStruct[], false); Eval(1199, o is NestedStruct?, false); Eval(1200, o is NestedStruct?[], false); Eval(1201, o is NestedStructGen<Decimal>, false); Eval(1202, o is NestedStructGen<Decimal>[], false); Eval(1203, o is NestedStructGen<Decimal>?, false); Eval(1204, o is NestedStructGen<Decimal>?[], false); Eval(1205, o is ExplicitFieldOffsetStruct, false); Eval(1206, o is ExplicitFieldOffsetStruct[], false); Eval(1207, o is ExplicitFieldOffsetStruct?, false); Eval(1208, o is ExplicitFieldOffsetStruct?[], false); Eval(1217, o is MarshalAsStruct, false); Eval(1218, o is MarshalAsStruct[], false); Eval(1219, o is MarshalAsStruct?, false); Eval(1220, o is MarshalAsStruct?[], false); Eval(1221, o is ImplementOneInterface, false); Eval(1222, o is ImplementOneInterface[], false); Eval(1223, o is ImplementOneInterface?, false); Eval(1224, o is ImplementOneInterface?[], false); Eval(1225, o is ImplementTwoInterface, false); Eval(1226, o is ImplementTwoInterface[], false); Eval(1227, o is ImplementTwoInterface?, false); Eval(1228, o is ImplementTwoInterface?[], false); Eval(1229, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1230, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1231, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1232, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1233, o is ImplementTwoInterfaceGen<int>, false); Eval(1234, o is ImplementTwoInterfaceGen<int>[], false); Eval(1235, o is ImplementTwoInterfaceGen<int>?, false); Eval(1236, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1237, o is ImplementAllInterface<int>, false); Eval(1238, o is ImplementAllInterface<int>[], false); Eval(1239, o is ImplementAllInterface<int>?, false); Eval(1240, o is ImplementAllInterface<int>?[], false); Eval(1241, o is IntE, false); Eval(1242, o is IntE[], false); Eval(1243, o is IntE?, false); Eval(1244, o is IntE?[], false); Eval(1245, o is ByteE, false); Eval(1246, o is ByteE[], false); Eval(1247, o is ByteE?, false); Eval(1248, o is ByteE?[], false); Eval(1249, o is LongE, false); Eval(1250, o is LongE[], false); Eval(1251, o is LongE?, false); Eval(1252, o is LongE?[], false); Eval(1253, o is char, false); Eval(1254, o is char[], false); Eval(1255, o is char?, false); Eval(1256, o is char?[], false); Eval(1257, o is bool, false); Eval(1258, o is bool[], false); Eval(1259, o is bool?, false); Eval(1260, o is bool?[], false); Eval(1261, o is byte, false); Eval(1262, o is byte[], false); Eval(1263, o is byte?, false); Eval(1264, o is byte?[], false); Eval(1265, o is sbyte, false); Eval(1266, o is sbyte[], false); Eval(1267, o is sbyte?, false); Eval(1268, o is sbyte?[], false); Eval(1269, o is short, false); Eval(1270, o is short[], false); Eval(1271, o is short?, false); Eval(1272, o is short?[], false); Eval(1273, o is ushort, false); Eval(1274, o is ushort[], false); Eval(1275, o is ushort?, false); Eval(1276, o is ushort?[], false); Eval(1277, o is int, false); Eval(1278, o is int[], false); Eval(1279, o is int?, false); Eval(1280, o is int?[], false); Eval(1281, o is uint, false); Eval(1282, o is uint[], false); Eval(1283, o is uint?, false); Eval(1284, o is uint?[], false); Eval(1285, o is long, false); Eval(1286, o is long[], false); Eval(1287, o is long?, false); Eval(1288, o is long?[], false); Eval(1289, o is ulong, false); Eval(1290, o is ulong[], false); Eval(1291, o is ulong?, false); Eval(1292, o is ulong?[], false); Eval(1293, o is float, false); Eval(1294, o is float[], false); Eval(1295, o is float?, false); Eval(1296, o is float?[], false); Eval(1297, o is double, false); Eval(1298, o is double[], false); Eval(1299, o is double?, false); Eval(1300, o is double?[], false); Eval(1301, o is decimal, false); Eval(1302, o is decimal[], false); Eval(1303, o is decimal?, false); Eval(1304, o is decimal?[], false); Eval(1305, o is IntPtr, false); Eval(1306, o is IntPtr[], false); Eval(1307, o is IntPtr?, false); Eval(1308, o is IntPtr?[], false); Eval(1309, o is UIntPtr, false); Eval(1310, o is UIntPtr[], false); Eval(1311, o is UIntPtr?, false); Eval(1312, o is UIntPtr?[], false); Eval(1313, o is Guid, false); Eval(1314, o is Guid[], false); Eval(1315, o is Guid?, false); Eval(1316, o is Guid?[], false); Eval(1317, o is GCHandle, false); Eval(1318, o is GCHandle[], false); Eval(1319, o is GCHandle?, false); Eval(1320, o is GCHandle?[], false); Eval(1321, o is object, true); Eval(1322, o is object[], false); Eval(1323, o is string, false); Eval(1324, o is string[], false); Eval(1325, o is ValueType, true); Eval(1326, o is ValueType[], false); Eval(1327, o is Array, false); Eval(1328, o is Array[], false); Eval(1329, o is Enum, false); Eval(1330, o is Enum[], false); Eval(1331, o is Delegate, false); Eval(1332, o is Delegate[], false); Eval(1333, o is MulticastDelegate, false); Eval(1334, o is MulticastDelegate[], false); Eval(1335, o is IEmpty, false); Eval(1336, o is IEmpty[], false); Eval(1337, o is INotEmpty, false); Eval(1338, o is INotEmpty[], false); Eval(1339, o is IEmptyGen<int>, false); Eval(1340, o is IEmptyGen<int>[], false); Eval(1341, o is INotEmptyGen<int>, false); Eval(1342, o is INotEmptyGen<int>[], false); Eval(1343, o is SimpleDelegate, false); Eval(1344, o is SimpleDelegate[], false); Eval(1345, o is GenericDelegate<int>, false); Eval(1346, o is GenericDelegate<int>[], false); Eval(1347, o is EmptyClass, false); Eval(1348, o is EmptyClass[], false); Eval(1349, o is NotEmptyClass, false); Eval(1350, o is NotEmptyClass[], false); Eval(1351, o is EmptyClassGen<int>, false); Eval(1352, o is EmptyClassGen<int>[], false); Eval(1353, o is NotEmptyClassGen<Guid>, false); Eval(1354, o is NotEmptyClassGen<Guid>[], false); Eval(1355, o is NotEmptyClassConstrainedGen<object>, false); Eval(1356, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1357, o is NestedClass, false); Eval(1358, o is NestedClass[], false); Eval(1359, o is NestedClassGen<Decimal>, false); Eval(1360, o is NestedClassGen<Decimal>[], false); Eval(1361, o is ImplementOneInterfaceC, false); Eval(1362, o is ImplementOneInterfaceC[], false); Eval(1363, o is ImplementTwoInterfaceC, false); Eval(1364, o is ImplementTwoInterfaceC[], false); Eval(1365, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1366, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1367, o is ImplementTwoInterfaceGenC<int>, false); Eval(1368, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1369, o is ImplementAllInterfaceC<int>, false); Eval(1370, o is ImplementAllInterfaceC<int>[], false); Eval(1371, o is SealedClass, false); Eval(1372, o is SealedClass[], false); } { EmptyStructGen<int>? v = default(EmptyStructGen<int>); ValueType o = v; Eval(1373, o is EmptyStruct, false); Eval(1374, o is EmptyStruct[], false); Eval(1375, o is EmptyStruct?, false); Eval(1376, o is EmptyStruct?[], false); Eval(1377, o is NotEmptyStruct, false); Eval(1378, o is NotEmptyStruct[], false); Eval(1379, o is NotEmptyStruct?, false); Eval(1380, o is NotEmptyStruct?[], false); Eval(1381, o is EmptyStructGen<int>, true); Eval(1382, o is EmptyStructGen<int>[], false); Eval(1383, o is EmptyStructGen<int>?, true); Eval(1384, o is EmptyStructGen<int>?[], false); Eval(1385, o is NotEmptyStructGen<Guid>, false); Eval(1386, o is NotEmptyStructGen<Guid>[], false); Eval(1387, o is NotEmptyStructGen<Guid>?, false); Eval(1388, o is NotEmptyStructGen<Guid>?[], false); Eval(1389, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1390, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1391, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1392, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1393, o is NestedStruct, false); Eval(1394, o is NestedStruct[], false); Eval(1395, o is NestedStruct?, false); Eval(1396, o is NestedStruct?[], false); Eval(1397, o is NestedStructGen<Decimal>, false); Eval(1398, o is NestedStructGen<Decimal>[], false); Eval(1399, o is NestedStructGen<Decimal>?, false); Eval(1400, o is NestedStructGen<Decimal>?[], false); Eval(1401, o is ExplicitFieldOffsetStruct, false); Eval(1402, o is ExplicitFieldOffsetStruct[], false); Eval(1403, o is ExplicitFieldOffsetStruct?, false); Eval(1404, o is ExplicitFieldOffsetStruct?[], false); Eval(1413, o is MarshalAsStruct, false); Eval(1414, o is MarshalAsStruct[], false); Eval(1415, o is MarshalAsStruct?, false); Eval(1416, o is MarshalAsStruct?[], false); Eval(1417, o is ImplementOneInterface, false); Eval(1418, o is ImplementOneInterface[], false); Eval(1419, o is ImplementOneInterface?, false); Eval(1420, o is ImplementOneInterface?[], false); Eval(1421, o is ImplementTwoInterface, false); Eval(1422, o is ImplementTwoInterface[], false); Eval(1423, o is ImplementTwoInterface?, false); Eval(1424, o is ImplementTwoInterface?[], false); Eval(1425, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1426, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1427, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1428, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1429, o is ImplementTwoInterfaceGen<int>, false); Eval(1430, o is ImplementTwoInterfaceGen<int>[], false); Eval(1431, o is ImplementTwoInterfaceGen<int>?, false); Eval(1432, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1433, o is ImplementAllInterface<int>, false); Eval(1434, o is ImplementAllInterface<int>[], false); Eval(1435, o is ImplementAllInterface<int>?, false); Eval(1436, o is ImplementAllInterface<int>?[], false); Eval(1437, o is IntE, false); Eval(1438, o is IntE[], false); Eval(1439, o is IntE?, false); Eval(1440, o is IntE?[], false); Eval(1441, o is ByteE, false); Eval(1442, o is ByteE[], false); Eval(1443, o is ByteE?, false); Eval(1444, o is ByteE?[], false); Eval(1445, o is LongE, false); Eval(1446, o is LongE[], false); Eval(1447, o is LongE?, false); Eval(1448, o is LongE?[], false); Eval(1449, o is char, false); Eval(1450, o is char[], false); Eval(1451, o is char?, false); Eval(1452, o is char?[], false); Eval(1453, o is bool, false); Eval(1454, o is bool[], false); Eval(1455, o is bool?, false); Eval(1456, o is bool?[], false); Eval(1457, o is byte, false); Eval(1458, o is byte[], false); Eval(1459, o is byte?, false); Eval(1460, o is byte?[], false); Eval(1461, o is sbyte, false); Eval(1462, o is sbyte[], false); Eval(1463, o is sbyte?, false); Eval(1464, o is sbyte?[], false); Eval(1465, o is short, false); Eval(1466, o is short[], false); Eval(1467, o is short?, false); Eval(1468, o is short?[], false); Eval(1469, o is ushort, false); Eval(1470, o is ushort[], false); Eval(1471, o is ushort?, false); Eval(1472, o is ushort?[], false); Eval(1473, o is int, false); Eval(1474, o is int[], false); Eval(1475, o is int?, false); Eval(1476, o is int?[], false); Eval(1477, o is uint, false); Eval(1478, o is uint[], false); Eval(1479, o is uint?, false); Eval(1480, o is uint?[], false); Eval(1481, o is long, false); Eval(1482, o is long[], false); Eval(1483, o is long?, false); Eval(1484, o is long?[], false); Eval(1485, o is ulong, false); Eval(1486, o is ulong[], false); Eval(1487, o is ulong?, false); Eval(1488, o is ulong?[], false); Eval(1489, o is float, false); Eval(1490, o is float[], false); Eval(1491, o is float?, false); Eval(1492, o is float?[], false); Eval(1493, o is double, false); Eval(1494, o is double[], false); Eval(1495, o is double?, false); Eval(1496, o is double?[], false); Eval(1497, o is decimal, false); Eval(1498, o is decimal[], false); Eval(1499, o is decimal?, false); Eval(1500, o is decimal?[], false); Eval(1501, o is IntPtr, false); Eval(1502, o is IntPtr[], false); Eval(1503, o is IntPtr?, false); Eval(1504, o is IntPtr?[], false); Eval(1505, o is UIntPtr, false); Eval(1506, o is UIntPtr[], false); Eval(1507, o is UIntPtr?, false); Eval(1508, o is UIntPtr?[], false); Eval(1509, o is Guid, false); Eval(1510, o is Guid[], false); Eval(1511, o is Guid?, false); Eval(1512, o is Guid?[], false); Eval(1513, o is GCHandle, false); Eval(1514, o is GCHandle[], false); Eval(1515, o is GCHandle?, false); Eval(1516, o is GCHandle?[], false); Eval(1517, o is object, true); Eval(1518, o is object[], false); Eval(1519, o is string, false); Eval(1520, o is string[], false); Eval(1521, o is ValueType, true); Eval(1522, o is ValueType[], false); Eval(1523, o is Array, false); Eval(1524, o is Array[], false); Eval(1525, o is Enum, false); Eval(1526, o is Enum[], false); Eval(1527, o is Delegate, false); Eval(1528, o is Delegate[], false); Eval(1529, o is MulticastDelegate, false); Eval(1530, o is MulticastDelegate[], false); Eval(1531, o is IEmpty, false); Eval(1532, o is IEmpty[], false); Eval(1533, o is INotEmpty, false); Eval(1534, o is INotEmpty[], false); Eval(1535, o is IEmptyGen<int>, false); Eval(1536, o is IEmptyGen<int>[], false); Eval(1537, o is INotEmptyGen<int>, false); Eval(1538, o is INotEmptyGen<int>[], false); Eval(1539, o is SimpleDelegate, false); Eval(1540, o is SimpleDelegate[], false); Eval(1541, o is GenericDelegate<int>, false); Eval(1542, o is GenericDelegate<int>[], false); Eval(1543, o is EmptyClass, false); Eval(1544, o is EmptyClass[], false); Eval(1545, o is NotEmptyClass, false); Eval(1546, o is NotEmptyClass[], false); Eval(1547, o is EmptyClassGen<int>, false); Eval(1548, o is EmptyClassGen<int>[], false); Eval(1549, o is NotEmptyClassGen<Guid>, false); Eval(1550, o is NotEmptyClassGen<Guid>[], false); Eval(1551, o is NotEmptyClassConstrainedGen<object>, false); Eval(1552, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1553, o is NestedClass, false); Eval(1554, o is NestedClass[], false); Eval(1555, o is NestedClassGen<Decimal>, false); Eval(1556, o is NestedClassGen<Decimal>[], false); Eval(1557, o is ImplementOneInterfaceC, false); Eval(1558, o is ImplementOneInterfaceC[], false); Eval(1559, o is ImplementTwoInterfaceC, false); Eval(1560, o is ImplementTwoInterfaceC[], false); Eval(1561, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1562, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1563, o is ImplementTwoInterfaceGenC<int>, false); Eval(1564, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1565, o is ImplementAllInterfaceC<int>, false); Eval(1566, o is ImplementAllInterfaceC<int>[], false); Eval(1567, o is SealedClass, false); Eval(1568, o is SealedClass[], false); } { EmptyStructGen<int>? v = default(EmptyStructGen<int>?); ValueType o = v; Eval(1569, o is EmptyStruct, false); Eval(1570, o is EmptyStruct[], false); Eval(1571, o is EmptyStruct?, false); Eval(1572, o is EmptyStruct?[], false); Eval(1573, o is NotEmptyStruct, false); Eval(1574, o is NotEmptyStruct[], false); Eval(1575, o is NotEmptyStruct?, false); Eval(1576, o is NotEmptyStruct?[], false); Eval(1577, o is EmptyStructGen<int>, false); Eval(1578, o is EmptyStructGen<int>[], false); Eval(1579, o is EmptyStructGen<int>?, false); Eval(1580, o is EmptyStructGen<int>?[], false); Eval(1581, o is NotEmptyStructGen<Guid>, false); Eval(1582, o is NotEmptyStructGen<Guid>[], false); Eval(1583, o is NotEmptyStructGen<Guid>?, false); Eval(1584, o is NotEmptyStructGen<Guid>?[], false); Eval(1585, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1586, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1587, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1588, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1589, o is NestedStruct, false); Eval(1590, o is NestedStruct[], false); Eval(1591, o is NestedStruct?, false); Eval(1592, o is NestedStruct?[], false); Eval(1593, o is NestedStructGen<Decimal>, false); Eval(1594, o is NestedStructGen<Decimal>[], false); Eval(1595, o is NestedStructGen<Decimal>?, false); Eval(1596, o is NestedStructGen<Decimal>?[], false); Eval(1597, o is ExplicitFieldOffsetStruct, false); Eval(1598, o is ExplicitFieldOffsetStruct[], false); Eval(1599, o is ExplicitFieldOffsetStruct?, false); Eval(1600, o is ExplicitFieldOffsetStruct?[], false); Eval(1609, o is MarshalAsStruct, false); Eval(1610, o is MarshalAsStruct[], false); Eval(1611, o is MarshalAsStruct?, false); Eval(1612, o is MarshalAsStruct?[], false); Eval(1613, o is ImplementOneInterface, false); Eval(1614, o is ImplementOneInterface[], false); Eval(1615, o is ImplementOneInterface?, false); Eval(1616, o is ImplementOneInterface?[], false); Eval(1617, o is ImplementTwoInterface, false); Eval(1618, o is ImplementTwoInterface[], false); Eval(1619, o is ImplementTwoInterface?, false); Eval(1620, o is ImplementTwoInterface?[], false); Eval(1621, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1622, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1623, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1624, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1625, o is ImplementTwoInterfaceGen<int>, false); Eval(1626, o is ImplementTwoInterfaceGen<int>[], false); Eval(1627, o is ImplementTwoInterfaceGen<int>?, false); Eval(1628, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1629, o is ImplementAllInterface<int>, false); Eval(1630, o is ImplementAllInterface<int>[], false); Eval(1631, o is ImplementAllInterface<int>?, false); Eval(1632, o is ImplementAllInterface<int>?[], false); Eval(1633, o is IntE, false); Eval(1634, o is IntE[], false); Eval(1635, o is IntE?, false); Eval(1636, o is IntE?[], false); Eval(1637, o is ByteE, false); Eval(1638, o is ByteE[], false); Eval(1639, o is ByteE?, false); Eval(1640, o is ByteE?[], false); Eval(1641, o is LongE, false); Eval(1642, o is LongE[], false); Eval(1643, o is LongE?, false); Eval(1644, o is LongE?[], false); Eval(1645, o is char, false); Eval(1646, o is char[], false); Eval(1647, o is char?, false); Eval(1648, o is char?[], false); Eval(1649, o is bool, false); Eval(1650, o is bool[], false); Eval(1651, o is bool?, false); Eval(1652, o is bool?[], false); Eval(1653, o is byte, false); Eval(1654, o is byte[], false); Eval(1655, o is byte?, false); Eval(1656, o is byte?[], false); Eval(1657, o is sbyte, false); Eval(1658, o is sbyte[], false); Eval(1659, o is sbyte?, false); Eval(1660, o is sbyte?[], false); Eval(1661, o is short, false); Eval(1662, o is short[], false); Eval(1663, o is short?, false); Eval(1664, o is short?[], false); Eval(1665, o is ushort, false); Eval(1666, o is ushort[], false); Eval(1667, o is ushort?, false); Eval(1668, o is ushort?[], false); Eval(1669, o is int, false); Eval(1670, o is int[], false); Eval(1671, o is int?, false); Eval(1672, o is int?[], false); Eval(1673, o is uint, false); Eval(1674, o is uint[], false); Eval(1675, o is uint?, false); Eval(1676, o is uint?[], false); Eval(1677, o is long, false); Eval(1678, o is long[], false); Eval(1679, o is long?, false); Eval(1680, o is long?[], false); Eval(1681, o is ulong, false); Eval(1682, o is ulong[], false); Eval(1683, o is ulong?, false); Eval(1684, o is ulong?[], false); Eval(1685, o is float, false); Eval(1686, o is float[], false); Eval(1687, o is float?, false); Eval(1688, o is float?[], false); Eval(1689, o is double, false); Eval(1690, o is double[], false); Eval(1691, o is double?, false); Eval(1692, o is double?[], false); Eval(1693, o is decimal, false); Eval(1694, o is decimal[], false); Eval(1695, o is decimal?, false); Eval(1696, o is decimal?[], false); Eval(1697, o is IntPtr, false); Eval(1698, o is IntPtr[], false); Eval(1699, o is IntPtr?, false); Eval(1700, o is IntPtr?[], false); Eval(1701, o is UIntPtr, false); Eval(1702, o is UIntPtr[], false); Eval(1703, o is UIntPtr?, false); Eval(1704, o is UIntPtr?[], false); Eval(1705, o is Guid, false); Eval(1706, o is Guid[], false); Eval(1707, o is Guid?, false); Eval(1708, o is Guid?[], false); Eval(1709, o is GCHandle, false); Eval(1710, o is GCHandle[], false); Eval(1711, o is GCHandle?, false); Eval(1712, o is GCHandle?[], false); Eval(1713, o is object, false); Eval(1714, o is object[], false); Eval(1715, o is string, false); Eval(1716, o is string[], false); Eval(1717, o is ValueType, false); Eval(1718, o is ValueType[], false); Eval(1719, o is Array, false); Eval(1720, o is Array[], false); Eval(1721, o is Enum, false); Eval(1722, o is Enum[], false); Eval(1723, o is Delegate, false); Eval(1724, o is Delegate[], false); Eval(1725, o is MulticastDelegate, false); Eval(1726, o is MulticastDelegate[], false); Eval(1727, o is IEmpty, false); Eval(1728, o is IEmpty[], false); Eval(1729, o is INotEmpty, false); Eval(1730, o is INotEmpty[], false); Eval(1731, o is IEmptyGen<int>, false); Eval(1732, o is IEmptyGen<int>[], false); Eval(1733, o is INotEmptyGen<int>, false); Eval(1734, o is INotEmptyGen<int>[], false); Eval(1735, o is SimpleDelegate, false); Eval(1736, o is SimpleDelegate[], false); Eval(1737, o is GenericDelegate<int>, false); Eval(1738, o is GenericDelegate<int>[], false); Eval(1739, o is EmptyClass, false); Eval(1740, o is EmptyClass[], false); Eval(1741, o is NotEmptyClass, false); Eval(1742, o is NotEmptyClass[], false); Eval(1743, o is EmptyClassGen<int>, false); Eval(1744, o is EmptyClassGen<int>[], false); Eval(1745, o is NotEmptyClassGen<Guid>, false); Eval(1746, o is NotEmptyClassGen<Guid>[], false); Eval(1747, o is NotEmptyClassConstrainedGen<object>, false); Eval(1748, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1749, o is NestedClass, false); Eval(1750, o is NestedClass[], false); Eval(1751, o is NestedClassGen<Decimal>, false); Eval(1752, o is NestedClassGen<Decimal>[], false); Eval(1753, o is ImplementOneInterfaceC, false); Eval(1754, o is ImplementOneInterfaceC[], false); Eval(1755, o is ImplementTwoInterfaceC, false); Eval(1756, o is ImplementTwoInterfaceC[], false); Eval(1757, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1758, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1759, o is ImplementTwoInterfaceGenC<int>, false); Eval(1760, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1761, o is ImplementAllInterfaceC<int>, false); Eval(1762, o is ImplementAllInterfaceC<int>[], false); Eval(1763, o is SealedClass, false); Eval(1764, o is SealedClass[], false); } } // end of test case 0003 private static void TestCase0004() { { NotEmptyStructGen<Guid> v = default(NotEmptyStructGen<Guid>); ValueType o = v; Eval(1765, o is EmptyStruct, false); Eval(1766, o is EmptyStruct[], false); Eval(1767, o is EmptyStruct?, false); Eval(1768, o is EmptyStruct?[], false); Eval(1769, o is NotEmptyStruct, false); Eval(1770, o is NotEmptyStruct[], false); Eval(1771, o is NotEmptyStruct?, false); Eval(1772, o is NotEmptyStruct?[], false); Eval(1773, o is EmptyStructGen<int>, false); Eval(1774, o is EmptyStructGen<int>[], false); Eval(1775, o is EmptyStructGen<int>?, false); Eval(1776, o is EmptyStructGen<int>?[], false); Eval(1777, o is NotEmptyStructGen<Guid>, true); Eval(1778, o is NotEmptyStructGen<Guid>[], false); Eval(1779, o is NotEmptyStructGen<Guid>?, true); Eval(1780, o is NotEmptyStructGen<Guid>?[], false); Eval(1781, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1782, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1783, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1784, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1785, o is NestedStruct, false); Eval(1786, o is NestedStruct[], false); Eval(1787, o is NestedStruct?, false); Eval(1788, o is NestedStruct?[], false); Eval(1789, o is NestedStructGen<Decimal>, false); Eval(1790, o is NestedStructGen<Decimal>[], false); Eval(1791, o is NestedStructGen<Decimal>?, false); Eval(1792, o is NestedStructGen<Decimal>?[], false); Eval(1793, o is ExplicitFieldOffsetStruct, false); Eval(1794, o is ExplicitFieldOffsetStruct[], false); Eval(1795, o is ExplicitFieldOffsetStruct?, false); Eval(1796, o is ExplicitFieldOffsetStruct?[], false); Eval(1805, o is MarshalAsStruct, false); Eval(1806, o is MarshalAsStruct[], false); Eval(1807, o is MarshalAsStruct?, false); Eval(1808, o is MarshalAsStruct?[], false); Eval(1809, o is ImplementOneInterface, false); Eval(1810, o is ImplementOneInterface[], false); Eval(1811, o is ImplementOneInterface?, false); Eval(1812, o is ImplementOneInterface?[], false); Eval(1813, o is ImplementTwoInterface, false); Eval(1814, o is ImplementTwoInterface[], false); Eval(1815, o is ImplementTwoInterface?, false); Eval(1816, o is ImplementTwoInterface?[], false); Eval(1817, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1818, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1819, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1820, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1821, o is ImplementTwoInterfaceGen<int>, false); Eval(1822, o is ImplementTwoInterfaceGen<int>[], false); Eval(1823, o is ImplementTwoInterfaceGen<int>?, false); Eval(1824, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1825, o is ImplementAllInterface<int>, false); Eval(1826, o is ImplementAllInterface<int>[], false); Eval(1827, o is ImplementAllInterface<int>?, false); Eval(1828, o is ImplementAllInterface<int>?[], false); Eval(1829, o is IntE, false); Eval(1830, o is IntE[], false); Eval(1831, o is IntE?, false); Eval(1832, o is IntE?[], false); Eval(1833, o is ByteE, false); Eval(1834, o is ByteE[], false); Eval(1835, o is ByteE?, false); Eval(1836, o is ByteE?[], false); Eval(1837, o is LongE, false); Eval(1838, o is LongE[], false); Eval(1839, o is LongE?, false); Eval(1840, o is LongE?[], false); Eval(1841, o is char, false); Eval(1842, o is char[], false); Eval(1843, o is char?, false); Eval(1844, o is char?[], false); Eval(1845, o is bool, false); Eval(1846, o is bool[], false); Eval(1847, o is bool?, false); Eval(1848, o is bool?[], false); Eval(1849, o is byte, false); Eval(1850, o is byte[], false); Eval(1851, o is byte?, false); Eval(1852, o is byte?[], false); Eval(1853, o is sbyte, false); Eval(1854, o is sbyte[], false); Eval(1855, o is sbyte?, false); Eval(1856, o is sbyte?[], false); Eval(1857, o is short, false); Eval(1858, o is short[], false); Eval(1859, o is short?, false); Eval(1860, o is short?[], false); Eval(1861, o is ushort, false); Eval(1862, o is ushort[], false); Eval(1863, o is ushort?, false); Eval(1864, o is ushort?[], false); Eval(1865, o is int, false); Eval(1866, o is int[], false); Eval(1867, o is int?, false); Eval(1868, o is int?[], false); Eval(1869, o is uint, false); Eval(1870, o is uint[], false); Eval(1871, o is uint?, false); Eval(1872, o is uint?[], false); Eval(1873, o is long, false); Eval(1874, o is long[], false); Eval(1875, o is long?, false); Eval(1876, o is long?[], false); Eval(1877, o is ulong, false); Eval(1878, o is ulong[], false); Eval(1879, o is ulong?, false); Eval(1880, o is ulong?[], false); Eval(1881, o is float, false); Eval(1882, o is float[], false); Eval(1883, o is float?, false); Eval(1884, o is float?[], false); Eval(1885, o is double, false); Eval(1886, o is double[], false); Eval(1887, o is double?, false); Eval(1888, o is double?[], false); Eval(1889, o is decimal, false); Eval(1890, o is decimal[], false); Eval(1891, o is decimal?, false); Eval(1892, o is decimal?[], false); Eval(1893, o is IntPtr, false); Eval(1894, o is IntPtr[], false); Eval(1895, o is IntPtr?, false); Eval(1896, o is IntPtr?[], false); Eval(1897, o is UIntPtr, false); Eval(1898, o is UIntPtr[], false); Eval(1899, o is UIntPtr?, false); Eval(1900, o is UIntPtr?[], false); Eval(1901, o is Guid, false); Eval(1902, o is Guid[], false); Eval(1903, o is Guid?, false); Eval(1904, o is Guid?[], false); Eval(1905, o is GCHandle, false); Eval(1906, o is GCHandle[], false); Eval(1907, o is GCHandle?, false); Eval(1908, o is GCHandle?[], false); Eval(1909, o is object, true); Eval(1910, o is object[], false); Eval(1911, o is string, false); Eval(1912, o is string[], false); Eval(1913, o is ValueType, true); Eval(1914, o is ValueType[], false); Eval(1915, o is Array, false); Eval(1916, o is Array[], false); Eval(1917, o is Enum, false); Eval(1918, o is Enum[], false); Eval(1919, o is Delegate, false); Eval(1920, o is Delegate[], false); Eval(1921, o is MulticastDelegate, false); Eval(1922, o is MulticastDelegate[], false); Eval(1923, o is IEmpty, false); Eval(1924, o is IEmpty[], false); Eval(1925, o is INotEmpty, false); Eval(1926, o is INotEmpty[], false); Eval(1927, o is IEmptyGen<int>, false); Eval(1928, o is IEmptyGen<int>[], false); Eval(1929, o is INotEmptyGen<int>, false); Eval(1930, o is INotEmptyGen<int>[], false); Eval(1931, o is SimpleDelegate, false); Eval(1932, o is SimpleDelegate[], false); Eval(1933, o is GenericDelegate<int>, false); Eval(1934, o is GenericDelegate<int>[], false); Eval(1935, o is EmptyClass, false); Eval(1936, o is EmptyClass[], false); Eval(1937, o is NotEmptyClass, false); Eval(1938, o is NotEmptyClass[], false); Eval(1939, o is EmptyClassGen<int>, false); Eval(1940, o is EmptyClassGen<int>[], false); Eval(1941, o is NotEmptyClassGen<Guid>, false); Eval(1942, o is NotEmptyClassGen<Guid>[], false); Eval(1943, o is NotEmptyClassConstrainedGen<object>, false); Eval(1944, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1945, o is NestedClass, false); Eval(1946, o is NestedClass[], false); Eval(1947, o is NestedClassGen<Decimal>, false); Eval(1948, o is NestedClassGen<Decimal>[], false); Eval(1949, o is ImplementOneInterfaceC, false); Eval(1950, o is ImplementOneInterfaceC[], false); Eval(1951, o is ImplementTwoInterfaceC, false); Eval(1952, o is ImplementTwoInterfaceC[], false); Eval(1953, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1954, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1955, o is ImplementTwoInterfaceGenC<int>, false); Eval(1956, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1957, o is ImplementAllInterfaceC<int>, false); Eval(1958, o is ImplementAllInterfaceC<int>[], false); Eval(1959, o is SealedClass, false); Eval(1960, o is SealedClass[], false); } { NotEmptyStructGen<Guid>? v = default(NotEmptyStructGen<Guid>); ValueType o = v; Eval(1961, o is EmptyStruct, false); Eval(1962, o is EmptyStruct[], false); Eval(1963, o is EmptyStruct?, false); Eval(1964, o is EmptyStruct?[], false); Eval(1965, o is NotEmptyStruct, false); Eval(1966, o is NotEmptyStruct[], false); Eval(1967, o is NotEmptyStruct?, false); Eval(1968, o is NotEmptyStruct?[], false); Eval(1969, o is EmptyStructGen<int>, false); Eval(1970, o is EmptyStructGen<int>[], false); Eval(1971, o is EmptyStructGen<int>?, false); Eval(1972, o is EmptyStructGen<int>?[], false); Eval(1973, o is NotEmptyStructGen<Guid>, true); Eval(1974, o is NotEmptyStructGen<Guid>[], false); Eval(1975, o is NotEmptyStructGen<Guid>?, true); Eval(1976, o is NotEmptyStructGen<Guid>?[], false); Eval(1977, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1978, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1979, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1980, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1981, o is NestedStruct, false); Eval(1982, o is NestedStruct[], false); Eval(1983, o is NestedStruct?, false); Eval(1984, o is NestedStruct?[], false); Eval(1985, o is NestedStructGen<Decimal>, false); Eval(1986, o is NestedStructGen<Decimal>[], false); Eval(1987, o is NestedStructGen<Decimal>?, false); Eval(1988, o is NestedStructGen<Decimal>?[], false); Eval(1989, o is ExplicitFieldOffsetStruct, false); Eval(1990, o is ExplicitFieldOffsetStruct[], false); Eval(1991, o is ExplicitFieldOffsetStruct?, false); Eval(1992, o is ExplicitFieldOffsetStruct?[], false); Eval(2001, o is MarshalAsStruct, false); Eval(2002, o is MarshalAsStruct[], false); Eval(2003, o is MarshalAsStruct?, false); Eval(2004, o is MarshalAsStruct?[], false); Eval(2005, o is ImplementOneInterface, false); Eval(2006, o is ImplementOneInterface[], false); Eval(2007, o is ImplementOneInterface?, false); Eval(2008, o is ImplementOneInterface?[], false); Eval(2009, o is ImplementTwoInterface, false); Eval(2010, o is ImplementTwoInterface[], false); Eval(2011, o is ImplementTwoInterface?, false); Eval(2012, o is ImplementTwoInterface?[], false); Eval(2013, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2014, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2015, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2016, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2017, o is ImplementTwoInterfaceGen<int>, false); Eval(2018, o is ImplementTwoInterfaceGen<int>[], false); Eval(2019, o is ImplementTwoInterfaceGen<int>?, false); Eval(2020, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2021, o is ImplementAllInterface<int>, false); Eval(2022, o is ImplementAllInterface<int>[], false); Eval(2023, o is ImplementAllInterface<int>?, false); Eval(2024, o is ImplementAllInterface<int>?[], false); Eval(2025, o is IntE, false); Eval(2026, o is IntE[], false); Eval(2027, o is IntE?, false); Eval(2028, o is IntE?[], false); Eval(2029, o is ByteE, false); Eval(2030, o is ByteE[], false); Eval(2031, o is ByteE?, false); Eval(2032, o is ByteE?[], false); Eval(2033, o is LongE, false); Eval(2034, o is LongE[], false); Eval(2035, o is LongE?, false); Eval(2036, o is LongE?[], false); Eval(2037, o is char, false); Eval(2038, o is char[], false); Eval(2039, o is char?, false); Eval(2040, o is char?[], false); Eval(2041, o is bool, false); Eval(2042, o is bool[], false); Eval(2043, o is bool?, false); Eval(2044, o is bool?[], false); Eval(2045, o is byte, false); Eval(2046, o is byte[], false); Eval(2047, o is byte?, false); Eval(2048, o is byte?[], false); Eval(2049, o is sbyte, false); Eval(2050, o is sbyte[], false); Eval(2051, o is sbyte?, false); Eval(2052, o is sbyte?[], false); Eval(2053, o is short, false); Eval(2054, o is short[], false); Eval(2055, o is short?, false); Eval(2056, o is short?[], false); Eval(2057, o is ushort, false); Eval(2058, o is ushort[], false); Eval(2059, o is ushort?, false); Eval(2060, o is ushort?[], false); Eval(2061, o is int, false); Eval(2062, o is int[], false); Eval(2063, o is int?, false); Eval(2064, o is int?[], false); Eval(2065, o is uint, false); Eval(2066, o is uint[], false); Eval(2067, o is uint?, false); Eval(2068, o is uint?[], false); Eval(2069, o is long, false); Eval(2070, o is long[], false); Eval(2071, o is long?, false); Eval(2072, o is long?[], false); Eval(2073, o is ulong, false); Eval(2074, o is ulong[], false); Eval(2075, o is ulong?, false); Eval(2076, o is ulong?[], false); Eval(2077, o is float, false); Eval(2078, o is float[], false); Eval(2079, o is float?, false); Eval(2080, o is float?[], false); Eval(2081, o is double, false); Eval(2082, o is double[], false); Eval(2083, o is double?, false); Eval(2084, o is double?[], false); Eval(2085, o is decimal, false); Eval(2086, o is decimal[], false); Eval(2087, o is decimal?, false); Eval(2088, o is decimal?[], false); Eval(2089, o is IntPtr, false); Eval(2090, o is IntPtr[], false); Eval(2091, o is IntPtr?, false); Eval(2092, o is IntPtr?[], false); Eval(2093, o is UIntPtr, false); Eval(2094, o is UIntPtr[], false); Eval(2095, o is UIntPtr?, false); Eval(2096, o is UIntPtr?[], false); Eval(2097, o is Guid, false); Eval(2098, o is Guid[], false); Eval(2099, o is Guid?, false); Eval(2100, o is Guid?[], false); Eval(2101, o is GCHandle, false); Eval(2102, o is GCHandle[], false); Eval(2103, o is GCHandle?, false); Eval(2104, o is GCHandle?[], false); Eval(2105, o is object, true); Eval(2106, o is object[], false); Eval(2107, o is string, false); Eval(2108, o is string[], false); Eval(2109, o is ValueType, true); Eval(2110, o is ValueType[], false); Eval(2111, o is Array, false); Eval(2112, o is Array[], false); Eval(2113, o is Enum, false); Eval(2114, o is Enum[], false); Eval(2115, o is Delegate, false); Eval(2116, o is Delegate[], false); Eval(2117, o is MulticastDelegate, false); Eval(2118, o is MulticastDelegate[], false); Eval(2119, o is IEmpty, false); Eval(2120, o is IEmpty[], false); Eval(2121, o is INotEmpty, false); Eval(2122, o is INotEmpty[], false); Eval(2123, o is IEmptyGen<int>, false); Eval(2124, o is IEmptyGen<int>[], false); Eval(2125, o is INotEmptyGen<int>, false); Eval(2126, o is INotEmptyGen<int>[], false); Eval(2127, o is SimpleDelegate, false); Eval(2128, o is SimpleDelegate[], false); Eval(2129, o is GenericDelegate<int>, false); Eval(2130, o is GenericDelegate<int>[], false); Eval(2131, o is EmptyClass, false); Eval(2132, o is EmptyClass[], false); Eval(2133, o is NotEmptyClass, false); Eval(2134, o is NotEmptyClass[], false); Eval(2135, o is EmptyClassGen<int>, false); Eval(2136, o is EmptyClassGen<int>[], false); Eval(2137, o is NotEmptyClassGen<Guid>, false); Eval(2138, o is NotEmptyClassGen<Guid>[], false); Eval(2139, o is NotEmptyClassConstrainedGen<object>, false); Eval(2140, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2141, o is NestedClass, false); Eval(2142, o is NestedClass[], false); Eval(2143, o is NestedClassGen<Decimal>, false); Eval(2144, o is NestedClassGen<Decimal>[], false); Eval(2145, o is ImplementOneInterfaceC, false); Eval(2146, o is ImplementOneInterfaceC[], false); Eval(2147, o is ImplementTwoInterfaceC, false); Eval(2148, o is ImplementTwoInterfaceC[], false); Eval(2149, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2150, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2151, o is ImplementTwoInterfaceGenC<int>, false); Eval(2152, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2153, o is ImplementAllInterfaceC<int>, false); Eval(2154, o is ImplementAllInterfaceC<int>[], false); Eval(2155, o is SealedClass, false); Eval(2156, o is SealedClass[], false); } { NotEmptyStructGen<Guid>? v = default(NotEmptyStructGen<Guid>?); ValueType o = v; Eval(2157, o is EmptyStruct, false); Eval(2158, o is EmptyStruct[], false); Eval(2159, o is EmptyStruct?, false); Eval(2160, o is EmptyStruct?[], false); Eval(2161, o is NotEmptyStruct, false); Eval(2162, o is NotEmptyStruct[], false); Eval(2163, o is NotEmptyStruct?, false); Eval(2164, o is NotEmptyStruct?[], false); Eval(2165, o is EmptyStructGen<int>, false); Eval(2166, o is EmptyStructGen<int>[], false); Eval(2167, o is EmptyStructGen<int>?, false); Eval(2168, o is EmptyStructGen<int>?[], false); Eval(2169, o is NotEmptyStructGen<Guid>, false); Eval(2170, o is NotEmptyStructGen<Guid>[], false); Eval(2171, o is NotEmptyStructGen<Guid>?, false); Eval(2172, o is NotEmptyStructGen<Guid>?[], false); Eval(2173, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(2174, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2175, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(2176, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2177, o is NestedStruct, false); Eval(2178, o is NestedStruct[], false); Eval(2179, o is NestedStruct?, false); Eval(2180, o is NestedStruct?[], false); Eval(2181, o is NestedStructGen<Decimal>, false); Eval(2182, o is NestedStructGen<Decimal>[], false); Eval(2183, o is NestedStructGen<Decimal>?, false); Eval(2184, o is NestedStructGen<Decimal>?[], false); Eval(2185, o is ExplicitFieldOffsetStruct, false); Eval(2186, o is ExplicitFieldOffsetStruct[], false); Eval(2187, o is ExplicitFieldOffsetStruct?, false); Eval(2188, o is ExplicitFieldOffsetStruct?[], false); Eval(2197, o is MarshalAsStruct, false); Eval(2198, o is MarshalAsStruct[], false); Eval(2199, o is MarshalAsStruct?, false); Eval(2200, o is MarshalAsStruct?[], false); Eval(2201, o is ImplementOneInterface, false); Eval(2202, o is ImplementOneInterface[], false); Eval(2203, o is ImplementOneInterface?, false); Eval(2204, o is ImplementOneInterface?[], false); Eval(2205, o is ImplementTwoInterface, false); Eval(2206, o is ImplementTwoInterface[], false); Eval(2207, o is ImplementTwoInterface?, false); Eval(2208, o is ImplementTwoInterface?[], false); Eval(2209, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2210, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2211, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2212, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2213, o is ImplementTwoInterfaceGen<int>, false); Eval(2214, o is ImplementTwoInterfaceGen<int>[], false); Eval(2215, o is ImplementTwoInterfaceGen<int>?, false); Eval(2216, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2217, o is ImplementAllInterface<int>, false); Eval(2218, o is ImplementAllInterface<int>[], false); Eval(2219, o is ImplementAllInterface<int>?, false); Eval(2220, o is ImplementAllInterface<int>?[], false); Eval(2221, o is IntE, false); Eval(2222, o is IntE[], false); Eval(2223, o is IntE?, false); Eval(2224, o is IntE?[], false); Eval(2225, o is ByteE, false); Eval(2226, o is ByteE[], false); Eval(2227, o is ByteE?, false); Eval(2228, o is ByteE?[], false); Eval(2229, o is LongE, false); Eval(2230, o is LongE[], false); Eval(2231, o is LongE?, false); Eval(2232, o is LongE?[], false); Eval(2233, o is char, false); Eval(2234, o is char[], false); Eval(2235, o is char?, false); Eval(2236, o is char?[], false); Eval(2237, o is bool, false); Eval(2238, o is bool[], false); Eval(2239, o is bool?, false); Eval(2240, o is bool?[], false); Eval(2241, o is byte, false); Eval(2242, o is byte[], false); Eval(2243, o is byte?, false); Eval(2244, o is byte?[], false); Eval(2245, o is sbyte, false); Eval(2246, o is sbyte[], false); Eval(2247, o is sbyte?, false); Eval(2248, o is sbyte?[], false); Eval(2249, o is short, false); Eval(2250, o is short[], false); Eval(2251, o is short?, false); Eval(2252, o is short?[], false); Eval(2253, o is ushort, false); Eval(2254, o is ushort[], false); Eval(2255, o is ushort?, false); Eval(2256, o is ushort?[], false); Eval(2257, o is int, false); Eval(2258, o is int[], false); Eval(2259, o is int?, false); Eval(2260, o is int?[], false); Eval(2261, o is uint, false); Eval(2262, o is uint[], false); Eval(2263, o is uint?, false); Eval(2264, o is uint?[], false); Eval(2265, o is long, false); Eval(2266, o is long[], false); Eval(2267, o is long?, false); Eval(2268, o is long?[], false); Eval(2269, o is ulong, false); Eval(2270, o is ulong[], false); Eval(2271, o is ulong?, false); Eval(2272, o is ulong?[], false); Eval(2273, o is float, false); Eval(2274, o is float[], false); Eval(2275, o is float?, false); Eval(2276, o is float?[], false); Eval(2277, o is double, false); Eval(2278, o is double[], false); Eval(2279, o is double?, false); Eval(2280, o is double?[], false); Eval(2281, o is decimal, false); Eval(2282, o is decimal[], false); Eval(2283, o is decimal?, false); Eval(2284, o is decimal?[], false); Eval(2285, o is IntPtr, false); Eval(2286, o is IntPtr[], false); Eval(2287, o is IntPtr?, false); Eval(2288, o is IntPtr?[], false); Eval(2289, o is UIntPtr, false); Eval(2290, o is UIntPtr[], false); Eval(2291, o is UIntPtr?, false); Eval(2292, o is UIntPtr?[], false); Eval(2293, o is Guid, false); Eval(2294, o is Guid[], false); Eval(2295, o is Guid?, false); Eval(2296, o is Guid?[], false); Eval(2297, o is GCHandle, false); Eval(2298, o is GCHandle[], false); Eval(2299, o is GCHandle?, false); Eval(2300, o is GCHandle?[], false); Eval(2301, o is object, false); Eval(2302, o is object[], false); Eval(2303, o is string, false); Eval(2304, o is string[], false); Eval(2305, o is ValueType, false); Eval(2306, o is ValueType[], false); Eval(2307, o is Array, false); Eval(2308, o is Array[], false); Eval(2309, o is Enum, false); Eval(2310, o is Enum[], false); Eval(2311, o is Delegate, false); Eval(2312, o is Delegate[], false); Eval(2313, o is MulticastDelegate, false); Eval(2314, o is MulticastDelegate[], false); Eval(2315, o is IEmpty, false); Eval(2316, o is IEmpty[], false); Eval(2317, o is INotEmpty, false); Eval(2318, o is INotEmpty[], false); Eval(2319, o is IEmptyGen<int>, false); Eval(2320, o is IEmptyGen<int>[], false); Eval(2321, o is INotEmptyGen<int>, false); Eval(2322, o is INotEmptyGen<int>[], false); Eval(2323, o is SimpleDelegate, false); Eval(2324, o is SimpleDelegate[], false); Eval(2325, o is GenericDelegate<int>, false); Eval(2326, o is GenericDelegate<int>[], false); Eval(2327, o is EmptyClass, false); Eval(2328, o is EmptyClass[], false); Eval(2329, o is NotEmptyClass, false); Eval(2330, o is NotEmptyClass[], false); Eval(2331, o is EmptyClassGen<int>, false); Eval(2332, o is EmptyClassGen<int>[], false); Eval(2333, o is NotEmptyClassGen<Guid>, false); Eval(2334, o is NotEmptyClassGen<Guid>[], false); Eval(2335, o is NotEmptyClassConstrainedGen<object>, false); Eval(2336, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2337, o is NestedClass, false); Eval(2338, o is NestedClass[], false); Eval(2339, o is NestedClassGen<Decimal>, false); Eval(2340, o is NestedClassGen<Decimal>[], false); Eval(2341, o is ImplementOneInterfaceC, false); Eval(2342, o is ImplementOneInterfaceC[], false); Eval(2343, o is ImplementTwoInterfaceC, false); Eval(2344, o is ImplementTwoInterfaceC[], false); Eval(2345, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2346, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2347, o is ImplementTwoInterfaceGenC<int>, false); Eval(2348, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2349, o is ImplementAllInterfaceC<int>, false); Eval(2350, o is ImplementAllInterfaceC<int>[], false); Eval(2351, o is SealedClass, false); Eval(2352, o is SealedClass[], false); } } // end of test case 0004 private static void TestCase0005() { { NotEmptyStructConstrainedGen<IntPtr> v = default(NotEmptyStructConstrainedGen<IntPtr>); ValueType o = v; Eval(2353, o is EmptyStruct, false); Eval(2354, o is EmptyStruct[], false); Eval(2355, o is EmptyStruct?, false); Eval(2356, o is EmptyStruct?[], false); Eval(2357, o is NotEmptyStruct, false); Eval(2358, o is NotEmptyStruct[], false); Eval(2359, o is NotEmptyStruct?, false); Eval(2360, o is NotEmptyStruct?[], false); Eval(2361, o is EmptyStructGen<int>, false); Eval(2362, o is EmptyStructGen<int>[], false); Eval(2363, o is EmptyStructGen<int>?, false); Eval(2364, o is EmptyStructGen<int>?[], false); Eval(2365, o is NotEmptyStructGen<Guid>, false); Eval(2366, o is NotEmptyStructGen<Guid>[], false); Eval(2367, o is NotEmptyStructGen<Guid>?, false); Eval(2368, o is NotEmptyStructGen<Guid>?[], false); Eval(2369, o is NotEmptyStructConstrainedGen<IntPtr>, true); Eval(2370, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2371, o is NotEmptyStructConstrainedGen<IntPtr>?, true); Eval(2372, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2373, o is NestedStruct, false); Eval(2374, o is NestedStruct[], false); Eval(2375, o is NestedStruct?, false); Eval(2376, o is NestedStruct?[], false); Eval(2377, o is NestedStructGen<Decimal>, false); Eval(2378, o is NestedStructGen<Decimal>[], false); Eval(2379, o is NestedStructGen<Decimal>?, false); Eval(2380, o is NestedStructGen<Decimal>?[], false); Eval(2381, o is ExplicitFieldOffsetStruct, false); Eval(2382, o is ExplicitFieldOffsetStruct[], false); Eval(2383, o is ExplicitFieldOffsetStruct?, false); Eval(2384, o is ExplicitFieldOffsetStruct?[], false); Eval(2393, o is MarshalAsStruct, false); Eval(2394, o is MarshalAsStruct[], false); Eval(2395, o is MarshalAsStruct?, false); Eval(2396, o is MarshalAsStruct?[], false); Eval(2397, o is ImplementOneInterface, false); Eval(2398, o is ImplementOneInterface[], false); Eval(2399, o is ImplementOneInterface?, false); Eval(2400, o is ImplementOneInterface?[], false); Eval(2401, o is ImplementTwoInterface, false); Eval(2402, o is ImplementTwoInterface[], false); Eval(2403, o is ImplementTwoInterface?, false); Eval(2404, o is ImplementTwoInterface?[], false); Eval(2405, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2406, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2407, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2408, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2409, o is ImplementTwoInterfaceGen<int>, false); Eval(2410, o is ImplementTwoInterfaceGen<int>[], false); Eval(2411, o is ImplementTwoInterfaceGen<int>?, false); Eval(2412, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2413, o is ImplementAllInterface<int>, false); Eval(2414, o is ImplementAllInterface<int>[], false); Eval(2415, o is ImplementAllInterface<int>?, false); Eval(2416, o is ImplementAllInterface<int>?[], false); Eval(2417, o is IntE, false); Eval(2418, o is IntE[], false); Eval(2419, o is IntE?, false); Eval(2420, o is IntE?[], false); Eval(2421, o is ByteE, false); Eval(2422, o is ByteE[], false); Eval(2423, o is ByteE?, false); Eval(2424, o is ByteE?[], false); Eval(2425, o is LongE, false); Eval(2426, o is LongE[], false); Eval(2427, o is LongE?, false); Eval(2428, o is LongE?[], false); Eval(2429, o is char, false); Eval(2430, o is char[], false); Eval(2431, o is char?, false); Eval(2432, o is char?[], false); Eval(2433, o is bool, false); Eval(2434, o is bool[], false); Eval(2435, o is bool?, false); Eval(2436, o is bool?[], false); Eval(2437, o is byte, false); Eval(2438, o is byte[], false); Eval(2439, o is byte?, false); Eval(2440, o is byte?[], false); Eval(2441, o is sbyte, false); Eval(2442, o is sbyte[], false); Eval(2443, o is sbyte?, false); Eval(2444, o is sbyte?[], false); Eval(2445, o is short, false); Eval(2446, o is short[], false); Eval(2447, o is short?, false); Eval(2448, o is short?[], false); Eval(2449, o is ushort, false); Eval(2450, o is ushort[], false); Eval(2451, o is ushort?, false); Eval(2452, o is ushort?[], false); Eval(2453, o is int, false); Eval(2454, o is int[], false); Eval(2455, o is int?, false); Eval(2456, o is int?[], false); Eval(2457, o is uint, false); Eval(2458, o is uint[], false); Eval(2459, o is uint?, false); Eval(2460, o is uint?[], false); Eval(2461, o is long, false); Eval(2462, o is long[], false); Eval(2463, o is long?, false); Eval(2464, o is long?[], false); Eval(2465, o is ulong, false); Eval(2466, o is ulong[], false); Eval(2467, o is ulong?, false); Eval(2468, o is ulong?[], false); Eval(2469, o is float, false); Eval(2470, o is float[], false); Eval(2471, o is float?, false); Eval(2472, o is float?[], false); Eval(2473, o is double, false); Eval(2474, o is double[], false); Eval(2475, o is double?, false); Eval(2476, o is double?[], false); Eval(2477, o is decimal, false); Eval(2478, o is decimal[], false); Eval(2479, o is decimal?, false); Eval(2480, o is decimal?[], false); Eval(2481, o is IntPtr, false); Eval(2482, o is IntPtr[], false); Eval(2483, o is IntPtr?, false); Eval(2484, o is IntPtr?[], false); Eval(2485, o is UIntPtr, false); Eval(2486, o is UIntPtr[], false); Eval(2487, o is UIntPtr?, false); Eval(2488, o is UIntPtr?[], false); Eval(2489, o is Guid, false); Eval(2490, o is Guid[], false); Eval(2491, o is Guid?, false); Eval(2492, o is Guid?[], false); Eval(2493, o is GCHandle, false); Eval(2494, o is GCHandle[], false); Eval(2495, o is GCHandle?, false); Eval(2496, o is GCHandle?[], false); Eval(2497, o is object, true); Eval(2498, o is object[], false); Eval(2499, o is string, false); Eval(2500, o is string[], false); Eval(2501, o is ValueType, true); Eval(2502, o is ValueType[], false); Eval(2503, o is Array, false); Eval(2504, o is Array[], false); Eval(2505, o is Enum, false); Eval(2506, o is Enum[], false); Eval(2507, o is Delegate, false); Eval(2508, o is Delegate[], false); Eval(2509, o is MulticastDelegate, false); Eval(2510, o is MulticastDelegate[], false); Eval(2511, o is IEmpty, false); Eval(2512, o is IEmpty[], false); Eval(2513, o is INotEmpty, false); Eval(2514, o is INotEmpty[], false); Eval(2515, o is IEmptyGen<int>, false); Eval(2516, o is IEmptyGen<int>[], false); Eval(2517, o is INotEmptyGen<int>, false); Eval(2518, o is INotEmptyGen<int>[], false); Eval(2519, o is SimpleDelegate, false); Eval(2520, o is SimpleDelegate[], false); Eval(2521, o is GenericDelegate<int>, false); Eval(2522, o is GenericDelegate<int>[], false); Eval(2523, o is EmptyClass, false); Eval(2524, o is EmptyClass[], false); Eval(2525, o is NotEmptyClass, false); Eval(2526, o is NotEmptyClass[], false); Eval(2527, o is EmptyClassGen<int>, false); Eval(2528, o is EmptyClassGen<int>[], false); Eval(2529, o is NotEmptyClassGen<Guid>, false); Eval(2530, o is NotEmptyClassGen<Guid>[], false); Eval(2531, o is NotEmptyClassConstrainedGen<object>, false); Eval(2532, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2533, o is NestedClass, false); Eval(2534, o is NestedClass[], false); Eval(2535, o is NestedClassGen<Decimal>, false); Eval(2536, o is NestedClassGen<Decimal>[], false); Eval(2537, o is ImplementOneInterfaceC, false); Eval(2538, o is ImplementOneInterfaceC[], false); Eval(2539, o is ImplementTwoInterfaceC, false); Eval(2540, o is ImplementTwoInterfaceC[], false); Eval(2541, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2542, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2543, o is ImplementTwoInterfaceGenC<int>, false); Eval(2544, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2545, o is ImplementAllInterfaceC<int>, false); Eval(2546, o is ImplementAllInterfaceC<int>[], false); Eval(2547, o is SealedClass, false); Eval(2548, o is SealedClass[], false); } { NotEmptyStructConstrainedGen<IntPtr>? v = default(NotEmptyStructConstrainedGen<IntPtr>); ValueType o = v; Eval(2549, o is EmptyStruct, false); Eval(2550, o is EmptyStruct[], false); Eval(2551, o is EmptyStruct?, false); Eval(2552, o is EmptyStruct?[], false); Eval(2553, o is NotEmptyStruct, false); Eval(2554, o is NotEmptyStruct[], false); Eval(2555, o is NotEmptyStruct?, false); Eval(2556, o is NotEmptyStruct?[], false); Eval(2557, o is EmptyStructGen<int>, false); Eval(2558, o is EmptyStructGen<int>[], false); Eval(2559, o is EmptyStructGen<int>?, false); Eval(2560, o is EmptyStructGen<int>?[], false); Eval(2561, o is NotEmptyStructGen<Guid>, false); Eval(2562, o is NotEmptyStructGen<Guid>[], false); Eval(2563, o is NotEmptyStructGen<Guid>?, false); Eval(2564, o is NotEmptyStructGen<Guid>?[], false); Eval(2565, o is NotEmptyStructConstrainedGen<IntPtr>, true); Eval(2566, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2567, o is NotEmptyStructConstrainedGen<IntPtr>?, true); Eval(2568, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2569, o is NestedStruct, false); Eval(2570, o is NestedStruct[], false); Eval(2571, o is NestedStruct?, false); Eval(2572, o is NestedStruct?[], false); Eval(2573, o is NestedStructGen<Decimal>, false); Eval(2574, o is NestedStructGen<Decimal>[], false); Eval(2575, o is NestedStructGen<Decimal>?, false); Eval(2576, o is NestedStructGen<Decimal>?[], false); Eval(2577, o is ExplicitFieldOffsetStruct, false); Eval(2578, o is ExplicitFieldOffsetStruct[], false); Eval(2579, o is ExplicitFieldOffsetStruct?, false); Eval(2580, o is ExplicitFieldOffsetStruct?[], false); Eval(2589, o is MarshalAsStruct, false); Eval(2590, o is MarshalAsStruct[], false); Eval(2591, o is MarshalAsStruct?, false); Eval(2592, o is MarshalAsStruct?[], false); Eval(2593, o is ImplementOneInterface, false); Eval(2594, o is ImplementOneInterface[], false); Eval(2595, o is ImplementOneInterface?, false); Eval(2596, o is ImplementOneInterface?[], false); Eval(2597, o is ImplementTwoInterface, false); Eval(2598, o is ImplementTwoInterface[], false); Eval(2599, o is ImplementTwoInterface?, false); Eval(2600, o is ImplementTwoInterface?[], false); Eval(2601, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2602, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2603, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2604, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2605, o is ImplementTwoInterfaceGen<int>, false); Eval(2606, o is ImplementTwoInterfaceGen<int>[], false); Eval(2607, o is ImplementTwoInterfaceGen<int>?, false); Eval(2608, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2609, o is ImplementAllInterface<int>, false); Eval(2610, o is ImplementAllInterface<int>[], false); Eval(2611, o is ImplementAllInterface<int>?, false); Eval(2612, o is ImplementAllInterface<int>?[], false); Eval(2613, o is IntE, false); Eval(2614, o is IntE[], false); Eval(2615, o is IntE?, false); Eval(2616, o is IntE?[], false); Eval(2617, o is ByteE, false); Eval(2618, o is ByteE[], false); Eval(2619, o is ByteE?, false); Eval(2620, o is ByteE?[], false); Eval(2621, o is LongE, false); Eval(2622, o is LongE[], false); Eval(2623, o is LongE?, false); Eval(2624, o is LongE?[], false); Eval(2625, o is char, false); Eval(2626, o is char[], false); Eval(2627, o is char?, false); Eval(2628, o is char?[], false); Eval(2629, o is bool, false); Eval(2630, o is bool[], false); Eval(2631, o is bool?, false); Eval(2632, o is bool?[], false); Eval(2633, o is byte, false); Eval(2634, o is byte[], false); Eval(2635, o is byte?, false); Eval(2636, o is byte?[], false); Eval(2637, o is sbyte, false); Eval(2638, o is sbyte[], false); Eval(2639, o is sbyte?, false); Eval(2640, o is sbyte?[], false); Eval(2641, o is short, false); Eval(2642, o is short[], false); Eval(2643, o is short?, false); Eval(2644, o is short?[], false); Eval(2645, o is ushort, false); Eval(2646, o is ushort[], false); Eval(2647, o is ushort?, false); Eval(2648, o is ushort?[], false); Eval(2649, o is int, false); Eval(2650, o is int[], false); Eval(2651, o is int?, false); Eval(2652, o is int?[], false); Eval(2653, o is uint, false); Eval(2654, o is uint[], false); Eval(2655, o is uint?, false); Eval(2656, o is uint?[], false); Eval(2657, o is long, false); Eval(2658, o is long[], false); Eval(2659, o is long?, false); Eval(2660, o is long?[], false); Eval(2661, o is ulong, false); Eval(2662, o is ulong[], false); Eval(2663, o is ulong?, false); Eval(2664, o is ulong?[], false); Eval(2665, o is float, false); Eval(2666, o is float[], false); Eval(2667, o is float?, false); Eval(2668, o is float?[], false); Eval(2669, o is double, false); Eval(2670, o is double[], false); Eval(2671, o is double?, false); Eval(2672, o is double?[], false); Eval(2673, o is decimal, false); Eval(2674, o is decimal[], false); Eval(2675, o is decimal?, false); Eval(2676, o is decimal?[], false); Eval(2677, o is IntPtr, false); Eval(2678, o is IntPtr[], false); Eval(2679, o is IntPtr?, false); Eval(2680, o is IntPtr?[], false); Eval(2681, o is UIntPtr, false); Eval(2682, o is UIntPtr[], false); Eval(2683, o is UIntPtr?, false); Eval(2684, o is UIntPtr?[], false); Eval(2685, o is Guid, false); Eval(2686, o is Guid[], false); Eval(2687, o is Guid?, false); Eval(2688, o is Guid?[], false); Eval(2689, o is GCHandle, false); Eval(2690, o is GCHandle[], false); Eval(2691, o is GCHandle?, false); Eval(2692, o is GCHandle?[], false); Eval(2693, o is object, true); Eval(2694, o is object[], false); Eval(2695, o is string, false); Eval(2696, o is string[], false); Eval(2697, o is ValueType, true); Eval(2698, o is ValueType[], false); Eval(2699, o is Array, false); Eval(2700, o is Array[], false); Eval(2701, o is Enum, false); Eval(2702, o is Enum[], false); Eval(2703, o is Delegate, false); Eval(2704, o is Delegate[], false); Eval(2705, o is MulticastDelegate, false); Eval(2706, o is MulticastDelegate[], false); Eval(2707, o is IEmpty, false); Eval(2708, o is IEmpty[], false); Eval(2709, o is INotEmpty, false); Eval(2710, o is INotEmpty[], false); Eval(2711, o is IEmptyGen<int>, false); Eval(2712, o is IEmptyGen<int>[], false); Eval(2713, o is INotEmptyGen<int>, false); Eval(2714, o is INotEmptyGen<int>[], false); Eval(2715, o is SimpleDelegate, false); Eval(2716, o is SimpleDelegate[], false); Eval(2717, o is GenericDelegate<int>, false); Eval(2718, o is GenericDelegate<int>[], false); Eval(2719, o is EmptyClass, false); Eval(2720, o is EmptyClass[], false); Eval(2721, o is NotEmptyClass, false); Eval(2722, o is NotEmptyClass[], false); Eval(2723, o is EmptyClassGen<int>, false); Eval(2724, o is EmptyClassGen<int>[], false); Eval(2725, o is NotEmptyClassGen<Guid>, false); Eval(2726, o is NotEmptyClassGen<Guid>[], false); Eval(2727, o is NotEmptyClassConstrainedGen<object>, false); Eval(2728, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2729, o is NestedClass, false); Eval(2730, o is NestedClass[], false); Eval(2731, o is NestedClassGen<Decimal>, false); Eval(2732, o is NestedClassGen<Decimal>[], false); Eval(2733, o is ImplementOneInterfaceC, false); Eval(2734, o is ImplementOneInterfaceC[], false); Eval(2735, o is ImplementTwoInterfaceC, false); Eval(2736, o is ImplementTwoInterfaceC[], false); Eval(2737, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2738, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2739, o is ImplementTwoInterfaceGenC<int>, false); Eval(2740, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2741, o is ImplementAllInterfaceC<int>, false); Eval(2742, o is ImplementAllInterfaceC<int>[], false); Eval(2743, o is SealedClass, false); Eval(2744, o is SealedClass[], false); } { NotEmptyStructConstrainedGen<IntPtr>? v = default(NotEmptyStructConstrainedGen<IntPtr>?); ValueType o = v; Eval(2745, o is EmptyStruct, false); Eval(2746, o is EmptyStruct[], false); Eval(2747, o is EmptyStruct?, false); Eval(2748, o is EmptyStruct?[], false); Eval(2749, o is NotEmptyStruct, false); Eval(2750, o is NotEmptyStruct[], false); Eval(2751, o is NotEmptyStruct?, false); Eval(2752, o is NotEmptyStruct?[], false); Eval(2753, o is EmptyStructGen<int>, false); Eval(2754, o is EmptyStructGen<int>[], false); Eval(2755, o is EmptyStructGen<int>?, false); Eval(2756, o is EmptyStructGen<int>?[], false); Eval(2757, o is NotEmptyStructGen<Guid>, false); Eval(2758, o is NotEmptyStructGen<Guid>[], false); Eval(2759, o is NotEmptyStructGen<Guid>?, false); Eval(2760, o is NotEmptyStructGen<Guid>?[], false); Eval(2761, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(2762, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2763, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(2764, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2765, o is NestedStruct, false); Eval(2766, o is NestedStruct[], false); Eval(2767, o is NestedStruct?, false); Eval(2768, o is NestedStruct?[], false); Eval(2769, o is NestedStructGen<Decimal>, false); Eval(2770, o is NestedStructGen<Decimal>[], false); Eval(2771, o is NestedStructGen<Decimal>?, false); Eval(2772, o is NestedStructGen<Decimal>?[], false); Eval(2773, o is ExplicitFieldOffsetStruct, false); Eval(2774, o is ExplicitFieldOffsetStruct[], false); Eval(2775, o is ExplicitFieldOffsetStruct?, false); Eval(2776, o is ExplicitFieldOffsetStruct?[], false); Eval(2785, o is MarshalAsStruct, false); Eval(2786, o is MarshalAsStruct[], false); Eval(2787, o is MarshalAsStruct?, false); Eval(2788, o is MarshalAsStruct?[], false); Eval(2789, o is ImplementOneInterface, false); Eval(2790, o is ImplementOneInterface[], false); Eval(2791, o is ImplementOneInterface?, false); Eval(2792, o is ImplementOneInterface?[], false); Eval(2793, o is ImplementTwoInterface, false); Eval(2794, o is ImplementTwoInterface[], false); Eval(2795, o is ImplementTwoInterface?, false); Eval(2796, o is ImplementTwoInterface?[], false); Eval(2797, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2798, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2799, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2800, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2801, o is ImplementTwoInterfaceGen<int>, false); Eval(2802, o is ImplementTwoInterfaceGen<int>[], false); Eval(2803, o is ImplementTwoInterfaceGen<int>?, false); Eval(2804, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2805, o is ImplementAllInterface<int>, false); Eval(2806, o is ImplementAllInterface<int>[], false); Eval(2807, o is ImplementAllInterface<int>?, false); Eval(2808, o is ImplementAllInterface<int>?[], false); Eval(2809, o is IntE, false); Eval(2810, o is IntE[], false); Eval(2811, o is IntE?, false); Eval(2812, o is IntE?[], false); Eval(2813, o is ByteE, false); Eval(2814, o is ByteE[], false); Eval(2815, o is ByteE?, false); Eval(2816, o is ByteE?[], false); Eval(2817, o is LongE, false); Eval(2818, o is LongE[], false); Eval(2819, o is LongE?, false); Eval(2820, o is LongE?[], false); Eval(2821, o is char, false); Eval(2822, o is char[], false); Eval(2823, o is char?, false); Eval(2824, o is char?[], false); Eval(2825, o is bool, false); Eval(2826, o is bool[], false); Eval(2827, o is bool?, false); Eval(2828, o is bool?[], false); Eval(2829, o is byte, false); Eval(2830, o is byte[], false); Eval(2831, o is byte?, false); Eval(2832, o is byte?[], false); Eval(2833, o is sbyte, false); Eval(2834, o is sbyte[], false); Eval(2835, o is sbyte?, false); Eval(2836, o is sbyte?[], false); Eval(2837, o is short, false); Eval(2838, o is short[], false); Eval(2839, o is short?, false); Eval(2840, o is short?[], false); Eval(2841, o is ushort, false); Eval(2842, o is ushort[], false); Eval(2843, o is ushort?, false); Eval(2844, o is ushort?[], false); Eval(2845, o is int, false); Eval(2846, o is int[], false); Eval(2847, o is int?, false); Eval(2848, o is int?[], false); Eval(2849, o is uint, false); Eval(2850, o is uint[], false); Eval(2851, o is uint?, false); Eval(2852, o is uint?[], false); Eval(2853, o is long, false); Eval(2854, o is long[], false); Eval(2855, o is long?, false); Eval(2856, o is long?[], false); Eval(2857, o is ulong, false); Eval(2858, o is ulong[], false); Eval(2859, o is ulong?, false); Eval(2860, o is ulong?[], false); Eval(2861, o is float, false); Eval(2862, o is float[], false); Eval(2863, o is float?, false); Eval(2864, o is float?[], false); Eval(2865, o is double, false); Eval(2866, o is double[], false); Eval(2867, o is double?, false); Eval(2868, o is double?[], false); Eval(2869, o is decimal, false); Eval(2870, o is decimal[], false); Eval(2871, o is decimal?, false); Eval(2872, o is decimal?[], false); Eval(2873, o is IntPtr, false); Eval(2874, o is IntPtr[], false); Eval(2875, o is IntPtr?, false); Eval(2876, o is IntPtr?[], false); Eval(2877, o is UIntPtr, false); Eval(2878, o is UIntPtr[], false); Eval(2879, o is UIntPtr?, false); Eval(2880, o is UIntPtr?[], false); Eval(2881, o is Guid, false); Eval(2882, o is Guid[], false); Eval(2883, o is Guid?, false); Eval(2884, o is Guid?[], false); Eval(2885, o is GCHandle, false); Eval(2886, o is GCHandle[], false); Eval(2887, o is GCHandle?, false); Eval(2888, o is GCHandle?[], false); Eval(2889, o is object, false); Eval(2890, o is object[], false); Eval(2891, o is string, false); Eval(2892, o is string[], false); Eval(2893, o is ValueType, false); Eval(2894, o is ValueType[], false); Eval(2895, o is Array, false); Eval(2896, o is Array[], false); Eval(2897, o is Enum, false); Eval(2898, o is Enum[], false); Eval(2899, o is Delegate, false); Eval(2900, o is Delegate[], false); Eval(2901, o is MulticastDelegate, false); Eval(2902, o is MulticastDelegate[], false); Eval(2903, o is IEmpty, false); Eval(2904, o is IEmpty[], false); Eval(2905, o is INotEmpty, false); Eval(2906, o is INotEmpty[], false); Eval(2907, o is IEmptyGen<int>, false); Eval(2908, o is IEmptyGen<int>[], false); Eval(2909, o is INotEmptyGen<int>, false); Eval(2910, o is INotEmptyGen<int>[], false); Eval(2911, o is SimpleDelegate, false); Eval(2912, o is SimpleDelegate[], false); Eval(2913, o is GenericDelegate<int>, false); Eval(2914, o is GenericDelegate<int>[], false); Eval(2915, o is EmptyClass, false); Eval(2916, o is EmptyClass[], false); Eval(2917, o is NotEmptyClass, false); Eval(2918, o is NotEmptyClass[], false); Eval(2919, o is EmptyClassGen<int>, false); Eval(2920, o is EmptyClassGen<int>[], false); Eval(2921, o is NotEmptyClassGen<Guid>, false); Eval(2922, o is NotEmptyClassGen<Guid>[], false); Eval(2923, o is NotEmptyClassConstrainedGen<object>, false); Eval(2924, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2925, o is NestedClass, false); Eval(2926, o is NestedClass[], false); Eval(2927, o is NestedClassGen<Decimal>, false); Eval(2928, o is NestedClassGen<Decimal>[], false); Eval(2929, o is ImplementOneInterfaceC, false); Eval(2930, o is ImplementOneInterfaceC[], false); Eval(2931, o is ImplementTwoInterfaceC, false); Eval(2932, o is ImplementTwoInterfaceC[], false); Eval(2933, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2934, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2935, o is ImplementTwoInterfaceGenC<int>, false); Eval(2936, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2937, o is ImplementAllInterfaceC<int>, false); Eval(2938, o is ImplementAllInterfaceC<int>[], false); Eval(2939, o is SealedClass, false); Eval(2940, o is SealedClass[], false); } } // end of test case 0005 private static void TestCase0006() { { NestedStruct v = default(NestedStruct); ValueType o = v; Eval(2941, o is EmptyStruct, false); Eval(2942, o is EmptyStruct[], false); Eval(2943, o is EmptyStruct?, false); Eval(2944, o is EmptyStruct?[], false); Eval(2945, o is NotEmptyStruct, false); Eval(2946, o is NotEmptyStruct[], false); Eval(2947, o is NotEmptyStruct?, false); Eval(2948, o is NotEmptyStruct?[], false); Eval(2949, o is EmptyStructGen<int>, false); Eval(2950, o is EmptyStructGen<int>[], false); Eval(2951, o is EmptyStructGen<int>?, false); Eval(2952, o is EmptyStructGen<int>?[], false); Eval(2953, o is NotEmptyStructGen<Guid>, false); Eval(2954, o is NotEmptyStructGen<Guid>[], false); Eval(2955, o is NotEmptyStructGen<Guid>?, false); Eval(2956, o is NotEmptyStructGen<Guid>?[], false); Eval(2957, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(2958, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2959, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(2960, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2961, o is NestedStruct, true); Eval(2962, o is NestedStruct[], false); Eval(2963, o is NestedStruct?, true); Eval(2964, o is NestedStruct?[], false); Eval(2965, o is NestedStructGen<Decimal>, false); Eval(2966, o is NestedStructGen<Decimal>[], false); Eval(2967, o is NestedStructGen<Decimal>?, false); Eval(2968, o is NestedStructGen<Decimal>?[], false); Eval(2969, o is ExplicitFieldOffsetStruct, false); Eval(2970, o is ExplicitFieldOffsetStruct[], false); Eval(2971, o is ExplicitFieldOffsetStruct?, false); Eval(2972, o is ExplicitFieldOffsetStruct?[], false); Eval(2981, o is MarshalAsStruct, false); Eval(2982, o is MarshalAsStruct[], false); Eval(2983, o is MarshalAsStruct?, false); Eval(2984, o is MarshalAsStruct?[], false); Eval(2985, o is ImplementOneInterface, false); Eval(2986, o is ImplementOneInterface[], false); Eval(2987, o is ImplementOneInterface?, false); Eval(2988, o is ImplementOneInterface?[], false); Eval(2989, o is ImplementTwoInterface, false); Eval(2990, o is ImplementTwoInterface[], false); Eval(2991, o is ImplementTwoInterface?, false); Eval(2992, o is ImplementTwoInterface?[], false); Eval(2993, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2994, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2995, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2996, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2997, o is ImplementTwoInterfaceGen<int>, false); Eval(2998, o is ImplementTwoInterfaceGen<int>[], false); Eval(2999, o is ImplementTwoInterfaceGen<int>?, false); Eval(3000, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3001, o is ImplementAllInterface<int>, false); Eval(3002, o is ImplementAllInterface<int>[], false); Eval(3003, o is ImplementAllInterface<int>?, false); Eval(3004, o is ImplementAllInterface<int>?[], false); Eval(3005, o is IntE, false); Eval(3006, o is IntE[], false); Eval(3007, o is IntE?, false); Eval(3008, o is IntE?[], false); Eval(3009, o is ByteE, false); Eval(3010, o is ByteE[], false); Eval(3011, o is ByteE?, false); Eval(3012, o is ByteE?[], false); Eval(3013, o is LongE, false); Eval(3014, o is LongE[], false); Eval(3015, o is LongE?, false); Eval(3016, o is LongE?[], false); Eval(3017, o is char, false); Eval(3018, o is char[], false); Eval(3019, o is char?, false); Eval(3020, o is char?[], false); Eval(3021, o is bool, false); Eval(3022, o is bool[], false); Eval(3023, o is bool?, false); Eval(3024, o is bool?[], false); Eval(3025, o is byte, false); Eval(3026, o is byte[], false); Eval(3027, o is byte?, false); Eval(3028, o is byte?[], false); Eval(3029, o is sbyte, false); Eval(3030, o is sbyte[], false); Eval(3031, o is sbyte?, false); Eval(3032, o is sbyte?[], false); Eval(3033, o is short, false); Eval(3034, o is short[], false); Eval(3035, o is short?, false); Eval(3036, o is short?[], false); Eval(3037, o is ushort, false); Eval(3038, o is ushort[], false); Eval(3039, o is ushort?, false); Eval(3040, o is ushort?[], false); Eval(3041, o is int, false); Eval(3042, o is int[], false); Eval(3043, o is int?, false); Eval(3044, o is int?[], false); Eval(3045, o is uint, false); Eval(3046, o is uint[], false); Eval(3047, o is uint?, false); Eval(3048, o is uint?[], false); Eval(3049, o is long, false); Eval(3050, o is long[], false); Eval(3051, o is long?, false); Eval(3052, o is long?[], false); Eval(3053, o is ulong, false); Eval(3054, o is ulong[], false); Eval(3055, o is ulong?, false); Eval(3056, o is ulong?[], false); Eval(3057, o is float, false); Eval(3058, o is float[], false); Eval(3059, o is float?, false); Eval(3060, o is float?[], false); Eval(3061, o is double, false); Eval(3062, o is double[], false); Eval(3063, o is double?, false); Eval(3064, o is double?[], false); Eval(3065, o is decimal, false); Eval(3066, o is decimal[], false); Eval(3067, o is decimal?, false); Eval(3068, o is decimal?[], false); Eval(3069, o is IntPtr, false); Eval(3070, o is IntPtr[], false); Eval(3071, o is IntPtr?, false); Eval(3072, o is IntPtr?[], false); Eval(3073, o is UIntPtr, false); Eval(3074, o is UIntPtr[], false); Eval(3075, o is UIntPtr?, false); Eval(3076, o is UIntPtr?[], false); Eval(3077, o is Guid, false); Eval(3078, o is Guid[], false); Eval(3079, o is Guid?, false); Eval(3080, o is Guid?[], false); Eval(3081, o is GCHandle, false); Eval(3082, o is GCHandle[], false); Eval(3083, o is GCHandle?, false); Eval(3084, o is GCHandle?[], false); Eval(3085, o is object, true); Eval(3086, o is object[], false); Eval(3087, o is string, false); Eval(3088, o is string[], false); Eval(3089, o is ValueType, true); Eval(3090, o is ValueType[], false); Eval(3091, o is Array, false); Eval(3092, o is Array[], false); Eval(3093, o is Enum, false); Eval(3094, o is Enum[], false); Eval(3095, o is Delegate, false); Eval(3096, o is Delegate[], false); Eval(3097, o is MulticastDelegate, false); Eval(3098, o is MulticastDelegate[], false); Eval(3099, o is IEmpty, false); Eval(3100, o is IEmpty[], false); Eval(3101, o is INotEmpty, false); Eval(3102, o is INotEmpty[], false); Eval(3103, o is IEmptyGen<int>, false); Eval(3104, o is IEmptyGen<int>[], false); Eval(3105, o is INotEmptyGen<int>, false); Eval(3106, o is INotEmptyGen<int>[], false); Eval(3107, o is SimpleDelegate, false); Eval(3108, o is SimpleDelegate[], false); Eval(3109, o is GenericDelegate<int>, false); Eval(3110, o is GenericDelegate<int>[], false); Eval(3111, o is EmptyClass, false); Eval(3112, o is EmptyClass[], false); Eval(3113, o is NotEmptyClass, false); Eval(3114, o is NotEmptyClass[], false); Eval(3115, o is EmptyClassGen<int>, false); Eval(3116, o is EmptyClassGen<int>[], false); Eval(3117, o is NotEmptyClassGen<Guid>, false); Eval(3118, o is NotEmptyClassGen<Guid>[], false); Eval(3119, o is NotEmptyClassConstrainedGen<object>, false); Eval(3120, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3121, o is NestedClass, false); Eval(3122, o is NestedClass[], false); Eval(3123, o is NestedClassGen<Decimal>, false); Eval(3124, o is NestedClassGen<Decimal>[], false); Eval(3125, o is ImplementOneInterfaceC, false); Eval(3126, o is ImplementOneInterfaceC[], false); Eval(3127, o is ImplementTwoInterfaceC, false); Eval(3128, o is ImplementTwoInterfaceC[], false); Eval(3129, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3130, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3131, o is ImplementTwoInterfaceGenC<int>, false); Eval(3132, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3133, o is ImplementAllInterfaceC<int>, false); Eval(3134, o is ImplementAllInterfaceC<int>[], false); Eval(3135, o is SealedClass, false); Eval(3136, o is SealedClass[], false); } { NestedStruct? v = default(NestedStruct); ValueType o = v; Eval(3137, o is EmptyStruct, false); Eval(3138, o is EmptyStruct[], false); Eval(3139, o is EmptyStruct?, false); Eval(3140, o is EmptyStruct?[], false); Eval(3141, o is NotEmptyStruct, false); Eval(3142, o is NotEmptyStruct[], false); Eval(3143, o is NotEmptyStruct?, false); Eval(3144, o is NotEmptyStruct?[], false); Eval(3145, o is EmptyStructGen<int>, false); Eval(3146, o is EmptyStructGen<int>[], false); Eval(3147, o is EmptyStructGen<int>?, false); Eval(3148, o is EmptyStructGen<int>?[], false); Eval(3149, o is NotEmptyStructGen<Guid>, false); Eval(3150, o is NotEmptyStructGen<Guid>[], false); Eval(3151, o is NotEmptyStructGen<Guid>?, false); Eval(3152, o is NotEmptyStructGen<Guid>?[], false); Eval(3153, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3154, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3155, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3156, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3157, o is NestedStruct, true); Eval(3158, o is NestedStruct[], false); Eval(3159, o is NestedStruct?, true); Eval(3160, o is NestedStruct?[], false); Eval(3161, o is NestedStructGen<Decimal>, false); Eval(3162, o is NestedStructGen<Decimal>[], false); Eval(3163, o is NestedStructGen<Decimal>?, false); Eval(3164, o is NestedStructGen<Decimal>?[], false); Eval(3165, o is ExplicitFieldOffsetStruct, false); Eval(3166, o is ExplicitFieldOffsetStruct[], false); Eval(3167, o is ExplicitFieldOffsetStruct?, false); Eval(3168, o is ExplicitFieldOffsetStruct?[], false); Eval(3177, o is MarshalAsStruct, false); Eval(3178, o is MarshalAsStruct[], false); Eval(3179, o is MarshalAsStruct?, false); Eval(3180, o is MarshalAsStruct?[], false); Eval(3181, o is ImplementOneInterface, false); Eval(3182, o is ImplementOneInterface[], false); Eval(3183, o is ImplementOneInterface?, false); Eval(3184, o is ImplementOneInterface?[], false); Eval(3185, o is ImplementTwoInterface, false); Eval(3186, o is ImplementTwoInterface[], false); Eval(3187, o is ImplementTwoInterface?, false); Eval(3188, o is ImplementTwoInterface?[], false); Eval(3189, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3190, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3191, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3192, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3193, o is ImplementTwoInterfaceGen<int>, false); Eval(3194, o is ImplementTwoInterfaceGen<int>[], false); Eval(3195, o is ImplementTwoInterfaceGen<int>?, false); Eval(3196, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3197, o is ImplementAllInterface<int>, false); Eval(3198, o is ImplementAllInterface<int>[], false); Eval(3199, o is ImplementAllInterface<int>?, false); Eval(3200, o is ImplementAllInterface<int>?[], false); Eval(3201, o is IntE, false); Eval(3202, o is IntE[], false); Eval(3203, o is IntE?, false); Eval(3204, o is IntE?[], false); Eval(3205, o is ByteE, false); Eval(3206, o is ByteE[], false); Eval(3207, o is ByteE?, false); Eval(3208, o is ByteE?[], false); Eval(3209, o is LongE, false); Eval(3210, o is LongE[], false); Eval(3211, o is LongE?, false); Eval(3212, o is LongE?[], false); Eval(3213, o is char, false); Eval(3214, o is char[], false); Eval(3215, o is char?, false); Eval(3216, o is char?[], false); Eval(3217, o is bool, false); Eval(3218, o is bool[], false); Eval(3219, o is bool?, false); Eval(3220, o is bool?[], false); Eval(3221, o is byte, false); Eval(3222, o is byte[], false); Eval(3223, o is byte?, false); Eval(3224, o is byte?[], false); Eval(3225, o is sbyte, false); Eval(3226, o is sbyte[], false); Eval(3227, o is sbyte?, false); Eval(3228, o is sbyte?[], false); Eval(3229, o is short, false); Eval(3230, o is short[], false); Eval(3231, o is short?, false); Eval(3232, o is short?[], false); Eval(3233, o is ushort, false); Eval(3234, o is ushort[], false); Eval(3235, o is ushort?, false); Eval(3236, o is ushort?[], false); Eval(3237, o is int, false); Eval(3238, o is int[], false); Eval(3239, o is int?, false); Eval(3240, o is int?[], false); Eval(3241, o is uint, false); Eval(3242, o is uint[], false); Eval(3243, o is uint?, false); Eval(3244, o is uint?[], false); Eval(3245, o is long, false); Eval(3246, o is long[], false); Eval(3247, o is long?, false); Eval(3248, o is long?[], false); Eval(3249, o is ulong, false); Eval(3250, o is ulong[], false); Eval(3251, o is ulong?, false); Eval(3252, o is ulong?[], false); Eval(3253, o is float, false); Eval(3254, o is float[], false); Eval(3255, o is float?, false); Eval(3256, o is float?[], false); Eval(3257, o is double, false); Eval(3258, o is double[], false); Eval(3259, o is double?, false); Eval(3260, o is double?[], false); Eval(3261, o is decimal, false); Eval(3262, o is decimal[], false); Eval(3263, o is decimal?, false); Eval(3264, o is decimal?[], false); Eval(3265, o is IntPtr, false); Eval(3266, o is IntPtr[], false); Eval(3267, o is IntPtr?, false); Eval(3268, o is IntPtr?[], false); Eval(3269, o is UIntPtr, false); Eval(3270, o is UIntPtr[], false); Eval(3271, o is UIntPtr?, false); Eval(3272, o is UIntPtr?[], false); Eval(3273, o is Guid, false); Eval(3274, o is Guid[], false); Eval(3275, o is Guid?, false); Eval(3276, o is Guid?[], false); Eval(3277, o is GCHandle, false); Eval(3278, o is GCHandle[], false); Eval(3279, o is GCHandle?, false); Eval(3280, o is GCHandle?[], false); Eval(3281, o is object, true); Eval(3282, o is object[], false); Eval(3283, o is string, false); Eval(3284, o is string[], false); Eval(3285, o is ValueType, true); Eval(3286, o is ValueType[], false); Eval(3287, o is Array, false); Eval(3288, o is Array[], false); Eval(3289, o is Enum, false); Eval(3290, o is Enum[], false); Eval(3291, o is Delegate, false); Eval(3292, o is Delegate[], false); Eval(3293, o is MulticastDelegate, false); Eval(3294, o is MulticastDelegate[], false); Eval(3295, o is IEmpty, false); Eval(3296, o is IEmpty[], false); Eval(3297, o is INotEmpty, false); Eval(3298, o is INotEmpty[], false); Eval(3299, o is IEmptyGen<int>, false); Eval(3300, o is IEmptyGen<int>[], false); Eval(3301, o is INotEmptyGen<int>, false); Eval(3302, o is INotEmptyGen<int>[], false); Eval(3303, o is SimpleDelegate, false); Eval(3304, o is SimpleDelegate[], false); Eval(3305, o is GenericDelegate<int>, false); Eval(3306, o is GenericDelegate<int>[], false); Eval(3307, o is EmptyClass, false); Eval(3308, o is EmptyClass[], false); Eval(3309, o is NotEmptyClass, false); Eval(3310, o is NotEmptyClass[], false); Eval(3311, o is EmptyClassGen<int>, false); Eval(3312, o is EmptyClassGen<int>[], false); Eval(3313, o is NotEmptyClassGen<Guid>, false); Eval(3314, o is NotEmptyClassGen<Guid>[], false); Eval(3315, o is NotEmptyClassConstrainedGen<object>, false); Eval(3316, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3317, o is NestedClass, false); Eval(3318, o is NestedClass[], false); Eval(3319, o is NestedClassGen<Decimal>, false); Eval(3320, o is NestedClassGen<Decimal>[], false); Eval(3321, o is ImplementOneInterfaceC, false); Eval(3322, o is ImplementOneInterfaceC[], false); Eval(3323, o is ImplementTwoInterfaceC, false); Eval(3324, o is ImplementTwoInterfaceC[], false); Eval(3325, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3326, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3327, o is ImplementTwoInterfaceGenC<int>, false); Eval(3328, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3329, o is ImplementAllInterfaceC<int>, false); Eval(3330, o is ImplementAllInterfaceC<int>[], false); Eval(3331, o is SealedClass, false); Eval(3332, o is SealedClass[], false); } { NestedStruct? v = default(NestedStruct?); ValueType o = v; Eval(3333, o is EmptyStruct, false); Eval(3334, o is EmptyStruct[], false); Eval(3335, o is EmptyStruct?, false); Eval(3336, o is EmptyStruct?[], false); Eval(3337, o is NotEmptyStruct, false); Eval(3338, o is NotEmptyStruct[], false); Eval(3339, o is NotEmptyStruct?, false); Eval(3340, o is NotEmptyStruct?[], false); Eval(3341, o is EmptyStructGen<int>, false); Eval(3342, o is EmptyStructGen<int>[], false); Eval(3343, o is EmptyStructGen<int>?, false); Eval(3344, o is EmptyStructGen<int>?[], false); Eval(3345, o is NotEmptyStructGen<Guid>, false); Eval(3346, o is NotEmptyStructGen<Guid>[], false); Eval(3347, o is NotEmptyStructGen<Guid>?, false); Eval(3348, o is NotEmptyStructGen<Guid>?[], false); Eval(3349, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3350, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3351, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3352, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3353, o is NestedStruct, false); Eval(3354, o is NestedStruct[], false); Eval(3355, o is NestedStruct?, false); Eval(3356, o is NestedStruct?[], false); Eval(3357, o is NestedStructGen<Decimal>, false); Eval(3358, o is NestedStructGen<Decimal>[], false); Eval(3359, o is NestedStructGen<Decimal>?, false); Eval(3360, o is NestedStructGen<Decimal>?[], false); Eval(3361, o is ExplicitFieldOffsetStruct, false); Eval(3362, o is ExplicitFieldOffsetStruct[], false); Eval(3363, o is ExplicitFieldOffsetStruct?, false); Eval(3364, o is ExplicitFieldOffsetStruct?[], false); Eval(3373, o is MarshalAsStruct, false); Eval(3374, o is MarshalAsStruct[], false); Eval(3375, o is MarshalAsStruct?, false); Eval(3376, o is MarshalAsStruct?[], false); Eval(3377, o is ImplementOneInterface, false); Eval(3378, o is ImplementOneInterface[], false); Eval(3379, o is ImplementOneInterface?, false); Eval(3380, o is ImplementOneInterface?[], false); Eval(3381, o is ImplementTwoInterface, false); Eval(3382, o is ImplementTwoInterface[], false); Eval(3383, o is ImplementTwoInterface?, false); Eval(3384, o is ImplementTwoInterface?[], false); Eval(3385, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3386, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3387, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3388, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3389, o is ImplementTwoInterfaceGen<int>, false); Eval(3390, o is ImplementTwoInterfaceGen<int>[], false); Eval(3391, o is ImplementTwoInterfaceGen<int>?, false); Eval(3392, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3393, o is ImplementAllInterface<int>, false); Eval(3394, o is ImplementAllInterface<int>[], false); Eval(3395, o is ImplementAllInterface<int>?, false); Eval(3396, o is ImplementAllInterface<int>?[], false); Eval(3397, o is IntE, false); Eval(3398, o is IntE[], false); Eval(3399, o is IntE?, false); Eval(3400, o is IntE?[], false); Eval(3401, o is ByteE, false); Eval(3402, o is ByteE[], false); Eval(3403, o is ByteE?, false); Eval(3404, o is ByteE?[], false); Eval(3405, o is LongE, false); Eval(3406, o is LongE[], false); Eval(3407, o is LongE?, false); Eval(3408, o is LongE?[], false); Eval(3409, o is char, false); Eval(3410, o is char[], false); Eval(3411, o is char?, false); Eval(3412, o is char?[], false); Eval(3413, o is bool, false); Eval(3414, o is bool[], false); Eval(3415, o is bool?, false); Eval(3416, o is bool?[], false); Eval(3417, o is byte, false); Eval(3418, o is byte[], false); Eval(3419, o is byte?, false); Eval(3420, o is byte?[], false); Eval(3421, o is sbyte, false); Eval(3422, o is sbyte[], false); Eval(3423, o is sbyte?, false); Eval(3424, o is sbyte?[], false); Eval(3425, o is short, false); Eval(3426, o is short[], false); Eval(3427, o is short?, false); Eval(3428, o is short?[], false); Eval(3429, o is ushort, false); Eval(3430, o is ushort[], false); Eval(3431, o is ushort?, false); Eval(3432, o is ushort?[], false); Eval(3433, o is int, false); Eval(3434, o is int[], false); Eval(3435, o is int?, false); Eval(3436, o is int?[], false); Eval(3437, o is uint, false); Eval(3438, o is uint[], false); Eval(3439, o is uint?, false); Eval(3440, o is uint?[], false); Eval(3441, o is long, false); Eval(3442, o is long[], false); Eval(3443, o is long?, false); Eval(3444, o is long?[], false); Eval(3445, o is ulong, false); Eval(3446, o is ulong[], false); Eval(3447, o is ulong?, false); Eval(3448, o is ulong?[], false); Eval(3449, o is float, false); Eval(3450, o is float[], false); Eval(3451, o is float?, false); Eval(3452, o is float?[], false); Eval(3453, o is double, false); Eval(3454, o is double[], false); Eval(3455, o is double?, false); Eval(3456, o is double?[], false); Eval(3457, o is decimal, false); Eval(3458, o is decimal[], false); Eval(3459, o is decimal?, false); Eval(3460, o is decimal?[], false); Eval(3461, o is IntPtr, false); Eval(3462, o is IntPtr[], false); Eval(3463, o is IntPtr?, false); Eval(3464, o is IntPtr?[], false); Eval(3465, o is UIntPtr, false); Eval(3466, o is UIntPtr[], false); Eval(3467, o is UIntPtr?, false); Eval(3468, o is UIntPtr?[], false); Eval(3469, o is Guid, false); Eval(3470, o is Guid[], false); Eval(3471, o is Guid?, false); Eval(3472, o is Guid?[], false); Eval(3473, o is GCHandle, false); Eval(3474, o is GCHandle[], false); Eval(3475, o is GCHandle?, false); Eval(3476, o is GCHandle?[], false); Eval(3477, o is object, false); Eval(3478, o is object[], false); Eval(3479, o is string, false); Eval(3480, o is string[], false); Eval(3481, o is ValueType, false); Eval(3482, o is ValueType[], false); Eval(3483, o is Array, false); Eval(3484, o is Array[], false); Eval(3485, o is Enum, false); Eval(3486, o is Enum[], false); Eval(3487, o is Delegate, false); Eval(3488, o is Delegate[], false); Eval(3489, o is MulticastDelegate, false); Eval(3490, o is MulticastDelegate[], false); Eval(3491, o is IEmpty, false); Eval(3492, o is IEmpty[], false); Eval(3493, o is INotEmpty, false); Eval(3494, o is INotEmpty[], false); Eval(3495, o is IEmptyGen<int>, false); Eval(3496, o is IEmptyGen<int>[], false); Eval(3497, o is INotEmptyGen<int>, false); Eval(3498, o is INotEmptyGen<int>[], false); Eval(3499, o is SimpleDelegate, false); Eval(3500, o is SimpleDelegate[], false); Eval(3501, o is GenericDelegate<int>, false); Eval(3502, o is GenericDelegate<int>[], false); Eval(3503, o is EmptyClass, false); Eval(3504, o is EmptyClass[], false); Eval(3505, o is NotEmptyClass, false); Eval(3506, o is NotEmptyClass[], false); Eval(3507, o is EmptyClassGen<int>, false); Eval(3508, o is EmptyClassGen<int>[], false); Eval(3509, o is NotEmptyClassGen<Guid>, false); Eval(3510, o is NotEmptyClassGen<Guid>[], false); Eval(3511, o is NotEmptyClassConstrainedGen<object>, false); Eval(3512, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3513, o is NestedClass, false); Eval(3514, o is NestedClass[], false); Eval(3515, o is NestedClassGen<Decimal>, false); Eval(3516, o is NestedClassGen<Decimal>[], false); Eval(3517, o is ImplementOneInterfaceC, false); Eval(3518, o is ImplementOneInterfaceC[], false); Eval(3519, o is ImplementTwoInterfaceC, false); Eval(3520, o is ImplementTwoInterfaceC[], false); Eval(3521, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3522, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3523, o is ImplementTwoInterfaceGenC<int>, false); Eval(3524, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3525, o is ImplementAllInterfaceC<int>, false); Eval(3526, o is ImplementAllInterfaceC<int>[], false); Eval(3527, o is SealedClass, false); Eval(3528, o is SealedClass[], false); } } // end of test case 0006 private static void TestCase0007() { { NestedStructGen<Decimal> v = default(NestedStructGen<Decimal>); ValueType o = v; Eval(3529, o is EmptyStruct, false); Eval(3530, o is EmptyStruct[], false); Eval(3531, o is EmptyStruct?, false); Eval(3532, o is EmptyStruct?[], false); Eval(3533, o is NotEmptyStruct, false); Eval(3534, o is NotEmptyStruct[], false); Eval(3535, o is NotEmptyStruct?, false); Eval(3536, o is NotEmptyStruct?[], false); Eval(3537, o is EmptyStructGen<int>, false); Eval(3538, o is EmptyStructGen<int>[], false); Eval(3539, o is EmptyStructGen<int>?, false); Eval(3540, o is EmptyStructGen<int>?[], false); Eval(3541, o is NotEmptyStructGen<Guid>, false); Eval(3542, o is NotEmptyStructGen<Guid>[], false); Eval(3543, o is NotEmptyStructGen<Guid>?, false); Eval(3544, o is NotEmptyStructGen<Guid>?[], false); Eval(3545, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3546, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3547, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3548, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3549, o is NestedStruct, false); Eval(3550, o is NestedStruct[], false); Eval(3551, o is NestedStruct?, false); Eval(3552, o is NestedStruct?[], false); Eval(3553, o is NestedStructGen<Decimal>, true); Eval(3554, o is NestedStructGen<Decimal>[], false); Eval(3555, o is NestedStructGen<Decimal>?, true); Eval(3556, o is NestedStructGen<Decimal>?[], false); Eval(3557, o is ExplicitFieldOffsetStruct, false); Eval(3558, o is ExplicitFieldOffsetStruct[], false); Eval(3559, o is ExplicitFieldOffsetStruct?, false); Eval(3560, o is ExplicitFieldOffsetStruct?[], false); Eval(3569, o is MarshalAsStruct, false); Eval(3570, o is MarshalAsStruct[], false); Eval(3571, o is MarshalAsStruct?, false); Eval(3572, o is MarshalAsStruct?[], false); Eval(3573, o is ImplementOneInterface, false); Eval(3574, o is ImplementOneInterface[], false); Eval(3575, o is ImplementOneInterface?, false); Eval(3576, o is ImplementOneInterface?[], false); Eval(3577, o is ImplementTwoInterface, false); Eval(3578, o is ImplementTwoInterface[], false); Eval(3579, o is ImplementTwoInterface?, false); Eval(3580, o is ImplementTwoInterface?[], false); Eval(3581, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3582, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3583, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3584, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3585, o is ImplementTwoInterfaceGen<int>, false); Eval(3586, o is ImplementTwoInterfaceGen<int>[], false); Eval(3587, o is ImplementTwoInterfaceGen<int>?, false); Eval(3588, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3589, o is ImplementAllInterface<int>, false); Eval(3590, o is ImplementAllInterface<int>[], false); Eval(3591, o is ImplementAllInterface<int>?, false); Eval(3592, o is ImplementAllInterface<int>?[], false); Eval(3593, o is IntE, false); Eval(3594, o is IntE[], false); Eval(3595, o is IntE?, false); Eval(3596, o is IntE?[], false); Eval(3597, o is ByteE, false); Eval(3598, o is ByteE[], false); Eval(3599, o is ByteE?, false); Eval(3600, o is ByteE?[], false); Eval(3601, o is LongE, false); Eval(3602, o is LongE[], false); Eval(3603, o is LongE?, false); Eval(3604, o is LongE?[], false); Eval(3605, o is char, false); Eval(3606, o is char[], false); Eval(3607, o is char?, false); Eval(3608, o is char?[], false); Eval(3609, o is bool, false); Eval(3610, o is bool[], false); Eval(3611, o is bool?, false); Eval(3612, o is bool?[], false); Eval(3613, o is byte, false); Eval(3614, o is byte[], false); Eval(3615, o is byte?, false); Eval(3616, o is byte?[], false); Eval(3617, o is sbyte, false); Eval(3618, o is sbyte[], false); Eval(3619, o is sbyte?, false); Eval(3620, o is sbyte?[], false); Eval(3621, o is short, false); Eval(3622, o is short[], false); Eval(3623, o is short?, false); Eval(3624, o is short?[], false); Eval(3625, o is ushort, false); Eval(3626, o is ushort[], false); Eval(3627, o is ushort?, false); Eval(3628, o is ushort?[], false); Eval(3629, o is int, false); Eval(3630, o is int[], false); Eval(3631, o is int?, false); Eval(3632, o is int?[], false); Eval(3633, o is uint, false); Eval(3634, o is uint[], false); Eval(3635, o is uint?, false); Eval(3636, o is uint?[], false); Eval(3637, o is long, false); Eval(3638, o is long[], false); Eval(3639, o is long?, false); Eval(3640, o is long?[], false); Eval(3641, o is ulong, false); Eval(3642, o is ulong[], false); Eval(3643, o is ulong?, false); Eval(3644, o is ulong?[], false); Eval(3645, o is float, false); Eval(3646, o is float[], false); Eval(3647, o is float?, false); Eval(3648, o is float?[], false); Eval(3649, o is double, false); Eval(3650, o is double[], false); Eval(3651, o is double?, false); Eval(3652, o is double?[], false); Eval(3653, o is decimal, false); Eval(3654, o is decimal[], false); Eval(3655, o is decimal?, false); Eval(3656, o is decimal?[], false); Eval(3657, o is IntPtr, false); Eval(3658, o is IntPtr[], false); Eval(3659, o is IntPtr?, false); Eval(3660, o is IntPtr?[], false); Eval(3661, o is UIntPtr, false); Eval(3662, o is UIntPtr[], false); Eval(3663, o is UIntPtr?, false); Eval(3664, o is UIntPtr?[], false); Eval(3665, o is Guid, false); Eval(3666, o is Guid[], false); Eval(3667, o is Guid?, false); Eval(3668, o is Guid?[], false); Eval(3669, o is GCHandle, false); Eval(3670, o is GCHandle[], false); Eval(3671, o is GCHandle?, false); Eval(3672, o is GCHandle?[], false); Eval(3673, o is object, true); Eval(3674, o is object[], false); Eval(3675, o is string, false); Eval(3676, o is string[], false); Eval(3677, o is ValueType, true); Eval(3678, o is ValueType[], false); Eval(3679, o is Array, false); Eval(3680, o is Array[], false); Eval(3681, o is Enum, false); Eval(3682, o is Enum[], false); Eval(3683, o is Delegate, false); Eval(3684, o is Delegate[], false); Eval(3685, o is MulticastDelegate, false); Eval(3686, o is MulticastDelegate[], false); Eval(3687, o is IEmpty, false); Eval(3688, o is IEmpty[], false); Eval(3689, o is INotEmpty, false); Eval(3690, o is INotEmpty[], false); Eval(3691, o is IEmptyGen<int>, false); Eval(3692, o is IEmptyGen<int>[], false); Eval(3693, o is INotEmptyGen<int>, false); Eval(3694, o is INotEmptyGen<int>[], false); Eval(3695, o is SimpleDelegate, false); Eval(3696, o is SimpleDelegate[], false); Eval(3697, o is GenericDelegate<int>, false); Eval(3698, o is GenericDelegate<int>[], false); Eval(3699, o is EmptyClass, false); Eval(3700, o is EmptyClass[], false); Eval(3701, o is NotEmptyClass, false); Eval(3702, o is NotEmptyClass[], false); Eval(3703, o is EmptyClassGen<int>, false); Eval(3704, o is EmptyClassGen<int>[], false); Eval(3705, o is NotEmptyClassGen<Guid>, false); Eval(3706, o is NotEmptyClassGen<Guid>[], false); Eval(3707, o is NotEmptyClassConstrainedGen<object>, false); Eval(3708, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3709, o is NestedClass, false); Eval(3710, o is NestedClass[], false); Eval(3711, o is NestedClassGen<Decimal>, false); Eval(3712, o is NestedClassGen<Decimal>[], false); Eval(3713, o is ImplementOneInterfaceC, false); Eval(3714, o is ImplementOneInterfaceC[], false); Eval(3715, o is ImplementTwoInterfaceC, false); Eval(3716, o is ImplementTwoInterfaceC[], false); Eval(3717, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3718, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3719, o is ImplementTwoInterfaceGenC<int>, false); Eval(3720, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3721, o is ImplementAllInterfaceC<int>, false); Eval(3722, o is ImplementAllInterfaceC<int>[], false); Eval(3723, o is SealedClass, false); Eval(3724, o is SealedClass[], false); } { NestedStructGen<Decimal>? v = default(NestedStructGen<Decimal>); ValueType o = v; Eval(3725, o is EmptyStruct, false); Eval(3726, o is EmptyStruct[], false); Eval(3727, o is EmptyStruct?, false); Eval(3728, o is EmptyStruct?[], false); Eval(3729, o is NotEmptyStruct, false); Eval(3730, o is NotEmptyStruct[], false); Eval(3731, o is NotEmptyStruct?, false); Eval(3732, o is NotEmptyStruct?[], false); Eval(3733, o is EmptyStructGen<int>, false); Eval(3734, o is EmptyStructGen<int>[], false); Eval(3735, o is EmptyStructGen<int>?, false); Eval(3736, o is EmptyStructGen<int>?[], false); Eval(3737, o is NotEmptyStructGen<Guid>, false); Eval(3738, o is NotEmptyStructGen<Guid>[], false); Eval(3739, o is NotEmptyStructGen<Guid>?, false); Eval(3740, o is NotEmptyStructGen<Guid>?[], false); Eval(3741, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3742, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3743, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3744, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3745, o is NestedStruct, false); Eval(3746, o is NestedStruct[], false); Eval(3747, o is NestedStruct?, false); Eval(3748, o is NestedStruct?[], false); Eval(3749, o is NestedStructGen<Decimal>, true); Eval(3750, o is NestedStructGen<Decimal>[], false); Eval(3751, o is NestedStructGen<Decimal>?, true); Eval(3752, o is NestedStructGen<Decimal>?[], false); Eval(3753, o is ExplicitFieldOffsetStruct, false); Eval(3754, o is ExplicitFieldOffsetStruct[], false); Eval(3755, o is ExplicitFieldOffsetStruct?, false); Eval(3756, o is ExplicitFieldOffsetStruct?[], false); Eval(3765, o is MarshalAsStruct, false); Eval(3766, o is MarshalAsStruct[], false); Eval(3767, o is MarshalAsStruct?, false); Eval(3768, o is MarshalAsStruct?[], false); Eval(3769, o is ImplementOneInterface, false); Eval(3770, o is ImplementOneInterface[], false); Eval(3771, o is ImplementOneInterface?, false); Eval(3772, o is ImplementOneInterface?[], false); Eval(3773, o is ImplementTwoInterface, false); Eval(3774, o is ImplementTwoInterface[], false); Eval(3775, o is ImplementTwoInterface?, false); Eval(3776, o is ImplementTwoInterface?[], false); Eval(3777, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3778, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3779, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3780, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3781, o is ImplementTwoInterfaceGen<int>, false); Eval(3782, o is ImplementTwoInterfaceGen<int>[], false); Eval(3783, o is ImplementTwoInterfaceGen<int>?, false); Eval(3784, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3785, o is ImplementAllInterface<int>, false); Eval(3786, o is ImplementAllInterface<int>[], false); Eval(3787, o is ImplementAllInterface<int>?, false); Eval(3788, o is ImplementAllInterface<int>?[], false); Eval(3789, o is IntE, false); Eval(3790, o is IntE[], false); Eval(3791, o is IntE?, false); Eval(3792, o is IntE?[], false); Eval(3793, o is ByteE, false); Eval(3794, o is ByteE[], false); Eval(3795, o is ByteE?, false); Eval(3796, o is ByteE?[], false); Eval(3797, o is LongE, false); Eval(3798, o is LongE[], false); Eval(3799, o is LongE?, false); Eval(3800, o is LongE?[], false); Eval(3801, o is char, false); Eval(3802, o is char[], false); Eval(3803, o is char?, false); Eval(3804, o is char?[], false); Eval(3805, o is bool, false); Eval(3806, o is bool[], false); Eval(3807, o is bool?, false); Eval(3808, o is bool?[], false); Eval(3809, o is byte, false); Eval(3810, o is byte[], false); Eval(3811, o is byte?, false); Eval(3812, o is byte?[], false); Eval(3813, o is sbyte, false); Eval(3814, o is sbyte[], false); Eval(3815, o is sbyte?, false); Eval(3816, o is sbyte?[], false); Eval(3817, o is short, false); Eval(3818, o is short[], false); Eval(3819, o is short?, false); Eval(3820, o is short?[], false); Eval(3821, o is ushort, false); Eval(3822, o is ushort[], false); Eval(3823, o is ushort?, false); Eval(3824, o is ushort?[], false); Eval(3825, o is int, false); Eval(3826, o is int[], false); Eval(3827, o is int?, false); Eval(3828, o is int?[], false); Eval(3829, o is uint, false); Eval(3830, o is uint[], false); Eval(3831, o is uint?, false); Eval(3832, o is uint?[], false); Eval(3833, o is long, false); Eval(3834, o is long[], false); Eval(3835, o is long?, false); Eval(3836, o is long?[], false); Eval(3837, o is ulong, false); Eval(3838, o is ulong[], false); Eval(3839, o is ulong?, false); Eval(3840, o is ulong?[], false); Eval(3841, o is float, false); Eval(3842, o is float[], false); Eval(3843, o is float?, false); Eval(3844, o is float?[], false); Eval(3845, o is double, false); Eval(3846, o is double[], false); Eval(3847, o is double?, false); Eval(3848, o is double?[], false); Eval(3849, o is decimal, false); Eval(3850, o is decimal[], false); Eval(3851, o is decimal?, false); Eval(3852, o is decimal?[], false); Eval(3853, o is IntPtr, false); Eval(3854, o is IntPtr[], false); Eval(3855, o is IntPtr?, false); Eval(3856, o is IntPtr?[], false); Eval(3857, o is UIntPtr, false); Eval(3858, o is UIntPtr[], false); Eval(3859, o is UIntPtr?, false); Eval(3860, o is UIntPtr?[], false); Eval(3861, o is Guid, false); Eval(3862, o is Guid[], false); Eval(3863, o is Guid?, false); Eval(3864, o is Guid?[], false); Eval(3865, o is GCHandle, false); Eval(3866, o is GCHandle[], false); Eval(3867, o is GCHandle?, false); Eval(3868, o is GCHandle?[], false); Eval(3869, o is object, true); Eval(3870, o is object[], false); Eval(3871, o is string, false); Eval(3872, o is string[], false); Eval(3873, o is ValueType, true); Eval(3874, o is ValueType[], false); Eval(3875, o is Array, false); Eval(3876, o is Array[], false); Eval(3877, o is Enum, false); Eval(3878, o is Enum[], false); Eval(3879, o is Delegate, false); Eval(3880, o is Delegate[], false); Eval(3881, o is MulticastDelegate, false); Eval(3882, o is MulticastDelegate[], false); Eval(3883, o is IEmpty, false); Eval(3884, o is IEmpty[], false); Eval(3885, o is INotEmpty, false); Eval(3886, o is INotEmpty[], false); Eval(3887, o is IEmptyGen<int>, false); Eval(3888, o is IEmptyGen<int>[], false); Eval(3889, o is INotEmptyGen<int>, false); Eval(3890, o is INotEmptyGen<int>[], false); Eval(3891, o is SimpleDelegate, false); Eval(3892, o is SimpleDelegate[], false); Eval(3893, o is GenericDelegate<int>, false); Eval(3894, o is GenericDelegate<int>[], false); Eval(3895, o is EmptyClass, false); Eval(3896, o is EmptyClass[], false); Eval(3897, o is NotEmptyClass, false); Eval(3898, o is NotEmptyClass[], false); Eval(3899, o is EmptyClassGen<int>, false); Eval(3900, o is EmptyClassGen<int>[], false); Eval(3901, o is NotEmptyClassGen<Guid>, false); Eval(3902, o is NotEmptyClassGen<Guid>[], false); Eval(3903, o is NotEmptyClassConstrainedGen<object>, false); Eval(3904, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3905, o is NestedClass, false); Eval(3906, o is NestedClass[], false); Eval(3907, o is NestedClassGen<Decimal>, false); Eval(3908, o is NestedClassGen<Decimal>[], false); Eval(3909, o is ImplementOneInterfaceC, false); Eval(3910, o is ImplementOneInterfaceC[], false); Eval(3911, o is ImplementTwoInterfaceC, false); Eval(3912, o is ImplementTwoInterfaceC[], false); Eval(3913, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3914, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3915, o is ImplementTwoInterfaceGenC<int>, false); Eval(3916, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3917, o is ImplementAllInterfaceC<int>, false); Eval(3918, o is ImplementAllInterfaceC<int>[], false); Eval(3919, o is SealedClass, false); Eval(3920, o is SealedClass[], false); } { NestedStructGen<Decimal>? v = default(NestedStructGen<Decimal>?); ValueType o = v; Eval(3921, o is EmptyStruct, false); Eval(3922, o is EmptyStruct[], false); Eval(3923, o is EmptyStruct?, false); Eval(3924, o is EmptyStruct?[], false); Eval(3925, o is NotEmptyStruct, false); Eval(3926, o is NotEmptyStruct[], false); Eval(3927, o is NotEmptyStruct?, false); Eval(3928, o is NotEmptyStruct?[], false); Eval(3929, o is EmptyStructGen<int>, false); Eval(3930, o is EmptyStructGen<int>[], false); Eval(3931, o is EmptyStructGen<int>?, false); Eval(3932, o is EmptyStructGen<int>?[], false); Eval(3933, o is NotEmptyStructGen<Guid>, false); Eval(3934, o is NotEmptyStructGen<Guid>[], false); Eval(3935, o is NotEmptyStructGen<Guid>?, false); Eval(3936, o is NotEmptyStructGen<Guid>?[], false); Eval(3937, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3938, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3939, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3940, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3941, o is NestedStruct, false); Eval(3942, o is NestedStruct[], false); Eval(3943, o is NestedStruct?, false); Eval(3944, o is NestedStruct?[], false); Eval(3945, o is NestedStructGen<Decimal>, false); Eval(3946, o is NestedStructGen<Decimal>[], false); Eval(3947, o is NestedStructGen<Decimal>?, false); Eval(3948, o is NestedStructGen<Decimal>?[], false); Eval(3949, o is ExplicitFieldOffsetStruct, false); Eval(3950, o is ExplicitFieldOffsetStruct[], false); Eval(3951, o is ExplicitFieldOffsetStruct?, false); Eval(3952, o is ExplicitFieldOffsetStruct?[], false); Eval(3961, o is MarshalAsStruct, false); Eval(3962, o is MarshalAsStruct[], false); Eval(3963, o is MarshalAsStruct?, false); Eval(3964, o is MarshalAsStruct?[], false); Eval(3965, o is ImplementOneInterface, false); Eval(3966, o is ImplementOneInterface[], false); Eval(3967, o is ImplementOneInterface?, false); Eval(3968, o is ImplementOneInterface?[], false); Eval(3969, o is ImplementTwoInterface, false); Eval(3970, o is ImplementTwoInterface[], false); Eval(3971, o is ImplementTwoInterface?, false); Eval(3972, o is ImplementTwoInterface?[], false); Eval(3973, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3974, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3975, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3976, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3977, o is ImplementTwoInterfaceGen<int>, false); Eval(3978, o is ImplementTwoInterfaceGen<int>[], false); Eval(3979, o is ImplementTwoInterfaceGen<int>?, false); Eval(3980, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3981, o is ImplementAllInterface<int>, false); Eval(3982, o is ImplementAllInterface<int>[], false); Eval(3983, o is ImplementAllInterface<int>?, false); Eval(3984, o is ImplementAllInterface<int>?[], false); Eval(3985, o is IntE, false); Eval(3986, o is IntE[], false); Eval(3987, o is IntE?, false); Eval(3988, o is IntE?[], false); Eval(3989, o is ByteE, false); Eval(3990, o is ByteE[], false); Eval(3991, o is ByteE?, false); Eval(3992, o is ByteE?[], false); Eval(3993, o is LongE, false); Eval(3994, o is LongE[], false); Eval(3995, o is LongE?, false); Eval(3996, o is LongE?[], false); Eval(3997, o is char, false); Eval(3998, o is char[], false); Eval(3999, o is char?, false); Eval(4000, o is char?[], false); Eval(4001, o is bool, false); Eval(4002, o is bool[], false); Eval(4003, o is bool?, false); Eval(4004, o is bool?[], false); Eval(4005, o is byte, false); Eval(4006, o is byte[], false); Eval(4007, o is byte?, false); Eval(4008, o is byte?[], false); Eval(4009, o is sbyte, false); Eval(4010, o is sbyte[], false); Eval(4011, o is sbyte?, false); Eval(4012, o is sbyte?[], false); Eval(4013, o is short, false); Eval(4014, o is short[], false); Eval(4015, o is short?, false); Eval(4016, o is short?[], false); Eval(4017, o is ushort, false); Eval(4018, o is ushort[], false); Eval(4019, o is ushort?, false); Eval(4020, o is ushort?[], false); Eval(4021, o is int, false); Eval(4022, o is int[], false); Eval(4023, o is int?, false); Eval(4024, o is int?[], false); Eval(4025, o is uint, false); Eval(4026, o is uint[], false); Eval(4027, o is uint?, false); Eval(4028, o is uint?[], false); Eval(4029, o is long, false); Eval(4030, o is long[], false); Eval(4031, o is long?, false); Eval(4032, o is long?[], false); Eval(4033, o is ulong, false); Eval(4034, o is ulong[], false); Eval(4035, o is ulong?, false); Eval(4036, o is ulong?[], false); Eval(4037, o is float, false); Eval(4038, o is float[], false); Eval(4039, o is float?, false); Eval(4040, o is float?[], false); Eval(4041, o is double, false); Eval(4042, o is double[], false); Eval(4043, o is double?, false); Eval(4044, o is double?[], false); Eval(4045, o is decimal, false); Eval(4046, o is decimal[], false); Eval(4047, o is decimal?, false); Eval(4048, o is decimal?[], false); Eval(4049, o is IntPtr, false); Eval(4050, o is IntPtr[], false); Eval(4051, o is IntPtr?, false); Eval(4052, o is IntPtr?[], false); Eval(4053, o is UIntPtr, false); Eval(4054, o is UIntPtr[], false); Eval(4055, o is UIntPtr?, false); Eval(4056, o is UIntPtr?[], false); Eval(4057, o is Guid, false); Eval(4058, o is Guid[], false); Eval(4059, o is Guid?, false); Eval(4060, o is Guid?[], false); Eval(4061, o is GCHandle, false); Eval(4062, o is GCHandle[], false); Eval(4063, o is GCHandle?, false); Eval(4064, o is GCHandle?[], false); Eval(4065, o is object, false); Eval(4066, o is object[], false); Eval(4067, o is string, false); Eval(4068, o is string[], false); Eval(4069, o is ValueType, false); Eval(4070, o is ValueType[], false); Eval(4071, o is Array, false); Eval(4072, o is Array[], false); Eval(4073, o is Enum, false); Eval(4074, o is Enum[], false); Eval(4075, o is Delegate, false); Eval(4076, o is Delegate[], false); Eval(4077, o is MulticastDelegate, false); Eval(4078, o is MulticastDelegate[], false); Eval(4079, o is IEmpty, false); Eval(4080, o is IEmpty[], false); Eval(4081, o is INotEmpty, false); Eval(4082, o is INotEmpty[], false); Eval(4083, o is IEmptyGen<int>, false); Eval(4084, o is IEmptyGen<int>[], false); Eval(4085, o is INotEmptyGen<int>, false); Eval(4086, o is INotEmptyGen<int>[], false); Eval(4087, o is SimpleDelegate, false); Eval(4088, o is SimpleDelegate[], false); Eval(4089, o is GenericDelegate<int>, false); Eval(4090, o is GenericDelegate<int>[], false); Eval(4091, o is EmptyClass, false); Eval(4092, o is EmptyClass[], false); Eval(4093, o is NotEmptyClass, false); Eval(4094, o is NotEmptyClass[], false); Eval(4095, o is EmptyClassGen<int>, false); Eval(4096, o is EmptyClassGen<int>[], false); Eval(4097, o is NotEmptyClassGen<Guid>, false); Eval(4098, o is NotEmptyClassGen<Guid>[], false); Eval(4099, o is NotEmptyClassConstrainedGen<object>, false); Eval(4100, o is NotEmptyClassConstrainedGen<object>[], false); Eval(4101, o is NestedClass, false); Eval(4102, o is NestedClass[], false); Eval(4103, o is NestedClassGen<Decimal>, false); Eval(4104, o is NestedClassGen<Decimal>[], false); Eval(4105, o is ImplementOneInterfaceC, false); Eval(4106, o is ImplementOneInterfaceC[], false); Eval(4107, o is ImplementTwoInterfaceC, false); Eval(4108, o is ImplementTwoInterfaceC[], false); Eval(4109, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(4110, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(4111, o is ImplementTwoInterfaceGenC<int>, false); Eval(4112, o is ImplementTwoInterfaceGenC<int>[], false); Eval(4113, o is ImplementAllInterfaceC<int>, false); Eval(4114, o is ImplementAllInterfaceC<int>[], false); Eval(4115, o is SealedClass, false); Eval(4116, o is SealedClass[], false); } } // end of test case 0007 private static void TestCase0008() { { ExplicitFieldOffsetStruct v = default(ExplicitFieldOffsetStruct); ValueType o = v; Eval(4117, o is EmptyStruct, false); Eval(4118, o is EmptyStruct[], false); Eval(4119, o is EmptyStruct?, false); Eval(4120, o is EmptyStruct?[], false); Eval(4121, o is NotEmptyStruct, false); Eval(4122, o is NotEmptyStruct[], false); Eval(4123, o is NotEmptyStruct?, false); Eval(4124, o is NotEmptyStruct?[], false); Eval(4125, o is EmptyStructGen<int>, false); Eval(4126, o is EmptyStructGen<int>[], false); Eval(4127, o is EmptyStructGen<int>?, false); Eval(4128, o is EmptyStructGen<int>?[], false); Eval(4129, o is NotEmptyStructGen<Guid>, false); Eval(4130, o is NotEmptyStructGen<Guid>[], false); Eval(4131, o is NotEmptyStructGen<Guid>?, false); Eval(4132, o is NotEmptyStructGen<Guid>?[], false); Eval(4133, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(4134, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(4135, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(4136, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(4137, o is NestedStruct, false); Eval(4138, o is NestedStruct[], false); Eval(4139, o is NestedStruct?, false); Eval(4140, o is NestedStruct?[], false); Eval(4141, o is NestedStructGen<Decimal>, false); Eval(4142, o is NestedStructGen<Decimal>[], false); Eval(4143, o is NestedStructGen<Decimal>?, false); Eval(4144, o is NestedStructGen<Decimal>?[], false); Eval(4145, o is ExplicitFieldOffsetStruct, true); Eval(4146, o is ExplicitFieldOffsetStruct[], false); Eval(4147, o is ExplicitFieldOffsetStruct?, true); Eval(4148, o is ExplicitFieldOffsetStruct?[], false); Eval(4157, o is MarshalAsStruct, false); Eval(4158, o is MarshalAsStruct[], false); Eval(4159, o is MarshalAsStruct?, false); Eval(4160, o is MarshalAsStruct?[], false); Eval(4161, o is ImplementOneInterface, false); Eval(4162, o is ImplementOneInterface[], false); Eval(4163, o is ImplementOneInterface?, false); Eval(4164, o is ImplementOneInterface?[], false); Eval(4165, o is ImplementTwoInterface, false); Eval(4166, o is ImplementTwoInterface[], false); Eval(4167, o is ImplementTwoInterface?, false); Eval(4168, o is ImplementTwoInterface?[], false); Eval(4169, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(4170, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(4171, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(4172, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(4173, o is ImplementTwoInterfaceGen<int>, false); Eval(4174, o is ImplementTwoInterfaceGen<int>[], false); Eval(4175, o is ImplementTwoInterfaceGen<int>?, false); Eval(4176, o is ImplementTwoInterfaceGen<int>?[], false); Eval(4177, o is ImplementAllInterface<int>, false); Eval(4178, o is ImplementAllInterface<int>[], false); Eval(4179, o is ImplementAllInterface<int>?, false); Eval(4180, o is ImplementAllInterface<int>?[], false); Eval(4181, o is IntE, false); Eval(4182, o is IntE[], false); Eval(4183, o is IntE?, false); Eval(4184, o is IntE?[], false); Eval(4185, o is ByteE, false); Eval(4186, o is ByteE[], false); Eval(4187, o is ByteE?, false); Eval(4188, o is ByteE?[], false); Eval(4189, o is LongE, false); Eval(4190, o is LongE[], false); Eval(4191, o is LongE?, false); Eval(4192, o is LongE?[], false); Eval(4193, o is char, false); Eval(4194, o is char[], false); Eval(4195, o is char?, false); Eval(4196, o is char?[], false); Eval(4197, o is bool, false); Eval(4198, o is bool[], false); Eval(4199, o is bool?, false); Eval(4200, o is bool?[], false); Eval(4201, o is byte, false); Eval(4202, o is byte[], false); Eval(4203, o is byte?, false); Eval(4204, o is byte?[], false); Eval(4205, o is sbyte, false); Eval(4206, o is sbyte[], false); Eval(4207, o is sbyte?, false); Eval(4208, o is sbyte?[], false); Eval(4209, o is short, false); Eval(4210, o is short[], false); Eval(4211, o is short?, false); Eval(4212, o is short?[], false); Eval(4213, o is ushort, false); Eval(4214, o is ushort[], false); Eval(4215, o is ushort?, false); Eval(4216, o is ushort?[], false); Eval(4217, o is int, false); Eval(4218, o is int[], false); Eval(4219, o is int?, false); Eval(4220, o is int?[], false); Eval(4221, o is uint, false); Eval(4222, o is uint[], false); Eval(4223, o is uint?, false); Eval(4224, o is uint?[], false); Eval(4225, o is long, false); Eval(4226, o is long[], false); Eval(4227, o is long?, false); Eval(4228, o is long?[], false); Eval(4229, o is ulong, false); Eval(4230, o is ulong[], false); Eval(4231, o is ulong?, false); Eval(4232, o is ulong?[], false); Eval(4233, o is float, false); Eval(4234, o is float[], false); Eval(4235, o is float?, false); Eval(4236, o is float?[], false); Eval(4237, o is double, false); Eval(4238, o is double[], false); Eval(4239, o is double?, false); Eval(4240, o is double?[], false); Eval(4241, o is decimal, false); Eval(4242, o is decimal[], false); Eval(4243, o is decimal?, false); Eval(4244, o is decimal?[], false); Eval(4245, o is IntPtr, false); Eval(4246, o is IntPtr[], false); Eval(4247, o is IntPtr?, false); Eval(4248, o is IntPtr?[], false); Eval(4249, o is UIntPtr, false); Eval(4250, o is UIntPtr[], false); Eval(4251, o is UIntPtr?, false); Eval(4252, o is UIntPtr?[], false); Eval(4253, o is Guid, false); Eval(4254, o is Guid[], false); Eval(4255, o is Guid?, false); Eval(4256, o is Guid?[], false); Eval(4257, o is GCHandle, false); Eval(4258, o is GCHandle[], false); Eval(4259, o is GCHandle?, false); Eval(4260, o is GCHandle?[], false); Eval(4261, o is object, true); Eval(4262, o is object[], false); Eval(4263, o is string, false); Eval(4264, o is string[], false); Eval(4265, o is ValueType, true); Eval(4266, o is ValueType[], false); Eval(4267, o is Array, false); Eval(4268, o is Array[], false); Eval(4269, o is Enum, false); Eval(4270, o is Enum[], false); Eval(4271, o is Delegate, false); Eval(4272, o is Delegate[], false); Eval(4273, o is MulticastDelegate, false); Eval(4274, o is MulticastDelegate[], false); Eval(4275, o is IEmpty, false); Eval(4276, o is IEmpty[], false); Eval(4277, o is INotEmpty, false); Eval(4278, o is INotEmpty[], false); Eval(4279, o is IEmptyGen<int>, false); Eval(4280, o is IEmptyGen<int>[], false); Eval(4281, o is INotEmptyGen<int>, false); Eval(4282, o is INotEmptyGen<int>[], false); Eval(4283, o is SimpleDelegate, false); Eval(4284, o is SimpleDelegate[], false); Eval(4285, o is GenericDelegate<int>, false); Eval(4286, o is GenericDelegate<int>[], false); Eval(4287, o is EmptyClass, false); Eval(4288, o is EmptyClass[], false); Eval(4289, o is NotEmptyClass, false); Eval(4290, o is NotEmptyClass[], false); Eval(4291, o is EmptyClassGen<int>, false); Eval(4292, o is EmptyClassGen<int>[], false); Eval(4293, o is NotEmptyClassGen<Guid>, false); Eval(4294, o is NotEmptyClassGen<Guid>[], false); Eval(4295, o is NotEmptyClassConstrainedGen<object>, false); Eval(4296, o is NotEmptyClassConstrainedGen<object>[], false); Eval(4297, o is NestedClass, false); Eval(4298, o is NestedClass[], false); Eval(4299, o is NestedClassGen<Decimal>, false); Eval(4300, o is NestedClassGen<Decimal>[], false); Eval(4301, o is ImplementOneInterfaceC, false); Eval(4302, o is ImplementOneInterfaceC[], false); Eval(4303, o is ImplementTwoInterfaceC, false); Eval(4304, o is ImplementTwoInterfaceC[], false); Eval(4305, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(4306, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(4307, o is ImplementTwoInterfaceGenC<int>, false); Eval(4308, o is ImplementTwoInterfaceGenC<int>[], false); Eval(4309, o is ImplementAllInterfaceC<int>, false); Eval(4310, o is ImplementAllInterfaceC<int>[], false); Eval(4311, o is SealedClass, false); Eval(4312, o is SealedClass[], false); } { ExplicitFieldOffsetStruct? v = default(ExplicitFieldOffsetStruct); ValueType o = v; Eval(4313, o is EmptyStruct, false); Eval(4314, o is EmptyStruct[], false); Eval(4315, o is EmptyStruct?, false); Eval(4316, o is EmptyStruct?[], false); Eval(4317, o is NotEmptyStruct, false); Eval(4318, o is NotEmptyStruct[], false); Eval(4319, o is NotEmptyStruct?, false); Eval(4320, o is NotEmptyStruct?[], false); Eval(4321, o is EmptyStructGen<int>, false); Eval(4322, o is EmptyStructGen<int>[], false); Eval(4323, o is EmptyStructGen<int>?, false); Eval(4324, o is EmptyStructGen<int>?[], false); Eval(4325, o is NotEmptyStructGen<Guid>, false); Eval(4326, o is NotEmptyStructGen<Guid>[], false); Eval(4327, o is NotEmptyStructGen<Guid>?, false); Eval(4328, o is NotEmptyStructGen<Guid>?[], false); Eval(4329, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(4330, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(4331, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(4332, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(4333, o is NestedStruct, false); Eval(4334, o is NestedStruct[], false); Eval(4335, o is NestedStruct?, false); Eval(4336, o is NestedStruct?[], false); Eval(4337, o is NestedStructGen<Decimal>, false); Eval(4338, o is NestedStructGen<Decimal>[], false); Eval(4339, o is NestedStructGen<Decimal>?, false); Eval(4340, o is NestedStructGen<Decimal>?[], false); Eval(4341, o is ExplicitFieldOffsetStruct, true); Eval(4342, o is ExplicitFieldOffsetStruct[], false); Eval(4343, o is ExplicitFieldOffsetStruct?, true); Eval(4344, o is ExplicitFieldOffsetStruct?[], false); Eval(4353, o is MarshalAsStruct, false); Eval(4354, o is MarshalAsStruct[], false); Eval(4355, o is MarshalAsStruct?, false); Eval(4356, o is MarshalAsStruct?[], false); Eval(4357, o is ImplementOneInterface, false); Eval(4358, o is ImplementOneInterface[], false); Eval(4359, o is ImplementOneInterface?, false); Eval(4360, o is ImplementOneInterface?[], false); Eval(4361, o is ImplementTwoInterface, false); Eval(4362, o is ImplementTwoInterface[], false); Eval(4363, o is ImplementTwoInterface?, false); Eval(4364, o is ImplementTwoInterface?[], false); Eval(4365, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(4366, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(4367, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(4368, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(4369, o is ImplementTwoInterfaceGen<int>, false); Eval(4370, o is ImplementTwoInterfaceGen<int>[], false); Eval(4371, o is ImplementTwoInterfaceGen<int>?, false); Eval(4372, o is ImplementTwoInterfaceGen<int>?[], false); Eval(4373, o is ImplementAllInterface<int>, false); Eval(4374, o is ImplementAllInterface<int>[], false); Eval(4375, o is ImplementAllInterface<int>?, false); Eval(4376, o is ImplementAllInterface<int>?[], false); Eval(4377, o is IntE, false); Eval(4378, o is IntE[], false); Eval(4379, o is IntE?, false); Eval(4380, o is IntE?[], false); Eval(4381, o is ByteE, false); Eval(4382, o is ByteE[], false); Eval(4383, o is ByteE?, false); Eval(4384, o is ByteE?[], false); Eval(4385, o is LongE, false); Eval(4386, o is LongE[], false); Eval(4387, o is LongE?, false); Eval(4388, o is LongE?[], false); Eval(4389, o is char, false); Eval(4390, o is char[], false); Eval(4391, o is char?, false); Eval(4392, o is char?[], false); Eval(4393, o is bool, false); Eval(4394, o is bool[], false); Eval(4395, o is bool?, false); Eval(4396, o is bool?[], false); Eval(4397, o is byte, false); Eval(4398, o is byte[], false); Eval(4399, o is byte?, false); Eval(4400, o is byte?[], false); Eval(4401, o is sbyte, false); Eval(4402, o is sbyte[], false); Eval(4403, o is sbyte?, false); Eval(4404, o is sbyte?[], false); Eval(4405, o is short, false); Eval(4406, o is short[], false); Eval(4407, o is short?, false); Eval(4408, o is short?[], false); Eval(4409, o is ushort, false); Eval(4410, o is ushort[], false); Eval(4411, o is ushort?, false); Eval(4412, o is ushort?[], false); Eval(4413, o is int, false); Eval(4414, o is int[], false); Eval(4415, o is int?, false); Eval(4416, o is int?[], false); Eval(4417, o is uint, false); Eval(4418, o is uint[], false); Eval(4419, o is uint?, false); Eval(4420, o is uint?[], false); Eval(4421, o is long, false); Eval(4422, o is long[], false); Eval(4423, o is long?, false); Eval(4424, o is long?[], false); Eval(4425, o is ulong, false); Eval(4426, o is ulong[], false); Eval(4427, o is ulong?, false); Eval(4428, o is ulong?[], false); Eval(4429, o is float, false); Eval(4430, o is float[], false); Eval(4431, o is float?, false); Eval(4432, o is float?[], false); Eval(4433, o is double, false); Eval(4434, o is double[], false); Eval(4435, o is double?, false); Eval(4436, o is double?[], false); Eval(4437, o is decimal, false); Eval(4438, o is decimal[], false); Eval(4439, o is decimal?, false); Eval(4440, o is decimal?[], false); Eval(4441, o is IntPtr, false); Eval(4442, o is IntPtr[], false); Eval(4443, o is IntPtr?, false); Eval(4444, o is IntPtr?[], false); Eval(4445, o is UIntPtr, false); Eval(4446, o is UIntPtr[], false); Eval(4447, o is UIntPtr?, false); Eval(4448, o is UIntPtr?[], false); Eval(4449, o is Guid, false); Eval(4450, o is Guid[], false); Eval(4451, o is Guid?, false); Eval(4452, o is Guid?[], false); Eval(4453, o is GCHandle, false); Eval(4454, o is GCHandle[], false); Eval(4455, o is GCHandle?, false); Eval(4456, o is GCHandle?[], false); Eval(4457, o is object, true); Eval(4458, o is object[], false); Eval(4459, o is string, false); Eval(4460, o is string[], false); Eval(4461, o is ValueType, true); Eval(4462, o is ValueType[], false); Eval(4463, o is Array, false); Eval(4464, o is Array[], false); Eval(4465, o is Enum, false); Eval(4466, o is Enum[], false); Eval(4467, o is Delegate, false); Eval(4468, o is Delegate[], false); Eval(4469, o is MulticastDelegate, false); Eval(4470, o is MulticastDelegate[], false); Eval(4471, o is IEmpty, false); Eval(4472, o is IEmpty[], false); Eval(4473, o is INotEmpty, false); Eval(4474, o is INotEmpty[], false); Eval(4475, o is IEmptyGen<int>, false); Eval(4476, o is IEmptyGen<int>[], false); Eval(4477, o is INotEmptyGen<int>, false); Eval(4478, o is INotEmptyGen<int>[], false); Eval(4479, o is SimpleDelegate, false); Eval(4480, o is SimpleDelegate[], false); Eval(4481, o is GenericDelegate<int>, false); Eval(4482, o is GenericDelegate<int>[], false); Eval(4483, o is EmptyClass, false); Eval(4484, o is EmptyClass[], false); Eval(4485, o is NotEmptyClass, false); Eval(4486, o is NotEmptyClass[], false); Eval(4487, o is EmptyClassGen<int>, false); Eval(4488, o is EmptyClassGen<int>[], false); Eval(4489, o is NotEmptyClassGen<Guid>, false); Eval(4490, o is NotEmptyClassGen<Guid>[], false); Eval(4491, o is NotEmptyClassConstrainedGen<object>, false); Eval(4492, o is NotEmptyClassConstrainedGen<object>[], false); Eval(4493, o is NestedClass, false); Eval(4494, o is NestedClass[], false); Eval(4495, o is NestedClassGen<Decimal>, false); Eval(4496, o is NestedClassGen<Decimal>[], false); Eval(4497, o is ImplementOneInterfaceC, false); Eval(4498, o is ImplementOneInterfaceC[], false); Eval(4499, o is ImplementTwoInterfaceC, false); Eval(4500, o is ImplementTwoInterfaceC[], false); Eval(4501, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(4502, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(4503, o is ImplementTwoInterfaceGenC<int>, false); Eval(4504, o is ImplementTwoInterfaceGenC<int>[], false); Eval(4505, o is ImplementAllInterfaceC<int>, false); Eval(4506, o is ImplementAllInterfaceC<int>[], false); Eval(4507, o is SealedClass, false); Eval(4508, o is SealedClass[], false); } { ExplicitFieldOffsetStruct? v = default(ExplicitFieldOffsetStruct?); ValueType o = v; Eval(4509, o is EmptyStruct, false); Eval(4510, o is EmptyStruct[], false); Eval(4511, o is EmptyStruct?, false); Eval(4512, o is EmptyStruct?[], false); Eval(4513, o is NotEmptyStruct, false); Eval(4514, o is NotEmptyStruct[], false); Eval(4515, o is NotEmptyStruct?, false); Eval(4516, o is NotEmptyStruct?[], false); Eval(4517, o is EmptyStructGen<int>, false); Eval(4518, o is EmptyStructGen<int>[], false); Eval(4519, o is EmptyStructGen<int>?, false); Eval(4520, o is EmptyStructGen<int>?[], false); Eval(4521, o is NotEmptyStructGen<Guid>, false); Eval(4522, o is NotEmptyStructGen<Guid>[], false); Eval(4523, o is NotEmptyStructGen<Guid>?, false); Eval(4524, o is NotEmptyStructGen<Guid>?[], false); Eval(4525, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(4526, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(4527, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(4528, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(4529, o is NestedStruct, false); Eval(4530, o is NestedStruct[], false); Eval(4531, o is NestedStruct?, false); Eval(4532, o is NestedStruct?[], false); Eval(4533, o is NestedStructGen<Decimal>, false); Eval(4534, o is NestedStructGen<Decimal>[], false); Eval(4535, o is NestedStructGen<Decimal>?, false); Eval(4536, o is NestedStructGen<Decimal>?[], false); Eval(4537, o is ExplicitFieldOffsetStruct, false); Eval(4538, o is ExplicitFieldOffsetStruct[], false); Eval(4539, o is ExplicitFieldOffsetStruct?, false); Eval(4540, o is ExplicitFieldOffsetStruct?[], false); Eval(4549, o is MarshalAsStruct, false); Eval(4550, o is MarshalAsStruct[], false); Eval(4551, o is MarshalAsStruct?, false); Eval(4552, o is MarshalAsStruct?[], false); Eval(4553, o is ImplementOneInterface, false); Eval(4554, o is ImplementOneInterface[], false); Eval(4555, o is ImplementOneInterface?, false); Eval(4556, o is ImplementOneInterface?[], false); Eval(4557, o is ImplementTwoInterface, false); Eval(4558, o is ImplementTwoInterface[], false); Eval(4559, o is ImplementTwoInterface?, false); Eval(4560, o is ImplementTwoInterface?[], false); Eval(4561, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(4562, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(4563, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(4564, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(4565, o is ImplementTwoInterfaceGen<int>, false); Eval(4566, o is ImplementTwoInterfaceGen<int>[], false); Eval(4567, o is ImplementTwoInterfaceGen<int>?, false); Eval(4568, o is ImplementTwoInterfaceGen<int>?[], false); Eval(4569, o is ImplementAllInterface<int>, false); Eval(4570, o is ImplementAllInterface<int>[], false); Eval(4571, o is ImplementAllInterface<int>?, false); Eval(4572, o is ImplementAllInterface<int>?[], false); Eval(4573, o is IntE, false); Eval(4574, o is IntE[], false); Eval(4575, o is IntE?, false); Eval(4576, o is IntE?[], false); Eval(4577, o is ByteE, false); Eval(4578, o is ByteE[], false); Eval(4579, o is ByteE?, false); Eval(4580, o is ByteE?[], false); Eval(4581, o is LongE, false); Eval(4582, o is LongE[], false); Eval(4583, o is LongE?, false); Eval(4584, o is LongE?[], false); Eval(4585, o is char, false); Eval(4586, o is char[], false); Eval(4587, o is char?, false); Eval(4588, o is char?[], false); Eval(4589, o is bool, false); Eval(4590, o is bool[], false); Eval(4591, o is bool?, false); Eval(4592, o is bool?[], false); Eval(4593, o is byte, false); Eval(4594, o is byte[], false); Eval(4595, o is byte?, false); Eval(4596, o is byte?[], false); Eval(4597, o is sbyte, false); Eval(4598, o is sbyte[], false); Eval(4599, o is sbyte?, false); Eval(4600, o is sbyte?[], false); Eval(4601, o is short, false); Eval(4602, o is short[], false); Eval(4603, o is short?, false); Eval(4604, o is short?[], false); Eval(4605, o is ushort, false); Eval(4606, o is ushort[], false); Eval(4607, o is ushort?, false); Eval(4608, o is ushort?[], false); Eval(4609, o is int, false); Eval(4610, o is int[], false); Eval(4611, o is int?, false); Eval(4612, o is int?[], false); Eval(4613, o is uint, false); Eval(4614, o is uint[], false); Eval(4615, o is uint?, false); Eval(4616, o is uint?[], false); Eval(4617, o is long, false); Eval(4618, o is long[], false); Eval(4619, o is long?, false); Eval(4620, o is long?[], false); Eval(4621, o is ulong, false); Eval(4622, o is ulong[], false); Eval(4623, o is ulong?, false); Eval(4624, o is ulong?[], false); Eval(4625, o is float, false); Eval(4626, o is float[], false); Eval(4627, o is float?, false); Eval(4628, o is float?[], false); Eval(4629, o is double, false); Eval(4630, o is double[], false); Eval(4631, o is double?, false); Eval(4632, o is double?[], false); Eval(4633, o is decimal, false); Eval(4634, o is decimal[], false); Eval(4635, o is decimal?, false); Eval(4636, o is decimal?[], false); Eval(4637, o is IntPtr, false); Eval(4638, o is IntPtr[], false); Eval(4639, o is IntPtr?, false); Eval(4640, o is IntPtr?[], false); Eval(4641, o is UIntPtr, false); Eval(4642, o is UIntPtr[], false); Eval(4643, o is UIntPtr?, false); Eval(4644, o is UIntPtr?[], false); Eval(4645, o is Guid, false); Eval(4646, o is Guid[], false); Eval(4647, o is Guid?, false); Eval(4648, o is Guid?[], false); Eval(4649, o is GCHandle, false); Eval(4650, o is GCHandle[], false); Eval(4651, o is GCHandle?, false); Eval(4652, o is GCHandle?[], false); Eval(4653, o is object, false); Eval(4654, o is object[], false); Eval(4655, o is string, false); Eval(4656, o is string[], false); Eval(4657, o is ValueType, false); Eval(4658, o is ValueType[], false); Eval(4659, o is Array, false); Eval(4660, o is Array[], false); Eval(4661, o is Enum, false); Eval(4662, o is Enum[], false); Eval(4663, o is Delegate, false); Eval(4664, o is Delegate[], false); Eval(4665, o is MulticastDelegate, false); Eval(4666, o is MulticastDelegate[], false); Eval(4667, o is IEmpty, false); Eval(4668, o is IEmpty[], false); Eval(4669, o is INotEmpty, false); Eval(4670, o is INotEmpty[], false); Eval(4671, o is IEmptyGen<int>, false); Eval(4672, o is IEmptyGen<int>[], false); Eval(4673, o is INotEmptyGen<int>, false); Eval(4674, o is INotEmptyGen<int>[], false); Eval(4675, o is SimpleDelegate, false); Eval(4676, o is SimpleDelegate[], false); Eval(4677, o is GenericDelegate<int>, false); Eval(4678, o is GenericDelegate<int>[], false); Eval(4679, o is EmptyClass, false); Eval(4680, o is EmptyClass[], false); Eval(4681, o is NotEmptyClass, false); Eval(4682, o is NotEmptyClass[], false); Eval(4683, o is EmptyClassGen<int>, false); Eval(4684, o is EmptyClassGen<int>[], false); Eval(4685, o is NotEmptyClassGen<Guid>, false); Eval(4686, o is NotEmptyClassGen<Guid>[], false); Eval(4687, o is NotEmptyClassConstrainedGen<object>, false); Eval(4688, o is NotEmptyClassConstrainedGen<object>[], false); Eval(4689, o is NestedClass, false); Eval(4690, o is NestedClass[], false); Eval(4691, o is NestedClassGen<Decimal>, false); Eval(4692, o is NestedClassGen<Decimal>[], false); Eval(4693, o is ImplementOneInterfaceC, false); Eval(4694, o is ImplementOneInterfaceC[], false); Eval(4695, o is ImplementTwoInterfaceC, false); Eval(4696, o is ImplementTwoInterfaceC[], false); Eval(4697, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(4698, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(4699, o is ImplementTwoInterfaceGenC<int>, false); Eval(4700, o is ImplementTwoInterfaceGenC<int>[], false); Eval(4701, o is ImplementAllInterfaceC<int>, false); Eval(4702, o is ImplementAllInterfaceC<int>[], false); Eval(4703, o is SealedClass, false); Eval(4704, o is SealedClass[], false); } } // end of test case 0008 private static void TestCase0011() { { MarshalAsStruct v = default(MarshalAsStruct); ValueType o = v; Eval(5881, o is EmptyStruct, false); Eval(5882, o is EmptyStruct[], false); Eval(5883, o is EmptyStruct?, false); Eval(5884, o is EmptyStruct?[], false); Eval(5885, o is NotEmptyStruct, false); Eval(5886, o is NotEmptyStruct[], false); Eval(5887, o is NotEmptyStruct?, false); Eval(5888, o is NotEmptyStruct?[], false); Eval(5889, o is EmptyStructGen<int>, false); Eval(5890, o is EmptyStructGen<int>[], false); Eval(5891, o is EmptyStructGen<int>?, false); Eval(5892, o is EmptyStructGen<int>?[], false); Eval(5893, o is NotEmptyStructGen<Guid>, false); Eval(5894, o is NotEmptyStructGen<Guid>[], false); Eval(5895, o is NotEmptyStructGen<Guid>?, false); Eval(5896, o is NotEmptyStructGen<Guid>?[], false); Eval(5897, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(5898, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(5899, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(5900, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(5901, o is NestedStruct, false); Eval(5902, o is NestedStruct[], false); Eval(5903, o is NestedStruct?, false); Eval(5904, o is NestedStruct?[], false); Eval(5905, o is NestedStructGen<Decimal>, false); Eval(5906, o is NestedStructGen<Decimal>[], false); Eval(5907, o is NestedStructGen<Decimal>?, false); Eval(5908, o is NestedStructGen<Decimal>?[], false); Eval(5909, o is ExplicitFieldOffsetStruct, false); Eval(5910, o is ExplicitFieldOffsetStruct[], false); Eval(5911, o is ExplicitFieldOffsetStruct?, false); Eval(5912, o is ExplicitFieldOffsetStruct?[], false); Eval(5921, o is MarshalAsStruct, true); Eval(5922, o is MarshalAsStruct[], false); Eval(5923, o is MarshalAsStruct?, true); Eval(5924, o is MarshalAsStruct?[], false); Eval(5925, o is ImplementOneInterface, false); Eval(5926, o is ImplementOneInterface[], false); Eval(5927, o is ImplementOneInterface?, false); Eval(5928, o is ImplementOneInterface?[], false); Eval(5929, o is ImplementTwoInterface, false); Eval(5930, o is ImplementTwoInterface[], false); Eval(5931, o is ImplementTwoInterface?, false); Eval(5932, o is ImplementTwoInterface?[], false); Eval(5933, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(5934, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(5935, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(5936, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(5937, o is ImplementTwoInterfaceGen<int>, false); Eval(5938, o is ImplementTwoInterfaceGen<int>[], false); Eval(5939, o is ImplementTwoInterfaceGen<int>?, false); Eval(5940, o is ImplementTwoInterfaceGen<int>?[], false); Eval(5941, o is ImplementAllInterface<int>, false); Eval(5942, o is ImplementAllInterface<int>[], false); Eval(5943, o is ImplementAllInterface<int>?, false); Eval(5944, o is ImplementAllInterface<int>?[], false); Eval(5945, o is IntE, false); Eval(5946, o is IntE[], false); Eval(5947, o is IntE?, false); Eval(5948, o is IntE?[], false); Eval(5949, o is ByteE, false); Eval(5950, o is ByteE[], false); Eval(5951, o is ByteE?, false); Eval(5952, o is ByteE?[], false); Eval(5953, o is LongE, false); Eval(5954, o is LongE[], false); Eval(5955, o is LongE?, false); Eval(5956, o is LongE?[], false); Eval(5957, o is char, false); Eval(5958, o is char[], false); Eval(5959, o is char?, false); Eval(5960, o is char?[], false); Eval(5961, o is bool, false); Eval(5962, o is bool[], false); Eval(5963, o is bool?, false); Eval(5964, o is bool?[], false); Eval(5965, o is byte, false); Eval(5966, o is byte[], false); Eval(5967, o is byte?, false); Eval(5968, o is byte?[], false); Eval(5969, o is sbyte, false); Eval(5970, o is sbyte[], false); Eval(5971, o is sbyte?, false); Eval(5972, o is sbyte?[], false); Eval(5973, o is short, false); Eval(5974, o is short[], false); Eval(5975, o is short?, false); Eval(5976, o is short?[], false); Eval(5977, o is ushort, false); Eval(5978, o is ushort[], false); Eval(5979, o is ushort?, false); Eval(5980, o is ushort?[], false); Eval(5981, o is int, false); Eval(5982, o is int[], false); Eval(5983, o is int?, false); Eval(5984, o is int?[], false); Eval(5985, o is uint, false); Eval(5986, o is uint[], false); Eval(5987, o is uint?, false); Eval(5988, o is uint?[], false); Eval(5989, o is long, false); Eval(5990, o is long[], false); Eval(5991, o is long?, false); Eval(5992, o is long?[], false); Eval(5993, o is ulong, false); Eval(5994, o is ulong[], false); Eval(5995, o is ulong?, false); Eval(5996, o is ulong?[], false); Eval(5997, o is float, false); Eval(5998, o is float[], false); Eval(5999, o is float?, false); Eval(6000, o is float?[], false); Eval(6001, o is double, false); Eval(6002, o is double[], false); Eval(6003, o is double?, false); Eval(6004, o is double?[], false); Eval(6005, o is decimal, false); Eval(6006, o is decimal[], false); Eval(6007, o is decimal?, false); Eval(6008, o is decimal?[], false); Eval(6009, o is IntPtr, false); Eval(6010, o is IntPtr[], false); Eval(6011, o is IntPtr?, false); Eval(6012, o is IntPtr?[], false); Eval(6013, o is UIntPtr, false); Eval(6014, o is UIntPtr[], false); Eval(6015, o is UIntPtr?, false); Eval(6016, o is UIntPtr?[], false); Eval(6017, o is Guid, false); Eval(6018, o is Guid[], false); Eval(6019, o is Guid?, false); Eval(6020, o is Guid?[], false); Eval(6021, o is GCHandle, false); Eval(6022, o is GCHandle[], false); Eval(6023, o is GCHandle?, false); Eval(6024, o is GCHandle?[], false); Eval(6025, o is object, true); Eval(6026, o is object[], false); Eval(6027, o is string, false); Eval(6028, o is string[], false); Eval(6029, o is ValueType, true); Eval(6030, o is ValueType[], false); Eval(6031, o is Array, false); Eval(6032, o is Array[], false); Eval(6033, o is Enum, false); Eval(6034, o is Enum[], false); Eval(6035, o is Delegate, false); Eval(6036, o is Delegate[], false); Eval(6037, o is MulticastDelegate, false); Eval(6038, o is MulticastDelegate[], false); Eval(6039, o is IEmpty, false); Eval(6040, o is IEmpty[], false); Eval(6041, o is INotEmpty, false); Eval(6042, o is INotEmpty[], false); Eval(6043, o is IEmptyGen<int>, false); Eval(6044, o is IEmptyGen<int>[], false); Eval(6045, o is INotEmptyGen<int>, false); Eval(6046, o is INotEmptyGen<int>[], false); Eval(6047, o is SimpleDelegate, false); Eval(6048, o is SimpleDelegate[], false); Eval(6049, o is GenericDelegate<int>, false); Eval(6050, o is GenericDelegate<int>[], false); Eval(6051, o is EmptyClass, false); Eval(6052, o is EmptyClass[], false); Eval(6053, o is NotEmptyClass, false); Eval(6054, o is NotEmptyClass[], false); Eval(6055, o is EmptyClassGen<int>, false); Eval(6056, o is EmptyClassGen<int>[], false); Eval(6057, o is NotEmptyClassGen<Guid>, false); Eval(6058, o is NotEmptyClassGen<Guid>[], false); Eval(6059, o is NotEmptyClassConstrainedGen<object>, false); Eval(6060, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6061, o is NestedClass, false); Eval(6062, o is NestedClass[], false); Eval(6063, o is NestedClassGen<Decimal>, false); Eval(6064, o is NestedClassGen<Decimal>[], false); Eval(6065, o is ImplementOneInterfaceC, false); Eval(6066, o is ImplementOneInterfaceC[], false); Eval(6067, o is ImplementTwoInterfaceC, false); Eval(6068, o is ImplementTwoInterfaceC[], false); Eval(6069, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6070, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6071, o is ImplementTwoInterfaceGenC<int>, false); Eval(6072, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6073, o is ImplementAllInterfaceC<int>, false); Eval(6074, o is ImplementAllInterfaceC<int>[], false); Eval(6075, o is SealedClass, false); Eval(6076, o is SealedClass[], false); } { MarshalAsStruct? v = default(MarshalAsStruct); ValueType o = v; Eval(6077, o is EmptyStruct, false); Eval(6078, o is EmptyStruct[], false); Eval(6079, o is EmptyStruct?, false); Eval(6080, o is EmptyStruct?[], false); Eval(6081, o is NotEmptyStruct, false); Eval(6082, o is NotEmptyStruct[], false); Eval(6083, o is NotEmptyStruct?, false); Eval(6084, o is NotEmptyStruct?[], false); Eval(6085, o is EmptyStructGen<int>, false); Eval(6086, o is EmptyStructGen<int>[], false); Eval(6087, o is EmptyStructGen<int>?, false); Eval(6088, o is EmptyStructGen<int>?[], false); Eval(6089, o is NotEmptyStructGen<Guid>, false); Eval(6090, o is NotEmptyStructGen<Guid>[], false); Eval(6091, o is NotEmptyStructGen<Guid>?, false); Eval(6092, o is NotEmptyStructGen<Guid>?[], false); Eval(6093, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6094, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6095, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6096, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6097, o is NestedStruct, false); Eval(6098, o is NestedStruct[], false); Eval(6099, o is NestedStruct?, false); Eval(6100, o is NestedStruct?[], false); Eval(6101, o is NestedStructGen<Decimal>, false); Eval(6102, o is NestedStructGen<Decimal>[], false); Eval(6103, o is NestedStructGen<Decimal>?, false); Eval(6104, o is NestedStructGen<Decimal>?[], false); Eval(6105, o is ExplicitFieldOffsetStruct, false); Eval(6106, o is ExplicitFieldOffsetStruct[], false); Eval(6107, o is ExplicitFieldOffsetStruct?, false); Eval(6108, o is ExplicitFieldOffsetStruct?[], false); Eval(6117, o is MarshalAsStruct, true); Eval(6118, o is MarshalAsStruct[], false); Eval(6119, o is MarshalAsStruct?, true); Eval(6120, o is MarshalAsStruct?[], false); Eval(6121, o is ImplementOneInterface, false); Eval(6122, o is ImplementOneInterface[], false); Eval(6123, o is ImplementOneInterface?, false); Eval(6124, o is ImplementOneInterface?[], false); Eval(6125, o is ImplementTwoInterface, false); Eval(6126, o is ImplementTwoInterface[], false); Eval(6127, o is ImplementTwoInterface?, false); Eval(6128, o is ImplementTwoInterface?[], false); Eval(6129, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6130, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6131, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6132, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6133, o is ImplementTwoInterfaceGen<int>, false); Eval(6134, o is ImplementTwoInterfaceGen<int>[], false); Eval(6135, o is ImplementTwoInterfaceGen<int>?, false); Eval(6136, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6137, o is ImplementAllInterface<int>, false); Eval(6138, o is ImplementAllInterface<int>[], false); Eval(6139, o is ImplementAllInterface<int>?, false); Eval(6140, o is ImplementAllInterface<int>?[], false); Eval(6141, o is IntE, false); Eval(6142, o is IntE[], false); Eval(6143, o is IntE?, false); Eval(6144, o is IntE?[], false); Eval(6145, o is ByteE, false); Eval(6146, o is ByteE[], false); Eval(6147, o is ByteE?, false); Eval(6148, o is ByteE?[], false); Eval(6149, o is LongE, false); Eval(6150, o is LongE[], false); Eval(6151, o is LongE?, false); Eval(6152, o is LongE?[], false); Eval(6153, o is char, false); Eval(6154, o is char[], false); Eval(6155, o is char?, false); Eval(6156, o is char?[], false); Eval(6157, o is bool, false); Eval(6158, o is bool[], false); Eval(6159, o is bool?, false); Eval(6160, o is bool?[], false); Eval(6161, o is byte, false); Eval(6162, o is byte[], false); Eval(6163, o is byte?, false); Eval(6164, o is byte?[], false); Eval(6165, o is sbyte, false); Eval(6166, o is sbyte[], false); Eval(6167, o is sbyte?, false); Eval(6168, o is sbyte?[], false); Eval(6169, o is short, false); Eval(6170, o is short[], false); Eval(6171, o is short?, false); Eval(6172, o is short?[], false); Eval(6173, o is ushort, false); Eval(6174, o is ushort[], false); Eval(6175, o is ushort?, false); Eval(6176, o is ushort?[], false); Eval(6177, o is int, false); Eval(6178, o is int[], false); Eval(6179, o is int?, false); Eval(6180, o is int?[], false); Eval(6181, o is uint, false); Eval(6182, o is uint[], false); Eval(6183, o is uint?, false); Eval(6184, o is uint?[], false); Eval(6185, o is long, false); Eval(6186, o is long[], false); Eval(6187, o is long?, false); Eval(6188, o is long?[], false); Eval(6189, o is ulong, false); Eval(6190, o is ulong[], false); Eval(6191, o is ulong?, false); Eval(6192, o is ulong?[], false); Eval(6193, o is float, false); Eval(6194, o is float[], false); Eval(6195, o is float?, false); Eval(6196, o is float?[], false); Eval(6197, o is double, false); Eval(6198, o is double[], false); Eval(6199, o is double?, false); Eval(6200, o is double?[], false); Eval(6201, o is decimal, false); Eval(6202, o is decimal[], false); Eval(6203, o is decimal?, false); Eval(6204, o is decimal?[], false); Eval(6205, o is IntPtr, false); Eval(6206, o is IntPtr[], false); Eval(6207, o is IntPtr?, false); Eval(6208, o is IntPtr?[], false); Eval(6209, o is UIntPtr, false); Eval(6210, o is UIntPtr[], false); Eval(6211, o is UIntPtr?, false); Eval(6212, o is UIntPtr?[], false); Eval(6213, o is Guid, false); Eval(6214, o is Guid[], false); Eval(6215, o is Guid?, false); Eval(6216, o is Guid?[], false); Eval(6217, o is GCHandle, false); Eval(6218, o is GCHandle[], false); Eval(6219, o is GCHandle?, false); Eval(6220, o is GCHandle?[], false); Eval(6221, o is object, true); Eval(6222, o is object[], false); Eval(6223, o is string, false); Eval(6224, o is string[], false); Eval(6225, o is ValueType, true); Eval(6226, o is ValueType[], false); Eval(6227, o is Array, false); Eval(6228, o is Array[], false); Eval(6229, o is Enum, false); Eval(6230, o is Enum[], false); Eval(6231, o is Delegate, false); Eval(6232, o is Delegate[], false); Eval(6233, o is MulticastDelegate, false); Eval(6234, o is MulticastDelegate[], false); Eval(6235, o is IEmpty, false); Eval(6236, o is IEmpty[], false); Eval(6237, o is INotEmpty, false); Eval(6238, o is INotEmpty[], false); Eval(6239, o is IEmptyGen<int>, false); Eval(6240, o is IEmptyGen<int>[], false); Eval(6241, o is INotEmptyGen<int>, false); Eval(6242, o is INotEmptyGen<int>[], false); Eval(6243, o is SimpleDelegate, false); Eval(6244, o is SimpleDelegate[], false); Eval(6245, o is GenericDelegate<int>, false); Eval(6246, o is GenericDelegate<int>[], false); Eval(6247, o is EmptyClass, false); Eval(6248, o is EmptyClass[], false); Eval(6249, o is NotEmptyClass, false); Eval(6250, o is NotEmptyClass[], false); Eval(6251, o is EmptyClassGen<int>, false); Eval(6252, o is EmptyClassGen<int>[], false); Eval(6253, o is NotEmptyClassGen<Guid>, false); Eval(6254, o is NotEmptyClassGen<Guid>[], false); Eval(6255, o is NotEmptyClassConstrainedGen<object>, false); Eval(6256, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6257, o is NestedClass, false); Eval(6258, o is NestedClass[], false); Eval(6259, o is NestedClassGen<Decimal>, false); Eval(6260, o is NestedClassGen<Decimal>[], false); Eval(6261, o is ImplementOneInterfaceC, false); Eval(6262, o is ImplementOneInterfaceC[], false); Eval(6263, o is ImplementTwoInterfaceC, false); Eval(6264, o is ImplementTwoInterfaceC[], false); Eval(6265, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6266, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6267, o is ImplementTwoInterfaceGenC<int>, false); Eval(6268, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6269, o is ImplementAllInterfaceC<int>, false); Eval(6270, o is ImplementAllInterfaceC<int>[], false); Eval(6271, o is SealedClass, false); Eval(6272, o is SealedClass[], false); } { MarshalAsStruct? v = default(MarshalAsStruct?); ValueType o = v; Eval(6273, o is EmptyStruct, false); Eval(6274, o is EmptyStruct[], false); Eval(6275, o is EmptyStruct?, false); Eval(6276, o is EmptyStruct?[], false); Eval(6277, o is NotEmptyStruct, false); Eval(6278, o is NotEmptyStruct[], false); Eval(6279, o is NotEmptyStruct?, false); Eval(6280, o is NotEmptyStruct?[], false); Eval(6281, o is EmptyStructGen<int>, false); Eval(6282, o is EmptyStructGen<int>[], false); Eval(6283, o is EmptyStructGen<int>?, false); Eval(6284, o is EmptyStructGen<int>?[], false); Eval(6285, o is NotEmptyStructGen<Guid>, false); Eval(6286, o is NotEmptyStructGen<Guid>[], false); Eval(6287, o is NotEmptyStructGen<Guid>?, false); Eval(6288, o is NotEmptyStructGen<Guid>?[], false); Eval(6289, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6290, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6291, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6292, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6293, o is NestedStruct, false); Eval(6294, o is NestedStruct[], false); Eval(6295, o is NestedStruct?, false); Eval(6296, o is NestedStruct?[], false); Eval(6297, o is NestedStructGen<Decimal>, false); Eval(6298, o is NestedStructGen<Decimal>[], false); Eval(6299, o is NestedStructGen<Decimal>?, false); Eval(6300, o is NestedStructGen<Decimal>?[], false); Eval(6301, o is ExplicitFieldOffsetStruct, false); Eval(6302, o is ExplicitFieldOffsetStruct[], false); Eval(6303, o is ExplicitFieldOffsetStruct?, false); Eval(6304, o is ExplicitFieldOffsetStruct?[], false); Eval(6313, o is MarshalAsStruct, false); Eval(6314, o is MarshalAsStruct[], false); Eval(6315, o is MarshalAsStruct?, false); Eval(6316, o is MarshalAsStruct?[], false); Eval(6317, o is ImplementOneInterface, false); Eval(6318, o is ImplementOneInterface[], false); Eval(6319, o is ImplementOneInterface?, false); Eval(6320, o is ImplementOneInterface?[], false); Eval(6321, o is ImplementTwoInterface, false); Eval(6322, o is ImplementTwoInterface[], false); Eval(6323, o is ImplementTwoInterface?, false); Eval(6324, o is ImplementTwoInterface?[], false); Eval(6325, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6326, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6327, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6328, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6329, o is ImplementTwoInterfaceGen<int>, false); Eval(6330, o is ImplementTwoInterfaceGen<int>[], false); Eval(6331, o is ImplementTwoInterfaceGen<int>?, false); Eval(6332, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6333, o is ImplementAllInterface<int>, false); Eval(6334, o is ImplementAllInterface<int>[], false); Eval(6335, o is ImplementAllInterface<int>?, false); Eval(6336, o is ImplementAllInterface<int>?[], false); Eval(6337, o is IntE, false); Eval(6338, o is IntE[], false); Eval(6339, o is IntE?, false); Eval(6340, o is IntE?[], false); Eval(6341, o is ByteE, false); Eval(6342, o is ByteE[], false); Eval(6343, o is ByteE?, false); Eval(6344, o is ByteE?[], false); Eval(6345, o is LongE, false); Eval(6346, o is LongE[], false); Eval(6347, o is LongE?, false); Eval(6348, o is LongE?[], false); Eval(6349, o is char, false); Eval(6350, o is char[], false); Eval(6351, o is char?, false); Eval(6352, o is char?[], false); Eval(6353, o is bool, false); Eval(6354, o is bool[], false); Eval(6355, o is bool?, false); Eval(6356, o is bool?[], false); Eval(6357, o is byte, false); Eval(6358, o is byte[], false); Eval(6359, o is byte?, false); Eval(6360, o is byte?[], false); Eval(6361, o is sbyte, false); Eval(6362, o is sbyte[], false); Eval(6363, o is sbyte?, false); Eval(6364, o is sbyte?[], false); Eval(6365, o is short, false); Eval(6366, o is short[], false); Eval(6367, o is short?, false); Eval(6368, o is short?[], false); Eval(6369, o is ushort, false); Eval(6370, o is ushort[], false); Eval(6371, o is ushort?, false); Eval(6372, o is ushort?[], false); Eval(6373, o is int, false); Eval(6374, o is int[], false); Eval(6375, o is int?, false); Eval(6376, o is int?[], false); Eval(6377, o is uint, false); Eval(6378, o is uint[], false); Eval(6379, o is uint?, false); Eval(6380, o is uint?[], false); Eval(6381, o is long, false); Eval(6382, o is long[], false); Eval(6383, o is long?, false); Eval(6384, o is long?[], false); Eval(6385, o is ulong, false); Eval(6386, o is ulong[], false); Eval(6387, o is ulong?, false); Eval(6388, o is ulong?[], false); Eval(6389, o is float, false); Eval(6390, o is float[], false); Eval(6391, o is float?, false); Eval(6392, o is float?[], false); Eval(6393, o is double, false); Eval(6394, o is double[], false); Eval(6395, o is double?, false); Eval(6396, o is double?[], false); Eval(6397, o is decimal, false); Eval(6398, o is decimal[], false); Eval(6399, o is decimal?, false); Eval(6400, o is decimal?[], false); Eval(6401, o is IntPtr, false); Eval(6402, o is IntPtr[], false); Eval(6403, o is IntPtr?, false); Eval(6404, o is IntPtr?[], false); Eval(6405, o is UIntPtr, false); Eval(6406, o is UIntPtr[], false); Eval(6407, o is UIntPtr?, false); Eval(6408, o is UIntPtr?[], false); Eval(6409, o is Guid, false); Eval(6410, o is Guid[], false); Eval(6411, o is Guid?, false); Eval(6412, o is Guid?[], false); Eval(6413, o is GCHandle, false); Eval(6414, o is GCHandle[], false); Eval(6415, o is GCHandle?, false); Eval(6416, o is GCHandle?[], false); Eval(6417, o is object, false); Eval(6418, o is object[], false); Eval(6419, o is string, false); Eval(6420, o is string[], false); Eval(6421, o is ValueType, false); Eval(6422, o is ValueType[], false); Eval(6423, o is Array, false); Eval(6424, o is Array[], false); Eval(6425, o is Enum, false); Eval(6426, o is Enum[], false); Eval(6427, o is Delegate, false); Eval(6428, o is Delegate[], false); Eval(6429, o is MulticastDelegate, false); Eval(6430, o is MulticastDelegate[], false); Eval(6431, o is IEmpty, false); Eval(6432, o is IEmpty[], false); Eval(6433, o is INotEmpty, false); Eval(6434, o is INotEmpty[], false); Eval(6435, o is IEmptyGen<int>, false); Eval(6436, o is IEmptyGen<int>[], false); Eval(6437, o is INotEmptyGen<int>, false); Eval(6438, o is INotEmptyGen<int>[], false); Eval(6439, o is SimpleDelegate, false); Eval(6440, o is SimpleDelegate[], false); Eval(6441, o is GenericDelegate<int>, false); Eval(6442, o is GenericDelegate<int>[], false); Eval(6443, o is EmptyClass, false); Eval(6444, o is EmptyClass[], false); Eval(6445, o is NotEmptyClass, false); Eval(6446, o is NotEmptyClass[], false); Eval(6447, o is EmptyClassGen<int>, false); Eval(6448, o is EmptyClassGen<int>[], false); Eval(6449, o is NotEmptyClassGen<Guid>, false); Eval(6450, o is NotEmptyClassGen<Guid>[], false); Eval(6451, o is NotEmptyClassConstrainedGen<object>, false); Eval(6452, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6453, o is NestedClass, false); Eval(6454, o is NestedClass[], false); Eval(6455, o is NestedClassGen<Decimal>, false); Eval(6456, o is NestedClassGen<Decimal>[], false); Eval(6457, o is ImplementOneInterfaceC, false); Eval(6458, o is ImplementOneInterfaceC[], false); Eval(6459, o is ImplementTwoInterfaceC, false); Eval(6460, o is ImplementTwoInterfaceC[], false); Eval(6461, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6462, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6463, o is ImplementTwoInterfaceGenC<int>, false); Eval(6464, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6465, o is ImplementAllInterfaceC<int>, false); Eval(6466, o is ImplementAllInterfaceC<int>[], false); Eval(6467, o is SealedClass, false); Eval(6468, o is SealedClass[], false); } } // end of test case 0011 private static void TestCase0012() { { ImplementOneInterface v = default(ImplementOneInterface); ValueType o = v; Eval(6469, o is EmptyStruct, false); Eval(6470, o is EmptyStruct[], false); Eval(6471, o is EmptyStruct?, false); Eval(6472, o is EmptyStruct?[], false); Eval(6473, o is NotEmptyStruct, false); Eval(6474, o is NotEmptyStruct[], false); Eval(6475, o is NotEmptyStruct?, false); Eval(6476, o is NotEmptyStruct?[], false); Eval(6477, o is EmptyStructGen<int>, false); Eval(6478, o is EmptyStructGen<int>[], false); Eval(6479, o is EmptyStructGen<int>?, false); Eval(6480, o is EmptyStructGen<int>?[], false); Eval(6481, o is NotEmptyStructGen<Guid>, false); Eval(6482, o is NotEmptyStructGen<Guid>[], false); Eval(6483, o is NotEmptyStructGen<Guid>?, false); Eval(6484, o is NotEmptyStructGen<Guid>?[], false); Eval(6485, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6486, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6487, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6488, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6489, o is NestedStruct, false); Eval(6490, o is NestedStruct[], false); Eval(6491, o is NestedStruct?, false); Eval(6492, o is NestedStruct?[], false); Eval(6493, o is NestedStructGen<Decimal>, false); Eval(6494, o is NestedStructGen<Decimal>[], false); Eval(6495, o is NestedStructGen<Decimal>?, false); Eval(6496, o is NestedStructGen<Decimal>?[], false); Eval(6497, o is ExplicitFieldOffsetStruct, false); Eval(6498, o is ExplicitFieldOffsetStruct[], false); Eval(6499, o is ExplicitFieldOffsetStruct?, false); Eval(6500, o is ExplicitFieldOffsetStruct?[], false); Eval(6509, o is MarshalAsStruct, false); Eval(6510, o is MarshalAsStruct[], false); Eval(6511, o is MarshalAsStruct?, false); Eval(6512, o is MarshalAsStruct?[], false); Eval(6513, o is ImplementOneInterface, true); Eval(6514, o is ImplementOneInterface[], false); Eval(6515, o is ImplementOneInterface?, true); Eval(6516, o is ImplementOneInterface?[], false); Eval(6517, o is ImplementTwoInterface, false); Eval(6518, o is ImplementTwoInterface[], false); Eval(6519, o is ImplementTwoInterface?, false); Eval(6520, o is ImplementTwoInterface?[], false); Eval(6521, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6522, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6523, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6524, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6525, o is ImplementTwoInterfaceGen<int>, false); Eval(6526, o is ImplementTwoInterfaceGen<int>[], false); Eval(6527, o is ImplementTwoInterfaceGen<int>?, false); Eval(6528, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6529, o is ImplementAllInterface<int>, false); Eval(6530, o is ImplementAllInterface<int>[], false); Eval(6531, o is ImplementAllInterface<int>?, false); Eval(6532, o is ImplementAllInterface<int>?[], false); Eval(6533, o is IntE, false); Eval(6534, o is IntE[], false); Eval(6535, o is IntE?, false); Eval(6536, o is IntE?[], false); Eval(6537, o is ByteE, false); Eval(6538, o is ByteE[], false); Eval(6539, o is ByteE?, false); Eval(6540, o is ByteE?[], false); Eval(6541, o is LongE, false); Eval(6542, o is LongE[], false); Eval(6543, o is LongE?, false); Eval(6544, o is LongE?[], false); Eval(6545, o is char, false); Eval(6546, o is char[], false); Eval(6547, o is char?, false); Eval(6548, o is char?[], false); Eval(6549, o is bool, false); Eval(6550, o is bool[], false); Eval(6551, o is bool?, false); Eval(6552, o is bool?[], false); Eval(6553, o is byte, false); Eval(6554, o is byte[], false); Eval(6555, o is byte?, false); Eval(6556, o is byte?[], false); Eval(6557, o is sbyte, false); Eval(6558, o is sbyte[], false); Eval(6559, o is sbyte?, false); Eval(6560, o is sbyte?[], false); Eval(6561, o is short, false); Eval(6562, o is short[], false); Eval(6563, o is short?, false); Eval(6564, o is short?[], false); Eval(6565, o is ushort, false); Eval(6566, o is ushort[], false); Eval(6567, o is ushort?, false); Eval(6568, o is ushort?[], false); Eval(6569, o is int, false); Eval(6570, o is int[], false); Eval(6571, o is int?, false); Eval(6572, o is int?[], false); Eval(6573, o is uint, false); Eval(6574, o is uint[], false); Eval(6575, o is uint?, false); Eval(6576, o is uint?[], false); Eval(6577, o is long, false); Eval(6578, o is long[], false); Eval(6579, o is long?, false); Eval(6580, o is long?[], false); Eval(6581, o is ulong, false); Eval(6582, o is ulong[], false); Eval(6583, o is ulong?, false); Eval(6584, o is ulong?[], false); Eval(6585, o is float, false); Eval(6586, o is float[], false); Eval(6587, o is float?, false); Eval(6588, o is float?[], false); Eval(6589, o is double, false); Eval(6590, o is double[], false); Eval(6591, o is double?, false); Eval(6592, o is double?[], false); Eval(6593, o is decimal, false); Eval(6594, o is decimal[], false); Eval(6595, o is decimal?, false); Eval(6596, o is decimal?[], false); Eval(6597, o is IntPtr, false); Eval(6598, o is IntPtr[], false); Eval(6599, o is IntPtr?, false); Eval(6600, o is IntPtr?[], false); Eval(6601, o is UIntPtr, false); Eval(6602, o is UIntPtr[], false); Eval(6603, o is UIntPtr?, false); Eval(6604, o is UIntPtr?[], false); Eval(6605, o is Guid, false); Eval(6606, o is Guid[], false); Eval(6607, o is Guid?, false); Eval(6608, o is Guid?[], false); Eval(6609, o is GCHandle, false); Eval(6610, o is GCHandle[], false); Eval(6611, o is GCHandle?, false); Eval(6612, o is GCHandle?[], false); Eval(6613, o is object, true); Eval(6614, o is object[], false); Eval(6615, o is string, false); Eval(6616, o is string[], false); Eval(6617, o is ValueType, true); Eval(6618, o is ValueType[], false); Eval(6619, o is Array, false); Eval(6620, o is Array[], false); Eval(6621, o is Enum, false); Eval(6622, o is Enum[], false); Eval(6623, o is Delegate, false); Eval(6624, o is Delegate[], false); Eval(6625, o is MulticastDelegate, false); Eval(6626, o is MulticastDelegate[], false); Eval(6627, o is IEmpty, true); Eval(6628, o is IEmpty[], false); Eval(6629, o is INotEmpty, false); Eval(6630, o is INotEmpty[], false); Eval(6631, o is IEmptyGen<int>, false); Eval(6632, o is IEmptyGen<int>[], false); Eval(6633, o is INotEmptyGen<int>, false); Eval(6634, o is INotEmptyGen<int>[], false); Eval(6635, o is SimpleDelegate, false); Eval(6636, o is SimpleDelegate[], false); Eval(6637, o is GenericDelegate<int>, false); Eval(6638, o is GenericDelegate<int>[], false); Eval(6639, o is EmptyClass, false); Eval(6640, o is EmptyClass[], false); Eval(6641, o is NotEmptyClass, false); Eval(6642, o is NotEmptyClass[], false); Eval(6643, o is EmptyClassGen<int>, false); Eval(6644, o is EmptyClassGen<int>[], false); Eval(6645, o is NotEmptyClassGen<Guid>, false); Eval(6646, o is NotEmptyClassGen<Guid>[], false); Eval(6647, o is NotEmptyClassConstrainedGen<object>, false); Eval(6648, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6649, o is NestedClass, false); Eval(6650, o is NestedClass[], false); Eval(6651, o is NestedClassGen<Decimal>, false); Eval(6652, o is NestedClassGen<Decimal>[], false); Eval(6653, o is ImplementOneInterfaceC, false); Eval(6654, o is ImplementOneInterfaceC[], false); Eval(6655, o is ImplementTwoInterfaceC, false); Eval(6656, o is ImplementTwoInterfaceC[], false); Eval(6657, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6658, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6659, o is ImplementTwoInterfaceGenC<int>, false); Eval(6660, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6661, o is ImplementAllInterfaceC<int>, false); Eval(6662, o is ImplementAllInterfaceC<int>[], false); Eval(6663, o is SealedClass, false); Eval(6664, o is SealedClass[], false); } { ImplementOneInterface? v = default(ImplementOneInterface); ValueType o = v; Eval(6665, o is EmptyStruct, false); Eval(6666, o is EmptyStruct[], false); Eval(6667, o is EmptyStruct?, false); Eval(6668, o is EmptyStruct?[], false); Eval(6669, o is NotEmptyStruct, false); Eval(6670, o is NotEmptyStruct[], false); Eval(6671, o is NotEmptyStruct?, false); Eval(6672, o is NotEmptyStruct?[], false); Eval(6673, o is EmptyStructGen<int>, false); Eval(6674, o is EmptyStructGen<int>[], false); Eval(6675, o is EmptyStructGen<int>?, false); Eval(6676, o is EmptyStructGen<int>?[], false); Eval(6677, o is NotEmptyStructGen<Guid>, false); Eval(6678, o is NotEmptyStructGen<Guid>[], false); Eval(6679, o is NotEmptyStructGen<Guid>?, false); Eval(6680, o is NotEmptyStructGen<Guid>?[], false); Eval(6681, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6682, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6683, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6684, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6685, o is NestedStruct, false); Eval(6686, o is NestedStruct[], false); Eval(6687, o is NestedStruct?, false); Eval(6688, o is NestedStruct?[], false); Eval(6689, o is NestedStructGen<Decimal>, false); Eval(6690, o is NestedStructGen<Decimal>[], false); Eval(6691, o is NestedStructGen<Decimal>?, false); Eval(6692, o is NestedStructGen<Decimal>?[], false); Eval(6693, o is ExplicitFieldOffsetStruct, false); Eval(6694, o is ExplicitFieldOffsetStruct[], false); Eval(6695, o is ExplicitFieldOffsetStruct?, false); Eval(6696, o is ExplicitFieldOffsetStruct?[], false); Eval(6705, o is MarshalAsStruct, false); Eval(6706, o is MarshalAsStruct[], false); Eval(6707, o is MarshalAsStruct?, false); Eval(6708, o is MarshalAsStruct?[], false); Eval(6709, o is ImplementOneInterface, true); Eval(6710, o is ImplementOneInterface[], false); Eval(6711, o is ImplementOneInterface?, true); Eval(6712, o is ImplementOneInterface?[], false); Eval(6713, o is ImplementTwoInterface, false); Eval(6714, o is ImplementTwoInterface[], false); Eval(6715, o is ImplementTwoInterface?, false); Eval(6716, o is ImplementTwoInterface?[], false); Eval(6717, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6718, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6719, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6720, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6721, o is ImplementTwoInterfaceGen<int>, false); Eval(6722, o is ImplementTwoInterfaceGen<int>[], false); Eval(6723, o is ImplementTwoInterfaceGen<int>?, false); Eval(6724, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6725, o is ImplementAllInterface<int>, false); Eval(6726, o is ImplementAllInterface<int>[], false); Eval(6727, o is ImplementAllInterface<int>?, false); Eval(6728, o is ImplementAllInterface<int>?[], false); Eval(6729, o is IntE, false); Eval(6730, o is IntE[], false); Eval(6731, o is IntE?, false); Eval(6732, o is IntE?[], false); Eval(6733, o is ByteE, false); Eval(6734, o is ByteE[], false); Eval(6735, o is ByteE?, false); Eval(6736, o is ByteE?[], false); Eval(6737, o is LongE, false); Eval(6738, o is LongE[], false); Eval(6739, o is LongE?, false); Eval(6740, o is LongE?[], false); Eval(6741, o is char, false); Eval(6742, o is char[], false); Eval(6743, o is char?, false); Eval(6744, o is char?[], false); Eval(6745, o is bool, false); Eval(6746, o is bool[], false); Eval(6747, o is bool?, false); Eval(6748, o is bool?[], false); Eval(6749, o is byte, false); Eval(6750, o is byte[], false); Eval(6751, o is byte?, false); Eval(6752, o is byte?[], false); Eval(6753, o is sbyte, false); Eval(6754, o is sbyte[], false); Eval(6755, o is sbyte?, false); Eval(6756, o is sbyte?[], false); Eval(6757, o is short, false); Eval(6758, o is short[], false); Eval(6759, o is short?, false); Eval(6760, o is short?[], false); Eval(6761, o is ushort, false); Eval(6762, o is ushort[], false); Eval(6763, o is ushort?, false); Eval(6764, o is ushort?[], false); Eval(6765, o is int, false); Eval(6766, o is int[], false); Eval(6767, o is int?, false); Eval(6768, o is int?[], false); Eval(6769, o is uint, false); Eval(6770, o is uint[], false); Eval(6771, o is uint?, false); Eval(6772, o is uint?[], false); Eval(6773, o is long, false); Eval(6774, o is long[], false); Eval(6775, o is long?, false); Eval(6776, o is long?[], false); Eval(6777, o is ulong, false); Eval(6778, o is ulong[], false); Eval(6779, o is ulong?, false); Eval(6780, o is ulong?[], false); Eval(6781, o is float, false); Eval(6782, o is float[], false); Eval(6783, o is float?, false); Eval(6784, o is float?[], false); Eval(6785, o is double, false); Eval(6786, o is double[], false); Eval(6787, o is double?, false); Eval(6788, o is double?[], false); Eval(6789, o is decimal, false); Eval(6790, o is decimal[], false); Eval(6791, o is decimal?, false); Eval(6792, o is decimal?[], false); Eval(6793, o is IntPtr, false); Eval(6794, o is IntPtr[], false); Eval(6795, o is IntPtr?, false); Eval(6796, o is IntPtr?[], false); Eval(6797, o is UIntPtr, false); Eval(6798, o is UIntPtr[], false); Eval(6799, o is UIntPtr?, false); Eval(6800, o is UIntPtr?[], false); Eval(6801, o is Guid, false); Eval(6802, o is Guid[], false); Eval(6803, o is Guid?, false); Eval(6804, o is Guid?[], false); Eval(6805, o is GCHandle, false); Eval(6806, o is GCHandle[], false); Eval(6807, o is GCHandle?, false); Eval(6808, o is GCHandle?[], false); Eval(6809, o is object, true); Eval(6810, o is object[], false); Eval(6811, o is string, false); Eval(6812, o is string[], false); Eval(6813, o is ValueType, true); Eval(6814, o is ValueType[], false); Eval(6815, o is Array, false); Eval(6816, o is Array[], false); Eval(6817, o is Enum, false); Eval(6818, o is Enum[], false); Eval(6819, o is Delegate, false); Eval(6820, o is Delegate[], false); Eval(6821, o is MulticastDelegate, false); Eval(6822, o is MulticastDelegate[], false); Eval(6823, o is IEmpty, true); Eval(6824, o is IEmpty[], false); Eval(6825, o is INotEmpty, false); Eval(6826, o is INotEmpty[], false); Eval(6827, o is IEmptyGen<int>, false); Eval(6828, o is IEmptyGen<int>[], false); Eval(6829, o is INotEmptyGen<int>, false); Eval(6830, o is INotEmptyGen<int>[], false); Eval(6831, o is SimpleDelegate, false); Eval(6832, o is SimpleDelegate[], false); Eval(6833, o is GenericDelegate<int>, false); Eval(6834, o is GenericDelegate<int>[], false); Eval(6835, o is EmptyClass, false); Eval(6836, o is EmptyClass[], false); Eval(6837, o is NotEmptyClass, false); Eval(6838, o is NotEmptyClass[], false); Eval(6839, o is EmptyClassGen<int>, false); Eval(6840, o is EmptyClassGen<int>[], false); Eval(6841, o is NotEmptyClassGen<Guid>, false); Eval(6842, o is NotEmptyClassGen<Guid>[], false); Eval(6843, o is NotEmptyClassConstrainedGen<object>, false); Eval(6844, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6845, o is NestedClass, false); Eval(6846, o is NestedClass[], false); Eval(6847, o is NestedClassGen<Decimal>, false); Eval(6848, o is NestedClassGen<Decimal>[], false); Eval(6849, o is ImplementOneInterfaceC, false); Eval(6850, o is ImplementOneInterfaceC[], false); Eval(6851, o is ImplementTwoInterfaceC, false); Eval(6852, o is ImplementTwoInterfaceC[], false); Eval(6853, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6854, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6855, o is ImplementTwoInterfaceGenC<int>, false); Eval(6856, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6857, o is ImplementAllInterfaceC<int>, false); Eval(6858, o is ImplementAllInterfaceC<int>[], false); Eval(6859, o is SealedClass, false); Eval(6860, o is SealedClass[], false); } { ImplementOneInterface? v = default(ImplementOneInterface?); ValueType o = v; Eval(6861, o is EmptyStruct, false); Eval(6862, o is EmptyStruct[], false); Eval(6863, o is EmptyStruct?, false); Eval(6864, o is EmptyStruct?[], false); Eval(6865, o is NotEmptyStruct, false); Eval(6866, o is NotEmptyStruct[], false); Eval(6867, o is NotEmptyStruct?, false); Eval(6868, o is NotEmptyStruct?[], false); Eval(6869, o is EmptyStructGen<int>, false); Eval(6870, o is EmptyStructGen<int>[], false); Eval(6871, o is EmptyStructGen<int>?, false); Eval(6872, o is EmptyStructGen<int>?[], false); Eval(6873, o is NotEmptyStructGen<Guid>, false); Eval(6874, o is NotEmptyStructGen<Guid>[], false); Eval(6875, o is NotEmptyStructGen<Guid>?, false); Eval(6876, o is NotEmptyStructGen<Guid>?[], false); Eval(6877, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6878, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6879, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6880, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6881, o is NestedStruct, false); Eval(6882, o is NestedStruct[], false); Eval(6883, o is NestedStruct?, false); Eval(6884, o is NestedStruct?[], false); Eval(6885, o is NestedStructGen<Decimal>, false); Eval(6886, o is NestedStructGen<Decimal>[], false); Eval(6887, o is NestedStructGen<Decimal>?, false); Eval(6888, o is NestedStructGen<Decimal>?[], false); Eval(6889, o is ExplicitFieldOffsetStruct, false); Eval(6890, o is ExplicitFieldOffsetStruct[], false); Eval(6891, o is ExplicitFieldOffsetStruct?, false); Eval(6892, o is ExplicitFieldOffsetStruct?[], false); Eval(6901, o is MarshalAsStruct, false); Eval(6902, o is MarshalAsStruct[], false); Eval(6903, o is MarshalAsStruct?, false); Eval(6904, o is MarshalAsStruct?[], false); Eval(6905, o is ImplementOneInterface, false); Eval(6906, o is ImplementOneInterface[], false); Eval(6907, o is ImplementOneInterface?, false); Eval(6908, o is ImplementOneInterface?[], false); Eval(6909, o is ImplementTwoInterface, false); Eval(6910, o is ImplementTwoInterface[], false); Eval(6911, o is ImplementTwoInterface?, false); Eval(6912, o is ImplementTwoInterface?[], false); Eval(6913, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6914, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6915, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6916, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6917, o is ImplementTwoInterfaceGen<int>, false); Eval(6918, o is ImplementTwoInterfaceGen<int>[], false); Eval(6919, o is ImplementTwoInterfaceGen<int>?, false); Eval(6920, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6921, o is ImplementAllInterface<int>, false); Eval(6922, o is ImplementAllInterface<int>[], false); Eval(6923, o is ImplementAllInterface<int>?, false); Eval(6924, o is ImplementAllInterface<int>?[], false); Eval(6925, o is IntE, false); Eval(6926, o is IntE[], false); Eval(6927, o is IntE?, false); Eval(6928, o is IntE?[], false); Eval(6929, o is ByteE, false); Eval(6930, o is ByteE[], false); Eval(6931, o is ByteE?, false); Eval(6932, o is ByteE?[], false); Eval(6933, o is LongE, false); Eval(6934, o is LongE[], false); Eval(6935, o is LongE?, false); Eval(6936, o is LongE?[], false); Eval(6937, o is char, false); Eval(6938, o is char[], false); Eval(6939, o is char?, false); Eval(6940, o is char?[], false); Eval(6941, o is bool, false); Eval(6942, o is bool[], false); Eval(6943, o is bool?, false); Eval(6944, o is bool?[], false); Eval(6945, o is byte, false); Eval(6946, o is byte[], false); Eval(6947, o is byte?, false); Eval(6948, o is byte?[], false); Eval(6949, o is sbyte, false); Eval(6950, o is sbyte[], false); Eval(6951, o is sbyte?, false); Eval(6952, o is sbyte?[], false); Eval(6953, o is short, false); Eval(6954, o is short[], false); Eval(6955, o is short?, false); Eval(6956, o is short?[], false); Eval(6957, o is ushort, false); Eval(6958, o is ushort[], false); Eval(6959, o is ushort?, false); Eval(6960, o is ushort?[], false); Eval(6961, o is int, false); Eval(6962, o is int[], false); Eval(6963, o is int?, false); Eval(6964, o is int?[], false); Eval(6965, o is uint, false); Eval(6966, o is uint[], false); Eval(6967, o is uint?, false); Eval(6968, o is uint?[], false); Eval(6969, o is long, false); Eval(6970, o is long[], false); Eval(6971, o is long?, false); Eval(6972, o is long?[], false); Eval(6973, o is ulong, false); Eval(6974, o is ulong[], false); Eval(6975, o is ulong?, false); Eval(6976, o is ulong?[], false); Eval(6977, o is float, false); Eval(6978, o is float[], false); Eval(6979, o is float?, false); Eval(6980, o is float?[], false); Eval(6981, o is double, false); Eval(6982, o is double[], false); Eval(6983, o is double?, false); Eval(6984, o is double?[], false); Eval(6985, o is decimal, false); Eval(6986, o is decimal[], false); Eval(6987, o is decimal?, false); Eval(6988, o is decimal?[], false); Eval(6989, o is IntPtr, false); Eval(6990, o is IntPtr[], false); Eval(6991, o is IntPtr?, false); Eval(6992, o is IntPtr?[], false); Eval(6993, o is UIntPtr, false); Eval(6994, o is UIntPtr[], false); Eval(6995, o is UIntPtr?, false); Eval(6996, o is UIntPtr?[], false); Eval(6997, o is Guid, false); Eval(6998, o is Guid[], false); Eval(6999, o is Guid?, false); Eval(7000, o is Guid?[], false); Eval(7001, o is GCHandle, false); Eval(7002, o is GCHandle[], false); Eval(7003, o is GCHandle?, false); Eval(7004, o is GCHandle?[], false); Eval(7005, o is object, false); Eval(7006, o is object[], false); Eval(7007, o is string, false); Eval(7008, o is string[], false); Eval(7009, o is ValueType, false); Eval(7010, o is ValueType[], false); Eval(7011, o is Array, false); Eval(7012, o is Array[], false); Eval(7013, o is Enum, false); Eval(7014, o is Enum[], false); Eval(7015, o is Delegate, false); Eval(7016, o is Delegate[], false); Eval(7017, o is MulticastDelegate, false); Eval(7018, o is MulticastDelegate[], false); Eval(7019, o is IEmpty, false); Eval(7020, o is IEmpty[], false); Eval(7021, o is INotEmpty, false); Eval(7022, o is INotEmpty[], false); Eval(7023, o is IEmptyGen<int>, false); Eval(7024, o is IEmptyGen<int>[], false); Eval(7025, o is INotEmptyGen<int>, false); Eval(7026, o is INotEmptyGen<int>[], false); Eval(7027, o is SimpleDelegate, false); Eval(7028, o is SimpleDelegate[], false); Eval(7029, o is GenericDelegate<int>, false); Eval(7030, o is GenericDelegate<int>[], false); Eval(7031, o is EmptyClass, false); Eval(7032, o is EmptyClass[], false); Eval(7033, o is NotEmptyClass, false); Eval(7034, o is NotEmptyClass[], false); Eval(7035, o is EmptyClassGen<int>, false); Eval(7036, o is EmptyClassGen<int>[], false); Eval(7037, o is NotEmptyClassGen<Guid>, false); Eval(7038, o is NotEmptyClassGen<Guid>[], false); Eval(7039, o is NotEmptyClassConstrainedGen<object>, false); Eval(7040, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7041, o is NestedClass, false); Eval(7042, o is NestedClass[], false); Eval(7043, o is NestedClassGen<Decimal>, false); Eval(7044, o is NestedClassGen<Decimal>[], false); Eval(7045, o is ImplementOneInterfaceC, false); Eval(7046, o is ImplementOneInterfaceC[], false); Eval(7047, o is ImplementTwoInterfaceC, false); Eval(7048, o is ImplementTwoInterfaceC[], false); Eval(7049, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7050, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7051, o is ImplementTwoInterfaceGenC<int>, false); Eval(7052, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7053, o is ImplementAllInterfaceC<int>, false); Eval(7054, o is ImplementAllInterfaceC<int>[], false); Eval(7055, o is SealedClass, false); Eval(7056, o is SealedClass[], false); } } // end of test case 0012 private static void TestCase0013() { { ImplementTwoInterface v = default(ImplementTwoInterface); ValueType o = v; Eval(7057, o is EmptyStruct, false); Eval(7058, o is EmptyStruct[], false); Eval(7059, o is EmptyStruct?, false); Eval(7060, o is EmptyStruct?[], false); Eval(7061, o is NotEmptyStruct, false); Eval(7062, o is NotEmptyStruct[], false); Eval(7063, o is NotEmptyStruct?, false); Eval(7064, o is NotEmptyStruct?[], false); Eval(7065, o is EmptyStructGen<int>, false); Eval(7066, o is EmptyStructGen<int>[], false); Eval(7067, o is EmptyStructGen<int>?, false); Eval(7068, o is EmptyStructGen<int>?[], false); Eval(7069, o is NotEmptyStructGen<Guid>, false); Eval(7070, o is NotEmptyStructGen<Guid>[], false); Eval(7071, o is NotEmptyStructGen<Guid>?, false); Eval(7072, o is NotEmptyStructGen<Guid>?[], false); Eval(7073, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7074, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7075, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7076, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7077, o is NestedStruct, false); Eval(7078, o is NestedStruct[], false); Eval(7079, o is NestedStruct?, false); Eval(7080, o is NestedStruct?[], false); Eval(7081, o is NestedStructGen<Decimal>, false); Eval(7082, o is NestedStructGen<Decimal>[], false); Eval(7083, o is NestedStructGen<Decimal>?, false); Eval(7084, o is NestedStructGen<Decimal>?[], false); Eval(7085, o is ExplicitFieldOffsetStruct, false); Eval(7086, o is ExplicitFieldOffsetStruct[], false); Eval(7087, o is ExplicitFieldOffsetStruct?, false); Eval(7088, o is ExplicitFieldOffsetStruct?[], false); Eval(7097, o is MarshalAsStruct, false); Eval(7098, o is MarshalAsStruct[], false); Eval(7099, o is MarshalAsStruct?, false); Eval(7100, o is MarshalAsStruct?[], false); Eval(7101, o is ImplementOneInterface, false); Eval(7102, o is ImplementOneInterface[], false); Eval(7103, o is ImplementOneInterface?, false); Eval(7104, o is ImplementOneInterface?[], false); Eval(7105, o is ImplementTwoInterface, true); Eval(7106, o is ImplementTwoInterface[], false); Eval(7107, o is ImplementTwoInterface?, true); Eval(7108, o is ImplementTwoInterface?[], false); Eval(7109, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(7110, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7111, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(7112, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7113, o is ImplementTwoInterfaceGen<int>, false); Eval(7114, o is ImplementTwoInterfaceGen<int>[], false); Eval(7115, o is ImplementTwoInterfaceGen<int>?, false); Eval(7116, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7117, o is ImplementAllInterface<int>, false); Eval(7118, o is ImplementAllInterface<int>[], false); Eval(7119, o is ImplementAllInterface<int>?, false); Eval(7120, o is ImplementAllInterface<int>?[], false); Eval(7121, o is IntE, false); Eval(7122, o is IntE[], false); Eval(7123, o is IntE?, false); Eval(7124, o is IntE?[], false); Eval(7125, o is ByteE, false); Eval(7126, o is ByteE[], false); Eval(7127, o is ByteE?, false); Eval(7128, o is ByteE?[], false); Eval(7129, o is LongE, false); Eval(7130, o is LongE[], false); Eval(7131, o is LongE?, false); Eval(7132, o is LongE?[], false); Eval(7133, o is char, false); Eval(7134, o is char[], false); Eval(7135, o is char?, false); Eval(7136, o is char?[], false); Eval(7137, o is bool, false); Eval(7138, o is bool[], false); Eval(7139, o is bool?, false); Eval(7140, o is bool?[], false); Eval(7141, o is byte, false); Eval(7142, o is byte[], false); Eval(7143, o is byte?, false); Eval(7144, o is byte?[], false); Eval(7145, o is sbyte, false); Eval(7146, o is sbyte[], false); Eval(7147, o is sbyte?, false); Eval(7148, o is sbyte?[], false); Eval(7149, o is short, false); Eval(7150, o is short[], false); Eval(7151, o is short?, false); Eval(7152, o is short?[], false); Eval(7153, o is ushort, false); Eval(7154, o is ushort[], false); Eval(7155, o is ushort?, false); Eval(7156, o is ushort?[], false); Eval(7157, o is int, false); Eval(7158, o is int[], false); Eval(7159, o is int?, false); Eval(7160, o is int?[], false); Eval(7161, o is uint, false); Eval(7162, o is uint[], false); Eval(7163, o is uint?, false); Eval(7164, o is uint?[], false); Eval(7165, o is long, false); Eval(7166, o is long[], false); Eval(7167, o is long?, false); Eval(7168, o is long?[], false); Eval(7169, o is ulong, false); Eval(7170, o is ulong[], false); Eval(7171, o is ulong?, false); Eval(7172, o is ulong?[], false); Eval(7173, o is float, false); Eval(7174, o is float[], false); Eval(7175, o is float?, false); Eval(7176, o is float?[], false); Eval(7177, o is double, false); Eval(7178, o is double[], false); Eval(7179, o is double?, false); Eval(7180, o is double?[], false); Eval(7181, o is decimal, false); Eval(7182, o is decimal[], false); Eval(7183, o is decimal?, false); Eval(7184, o is decimal?[], false); Eval(7185, o is IntPtr, false); Eval(7186, o is IntPtr[], false); Eval(7187, o is IntPtr?, false); Eval(7188, o is IntPtr?[], false); Eval(7189, o is UIntPtr, false); Eval(7190, o is UIntPtr[], false); Eval(7191, o is UIntPtr?, false); Eval(7192, o is UIntPtr?[], false); Eval(7193, o is Guid, false); Eval(7194, o is Guid[], false); Eval(7195, o is Guid?, false); Eval(7196, o is Guid?[], false); Eval(7197, o is GCHandle, false); Eval(7198, o is GCHandle[], false); Eval(7199, o is GCHandle?, false); Eval(7200, o is GCHandle?[], false); Eval(7201, o is object, true); Eval(7202, o is object[], false); Eval(7203, o is string, false); Eval(7204, o is string[], false); Eval(7205, o is ValueType, true); Eval(7206, o is ValueType[], false); Eval(7207, o is Array, false); Eval(7208, o is Array[], false); Eval(7209, o is Enum, false); Eval(7210, o is Enum[], false); Eval(7211, o is Delegate, false); Eval(7212, o is Delegate[], false); Eval(7213, o is MulticastDelegate, false); Eval(7214, o is MulticastDelegate[], false); Eval(7215, o is IEmpty, true); Eval(7216, o is IEmpty[], false); Eval(7217, o is INotEmpty, true); Eval(7218, o is INotEmpty[], false); Eval(7219, o is IEmptyGen<int>, false); Eval(7220, o is IEmptyGen<int>[], false); Eval(7221, o is INotEmptyGen<int>, false); Eval(7222, o is INotEmptyGen<int>[], false); Eval(7223, o is SimpleDelegate, false); Eval(7224, o is SimpleDelegate[], false); Eval(7225, o is GenericDelegate<int>, false); Eval(7226, o is GenericDelegate<int>[], false); Eval(7227, o is EmptyClass, false); Eval(7228, o is EmptyClass[], false); Eval(7229, o is NotEmptyClass, false); Eval(7230, o is NotEmptyClass[], false); Eval(7231, o is EmptyClassGen<int>, false); Eval(7232, o is EmptyClassGen<int>[], false); Eval(7233, o is NotEmptyClassGen<Guid>, false); Eval(7234, o is NotEmptyClassGen<Guid>[], false); Eval(7235, o is NotEmptyClassConstrainedGen<object>, false); Eval(7236, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7237, o is NestedClass, false); Eval(7238, o is NestedClass[], false); Eval(7239, o is NestedClassGen<Decimal>, false); Eval(7240, o is NestedClassGen<Decimal>[], false); Eval(7241, o is ImplementOneInterfaceC, false); Eval(7242, o is ImplementOneInterfaceC[], false); Eval(7243, o is ImplementTwoInterfaceC, false); Eval(7244, o is ImplementTwoInterfaceC[], false); Eval(7245, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7246, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7247, o is ImplementTwoInterfaceGenC<int>, false); Eval(7248, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7249, o is ImplementAllInterfaceC<int>, false); Eval(7250, o is ImplementAllInterfaceC<int>[], false); Eval(7251, o is SealedClass, false); Eval(7252, o is SealedClass[], false); } { ImplementTwoInterface? v = default(ImplementTwoInterface); ValueType o = v; Eval(7253, o is EmptyStruct, false); Eval(7254, o is EmptyStruct[], false); Eval(7255, o is EmptyStruct?, false); Eval(7256, o is EmptyStruct?[], false); Eval(7257, o is NotEmptyStruct, false); Eval(7258, o is NotEmptyStruct[], false); Eval(7259, o is NotEmptyStruct?, false); Eval(7260, o is NotEmptyStruct?[], false); Eval(7261, o is EmptyStructGen<int>, false); Eval(7262, o is EmptyStructGen<int>[], false); Eval(7263, o is EmptyStructGen<int>?, false); Eval(7264, o is EmptyStructGen<int>?[], false); Eval(7265, o is NotEmptyStructGen<Guid>, false); Eval(7266, o is NotEmptyStructGen<Guid>[], false); Eval(7267, o is NotEmptyStructGen<Guid>?, false); Eval(7268, o is NotEmptyStructGen<Guid>?[], false); Eval(7269, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7270, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7271, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7272, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7273, o is NestedStruct, false); Eval(7274, o is NestedStruct[], false); Eval(7275, o is NestedStruct?, false); Eval(7276, o is NestedStruct?[], false); Eval(7277, o is NestedStructGen<Decimal>, false); Eval(7278, o is NestedStructGen<Decimal>[], false); Eval(7279, o is NestedStructGen<Decimal>?, false); Eval(7280, o is NestedStructGen<Decimal>?[], false); Eval(7281, o is ExplicitFieldOffsetStruct, false); Eval(7282, o is ExplicitFieldOffsetStruct[], false); Eval(7283, o is ExplicitFieldOffsetStruct?, false); Eval(7284, o is ExplicitFieldOffsetStruct?[], false); Eval(7293, o is MarshalAsStruct, false); Eval(7294, o is MarshalAsStruct[], false); Eval(7295, o is MarshalAsStruct?, false); Eval(7296, o is MarshalAsStruct?[], false); Eval(7297, o is ImplementOneInterface, false); Eval(7298, o is ImplementOneInterface[], false); Eval(7299, o is ImplementOneInterface?, false); Eval(7300, o is ImplementOneInterface?[], false); Eval(7301, o is ImplementTwoInterface, true); Eval(7302, o is ImplementTwoInterface[], false); Eval(7303, o is ImplementTwoInterface?, true); Eval(7304, o is ImplementTwoInterface?[], false); Eval(7305, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(7306, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7307, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(7308, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7309, o is ImplementTwoInterfaceGen<int>, false); Eval(7310, o is ImplementTwoInterfaceGen<int>[], false); Eval(7311, o is ImplementTwoInterfaceGen<int>?, false); Eval(7312, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7313, o is ImplementAllInterface<int>, false); Eval(7314, o is ImplementAllInterface<int>[], false); Eval(7315, o is ImplementAllInterface<int>?, false); Eval(7316, o is ImplementAllInterface<int>?[], false); Eval(7317, o is IntE, false); Eval(7318, o is IntE[], false); Eval(7319, o is IntE?, false); Eval(7320, o is IntE?[], false); Eval(7321, o is ByteE, false); Eval(7322, o is ByteE[], false); Eval(7323, o is ByteE?, false); Eval(7324, o is ByteE?[], false); Eval(7325, o is LongE, false); Eval(7326, o is LongE[], false); Eval(7327, o is LongE?, false); Eval(7328, o is LongE?[], false); Eval(7329, o is char, false); Eval(7330, o is char[], false); Eval(7331, o is char?, false); Eval(7332, o is char?[], false); Eval(7333, o is bool, false); Eval(7334, o is bool[], false); Eval(7335, o is bool?, false); Eval(7336, o is bool?[], false); Eval(7337, o is byte, false); Eval(7338, o is byte[], false); Eval(7339, o is byte?, false); Eval(7340, o is byte?[], false); Eval(7341, o is sbyte, false); Eval(7342, o is sbyte[], false); Eval(7343, o is sbyte?, false); Eval(7344, o is sbyte?[], false); Eval(7345, o is short, false); Eval(7346, o is short[], false); Eval(7347, o is short?, false); Eval(7348, o is short?[], false); Eval(7349, o is ushort, false); Eval(7350, o is ushort[], false); Eval(7351, o is ushort?, false); Eval(7352, o is ushort?[], false); Eval(7353, o is int, false); Eval(7354, o is int[], false); Eval(7355, o is int?, false); Eval(7356, o is int?[], false); Eval(7357, o is uint, false); Eval(7358, o is uint[], false); Eval(7359, o is uint?, false); Eval(7360, o is uint?[], false); Eval(7361, o is long, false); Eval(7362, o is long[], false); Eval(7363, o is long?, false); Eval(7364, o is long?[], false); Eval(7365, o is ulong, false); Eval(7366, o is ulong[], false); Eval(7367, o is ulong?, false); Eval(7368, o is ulong?[], false); Eval(7369, o is float, false); Eval(7370, o is float[], false); Eval(7371, o is float?, false); Eval(7372, o is float?[], false); Eval(7373, o is double, false); Eval(7374, o is double[], false); Eval(7375, o is double?, false); Eval(7376, o is double?[], false); Eval(7377, o is decimal, false); Eval(7378, o is decimal[], false); Eval(7379, o is decimal?, false); Eval(7380, o is decimal?[], false); Eval(7381, o is IntPtr, false); Eval(7382, o is IntPtr[], false); Eval(7383, o is IntPtr?, false); Eval(7384, o is IntPtr?[], false); Eval(7385, o is UIntPtr, false); Eval(7386, o is UIntPtr[], false); Eval(7387, o is UIntPtr?, false); Eval(7388, o is UIntPtr?[], false); Eval(7389, o is Guid, false); Eval(7390, o is Guid[], false); Eval(7391, o is Guid?, false); Eval(7392, o is Guid?[], false); Eval(7393, o is GCHandle, false); Eval(7394, o is GCHandle[], false); Eval(7395, o is GCHandle?, false); Eval(7396, o is GCHandle?[], false); Eval(7397, o is object, true); Eval(7398, o is object[], false); Eval(7399, o is string, false); Eval(7400, o is string[], false); Eval(7401, o is ValueType, true); Eval(7402, o is ValueType[], false); Eval(7403, o is Array, false); Eval(7404, o is Array[], false); Eval(7405, o is Enum, false); Eval(7406, o is Enum[], false); Eval(7407, o is Delegate, false); Eval(7408, o is Delegate[], false); Eval(7409, o is MulticastDelegate, false); Eval(7410, o is MulticastDelegate[], false); Eval(7411, o is IEmpty, true); Eval(7412, o is IEmpty[], false); Eval(7413, o is INotEmpty, true); Eval(7414, o is INotEmpty[], false); Eval(7415, o is IEmptyGen<int>, false); Eval(7416, o is IEmptyGen<int>[], false); Eval(7417, o is INotEmptyGen<int>, false); Eval(7418, o is INotEmptyGen<int>[], false); Eval(7419, o is SimpleDelegate, false); Eval(7420, o is SimpleDelegate[], false); Eval(7421, o is GenericDelegate<int>, false); Eval(7422, o is GenericDelegate<int>[], false); Eval(7423, o is EmptyClass, false); Eval(7424, o is EmptyClass[], false); Eval(7425, o is NotEmptyClass, false); Eval(7426, o is NotEmptyClass[], false); Eval(7427, o is EmptyClassGen<int>, false); Eval(7428, o is EmptyClassGen<int>[], false); Eval(7429, o is NotEmptyClassGen<Guid>, false); Eval(7430, o is NotEmptyClassGen<Guid>[], false); Eval(7431, o is NotEmptyClassConstrainedGen<object>, false); Eval(7432, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7433, o is NestedClass, false); Eval(7434, o is NestedClass[], false); Eval(7435, o is NestedClassGen<Decimal>, false); Eval(7436, o is NestedClassGen<Decimal>[], false); Eval(7437, o is ImplementOneInterfaceC, false); Eval(7438, o is ImplementOneInterfaceC[], false); Eval(7439, o is ImplementTwoInterfaceC, false); Eval(7440, o is ImplementTwoInterfaceC[], false); Eval(7441, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7442, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7443, o is ImplementTwoInterfaceGenC<int>, false); Eval(7444, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7445, o is ImplementAllInterfaceC<int>, false); Eval(7446, o is ImplementAllInterfaceC<int>[], false); Eval(7447, o is SealedClass, false); Eval(7448, o is SealedClass[], false); } { ImplementTwoInterface? v = default(ImplementTwoInterface?); ValueType o = v; Eval(7449, o is EmptyStruct, false); Eval(7450, o is EmptyStruct[], false); Eval(7451, o is EmptyStruct?, false); Eval(7452, o is EmptyStruct?[], false); Eval(7453, o is NotEmptyStruct, false); Eval(7454, o is NotEmptyStruct[], false); Eval(7455, o is NotEmptyStruct?, false); Eval(7456, o is NotEmptyStruct?[], false); Eval(7457, o is EmptyStructGen<int>, false); Eval(7458, o is EmptyStructGen<int>[], false); Eval(7459, o is EmptyStructGen<int>?, false); Eval(7460, o is EmptyStructGen<int>?[], false); Eval(7461, o is NotEmptyStructGen<Guid>, false); Eval(7462, o is NotEmptyStructGen<Guid>[], false); Eval(7463, o is NotEmptyStructGen<Guid>?, false); Eval(7464, o is NotEmptyStructGen<Guid>?[], false); Eval(7465, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7466, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7467, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7468, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7469, o is NestedStruct, false); Eval(7470, o is NestedStruct[], false); Eval(7471, o is NestedStruct?, false); Eval(7472, o is NestedStruct?[], false); Eval(7473, o is NestedStructGen<Decimal>, false); Eval(7474, o is NestedStructGen<Decimal>[], false); Eval(7475, o is NestedStructGen<Decimal>?, false); Eval(7476, o is NestedStructGen<Decimal>?[], false); Eval(7477, o is ExplicitFieldOffsetStruct, false); Eval(7478, o is ExplicitFieldOffsetStruct[], false); Eval(7479, o is ExplicitFieldOffsetStruct?, false); Eval(7480, o is ExplicitFieldOffsetStruct?[], false); Eval(7489, o is MarshalAsStruct, false); Eval(7490, o is MarshalAsStruct[], false); Eval(7491, o is MarshalAsStruct?, false); Eval(7492, o is MarshalAsStruct?[], false); Eval(7493, o is ImplementOneInterface, false); Eval(7494, o is ImplementOneInterface[], false); Eval(7495, o is ImplementOneInterface?, false); Eval(7496, o is ImplementOneInterface?[], false); Eval(7497, o is ImplementTwoInterface, false); Eval(7498, o is ImplementTwoInterface[], false); Eval(7499, o is ImplementTwoInterface?, false); Eval(7500, o is ImplementTwoInterface?[], false); Eval(7501, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(7502, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7503, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(7504, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7505, o is ImplementTwoInterfaceGen<int>, false); Eval(7506, o is ImplementTwoInterfaceGen<int>[], false); Eval(7507, o is ImplementTwoInterfaceGen<int>?, false); Eval(7508, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7509, o is ImplementAllInterface<int>, false); Eval(7510, o is ImplementAllInterface<int>[], false); Eval(7511, o is ImplementAllInterface<int>?, false); Eval(7512, o is ImplementAllInterface<int>?[], false); Eval(7513, o is IntE, false); Eval(7514, o is IntE[], false); Eval(7515, o is IntE?, false); Eval(7516, o is IntE?[], false); Eval(7517, o is ByteE, false); Eval(7518, o is ByteE[], false); Eval(7519, o is ByteE?, false); Eval(7520, o is ByteE?[], false); Eval(7521, o is LongE, false); Eval(7522, o is LongE[], false); Eval(7523, o is LongE?, false); Eval(7524, o is LongE?[], false); Eval(7525, o is char, false); Eval(7526, o is char[], false); Eval(7527, o is char?, false); Eval(7528, o is char?[], false); Eval(7529, o is bool, false); Eval(7530, o is bool[], false); Eval(7531, o is bool?, false); Eval(7532, o is bool?[], false); Eval(7533, o is byte, false); Eval(7534, o is byte[], false); Eval(7535, o is byte?, false); Eval(7536, o is byte?[], false); Eval(7537, o is sbyte, false); Eval(7538, o is sbyte[], false); Eval(7539, o is sbyte?, false); Eval(7540, o is sbyte?[], false); Eval(7541, o is short, false); Eval(7542, o is short[], false); Eval(7543, o is short?, false); Eval(7544, o is short?[], false); Eval(7545, o is ushort, false); Eval(7546, o is ushort[], false); Eval(7547, o is ushort?, false); Eval(7548, o is ushort?[], false); Eval(7549, o is int, false); Eval(7550, o is int[], false); Eval(7551, o is int?, false); Eval(7552, o is int?[], false); Eval(7553, o is uint, false); Eval(7554, o is uint[], false); Eval(7555, o is uint?, false); Eval(7556, o is uint?[], false); Eval(7557, o is long, false); Eval(7558, o is long[], false); Eval(7559, o is long?, false); Eval(7560, o is long?[], false); Eval(7561, o is ulong, false); Eval(7562, o is ulong[], false); Eval(7563, o is ulong?, false); Eval(7564, o is ulong?[], false); Eval(7565, o is float, false); Eval(7566, o is float[], false); Eval(7567, o is float?, false); Eval(7568, o is float?[], false); Eval(7569, o is double, false); Eval(7570, o is double[], false); Eval(7571, o is double?, false); Eval(7572, o is double?[], false); Eval(7573, o is decimal, false); Eval(7574, o is decimal[], false); Eval(7575, o is decimal?, false); Eval(7576, o is decimal?[], false); Eval(7577, o is IntPtr, false); Eval(7578, o is IntPtr[], false); Eval(7579, o is IntPtr?, false); Eval(7580, o is IntPtr?[], false); Eval(7581, o is UIntPtr, false); Eval(7582, o is UIntPtr[], false); Eval(7583, o is UIntPtr?, false); Eval(7584, o is UIntPtr?[], false); Eval(7585, o is Guid, false); Eval(7586, o is Guid[], false); Eval(7587, o is Guid?, false); Eval(7588, o is Guid?[], false); Eval(7589, o is GCHandle, false); Eval(7590, o is GCHandle[], false); Eval(7591, o is GCHandle?, false); Eval(7592, o is GCHandle?[], false); Eval(7593, o is object, false); Eval(7594, o is object[], false); Eval(7595, o is string, false); Eval(7596, o is string[], false); Eval(7597, o is ValueType, false); Eval(7598, o is ValueType[], false); Eval(7599, o is Array, false); Eval(7600, o is Array[], false); Eval(7601, o is Enum, false); Eval(7602, o is Enum[], false); Eval(7603, o is Delegate, false); Eval(7604, o is Delegate[], false); Eval(7605, o is MulticastDelegate, false); Eval(7606, o is MulticastDelegate[], false); Eval(7607, o is IEmpty, false); Eval(7608, o is IEmpty[], false); Eval(7609, o is INotEmpty, false); Eval(7610, o is INotEmpty[], false); Eval(7611, o is IEmptyGen<int>, false); Eval(7612, o is IEmptyGen<int>[], false); Eval(7613, o is INotEmptyGen<int>, false); Eval(7614, o is INotEmptyGen<int>[], false); Eval(7615, o is SimpleDelegate, false); Eval(7616, o is SimpleDelegate[], false); Eval(7617, o is GenericDelegate<int>, false); Eval(7618, o is GenericDelegate<int>[], false); Eval(7619, o is EmptyClass, false); Eval(7620, o is EmptyClass[], false); Eval(7621, o is NotEmptyClass, false); Eval(7622, o is NotEmptyClass[], false); Eval(7623, o is EmptyClassGen<int>, false); Eval(7624, o is EmptyClassGen<int>[], false); Eval(7625, o is NotEmptyClassGen<Guid>, false); Eval(7626, o is NotEmptyClassGen<Guid>[], false); Eval(7627, o is NotEmptyClassConstrainedGen<object>, false); Eval(7628, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7629, o is NestedClass, false); Eval(7630, o is NestedClass[], false); Eval(7631, o is NestedClassGen<Decimal>, false); Eval(7632, o is NestedClassGen<Decimal>[], false); Eval(7633, o is ImplementOneInterfaceC, false); Eval(7634, o is ImplementOneInterfaceC[], false); Eval(7635, o is ImplementTwoInterfaceC, false); Eval(7636, o is ImplementTwoInterfaceC[], false); Eval(7637, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7638, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7639, o is ImplementTwoInterfaceGenC<int>, false); Eval(7640, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7641, o is ImplementAllInterfaceC<int>, false); Eval(7642, o is ImplementAllInterfaceC<int>[], false); Eval(7643, o is SealedClass, false); Eval(7644, o is SealedClass[], false); } } // end of test case 0013 private static void TestCase0014() { { ImplementOneInterfaceGen<EmptyStructGen<int>> v = default(ImplementOneInterfaceGen<EmptyStructGen<int>>); ValueType o = v; Eval(7645, o is EmptyStruct, false); Eval(7646, o is EmptyStruct[], false); Eval(7647, o is EmptyStruct?, false); Eval(7648, o is EmptyStruct?[], false); Eval(7649, o is NotEmptyStruct, false); Eval(7650, o is NotEmptyStruct[], false); Eval(7651, o is NotEmptyStruct?, false); Eval(7652, o is NotEmptyStruct?[], false); Eval(7653, o is EmptyStructGen<int>, false); Eval(7654, o is EmptyStructGen<int>[], false); Eval(7655, o is EmptyStructGen<int>?, false); Eval(7656, o is EmptyStructGen<int>?[], false); Eval(7657, o is NotEmptyStructGen<Guid>, false); Eval(7658, o is NotEmptyStructGen<Guid>[], false); Eval(7659, o is NotEmptyStructGen<Guid>?, false); Eval(7660, o is NotEmptyStructGen<Guid>?[], false); Eval(7661, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7662, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7663, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7664, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7665, o is NestedStruct, false); Eval(7666, o is NestedStruct[], false); Eval(7667, o is NestedStruct?, false); Eval(7668, o is NestedStruct?[], false); Eval(7669, o is NestedStructGen<Decimal>, false); Eval(7670, o is NestedStructGen<Decimal>[], false); Eval(7671, o is NestedStructGen<Decimal>?, false); Eval(7672, o is NestedStructGen<Decimal>?[], false); Eval(7673, o is ExplicitFieldOffsetStruct, false); Eval(7674, o is ExplicitFieldOffsetStruct[], false); Eval(7675, o is ExplicitFieldOffsetStruct?, false); Eval(7676, o is ExplicitFieldOffsetStruct?[], false); Eval(7685, o is MarshalAsStruct, false); Eval(7686, o is MarshalAsStruct[], false); Eval(7687, o is MarshalAsStruct?, false); Eval(7688, o is MarshalAsStruct?[], false); Eval(7689, o is ImplementOneInterface, false); Eval(7690, o is ImplementOneInterface[], false); Eval(7691, o is ImplementOneInterface?, false); Eval(7692, o is ImplementOneInterface?[], false); Eval(7693, o is ImplementTwoInterface, false); Eval(7694, o is ImplementTwoInterface[], false); Eval(7695, o is ImplementTwoInterface?, false); Eval(7696, o is ImplementTwoInterface?[], false); Eval(7697, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, true); Eval(7698, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7699, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, true); Eval(7700, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7701, o is ImplementTwoInterfaceGen<int>, false); Eval(7702, o is ImplementTwoInterfaceGen<int>[], false); Eval(7703, o is ImplementTwoInterfaceGen<int>?, false); Eval(7704, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7705, o is ImplementAllInterface<int>, false); Eval(7706, o is ImplementAllInterface<int>[], false); Eval(7707, o is ImplementAllInterface<int>?, false); Eval(7708, o is ImplementAllInterface<int>?[], false); Eval(7709, o is IntE, false); Eval(7710, o is IntE[], false); Eval(7711, o is IntE?, false); Eval(7712, o is IntE?[], false); Eval(7713, o is ByteE, false); Eval(7714, o is ByteE[], false); Eval(7715, o is ByteE?, false); Eval(7716, o is ByteE?[], false); Eval(7717, o is LongE, false); Eval(7718, o is LongE[], false); Eval(7719, o is LongE?, false); Eval(7720, o is LongE?[], false); Eval(7721, o is char, false); Eval(7722, o is char[], false); Eval(7723, o is char?, false); Eval(7724, o is char?[], false); Eval(7725, o is bool, false); Eval(7726, o is bool[], false); Eval(7727, o is bool?, false); Eval(7728, o is bool?[], false); Eval(7729, o is byte, false); Eval(7730, o is byte[], false); Eval(7731, o is byte?, false); Eval(7732, o is byte?[], false); Eval(7733, o is sbyte, false); Eval(7734, o is sbyte[], false); Eval(7735, o is sbyte?, false); Eval(7736, o is sbyte?[], false); Eval(7737, o is short, false); Eval(7738, o is short[], false); Eval(7739, o is short?, false); Eval(7740, o is short?[], false); Eval(7741, o is ushort, false); Eval(7742, o is ushort[], false); Eval(7743, o is ushort?, false); Eval(7744, o is ushort?[], false); Eval(7745, o is int, false); Eval(7746, o is int[], false); Eval(7747, o is int?, false); Eval(7748, o is int?[], false); Eval(7749, o is uint, false); Eval(7750, o is uint[], false); Eval(7751, o is uint?, false); Eval(7752, o is uint?[], false); Eval(7753, o is long, false); Eval(7754, o is long[], false); Eval(7755, o is long?, false); Eval(7756, o is long?[], false); Eval(7757, o is ulong, false); Eval(7758, o is ulong[], false); Eval(7759, o is ulong?, false); Eval(7760, o is ulong?[], false); Eval(7761, o is float, false); Eval(7762, o is float[], false); Eval(7763, o is float?, false); Eval(7764, o is float?[], false); Eval(7765, o is double, false); Eval(7766, o is double[], false); Eval(7767, o is double?, false); Eval(7768, o is double?[], false); Eval(7769, o is decimal, false); Eval(7770, o is decimal[], false); Eval(7771, o is decimal?, false); Eval(7772, o is decimal?[], false); Eval(7773, o is IntPtr, false); Eval(7774, o is IntPtr[], false); Eval(7775, o is IntPtr?, false); Eval(7776, o is IntPtr?[], false); Eval(7777, o is UIntPtr, false); Eval(7778, o is UIntPtr[], false); Eval(7779, o is UIntPtr?, false); Eval(7780, o is UIntPtr?[], false); Eval(7781, o is Guid, false); Eval(7782, o is Guid[], false); Eval(7783, o is Guid?, false); Eval(7784, o is Guid?[], false); Eval(7785, o is GCHandle, false); Eval(7786, o is GCHandle[], false); Eval(7787, o is GCHandle?, false); Eval(7788, o is GCHandle?[], false); Eval(7789, o is object, true); Eval(7790, o is object[], false); Eval(7791, o is string, false); Eval(7792, o is string[], false); Eval(7793, o is ValueType, true); Eval(7794, o is ValueType[], false); Eval(7795, o is Array, false); Eval(7796, o is Array[], false); Eval(7797, o is Enum, false); Eval(7798, o is Enum[], false); Eval(7799, o is Delegate, false); Eval(7800, o is Delegate[], false); Eval(7801, o is MulticastDelegate, false); Eval(7802, o is MulticastDelegate[], false); Eval(7803, o is IEmpty, false); Eval(7804, o is IEmpty[], false); Eval(7805, o is INotEmpty, false); Eval(7806, o is INotEmpty[], false); Eval(7807, o is IEmptyGen<int>, false); Eval(7808, o is IEmptyGen<int>[], false); Eval(7809, o is INotEmptyGen<int>, false); Eval(7810, o is INotEmptyGen<int>[], false); Eval(7811, o is SimpleDelegate, false); Eval(7812, o is SimpleDelegate[], false); Eval(7813, o is GenericDelegate<int>, false); Eval(7814, o is GenericDelegate<int>[], false); Eval(7815, o is EmptyClass, false); Eval(7816, o is EmptyClass[], false); Eval(7817, o is NotEmptyClass, false); Eval(7818, o is NotEmptyClass[], false); Eval(7819, o is EmptyClassGen<int>, false); Eval(7820, o is EmptyClassGen<int>[], false); Eval(7821, o is NotEmptyClassGen<Guid>, false); Eval(7822, o is NotEmptyClassGen<Guid>[], false); Eval(7823, o is NotEmptyClassConstrainedGen<object>, false); Eval(7824, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7825, o is NestedClass, false); Eval(7826, o is NestedClass[], false); Eval(7827, o is NestedClassGen<Decimal>, false); Eval(7828, o is NestedClassGen<Decimal>[], false); Eval(7829, o is ImplementOneInterfaceC, false); Eval(7830, o is ImplementOneInterfaceC[], false); Eval(7831, o is ImplementTwoInterfaceC, false); Eval(7832, o is ImplementTwoInterfaceC[], false); Eval(7833, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7834, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7835, o is ImplementTwoInterfaceGenC<int>, false); Eval(7836, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7837, o is ImplementAllInterfaceC<int>, false); Eval(7838, o is ImplementAllInterfaceC<int>[], false); Eval(7839, o is SealedClass, false); Eval(7840, o is SealedClass[], false); } { ImplementOneInterfaceGen<EmptyStructGen<int>>? v = default(ImplementOneInterfaceGen<EmptyStructGen<int>>); ValueType o = v; Eval(7841, o is EmptyStruct, false); Eval(7842, o is EmptyStruct[], false); Eval(7843, o is EmptyStruct?, false); Eval(7844, o is EmptyStruct?[], false); Eval(7845, o is NotEmptyStruct, false); Eval(7846, o is NotEmptyStruct[], false); Eval(7847, o is NotEmptyStruct?, false); Eval(7848, o is NotEmptyStruct?[], false); Eval(7849, o is EmptyStructGen<int>, false); Eval(7850, o is EmptyStructGen<int>[], false); Eval(7851, o is EmptyStructGen<int>?, false); Eval(7852, o is EmptyStructGen<int>?[], false); Eval(7853, o is NotEmptyStructGen<Guid>, false); Eval(7854, o is NotEmptyStructGen<Guid>[], false); Eval(7855, o is NotEmptyStructGen<Guid>?, false); Eval(7856, o is NotEmptyStructGen<Guid>?[], false); Eval(7857, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7858, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7859, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7860, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7861, o is NestedStruct, false); Eval(7862, o is NestedStruct[], false); Eval(7863, o is NestedStruct?, false); Eval(7864, o is NestedStruct?[], false); Eval(7865, o is NestedStructGen<Decimal>, false); Eval(7866, o is NestedStructGen<Decimal>[], false); Eval(7867, o is NestedStructGen<Decimal>?, false); Eval(7868, o is NestedStructGen<Decimal>?[], false); Eval(7869, o is ExplicitFieldOffsetStruct, false); Eval(7870, o is ExplicitFieldOffsetStruct[], false); Eval(7871, o is ExplicitFieldOffsetStruct?, false); Eval(7872, o is ExplicitFieldOffsetStruct?[], false); Eval(7881, o is MarshalAsStruct, false); Eval(7882, o is MarshalAsStruct[], false); Eval(7883, o is MarshalAsStruct?, false); Eval(7884, o is MarshalAsStruct?[], false); Eval(7885, o is ImplementOneInterface, false); Eval(7886, o is ImplementOneInterface[], false); Eval(7887, o is ImplementOneInterface?, false); Eval(7888, o is ImplementOneInterface?[], false); Eval(7889, o is ImplementTwoInterface, false); Eval(7890, o is ImplementTwoInterface[], false); Eval(7891, o is ImplementTwoInterface?, false); Eval(7892, o is ImplementTwoInterface?[], false); Eval(7893, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, true); Eval(7894, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7895, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, true); Eval(7896, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7897, o is ImplementTwoInterfaceGen<int>, false); Eval(7898, o is ImplementTwoInterfaceGen<int>[], false); Eval(7899, o is ImplementTwoInterfaceGen<int>?, false); Eval(7900, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7901, o is ImplementAllInterface<int>, false); Eval(7902, o is ImplementAllInterface<int>[], false); Eval(7903, o is ImplementAllInterface<int>?, false); Eval(7904, o is ImplementAllInterface<int>?[], false); Eval(7905, o is IntE, false); Eval(7906, o is IntE[], false); Eval(7907, o is IntE?, false); Eval(7908, o is IntE?[], false); Eval(7909, o is ByteE, false); Eval(7910, o is ByteE[], false); Eval(7911, o is ByteE?, false); Eval(7912, o is ByteE?[], false); Eval(7913, o is LongE, false); Eval(7914, o is LongE[], false); Eval(7915, o is LongE?, false); Eval(7916, o is LongE?[], false); Eval(7917, o is char, false); Eval(7918, o is char[], false); Eval(7919, o is char?, false); Eval(7920, o is char?[], false); Eval(7921, o is bool, false); Eval(7922, o is bool[], false); Eval(7923, o is bool?, false); Eval(7924, o is bool?[], false); Eval(7925, o is byte, false); Eval(7926, o is byte[], false); Eval(7927, o is byte?, false); Eval(7928, o is byte?[], false); Eval(7929, o is sbyte, false); Eval(7930, o is sbyte[], false); Eval(7931, o is sbyte?, false); Eval(7932, o is sbyte?[], false); Eval(7933, o is short, false); Eval(7934, o is short[], false); Eval(7935, o is short?, false); Eval(7936, o is short?[], false); Eval(7937, o is ushort, false); Eval(7938, o is ushort[], false); Eval(7939, o is ushort?, false); Eval(7940, o is ushort?[], false); Eval(7941, o is int, false); Eval(7942, o is int[], false); Eval(7943, o is int?, false); Eval(7944, o is int?[], false); Eval(7945, o is uint, false); Eval(7946, o is uint[], false); Eval(7947, o is uint?, false); Eval(7948, o is uint?[], false); Eval(7949, o is long, false); Eval(7950, o is long[], false); Eval(7951, o is long?, false); Eval(7952, o is long?[], false); Eval(7953, o is ulong, false); Eval(7954, o is ulong[], false); Eval(7955, o is ulong?, false); Eval(7956, o is ulong?[], false); Eval(7957, o is float, false); Eval(7958, o is float[], false); Eval(7959, o is float?, false); Eval(7960, o is float?[], false); Eval(7961, o is double, false); Eval(7962, o is double[], false); Eval(7963, o is double?, false); Eval(7964, o is double?[], false); Eval(7965, o is decimal, false); Eval(7966, o is decimal[], false); Eval(7967, o is decimal?, false); Eval(7968, o is decimal?[], false); Eval(7969, o is IntPtr, false); Eval(7970, o is IntPtr[], false); Eval(7971, o is IntPtr?, false); Eval(7972, o is IntPtr?[], false); Eval(7973, o is UIntPtr, false); Eval(7974, o is UIntPtr[], false); Eval(7975, o is UIntPtr?, false); Eval(7976, o is UIntPtr?[], false); Eval(7977, o is Guid, false); Eval(7978, o is Guid[], false); Eval(7979, o is Guid?, false); Eval(7980, o is Guid?[], false); Eval(7981, o is GCHandle, false); Eval(7982, o is GCHandle[], false); Eval(7983, o is GCHandle?, false); Eval(7984, o is GCHandle?[], false); Eval(7985, o is object, true); Eval(7986, o is object[], false); Eval(7987, o is string, false); Eval(7988, o is string[], false); Eval(7989, o is ValueType, true); Eval(7990, o is ValueType[], false); Eval(7991, o is Array, false); Eval(7992, o is Array[], false); Eval(7993, o is Enum, false); Eval(7994, o is Enum[], false); Eval(7995, o is Delegate, false); Eval(7996, o is Delegate[], false); Eval(7997, o is MulticastDelegate, false); Eval(7998, o is MulticastDelegate[], false); Eval(7999, o is IEmpty, false); Eval(8000, o is IEmpty[], false); Eval(8001, o is INotEmpty, false); Eval(8002, o is INotEmpty[], false); Eval(8003, o is IEmptyGen<int>, false); Eval(8004, o is IEmptyGen<int>[], false); Eval(8005, o is INotEmptyGen<int>, false); Eval(8006, o is INotEmptyGen<int>[], false); Eval(8007, o is SimpleDelegate, false); Eval(8008, o is SimpleDelegate[], false); Eval(8009, o is GenericDelegate<int>, false); Eval(8010, o is GenericDelegate<int>[], false); Eval(8011, o is EmptyClass, false); Eval(8012, o is EmptyClass[], false); Eval(8013, o is NotEmptyClass, false); Eval(8014, o is NotEmptyClass[], false); Eval(8015, o is EmptyClassGen<int>, false); Eval(8016, o is EmptyClassGen<int>[], false); Eval(8017, o is NotEmptyClassGen<Guid>, false); Eval(8018, o is NotEmptyClassGen<Guid>[], false); Eval(8019, o is NotEmptyClassConstrainedGen<object>, false); Eval(8020, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8021, o is NestedClass, false); Eval(8022, o is NestedClass[], false); Eval(8023, o is NestedClassGen<Decimal>, false); Eval(8024, o is NestedClassGen<Decimal>[], false); Eval(8025, o is ImplementOneInterfaceC, false); Eval(8026, o is ImplementOneInterfaceC[], false); Eval(8027, o is ImplementTwoInterfaceC, false); Eval(8028, o is ImplementTwoInterfaceC[], false); Eval(8029, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8030, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8031, o is ImplementTwoInterfaceGenC<int>, false); Eval(8032, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8033, o is ImplementAllInterfaceC<int>, false); Eval(8034, o is ImplementAllInterfaceC<int>[], false); Eval(8035, o is SealedClass, false); Eval(8036, o is SealedClass[], false); } { ImplementOneInterfaceGen<EmptyStructGen<int>>? v = default(ImplementOneInterfaceGen<EmptyStructGen<int>>?); ValueType o = v; Eval(8037, o is EmptyStruct, false); Eval(8038, o is EmptyStruct[], false); Eval(8039, o is EmptyStruct?, false); Eval(8040, o is EmptyStruct?[], false); Eval(8041, o is NotEmptyStruct, false); Eval(8042, o is NotEmptyStruct[], false); Eval(8043, o is NotEmptyStruct?, false); Eval(8044, o is NotEmptyStruct?[], false); Eval(8045, o is EmptyStructGen<int>, false); Eval(8046, o is EmptyStructGen<int>[], false); Eval(8047, o is EmptyStructGen<int>?, false); Eval(8048, o is EmptyStructGen<int>?[], false); Eval(8049, o is NotEmptyStructGen<Guid>, false); Eval(8050, o is NotEmptyStructGen<Guid>[], false); Eval(8051, o is NotEmptyStructGen<Guid>?, false); Eval(8052, o is NotEmptyStructGen<Guid>?[], false); Eval(8053, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8054, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8055, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8056, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8057, o is NestedStruct, false); Eval(8058, o is NestedStruct[], false); Eval(8059, o is NestedStruct?, false); Eval(8060, o is NestedStruct?[], false); Eval(8061, o is NestedStructGen<Decimal>, false); Eval(8062, o is NestedStructGen<Decimal>[], false); Eval(8063, o is NestedStructGen<Decimal>?, false); Eval(8064, o is NestedStructGen<Decimal>?[], false); Eval(8065, o is ExplicitFieldOffsetStruct, false); Eval(8066, o is ExplicitFieldOffsetStruct[], false); Eval(8067, o is ExplicitFieldOffsetStruct?, false); Eval(8068, o is ExplicitFieldOffsetStruct?[], false); Eval(8077, o is MarshalAsStruct, false); Eval(8078, o is MarshalAsStruct[], false); Eval(8079, o is MarshalAsStruct?, false); Eval(8080, o is MarshalAsStruct?[], false); Eval(8081, o is ImplementOneInterface, false); Eval(8082, o is ImplementOneInterface[], false); Eval(8083, o is ImplementOneInterface?, false); Eval(8084, o is ImplementOneInterface?[], false); Eval(8085, o is ImplementTwoInterface, false); Eval(8086, o is ImplementTwoInterface[], false); Eval(8087, o is ImplementTwoInterface?, false); Eval(8088, o is ImplementTwoInterface?[], false); Eval(8089, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8090, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8091, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8092, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8093, o is ImplementTwoInterfaceGen<int>, false); Eval(8094, o is ImplementTwoInterfaceGen<int>[], false); Eval(8095, o is ImplementTwoInterfaceGen<int>?, false); Eval(8096, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8097, o is ImplementAllInterface<int>, false); Eval(8098, o is ImplementAllInterface<int>[], false); Eval(8099, o is ImplementAllInterface<int>?, false); Eval(8100, o is ImplementAllInterface<int>?[], false); Eval(8101, o is IntE, false); Eval(8102, o is IntE[], false); Eval(8103, o is IntE?, false); Eval(8104, o is IntE?[], false); Eval(8105, o is ByteE, false); Eval(8106, o is ByteE[], false); Eval(8107, o is ByteE?, false); Eval(8108, o is ByteE?[], false); Eval(8109, o is LongE, false); Eval(8110, o is LongE[], false); Eval(8111, o is LongE?, false); Eval(8112, o is LongE?[], false); Eval(8113, o is char, false); Eval(8114, o is char[], false); Eval(8115, o is char?, false); Eval(8116, o is char?[], false); Eval(8117, o is bool, false); Eval(8118, o is bool[], false); Eval(8119, o is bool?, false); Eval(8120, o is bool?[], false); Eval(8121, o is byte, false); Eval(8122, o is byte[], false); Eval(8123, o is byte?, false); Eval(8124, o is byte?[], false); Eval(8125, o is sbyte, false); Eval(8126, o is sbyte[], false); Eval(8127, o is sbyte?, false); Eval(8128, o is sbyte?[], false); Eval(8129, o is short, false); Eval(8130, o is short[], false); Eval(8131, o is short?, false); Eval(8132, o is short?[], false); Eval(8133, o is ushort, false); Eval(8134, o is ushort[], false); Eval(8135, o is ushort?, false); Eval(8136, o is ushort?[], false); Eval(8137, o is int, false); Eval(8138, o is int[], false); Eval(8139, o is int?, false); Eval(8140, o is int?[], false); Eval(8141, o is uint, false); Eval(8142, o is uint[], false); Eval(8143, o is uint?, false); Eval(8144, o is uint?[], false); Eval(8145, o is long, false); Eval(8146, o is long[], false); Eval(8147, o is long?, false); Eval(8148, o is long?[], false); Eval(8149, o is ulong, false); Eval(8150, o is ulong[], false); Eval(8151, o is ulong?, false); Eval(8152, o is ulong?[], false); Eval(8153, o is float, false); Eval(8154, o is float[], false); Eval(8155, o is float?, false); Eval(8156, o is float?[], false); Eval(8157, o is double, false); Eval(8158, o is double[], false); Eval(8159, o is double?, false); Eval(8160, o is double?[], false); Eval(8161, o is decimal, false); Eval(8162, o is decimal[], false); Eval(8163, o is decimal?, false); Eval(8164, o is decimal?[], false); Eval(8165, o is IntPtr, false); Eval(8166, o is IntPtr[], false); Eval(8167, o is IntPtr?, false); Eval(8168, o is IntPtr?[], false); Eval(8169, o is UIntPtr, false); Eval(8170, o is UIntPtr[], false); Eval(8171, o is UIntPtr?, false); Eval(8172, o is UIntPtr?[], false); Eval(8173, o is Guid, false); Eval(8174, o is Guid[], false); Eval(8175, o is Guid?, false); Eval(8176, o is Guid?[], false); Eval(8177, o is GCHandle, false); Eval(8178, o is GCHandle[], false); Eval(8179, o is GCHandle?, false); Eval(8180, o is GCHandle?[], false); Eval(8181, o is object, false); Eval(8182, o is object[], false); Eval(8183, o is string, false); Eval(8184, o is string[], false); Eval(8185, o is ValueType, false); Eval(8186, o is ValueType[], false); Eval(8187, o is Array, false); Eval(8188, o is Array[], false); Eval(8189, o is Enum, false); Eval(8190, o is Enum[], false); Eval(8191, o is Delegate, false); Eval(8192, o is Delegate[], false); Eval(8193, o is MulticastDelegate, false); Eval(8194, o is MulticastDelegate[], false); Eval(8195, o is IEmpty, false); Eval(8196, o is IEmpty[], false); Eval(8197, o is INotEmpty, false); Eval(8198, o is INotEmpty[], false); Eval(8199, o is IEmptyGen<int>, false); Eval(8200, o is IEmptyGen<int>[], false); Eval(8201, o is INotEmptyGen<int>, false); Eval(8202, o is INotEmptyGen<int>[], false); Eval(8203, o is SimpleDelegate, false); Eval(8204, o is SimpleDelegate[], false); Eval(8205, o is GenericDelegate<int>, false); Eval(8206, o is GenericDelegate<int>[], false); Eval(8207, o is EmptyClass, false); Eval(8208, o is EmptyClass[], false); Eval(8209, o is NotEmptyClass, false); Eval(8210, o is NotEmptyClass[], false); Eval(8211, o is EmptyClassGen<int>, false); Eval(8212, o is EmptyClassGen<int>[], false); Eval(8213, o is NotEmptyClassGen<Guid>, false); Eval(8214, o is NotEmptyClassGen<Guid>[], false); Eval(8215, o is NotEmptyClassConstrainedGen<object>, false); Eval(8216, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8217, o is NestedClass, false); Eval(8218, o is NestedClass[], false); Eval(8219, o is NestedClassGen<Decimal>, false); Eval(8220, o is NestedClassGen<Decimal>[], false); Eval(8221, o is ImplementOneInterfaceC, false); Eval(8222, o is ImplementOneInterfaceC[], false); Eval(8223, o is ImplementTwoInterfaceC, false); Eval(8224, o is ImplementTwoInterfaceC[], false); Eval(8225, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8226, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8227, o is ImplementTwoInterfaceGenC<int>, false); Eval(8228, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8229, o is ImplementAllInterfaceC<int>, false); Eval(8230, o is ImplementAllInterfaceC<int>[], false); Eval(8231, o is SealedClass, false); Eval(8232, o is SealedClass[], false); } } // end of test case 0014 private static void TestCase0015() { { ImplementTwoInterfaceGen<int> v = default(ImplementTwoInterfaceGen<int>); ValueType o = v; Eval(8233, o is EmptyStruct, false); Eval(8234, o is EmptyStruct[], false); Eval(8235, o is EmptyStruct?, false); Eval(8236, o is EmptyStruct?[], false); Eval(8237, o is NotEmptyStruct, false); Eval(8238, o is NotEmptyStruct[], false); Eval(8239, o is NotEmptyStruct?, false); Eval(8240, o is NotEmptyStruct?[], false); Eval(8241, o is EmptyStructGen<int>, false); Eval(8242, o is EmptyStructGen<int>[], false); Eval(8243, o is EmptyStructGen<int>?, false); Eval(8244, o is EmptyStructGen<int>?[], false); Eval(8245, o is NotEmptyStructGen<Guid>, false); Eval(8246, o is NotEmptyStructGen<Guid>[], false); Eval(8247, o is NotEmptyStructGen<Guid>?, false); Eval(8248, o is NotEmptyStructGen<Guid>?[], false); Eval(8249, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8250, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8251, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8252, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8253, o is NestedStruct, false); Eval(8254, o is NestedStruct[], false); Eval(8255, o is NestedStruct?, false); Eval(8256, o is NestedStruct?[], false); Eval(8257, o is NestedStructGen<Decimal>, false); Eval(8258, o is NestedStructGen<Decimal>[], false); Eval(8259, o is NestedStructGen<Decimal>?, false); Eval(8260, o is NestedStructGen<Decimal>?[], false); Eval(8261, o is ExplicitFieldOffsetStruct, false); Eval(8262, o is ExplicitFieldOffsetStruct[], false); Eval(8263, o is ExplicitFieldOffsetStruct?, false); Eval(8264, o is ExplicitFieldOffsetStruct?[], false); Eval(8273, o is MarshalAsStruct, false); Eval(8274, o is MarshalAsStruct[], false); Eval(8275, o is MarshalAsStruct?, false); Eval(8276, o is MarshalAsStruct?[], false); Eval(8277, o is ImplementOneInterface, false); Eval(8278, o is ImplementOneInterface[], false); Eval(8279, o is ImplementOneInterface?, false); Eval(8280, o is ImplementOneInterface?[], false); Eval(8281, o is ImplementTwoInterface, false); Eval(8282, o is ImplementTwoInterface[], false); Eval(8283, o is ImplementTwoInterface?, false); Eval(8284, o is ImplementTwoInterface?[], false); Eval(8285, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8286, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8287, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8288, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8289, o is ImplementTwoInterfaceGen<int>, true); Eval(8290, o is ImplementTwoInterfaceGen<int>[], false); Eval(8291, o is ImplementTwoInterfaceGen<int>?, true); Eval(8292, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8293, o is ImplementAllInterface<int>, false); Eval(8294, o is ImplementAllInterface<int>[], false); Eval(8295, o is ImplementAllInterface<int>?, false); Eval(8296, o is ImplementAllInterface<int>?[], false); Eval(8297, o is IntE, false); Eval(8298, o is IntE[], false); Eval(8299, o is IntE?, false); Eval(8300, o is IntE?[], false); Eval(8301, o is ByteE, false); Eval(8302, o is ByteE[], false); Eval(8303, o is ByteE?, false); Eval(8304, o is ByteE?[], false); Eval(8305, o is LongE, false); Eval(8306, o is LongE[], false); Eval(8307, o is LongE?, false); Eval(8308, o is LongE?[], false); Eval(8309, o is char, false); Eval(8310, o is char[], false); Eval(8311, o is char?, false); Eval(8312, o is char?[], false); Eval(8313, o is bool, false); Eval(8314, o is bool[], false); Eval(8315, o is bool?, false); Eval(8316, o is bool?[], false); Eval(8317, o is byte, false); Eval(8318, o is byte[], false); Eval(8319, o is byte?, false); Eval(8320, o is byte?[], false); Eval(8321, o is sbyte, false); Eval(8322, o is sbyte[], false); Eval(8323, o is sbyte?, false); Eval(8324, o is sbyte?[], false); Eval(8325, o is short, false); Eval(8326, o is short[], false); Eval(8327, o is short?, false); Eval(8328, o is short?[], false); Eval(8329, o is ushort, false); Eval(8330, o is ushort[], false); Eval(8331, o is ushort?, false); Eval(8332, o is ushort?[], false); Eval(8333, o is int, false); Eval(8334, o is int[], false); Eval(8335, o is int?, false); Eval(8336, o is int?[], false); Eval(8337, o is uint, false); Eval(8338, o is uint[], false); Eval(8339, o is uint?, false); Eval(8340, o is uint?[], false); Eval(8341, o is long, false); Eval(8342, o is long[], false); Eval(8343, o is long?, false); Eval(8344, o is long?[], false); Eval(8345, o is ulong, false); Eval(8346, o is ulong[], false); Eval(8347, o is ulong?, false); Eval(8348, o is ulong?[], false); Eval(8349, o is float, false); Eval(8350, o is float[], false); Eval(8351, o is float?, false); Eval(8352, o is float?[], false); Eval(8353, o is double, false); Eval(8354, o is double[], false); Eval(8355, o is double?, false); Eval(8356, o is double?[], false); Eval(8357, o is decimal, false); Eval(8358, o is decimal[], false); Eval(8359, o is decimal?, false); Eval(8360, o is decimal?[], false); Eval(8361, o is IntPtr, false); Eval(8362, o is IntPtr[], false); Eval(8363, o is IntPtr?, false); Eval(8364, o is IntPtr?[], false); Eval(8365, o is UIntPtr, false); Eval(8366, o is UIntPtr[], false); Eval(8367, o is UIntPtr?, false); Eval(8368, o is UIntPtr?[], false); Eval(8369, o is Guid, false); Eval(8370, o is Guid[], false); Eval(8371, o is Guid?, false); Eval(8372, o is Guid?[], false); Eval(8373, o is GCHandle, false); Eval(8374, o is GCHandle[], false); Eval(8375, o is GCHandle?, false); Eval(8376, o is GCHandle?[], false); Eval(8377, o is object, true); Eval(8378, o is object[], false); Eval(8379, o is string, false); Eval(8380, o is string[], false); Eval(8381, o is ValueType, true); Eval(8382, o is ValueType[], false); Eval(8383, o is Array, false); Eval(8384, o is Array[], false); Eval(8385, o is Enum, false); Eval(8386, o is Enum[], false); Eval(8387, o is Delegate, false); Eval(8388, o is Delegate[], false); Eval(8389, o is MulticastDelegate, false); Eval(8390, o is MulticastDelegate[], false); Eval(8391, o is IEmpty, false); Eval(8392, o is IEmpty[], false); Eval(8393, o is INotEmpty, false); Eval(8394, o is INotEmpty[], false); Eval(8395, o is IEmptyGen<int>, true); Eval(8396, o is IEmptyGen<int>[], false); Eval(8397, o is INotEmptyGen<int>, true); Eval(8398, o is INotEmptyGen<int>[], false); Eval(8399, o is SimpleDelegate, false); Eval(8400, o is SimpleDelegate[], false); Eval(8401, o is GenericDelegate<int>, false); Eval(8402, o is GenericDelegate<int>[], false); Eval(8403, o is EmptyClass, false); Eval(8404, o is EmptyClass[], false); Eval(8405, o is NotEmptyClass, false); Eval(8406, o is NotEmptyClass[], false); Eval(8407, o is EmptyClassGen<int>, false); Eval(8408, o is EmptyClassGen<int>[], false); Eval(8409, o is NotEmptyClassGen<Guid>, false); Eval(8410, o is NotEmptyClassGen<Guid>[], false); Eval(8411, o is NotEmptyClassConstrainedGen<object>, false); Eval(8412, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8413, o is NestedClass, false); Eval(8414, o is NestedClass[], false); Eval(8415, o is NestedClassGen<Decimal>, false); Eval(8416, o is NestedClassGen<Decimal>[], false); Eval(8417, o is ImplementOneInterfaceC, false); Eval(8418, o is ImplementOneInterfaceC[], false); Eval(8419, o is ImplementTwoInterfaceC, false); Eval(8420, o is ImplementTwoInterfaceC[], false); Eval(8421, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8422, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8423, o is ImplementTwoInterfaceGenC<int>, false); Eval(8424, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8425, o is ImplementAllInterfaceC<int>, false); Eval(8426, o is ImplementAllInterfaceC<int>[], false); Eval(8427, o is SealedClass, false); Eval(8428, o is SealedClass[], false); } { ImplementTwoInterfaceGen<int>? v = default(ImplementTwoInterfaceGen<int>); ValueType o = v; Eval(8429, o is EmptyStruct, false); Eval(8430, o is EmptyStruct[], false); Eval(8431, o is EmptyStruct?, false); Eval(8432, o is EmptyStruct?[], false); Eval(8433, o is NotEmptyStruct, false); Eval(8434, o is NotEmptyStruct[], false); Eval(8435, o is NotEmptyStruct?, false); Eval(8436, o is NotEmptyStruct?[], false); Eval(8437, o is EmptyStructGen<int>, false); Eval(8438, o is EmptyStructGen<int>[], false); Eval(8439, o is EmptyStructGen<int>?, false); Eval(8440, o is EmptyStructGen<int>?[], false); Eval(8441, o is NotEmptyStructGen<Guid>, false); Eval(8442, o is NotEmptyStructGen<Guid>[], false); Eval(8443, o is NotEmptyStructGen<Guid>?, false); Eval(8444, o is NotEmptyStructGen<Guid>?[], false); Eval(8445, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8446, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8447, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8448, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8449, o is NestedStruct, false); Eval(8450, o is NestedStruct[], false); Eval(8451, o is NestedStruct?, false); Eval(8452, o is NestedStruct?[], false); Eval(8453, o is NestedStructGen<Decimal>, false); Eval(8454, o is NestedStructGen<Decimal>[], false); Eval(8455, o is NestedStructGen<Decimal>?, false); Eval(8456, o is NestedStructGen<Decimal>?[], false); Eval(8457, o is ExplicitFieldOffsetStruct, false); Eval(8458, o is ExplicitFieldOffsetStruct[], false); Eval(8459, o is ExplicitFieldOffsetStruct?, false); Eval(8460, o is ExplicitFieldOffsetStruct?[], false); Eval(8469, o is MarshalAsStruct, false); Eval(8470, o is MarshalAsStruct[], false); Eval(8471, o is MarshalAsStruct?, false); Eval(8472, o is MarshalAsStruct?[], false); Eval(8473, o is ImplementOneInterface, false); Eval(8474, o is ImplementOneInterface[], false); Eval(8475, o is ImplementOneInterface?, false); Eval(8476, o is ImplementOneInterface?[], false); Eval(8477, o is ImplementTwoInterface, false); Eval(8478, o is ImplementTwoInterface[], false); Eval(8479, o is ImplementTwoInterface?, false); Eval(8480, o is ImplementTwoInterface?[], false); Eval(8481, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8482, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8483, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8484, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8485, o is ImplementTwoInterfaceGen<int>, true); Eval(8486, o is ImplementTwoInterfaceGen<int>[], false); Eval(8487, o is ImplementTwoInterfaceGen<int>?, true); Eval(8488, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8489, o is ImplementAllInterface<int>, false); Eval(8490, o is ImplementAllInterface<int>[], false); Eval(8491, o is ImplementAllInterface<int>?, false); Eval(8492, o is ImplementAllInterface<int>?[], false); Eval(8493, o is IntE, false); Eval(8494, o is IntE[], false); Eval(8495, o is IntE?, false); Eval(8496, o is IntE?[], false); Eval(8497, o is ByteE, false); Eval(8498, o is ByteE[], false); Eval(8499, o is ByteE?, false); Eval(8500, o is ByteE?[], false); Eval(8501, o is LongE, false); Eval(8502, o is LongE[], false); Eval(8503, o is LongE?, false); Eval(8504, o is LongE?[], false); Eval(8505, o is char, false); Eval(8506, o is char[], false); Eval(8507, o is char?, false); Eval(8508, o is char?[], false); Eval(8509, o is bool, false); Eval(8510, o is bool[], false); Eval(8511, o is bool?, false); Eval(8512, o is bool?[], false); Eval(8513, o is byte, false); Eval(8514, o is byte[], false); Eval(8515, o is byte?, false); Eval(8516, o is byte?[], false); Eval(8517, o is sbyte, false); Eval(8518, o is sbyte[], false); Eval(8519, o is sbyte?, false); Eval(8520, o is sbyte?[], false); Eval(8521, o is short, false); Eval(8522, o is short[], false); Eval(8523, o is short?, false); Eval(8524, o is short?[], false); Eval(8525, o is ushort, false); Eval(8526, o is ushort[], false); Eval(8527, o is ushort?, false); Eval(8528, o is ushort?[], false); Eval(8529, o is int, false); Eval(8530, o is int[], false); Eval(8531, o is int?, false); Eval(8532, o is int?[], false); Eval(8533, o is uint, false); Eval(8534, o is uint[], false); Eval(8535, o is uint?, false); Eval(8536, o is uint?[], false); Eval(8537, o is long, false); Eval(8538, o is long[], false); Eval(8539, o is long?, false); Eval(8540, o is long?[], false); Eval(8541, o is ulong, false); Eval(8542, o is ulong[], false); Eval(8543, o is ulong?, false); Eval(8544, o is ulong?[], false); Eval(8545, o is float, false); Eval(8546, o is float[], false); Eval(8547, o is float?, false); Eval(8548, o is float?[], false); Eval(8549, o is double, false); Eval(8550, o is double[], false); Eval(8551, o is double?, false); Eval(8552, o is double?[], false); Eval(8553, o is decimal, false); Eval(8554, o is decimal[], false); Eval(8555, o is decimal?, false); Eval(8556, o is decimal?[], false); Eval(8557, o is IntPtr, false); Eval(8558, o is IntPtr[], false); Eval(8559, o is IntPtr?, false); Eval(8560, o is IntPtr?[], false); Eval(8561, o is UIntPtr, false); Eval(8562, o is UIntPtr[], false); Eval(8563, o is UIntPtr?, false); Eval(8564, o is UIntPtr?[], false); Eval(8565, o is Guid, false); Eval(8566, o is Guid[], false); Eval(8567, o is Guid?, false); Eval(8568, o is Guid?[], false); Eval(8569, o is GCHandle, false); Eval(8570, o is GCHandle[], false); Eval(8571, o is GCHandle?, false); Eval(8572, o is GCHandle?[], false); Eval(8573, o is object, true); Eval(8574, o is object[], false); Eval(8575, o is string, false); Eval(8576, o is string[], false); Eval(8577, o is ValueType, true); Eval(8578, o is ValueType[], false); Eval(8579, o is Array, false); Eval(8580, o is Array[], false); Eval(8581, o is Enum, false); Eval(8582, o is Enum[], false); Eval(8583, o is Delegate, false); Eval(8584, o is Delegate[], false); Eval(8585, o is MulticastDelegate, false); Eval(8586, o is MulticastDelegate[], false); Eval(8587, o is IEmpty, false); Eval(8588, o is IEmpty[], false); Eval(8589, o is INotEmpty, false); Eval(8590, o is INotEmpty[], false); Eval(8591, o is IEmptyGen<int>, true); Eval(8592, o is IEmptyGen<int>[], false); Eval(8593, o is INotEmptyGen<int>, true); Eval(8594, o is INotEmptyGen<int>[], false); Eval(8595, o is SimpleDelegate, false); Eval(8596, o is SimpleDelegate[], false); Eval(8597, o is GenericDelegate<int>, false); Eval(8598, o is GenericDelegate<int>[], false); Eval(8599, o is EmptyClass, false); Eval(8600, o is EmptyClass[], false); Eval(8601, o is NotEmptyClass, false); Eval(8602, o is NotEmptyClass[], false); Eval(8603, o is EmptyClassGen<int>, false); Eval(8604, o is EmptyClassGen<int>[], false); Eval(8605, o is NotEmptyClassGen<Guid>, false); Eval(8606, o is NotEmptyClassGen<Guid>[], false); Eval(8607, o is NotEmptyClassConstrainedGen<object>, false); Eval(8608, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8609, o is NestedClass, false); Eval(8610, o is NestedClass[], false); Eval(8611, o is NestedClassGen<Decimal>, false); Eval(8612, o is NestedClassGen<Decimal>[], false); Eval(8613, o is ImplementOneInterfaceC, false); Eval(8614, o is ImplementOneInterfaceC[], false); Eval(8615, o is ImplementTwoInterfaceC, false); Eval(8616, o is ImplementTwoInterfaceC[], false); Eval(8617, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8618, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8619, o is ImplementTwoInterfaceGenC<int>, false); Eval(8620, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8621, o is ImplementAllInterfaceC<int>, false); Eval(8622, o is ImplementAllInterfaceC<int>[], false); Eval(8623, o is SealedClass, false); Eval(8624, o is SealedClass[], false); } { ImplementTwoInterfaceGen<int>? v = default(ImplementTwoInterfaceGen<int>?); ValueType o = v; Eval(8625, o is EmptyStruct, false); Eval(8626, o is EmptyStruct[], false); Eval(8627, o is EmptyStruct?, false); Eval(8628, o is EmptyStruct?[], false); Eval(8629, o is NotEmptyStruct, false); Eval(8630, o is NotEmptyStruct[], false); Eval(8631, o is NotEmptyStruct?, false); Eval(8632, o is NotEmptyStruct?[], false); Eval(8633, o is EmptyStructGen<int>, false); Eval(8634, o is EmptyStructGen<int>[], false); Eval(8635, o is EmptyStructGen<int>?, false); Eval(8636, o is EmptyStructGen<int>?[], false); Eval(8637, o is NotEmptyStructGen<Guid>, false); Eval(8638, o is NotEmptyStructGen<Guid>[], false); Eval(8639, o is NotEmptyStructGen<Guid>?, false); Eval(8640, o is NotEmptyStructGen<Guid>?[], false); Eval(8641, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8642, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8643, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8644, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8645, o is NestedStruct, false); Eval(8646, o is NestedStruct[], false); Eval(8647, o is NestedStruct?, false); Eval(8648, o is NestedStruct?[], false); Eval(8649, o is NestedStructGen<Decimal>, false); Eval(8650, o is NestedStructGen<Decimal>[], false); Eval(8651, o is NestedStructGen<Decimal>?, false); Eval(8652, o is NestedStructGen<Decimal>?[], false); Eval(8653, o is ExplicitFieldOffsetStruct, false); Eval(8654, o is ExplicitFieldOffsetStruct[], false); Eval(8655, o is ExplicitFieldOffsetStruct?, false); Eval(8656, o is ExplicitFieldOffsetStruct?[], false); Eval(8665, o is MarshalAsStruct, false); Eval(8666, o is MarshalAsStruct[], false); Eval(8667, o is MarshalAsStruct?, false); Eval(8668, o is MarshalAsStruct?[], false); Eval(8669, o is ImplementOneInterface, false); Eval(8670, o is ImplementOneInterface[], false); Eval(8671, o is ImplementOneInterface?, false); Eval(8672, o is ImplementOneInterface?[], false); Eval(8673, o is ImplementTwoInterface, false); Eval(8674, o is ImplementTwoInterface[], false); Eval(8675, o is ImplementTwoInterface?, false); Eval(8676, o is ImplementTwoInterface?[], false); Eval(8677, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8678, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8679, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8680, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8681, o is ImplementTwoInterfaceGen<int>, false); Eval(8682, o is ImplementTwoInterfaceGen<int>[], false); Eval(8683, o is ImplementTwoInterfaceGen<int>?, false); Eval(8684, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8685, o is ImplementAllInterface<int>, false); Eval(8686, o is ImplementAllInterface<int>[], false); Eval(8687, o is ImplementAllInterface<int>?, false); Eval(8688, o is ImplementAllInterface<int>?[], false); Eval(8689, o is IntE, false); Eval(8690, o is IntE[], false); Eval(8691, o is IntE?, false); Eval(8692, o is IntE?[], false); Eval(8693, o is ByteE, false); Eval(8694, o is ByteE[], false); Eval(8695, o is ByteE?, false); Eval(8696, o is ByteE?[], false); Eval(8697, o is LongE, false); Eval(8698, o is LongE[], false); Eval(8699, o is LongE?, false); Eval(8700, o is LongE?[], false); Eval(8701, o is char, false); Eval(8702, o is char[], false); Eval(8703, o is char?, false); Eval(8704, o is char?[], false); Eval(8705, o is bool, false); Eval(8706, o is bool[], false); Eval(8707, o is bool?, false); Eval(8708, o is bool?[], false); Eval(8709, o is byte, false); Eval(8710, o is byte[], false); Eval(8711, o is byte?, false); Eval(8712, o is byte?[], false); Eval(8713, o is sbyte, false); Eval(8714, o is sbyte[], false); Eval(8715, o is sbyte?, false); Eval(8716, o is sbyte?[], false); Eval(8717, o is short, false); Eval(8718, o is short[], false); Eval(8719, o is short?, false); Eval(8720, o is short?[], false); Eval(8721, o is ushort, false); Eval(8722, o is ushort[], false); Eval(8723, o is ushort?, false); Eval(8724, o is ushort?[], false); Eval(8725, o is int, false); Eval(8726, o is int[], false); Eval(8727, o is int?, false); Eval(8728, o is int?[], false); Eval(8729, o is uint, false); Eval(8730, o is uint[], false); Eval(8731, o is uint?, false); Eval(8732, o is uint?[], false); Eval(8733, o is long, false); Eval(8734, o is long[], false); Eval(8735, o is long?, false); Eval(8736, o is long?[], false); Eval(8737, o is ulong, false); Eval(8738, o is ulong[], false); Eval(8739, o is ulong?, false); Eval(8740, o is ulong?[], false); Eval(8741, o is float, false); Eval(8742, o is float[], false); Eval(8743, o is float?, false); Eval(8744, o is float?[], false); Eval(8745, o is double, false); Eval(8746, o is double[], false); Eval(8747, o is double?, false); Eval(8748, o is double?[], false); Eval(8749, o is decimal, false); Eval(8750, o is decimal[], false); Eval(8751, o is decimal?, false); Eval(8752, o is decimal?[], false); Eval(8753, o is IntPtr, false); Eval(8754, o is IntPtr[], false); Eval(8755, o is IntPtr?, false); Eval(8756, o is IntPtr?[], false); Eval(8757, o is UIntPtr, false); Eval(8758, o is UIntPtr[], false); Eval(8759, o is UIntPtr?, false); Eval(8760, o is UIntPtr?[], false); Eval(8761, o is Guid, false); Eval(8762, o is Guid[], false); Eval(8763, o is Guid?, false); Eval(8764, o is Guid?[], false); Eval(8765, o is GCHandle, false); Eval(8766, o is GCHandle[], false); Eval(8767, o is GCHandle?, false); Eval(8768, o is GCHandle?[], false); Eval(8769, o is object, false); Eval(8770, o is object[], false); Eval(8771, o is string, false); Eval(8772, o is string[], false); Eval(8773, o is ValueType, false); Eval(8774, o is ValueType[], false); Eval(8775, o is Array, false); Eval(8776, o is Array[], false); Eval(8777, o is Enum, false); Eval(8778, o is Enum[], false); Eval(8779, o is Delegate, false); Eval(8780, o is Delegate[], false); Eval(8781, o is MulticastDelegate, false); Eval(8782, o is MulticastDelegate[], false); Eval(8783, o is IEmpty, false); Eval(8784, o is IEmpty[], false); Eval(8785, o is INotEmpty, false); Eval(8786, o is INotEmpty[], false); Eval(8787, o is IEmptyGen<int>, false); Eval(8788, o is IEmptyGen<int>[], false); Eval(8789, o is INotEmptyGen<int>, false); Eval(8790, o is INotEmptyGen<int>[], false); Eval(8791, o is SimpleDelegate, false); Eval(8792, o is SimpleDelegate[], false); Eval(8793, o is GenericDelegate<int>, false); Eval(8794, o is GenericDelegate<int>[], false); Eval(8795, o is EmptyClass, false); Eval(8796, o is EmptyClass[], false); Eval(8797, o is NotEmptyClass, false); Eval(8798, o is NotEmptyClass[], false); Eval(8799, o is EmptyClassGen<int>, false); Eval(8800, o is EmptyClassGen<int>[], false); Eval(8801, o is NotEmptyClassGen<Guid>, false); Eval(8802, o is NotEmptyClassGen<Guid>[], false); Eval(8803, o is NotEmptyClassConstrainedGen<object>, false); Eval(8804, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8805, o is NestedClass, false); Eval(8806, o is NestedClass[], false); Eval(8807, o is NestedClassGen<Decimal>, false); Eval(8808, o is NestedClassGen<Decimal>[], false); Eval(8809, o is ImplementOneInterfaceC, false); Eval(8810, o is ImplementOneInterfaceC[], false); Eval(8811, o is ImplementTwoInterfaceC, false); Eval(8812, o is ImplementTwoInterfaceC[], false); Eval(8813, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8814, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8815, o is ImplementTwoInterfaceGenC<int>, false); Eval(8816, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8817, o is ImplementAllInterfaceC<int>, false); Eval(8818, o is ImplementAllInterfaceC<int>[], false); Eval(8819, o is SealedClass, false); Eval(8820, o is SealedClass[], false); } } // end of test case 0015 private static void TestCase0016() { { ImplementAllInterface<int> v = default(ImplementAllInterface<int>); ValueType o = v; Eval(8821, o is EmptyStruct, false); Eval(8822, o is EmptyStruct[], false); Eval(8823, o is EmptyStruct?, false); Eval(8824, o is EmptyStruct?[], false); Eval(8825, o is NotEmptyStruct, false); Eval(8826, o is NotEmptyStruct[], false); Eval(8827, o is NotEmptyStruct?, false); Eval(8828, o is NotEmptyStruct?[], false); Eval(8829, o is EmptyStructGen<int>, false); Eval(8830, o is EmptyStructGen<int>[], false); Eval(8831, o is EmptyStructGen<int>?, false); Eval(8832, o is EmptyStructGen<int>?[], false); Eval(8833, o is NotEmptyStructGen<Guid>, false); Eval(8834, o is NotEmptyStructGen<Guid>[], false); Eval(8835, o is NotEmptyStructGen<Guid>?, false); Eval(8836, o is NotEmptyStructGen<Guid>?[], false); Eval(8837, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8838, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8839, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8840, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8841, o is NestedStruct, false); Eval(8842, o is NestedStruct[], false); Eval(8843, o is NestedStruct?, false); Eval(8844, o is NestedStruct?[], false); Eval(8845, o is NestedStructGen<Decimal>, false); Eval(8846, o is NestedStructGen<Decimal>[], false); Eval(8847, o is NestedStructGen<Decimal>?, false); Eval(8848, o is NestedStructGen<Decimal>?[], false); Eval(8849, o is ExplicitFieldOffsetStruct, false); Eval(8850, o is ExplicitFieldOffsetStruct[], false); Eval(8851, o is ExplicitFieldOffsetStruct?, false); Eval(8852, o is ExplicitFieldOffsetStruct?[], false); Eval(8861, o is MarshalAsStruct, false); Eval(8862, o is MarshalAsStruct[], false); Eval(8863, o is MarshalAsStruct?, false); Eval(8864, o is MarshalAsStruct?[], false); Eval(8865, o is ImplementOneInterface, false); Eval(8866, o is ImplementOneInterface[], false); Eval(8867, o is ImplementOneInterface?, false); Eval(8868, o is ImplementOneInterface?[], false); Eval(8869, o is ImplementTwoInterface, false); Eval(8870, o is ImplementTwoInterface[], false); Eval(8871, o is ImplementTwoInterface?, false); Eval(8872, o is ImplementTwoInterface?[], false); Eval(8873, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8874, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8875, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8876, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8877, o is ImplementTwoInterfaceGen<int>, false); Eval(8878, o is ImplementTwoInterfaceGen<int>[], false); Eval(8879, o is ImplementTwoInterfaceGen<int>?, false); Eval(8880, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8881, o is ImplementAllInterface<int>, true); Eval(8882, o is ImplementAllInterface<int>[], false); Eval(8883, o is ImplementAllInterface<int>?, true); Eval(8884, o is ImplementAllInterface<int>?[], false); Eval(8885, o is IntE, false); Eval(8886, o is IntE[], false); Eval(8887, o is IntE?, false); Eval(8888, o is IntE?[], false); Eval(8889, o is ByteE, false); Eval(8890, o is ByteE[], false); Eval(8891, o is ByteE?, false); Eval(8892, o is ByteE?[], false); Eval(8893, o is LongE, false); Eval(8894, o is LongE[], false); Eval(8895, o is LongE?, false); Eval(8896, o is LongE?[], false); Eval(8897, o is char, false); Eval(8898, o is char[], false); Eval(8899, o is char?, false); Eval(8900, o is char?[], false); Eval(8901, o is bool, false); Eval(8902, o is bool[], false); Eval(8903, o is bool?, false); Eval(8904, o is bool?[], false); Eval(8905, o is byte, false); Eval(8906, o is byte[], false); Eval(8907, o is byte?, false); Eval(8908, o is byte?[], false); Eval(8909, o is sbyte, false); Eval(8910, o is sbyte[], false); Eval(8911, o is sbyte?, false); Eval(8912, o is sbyte?[], false); Eval(8913, o is short, false); Eval(8914, o is short[], false); Eval(8915, o is short?, false); Eval(8916, o is short?[], false); Eval(8917, o is ushort, false); Eval(8918, o is ushort[], false); Eval(8919, o is ushort?, false); Eval(8920, o is ushort?[], false); Eval(8921, o is int, false); Eval(8922, o is int[], false); Eval(8923, o is int?, false); Eval(8924, o is int?[], false); Eval(8925, o is uint, false); Eval(8926, o is uint[], false); Eval(8927, o is uint?, false); Eval(8928, o is uint?[], false); Eval(8929, o is long, false); Eval(8930, o is long[], false); Eval(8931, o is long?, false); Eval(8932, o is long?[], false); Eval(8933, o is ulong, false); Eval(8934, o is ulong[], false); Eval(8935, o is ulong?, false); Eval(8936, o is ulong?[], false); Eval(8937, o is float, false); Eval(8938, o is float[], false); Eval(8939, o is float?, false); Eval(8940, o is float?[], false); Eval(8941, o is double, false); Eval(8942, o is double[], false); Eval(8943, o is double?, false); Eval(8944, o is double?[], false); Eval(8945, o is decimal, false); Eval(8946, o is decimal[], false); Eval(8947, o is decimal?, false); Eval(8948, o is decimal?[], false); Eval(8949, o is IntPtr, false); Eval(8950, o is IntPtr[], false); Eval(8951, o is IntPtr?, false); Eval(8952, o is IntPtr?[], false); Eval(8953, o is UIntPtr, false); Eval(8954, o is UIntPtr[], false); Eval(8955, o is UIntPtr?, false); Eval(8956, o is UIntPtr?[], false); Eval(8957, o is Guid, false); Eval(8958, o is Guid[], false); Eval(8959, o is Guid?, false); Eval(8960, o is Guid?[], false); Eval(8961, o is GCHandle, false); Eval(8962, o is GCHandle[], false); Eval(8963, o is GCHandle?, false); Eval(8964, o is GCHandle?[], false); Eval(8965, o is object, true); Eval(8966, o is object[], false); Eval(8967, o is string, false); Eval(8968, o is string[], false); Eval(8969, o is ValueType, true); Eval(8970, o is ValueType[], false); Eval(8971, o is Array, false); Eval(8972, o is Array[], false); Eval(8973, o is Enum, false); Eval(8974, o is Enum[], false); Eval(8975, o is Delegate, false); Eval(8976, o is Delegate[], false); Eval(8977, o is MulticastDelegate, false); Eval(8978, o is MulticastDelegate[], false); Eval(8979, o is IEmpty, true); Eval(8980, o is IEmpty[], false); Eval(8981, o is INotEmpty, true); Eval(8982, o is INotEmpty[], false); Eval(8983, o is IEmptyGen<int>, true); Eval(8984, o is IEmptyGen<int>[], false); Eval(8985, o is INotEmptyGen<int>, true); Eval(8986, o is INotEmptyGen<int>[], false); Eval(8987, o is SimpleDelegate, false); Eval(8988, o is SimpleDelegate[], false); Eval(8989, o is GenericDelegate<int>, false); Eval(8990, o is GenericDelegate<int>[], false); Eval(8991, o is EmptyClass, false); Eval(8992, o is EmptyClass[], false); Eval(8993, o is NotEmptyClass, false); Eval(8994, o is NotEmptyClass[], false); Eval(8995, o is EmptyClassGen<int>, false); Eval(8996, o is EmptyClassGen<int>[], false); Eval(8997, o is NotEmptyClassGen<Guid>, false); Eval(8998, o is NotEmptyClassGen<Guid>[], false); Eval(8999, o is NotEmptyClassConstrainedGen<object>, false); Eval(9000, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9001, o is NestedClass, false); Eval(9002, o is NestedClass[], false); Eval(9003, o is NestedClassGen<Decimal>, false); Eval(9004, o is NestedClassGen<Decimal>[], false); Eval(9005, o is ImplementOneInterfaceC, false); Eval(9006, o is ImplementOneInterfaceC[], false); Eval(9007, o is ImplementTwoInterfaceC, false); Eval(9008, o is ImplementTwoInterfaceC[], false); Eval(9009, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9010, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9011, o is ImplementTwoInterfaceGenC<int>, false); Eval(9012, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9013, o is ImplementAllInterfaceC<int>, false); Eval(9014, o is ImplementAllInterfaceC<int>[], false); Eval(9015, o is SealedClass, false); Eval(9016, o is SealedClass[], false); } { ImplementAllInterface<int>? v = default(ImplementAllInterface<int>); ValueType o = v; Eval(9017, o is EmptyStruct, false); Eval(9018, o is EmptyStruct[], false); Eval(9019, o is EmptyStruct?, false); Eval(9020, o is EmptyStruct?[], false); Eval(9021, o is NotEmptyStruct, false); Eval(9022, o is NotEmptyStruct[], false); Eval(9023, o is NotEmptyStruct?, false); Eval(9024, o is NotEmptyStruct?[], false); Eval(9025, o is EmptyStructGen<int>, false); Eval(9026, o is EmptyStructGen<int>[], false); Eval(9027, o is EmptyStructGen<int>?, false); Eval(9028, o is EmptyStructGen<int>?[], false); Eval(9029, o is NotEmptyStructGen<Guid>, false); Eval(9030, o is NotEmptyStructGen<Guid>[], false); Eval(9031, o is NotEmptyStructGen<Guid>?, false); Eval(9032, o is NotEmptyStructGen<Guid>?[], false); Eval(9033, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9034, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9035, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9036, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9037, o is NestedStruct, false); Eval(9038, o is NestedStruct[], false); Eval(9039, o is NestedStruct?, false); Eval(9040, o is NestedStruct?[], false); Eval(9041, o is NestedStructGen<Decimal>, false); Eval(9042, o is NestedStructGen<Decimal>[], false); Eval(9043, o is NestedStructGen<Decimal>?, false); Eval(9044, o is NestedStructGen<Decimal>?[], false); Eval(9045, o is ExplicitFieldOffsetStruct, false); Eval(9046, o is ExplicitFieldOffsetStruct[], false); Eval(9047, o is ExplicitFieldOffsetStruct?, false); Eval(9048, o is ExplicitFieldOffsetStruct?[], false); Eval(9057, o is MarshalAsStruct, false); Eval(9058, o is MarshalAsStruct[], false); Eval(9059, o is MarshalAsStruct?, false); Eval(9060, o is MarshalAsStruct?[], false); Eval(9061, o is ImplementOneInterface, false); Eval(9062, o is ImplementOneInterface[], false); Eval(9063, o is ImplementOneInterface?, false); Eval(9064, o is ImplementOneInterface?[], false); Eval(9065, o is ImplementTwoInterface, false); Eval(9066, o is ImplementTwoInterface[], false); Eval(9067, o is ImplementTwoInterface?, false); Eval(9068, o is ImplementTwoInterface?[], false); Eval(9069, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9070, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9071, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9072, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9073, o is ImplementTwoInterfaceGen<int>, false); Eval(9074, o is ImplementTwoInterfaceGen<int>[], false); Eval(9075, o is ImplementTwoInterfaceGen<int>?, false); Eval(9076, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9077, o is ImplementAllInterface<int>, true); Eval(9078, o is ImplementAllInterface<int>[], false); Eval(9079, o is ImplementAllInterface<int>?, true); Eval(9080, o is ImplementAllInterface<int>?[], false); Eval(9081, o is IntE, false); Eval(9082, o is IntE[], false); Eval(9083, o is IntE?, false); Eval(9084, o is IntE?[], false); Eval(9085, o is ByteE, false); Eval(9086, o is ByteE[], false); Eval(9087, o is ByteE?, false); Eval(9088, o is ByteE?[], false); Eval(9089, o is LongE, false); Eval(9090, o is LongE[], false); Eval(9091, o is LongE?, false); Eval(9092, o is LongE?[], false); Eval(9093, o is char, false); Eval(9094, o is char[], false); Eval(9095, o is char?, false); Eval(9096, o is char?[], false); Eval(9097, o is bool, false); Eval(9098, o is bool[], false); Eval(9099, o is bool?, false); Eval(9100, o is bool?[], false); Eval(9101, o is byte, false); Eval(9102, o is byte[], false); Eval(9103, o is byte?, false); Eval(9104, o is byte?[], false); Eval(9105, o is sbyte, false); Eval(9106, o is sbyte[], false); Eval(9107, o is sbyte?, false); Eval(9108, o is sbyte?[], false); Eval(9109, o is short, false); Eval(9110, o is short[], false); Eval(9111, o is short?, false); Eval(9112, o is short?[], false); Eval(9113, o is ushort, false); Eval(9114, o is ushort[], false); Eval(9115, o is ushort?, false); Eval(9116, o is ushort?[], false); Eval(9117, o is int, false); Eval(9118, o is int[], false); Eval(9119, o is int?, false); Eval(9120, o is int?[], false); Eval(9121, o is uint, false); Eval(9122, o is uint[], false); Eval(9123, o is uint?, false); Eval(9124, o is uint?[], false); Eval(9125, o is long, false); Eval(9126, o is long[], false); Eval(9127, o is long?, false); Eval(9128, o is long?[], false); Eval(9129, o is ulong, false); Eval(9130, o is ulong[], false); Eval(9131, o is ulong?, false); Eval(9132, o is ulong?[], false); Eval(9133, o is float, false); Eval(9134, o is float[], false); Eval(9135, o is float?, false); Eval(9136, o is float?[], false); Eval(9137, o is double, false); Eval(9138, o is double[], false); Eval(9139, o is double?, false); Eval(9140, o is double?[], false); Eval(9141, o is decimal, false); Eval(9142, o is decimal[], false); Eval(9143, o is decimal?, false); Eval(9144, o is decimal?[], false); Eval(9145, o is IntPtr, false); Eval(9146, o is IntPtr[], false); Eval(9147, o is IntPtr?, false); Eval(9148, o is IntPtr?[], false); Eval(9149, o is UIntPtr, false); Eval(9150, o is UIntPtr[], false); Eval(9151, o is UIntPtr?, false); Eval(9152, o is UIntPtr?[], false); Eval(9153, o is Guid, false); Eval(9154, o is Guid[], false); Eval(9155, o is Guid?, false); Eval(9156, o is Guid?[], false); Eval(9157, o is GCHandle, false); Eval(9158, o is GCHandle[], false); Eval(9159, o is GCHandle?, false); Eval(9160, o is GCHandle?[], false); Eval(9161, o is object, true); Eval(9162, o is object[], false); Eval(9163, o is string, false); Eval(9164, o is string[], false); Eval(9165, o is ValueType, true); Eval(9166, o is ValueType[], false); Eval(9167, o is Array, false); Eval(9168, o is Array[], false); Eval(9169, o is Enum, false); Eval(9170, o is Enum[], false); Eval(9171, o is Delegate, false); Eval(9172, o is Delegate[], false); Eval(9173, o is MulticastDelegate, false); Eval(9174, o is MulticastDelegate[], false); Eval(9175, o is IEmpty, true); Eval(9176, o is IEmpty[], false); Eval(9177, o is INotEmpty, true); Eval(9178, o is INotEmpty[], false); Eval(9179, o is IEmptyGen<int>, true); Eval(9180, o is IEmptyGen<int>[], false); Eval(9181, o is INotEmptyGen<int>, true); Eval(9182, o is INotEmptyGen<int>[], false); Eval(9183, o is SimpleDelegate, false); Eval(9184, o is SimpleDelegate[], false); Eval(9185, o is GenericDelegate<int>, false); Eval(9186, o is GenericDelegate<int>[], false); Eval(9187, o is EmptyClass, false); Eval(9188, o is EmptyClass[], false); Eval(9189, o is NotEmptyClass, false); Eval(9190, o is NotEmptyClass[], false); Eval(9191, o is EmptyClassGen<int>, false); Eval(9192, o is EmptyClassGen<int>[], false); Eval(9193, o is NotEmptyClassGen<Guid>, false); Eval(9194, o is NotEmptyClassGen<Guid>[], false); Eval(9195, o is NotEmptyClassConstrainedGen<object>, false); Eval(9196, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9197, o is NestedClass, false); Eval(9198, o is NestedClass[], false); Eval(9199, o is NestedClassGen<Decimal>, false); Eval(9200, o is NestedClassGen<Decimal>[], false); Eval(9201, o is ImplementOneInterfaceC, false); Eval(9202, o is ImplementOneInterfaceC[], false); Eval(9203, o is ImplementTwoInterfaceC, false); Eval(9204, o is ImplementTwoInterfaceC[], false); Eval(9205, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9206, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9207, o is ImplementTwoInterfaceGenC<int>, false); Eval(9208, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9209, o is ImplementAllInterfaceC<int>, false); Eval(9210, o is ImplementAllInterfaceC<int>[], false); Eval(9211, o is SealedClass, false); Eval(9212, o is SealedClass[], false); } { ImplementAllInterface<int>? v = default(ImplementAllInterface<int>?); ValueType o = v; Eval(9213, o is EmptyStruct, false); Eval(9214, o is EmptyStruct[], false); Eval(9215, o is EmptyStruct?, false); Eval(9216, o is EmptyStruct?[], false); Eval(9217, o is NotEmptyStruct, false); Eval(9218, o is NotEmptyStruct[], false); Eval(9219, o is NotEmptyStruct?, false); Eval(9220, o is NotEmptyStruct?[], false); Eval(9221, o is EmptyStructGen<int>, false); Eval(9222, o is EmptyStructGen<int>[], false); Eval(9223, o is EmptyStructGen<int>?, false); Eval(9224, o is EmptyStructGen<int>?[], false); Eval(9225, o is NotEmptyStructGen<Guid>, false); Eval(9226, o is NotEmptyStructGen<Guid>[], false); Eval(9227, o is NotEmptyStructGen<Guid>?, false); Eval(9228, o is NotEmptyStructGen<Guid>?[], false); Eval(9229, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9230, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9231, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9232, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9233, o is NestedStruct, false); Eval(9234, o is NestedStruct[], false); Eval(9235, o is NestedStruct?, false); Eval(9236, o is NestedStruct?[], false); Eval(9237, o is NestedStructGen<Decimal>, false); Eval(9238, o is NestedStructGen<Decimal>[], false); Eval(9239, o is NestedStructGen<Decimal>?, false); Eval(9240, o is NestedStructGen<Decimal>?[], false); Eval(9241, o is ExplicitFieldOffsetStruct, false); Eval(9242, o is ExplicitFieldOffsetStruct[], false); Eval(9243, o is ExplicitFieldOffsetStruct?, false); Eval(9244, o is ExplicitFieldOffsetStruct?[], false); Eval(9253, o is MarshalAsStruct, false); Eval(9254, o is MarshalAsStruct[], false); Eval(9255, o is MarshalAsStruct?, false); Eval(9256, o is MarshalAsStruct?[], false); Eval(9257, o is ImplementOneInterface, false); Eval(9258, o is ImplementOneInterface[], false); Eval(9259, o is ImplementOneInterface?, false); Eval(9260, o is ImplementOneInterface?[], false); Eval(9261, o is ImplementTwoInterface, false); Eval(9262, o is ImplementTwoInterface[], false); Eval(9263, o is ImplementTwoInterface?, false); Eval(9264, o is ImplementTwoInterface?[], false); Eval(9265, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9266, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9267, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9268, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9269, o is ImplementTwoInterfaceGen<int>, false); Eval(9270, o is ImplementTwoInterfaceGen<int>[], false); Eval(9271, o is ImplementTwoInterfaceGen<int>?, false); Eval(9272, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9273, o is ImplementAllInterface<int>, false); Eval(9274, o is ImplementAllInterface<int>[], false); Eval(9275, o is ImplementAllInterface<int>?, false); Eval(9276, o is ImplementAllInterface<int>?[], false); Eval(9277, o is IntE, false); Eval(9278, o is IntE[], false); Eval(9279, o is IntE?, false); Eval(9280, o is IntE?[], false); Eval(9281, o is ByteE, false); Eval(9282, o is ByteE[], false); Eval(9283, o is ByteE?, false); Eval(9284, o is ByteE?[], false); Eval(9285, o is LongE, false); Eval(9286, o is LongE[], false); Eval(9287, o is LongE?, false); Eval(9288, o is LongE?[], false); Eval(9289, o is char, false); Eval(9290, o is char[], false); Eval(9291, o is char?, false); Eval(9292, o is char?[], false); Eval(9293, o is bool, false); Eval(9294, o is bool[], false); Eval(9295, o is bool?, false); Eval(9296, o is bool?[], false); Eval(9297, o is byte, false); Eval(9298, o is byte[], false); Eval(9299, o is byte?, false); Eval(9300, o is byte?[], false); Eval(9301, o is sbyte, false); Eval(9302, o is sbyte[], false); Eval(9303, o is sbyte?, false); Eval(9304, o is sbyte?[], false); Eval(9305, o is short, false); Eval(9306, o is short[], false); Eval(9307, o is short?, false); Eval(9308, o is short?[], false); Eval(9309, o is ushort, false); Eval(9310, o is ushort[], false); Eval(9311, o is ushort?, false); Eval(9312, o is ushort?[], false); Eval(9313, o is int, false); Eval(9314, o is int[], false); Eval(9315, o is int?, false); Eval(9316, o is int?[], false); Eval(9317, o is uint, false); Eval(9318, o is uint[], false); Eval(9319, o is uint?, false); Eval(9320, o is uint?[], false); Eval(9321, o is long, false); Eval(9322, o is long[], false); Eval(9323, o is long?, false); Eval(9324, o is long?[], false); Eval(9325, o is ulong, false); Eval(9326, o is ulong[], false); Eval(9327, o is ulong?, false); Eval(9328, o is ulong?[], false); Eval(9329, o is float, false); Eval(9330, o is float[], false); Eval(9331, o is float?, false); Eval(9332, o is float?[], false); Eval(9333, o is double, false); Eval(9334, o is double[], false); Eval(9335, o is double?, false); Eval(9336, o is double?[], false); Eval(9337, o is decimal, false); Eval(9338, o is decimal[], false); Eval(9339, o is decimal?, false); Eval(9340, o is decimal?[], false); Eval(9341, o is IntPtr, false); Eval(9342, o is IntPtr[], false); Eval(9343, o is IntPtr?, false); Eval(9344, o is IntPtr?[], false); Eval(9345, o is UIntPtr, false); Eval(9346, o is UIntPtr[], false); Eval(9347, o is UIntPtr?, false); Eval(9348, o is UIntPtr?[], false); Eval(9349, o is Guid, false); Eval(9350, o is Guid[], false); Eval(9351, o is Guid?, false); Eval(9352, o is Guid?[], false); Eval(9353, o is GCHandle, false); Eval(9354, o is GCHandle[], false); Eval(9355, o is GCHandle?, false); Eval(9356, o is GCHandle?[], false); Eval(9357, o is object, false); Eval(9358, o is object[], false); Eval(9359, o is string, false); Eval(9360, o is string[], false); Eval(9361, o is ValueType, false); Eval(9362, o is ValueType[], false); Eval(9363, o is Array, false); Eval(9364, o is Array[], false); Eval(9365, o is Enum, false); Eval(9366, o is Enum[], false); Eval(9367, o is Delegate, false); Eval(9368, o is Delegate[], false); Eval(9369, o is MulticastDelegate, false); Eval(9370, o is MulticastDelegate[], false); Eval(9371, o is IEmpty, false); Eval(9372, o is IEmpty[], false); Eval(9373, o is INotEmpty, false); Eval(9374, o is INotEmpty[], false); Eval(9375, o is IEmptyGen<int>, false); Eval(9376, o is IEmptyGen<int>[], false); Eval(9377, o is INotEmptyGen<int>, false); Eval(9378, o is INotEmptyGen<int>[], false); Eval(9379, o is SimpleDelegate, false); Eval(9380, o is SimpleDelegate[], false); Eval(9381, o is GenericDelegate<int>, false); Eval(9382, o is GenericDelegate<int>[], false); Eval(9383, o is EmptyClass, false); Eval(9384, o is EmptyClass[], false); Eval(9385, o is NotEmptyClass, false); Eval(9386, o is NotEmptyClass[], false); Eval(9387, o is EmptyClassGen<int>, false); Eval(9388, o is EmptyClassGen<int>[], false); Eval(9389, o is NotEmptyClassGen<Guid>, false); Eval(9390, o is NotEmptyClassGen<Guid>[], false); Eval(9391, o is NotEmptyClassConstrainedGen<object>, false); Eval(9392, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9393, o is NestedClass, false); Eval(9394, o is NestedClass[], false); Eval(9395, o is NestedClassGen<Decimal>, false); Eval(9396, o is NestedClassGen<Decimal>[], false); Eval(9397, o is ImplementOneInterfaceC, false); Eval(9398, o is ImplementOneInterfaceC[], false); Eval(9399, o is ImplementTwoInterfaceC, false); Eval(9400, o is ImplementTwoInterfaceC[], false); Eval(9401, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9402, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9403, o is ImplementTwoInterfaceGenC<int>, false); Eval(9404, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9405, o is ImplementAllInterfaceC<int>, false); Eval(9406, o is ImplementAllInterfaceC<int>[], false); Eval(9407, o is SealedClass, false); Eval(9408, o is SealedClass[], false); } } // end of test case 0016 private static void TestCase0017() { { IntE v = default(IntE); ValueType o = v; Eval(9409, o is EmptyStruct, false); Eval(9410, o is EmptyStruct[], false); Eval(9411, o is EmptyStruct?, false); Eval(9412, o is EmptyStruct?[], false); Eval(9413, o is NotEmptyStruct, false); Eval(9414, o is NotEmptyStruct[], false); Eval(9415, o is NotEmptyStruct?, false); Eval(9416, o is NotEmptyStruct?[], false); Eval(9417, o is EmptyStructGen<int>, false); Eval(9418, o is EmptyStructGen<int>[], false); Eval(9419, o is EmptyStructGen<int>?, false); Eval(9420, o is EmptyStructGen<int>?[], false); Eval(9421, o is NotEmptyStructGen<Guid>, false); Eval(9422, o is NotEmptyStructGen<Guid>[], false); Eval(9423, o is NotEmptyStructGen<Guid>?, false); Eval(9424, o is NotEmptyStructGen<Guid>?[], false); Eval(9425, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9426, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9427, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9428, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9429, o is NestedStruct, false); Eval(9430, o is NestedStruct[], false); Eval(9431, o is NestedStruct?, false); Eval(9432, o is NestedStruct?[], false); Eval(9433, o is NestedStructGen<Decimal>, false); Eval(9434, o is NestedStructGen<Decimal>[], false); Eval(9435, o is NestedStructGen<Decimal>?, false); Eval(9436, o is NestedStructGen<Decimal>?[], false); Eval(9437, o is ExplicitFieldOffsetStruct, false); Eval(9438, o is ExplicitFieldOffsetStruct[], false); Eval(9439, o is ExplicitFieldOffsetStruct?, false); Eval(9440, o is ExplicitFieldOffsetStruct?[], false); Eval(9449, o is MarshalAsStruct, false); Eval(9450, o is MarshalAsStruct[], false); Eval(9451, o is MarshalAsStruct?, false); Eval(9452, o is MarshalAsStruct?[], false); Eval(9453, o is ImplementOneInterface, false); Eval(9454, o is ImplementOneInterface[], false); Eval(9455, o is ImplementOneInterface?, false); Eval(9456, o is ImplementOneInterface?[], false); Eval(9457, o is ImplementTwoInterface, false); Eval(9458, o is ImplementTwoInterface[], false); Eval(9459, o is ImplementTwoInterface?, false); Eval(9460, o is ImplementTwoInterface?[], false); Eval(9461, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9462, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9463, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9464, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9465, o is ImplementTwoInterfaceGen<int>, false); Eval(9466, o is ImplementTwoInterfaceGen<int>[], false); Eval(9467, o is ImplementTwoInterfaceGen<int>?, false); Eval(9468, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9469, o is ImplementAllInterface<int>, false); Eval(9470, o is ImplementAllInterface<int>[], false); Eval(9471, o is ImplementAllInterface<int>?, false); Eval(9472, o is ImplementAllInterface<int>?[], false); Eval(9473, o is IntE, true); Eval(9474, o is IntE[], false); Eval(9475, o is IntE?, true); Eval(9476, o is IntE?[], false); Eval(9477, o is ByteE, false); Eval(9478, o is ByteE[], false); Eval(9479, o is ByteE?, false); Eval(9480, o is ByteE?[], false); Eval(9481, o is LongE, false); Eval(9482, o is LongE[], false); Eval(9483, o is LongE?, false); Eval(9484, o is LongE?[], false); Eval(9485, o is char, false); Eval(9486, o is char[], false); Eval(9487, o is char?, false); Eval(9488, o is char?[], false); Eval(9489, o is bool, false); Eval(9490, o is bool[], false); Eval(9491, o is bool?, false); Eval(9492, o is bool?[], false); Eval(9493, o is byte, false); Eval(9494, o is byte[], false); Eval(9495, o is byte?, false); Eval(9496, o is byte?[], false); Eval(9497, o is sbyte, false); Eval(9498, o is sbyte[], false); Eval(9499, o is sbyte?, false); Eval(9500, o is sbyte?[], false); Eval(9501, o is short, false); Eval(9502, o is short[], false); Eval(9503, o is short?, false); Eval(9504, o is short?[], false); Eval(9505, o is ushort, false); Eval(9506, o is ushort[], false); Eval(9507, o is ushort?, false); Eval(9508, o is ushort?[], false); Eval(9509, o is int, false); Eval(9510, o is int[], false); Eval(9511, o is int?, false); Eval(9512, o is int?[], false); Eval(9513, o is uint, false); Eval(9514, o is uint[], false); Eval(9515, o is uint?, false); Eval(9516, o is uint?[], false); Eval(9517, o is long, false); Eval(9518, o is long[], false); Eval(9519, o is long?, false); Eval(9520, o is long?[], false); Eval(9521, o is ulong, false); Eval(9522, o is ulong[], false); Eval(9523, o is ulong?, false); Eval(9524, o is ulong?[], false); Eval(9525, o is float, false); Eval(9526, o is float[], false); Eval(9527, o is float?, false); Eval(9528, o is float?[], false); Eval(9529, o is double, false); Eval(9530, o is double[], false); Eval(9531, o is double?, false); Eval(9532, o is double?[], false); Eval(9533, o is decimal, false); Eval(9534, o is decimal[], false); Eval(9535, o is decimal?, false); Eval(9536, o is decimal?[], false); Eval(9537, o is IntPtr, false); Eval(9538, o is IntPtr[], false); Eval(9539, o is IntPtr?, false); Eval(9540, o is IntPtr?[], false); Eval(9541, o is UIntPtr, false); Eval(9542, o is UIntPtr[], false); Eval(9543, o is UIntPtr?, false); Eval(9544, o is UIntPtr?[], false); Eval(9545, o is Guid, false); Eval(9546, o is Guid[], false); Eval(9547, o is Guid?, false); Eval(9548, o is Guid?[], false); Eval(9549, o is GCHandle, false); Eval(9550, o is GCHandle[], false); Eval(9551, o is GCHandle?, false); Eval(9552, o is GCHandle?[], false); Eval(9553, o is object, true); Eval(9554, o is object[], false); Eval(9555, o is string, false); Eval(9556, o is string[], false); Eval(9557, o is ValueType, true); Eval(9558, o is ValueType[], false); Eval(9559, o is Array, false); Eval(9560, o is Array[], false); Eval(9561, o is Enum, true); Eval(9562, o is Enum[], false); Eval(9563, o is Delegate, false); Eval(9564, o is Delegate[], false); Eval(9565, o is MulticastDelegate, false); Eval(9566, o is MulticastDelegate[], false); Eval(9567, o is IEmpty, false); Eval(9568, o is IEmpty[], false); Eval(9569, o is INotEmpty, false); Eval(9570, o is INotEmpty[], false); Eval(9571, o is IEmptyGen<int>, false); Eval(9572, o is IEmptyGen<int>[], false); Eval(9573, o is INotEmptyGen<int>, false); Eval(9574, o is INotEmptyGen<int>[], false); Eval(9575, o is SimpleDelegate, false); Eval(9576, o is SimpleDelegate[], false); Eval(9577, o is GenericDelegate<int>, false); Eval(9578, o is GenericDelegate<int>[], false); Eval(9579, o is EmptyClass, false); Eval(9580, o is EmptyClass[], false); Eval(9581, o is NotEmptyClass, false); Eval(9582, o is NotEmptyClass[], false); Eval(9583, o is EmptyClassGen<int>, false); Eval(9584, o is EmptyClassGen<int>[], false); Eval(9585, o is NotEmptyClassGen<Guid>, false); Eval(9586, o is NotEmptyClassGen<Guid>[], false); Eval(9587, o is NotEmptyClassConstrainedGen<object>, false); Eval(9588, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9589, o is NestedClass, false); Eval(9590, o is NestedClass[], false); Eval(9591, o is NestedClassGen<Decimal>, false); Eval(9592, o is NestedClassGen<Decimal>[], false); Eval(9593, o is ImplementOneInterfaceC, false); Eval(9594, o is ImplementOneInterfaceC[], false); Eval(9595, o is ImplementTwoInterfaceC, false); Eval(9596, o is ImplementTwoInterfaceC[], false); Eval(9597, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9598, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9599, o is ImplementTwoInterfaceGenC<int>, false); Eval(9600, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9601, o is ImplementAllInterfaceC<int>, false); Eval(9602, o is ImplementAllInterfaceC<int>[], false); Eval(9603, o is SealedClass, false); Eval(9604, o is SealedClass[], false); } { IntE? v = default(IntE); ValueType o = v; Eval(9605, o is EmptyStruct, false); Eval(9606, o is EmptyStruct[], false); Eval(9607, o is EmptyStruct?, false); Eval(9608, o is EmptyStruct?[], false); Eval(9609, o is NotEmptyStruct, false); Eval(9610, o is NotEmptyStruct[], false); Eval(9611, o is NotEmptyStruct?, false); Eval(9612, o is NotEmptyStruct?[], false); Eval(9613, o is EmptyStructGen<int>, false); Eval(9614, o is EmptyStructGen<int>[], false); Eval(9615, o is EmptyStructGen<int>?, false); Eval(9616, o is EmptyStructGen<int>?[], false); Eval(9617, o is NotEmptyStructGen<Guid>, false); Eval(9618, o is NotEmptyStructGen<Guid>[], false); Eval(9619, o is NotEmptyStructGen<Guid>?, false); Eval(9620, o is NotEmptyStructGen<Guid>?[], false); Eval(9621, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9622, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9623, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9624, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9625, o is NestedStruct, false); Eval(9626, o is NestedStruct[], false); Eval(9627, o is NestedStruct?, false); Eval(9628, o is NestedStruct?[], false); Eval(9629, o is NestedStructGen<Decimal>, false); Eval(9630, o is NestedStructGen<Decimal>[], false); Eval(9631, o is NestedStructGen<Decimal>?, false); Eval(9632, o is NestedStructGen<Decimal>?[], false); Eval(9633, o is ExplicitFieldOffsetStruct, false); Eval(9634, o is ExplicitFieldOffsetStruct[], false); Eval(9635, o is ExplicitFieldOffsetStruct?, false); Eval(9636, o is ExplicitFieldOffsetStruct?[], false); Eval(9645, o is MarshalAsStruct, false); Eval(9646, o is MarshalAsStruct[], false); Eval(9647, o is MarshalAsStruct?, false); Eval(9648, o is MarshalAsStruct?[], false); Eval(9649, o is ImplementOneInterface, false); Eval(9650, o is ImplementOneInterface[], false); Eval(9651, o is ImplementOneInterface?, false); Eval(9652, o is ImplementOneInterface?[], false); Eval(9653, o is ImplementTwoInterface, false); Eval(9654, o is ImplementTwoInterface[], false); Eval(9655, o is ImplementTwoInterface?, false); Eval(9656, o is ImplementTwoInterface?[], false); Eval(9657, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9658, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9659, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9660, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9661, o is ImplementTwoInterfaceGen<int>, false); Eval(9662, o is ImplementTwoInterfaceGen<int>[], false); Eval(9663, o is ImplementTwoInterfaceGen<int>?, false); Eval(9664, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9665, o is ImplementAllInterface<int>, false); Eval(9666, o is ImplementAllInterface<int>[], false); Eval(9667, o is ImplementAllInterface<int>?, false); Eval(9668, o is ImplementAllInterface<int>?[], false); Eval(9669, o is IntE, true); Eval(9670, o is IntE[], false); Eval(9671, o is IntE?, true); Eval(9672, o is IntE?[], false); Eval(9673, o is ByteE, false); Eval(9674, o is ByteE[], false); Eval(9675, o is ByteE?, false); Eval(9676, o is ByteE?[], false); Eval(9677, o is LongE, false); Eval(9678, o is LongE[], false); Eval(9679, o is LongE?, false); Eval(9680, o is LongE?[], false); Eval(9681, o is char, false); Eval(9682, o is char[], false); Eval(9683, o is char?, false); Eval(9684, o is char?[], false); Eval(9685, o is bool, false); Eval(9686, o is bool[], false); Eval(9687, o is bool?, false); Eval(9688, o is bool?[], false); Eval(9689, o is byte, false); Eval(9690, o is byte[], false); Eval(9691, o is byte?, false); Eval(9692, o is byte?[], false); Eval(9693, o is sbyte, false); Eval(9694, o is sbyte[], false); Eval(9695, o is sbyte?, false); Eval(9696, o is sbyte?[], false); Eval(9697, o is short, false); Eval(9698, o is short[], false); Eval(9699, o is short?, false); Eval(9700, o is short?[], false); Eval(9701, o is ushort, false); Eval(9702, o is ushort[], false); Eval(9703, o is ushort?, false); Eval(9704, o is ushort?[], false); Eval(9705, o is int, false); Eval(9706, o is int[], false); Eval(9707, o is int?, false); Eval(9708, o is int?[], false); Eval(9709, o is uint, false); Eval(9710, o is uint[], false); Eval(9711, o is uint?, false); Eval(9712, o is uint?[], false); Eval(9713, o is long, false); Eval(9714, o is long[], false); Eval(9715, o is long?, false); Eval(9716, o is long?[], false); Eval(9717, o is ulong, false); Eval(9718, o is ulong[], false); Eval(9719, o is ulong?, false); Eval(9720, o is ulong?[], false); Eval(9721, o is float, false); Eval(9722, o is float[], false); Eval(9723, o is float?, false); Eval(9724, o is float?[], false); Eval(9725, o is double, false); Eval(9726, o is double[], false); Eval(9727, o is double?, false); Eval(9728, o is double?[], false); Eval(9729, o is decimal, false); Eval(9730, o is decimal[], false); Eval(9731, o is decimal?, false); Eval(9732, o is decimal?[], false); Eval(9733, o is IntPtr, false); Eval(9734, o is IntPtr[], false); Eval(9735, o is IntPtr?, false); Eval(9736, o is IntPtr?[], false); Eval(9737, o is UIntPtr, false); Eval(9738, o is UIntPtr[], false); Eval(9739, o is UIntPtr?, false); Eval(9740, o is UIntPtr?[], false); Eval(9741, o is Guid, false); Eval(9742, o is Guid[], false); Eval(9743, o is Guid?, false); Eval(9744, o is Guid?[], false); Eval(9745, o is GCHandle, false); Eval(9746, o is GCHandle[], false); Eval(9747, o is GCHandle?, false); Eval(9748, o is GCHandle?[], false); Eval(9749, o is object, true); Eval(9750, o is object[], false); Eval(9751, o is string, false); Eval(9752, o is string[], false); Eval(9753, o is ValueType, true); Eval(9754, o is ValueType[], false); Eval(9755, o is Array, false); Eval(9756, o is Array[], false); Eval(9757, o is Enum, true); Eval(9758, o is Enum[], false); Eval(9759, o is Delegate, false); Eval(9760, o is Delegate[], false); Eval(9761, o is MulticastDelegate, false); Eval(9762, o is MulticastDelegate[], false); Eval(9763, o is IEmpty, false); Eval(9764, o is IEmpty[], false); Eval(9765, o is INotEmpty, false); Eval(9766, o is INotEmpty[], false); Eval(9767, o is IEmptyGen<int>, false); Eval(9768, o is IEmptyGen<int>[], false); Eval(9769, o is INotEmptyGen<int>, false); Eval(9770, o is INotEmptyGen<int>[], false); Eval(9771, o is SimpleDelegate, false); Eval(9772, o is SimpleDelegate[], false); Eval(9773, o is GenericDelegate<int>, false); Eval(9774, o is GenericDelegate<int>[], false); Eval(9775, o is EmptyClass, false); Eval(9776, o is EmptyClass[], false); Eval(9777, o is NotEmptyClass, false); Eval(9778, o is NotEmptyClass[], false); Eval(9779, o is EmptyClassGen<int>, false); Eval(9780, o is EmptyClassGen<int>[], false); Eval(9781, o is NotEmptyClassGen<Guid>, false); Eval(9782, o is NotEmptyClassGen<Guid>[], false); Eval(9783, o is NotEmptyClassConstrainedGen<object>, false); Eval(9784, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9785, o is NestedClass, false); Eval(9786, o is NestedClass[], false); Eval(9787, o is NestedClassGen<Decimal>, false); Eval(9788, o is NestedClassGen<Decimal>[], false); Eval(9789, o is ImplementOneInterfaceC, false); Eval(9790, o is ImplementOneInterfaceC[], false); Eval(9791, o is ImplementTwoInterfaceC, false); Eval(9792, o is ImplementTwoInterfaceC[], false); Eval(9793, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9794, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9795, o is ImplementTwoInterfaceGenC<int>, false); Eval(9796, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9797, o is ImplementAllInterfaceC<int>, false); Eval(9798, o is ImplementAllInterfaceC<int>[], false); Eval(9799, o is SealedClass, false); Eval(9800, o is SealedClass[], false); } { IntE? v = default(IntE?); ValueType o = v; Eval(9801, o is EmptyStruct, false); Eval(9802, o is EmptyStruct[], false); Eval(9803, o is EmptyStruct?, false); Eval(9804, o is EmptyStruct?[], false); Eval(9805, o is NotEmptyStruct, false); Eval(9806, o is NotEmptyStruct[], false); Eval(9807, o is NotEmptyStruct?, false); Eval(9808, o is NotEmptyStruct?[], false); Eval(9809, o is EmptyStructGen<int>, false); Eval(9810, o is EmptyStructGen<int>[], false); Eval(9811, o is EmptyStructGen<int>?, false); Eval(9812, o is EmptyStructGen<int>?[], false); Eval(9813, o is NotEmptyStructGen<Guid>, false); Eval(9814, o is NotEmptyStructGen<Guid>[], false); Eval(9815, o is NotEmptyStructGen<Guid>?, false); Eval(9816, o is NotEmptyStructGen<Guid>?[], false); Eval(9817, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9818, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9819, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9820, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9821, o is NestedStruct, false); Eval(9822, o is NestedStruct[], false); Eval(9823, o is NestedStruct?, false); Eval(9824, o is NestedStruct?[], false); Eval(9825, o is NestedStructGen<Decimal>, false); Eval(9826, o is NestedStructGen<Decimal>[], false); Eval(9827, o is NestedStructGen<Decimal>?, false); Eval(9828, o is NestedStructGen<Decimal>?[], false); Eval(9829, o is ExplicitFieldOffsetStruct, false); Eval(9830, o is ExplicitFieldOffsetStruct[], false); Eval(9831, o is ExplicitFieldOffsetStruct?, false); Eval(9832, o is ExplicitFieldOffsetStruct?[], false); Eval(9841, o is MarshalAsStruct, false); Eval(9842, o is MarshalAsStruct[], false); Eval(9843, o is MarshalAsStruct?, false); Eval(9844, o is MarshalAsStruct?[], false); Eval(9845, o is ImplementOneInterface, false); Eval(9846, o is ImplementOneInterface[], false); Eval(9847, o is ImplementOneInterface?, false); Eval(9848, o is ImplementOneInterface?[], false); Eval(9849, o is ImplementTwoInterface, false); Eval(9850, o is ImplementTwoInterface[], false); Eval(9851, o is ImplementTwoInterface?, false); Eval(9852, o is ImplementTwoInterface?[], false); Eval(9853, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9854, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9855, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9856, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9857, o is ImplementTwoInterfaceGen<int>, false); Eval(9858, o is ImplementTwoInterfaceGen<int>[], false); Eval(9859, o is ImplementTwoInterfaceGen<int>?, false); Eval(9860, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9861, o is ImplementAllInterface<int>, false); Eval(9862, o is ImplementAllInterface<int>[], false); Eval(9863, o is ImplementAllInterface<int>?, false); Eval(9864, o is ImplementAllInterface<int>?[], false); Eval(9865, o is IntE, false); Eval(9866, o is IntE[], false); Eval(9867, o is IntE?, false); Eval(9868, o is IntE?[], false); Eval(9869, o is ByteE, false); Eval(9870, o is ByteE[], false); Eval(9871, o is ByteE?, false); Eval(9872, o is ByteE?[], false); Eval(9873, o is LongE, false); Eval(9874, o is LongE[], false); Eval(9875, o is LongE?, false); Eval(9876, o is LongE?[], false); Eval(9877, o is char, false); Eval(9878, o is char[], false); Eval(9879, o is char?, false); Eval(9880, o is char?[], false); Eval(9881, o is bool, false); Eval(9882, o is bool[], false); Eval(9883, o is bool?, false); Eval(9884, o is bool?[], false); Eval(9885, o is byte, false); Eval(9886, o is byte[], false); Eval(9887, o is byte?, false); Eval(9888, o is byte?[], false); Eval(9889, o is sbyte, false); Eval(9890, o is sbyte[], false); Eval(9891, o is sbyte?, false); Eval(9892, o is sbyte?[], false); Eval(9893, o is short, false); Eval(9894, o is short[], false); Eval(9895, o is short?, false); Eval(9896, o is short?[], false); Eval(9897, o is ushort, false); Eval(9898, o is ushort[], false); Eval(9899, o is ushort?, false); Eval(9900, o is ushort?[], false); Eval(9901, o is int, false); Eval(9902, o is int[], false); Eval(9903, o is int?, false); Eval(9904, o is int?[], false); Eval(9905, o is uint, false); Eval(9906, o is uint[], false); Eval(9907, o is uint?, false); Eval(9908, o is uint?[], false); Eval(9909, o is long, false); Eval(9910, o is long[], false); Eval(9911, o is long?, false); Eval(9912, o is long?[], false); Eval(9913, o is ulong, false); Eval(9914, o is ulong[], false); Eval(9915, o is ulong?, false); Eval(9916, o is ulong?[], false); Eval(9917, o is float, false); Eval(9918, o is float[], false); Eval(9919, o is float?, false); Eval(9920, o is float?[], false); Eval(9921, o is double, false); Eval(9922, o is double[], false); Eval(9923, o is double?, false); Eval(9924, o is double?[], false); Eval(9925, o is decimal, false); Eval(9926, o is decimal[], false); Eval(9927, o is decimal?, false); Eval(9928, o is decimal?[], false); Eval(9929, o is IntPtr, false); Eval(9930, o is IntPtr[], false); Eval(9931, o is IntPtr?, false); Eval(9932, o is IntPtr?[], false); Eval(9933, o is UIntPtr, false); Eval(9934, o is UIntPtr[], false); Eval(9935, o is UIntPtr?, false); Eval(9936, o is UIntPtr?[], false); Eval(9937, o is Guid, false); Eval(9938, o is Guid[], false); Eval(9939, o is Guid?, false); Eval(9940, o is Guid?[], false); Eval(9941, o is GCHandle, false); Eval(9942, o is GCHandle[], false); Eval(9943, o is GCHandle?, false); Eval(9944, o is GCHandle?[], false); Eval(9945, o is object, false); Eval(9946, o is object[], false); Eval(9947, o is string, false); Eval(9948, o is string[], false); Eval(9949, o is ValueType, false); Eval(9950, o is ValueType[], false); Eval(9951, o is Array, false); Eval(9952, o is Array[], false); Eval(9953, o is Enum, false); Eval(9954, o is Enum[], false); Eval(9955, o is Delegate, false); Eval(9956, o is Delegate[], false); Eval(9957, o is MulticastDelegate, false); Eval(9958, o is MulticastDelegate[], false); Eval(9959, o is IEmpty, false); Eval(9960, o is IEmpty[], false); Eval(9961, o is INotEmpty, false); Eval(9962, o is INotEmpty[], false); Eval(9963, o is IEmptyGen<int>, false); Eval(9964, o is IEmptyGen<int>[], false); Eval(9965, o is INotEmptyGen<int>, false); Eval(9966, o is INotEmptyGen<int>[], false); Eval(9967, o is SimpleDelegate, false); Eval(9968, o is SimpleDelegate[], false); Eval(9969, o is GenericDelegate<int>, false); Eval(9970, o is GenericDelegate<int>[], false); Eval(9971, o is EmptyClass, false); Eval(9972, o is EmptyClass[], false); Eval(9973, o is NotEmptyClass, false); Eval(9974, o is NotEmptyClass[], false); Eval(9975, o is EmptyClassGen<int>, false); Eval(9976, o is EmptyClassGen<int>[], false); Eval(9977, o is NotEmptyClassGen<Guid>, false); Eval(9978, o is NotEmptyClassGen<Guid>[], false); Eval(9979, o is NotEmptyClassConstrainedGen<object>, false); Eval(9980, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9981, o is NestedClass, false); Eval(9982, o is NestedClass[], false); Eval(9983, o is NestedClassGen<Decimal>, false); Eval(9984, o is NestedClassGen<Decimal>[], false); Eval(9985, o is ImplementOneInterfaceC, false); Eval(9986, o is ImplementOneInterfaceC[], false); Eval(9987, o is ImplementTwoInterfaceC, false); Eval(9988, o is ImplementTwoInterfaceC[], false); Eval(9989, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9990, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9991, o is ImplementTwoInterfaceGenC<int>, false); Eval(9992, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9993, o is ImplementAllInterfaceC<int>, false); Eval(9994, o is ImplementAllInterfaceC<int>[], false); Eval(9995, o is SealedClass, false); Eval(9996, o is SealedClass[], false); } } // end of test case 0017 private static void TestCase0018() { { ByteE v = default(ByteE); ValueType o = v; Eval(9997, o is EmptyStruct, false); Eval(9998, o is EmptyStruct[], false); Eval(9999, o is EmptyStruct?, false); Eval(10000, o is EmptyStruct?[], false); Eval(10001, o is NotEmptyStruct, false); Eval(10002, o is NotEmptyStruct[], false); Eval(10003, o is NotEmptyStruct?, false); Eval(10004, o is NotEmptyStruct?[], false); Eval(10005, o is EmptyStructGen<int>, false); Eval(10006, o is EmptyStructGen<int>[], false); Eval(10007, o is EmptyStructGen<int>?, false); Eval(10008, o is EmptyStructGen<int>?[], false); Eval(10009, o is NotEmptyStructGen<Guid>, false); Eval(10010, o is NotEmptyStructGen<Guid>[], false); Eval(10011, o is NotEmptyStructGen<Guid>?, false); Eval(10012, o is NotEmptyStructGen<Guid>?[], false); Eval(10013, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10014, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10015, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10016, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10017, o is NestedStruct, false); Eval(10018, o is NestedStruct[], false); Eval(10019, o is NestedStruct?, false); Eval(10020, o is NestedStruct?[], false); Eval(10021, o is NestedStructGen<Decimal>, false); Eval(10022, o is NestedStructGen<Decimal>[], false); Eval(10023, o is NestedStructGen<Decimal>?, false); Eval(10024, o is NestedStructGen<Decimal>?[], false); Eval(10025, o is ExplicitFieldOffsetStruct, false); Eval(10026, o is ExplicitFieldOffsetStruct[], false); Eval(10027, o is ExplicitFieldOffsetStruct?, false); Eval(10028, o is ExplicitFieldOffsetStruct?[], false); Eval(10037, o is MarshalAsStruct, false); Eval(10038, o is MarshalAsStruct[], false); Eval(10039, o is MarshalAsStruct?, false); Eval(10040, o is MarshalAsStruct?[], false); Eval(10041, o is ImplementOneInterface, false); Eval(10042, o is ImplementOneInterface[], false); Eval(10043, o is ImplementOneInterface?, false); Eval(10044, o is ImplementOneInterface?[], false); Eval(10045, o is ImplementTwoInterface, false); Eval(10046, o is ImplementTwoInterface[], false); Eval(10047, o is ImplementTwoInterface?, false); Eval(10048, o is ImplementTwoInterface?[], false); Eval(10049, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10050, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10051, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10052, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10053, o is ImplementTwoInterfaceGen<int>, false); Eval(10054, o is ImplementTwoInterfaceGen<int>[], false); Eval(10055, o is ImplementTwoInterfaceGen<int>?, false); Eval(10056, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10057, o is ImplementAllInterface<int>, false); Eval(10058, o is ImplementAllInterface<int>[], false); Eval(10059, o is ImplementAllInterface<int>?, false); Eval(10060, o is ImplementAllInterface<int>?[], false); Eval(10061, o is IntE, false); Eval(10062, o is IntE[], false); Eval(10063, o is IntE?, false); Eval(10064, o is IntE?[], false); Eval(10065, o is ByteE, true); Eval(10066, o is ByteE[], false); Eval(10067, o is ByteE?, true); Eval(10068, o is ByteE?[], false); Eval(10069, o is LongE, false); Eval(10070, o is LongE[], false); Eval(10071, o is LongE?, false); Eval(10072, o is LongE?[], false); Eval(10073, o is char, false); Eval(10074, o is char[], false); Eval(10075, o is char?, false); Eval(10076, o is char?[], false); Eval(10077, o is bool, false); Eval(10078, o is bool[], false); Eval(10079, o is bool?, false); Eval(10080, o is bool?[], false); Eval(10081, o is byte, false); Eval(10082, o is byte[], false); Eval(10083, o is byte?, false); Eval(10084, o is byte?[], false); Eval(10085, o is sbyte, false); Eval(10086, o is sbyte[], false); Eval(10087, o is sbyte?, false); Eval(10088, o is sbyte?[], false); Eval(10089, o is short, false); Eval(10090, o is short[], false); Eval(10091, o is short?, false); Eval(10092, o is short?[], false); Eval(10093, o is ushort, false); Eval(10094, o is ushort[], false); Eval(10095, o is ushort?, false); Eval(10096, o is ushort?[], false); Eval(10097, o is int, false); Eval(10098, o is int[], false); Eval(10099, o is int?, false); Eval(10100, o is int?[], false); Eval(10101, o is uint, false); Eval(10102, o is uint[], false); Eval(10103, o is uint?, false); Eval(10104, o is uint?[], false); Eval(10105, o is long, false); Eval(10106, o is long[], false); Eval(10107, o is long?, false); Eval(10108, o is long?[], false); Eval(10109, o is ulong, false); Eval(10110, o is ulong[], false); Eval(10111, o is ulong?, false); Eval(10112, o is ulong?[], false); Eval(10113, o is float, false); Eval(10114, o is float[], false); Eval(10115, o is float?, false); Eval(10116, o is float?[], false); Eval(10117, o is double, false); Eval(10118, o is double[], false); Eval(10119, o is double?, false); Eval(10120, o is double?[], false); Eval(10121, o is decimal, false); Eval(10122, o is decimal[], false); Eval(10123, o is decimal?, false); Eval(10124, o is decimal?[], false); Eval(10125, o is IntPtr, false); Eval(10126, o is IntPtr[], false); Eval(10127, o is IntPtr?, false); Eval(10128, o is IntPtr?[], false); Eval(10129, o is UIntPtr, false); Eval(10130, o is UIntPtr[], false); Eval(10131, o is UIntPtr?, false); Eval(10132, o is UIntPtr?[], false); Eval(10133, o is Guid, false); Eval(10134, o is Guid[], false); Eval(10135, o is Guid?, false); Eval(10136, o is Guid?[], false); Eval(10137, o is GCHandle, false); Eval(10138, o is GCHandle[], false); Eval(10139, o is GCHandle?, false); Eval(10140, o is GCHandle?[], false); Eval(10141, o is object, true); Eval(10142, o is object[], false); Eval(10143, o is string, false); Eval(10144, o is string[], false); Eval(10145, o is ValueType, true); Eval(10146, o is ValueType[], false); Eval(10147, o is Array, false); Eval(10148, o is Array[], false); Eval(10149, o is Enum, true); Eval(10150, o is Enum[], false); Eval(10151, o is Delegate, false); Eval(10152, o is Delegate[], false); Eval(10153, o is MulticastDelegate, false); Eval(10154, o is MulticastDelegate[], false); Eval(10155, o is IEmpty, false); Eval(10156, o is IEmpty[], false); Eval(10157, o is INotEmpty, false); Eval(10158, o is INotEmpty[], false); Eval(10159, o is IEmptyGen<int>, false); Eval(10160, o is IEmptyGen<int>[], false); Eval(10161, o is INotEmptyGen<int>, false); Eval(10162, o is INotEmptyGen<int>[], false); Eval(10163, o is SimpleDelegate, false); Eval(10164, o is SimpleDelegate[], false); Eval(10165, o is GenericDelegate<int>, false); Eval(10166, o is GenericDelegate<int>[], false); Eval(10167, o is EmptyClass, false); Eval(10168, o is EmptyClass[], false); Eval(10169, o is NotEmptyClass, false); Eval(10170, o is NotEmptyClass[], false); Eval(10171, o is EmptyClassGen<int>, false); Eval(10172, o is EmptyClassGen<int>[], false); Eval(10173, o is NotEmptyClassGen<Guid>, false); Eval(10174, o is NotEmptyClassGen<Guid>[], false); Eval(10175, o is NotEmptyClassConstrainedGen<object>, false); Eval(10176, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10177, o is NestedClass, false); Eval(10178, o is NestedClass[], false); Eval(10179, o is NestedClassGen<Decimal>, false); Eval(10180, o is NestedClassGen<Decimal>[], false); Eval(10181, o is ImplementOneInterfaceC, false); Eval(10182, o is ImplementOneInterfaceC[], false); Eval(10183, o is ImplementTwoInterfaceC, false); Eval(10184, o is ImplementTwoInterfaceC[], false); Eval(10185, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10186, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10187, o is ImplementTwoInterfaceGenC<int>, false); Eval(10188, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10189, o is ImplementAllInterfaceC<int>, false); Eval(10190, o is ImplementAllInterfaceC<int>[], false); Eval(10191, o is SealedClass, false); Eval(10192, o is SealedClass[], false); } { ByteE? v = default(ByteE); ValueType o = v; Eval(10193, o is EmptyStruct, false); Eval(10194, o is EmptyStruct[], false); Eval(10195, o is EmptyStruct?, false); Eval(10196, o is EmptyStruct?[], false); Eval(10197, o is NotEmptyStruct, false); Eval(10198, o is NotEmptyStruct[], false); Eval(10199, o is NotEmptyStruct?, false); Eval(10200, o is NotEmptyStruct?[], false); Eval(10201, o is EmptyStructGen<int>, false); Eval(10202, o is EmptyStructGen<int>[], false); Eval(10203, o is EmptyStructGen<int>?, false); Eval(10204, o is EmptyStructGen<int>?[], false); Eval(10205, o is NotEmptyStructGen<Guid>, false); Eval(10206, o is NotEmptyStructGen<Guid>[], false); Eval(10207, o is NotEmptyStructGen<Guid>?, false); Eval(10208, o is NotEmptyStructGen<Guid>?[], false); Eval(10209, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10210, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10211, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10212, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10213, o is NestedStruct, false); Eval(10214, o is NestedStruct[], false); Eval(10215, o is NestedStruct?, false); Eval(10216, o is NestedStruct?[], false); Eval(10217, o is NestedStructGen<Decimal>, false); Eval(10218, o is NestedStructGen<Decimal>[], false); Eval(10219, o is NestedStructGen<Decimal>?, false); Eval(10220, o is NestedStructGen<Decimal>?[], false); Eval(10221, o is ExplicitFieldOffsetStruct, false); Eval(10222, o is ExplicitFieldOffsetStruct[], false); Eval(10223, o is ExplicitFieldOffsetStruct?, false); Eval(10224, o is ExplicitFieldOffsetStruct?[], false); Eval(10233, o is MarshalAsStruct, false); Eval(10234, o is MarshalAsStruct[], false); Eval(10235, o is MarshalAsStruct?, false); Eval(10236, o is MarshalAsStruct?[], false); Eval(10237, o is ImplementOneInterface, false); Eval(10238, o is ImplementOneInterface[], false); Eval(10239, o is ImplementOneInterface?, false); Eval(10240, o is ImplementOneInterface?[], false); Eval(10241, o is ImplementTwoInterface, false); Eval(10242, o is ImplementTwoInterface[], false); Eval(10243, o is ImplementTwoInterface?, false); Eval(10244, o is ImplementTwoInterface?[], false); Eval(10245, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10246, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10247, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10248, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10249, o is ImplementTwoInterfaceGen<int>, false); Eval(10250, o is ImplementTwoInterfaceGen<int>[], false); Eval(10251, o is ImplementTwoInterfaceGen<int>?, false); Eval(10252, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10253, o is ImplementAllInterface<int>, false); Eval(10254, o is ImplementAllInterface<int>[], false); Eval(10255, o is ImplementAllInterface<int>?, false); Eval(10256, o is ImplementAllInterface<int>?[], false); Eval(10257, o is IntE, false); Eval(10258, o is IntE[], false); Eval(10259, o is IntE?, false); Eval(10260, o is IntE?[], false); Eval(10261, o is ByteE, true); Eval(10262, o is ByteE[], false); Eval(10263, o is ByteE?, true); Eval(10264, o is ByteE?[], false); Eval(10265, o is LongE, false); Eval(10266, o is LongE[], false); Eval(10267, o is LongE?, false); Eval(10268, o is LongE?[], false); Eval(10269, o is char, false); Eval(10270, o is char[], false); Eval(10271, o is char?, false); Eval(10272, o is char?[], false); Eval(10273, o is bool, false); Eval(10274, o is bool[], false); Eval(10275, o is bool?, false); Eval(10276, o is bool?[], false); Eval(10277, o is byte, false); Eval(10278, o is byte[], false); Eval(10279, o is byte?, false); Eval(10280, o is byte?[], false); Eval(10281, o is sbyte, false); Eval(10282, o is sbyte[], false); Eval(10283, o is sbyte?, false); Eval(10284, o is sbyte?[], false); Eval(10285, o is short, false); Eval(10286, o is short[], false); Eval(10287, o is short?, false); Eval(10288, o is short?[], false); Eval(10289, o is ushort, false); Eval(10290, o is ushort[], false); Eval(10291, o is ushort?, false); Eval(10292, o is ushort?[], false); Eval(10293, o is int, false); Eval(10294, o is int[], false); Eval(10295, o is int?, false); Eval(10296, o is int?[], false); Eval(10297, o is uint, false); Eval(10298, o is uint[], false); Eval(10299, o is uint?, false); Eval(10300, o is uint?[], false); Eval(10301, o is long, false); Eval(10302, o is long[], false); Eval(10303, o is long?, false); Eval(10304, o is long?[], false); Eval(10305, o is ulong, false); Eval(10306, o is ulong[], false); Eval(10307, o is ulong?, false); Eval(10308, o is ulong?[], false); Eval(10309, o is float, false); Eval(10310, o is float[], false); Eval(10311, o is float?, false); Eval(10312, o is float?[], false); Eval(10313, o is double, false); Eval(10314, o is double[], false); Eval(10315, o is double?, false); Eval(10316, o is double?[], false); Eval(10317, o is decimal, false); Eval(10318, o is decimal[], false); Eval(10319, o is decimal?, false); Eval(10320, o is decimal?[], false); Eval(10321, o is IntPtr, false); Eval(10322, o is IntPtr[], false); Eval(10323, o is IntPtr?, false); Eval(10324, o is IntPtr?[], false); Eval(10325, o is UIntPtr, false); Eval(10326, o is UIntPtr[], false); Eval(10327, o is UIntPtr?, false); Eval(10328, o is UIntPtr?[], false); Eval(10329, o is Guid, false); Eval(10330, o is Guid[], false); Eval(10331, o is Guid?, false); Eval(10332, o is Guid?[], false); Eval(10333, o is GCHandle, false); Eval(10334, o is GCHandle[], false); Eval(10335, o is GCHandle?, false); Eval(10336, o is GCHandle?[], false); Eval(10337, o is object, true); Eval(10338, o is object[], false); Eval(10339, o is string, false); Eval(10340, o is string[], false); Eval(10341, o is ValueType, true); Eval(10342, o is ValueType[], false); Eval(10343, o is Array, false); Eval(10344, o is Array[], false); Eval(10345, o is Enum, true); Eval(10346, o is Enum[], false); Eval(10347, o is Delegate, false); Eval(10348, o is Delegate[], false); Eval(10349, o is MulticastDelegate, false); Eval(10350, o is MulticastDelegate[], false); Eval(10351, o is IEmpty, false); Eval(10352, o is IEmpty[], false); Eval(10353, o is INotEmpty, false); Eval(10354, o is INotEmpty[], false); Eval(10355, o is IEmptyGen<int>, false); Eval(10356, o is IEmptyGen<int>[], false); Eval(10357, o is INotEmptyGen<int>, false); Eval(10358, o is INotEmptyGen<int>[], false); Eval(10359, o is SimpleDelegate, false); Eval(10360, o is SimpleDelegate[], false); Eval(10361, o is GenericDelegate<int>, false); Eval(10362, o is GenericDelegate<int>[], false); Eval(10363, o is EmptyClass, false); Eval(10364, o is EmptyClass[], false); Eval(10365, o is NotEmptyClass, false); Eval(10366, o is NotEmptyClass[], false); Eval(10367, o is EmptyClassGen<int>, false); Eval(10368, o is EmptyClassGen<int>[], false); Eval(10369, o is NotEmptyClassGen<Guid>, false); Eval(10370, o is NotEmptyClassGen<Guid>[], false); Eval(10371, o is NotEmptyClassConstrainedGen<object>, false); Eval(10372, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10373, o is NestedClass, false); Eval(10374, o is NestedClass[], false); Eval(10375, o is NestedClassGen<Decimal>, false); Eval(10376, o is NestedClassGen<Decimal>[], false); Eval(10377, o is ImplementOneInterfaceC, false); Eval(10378, o is ImplementOneInterfaceC[], false); Eval(10379, o is ImplementTwoInterfaceC, false); Eval(10380, o is ImplementTwoInterfaceC[], false); Eval(10381, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10382, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10383, o is ImplementTwoInterfaceGenC<int>, false); Eval(10384, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10385, o is ImplementAllInterfaceC<int>, false); Eval(10386, o is ImplementAllInterfaceC<int>[], false); Eval(10387, o is SealedClass, false); Eval(10388, o is SealedClass[], false); } { ByteE? v = default(ByteE?); ValueType o = v; Eval(10389, o is EmptyStruct, false); Eval(10390, o is EmptyStruct[], false); Eval(10391, o is EmptyStruct?, false); Eval(10392, o is EmptyStruct?[], false); Eval(10393, o is NotEmptyStruct, false); Eval(10394, o is NotEmptyStruct[], false); Eval(10395, o is NotEmptyStruct?, false); Eval(10396, o is NotEmptyStruct?[], false); Eval(10397, o is EmptyStructGen<int>, false); Eval(10398, o is EmptyStructGen<int>[], false); Eval(10399, o is EmptyStructGen<int>?, false); Eval(10400, o is EmptyStructGen<int>?[], false); Eval(10401, o is NotEmptyStructGen<Guid>, false); Eval(10402, o is NotEmptyStructGen<Guid>[], false); Eval(10403, o is NotEmptyStructGen<Guid>?, false); Eval(10404, o is NotEmptyStructGen<Guid>?[], false); Eval(10405, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10406, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10407, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10408, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10409, o is NestedStruct, false); Eval(10410, o is NestedStruct[], false); Eval(10411, o is NestedStruct?, false); Eval(10412, o is NestedStruct?[], false); Eval(10413, o is NestedStructGen<Decimal>, false); Eval(10414, o is NestedStructGen<Decimal>[], false); Eval(10415, o is NestedStructGen<Decimal>?, false); Eval(10416, o is NestedStructGen<Decimal>?[], false); Eval(10417, o is ExplicitFieldOffsetStruct, false); Eval(10418, o is ExplicitFieldOffsetStruct[], false); Eval(10419, o is ExplicitFieldOffsetStruct?, false); Eval(10420, o is ExplicitFieldOffsetStruct?[], false); Eval(10429, o is MarshalAsStruct, false); Eval(10430, o is MarshalAsStruct[], false); Eval(10431, o is MarshalAsStruct?, false); Eval(10432, o is MarshalAsStruct?[], false); Eval(10433, o is ImplementOneInterface, false); Eval(10434, o is ImplementOneInterface[], false); Eval(10435, o is ImplementOneInterface?, false); Eval(10436, o is ImplementOneInterface?[], false); Eval(10437, o is ImplementTwoInterface, false); Eval(10438, o is ImplementTwoInterface[], false); Eval(10439, o is ImplementTwoInterface?, false); Eval(10440, o is ImplementTwoInterface?[], false); Eval(10441, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10442, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10443, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10444, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10445, o is ImplementTwoInterfaceGen<int>, false); Eval(10446, o is ImplementTwoInterfaceGen<int>[], false); Eval(10447, o is ImplementTwoInterfaceGen<int>?, false); Eval(10448, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10449, o is ImplementAllInterface<int>, false); Eval(10450, o is ImplementAllInterface<int>[], false); Eval(10451, o is ImplementAllInterface<int>?, false); Eval(10452, o is ImplementAllInterface<int>?[], false); Eval(10453, o is IntE, false); Eval(10454, o is IntE[], false); Eval(10455, o is IntE?, false); Eval(10456, o is IntE?[], false); Eval(10457, o is ByteE, false); Eval(10458, o is ByteE[], false); Eval(10459, o is ByteE?, false); Eval(10460, o is ByteE?[], false); Eval(10461, o is LongE, false); Eval(10462, o is LongE[], false); Eval(10463, o is LongE?, false); Eval(10464, o is LongE?[], false); Eval(10465, o is char, false); Eval(10466, o is char[], false); Eval(10467, o is char?, false); Eval(10468, o is char?[], false); Eval(10469, o is bool, false); Eval(10470, o is bool[], false); Eval(10471, o is bool?, false); Eval(10472, o is bool?[], false); Eval(10473, o is byte, false); Eval(10474, o is byte[], false); Eval(10475, o is byte?, false); Eval(10476, o is byte?[], false); Eval(10477, o is sbyte, false); Eval(10478, o is sbyte[], false); Eval(10479, o is sbyte?, false); Eval(10480, o is sbyte?[], false); Eval(10481, o is short, false); Eval(10482, o is short[], false); Eval(10483, o is short?, false); Eval(10484, o is short?[], false); Eval(10485, o is ushort, false); Eval(10486, o is ushort[], false); Eval(10487, o is ushort?, false); Eval(10488, o is ushort?[], false); Eval(10489, o is int, false); Eval(10490, o is int[], false); Eval(10491, o is int?, false); Eval(10492, o is int?[], false); Eval(10493, o is uint, false); Eval(10494, o is uint[], false); Eval(10495, o is uint?, false); Eval(10496, o is uint?[], false); Eval(10497, o is long, false); Eval(10498, o is long[], false); Eval(10499, o is long?, false); Eval(10500, o is long?[], false); Eval(10501, o is ulong, false); Eval(10502, o is ulong[], false); Eval(10503, o is ulong?, false); Eval(10504, o is ulong?[], false); Eval(10505, o is float, false); Eval(10506, o is float[], false); Eval(10507, o is float?, false); Eval(10508, o is float?[], false); Eval(10509, o is double, false); Eval(10510, o is double[], false); Eval(10511, o is double?, false); Eval(10512, o is double?[], false); Eval(10513, o is decimal, false); Eval(10514, o is decimal[], false); Eval(10515, o is decimal?, false); Eval(10516, o is decimal?[], false); Eval(10517, o is IntPtr, false); Eval(10518, o is IntPtr[], false); Eval(10519, o is IntPtr?, false); Eval(10520, o is IntPtr?[], false); Eval(10521, o is UIntPtr, false); Eval(10522, o is UIntPtr[], false); Eval(10523, o is UIntPtr?, false); Eval(10524, o is UIntPtr?[], false); Eval(10525, o is Guid, false); Eval(10526, o is Guid[], false); Eval(10527, o is Guid?, false); Eval(10528, o is Guid?[], false); Eval(10529, o is GCHandle, false); Eval(10530, o is GCHandle[], false); Eval(10531, o is GCHandle?, false); Eval(10532, o is GCHandle?[], false); Eval(10533, o is object, false); Eval(10534, o is object[], false); Eval(10535, o is string, false); Eval(10536, o is string[], false); Eval(10537, o is ValueType, false); Eval(10538, o is ValueType[], false); Eval(10539, o is Array, false); Eval(10540, o is Array[], false); Eval(10541, o is Enum, false); Eval(10542, o is Enum[], false); Eval(10543, o is Delegate, false); Eval(10544, o is Delegate[], false); Eval(10545, o is MulticastDelegate, false); Eval(10546, o is MulticastDelegate[], false); Eval(10547, o is IEmpty, false); Eval(10548, o is IEmpty[], false); Eval(10549, o is INotEmpty, false); Eval(10550, o is INotEmpty[], false); Eval(10551, o is IEmptyGen<int>, false); Eval(10552, o is IEmptyGen<int>[], false); Eval(10553, o is INotEmptyGen<int>, false); Eval(10554, o is INotEmptyGen<int>[], false); Eval(10555, o is SimpleDelegate, false); Eval(10556, o is SimpleDelegate[], false); Eval(10557, o is GenericDelegate<int>, false); Eval(10558, o is GenericDelegate<int>[], false); Eval(10559, o is EmptyClass, false); Eval(10560, o is EmptyClass[], false); Eval(10561, o is NotEmptyClass, false); Eval(10562, o is NotEmptyClass[], false); Eval(10563, o is EmptyClassGen<int>, false); Eval(10564, o is EmptyClassGen<int>[], false); Eval(10565, o is NotEmptyClassGen<Guid>, false); Eval(10566, o is NotEmptyClassGen<Guid>[], false); Eval(10567, o is NotEmptyClassConstrainedGen<object>, false); Eval(10568, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10569, o is NestedClass, false); Eval(10570, o is NestedClass[], false); Eval(10571, o is NestedClassGen<Decimal>, false); Eval(10572, o is NestedClassGen<Decimal>[], false); Eval(10573, o is ImplementOneInterfaceC, false); Eval(10574, o is ImplementOneInterfaceC[], false); Eval(10575, o is ImplementTwoInterfaceC, false); Eval(10576, o is ImplementTwoInterfaceC[], false); Eval(10577, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10578, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10579, o is ImplementTwoInterfaceGenC<int>, false); Eval(10580, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10581, o is ImplementAllInterfaceC<int>, false); Eval(10582, o is ImplementAllInterfaceC<int>[], false); Eval(10583, o is SealedClass, false); Eval(10584, o is SealedClass[], false); } } // end of test case 0018 private static void TestCase0019() { { LongE v = default(LongE); ValueType o = v; Eval(10585, o is EmptyStruct, false); Eval(10586, o is EmptyStruct[], false); Eval(10587, o is EmptyStruct?, false); Eval(10588, o is EmptyStruct?[], false); Eval(10589, o is NotEmptyStruct, false); Eval(10590, o is NotEmptyStruct[], false); Eval(10591, o is NotEmptyStruct?, false); Eval(10592, o is NotEmptyStruct?[], false); Eval(10593, o is EmptyStructGen<int>, false); Eval(10594, o is EmptyStructGen<int>[], false); Eval(10595, o is EmptyStructGen<int>?, false); Eval(10596, o is EmptyStructGen<int>?[], false); Eval(10597, o is NotEmptyStructGen<Guid>, false); Eval(10598, o is NotEmptyStructGen<Guid>[], false); Eval(10599, o is NotEmptyStructGen<Guid>?, false); Eval(10600, o is NotEmptyStructGen<Guid>?[], false); Eval(10601, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10602, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10603, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10604, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10605, o is NestedStruct, false); Eval(10606, o is NestedStruct[], false); Eval(10607, o is NestedStruct?, false); Eval(10608, o is NestedStruct?[], false); Eval(10609, o is NestedStructGen<Decimal>, false); Eval(10610, o is NestedStructGen<Decimal>[], false); Eval(10611, o is NestedStructGen<Decimal>?, false); Eval(10612, o is NestedStructGen<Decimal>?[], false); Eval(10613, o is ExplicitFieldOffsetStruct, false); Eval(10614, o is ExplicitFieldOffsetStruct[], false); Eval(10615, o is ExplicitFieldOffsetStruct?, false); Eval(10616, o is ExplicitFieldOffsetStruct?[], false); Eval(10625, o is MarshalAsStruct, false); Eval(10626, o is MarshalAsStruct[], false); Eval(10627, o is MarshalAsStruct?, false); Eval(10628, o is MarshalAsStruct?[], false); Eval(10629, o is ImplementOneInterface, false); Eval(10630, o is ImplementOneInterface[], false); Eval(10631, o is ImplementOneInterface?, false); Eval(10632, o is ImplementOneInterface?[], false); Eval(10633, o is ImplementTwoInterface, false); Eval(10634, o is ImplementTwoInterface[], false); Eval(10635, o is ImplementTwoInterface?, false); Eval(10636, o is ImplementTwoInterface?[], false); Eval(10637, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10638, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10639, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10640, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10641, o is ImplementTwoInterfaceGen<int>, false); Eval(10642, o is ImplementTwoInterfaceGen<int>[], false); Eval(10643, o is ImplementTwoInterfaceGen<int>?, false); Eval(10644, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10645, o is ImplementAllInterface<int>, false); Eval(10646, o is ImplementAllInterface<int>[], false); Eval(10647, o is ImplementAllInterface<int>?, false); Eval(10648, o is ImplementAllInterface<int>?[], false); Eval(10649, o is IntE, false); Eval(10650, o is IntE[], false); Eval(10651, o is IntE?, false); Eval(10652, o is IntE?[], false); Eval(10653, o is ByteE, false); Eval(10654, o is ByteE[], false); Eval(10655, o is ByteE?, false); Eval(10656, o is ByteE?[], false); Eval(10657, o is LongE, true); Eval(10658, o is LongE[], false); Eval(10659, o is LongE?, true); Eval(10660, o is LongE?[], false); Eval(10661, o is char, false); Eval(10662, o is char[], false); Eval(10663, o is char?, false); Eval(10664, o is char?[], false); Eval(10665, o is bool, false); Eval(10666, o is bool[], false); Eval(10667, o is bool?, false); Eval(10668, o is bool?[], false); Eval(10669, o is byte, false); Eval(10670, o is byte[], false); Eval(10671, o is byte?, false); Eval(10672, o is byte?[], false); Eval(10673, o is sbyte, false); Eval(10674, o is sbyte[], false); Eval(10675, o is sbyte?, false); Eval(10676, o is sbyte?[], false); Eval(10677, o is short, false); Eval(10678, o is short[], false); Eval(10679, o is short?, false); Eval(10680, o is short?[], false); Eval(10681, o is ushort, false); Eval(10682, o is ushort[], false); Eval(10683, o is ushort?, false); Eval(10684, o is ushort?[], false); Eval(10685, o is int, false); Eval(10686, o is int[], false); Eval(10687, o is int?, false); Eval(10688, o is int?[], false); Eval(10689, o is uint, false); Eval(10690, o is uint[], false); Eval(10691, o is uint?, false); Eval(10692, o is uint?[], false); Eval(10693, o is long, false); Eval(10694, o is long[], false); Eval(10695, o is long?, false); Eval(10696, o is long?[], false); Eval(10697, o is ulong, false); Eval(10698, o is ulong[], false); Eval(10699, o is ulong?, false); Eval(10700, o is ulong?[], false); Eval(10701, o is float, false); Eval(10702, o is float[], false); Eval(10703, o is float?, false); Eval(10704, o is float?[], false); Eval(10705, o is double, false); Eval(10706, o is double[], false); Eval(10707, o is double?, false); Eval(10708, o is double?[], false); Eval(10709, o is decimal, false); Eval(10710, o is decimal[], false); Eval(10711, o is decimal?, false); Eval(10712, o is decimal?[], false); Eval(10713, o is IntPtr, false); Eval(10714, o is IntPtr[], false); Eval(10715, o is IntPtr?, false); Eval(10716, o is IntPtr?[], false); Eval(10717, o is UIntPtr, false); Eval(10718, o is UIntPtr[], false); Eval(10719, o is UIntPtr?, false); Eval(10720, o is UIntPtr?[], false); Eval(10721, o is Guid, false); Eval(10722, o is Guid[], false); Eval(10723, o is Guid?, false); Eval(10724, o is Guid?[], false); Eval(10725, o is GCHandle, false); Eval(10726, o is GCHandle[], false); Eval(10727, o is GCHandle?, false); Eval(10728, o is GCHandle?[], false); Eval(10729, o is object, true); Eval(10730, o is object[], false); Eval(10731, o is string, false); Eval(10732, o is string[], false); Eval(10733, o is ValueType, true); Eval(10734, o is ValueType[], false); Eval(10735, o is Array, false); Eval(10736, o is Array[], false); Eval(10737, o is Enum, true); Eval(10738, o is Enum[], false); Eval(10739, o is Delegate, false); Eval(10740, o is Delegate[], false); Eval(10741, o is MulticastDelegate, false); Eval(10742, o is MulticastDelegate[], false); Eval(10743, o is IEmpty, false); Eval(10744, o is IEmpty[], false); Eval(10745, o is INotEmpty, false); Eval(10746, o is INotEmpty[], false); Eval(10747, o is IEmptyGen<int>, false); Eval(10748, o is IEmptyGen<int>[], false); Eval(10749, o is INotEmptyGen<int>, false); Eval(10750, o is INotEmptyGen<int>[], false); Eval(10751, o is SimpleDelegate, false); Eval(10752, o is SimpleDelegate[], false); Eval(10753, o is GenericDelegate<int>, false); Eval(10754, o is GenericDelegate<int>[], false); Eval(10755, o is EmptyClass, false); Eval(10756, o is EmptyClass[], false); Eval(10757, o is NotEmptyClass, false); Eval(10758, o is NotEmptyClass[], false); Eval(10759, o is EmptyClassGen<int>, false); Eval(10760, o is EmptyClassGen<int>[], false); Eval(10761, o is NotEmptyClassGen<Guid>, false); Eval(10762, o is NotEmptyClassGen<Guid>[], false); Eval(10763, o is NotEmptyClassConstrainedGen<object>, false); Eval(10764, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10765, o is NestedClass, false); Eval(10766, o is NestedClass[], false); Eval(10767, o is NestedClassGen<Decimal>, false); Eval(10768, o is NestedClassGen<Decimal>[], false); Eval(10769, o is ImplementOneInterfaceC, false); Eval(10770, o is ImplementOneInterfaceC[], false); Eval(10771, o is ImplementTwoInterfaceC, false); Eval(10772, o is ImplementTwoInterfaceC[], false); Eval(10773, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10774, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10775, o is ImplementTwoInterfaceGenC<int>, false); Eval(10776, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10777, o is ImplementAllInterfaceC<int>, false); Eval(10778, o is ImplementAllInterfaceC<int>[], false); Eval(10779, o is SealedClass, false); Eval(10780, o is SealedClass[], false); } { LongE? v = default(LongE); ValueType o = v; Eval(10781, o is EmptyStruct, false); Eval(10782, o is EmptyStruct[], false); Eval(10783, o is EmptyStruct?, false); Eval(10784, o is EmptyStruct?[], false); Eval(10785, o is NotEmptyStruct, false); Eval(10786, o is NotEmptyStruct[], false); Eval(10787, o is NotEmptyStruct?, false); Eval(10788, o is NotEmptyStruct?[], false); Eval(10789, o is EmptyStructGen<int>, false); Eval(10790, o is EmptyStructGen<int>[], false); Eval(10791, o is EmptyStructGen<int>?, false); Eval(10792, o is EmptyStructGen<int>?[], false); Eval(10793, o is NotEmptyStructGen<Guid>, false); Eval(10794, o is NotEmptyStructGen<Guid>[], false); Eval(10795, o is NotEmptyStructGen<Guid>?, false); Eval(10796, o is NotEmptyStructGen<Guid>?[], false); Eval(10797, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10798, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10799, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10800, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10801, o is NestedStruct, false); Eval(10802, o is NestedStruct[], false); Eval(10803, o is NestedStruct?, false); Eval(10804, o is NestedStruct?[], false); Eval(10805, o is NestedStructGen<Decimal>, false); Eval(10806, o is NestedStructGen<Decimal>[], false); Eval(10807, o is NestedStructGen<Decimal>?, false); Eval(10808, o is NestedStructGen<Decimal>?[], false); Eval(10809, o is ExplicitFieldOffsetStruct, false); Eval(10810, o is ExplicitFieldOffsetStruct[], false); Eval(10811, o is ExplicitFieldOffsetStruct?, false); Eval(10812, o is ExplicitFieldOffsetStruct?[], false); Eval(10821, o is MarshalAsStruct, false); Eval(10822, o is MarshalAsStruct[], false); Eval(10823, o is MarshalAsStruct?, false); Eval(10824, o is MarshalAsStruct?[], false); Eval(10825, o is ImplementOneInterface, false); Eval(10826, o is ImplementOneInterface[], false); Eval(10827, o is ImplementOneInterface?, false); Eval(10828, o is ImplementOneInterface?[], false); Eval(10829, o is ImplementTwoInterface, false); Eval(10830, o is ImplementTwoInterface[], false); Eval(10831, o is ImplementTwoInterface?, false); Eval(10832, o is ImplementTwoInterface?[], false); Eval(10833, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10834, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10835, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10836, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10837, o is ImplementTwoInterfaceGen<int>, false); Eval(10838, o is ImplementTwoInterfaceGen<int>[], false); Eval(10839, o is ImplementTwoInterfaceGen<int>?, false); Eval(10840, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10841, o is ImplementAllInterface<int>, false); Eval(10842, o is ImplementAllInterface<int>[], false); Eval(10843, o is ImplementAllInterface<int>?, false); Eval(10844, o is ImplementAllInterface<int>?[], false); Eval(10845, o is IntE, false); Eval(10846, o is IntE[], false); Eval(10847, o is IntE?, false); Eval(10848, o is IntE?[], false); Eval(10849, o is ByteE, false); Eval(10850, o is ByteE[], false); Eval(10851, o is ByteE?, false); Eval(10852, o is ByteE?[], false); Eval(10853, o is LongE, true); Eval(10854, o is LongE[], false); Eval(10855, o is LongE?, true); Eval(10856, o is LongE?[], false); Eval(10857, o is char, false); Eval(10858, o is char[], false); Eval(10859, o is char?, false); Eval(10860, o is char?[], false); Eval(10861, o is bool, false); Eval(10862, o is bool[], false); Eval(10863, o is bool?, false); Eval(10864, o is bool?[], false); Eval(10865, o is byte, false); Eval(10866, o is byte[], false); Eval(10867, o is byte?, false); Eval(10868, o is byte?[], false); Eval(10869, o is sbyte, false); Eval(10870, o is sbyte[], false); Eval(10871, o is sbyte?, false); Eval(10872, o is sbyte?[], false); Eval(10873, o is short, false); Eval(10874, o is short[], false); Eval(10875, o is short?, false); Eval(10876, o is short?[], false); Eval(10877, o is ushort, false); Eval(10878, o is ushort[], false); Eval(10879, o is ushort?, false); Eval(10880, o is ushort?[], false); Eval(10881, o is int, false); Eval(10882, o is int[], false); Eval(10883, o is int?, false); Eval(10884, o is int?[], false); Eval(10885, o is uint, false); Eval(10886, o is uint[], false); Eval(10887, o is uint?, false); Eval(10888, o is uint?[], false); Eval(10889, o is long, false); Eval(10890, o is long[], false); Eval(10891, o is long?, false); Eval(10892, o is long?[], false); Eval(10893, o is ulong, false); Eval(10894, o is ulong[], false); Eval(10895, o is ulong?, false); Eval(10896, o is ulong?[], false); Eval(10897, o is float, false); Eval(10898, o is float[], false); Eval(10899, o is float?, false); Eval(10900, o is float?[], false); Eval(10901, o is double, false); Eval(10902, o is double[], false); Eval(10903, o is double?, false); Eval(10904, o is double?[], false); Eval(10905, o is decimal, false); Eval(10906, o is decimal[], false); Eval(10907, o is decimal?, false); Eval(10908, o is decimal?[], false); Eval(10909, o is IntPtr, false); Eval(10910, o is IntPtr[], false); Eval(10911, o is IntPtr?, false); Eval(10912, o is IntPtr?[], false); Eval(10913, o is UIntPtr, false); Eval(10914, o is UIntPtr[], false); Eval(10915, o is UIntPtr?, false); Eval(10916, o is UIntPtr?[], false); Eval(10917, o is Guid, false); Eval(10918, o is Guid[], false); Eval(10919, o is Guid?, false); Eval(10920, o is Guid?[], false); Eval(10921, o is GCHandle, false); Eval(10922, o is GCHandle[], false); Eval(10923, o is GCHandle?, false); Eval(10924, o is GCHandle?[], false); Eval(10925, o is object, true); Eval(10926, o is object[], false); Eval(10927, o is string, false); Eval(10928, o is string[], false); Eval(10929, o is ValueType, true); Eval(10930, o is ValueType[], false); Eval(10931, o is Array, false); Eval(10932, o is Array[], false); Eval(10933, o is Enum, true); Eval(10934, o is Enum[], false); Eval(10935, o is Delegate, false); Eval(10936, o is Delegate[], false); Eval(10937, o is MulticastDelegate, false); Eval(10938, o is MulticastDelegate[], false); Eval(10939, o is IEmpty, false); Eval(10940, o is IEmpty[], false); Eval(10941, o is INotEmpty, false); Eval(10942, o is INotEmpty[], false); Eval(10943, o is IEmptyGen<int>, false); Eval(10944, o is IEmptyGen<int>[], false); Eval(10945, o is INotEmptyGen<int>, false); Eval(10946, o is INotEmptyGen<int>[], false); Eval(10947, o is SimpleDelegate, false); Eval(10948, o is SimpleDelegate[], false); Eval(10949, o is GenericDelegate<int>, false); Eval(10950, o is GenericDelegate<int>[], false); Eval(10951, o is EmptyClass, false); Eval(10952, o is EmptyClass[], false); Eval(10953, o is NotEmptyClass, false); Eval(10954, o is NotEmptyClass[], false); Eval(10955, o is EmptyClassGen<int>, false); Eval(10956, o is EmptyClassGen<int>[], false); Eval(10957, o is NotEmptyClassGen<Guid>, false); Eval(10958, o is NotEmptyClassGen<Guid>[], false); Eval(10959, o is NotEmptyClassConstrainedGen<object>, false); Eval(10960, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10961, o is NestedClass, false); Eval(10962, o is NestedClass[], false); Eval(10963, o is NestedClassGen<Decimal>, false); Eval(10964, o is NestedClassGen<Decimal>[], false); Eval(10965, o is ImplementOneInterfaceC, false); Eval(10966, o is ImplementOneInterfaceC[], false); Eval(10967, o is ImplementTwoInterfaceC, false); Eval(10968, o is ImplementTwoInterfaceC[], false); Eval(10969, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10970, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10971, o is ImplementTwoInterfaceGenC<int>, false); Eval(10972, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10973, o is ImplementAllInterfaceC<int>, false); Eval(10974, o is ImplementAllInterfaceC<int>[], false); Eval(10975, o is SealedClass, false); Eval(10976, o is SealedClass[], false); } { LongE? v = default(LongE?); ValueType o = v; Eval(10977, o is EmptyStruct, false); Eval(10978, o is EmptyStruct[], false); Eval(10979, o is EmptyStruct?, false); Eval(10980, o is EmptyStruct?[], false); Eval(10981, o is NotEmptyStruct, false); Eval(10982, o is NotEmptyStruct[], false); Eval(10983, o is NotEmptyStruct?, false); Eval(10984, o is NotEmptyStruct?[], false); Eval(10985, o is EmptyStructGen<int>, false); Eval(10986, o is EmptyStructGen<int>[], false); Eval(10987, o is EmptyStructGen<int>?, false); Eval(10988, o is EmptyStructGen<int>?[], false); Eval(10989, o is NotEmptyStructGen<Guid>, false); Eval(10990, o is NotEmptyStructGen<Guid>[], false); Eval(10991, o is NotEmptyStructGen<Guid>?, false); Eval(10992, o is NotEmptyStructGen<Guid>?[], false); Eval(10993, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10994, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10995, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10996, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10997, o is NestedStruct, false); Eval(10998, o is NestedStruct[], false); Eval(10999, o is NestedStruct?, false); Eval(11000, o is NestedStruct?[], false); Eval(11001, o is NestedStructGen<Decimal>, false); Eval(11002, o is NestedStructGen<Decimal>[], false); Eval(11003, o is NestedStructGen<Decimal>?, false); Eval(11004, o is NestedStructGen<Decimal>?[], false); Eval(11005, o is ExplicitFieldOffsetStruct, false); Eval(11006, o is ExplicitFieldOffsetStruct[], false); Eval(11007, o is ExplicitFieldOffsetStruct?, false); Eval(11008, o is ExplicitFieldOffsetStruct?[], false); Eval(11017, o is MarshalAsStruct, false); Eval(11018, o is MarshalAsStruct[], false); Eval(11019, o is MarshalAsStruct?, false); Eval(11020, o is MarshalAsStruct?[], false); Eval(11021, o is ImplementOneInterface, false); Eval(11022, o is ImplementOneInterface[], false); Eval(11023, o is ImplementOneInterface?, false); Eval(11024, o is ImplementOneInterface?[], false); Eval(11025, o is ImplementTwoInterface, false); Eval(11026, o is ImplementTwoInterface[], false); Eval(11027, o is ImplementTwoInterface?, false); Eval(11028, o is ImplementTwoInterface?[], false); Eval(11029, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11030, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11031, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11032, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11033, o is ImplementTwoInterfaceGen<int>, false); Eval(11034, o is ImplementTwoInterfaceGen<int>[], false); Eval(11035, o is ImplementTwoInterfaceGen<int>?, false); Eval(11036, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11037, o is ImplementAllInterface<int>, false); Eval(11038, o is ImplementAllInterface<int>[], false); Eval(11039, o is ImplementAllInterface<int>?, false); Eval(11040, o is ImplementAllInterface<int>?[], false); Eval(11041, o is IntE, false); Eval(11042, o is IntE[], false); Eval(11043, o is IntE?, false); Eval(11044, o is IntE?[], false); Eval(11045, o is ByteE, false); Eval(11046, o is ByteE[], false); Eval(11047, o is ByteE?, false); Eval(11048, o is ByteE?[], false); Eval(11049, o is LongE, false); Eval(11050, o is LongE[], false); Eval(11051, o is LongE?, false); Eval(11052, o is LongE?[], false); Eval(11053, o is char, false); Eval(11054, o is char[], false); Eval(11055, o is char?, false); Eval(11056, o is char?[], false); Eval(11057, o is bool, false); Eval(11058, o is bool[], false); Eval(11059, o is bool?, false); Eval(11060, o is bool?[], false); Eval(11061, o is byte, false); Eval(11062, o is byte[], false); Eval(11063, o is byte?, false); Eval(11064, o is byte?[], false); Eval(11065, o is sbyte, false); Eval(11066, o is sbyte[], false); Eval(11067, o is sbyte?, false); Eval(11068, o is sbyte?[], false); Eval(11069, o is short, false); Eval(11070, o is short[], false); Eval(11071, o is short?, false); Eval(11072, o is short?[], false); Eval(11073, o is ushort, false); Eval(11074, o is ushort[], false); Eval(11075, o is ushort?, false); Eval(11076, o is ushort?[], false); Eval(11077, o is int, false); Eval(11078, o is int[], false); Eval(11079, o is int?, false); Eval(11080, o is int?[], false); Eval(11081, o is uint, false); Eval(11082, o is uint[], false); Eval(11083, o is uint?, false); Eval(11084, o is uint?[], false); Eval(11085, o is long, false); Eval(11086, o is long[], false); Eval(11087, o is long?, false); Eval(11088, o is long?[], false); Eval(11089, o is ulong, false); Eval(11090, o is ulong[], false); Eval(11091, o is ulong?, false); Eval(11092, o is ulong?[], false); Eval(11093, o is float, false); Eval(11094, o is float[], false); Eval(11095, o is float?, false); Eval(11096, o is float?[], false); Eval(11097, o is double, false); Eval(11098, o is double[], false); Eval(11099, o is double?, false); Eval(11100, o is double?[], false); Eval(11101, o is decimal, false); Eval(11102, o is decimal[], false); Eval(11103, o is decimal?, false); Eval(11104, o is decimal?[], false); Eval(11105, o is IntPtr, false); Eval(11106, o is IntPtr[], false); Eval(11107, o is IntPtr?, false); Eval(11108, o is IntPtr?[], false); Eval(11109, o is UIntPtr, false); Eval(11110, o is UIntPtr[], false); Eval(11111, o is UIntPtr?, false); Eval(11112, o is UIntPtr?[], false); Eval(11113, o is Guid, false); Eval(11114, o is Guid[], false); Eval(11115, o is Guid?, false); Eval(11116, o is Guid?[], false); Eval(11117, o is GCHandle, false); Eval(11118, o is GCHandle[], false); Eval(11119, o is GCHandle?, false); Eval(11120, o is GCHandle?[], false); Eval(11121, o is object, false); Eval(11122, o is object[], false); Eval(11123, o is string, false); Eval(11124, o is string[], false); Eval(11125, o is ValueType, false); Eval(11126, o is ValueType[], false); Eval(11127, o is Array, false); Eval(11128, o is Array[], false); Eval(11129, o is Enum, false); Eval(11130, o is Enum[], false); Eval(11131, o is Delegate, false); Eval(11132, o is Delegate[], false); Eval(11133, o is MulticastDelegate, false); Eval(11134, o is MulticastDelegate[], false); Eval(11135, o is IEmpty, false); Eval(11136, o is IEmpty[], false); Eval(11137, o is INotEmpty, false); Eval(11138, o is INotEmpty[], false); Eval(11139, o is IEmptyGen<int>, false); Eval(11140, o is IEmptyGen<int>[], false); Eval(11141, o is INotEmptyGen<int>, false); Eval(11142, o is INotEmptyGen<int>[], false); Eval(11143, o is SimpleDelegate, false); Eval(11144, o is SimpleDelegate[], false); Eval(11145, o is GenericDelegate<int>, false); Eval(11146, o is GenericDelegate<int>[], false); Eval(11147, o is EmptyClass, false); Eval(11148, o is EmptyClass[], false); Eval(11149, o is NotEmptyClass, false); Eval(11150, o is NotEmptyClass[], false); Eval(11151, o is EmptyClassGen<int>, false); Eval(11152, o is EmptyClassGen<int>[], false); Eval(11153, o is NotEmptyClassGen<Guid>, false); Eval(11154, o is NotEmptyClassGen<Guid>[], false); Eval(11155, o is NotEmptyClassConstrainedGen<object>, false); Eval(11156, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11157, o is NestedClass, false); Eval(11158, o is NestedClass[], false); Eval(11159, o is NestedClassGen<Decimal>, false); Eval(11160, o is NestedClassGen<Decimal>[], false); Eval(11161, o is ImplementOneInterfaceC, false); Eval(11162, o is ImplementOneInterfaceC[], false); Eval(11163, o is ImplementTwoInterfaceC, false); Eval(11164, o is ImplementTwoInterfaceC[], false); Eval(11165, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11166, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11167, o is ImplementTwoInterfaceGenC<int>, false); Eval(11168, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11169, o is ImplementAllInterfaceC<int>, false); Eval(11170, o is ImplementAllInterfaceC<int>[], false); Eval(11171, o is SealedClass, false); Eval(11172, o is SealedClass[], false); } } // end of test case 0019 private static void TestCase0020() { { char v = default(char); ValueType o = v; Eval(11173, o is EmptyStruct, false); Eval(11174, o is EmptyStruct[], false); Eval(11175, o is EmptyStruct?, false); Eval(11176, o is EmptyStruct?[], false); Eval(11177, o is NotEmptyStruct, false); Eval(11178, o is NotEmptyStruct[], false); Eval(11179, o is NotEmptyStruct?, false); Eval(11180, o is NotEmptyStruct?[], false); Eval(11181, o is EmptyStructGen<int>, false); Eval(11182, o is EmptyStructGen<int>[], false); Eval(11183, o is EmptyStructGen<int>?, false); Eval(11184, o is EmptyStructGen<int>?[], false); Eval(11185, o is NotEmptyStructGen<Guid>, false); Eval(11186, o is NotEmptyStructGen<Guid>[], false); Eval(11187, o is NotEmptyStructGen<Guid>?, false); Eval(11188, o is NotEmptyStructGen<Guid>?[], false); Eval(11189, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11190, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11191, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11192, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11193, o is NestedStruct, false); Eval(11194, o is NestedStruct[], false); Eval(11195, o is NestedStruct?, false); Eval(11196, o is NestedStruct?[], false); Eval(11197, o is NestedStructGen<Decimal>, false); Eval(11198, o is NestedStructGen<Decimal>[], false); Eval(11199, o is NestedStructGen<Decimal>?, false); Eval(11200, o is NestedStructGen<Decimal>?[], false); Eval(11201, o is ExplicitFieldOffsetStruct, false); Eval(11202, o is ExplicitFieldOffsetStruct[], false); Eval(11203, o is ExplicitFieldOffsetStruct?, false); Eval(11204, o is ExplicitFieldOffsetStruct?[], false); Eval(11213, o is MarshalAsStruct, false); Eval(11214, o is MarshalAsStruct[], false); Eval(11215, o is MarshalAsStruct?, false); Eval(11216, o is MarshalAsStruct?[], false); Eval(11217, o is ImplementOneInterface, false); Eval(11218, o is ImplementOneInterface[], false); Eval(11219, o is ImplementOneInterface?, false); Eval(11220, o is ImplementOneInterface?[], false); Eval(11221, o is ImplementTwoInterface, false); Eval(11222, o is ImplementTwoInterface[], false); Eval(11223, o is ImplementTwoInterface?, false); Eval(11224, o is ImplementTwoInterface?[], false); Eval(11225, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11226, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11227, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11228, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11229, o is ImplementTwoInterfaceGen<int>, false); Eval(11230, o is ImplementTwoInterfaceGen<int>[], false); Eval(11231, o is ImplementTwoInterfaceGen<int>?, false); Eval(11232, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11233, o is ImplementAllInterface<int>, false); Eval(11234, o is ImplementAllInterface<int>[], false); Eval(11235, o is ImplementAllInterface<int>?, false); Eval(11236, o is ImplementAllInterface<int>?[], false); Eval(11237, o is IntE, false); Eval(11238, o is IntE[], false); Eval(11239, o is IntE?, false); Eval(11240, o is IntE?[], false); Eval(11241, o is ByteE, false); Eval(11242, o is ByteE[], false); Eval(11243, o is ByteE?, false); Eval(11244, o is ByteE?[], false); Eval(11245, o is LongE, false); Eval(11246, o is LongE[], false); Eval(11247, o is LongE?, false); Eval(11248, o is LongE?[], false); Eval(11249, o is char, true); Eval(11250, o is char[], false); Eval(11251, o is char?, true); Eval(11252, o is char?[], false); Eval(11253, o is bool, false); Eval(11254, o is bool[], false); Eval(11255, o is bool?, false); Eval(11256, o is bool?[], false); Eval(11257, o is byte, false); Eval(11258, o is byte[], false); Eval(11259, o is byte?, false); Eval(11260, o is byte?[], false); Eval(11261, o is sbyte, false); Eval(11262, o is sbyte[], false); Eval(11263, o is sbyte?, false); Eval(11264, o is sbyte?[], false); Eval(11265, o is short, false); Eval(11266, o is short[], false); Eval(11267, o is short?, false); Eval(11268, o is short?[], false); Eval(11269, o is ushort, false); Eval(11270, o is ushort[], false); Eval(11271, o is ushort?, false); Eval(11272, o is ushort?[], false); Eval(11273, o is int, false); Eval(11274, o is int[], false); Eval(11275, o is int?, false); Eval(11276, o is int?[], false); Eval(11277, o is uint, false); Eval(11278, o is uint[], false); Eval(11279, o is uint?, false); Eval(11280, o is uint?[], false); Eval(11281, o is long, false); Eval(11282, o is long[], false); Eval(11283, o is long?, false); Eval(11284, o is long?[], false); Eval(11285, o is ulong, false); Eval(11286, o is ulong[], false); Eval(11287, o is ulong?, false); Eval(11288, o is ulong?[], false); Eval(11289, o is float, false); Eval(11290, o is float[], false); Eval(11291, o is float?, false); Eval(11292, o is float?[], false); Eval(11293, o is double, false); Eval(11294, o is double[], false); Eval(11295, o is double?, false); Eval(11296, o is double?[], false); Eval(11297, o is decimal, false); Eval(11298, o is decimal[], false); Eval(11299, o is decimal?, false); Eval(11300, o is decimal?[], false); Eval(11301, o is IntPtr, false); Eval(11302, o is IntPtr[], false); Eval(11303, o is IntPtr?, false); Eval(11304, o is IntPtr?[], false); Eval(11305, o is UIntPtr, false); Eval(11306, o is UIntPtr[], false); Eval(11307, o is UIntPtr?, false); Eval(11308, o is UIntPtr?[], false); Eval(11309, o is Guid, false); Eval(11310, o is Guid[], false); Eval(11311, o is Guid?, false); Eval(11312, o is Guid?[], false); Eval(11313, o is GCHandle, false); Eval(11314, o is GCHandle[], false); Eval(11315, o is GCHandle?, false); Eval(11316, o is GCHandle?[], false); Eval(11317, o is object, true); Eval(11318, o is object[], false); Eval(11319, o is string, false); Eval(11320, o is string[], false); Eval(11321, o is ValueType, true); Eval(11322, o is ValueType[], false); Eval(11323, o is Array, false); Eval(11324, o is Array[], false); Eval(11325, o is Enum, false); Eval(11326, o is Enum[], false); Eval(11327, o is Delegate, false); Eval(11328, o is Delegate[], false); Eval(11329, o is MulticastDelegate, false); Eval(11330, o is MulticastDelegate[], false); Eval(11331, o is IEmpty, false); Eval(11332, o is IEmpty[], false); Eval(11333, o is INotEmpty, false); Eval(11334, o is INotEmpty[], false); Eval(11335, o is IEmptyGen<int>, false); Eval(11336, o is IEmptyGen<int>[], false); Eval(11337, o is INotEmptyGen<int>, false); Eval(11338, o is INotEmptyGen<int>[], false); Eval(11339, o is SimpleDelegate, false); Eval(11340, o is SimpleDelegate[], false); Eval(11341, o is GenericDelegate<int>, false); Eval(11342, o is GenericDelegate<int>[], false); Eval(11343, o is EmptyClass, false); Eval(11344, o is EmptyClass[], false); Eval(11345, o is NotEmptyClass, false); Eval(11346, o is NotEmptyClass[], false); Eval(11347, o is EmptyClassGen<int>, false); Eval(11348, o is EmptyClassGen<int>[], false); Eval(11349, o is NotEmptyClassGen<Guid>, false); Eval(11350, o is NotEmptyClassGen<Guid>[], false); Eval(11351, o is NotEmptyClassConstrainedGen<object>, false); Eval(11352, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11353, o is NestedClass, false); Eval(11354, o is NestedClass[], false); Eval(11355, o is NestedClassGen<Decimal>, false); Eval(11356, o is NestedClassGen<Decimal>[], false); Eval(11357, o is ImplementOneInterfaceC, false); Eval(11358, o is ImplementOneInterfaceC[], false); Eval(11359, o is ImplementTwoInterfaceC, false); Eval(11360, o is ImplementTwoInterfaceC[], false); Eval(11361, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11362, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11363, o is ImplementTwoInterfaceGenC<int>, false); Eval(11364, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11365, o is ImplementAllInterfaceC<int>, false); Eval(11366, o is ImplementAllInterfaceC<int>[], false); Eval(11367, o is SealedClass, false); Eval(11368, o is SealedClass[], false); } { char? v = default(char); ValueType o = v; Eval(11369, o is EmptyStruct, false); Eval(11370, o is EmptyStruct[], false); Eval(11371, o is EmptyStruct?, false); Eval(11372, o is EmptyStruct?[], false); Eval(11373, o is NotEmptyStruct, false); Eval(11374, o is NotEmptyStruct[], false); Eval(11375, o is NotEmptyStruct?, false); Eval(11376, o is NotEmptyStruct?[], false); Eval(11377, o is EmptyStructGen<int>, false); Eval(11378, o is EmptyStructGen<int>[], false); Eval(11379, o is EmptyStructGen<int>?, false); Eval(11380, o is EmptyStructGen<int>?[], false); Eval(11381, o is NotEmptyStructGen<Guid>, false); Eval(11382, o is NotEmptyStructGen<Guid>[], false); Eval(11383, o is NotEmptyStructGen<Guid>?, false); Eval(11384, o is NotEmptyStructGen<Guid>?[], false); Eval(11385, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11386, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11387, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11388, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11389, o is NestedStruct, false); Eval(11390, o is NestedStruct[], false); Eval(11391, o is NestedStruct?, false); Eval(11392, o is NestedStruct?[], false); Eval(11393, o is NestedStructGen<Decimal>, false); Eval(11394, o is NestedStructGen<Decimal>[], false); Eval(11395, o is NestedStructGen<Decimal>?, false); Eval(11396, o is NestedStructGen<Decimal>?[], false); Eval(11397, o is ExplicitFieldOffsetStruct, false); Eval(11398, o is ExplicitFieldOffsetStruct[], false); Eval(11399, o is ExplicitFieldOffsetStruct?, false); Eval(11400, o is ExplicitFieldOffsetStruct?[], false); Eval(11409, o is MarshalAsStruct, false); Eval(11410, o is MarshalAsStruct[], false); Eval(11411, o is MarshalAsStruct?, false); Eval(11412, o is MarshalAsStruct?[], false); Eval(11413, o is ImplementOneInterface, false); Eval(11414, o is ImplementOneInterface[], false); Eval(11415, o is ImplementOneInterface?, false); Eval(11416, o is ImplementOneInterface?[], false); Eval(11417, o is ImplementTwoInterface, false); Eval(11418, o is ImplementTwoInterface[], false); Eval(11419, o is ImplementTwoInterface?, false); Eval(11420, o is ImplementTwoInterface?[], false); Eval(11421, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11422, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11423, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11424, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11425, o is ImplementTwoInterfaceGen<int>, false); Eval(11426, o is ImplementTwoInterfaceGen<int>[], false); Eval(11427, o is ImplementTwoInterfaceGen<int>?, false); Eval(11428, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11429, o is ImplementAllInterface<int>, false); Eval(11430, o is ImplementAllInterface<int>[], false); Eval(11431, o is ImplementAllInterface<int>?, false); Eval(11432, o is ImplementAllInterface<int>?[], false); Eval(11433, o is IntE, false); Eval(11434, o is IntE[], false); Eval(11435, o is IntE?, false); Eval(11436, o is IntE?[], false); Eval(11437, o is ByteE, false); Eval(11438, o is ByteE[], false); Eval(11439, o is ByteE?, false); Eval(11440, o is ByteE?[], false); Eval(11441, o is LongE, false); Eval(11442, o is LongE[], false); Eval(11443, o is LongE?, false); Eval(11444, o is LongE?[], false); Eval(11445, o is char, true); Eval(11446, o is char[], false); Eval(11447, o is char?, true); Eval(11448, o is char?[], false); Eval(11449, o is bool, false); Eval(11450, o is bool[], false); Eval(11451, o is bool?, false); Eval(11452, o is bool?[], false); Eval(11453, o is byte, false); Eval(11454, o is byte[], false); Eval(11455, o is byte?, false); Eval(11456, o is byte?[], false); Eval(11457, o is sbyte, false); Eval(11458, o is sbyte[], false); Eval(11459, o is sbyte?, false); Eval(11460, o is sbyte?[], false); Eval(11461, o is short, false); Eval(11462, o is short[], false); Eval(11463, o is short?, false); Eval(11464, o is short?[], false); Eval(11465, o is ushort, false); Eval(11466, o is ushort[], false); Eval(11467, o is ushort?, false); Eval(11468, o is ushort?[], false); Eval(11469, o is int, false); Eval(11470, o is int[], false); Eval(11471, o is int?, false); Eval(11472, o is int?[], false); Eval(11473, o is uint, false); Eval(11474, o is uint[], false); Eval(11475, o is uint?, false); Eval(11476, o is uint?[], false); Eval(11477, o is long, false); Eval(11478, o is long[], false); Eval(11479, o is long?, false); Eval(11480, o is long?[], false); Eval(11481, o is ulong, false); Eval(11482, o is ulong[], false); Eval(11483, o is ulong?, false); Eval(11484, o is ulong?[], false); Eval(11485, o is float, false); Eval(11486, o is float[], false); Eval(11487, o is float?, false); Eval(11488, o is float?[], false); Eval(11489, o is double, false); Eval(11490, o is double[], false); Eval(11491, o is double?, false); Eval(11492, o is double?[], false); Eval(11493, o is decimal, false); Eval(11494, o is decimal[], false); Eval(11495, o is decimal?, false); Eval(11496, o is decimal?[], false); Eval(11497, o is IntPtr, false); Eval(11498, o is IntPtr[], false); Eval(11499, o is IntPtr?, false); Eval(11500, o is IntPtr?[], false); Eval(11501, o is UIntPtr, false); Eval(11502, o is UIntPtr[], false); Eval(11503, o is UIntPtr?, false); Eval(11504, o is UIntPtr?[], false); Eval(11505, o is Guid, false); Eval(11506, o is Guid[], false); Eval(11507, o is Guid?, false); Eval(11508, o is Guid?[], false); Eval(11509, o is GCHandle, false); Eval(11510, o is GCHandle[], false); Eval(11511, o is GCHandle?, false); Eval(11512, o is GCHandle?[], false); Eval(11513, o is object, true); Eval(11514, o is object[], false); Eval(11515, o is string, false); Eval(11516, o is string[], false); Eval(11517, o is ValueType, true); Eval(11518, o is ValueType[], false); Eval(11519, o is Array, false); Eval(11520, o is Array[], false); Eval(11521, o is Enum, false); Eval(11522, o is Enum[], false); Eval(11523, o is Delegate, false); Eval(11524, o is Delegate[], false); Eval(11525, o is MulticastDelegate, false); Eval(11526, o is MulticastDelegate[], false); Eval(11527, o is IEmpty, false); Eval(11528, o is IEmpty[], false); Eval(11529, o is INotEmpty, false); Eval(11530, o is INotEmpty[], false); Eval(11531, o is IEmptyGen<int>, false); Eval(11532, o is IEmptyGen<int>[], false); Eval(11533, o is INotEmptyGen<int>, false); Eval(11534, o is INotEmptyGen<int>[], false); Eval(11535, o is SimpleDelegate, false); Eval(11536, o is SimpleDelegate[], false); Eval(11537, o is GenericDelegate<int>, false); Eval(11538, o is GenericDelegate<int>[], false); Eval(11539, o is EmptyClass, false); Eval(11540, o is EmptyClass[], false); Eval(11541, o is NotEmptyClass, false); Eval(11542, o is NotEmptyClass[], false); Eval(11543, o is EmptyClassGen<int>, false); Eval(11544, o is EmptyClassGen<int>[], false); Eval(11545, o is NotEmptyClassGen<Guid>, false); Eval(11546, o is NotEmptyClassGen<Guid>[], false); Eval(11547, o is NotEmptyClassConstrainedGen<object>, false); Eval(11548, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11549, o is NestedClass, false); Eval(11550, o is NestedClass[], false); Eval(11551, o is NestedClassGen<Decimal>, false); Eval(11552, o is NestedClassGen<Decimal>[], false); Eval(11553, o is ImplementOneInterfaceC, false); Eval(11554, o is ImplementOneInterfaceC[], false); Eval(11555, o is ImplementTwoInterfaceC, false); Eval(11556, o is ImplementTwoInterfaceC[], false); Eval(11557, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11558, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11559, o is ImplementTwoInterfaceGenC<int>, false); Eval(11560, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11561, o is ImplementAllInterfaceC<int>, false); Eval(11562, o is ImplementAllInterfaceC<int>[], false); Eval(11563, o is SealedClass, false); Eval(11564, o is SealedClass[], false); } { char? v = default(char?); ValueType o = v; Eval(11565, o is EmptyStruct, false); Eval(11566, o is EmptyStruct[], false); Eval(11567, o is EmptyStruct?, false); Eval(11568, o is EmptyStruct?[], false); Eval(11569, o is NotEmptyStruct, false); Eval(11570, o is NotEmptyStruct[], false); Eval(11571, o is NotEmptyStruct?, false); Eval(11572, o is NotEmptyStruct?[], false); Eval(11573, o is EmptyStructGen<int>, false); Eval(11574, o is EmptyStructGen<int>[], false); Eval(11575, o is EmptyStructGen<int>?, false); Eval(11576, o is EmptyStructGen<int>?[], false); Eval(11577, o is NotEmptyStructGen<Guid>, false); Eval(11578, o is NotEmptyStructGen<Guid>[], false); Eval(11579, o is NotEmptyStructGen<Guid>?, false); Eval(11580, o is NotEmptyStructGen<Guid>?[], false); Eval(11581, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11582, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11583, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11584, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11585, o is NestedStruct, false); Eval(11586, o is NestedStruct[], false); Eval(11587, o is NestedStruct?, false); Eval(11588, o is NestedStruct?[], false); Eval(11589, o is NestedStructGen<Decimal>, false); Eval(11590, o is NestedStructGen<Decimal>[], false); Eval(11591, o is NestedStructGen<Decimal>?, false); Eval(11592, o is NestedStructGen<Decimal>?[], false); Eval(11593, o is ExplicitFieldOffsetStruct, false); Eval(11594, o is ExplicitFieldOffsetStruct[], false); Eval(11595, o is ExplicitFieldOffsetStruct?, false); Eval(11596, o is ExplicitFieldOffsetStruct?[], false); Eval(11605, o is MarshalAsStruct, false); Eval(11606, o is MarshalAsStruct[], false); Eval(11607, o is MarshalAsStruct?, false); Eval(11608, o is MarshalAsStruct?[], false); Eval(11609, o is ImplementOneInterface, false); Eval(11610, o is ImplementOneInterface[], false); Eval(11611, o is ImplementOneInterface?, false); Eval(11612, o is ImplementOneInterface?[], false); Eval(11613, o is ImplementTwoInterface, false); Eval(11614, o is ImplementTwoInterface[], false); Eval(11615, o is ImplementTwoInterface?, false); Eval(11616, o is ImplementTwoInterface?[], false); Eval(11617, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11618, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11619, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11620, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11621, o is ImplementTwoInterfaceGen<int>, false); Eval(11622, o is ImplementTwoInterfaceGen<int>[], false); Eval(11623, o is ImplementTwoInterfaceGen<int>?, false); Eval(11624, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11625, o is ImplementAllInterface<int>, false); Eval(11626, o is ImplementAllInterface<int>[], false); Eval(11627, o is ImplementAllInterface<int>?, false); Eval(11628, o is ImplementAllInterface<int>?[], false); Eval(11629, o is IntE, false); Eval(11630, o is IntE[], false); Eval(11631, o is IntE?, false); Eval(11632, o is IntE?[], false); Eval(11633, o is ByteE, false); Eval(11634, o is ByteE[], false); Eval(11635, o is ByteE?, false); Eval(11636, o is ByteE?[], false); Eval(11637, o is LongE, false); Eval(11638, o is LongE[], false); Eval(11639, o is LongE?, false); Eval(11640, o is LongE?[], false); Eval(11641, o is char, false); Eval(11642, o is char[], false); Eval(11643, o is char?, false); Eval(11644, o is char?[], false); Eval(11645, o is bool, false); Eval(11646, o is bool[], false); Eval(11647, o is bool?, false); Eval(11648, o is bool?[], false); Eval(11649, o is byte, false); Eval(11650, o is byte[], false); Eval(11651, o is byte?, false); Eval(11652, o is byte?[], false); Eval(11653, o is sbyte, false); Eval(11654, o is sbyte[], false); Eval(11655, o is sbyte?, false); Eval(11656, o is sbyte?[], false); Eval(11657, o is short, false); Eval(11658, o is short[], false); Eval(11659, o is short?, false); Eval(11660, o is short?[], false); Eval(11661, o is ushort, false); Eval(11662, o is ushort[], false); Eval(11663, o is ushort?, false); Eval(11664, o is ushort?[], false); Eval(11665, o is int, false); Eval(11666, o is int[], false); Eval(11667, o is int?, false); Eval(11668, o is int?[], false); Eval(11669, o is uint, false); Eval(11670, o is uint[], false); Eval(11671, o is uint?, false); Eval(11672, o is uint?[], false); Eval(11673, o is long, false); Eval(11674, o is long[], false); Eval(11675, o is long?, false); Eval(11676, o is long?[], false); Eval(11677, o is ulong, false); Eval(11678, o is ulong[], false); Eval(11679, o is ulong?, false); Eval(11680, o is ulong?[], false); Eval(11681, o is float, false); Eval(11682, o is float[], false); Eval(11683, o is float?, false); Eval(11684, o is float?[], false); Eval(11685, o is double, false); Eval(11686, o is double[], false); Eval(11687, o is double?, false); Eval(11688, o is double?[], false); Eval(11689, o is decimal, false); Eval(11690, o is decimal[], false); Eval(11691, o is decimal?, false); Eval(11692, o is decimal?[], false); Eval(11693, o is IntPtr, false); Eval(11694, o is IntPtr[], false); Eval(11695, o is IntPtr?, false); Eval(11696, o is IntPtr?[], false); Eval(11697, o is UIntPtr, false); Eval(11698, o is UIntPtr[], false); Eval(11699, o is UIntPtr?, false); Eval(11700, o is UIntPtr?[], false); Eval(11701, o is Guid, false); Eval(11702, o is Guid[], false); Eval(11703, o is Guid?, false); Eval(11704, o is Guid?[], false); Eval(11705, o is GCHandle, false); Eval(11706, o is GCHandle[], false); Eval(11707, o is GCHandle?, false); Eval(11708, o is GCHandle?[], false); Eval(11709, o is object, false); Eval(11710, o is object[], false); Eval(11711, o is string, false); Eval(11712, o is string[], false); Eval(11713, o is ValueType, false); Eval(11714, o is ValueType[], false); Eval(11715, o is Array, false); Eval(11716, o is Array[], false); Eval(11717, o is Enum, false); Eval(11718, o is Enum[], false); Eval(11719, o is Delegate, false); Eval(11720, o is Delegate[], false); Eval(11721, o is MulticastDelegate, false); Eval(11722, o is MulticastDelegate[], false); Eval(11723, o is IEmpty, false); Eval(11724, o is IEmpty[], false); Eval(11725, o is INotEmpty, false); Eval(11726, o is INotEmpty[], false); Eval(11727, o is IEmptyGen<int>, false); Eval(11728, o is IEmptyGen<int>[], false); Eval(11729, o is INotEmptyGen<int>, false); Eval(11730, o is INotEmptyGen<int>[], false); Eval(11731, o is SimpleDelegate, false); Eval(11732, o is SimpleDelegate[], false); Eval(11733, o is GenericDelegate<int>, false); Eval(11734, o is GenericDelegate<int>[], false); Eval(11735, o is EmptyClass, false); Eval(11736, o is EmptyClass[], false); Eval(11737, o is NotEmptyClass, false); Eval(11738, o is NotEmptyClass[], false); Eval(11739, o is EmptyClassGen<int>, false); Eval(11740, o is EmptyClassGen<int>[], false); Eval(11741, o is NotEmptyClassGen<Guid>, false); Eval(11742, o is NotEmptyClassGen<Guid>[], false); Eval(11743, o is NotEmptyClassConstrainedGen<object>, false); Eval(11744, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11745, o is NestedClass, false); Eval(11746, o is NestedClass[], false); Eval(11747, o is NestedClassGen<Decimal>, false); Eval(11748, o is NestedClassGen<Decimal>[], false); Eval(11749, o is ImplementOneInterfaceC, false); Eval(11750, o is ImplementOneInterfaceC[], false); Eval(11751, o is ImplementTwoInterfaceC, false); Eval(11752, o is ImplementTwoInterfaceC[], false); Eval(11753, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11754, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11755, o is ImplementTwoInterfaceGenC<int>, false); Eval(11756, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11757, o is ImplementAllInterfaceC<int>, false); Eval(11758, o is ImplementAllInterfaceC<int>[], false); Eval(11759, o is SealedClass, false); Eval(11760, o is SealedClass[], false); } } // end of test case 0020 private static void TestCase0021() { { bool v = default(bool); ValueType o = v; Eval(11761, o is EmptyStruct, false); Eval(11762, o is EmptyStruct[], false); Eval(11763, o is EmptyStruct?, false); Eval(11764, o is EmptyStruct?[], false); Eval(11765, o is NotEmptyStruct, false); Eval(11766, o is NotEmptyStruct[], false); Eval(11767, o is NotEmptyStruct?, false); Eval(11768, o is NotEmptyStruct?[], false); Eval(11769, o is EmptyStructGen<int>, false); Eval(11770, o is EmptyStructGen<int>[], false); Eval(11771, o is EmptyStructGen<int>?, false); Eval(11772, o is EmptyStructGen<int>?[], false); Eval(11773, o is NotEmptyStructGen<Guid>, false); Eval(11774, o is NotEmptyStructGen<Guid>[], false); Eval(11775, o is NotEmptyStructGen<Guid>?, false); Eval(11776, o is NotEmptyStructGen<Guid>?[], false); Eval(11777, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11778, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11779, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11780, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11781, o is NestedStruct, false); Eval(11782, o is NestedStruct[], false); Eval(11783, o is NestedStruct?, false); Eval(11784, o is NestedStruct?[], false); Eval(11785, o is NestedStructGen<Decimal>, false); Eval(11786, o is NestedStructGen<Decimal>[], false); Eval(11787, o is NestedStructGen<Decimal>?, false); Eval(11788, o is NestedStructGen<Decimal>?[], false); Eval(11789, o is ExplicitFieldOffsetStruct, false); Eval(11790, o is ExplicitFieldOffsetStruct[], false); Eval(11791, o is ExplicitFieldOffsetStruct?, false); Eval(11792, o is ExplicitFieldOffsetStruct?[], false); Eval(11801, o is MarshalAsStruct, false); Eval(11802, o is MarshalAsStruct[], false); Eval(11803, o is MarshalAsStruct?, false); Eval(11804, o is MarshalAsStruct?[], false); Eval(11805, o is ImplementOneInterface, false); Eval(11806, o is ImplementOneInterface[], false); Eval(11807, o is ImplementOneInterface?, false); Eval(11808, o is ImplementOneInterface?[], false); Eval(11809, o is ImplementTwoInterface, false); Eval(11810, o is ImplementTwoInterface[], false); Eval(11811, o is ImplementTwoInterface?, false); Eval(11812, o is ImplementTwoInterface?[], false); Eval(11813, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11814, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11815, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11816, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11817, o is ImplementTwoInterfaceGen<int>, false); Eval(11818, o is ImplementTwoInterfaceGen<int>[], false); Eval(11819, o is ImplementTwoInterfaceGen<int>?, false); Eval(11820, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11821, o is ImplementAllInterface<int>, false); Eval(11822, o is ImplementAllInterface<int>[], false); Eval(11823, o is ImplementAllInterface<int>?, false); Eval(11824, o is ImplementAllInterface<int>?[], false); Eval(11825, o is IntE, false); Eval(11826, o is IntE[], false); Eval(11827, o is IntE?, false); Eval(11828, o is IntE?[], false); Eval(11829, o is ByteE, false); Eval(11830, o is ByteE[], false); Eval(11831, o is ByteE?, false); Eval(11832, o is ByteE?[], false); Eval(11833, o is LongE, false); Eval(11834, o is LongE[], false); Eval(11835, o is LongE?, false); Eval(11836, o is LongE?[], false); Eval(11837, o is char, false); Eval(11838, o is char[], false); Eval(11839, o is char?, false); Eval(11840, o is char?[], false); Eval(11841, o is bool, true); Eval(11842, o is bool[], false); Eval(11843, o is bool?, true); Eval(11844, o is bool?[], false); Eval(11845, o is byte, false); Eval(11846, o is byte[], false); Eval(11847, o is byte?, false); Eval(11848, o is byte?[], false); Eval(11849, o is sbyte, false); Eval(11850, o is sbyte[], false); Eval(11851, o is sbyte?, false); Eval(11852, o is sbyte?[], false); Eval(11853, o is short, false); Eval(11854, o is short[], false); Eval(11855, o is short?, false); Eval(11856, o is short?[], false); Eval(11857, o is ushort, false); Eval(11858, o is ushort[], false); Eval(11859, o is ushort?, false); Eval(11860, o is ushort?[], false); Eval(11861, o is int, false); Eval(11862, o is int[], false); Eval(11863, o is int?, false); Eval(11864, o is int?[], false); Eval(11865, o is uint, false); Eval(11866, o is uint[], false); Eval(11867, o is uint?, false); Eval(11868, o is uint?[], false); Eval(11869, o is long, false); Eval(11870, o is long[], false); Eval(11871, o is long?, false); Eval(11872, o is long?[], false); Eval(11873, o is ulong, false); Eval(11874, o is ulong[], false); Eval(11875, o is ulong?, false); Eval(11876, o is ulong?[], false); Eval(11877, o is float, false); Eval(11878, o is float[], false); Eval(11879, o is float?, false); Eval(11880, o is float?[], false); Eval(11881, o is double, false); Eval(11882, o is double[], false); Eval(11883, o is double?, false); Eval(11884, o is double?[], false); Eval(11885, o is decimal, false); Eval(11886, o is decimal[], false); Eval(11887, o is decimal?, false); Eval(11888, o is decimal?[], false); Eval(11889, o is IntPtr, false); Eval(11890, o is IntPtr[], false); Eval(11891, o is IntPtr?, false); Eval(11892, o is IntPtr?[], false); Eval(11893, o is UIntPtr, false); Eval(11894, o is UIntPtr[], false); Eval(11895, o is UIntPtr?, false); Eval(11896, o is UIntPtr?[], false); Eval(11897, o is Guid, false); Eval(11898, o is Guid[], false); Eval(11899, o is Guid?, false); Eval(11900, o is Guid?[], false); Eval(11901, o is GCHandle, false); Eval(11902, o is GCHandle[], false); Eval(11903, o is GCHandle?, false); Eval(11904, o is GCHandle?[], false); Eval(11905, o is object, true); Eval(11906, o is object[], false); Eval(11907, o is string, false); Eval(11908, o is string[], false); Eval(11909, o is ValueType, true); Eval(11910, o is ValueType[], false); Eval(11911, o is Array, false); Eval(11912, o is Array[], false); Eval(11913, o is Enum, false); Eval(11914, o is Enum[], false); Eval(11915, o is Delegate, false); Eval(11916, o is Delegate[], false); Eval(11917, o is MulticastDelegate, false); Eval(11918, o is MulticastDelegate[], false); Eval(11919, o is IEmpty, false); Eval(11920, o is IEmpty[], false); Eval(11921, o is INotEmpty, false); Eval(11922, o is INotEmpty[], false); Eval(11923, o is IEmptyGen<int>, false); Eval(11924, o is IEmptyGen<int>[], false); Eval(11925, o is INotEmptyGen<int>, false); Eval(11926, o is INotEmptyGen<int>[], false); Eval(11927, o is SimpleDelegate, false); Eval(11928, o is SimpleDelegate[], false); Eval(11929, o is GenericDelegate<int>, false); Eval(11930, o is GenericDelegate<int>[], false); Eval(11931, o is EmptyClass, false); Eval(11932, o is EmptyClass[], false); Eval(11933, o is NotEmptyClass, false); Eval(11934, o is NotEmptyClass[], false); Eval(11935, o is EmptyClassGen<int>, false); Eval(11936, o is EmptyClassGen<int>[], false); Eval(11937, o is NotEmptyClassGen<Guid>, false); Eval(11938, o is NotEmptyClassGen<Guid>[], false); Eval(11939, o is NotEmptyClassConstrainedGen<object>, false); Eval(11940, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11941, o is NestedClass, false); Eval(11942, o is NestedClass[], false); Eval(11943, o is NestedClassGen<Decimal>, false); Eval(11944, o is NestedClassGen<Decimal>[], false); Eval(11945, o is ImplementOneInterfaceC, false); Eval(11946, o is ImplementOneInterfaceC[], false); Eval(11947, o is ImplementTwoInterfaceC, false); Eval(11948, o is ImplementTwoInterfaceC[], false); Eval(11949, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11950, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11951, o is ImplementTwoInterfaceGenC<int>, false); Eval(11952, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11953, o is ImplementAllInterfaceC<int>, false); Eval(11954, o is ImplementAllInterfaceC<int>[], false); Eval(11955, o is SealedClass, false); Eval(11956, o is SealedClass[], false); } { bool? v = default(bool); ValueType o = v; Eval(11957, o is EmptyStruct, false); Eval(11958, o is EmptyStruct[], false); Eval(11959, o is EmptyStruct?, false); Eval(11960, o is EmptyStruct?[], false); Eval(11961, o is NotEmptyStruct, false); Eval(11962, o is NotEmptyStruct[], false); Eval(11963, o is NotEmptyStruct?, false); Eval(11964, o is NotEmptyStruct?[], false); Eval(11965, o is EmptyStructGen<int>, false); Eval(11966, o is EmptyStructGen<int>[], false); Eval(11967, o is EmptyStructGen<int>?, false); Eval(11968, o is EmptyStructGen<int>?[], false); Eval(11969, o is NotEmptyStructGen<Guid>, false); Eval(11970, o is NotEmptyStructGen<Guid>[], false); Eval(11971, o is NotEmptyStructGen<Guid>?, false); Eval(11972, o is NotEmptyStructGen<Guid>?[], false); Eval(11973, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11974, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11975, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11976, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11977, o is NestedStruct, false); Eval(11978, o is NestedStruct[], false); Eval(11979, o is NestedStruct?, false); Eval(11980, o is NestedStruct?[], false); Eval(11981, o is NestedStructGen<Decimal>, false); Eval(11982, o is NestedStructGen<Decimal>[], false); Eval(11983, o is NestedStructGen<Decimal>?, false); Eval(11984, o is NestedStructGen<Decimal>?[], false); Eval(11985, o is ExplicitFieldOffsetStruct, false); Eval(11986, o is ExplicitFieldOffsetStruct[], false); Eval(11987, o is ExplicitFieldOffsetStruct?, false); Eval(11988, o is ExplicitFieldOffsetStruct?[], false); Eval(11997, o is MarshalAsStruct, false); Eval(11998, o is MarshalAsStruct[], false); Eval(11999, o is MarshalAsStruct?, false); Eval(12000, o is MarshalAsStruct?[], false); Eval(12001, o is ImplementOneInterface, false); Eval(12002, o is ImplementOneInterface[], false); Eval(12003, o is ImplementOneInterface?, false); Eval(12004, o is ImplementOneInterface?[], false); Eval(12005, o is ImplementTwoInterface, false); Eval(12006, o is ImplementTwoInterface[], false); Eval(12007, o is ImplementTwoInterface?, false); Eval(12008, o is ImplementTwoInterface?[], false); Eval(12009, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12010, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12011, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12012, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12013, o is ImplementTwoInterfaceGen<int>, false); Eval(12014, o is ImplementTwoInterfaceGen<int>[], false); Eval(12015, o is ImplementTwoInterfaceGen<int>?, false); Eval(12016, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12017, o is ImplementAllInterface<int>, false); Eval(12018, o is ImplementAllInterface<int>[], false); Eval(12019, o is ImplementAllInterface<int>?, false); Eval(12020, o is ImplementAllInterface<int>?[], false); Eval(12021, o is IntE, false); Eval(12022, o is IntE[], false); Eval(12023, o is IntE?, false); Eval(12024, o is IntE?[], false); Eval(12025, o is ByteE, false); Eval(12026, o is ByteE[], false); Eval(12027, o is ByteE?, false); Eval(12028, o is ByteE?[], false); Eval(12029, o is LongE, false); Eval(12030, o is LongE[], false); Eval(12031, o is LongE?, false); Eval(12032, o is LongE?[], false); Eval(12033, o is char, false); Eval(12034, o is char[], false); Eval(12035, o is char?, false); Eval(12036, o is char?[], false); Eval(12037, o is bool, true); Eval(12038, o is bool[], false); Eval(12039, o is bool?, true); Eval(12040, o is bool?[], false); Eval(12041, o is byte, false); Eval(12042, o is byte[], false); Eval(12043, o is byte?, false); Eval(12044, o is byte?[], false); Eval(12045, o is sbyte, false); Eval(12046, o is sbyte[], false); Eval(12047, o is sbyte?, false); Eval(12048, o is sbyte?[], false); Eval(12049, o is short, false); Eval(12050, o is short[], false); Eval(12051, o is short?, false); Eval(12052, o is short?[], false); Eval(12053, o is ushort, false); Eval(12054, o is ushort[], false); Eval(12055, o is ushort?, false); Eval(12056, o is ushort?[], false); Eval(12057, o is int, false); Eval(12058, o is int[], false); Eval(12059, o is int?, false); Eval(12060, o is int?[], false); Eval(12061, o is uint, false); Eval(12062, o is uint[], false); Eval(12063, o is uint?, false); Eval(12064, o is uint?[], false); Eval(12065, o is long, false); Eval(12066, o is long[], false); Eval(12067, o is long?, false); Eval(12068, o is long?[], false); Eval(12069, o is ulong, false); Eval(12070, o is ulong[], false); Eval(12071, o is ulong?, false); Eval(12072, o is ulong?[], false); Eval(12073, o is float, false); Eval(12074, o is float[], false); Eval(12075, o is float?, false); Eval(12076, o is float?[], false); Eval(12077, o is double, false); Eval(12078, o is double[], false); Eval(12079, o is double?, false); Eval(12080, o is double?[], false); Eval(12081, o is decimal, false); Eval(12082, o is decimal[], false); Eval(12083, o is decimal?, false); Eval(12084, o is decimal?[], false); Eval(12085, o is IntPtr, false); Eval(12086, o is IntPtr[], false); Eval(12087, o is IntPtr?, false); Eval(12088, o is IntPtr?[], false); Eval(12089, o is UIntPtr, false); Eval(12090, o is UIntPtr[], false); Eval(12091, o is UIntPtr?, false); Eval(12092, o is UIntPtr?[], false); Eval(12093, o is Guid, false); Eval(12094, o is Guid[], false); Eval(12095, o is Guid?, false); Eval(12096, o is Guid?[], false); Eval(12097, o is GCHandle, false); Eval(12098, o is GCHandle[], false); Eval(12099, o is GCHandle?, false); Eval(12100, o is GCHandle?[], false); Eval(12101, o is object, true); Eval(12102, o is object[], false); Eval(12103, o is string, false); Eval(12104, o is string[], false); Eval(12105, o is ValueType, true); Eval(12106, o is ValueType[], false); Eval(12107, o is Array, false); Eval(12108, o is Array[], false); Eval(12109, o is Enum, false); Eval(12110, o is Enum[], false); Eval(12111, o is Delegate, false); Eval(12112, o is Delegate[], false); Eval(12113, o is MulticastDelegate, false); Eval(12114, o is MulticastDelegate[], false); Eval(12115, o is IEmpty, false); Eval(12116, o is IEmpty[], false); Eval(12117, o is INotEmpty, false); Eval(12118, o is INotEmpty[], false); Eval(12119, o is IEmptyGen<int>, false); Eval(12120, o is IEmptyGen<int>[], false); Eval(12121, o is INotEmptyGen<int>, false); Eval(12122, o is INotEmptyGen<int>[], false); Eval(12123, o is SimpleDelegate, false); Eval(12124, o is SimpleDelegate[], false); Eval(12125, o is GenericDelegate<int>, false); Eval(12126, o is GenericDelegate<int>[], false); Eval(12127, o is EmptyClass, false); Eval(12128, o is EmptyClass[], false); Eval(12129, o is NotEmptyClass, false); Eval(12130, o is NotEmptyClass[], false); Eval(12131, o is EmptyClassGen<int>, false); Eval(12132, o is EmptyClassGen<int>[], false); Eval(12133, o is NotEmptyClassGen<Guid>, false); Eval(12134, o is NotEmptyClassGen<Guid>[], false); Eval(12135, o is NotEmptyClassConstrainedGen<object>, false); Eval(12136, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12137, o is NestedClass, false); Eval(12138, o is NestedClass[], false); Eval(12139, o is NestedClassGen<Decimal>, false); Eval(12140, o is NestedClassGen<Decimal>[], false); Eval(12141, o is ImplementOneInterfaceC, false); Eval(12142, o is ImplementOneInterfaceC[], false); Eval(12143, o is ImplementTwoInterfaceC, false); Eval(12144, o is ImplementTwoInterfaceC[], false); Eval(12145, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12146, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12147, o is ImplementTwoInterfaceGenC<int>, false); Eval(12148, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12149, o is ImplementAllInterfaceC<int>, false); Eval(12150, o is ImplementAllInterfaceC<int>[], false); Eval(12151, o is SealedClass, false); Eval(12152, o is SealedClass[], false); } { bool? v = default(bool?); ValueType o = v; Eval(12153, o is EmptyStruct, false); Eval(12154, o is EmptyStruct[], false); Eval(12155, o is EmptyStruct?, false); Eval(12156, o is EmptyStruct?[], false); Eval(12157, o is NotEmptyStruct, false); Eval(12158, o is NotEmptyStruct[], false); Eval(12159, o is NotEmptyStruct?, false); Eval(12160, o is NotEmptyStruct?[], false); Eval(12161, o is EmptyStructGen<int>, false); Eval(12162, o is EmptyStructGen<int>[], false); Eval(12163, o is EmptyStructGen<int>?, false); Eval(12164, o is EmptyStructGen<int>?[], false); Eval(12165, o is NotEmptyStructGen<Guid>, false); Eval(12166, o is NotEmptyStructGen<Guid>[], false); Eval(12167, o is NotEmptyStructGen<Guid>?, false); Eval(12168, o is NotEmptyStructGen<Guid>?[], false); Eval(12169, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12170, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12171, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12172, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12173, o is NestedStruct, false); Eval(12174, o is NestedStruct[], false); Eval(12175, o is NestedStruct?, false); Eval(12176, o is NestedStruct?[], false); Eval(12177, o is NestedStructGen<Decimal>, false); Eval(12178, o is NestedStructGen<Decimal>[], false); Eval(12179, o is NestedStructGen<Decimal>?, false); Eval(12180, o is NestedStructGen<Decimal>?[], false); Eval(12181, o is ExplicitFieldOffsetStruct, false); Eval(12182, o is ExplicitFieldOffsetStruct[], false); Eval(12183, o is ExplicitFieldOffsetStruct?, false); Eval(12184, o is ExplicitFieldOffsetStruct?[], false); Eval(12193, o is MarshalAsStruct, false); Eval(12194, o is MarshalAsStruct[], false); Eval(12195, o is MarshalAsStruct?, false); Eval(12196, o is MarshalAsStruct?[], false); Eval(12197, o is ImplementOneInterface, false); Eval(12198, o is ImplementOneInterface[], false); Eval(12199, o is ImplementOneInterface?, false); Eval(12200, o is ImplementOneInterface?[], false); Eval(12201, o is ImplementTwoInterface, false); Eval(12202, o is ImplementTwoInterface[], false); Eval(12203, o is ImplementTwoInterface?, false); Eval(12204, o is ImplementTwoInterface?[], false); Eval(12205, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12206, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12207, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12208, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12209, o is ImplementTwoInterfaceGen<int>, false); Eval(12210, o is ImplementTwoInterfaceGen<int>[], false); Eval(12211, o is ImplementTwoInterfaceGen<int>?, false); Eval(12212, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12213, o is ImplementAllInterface<int>, false); Eval(12214, o is ImplementAllInterface<int>[], false); Eval(12215, o is ImplementAllInterface<int>?, false); Eval(12216, o is ImplementAllInterface<int>?[], false); Eval(12217, o is IntE, false); Eval(12218, o is IntE[], false); Eval(12219, o is IntE?, false); Eval(12220, o is IntE?[], false); Eval(12221, o is ByteE, false); Eval(12222, o is ByteE[], false); Eval(12223, o is ByteE?, false); Eval(12224, o is ByteE?[], false); Eval(12225, o is LongE, false); Eval(12226, o is LongE[], false); Eval(12227, o is LongE?, false); Eval(12228, o is LongE?[], false); Eval(12229, o is char, false); Eval(12230, o is char[], false); Eval(12231, o is char?, false); Eval(12232, o is char?[], false); Eval(12233, o is bool, false); Eval(12234, o is bool[], false); Eval(12235, o is bool?, false); Eval(12236, o is bool?[], false); Eval(12237, o is byte, false); Eval(12238, o is byte[], false); Eval(12239, o is byte?, false); Eval(12240, o is byte?[], false); Eval(12241, o is sbyte, false); Eval(12242, o is sbyte[], false); Eval(12243, o is sbyte?, false); Eval(12244, o is sbyte?[], false); Eval(12245, o is short, false); Eval(12246, o is short[], false); Eval(12247, o is short?, false); Eval(12248, o is short?[], false); Eval(12249, o is ushort, false); Eval(12250, o is ushort[], false); Eval(12251, o is ushort?, false); Eval(12252, o is ushort?[], false); Eval(12253, o is int, false); Eval(12254, o is int[], false); Eval(12255, o is int?, false); Eval(12256, o is int?[], false); Eval(12257, o is uint, false); Eval(12258, o is uint[], false); Eval(12259, o is uint?, false); Eval(12260, o is uint?[], false); Eval(12261, o is long, false); Eval(12262, o is long[], false); Eval(12263, o is long?, false); Eval(12264, o is long?[], false); Eval(12265, o is ulong, false); Eval(12266, o is ulong[], false); Eval(12267, o is ulong?, false); Eval(12268, o is ulong?[], false); Eval(12269, o is float, false); Eval(12270, o is float[], false); Eval(12271, o is float?, false); Eval(12272, o is float?[], false); Eval(12273, o is double, false); Eval(12274, o is double[], false); Eval(12275, o is double?, false); Eval(12276, o is double?[], false); Eval(12277, o is decimal, false); Eval(12278, o is decimal[], false); Eval(12279, o is decimal?, false); Eval(12280, o is decimal?[], false); Eval(12281, o is IntPtr, false); Eval(12282, o is IntPtr[], false); Eval(12283, o is IntPtr?, false); Eval(12284, o is IntPtr?[], false); Eval(12285, o is UIntPtr, false); Eval(12286, o is UIntPtr[], false); Eval(12287, o is UIntPtr?, false); Eval(12288, o is UIntPtr?[], false); Eval(12289, o is Guid, false); Eval(12290, o is Guid[], false); Eval(12291, o is Guid?, false); Eval(12292, o is Guid?[], false); Eval(12293, o is GCHandle, false); Eval(12294, o is GCHandle[], false); Eval(12295, o is GCHandle?, false); Eval(12296, o is GCHandle?[], false); Eval(12297, o is object, false); Eval(12298, o is object[], false); Eval(12299, o is string, false); Eval(12300, o is string[], false); Eval(12301, o is ValueType, false); Eval(12302, o is ValueType[], false); Eval(12303, o is Array, false); Eval(12304, o is Array[], false); Eval(12305, o is Enum, false); Eval(12306, o is Enum[], false); Eval(12307, o is Delegate, false); Eval(12308, o is Delegate[], false); Eval(12309, o is MulticastDelegate, false); Eval(12310, o is MulticastDelegate[], false); Eval(12311, o is IEmpty, false); Eval(12312, o is IEmpty[], false); Eval(12313, o is INotEmpty, false); Eval(12314, o is INotEmpty[], false); Eval(12315, o is IEmptyGen<int>, false); Eval(12316, o is IEmptyGen<int>[], false); Eval(12317, o is INotEmptyGen<int>, false); Eval(12318, o is INotEmptyGen<int>[], false); Eval(12319, o is SimpleDelegate, false); Eval(12320, o is SimpleDelegate[], false); Eval(12321, o is GenericDelegate<int>, false); Eval(12322, o is GenericDelegate<int>[], false); Eval(12323, o is EmptyClass, false); Eval(12324, o is EmptyClass[], false); Eval(12325, o is NotEmptyClass, false); Eval(12326, o is NotEmptyClass[], false); Eval(12327, o is EmptyClassGen<int>, false); Eval(12328, o is EmptyClassGen<int>[], false); Eval(12329, o is NotEmptyClassGen<Guid>, false); Eval(12330, o is NotEmptyClassGen<Guid>[], false); Eval(12331, o is NotEmptyClassConstrainedGen<object>, false); Eval(12332, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12333, o is NestedClass, false); Eval(12334, o is NestedClass[], false); Eval(12335, o is NestedClassGen<Decimal>, false); Eval(12336, o is NestedClassGen<Decimal>[], false); Eval(12337, o is ImplementOneInterfaceC, false); Eval(12338, o is ImplementOneInterfaceC[], false); Eval(12339, o is ImplementTwoInterfaceC, false); Eval(12340, o is ImplementTwoInterfaceC[], false); Eval(12341, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12342, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12343, o is ImplementTwoInterfaceGenC<int>, false); Eval(12344, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12345, o is ImplementAllInterfaceC<int>, false); Eval(12346, o is ImplementAllInterfaceC<int>[], false); Eval(12347, o is SealedClass, false); Eval(12348, o is SealedClass[], false); } } // end of test case 0021 private static void TestCase0022() { { byte v = default(byte); ValueType o = v; Eval(12349, o is EmptyStruct, false); Eval(12350, o is EmptyStruct[], false); Eval(12351, o is EmptyStruct?, false); Eval(12352, o is EmptyStruct?[], false); Eval(12353, o is NotEmptyStruct, false); Eval(12354, o is NotEmptyStruct[], false); Eval(12355, o is NotEmptyStruct?, false); Eval(12356, o is NotEmptyStruct?[], false); Eval(12357, o is EmptyStructGen<int>, false); Eval(12358, o is EmptyStructGen<int>[], false); Eval(12359, o is EmptyStructGen<int>?, false); Eval(12360, o is EmptyStructGen<int>?[], false); Eval(12361, o is NotEmptyStructGen<Guid>, false); Eval(12362, o is NotEmptyStructGen<Guid>[], false); Eval(12363, o is NotEmptyStructGen<Guid>?, false); Eval(12364, o is NotEmptyStructGen<Guid>?[], false); Eval(12365, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12366, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12367, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12368, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12369, o is NestedStruct, false); Eval(12370, o is NestedStruct[], false); Eval(12371, o is NestedStruct?, false); Eval(12372, o is NestedStruct?[], false); Eval(12373, o is NestedStructGen<Decimal>, false); Eval(12374, o is NestedStructGen<Decimal>[], false); Eval(12375, o is NestedStructGen<Decimal>?, false); Eval(12376, o is NestedStructGen<Decimal>?[], false); Eval(12377, o is ExplicitFieldOffsetStruct, false); Eval(12378, o is ExplicitFieldOffsetStruct[], false); Eval(12379, o is ExplicitFieldOffsetStruct?, false); Eval(12380, o is ExplicitFieldOffsetStruct?[], false); Eval(12389, o is MarshalAsStruct, false); Eval(12390, o is MarshalAsStruct[], false); Eval(12391, o is MarshalAsStruct?, false); Eval(12392, o is MarshalAsStruct?[], false); Eval(12393, o is ImplementOneInterface, false); Eval(12394, o is ImplementOneInterface[], false); Eval(12395, o is ImplementOneInterface?, false); Eval(12396, o is ImplementOneInterface?[], false); Eval(12397, o is ImplementTwoInterface, false); Eval(12398, o is ImplementTwoInterface[], false); Eval(12399, o is ImplementTwoInterface?, false); Eval(12400, o is ImplementTwoInterface?[], false); Eval(12401, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12402, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12403, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12404, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12405, o is ImplementTwoInterfaceGen<int>, false); Eval(12406, o is ImplementTwoInterfaceGen<int>[], false); Eval(12407, o is ImplementTwoInterfaceGen<int>?, false); Eval(12408, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12409, o is ImplementAllInterface<int>, false); Eval(12410, o is ImplementAllInterface<int>[], false); Eval(12411, o is ImplementAllInterface<int>?, false); Eval(12412, o is ImplementAllInterface<int>?[], false); Eval(12413, o is IntE, false); Eval(12414, o is IntE[], false); Eval(12415, o is IntE?, false); Eval(12416, o is IntE?[], false); Eval(12417, o is ByteE, false); Eval(12418, o is ByteE[], false); Eval(12419, o is ByteE?, false); Eval(12420, o is ByteE?[], false); Eval(12421, o is LongE, false); Eval(12422, o is LongE[], false); Eval(12423, o is LongE?, false); Eval(12424, o is LongE?[], false); Eval(12425, o is char, false); Eval(12426, o is char[], false); Eval(12427, o is char?, false); Eval(12428, o is char?[], false); Eval(12429, o is bool, false); Eval(12430, o is bool[], false); Eval(12431, o is bool?, false); Eval(12432, o is bool?[], false); Eval(12433, o is byte, true); Eval(12434, o is byte[], false); Eval(12435, o is byte?, true); Eval(12436, o is byte?[], false); Eval(12437, o is sbyte, false); Eval(12438, o is sbyte[], false); Eval(12439, o is sbyte?, false); Eval(12440, o is sbyte?[], false); Eval(12441, o is short, false); Eval(12442, o is short[], false); Eval(12443, o is short?, false); Eval(12444, o is short?[], false); Eval(12445, o is ushort, false); Eval(12446, o is ushort[], false); Eval(12447, o is ushort?, false); Eval(12448, o is ushort?[], false); Eval(12449, o is int, false); Eval(12450, o is int[], false); Eval(12451, o is int?, false); Eval(12452, o is int?[], false); Eval(12453, o is uint, false); Eval(12454, o is uint[], false); Eval(12455, o is uint?, false); Eval(12456, o is uint?[], false); Eval(12457, o is long, false); Eval(12458, o is long[], false); Eval(12459, o is long?, false); Eval(12460, o is long?[], false); Eval(12461, o is ulong, false); Eval(12462, o is ulong[], false); Eval(12463, o is ulong?, false); Eval(12464, o is ulong?[], false); Eval(12465, o is float, false); Eval(12466, o is float[], false); Eval(12467, o is float?, false); Eval(12468, o is float?[], false); Eval(12469, o is double, false); Eval(12470, o is double[], false); Eval(12471, o is double?, false); Eval(12472, o is double?[], false); Eval(12473, o is decimal, false); Eval(12474, o is decimal[], false); Eval(12475, o is decimal?, false); Eval(12476, o is decimal?[], false); Eval(12477, o is IntPtr, false); Eval(12478, o is IntPtr[], false); Eval(12479, o is IntPtr?, false); Eval(12480, o is IntPtr?[], false); Eval(12481, o is UIntPtr, false); Eval(12482, o is UIntPtr[], false); Eval(12483, o is UIntPtr?, false); Eval(12484, o is UIntPtr?[], false); Eval(12485, o is Guid, false); Eval(12486, o is Guid[], false); Eval(12487, o is Guid?, false); Eval(12488, o is Guid?[], false); Eval(12489, o is GCHandle, false); Eval(12490, o is GCHandle[], false); Eval(12491, o is GCHandle?, false); Eval(12492, o is GCHandle?[], false); Eval(12493, o is object, true); Eval(12494, o is object[], false); Eval(12495, o is string, false); Eval(12496, o is string[], false); Eval(12497, o is ValueType, true); Eval(12498, o is ValueType[], false); Eval(12499, o is Array, false); Eval(12500, o is Array[], false); Eval(12501, o is Enum, false); Eval(12502, o is Enum[], false); Eval(12503, o is Delegate, false); Eval(12504, o is Delegate[], false); Eval(12505, o is MulticastDelegate, false); Eval(12506, o is MulticastDelegate[], false); Eval(12507, o is IEmpty, false); Eval(12508, o is IEmpty[], false); Eval(12509, o is INotEmpty, false); Eval(12510, o is INotEmpty[], false); Eval(12511, o is IEmptyGen<int>, false); Eval(12512, o is IEmptyGen<int>[], false); Eval(12513, o is INotEmptyGen<int>, false); Eval(12514, o is INotEmptyGen<int>[], false); Eval(12515, o is SimpleDelegate, false); Eval(12516, o is SimpleDelegate[], false); Eval(12517, o is GenericDelegate<int>, false); Eval(12518, o is GenericDelegate<int>[], false); Eval(12519, o is EmptyClass, false); Eval(12520, o is EmptyClass[], false); Eval(12521, o is NotEmptyClass, false); Eval(12522, o is NotEmptyClass[], false); Eval(12523, o is EmptyClassGen<int>, false); Eval(12524, o is EmptyClassGen<int>[], false); Eval(12525, o is NotEmptyClassGen<Guid>, false); Eval(12526, o is NotEmptyClassGen<Guid>[], false); Eval(12527, o is NotEmptyClassConstrainedGen<object>, false); Eval(12528, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12529, o is NestedClass, false); Eval(12530, o is NestedClass[], false); Eval(12531, o is NestedClassGen<Decimal>, false); Eval(12532, o is NestedClassGen<Decimal>[], false); Eval(12533, o is ImplementOneInterfaceC, false); Eval(12534, o is ImplementOneInterfaceC[], false); Eval(12535, o is ImplementTwoInterfaceC, false); Eval(12536, o is ImplementTwoInterfaceC[], false); Eval(12537, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12538, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12539, o is ImplementTwoInterfaceGenC<int>, false); Eval(12540, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12541, o is ImplementAllInterfaceC<int>, false); Eval(12542, o is ImplementAllInterfaceC<int>[], false); Eval(12543, o is SealedClass, false); Eval(12544, o is SealedClass[], false); } { byte? v = default(byte); ValueType o = v; Eval(12545, o is EmptyStruct, false); Eval(12546, o is EmptyStruct[], false); Eval(12547, o is EmptyStruct?, false); Eval(12548, o is EmptyStruct?[], false); Eval(12549, o is NotEmptyStruct, false); Eval(12550, o is NotEmptyStruct[], false); Eval(12551, o is NotEmptyStruct?, false); Eval(12552, o is NotEmptyStruct?[], false); Eval(12553, o is EmptyStructGen<int>, false); Eval(12554, o is EmptyStructGen<int>[], false); Eval(12555, o is EmptyStructGen<int>?, false); Eval(12556, o is EmptyStructGen<int>?[], false); Eval(12557, o is NotEmptyStructGen<Guid>, false); Eval(12558, o is NotEmptyStructGen<Guid>[], false); Eval(12559, o is NotEmptyStructGen<Guid>?, false); Eval(12560, o is NotEmptyStructGen<Guid>?[], false); Eval(12561, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12562, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12563, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12564, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12565, o is NestedStruct, false); Eval(12566, o is NestedStruct[], false); Eval(12567, o is NestedStruct?, false); Eval(12568, o is NestedStruct?[], false); Eval(12569, o is NestedStructGen<Decimal>, false); Eval(12570, o is NestedStructGen<Decimal>[], false); Eval(12571, o is NestedStructGen<Decimal>?, false); Eval(12572, o is NestedStructGen<Decimal>?[], false); Eval(12573, o is ExplicitFieldOffsetStruct, false); Eval(12574, o is ExplicitFieldOffsetStruct[], false); Eval(12575, o is ExplicitFieldOffsetStruct?, false); Eval(12576, o is ExplicitFieldOffsetStruct?[], false); Eval(12585, o is MarshalAsStruct, false); Eval(12586, o is MarshalAsStruct[], false); Eval(12587, o is MarshalAsStruct?, false); Eval(12588, o is MarshalAsStruct?[], false); Eval(12589, o is ImplementOneInterface, false); Eval(12590, o is ImplementOneInterface[], false); Eval(12591, o is ImplementOneInterface?, false); Eval(12592, o is ImplementOneInterface?[], false); Eval(12593, o is ImplementTwoInterface, false); Eval(12594, o is ImplementTwoInterface[], false); Eval(12595, o is ImplementTwoInterface?, false); Eval(12596, o is ImplementTwoInterface?[], false); Eval(12597, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12598, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12599, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12600, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12601, o is ImplementTwoInterfaceGen<int>, false); Eval(12602, o is ImplementTwoInterfaceGen<int>[], false); Eval(12603, o is ImplementTwoInterfaceGen<int>?, false); Eval(12604, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12605, o is ImplementAllInterface<int>, false); Eval(12606, o is ImplementAllInterface<int>[], false); Eval(12607, o is ImplementAllInterface<int>?, false); Eval(12608, o is ImplementAllInterface<int>?[], false); Eval(12609, o is IntE, false); Eval(12610, o is IntE[], false); Eval(12611, o is IntE?, false); Eval(12612, o is IntE?[], false); Eval(12613, o is ByteE, false); Eval(12614, o is ByteE[], false); Eval(12615, o is ByteE?, false); Eval(12616, o is ByteE?[], false); Eval(12617, o is LongE, false); Eval(12618, o is LongE[], false); Eval(12619, o is LongE?, false); Eval(12620, o is LongE?[], false); Eval(12621, o is char, false); Eval(12622, o is char[], false); Eval(12623, o is char?, false); Eval(12624, o is char?[], false); Eval(12625, o is bool, false); Eval(12626, o is bool[], false); Eval(12627, o is bool?, false); Eval(12628, o is bool?[], false); Eval(12629, o is byte, true); Eval(12630, o is byte[], false); Eval(12631, o is byte?, true); Eval(12632, o is byte?[], false); Eval(12633, o is sbyte, false); Eval(12634, o is sbyte[], false); Eval(12635, o is sbyte?, false); Eval(12636, o is sbyte?[], false); Eval(12637, o is short, false); Eval(12638, o is short[], false); Eval(12639, o is short?, false); Eval(12640, o is short?[], false); Eval(12641, o is ushort, false); Eval(12642, o is ushort[], false); Eval(12643, o is ushort?, false); Eval(12644, o is ushort?[], false); Eval(12645, o is int, false); Eval(12646, o is int[], false); Eval(12647, o is int?, false); Eval(12648, o is int?[], false); Eval(12649, o is uint, false); Eval(12650, o is uint[], false); Eval(12651, o is uint?, false); Eval(12652, o is uint?[], false); Eval(12653, o is long, false); Eval(12654, o is long[], false); Eval(12655, o is long?, false); Eval(12656, o is long?[], false); Eval(12657, o is ulong, false); Eval(12658, o is ulong[], false); Eval(12659, o is ulong?, false); Eval(12660, o is ulong?[], false); Eval(12661, o is float, false); Eval(12662, o is float[], false); Eval(12663, o is float?, false); Eval(12664, o is float?[], false); Eval(12665, o is double, false); Eval(12666, o is double[], false); Eval(12667, o is double?, false); Eval(12668, o is double?[], false); Eval(12669, o is decimal, false); Eval(12670, o is decimal[], false); Eval(12671, o is decimal?, false); Eval(12672, o is decimal?[], false); Eval(12673, o is IntPtr, false); Eval(12674, o is IntPtr[], false); Eval(12675, o is IntPtr?, false); Eval(12676, o is IntPtr?[], false); Eval(12677, o is UIntPtr, false); Eval(12678, o is UIntPtr[], false); Eval(12679, o is UIntPtr?, false); Eval(12680, o is UIntPtr?[], false); Eval(12681, o is Guid, false); Eval(12682, o is Guid[], false); Eval(12683, o is Guid?, false); Eval(12684, o is Guid?[], false); Eval(12685, o is GCHandle, false); Eval(12686, o is GCHandle[], false); Eval(12687, o is GCHandle?, false); Eval(12688, o is GCHandle?[], false); Eval(12689, o is object, true); Eval(12690, o is object[], false); Eval(12691, o is string, false); Eval(12692, o is string[], false); Eval(12693, o is ValueType, true); Eval(12694, o is ValueType[], false); Eval(12695, o is Array, false); Eval(12696, o is Array[], false); Eval(12697, o is Enum, false); Eval(12698, o is Enum[], false); Eval(12699, o is Delegate, false); Eval(12700, o is Delegate[], false); Eval(12701, o is MulticastDelegate, false); Eval(12702, o is MulticastDelegate[], false); Eval(12703, o is IEmpty, false); Eval(12704, o is IEmpty[], false); Eval(12705, o is INotEmpty, false); Eval(12706, o is INotEmpty[], false); Eval(12707, o is IEmptyGen<int>, false); Eval(12708, o is IEmptyGen<int>[], false); Eval(12709, o is INotEmptyGen<int>, false); Eval(12710, o is INotEmptyGen<int>[], false); Eval(12711, o is SimpleDelegate, false); Eval(12712, o is SimpleDelegate[], false); Eval(12713, o is GenericDelegate<int>, false); Eval(12714, o is GenericDelegate<int>[], false); Eval(12715, o is EmptyClass, false); Eval(12716, o is EmptyClass[], false); Eval(12717, o is NotEmptyClass, false); Eval(12718, o is NotEmptyClass[], false); Eval(12719, o is EmptyClassGen<int>, false); Eval(12720, o is EmptyClassGen<int>[], false); Eval(12721, o is NotEmptyClassGen<Guid>, false); Eval(12722, o is NotEmptyClassGen<Guid>[], false); Eval(12723, o is NotEmptyClassConstrainedGen<object>, false); Eval(12724, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12725, o is NestedClass, false); Eval(12726, o is NestedClass[], false); Eval(12727, o is NestedClassGen<Decimal>, false); Eval(12728, o is NestedClassGen<Decimal>[], false); Eval(12729, o is ImplementOneInterfaceC, false); Eval(12730, o is ImplementOneInterfaceC[], false); Eval(12731, o is ImplementTwoInterfaceC, false); Eval(12732, o is ImplementTwoInterfaceC[], false); Eval(12733, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12734, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12735, o is ImplementTwoInterfaceGenC<int>, false); Eval(12736, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12737, o is ImplementAllInterfaceC<int>, false); Eval(12738, o is ImplementAllInterfaceC<int>[], false); Eval(12739, o is SealedClass, false); Eval(12740, o is SealedClass[], false); } { byte? v = default(byte?); ValueType o = v; Eval(12741, o is EmptyStruct, false); Eval(12742, o is EmptyStruct[], false); Eval(12743, o is EmptyStruct?, false); Eval(12744, o is EmptyStruct?[], false); Eval(12745, o is NotEmptyStruct, false); Eval(12746, o is NotEmptyStruct[], false); Eval(12747, o is NotEmptyStruct?, false); Eval(12748, o is NotEmptyStruct?[], false); Eval(12749, o is EmptyStructGen<int>, false); Eval(12750, o is EmptyStructGen<int>[], false); Eval(12751, o is EmptyStructGen<int>?, false); Eval(12752, o is EmptyStructGen<int>?[], false); Eval(12753, o is NotEmptyStructGen<Guid>, false); Eval(12754, o is NotEmptyStructGen<Guid>[], false); Eval(12755, o is NotEmptyStructGen<Guid>?, false); Eval(12756, o is NotEmptyStructGen<Guid>?[], false); Eval(12757, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12758, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12759, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12760, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12761, o is NestedStruct, false); Eval(12762, o is NestedStruct[], false); Eval(12763, o is NestedStruct?, false); Eval(12764, o is NestedStruct?[], false); Eval(12765, o is NestedStructGen<Decimal>, false); Eval(12766, o is NestedStructGen<Decimal>[], false); Eval(12767, o is NestedStructGen<Decimal>?, false); Eval(12768, o is NestedStructGen<Decimal>?[], false); Eval(12769, o is ExplicitFieldOffsetStruct, false); Eval(12770, o is ExplicitFieldOffsetStruct[], false); Eval(12771, o is ExplicitFieldOffsetStruct?, false); Eval(12772, o is ExplicitFieldOffsetStruct?[], false); Eval(12781, o is MarshalAsStruct, false); Eval(12782, o is MarshalAsStruct[], false); Eval(12783, o is MarshalAsStruct?, false); Eval(12784, o is MarshalAsStruct?[], false); Eval(12785, o is ImplementOneInterface, false); Eval(12786, o is ImplementOneInterface[], false); Eval(12787, o is ImplementOneInterface?, false); Eval(12788, o is ImplementOneInterface?[], false); Eval(12789, o is ImplementTwoInterface, false); Eval(12790, o is ImplementTwoInterface[], false); Eval(12791, o is ImplementTwoInterface?, false); Eval(12792, o is ImplementTwoInterface?[], false); Eval(12793, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12794, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12795, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12796, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12797, o is ImplementTwoInterfaceGen<int>, false); Eval(12798, o is ImplementTwoInterfaceGen<int>[], false); Eval(12799, o is ImplementTwoInterfaceGen<int>?, false); Eval(12800, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12801, o is ImplementAllInterface<int>, false); Eval(12802, o is ImplementAllInterface<int>[], false); Eval(12803, o is ImplementAllInterface<int>?, false); Eval(12804, o is ImplementAllInterface<int>?[], false); Eval(12805, o is IntE, false); Eval(12806, o is IntE[], false); Eval(12807, o is IntE?, false); Eval(12808, o is IntE?[], false); Eval(12809, o is ByteE, false); Eval(12810, o is ByteE[], false); Eval(12811, o is ByteE?, false); Eval(12812, o is ByteE?[], false); Eval(12813, o is LongE, false); Eval(12814, o is LongE[], false); Eval(12815, o is LongE?, false); Eval(12816, o is LongE?[], false); Eval(12817, o is char, false); Eval(12818, o is char[], false); Eval(12819, o is char?, false); Eval(12820, o is char?[], false); Eval(12821, o is bool, false); Eval(12822, o is bool[], false); Eval(12823, o is bool?, false); Eval(12824, o is bool?[], false); Eval(12825, o is byte, false); Eval(12826, o is byte[], false); Eval(12827, o is byte?, false); Eval(12828, o is byte?[], false); Eval(12829, o is sbyte, false); Eval(12830, o is sbyte[], false); Eval(12831, o is sbyte?, false); Eval(12832, o is sbyte?[], false); Eval(12833, o is short, false); Eval(12834, o is short[], false); Eval(12835, o is short?, false); Eval(12836, o is short?[], false); Eval(12837, o is ushort, false); Eval(12838, o is ushort[], false); Eval(12839, o is ushort?, false); Eval(12840, o is ushort?[], false); Eval(12841, o is int, false); Eval(12842, o is int[], false); Eval(12843, o is int?, false); Eval(12844, o is int?[], false); Eval(12845, o is uint, false); Eval(12846, o is uint[], false); Eval(12847, o is uint?, false); Eval(12848, o is uint?[], false); Eval(12849, o is long, false); Eval(12850, o is long[], false); Eval(12851, o is long?, false); Eval(12852, o is long?[], false); Eval(12853, o is ulong, false); Eval(12854, o is ulong[], false); Eval(12855, o is ulong?, false); Eval(12856, o is ulong?[], false); Eval(12857, o is float, false); Eval(12858, o is float[], false); Eval(12859, o is float?, false); Eval(12860, o is float?[], false); Eval(12861, o is double, false); Eval(12862, o is double[], false); Eval(12863, o is double?, false); Eval(12864, o is double?[], false); Eval(12865, o is decimal, false); Eval(12866, o is decimal[], false); Eval(12867, o is decimal?, false); Eval(12868, o is decimal?[], false); Eval(12869, o is IntPtr, false); Eval(12870, o is IntPtr[], false); Eval(12871, o is IntPtr?, false); Eval(12872, o is IntPtr?[], false); Eval(12873, o is UIntPtr, false); Eval(12874, o is UIntPtr[], false); Eval(12875, o is UIntPtr?, false); Eval(12876, o is UIntPtr?[], false); Eval(12877, o is Guid, false); Eval(12878, o is Guid[], false); Eval(12879, o is Guid?, false); Eval(12880, o is Guid?[], false); Eval(12881, o is GCHandle, false); Eval(12882, o is GCHandle[], false); Eval(12883, o is GCHandle?, false); Eval(12884, o is GCHandle?[], false); Eval(12885, o is object, false); Eval(12886, o is object[], false); Eval(12887, o is string, false); Eval(12888, o is string[], false); Eval(12889, o is ValueType, false); Eval(12890, o is ValueType[], false); Eval(12891, o is Array, false); Eval(12892, o is Array[], false); Eval(12893, o is Enum, false); Eval(12894, o is Enum[], false); Eval(12895, o is Delegate, false); Eval(12896, o is Delegate[], false); Eval(12897, o is MulticastDelegate, false); Eval(12898, o is MulticastDelegate[], false); Eval(12899, o is IEmpty, false); Eval(12900, o is IEmpty[], false); Eval(12901, o is INotEmpty, false); Eval(12902, o is INotEmpty[], false); Eval(12903, o is IEmptyGen<int>, false); Eval(12904, o is IEmptyGen<int>[], false); Eval(12905, o is INotEmptyGen<int>, false); Eval(12906, o is INotEmptyGen<int>[], false); Eval(12907, o is SimpleDelegate, false); Eval(12908, o is SimpleDelegate[], false); Eval(12909, o is GenericDelegate<int>, false); Eval(12910, o is GenericDelegate<int>[], false); Eval(12911, o is EmptyClass, false); Eval(12912, o is EmptyClass[], false); Eval(12913, o is NotEmptyClass, false); Eval(12914, o is NotEmptyClass[], false); Eval(12915, o is EmptyClassGen<int>, false); Eval(12916, o is EmptyClassGen<int>[], false); Eval(12917, o is NotEmptyClassGen<Guid>, false); Eval(12918, o is NotEmptyClassGen<Guid>[], false); Eval(12919, o is NotEmptyClassConstrainedGen<object>, false); Eval(12920, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12921, o is NestedClass, false); Eval(12922, o is NestedClass[], false); Eval(12923, o is NestedClassGen<Decimal>, false); Eval(12924, o is NestedClassGen<Decimal>[], false); Eval(12925, o is ImplementOneInterfaceC, false); Eval(12926, o is ImplementOneInterfaceC[], false); Eval(12927, o is ImplementTwoInterfaceC, false); Eval(12928, o is ImplementTwoInterfaceC[], false); Eval(12929, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12930, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12931, o is ImplementTwoInterfaceGenC<int>, false); Eval(12932, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12933, o is ImplementAllInterfaceC<int>, false); Eval(12934, o is ImplementAllInterfaceC<int>[], false); Eval(12935, o is SealedClass, false); Eval(12936, o is SealedClass[], false); } } // end of test case 0022 private static void TestCase0023() { { sbyte v = default(sbyte); ValueType o = v; Eval(12937, o is EmptyStruct, false); Eval(12938, o is EmptyStruct[], false); Eval(12939, o is EmptyStruct?, false); Eval(12940, o is EmptyStruct?[], false); Eval(12941, o is NotEmptyStruct, false); Eval(12942, o is NotEmptyStruct[], false); Eval(12943, o is NotEmptyStruct?, false); Eval(12944, o is NotEmptyStruct?[], false); Eval(12945, o is EmptyStructGen<int>, false); Eval(12946, o is EmptyStructGen<int>[], false); Eval(12947, o is EmptyStructGen<int>?, false); Eval(12948, o is EmptyStructGen<int>?[], false); Eval(12949, o is NotEmptyStructGen<Guid>, false); Eval(12950, o is NotEmptyStructGen<Guid>[], false); Eval(12951, o is NotEmptyStructGen<Guid>?, false); Eval(12952, o is NotEmptyStructGen<Guid>?[], false); Eval(12953, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12954, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12955, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12956, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12957, o is NestedStruct, false); Eval(12958, o is NestedStruct[], false); Eval(12959, o is NestedStruct?, false); Eval(12960, o is NestedStruct?[], false); Eval(12961, o is NestedStructGen<Decimal>, false); Eval(12962, o is NestedStructGen<Decimal>[], false); Eval(12963, o is NestedStructGen<Decimal>?, false); Eval(12964, o is NestedStructGen<Decimal>?[], false); Eval(12965, o is ExplicitFieldOffsetStruct, false); Eval(12966, o is ExplicitFieldOffsetStruct[], false); Eval(12967, o is ExplicitFieldOffsetStruct?, false); Eval(12968, o is ExplicitFieldOffsetStruct?[], false); Eval(12977, o is MarshalAsStruct, false); Eval(12978, o is MarshalAsStruct[], false); Eval(12979, o is MarshalAsStruct?, false); Eval(12980, o is MarshalAsStruct?[], false); Eval(12981, o is ImplementOneInterface, false); Eval(12982, o is ImplementOneInterface[], false); Eval(12983, o is ImplementOneInterface?, false); Eval(12984, o is ImplementOneInterface?[], false); Eval(12985, o is ImplementTwoInterface, false); Eval(12986, o is ImplementTwoInterface[], false); Eval(12987, o is ImplementTwoInterface?, false); Eval(12988, o is ImplementTwoInterface?[], false); Eval(12989, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12990, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12991, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12992, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12993, o is ImplementTwoInterfaceGen<int>, false); Eval(12994, o is ImplementTwoInterfaceGen<int>[], false); Eval(12995, o is ImplementTwoInterfaceGen<int>?, false); Eval(12996, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12997, o is ImplementAllInterface<int>, false); Eval(12998, o is ImplementAllInterface<int>[], false); Eval(12999, o is ImplementAllInterface<int>?, false); Eval(13000, o is ImplementAllInterface<int>?[], false); Eval(13001, o is IntE, false); Eval(13002, o is IntE[], false); Eval(13003, o is IntE?, false); Eval(13004, o is IntE?[], false); Eval(13005, o is ByteE, false); Eval(13006, o is ByteE[], false); Eval(13007, o is ByteE?, false); Eval(13008, o is ByteE?[], false); Eval(13009, o is LongE, false); Eval(13010, o is LongE[], false); Eval(13011, o is LongE?, false); Eval(13012, o is LongE?[], false); Eval(13013, o is char, false); Eval(13014, o is char[], false); Eval(13015, o is char?, false); Eval(13016, o is char?[], false); Eval(13017, o is bool, false); Eval(13018, o is bool[], false); Eval(13019, o is bool?, false); Eval(13020, o is bool?[], false); Eval(13021, o is byte, false); Eval(13022, o is byte[], false); Eval(13023, o is byte?, false); Eval(13024, o is byte?[], false); Eval(13025, o is sbyte, true); Eval(13026, o is sbyte[], false); Eval(13027, o is sbyte?, true); Eval(13028, o is sbyte?[], false); Eval(13029, o is short, false); Eval(13030, o is short[], false); Eval(13031, o is short?, false); Eval(13032, o is short?[], false); Eval(13033, o is ushort, false); Eval(13034, o is ushort[], false); Eval(13035, o is ushort?, false); Eval(13036, o is ushort?[], false); Eval(13037, o is int, false); Eval(13038, o is int[], false); Eval(13039, o is int?, false); Eval(13040, o is int?[], false); Eval(13041, o is uint, false); Eval(13042, o is uint[], false); Eval(13043, o is uint?, false); Eval(13044, o is uint?[], false); Eval(13045, o is long, false); Eval(13046, o is long[], false); Eval(13047, o is long?, false); Eval(13048, o is long?[], false); Eval(13049, o is ulong, false); Eval(13050, o is ulong[], false); Eval(13051, o is ulong?, false); Eval(13052, o is ulong?[], false); Eval(13053, o is float, false); Eval(13054, o is float[], false); Eval(13055, o is float?, false); Eval(13056, o is float?[], false); Eval(13057, o is double, false); Eval(13058, o is double[], false); Eval(13059, o is double?, false); Eval(13060, o is double?[], false); Eval(13061, o is decimal, false); Eval(13062, o is decimal[], false); Eval(13063, o is decimal?, false); Eval(13064, o is decimal?[], false); Eval(13065, o is IntPtr, false); Eval(13066, o is IntPtr[], false); Eval(13067, o is IntPtr?, false); Eval(13068, o is IntPtr?[], false); Eval(13069, o is UIntPtr, false); Eval(13070, o is UIntPtr[], false); Eval(13071, o is UIntPtr?, false); Eval(13072, o is UIntPtr?[], false); Eval(13073, o is Guid, false); Eval(13074, o is Guid[], false); Eval(13075, o is Guid?, false); Eval(13076, o is Guid?[], false); Eval(13077, o is GCHandle, false); Eval(13078, o is GCHandle[], false); Eval(13079, o is GCHandle?, false); Eval(13080, o is GCHandle?[], false); Eval(13081, o is object, true); Eval(13082, o is object[], false); Eval(13083, o is string, false); Eval(13084, o is string[], false); Eval(13085, o is ValueType, true); Eval(13086, o is ValueType[], false); Eval(13087, o is Array, false); Eval(13088, o is Array[], false); Eval(13089, o is Enum, false); Eval(13090, o is Enum[], false); Eval(13091, o is Delegate, false); Eval(13092, o is Delegate[], false); Eval(13093, o is MulticastDelegate, false); Eval(13094, o is MulticastDelegate[], false); Eval(13095, o is IEmpty, false); Eval(13096, o is IEmpty[], false); Eval(13097, o is INotEmpty, false); Eval(13098, o is INotEmpty[], false); Eval(13099, o is IEmptyGen<int>, false); Eval(13100, o is IEmptyGen<int>[], false); Eval(13101, o is INotEmptyGen<int>, false); Eval(13102, o is INotEmptyGen<int>[], false); Eval(13103, o is SimpleDelegate, false); Eval(13104, o is SimpleDelegate[], false); Eval(13105, o is GenericDelegate<int>, false); Eval(13106, o is GenericDelegate<int>[], false); Eval(13107, o is EmptyClass, false); Eval(13108, o is EmptyClass[], false); Eval(13109, o is NotEmptyClass, false); Eval(13110, o is NotEmptyClass[], false); Eval(13111, o is EmptyClassGen<int>, false); Eval(13112, o is EmptyClassGen<int>[], false); Eval(13113, o is NotEmptyClassGen<Guid>, false); Eval(13114, o is NotEmptyClassGen<Guid>[], false); Eval(13115, o is NotEmptyClassConstrainedGen<object>, false); Eval(13116, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13117, o is NestedClass, false); Eval(13118, o is NestedClass[], false); Eval(13119, o is NestedClassGen<Decimal>, false); Eval(13120, o is NestedClassGen<Decimal>[], false); Eval(13121, o is ImplementOneInterfaceC, false); Eval(13122, o is ImplementOneInterfaceC[], false); Eval(13123, o is ImplementTwoInterfaceC, false); Eval(13124, o is ImplementTwoInterfaceC[], false); Eval(13125, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13126, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13127, o is ImplementTwoInterfaceGenC<int>, false); Eval(13128, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13129, o is ImplementAllInterfaceC<int>, false); Eval(13130, o is ImplementAllInterfaceC<int>[], false); Eval(13131, o is SealedClass, false); Eval(13132, o is SealedClass[], false); } { sbyte? v = default(sbyte); ValueType o = v; Eval(13133, o is EmptyStruct, false); Eval(13134, o is EmptyStruct[], false); Eval(13135, o is EmptyStruct?, false); Eval(13136, o is EmptyStruct?[], false); Eval(13137, o is NotEmptyStruct, false); Eval(13138, o is NotEmptyStruct[], false); Eval(13139, o is NotEmptyStruct?, false); Eval(13140, o is NotEmptyStruct?[], false); Eval(13141, o is EmptyStructGen<int>, false); Eval(13142, o is EmptyStructGen<int>[], false); Eval(13143, o is EmptyStructGen<int>?, false); Eval(13144, o is EmptyStructGen<int>?[], false); Eval(13145, o is NotEmptyStructGen<Guid>, false); Eval(13146, o is NotEmptyStructGen<Guid>[], false); Eval(13147, o is NotEmptyStructGen<Guid>?, false); Eval(13148, o is NotEmptyStructGen<Guid>?[], false); Eval(13149, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13150, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13151, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13152, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13153, o is NestedStruct, false); Eval(13154, o is NestedStruct[], false); Eval(13155, o is NestedStruct?, false); Eval(13156, o is NestedStruct?[], false); Eval(13157, o is NestedStructGen<Decimal>, false); Eval(13158, o is NestedStructGen<Decimal>[], false); Eval(13159, o is NestedStructGen<Decimal>?, false); Eval(13160, o is NestedStructGen<Decimal>?[], false); Eval(13161, o is ExplicitFieldOffsetStruct, false); Eval(13162, o is ExplicitFieldOffsetStruct[], false); Eval(13163, o is ExplicitFieldOffsetStruct?, false); Eval(13164, o is ExplicitFieldOffsetStruct?[], false); Eval(13173, o is MarshalAsStruct, false); Eval(13174, o is MarshalAsStruct[], false); Eval(13175, o is MarshalAsStruct?, false); Eval(13176, o is MarshalAsStruct?[], false); Eval(13177, o is ImplementOneInterface, false); Eval(13178, o is ImplementOneInterface[], false); Eval(13179, o is ImplementOneInterface?, false); Eval(13180, o is ImplementOneInterface?[], false); Eval(13181, o is ImplementTwoInterface, false); Eval(13182, o is ImplementTwoInterface[], false); Eval(13183, o is ImplementTwoInterface?, false); Eval(13184, o is ImplementTwoInterface?[], false); Eval(13185, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13186, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13187, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13188, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13189, o is ImplementTwoInterfaceGen<int>, false); Eval(13190, o is ImplementTwoInterfaceGen<int>[], false); Eval(13191, o is ImplementTwoInterfaceGen<int>?, false); Eval(13192, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13193, o is ImplementAllInterface<int>, false); Eval(13194, o is ImplementAllInterface<int>[], false); Eval(13195, o is ImplementAllInterface<int>?, false); Eval(13196, o is ImplementAllInterface<int>?[], false); Eval(13197, o is IntE, false); Eval(13198, o is IntE[], false); Eval(13199, o is IntE?, false); Eval(13200, o is IntE?[], false); Eval(13201, o is ByteE, false); Eval(13202, o is ByteE[], false); Eval(13203, o is ByteE?, false); Eval(13204, o is ByteE?[], false); Eval(13205, o is LongE, false); Eval(13206, o is LongE[], false); Eval(13207, o is LongE?, false); Eval(13208, o is LongE?[], false); Eval(13209, o is char, false); Eval(13210, o is char[], false); Eval(13211, o is char?, false); Eval(13212, o is char?[], false); Eval(13213, o is bool, false); Eval(13214, o is bool[], false); Eval(13215, o is bool?, false); Eval(13216, o is bool?[], false); Eval(13217, o is byte, false); Eval(13218, o is byte[], false); Eval(13219, o is byte?, false); Eval(13220, o is byte?[], false); Eval(13221, o is sbyte, true); Eval(13222, o is sbyte[], false); Eval(13223, o is sbyte?, true); Eval(13224, o is sbyte?[], false); Eval(13225, o is short, false); Eval(13226, o is short[], false); Eval(13227, o is short?, false); Eval(13228, o is short?[], false); Eval(13229, o is ushort, false); Eval(13230, o is ushort[], false); Eval(13231, o is ushort?, false); Eval(13232, o is ushort?[], false); Eval(13233, o is int, false); Eval(13234, o is int[], false); Eval(13235, o is int?, false); Eval(13236, o is int?[], false); Eval(13237, o is uint, false); Eval(13238, o is uint[], false); Eval(13239, o is uint?, false); Eval(13240, o is uint?[], false); Eval(13241, o is long, false); Eval(13242, o is long[], false); Eval(13243, o is long?, false); Eval(13244, o is long?[], false); Eval(13245, o is ulong, false); Eval(13246, o is ulong[], false); Eval(13247, o is ulong?, false); Eval(13248, o is ulong?[], false); Eval(13249, o is float, false); Eval(13250, o is float[], false); Eval(13251, o is float?, false); Eval(13252, o is float?[], false); Eval(13253, o is double, false); Eval(13254, o is double[], false); Eval(13255, o is double?, false); Eval(13256, o is double?[], false); Eval(13257, o is decimal, false); Eval(13258, o is decimal[], false); Eval(13259, o is decimal?, false); Eval(13260, o is decimal?[], false); Eval(13261, o is IntPtr, false); Eval(13262, o is IntPtr[], false); Eval(13263, o is IntPtr?, false); Eval(13264, o is IntPtr?[], false); Eval(13265, o is UIntPtr, false); Eval(13266, o is UIntPtr[], false); Eval(13267, o is UIntPtr?, false); Eval(13268, o is UIntPtr?[], false); Eval(13269, o is Guid, false); Eval(13270, o is Guid[], false); Eval(13271, o is Guid?, false); Eval(13272, o is Guid?[], false); Eval(13273, o is GCHandle, false); Eval(13274, o is GCHandle[], false); Eval(13275, o is GCHandle?, false); Eval(13276, o is GCHandle?[], false); Eval(13277, o is object, true); Eval(13278, o is object[], false); Eval(13279, o is string, false); Eval(13280, o is string[], false); Eval(13281, o is ValueType, true); Eval(13282, o is ValueType[], false); Eval(13283, o is Array, false); Eval(13284, o is Array[], false); Eval(13285, o is Enum, false); Eval(13286, o is Enum[], false); Eval(13287, o is Delegate, false); Eval(13288, o is Delegate[], false); Eval(13289, o is MulticastDelegate, false); Eval(13290, o is MulticastDelegate[], false); Eval(13291, o is IEmpty, false); Eval(13292, o is IEmpty[], false); Eval(13293, o is INotEmpty, false); Eval(13294, o is INotEmpty[], false); Eval(13295, o is IEmptyGen<int>, false); Eval(13296, o is IEmptyGen<int>[], false); Eval(13297, o is INotEmptyGen<int>, false); Eval(13298, o is INotEmptyGen<int>[], false); Eval(13299, o is SimpleDelegate, false); Eval(13300, o is SimpleDelegate[], false); Eval(13301, o is GenericDelegate<int>, false); Eval(13302, o is GenericDelegate<int>[], false); Eval(13303, o is EmptyClass, false); Eval(13304, o is EmptyClass[], false); Eval(13305, o is NotEmptyClass, false); Eval(13306, o is NotEmptyClass[], false); Eval(13307, o is EmptyClassGen<int>, false); Eval(13308, o is EmptyClassGen<int>[], false); Eval(13309, o is NotEmptyClassGen<Guid>, false); Eval(13310, o is NotEmptyClassGen<Guid>[], false); Eval(13311, o is NotEmptyClassConstrainedGen<object>, false); Eval(13312, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13313, o is NestedClass, false); Eval(13314, o is NestedClass[], false); Eval(13315, o is NestedClassGen<Decimal>, false); Eval(13316, o is NestedClassGen<Decimal>[], false); Eval(13317, o is ImplementOneInterfaceC, false); Eval(13318, o is ImplementOneInterfaceC[], false); Eval(13319, o is ImplementTwoInterfaceC, false); Eval(13320, o is ImplementTwoInterfaceC[], false); Eval(13321, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13322, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13323, o is ImplementTwoInterfaceGenC<int>, false); Eval(13324, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13325, o is ImplementAllInterfaceC<int>, false); Eval(13326, o is ImplementAllInterfaceC<int>[], false); Eval(13327, o is SealedClass, false); Eval(13328, o is SealedClass[], false); } { sbyte? v = default(sbyte?); ValueType o = v; Eval(13329, o is EmptyStruct, false); Eval(13330, o is EmptyStruct[], false); Eval(13331, o is EmptyStruct?, false); Eval(13332, o is EmptyStruct?[], false); Eval(13333, o is NotEmptyStruct, false); Eval(13334, o is NotEmptyStruct[], false); Eval(13335, o is NotEmptyStruct?, false); Eval(13336, o is NotEmptyStruct?[], false); Eval(13337, o is EmptyStructGen<int>, false); Eval(13338, o is EmptyStructGen<int>[], false); Eval(13339, o is EmptyStructGen<int>?, false); Eval(13340, o is EmptyStructGen<int>?[], false); Eval(13341, o is NotEmptyStructGen<Guid>, false); Eval(13342, o is NotEmptyStructGen<Guid>[], false); Eval(13343, o is NotEmptyStructGen<Guid>?, false); Eval(13344, o is NotEmptyStructGen<Guid>?[], false); Eval(13345, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13346, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13347, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13348, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13349, o is NestedStruct, false); Eval(13350, o is NestedStruct[], false); Eval(13351, o is NestedStruct?, false); Eval(13352, o is NestedStruct?[], false); Eval(13353, o is NestedStructGen<Decimal>, false); Eval(13354, o is NestedStructGen<Decimal>[], false); Eval(13355, o is NestedStructGen<Decimal>?, false); Eval(13356, o is NestedStructGen<Decimal>?[], false); Eval(13357, o is ExplicitFieldOffsetStruct, false); Eval(13358, o is ExplicitFieldOffsetStruct[], false); Eval(13359, o is ExplicitFieldOffsetStruct?, false); Eval(13360, o is ExplicitFieldOffsetStruct?[], false); Eval(13369, o is MarshalAsStruct, false); Eval(13370, o is MarshalAsStruct[], false); Eval(13371, o is MarshalAsStruct?, false); Eval(13372, o is MarshalAsStruct?[], false); Eval(13373, o is ImplementOneInterface, false); Eval(13374, o is ImplementOneInterface[], false); Eval(13375, o is ImplementOneInterface?, false); Eval(13376, o is ImplementOneInterface?[], false); Eval(13377, o is ImplementTwoInterface, false); Eval(13378, o is ImplementTwoInterface[], false); Eval(13379, o is ImplementTwoInterface?, false); Eval(13380, o is ImplementTwoInterface?[], false); Eval(13381, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13382, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13383, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13384, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13385, o is ImplementTwoInterfaceGen<int>, false); Eval(13386, o is ImplementTwoInterfaceGen<int>[], false); Eval(13387, o is ImplementTwoInterfaceGen<int>?, false); Eval(13388, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13389, o is ImplementAllInterface<int>, false); Eval(13390, o is ImplementAllInterface<int>[], false); Eval(13391, o is ImplementAllInterface<int>?, false); Eval(13392, o is ImplementAllInterface<int>?[], false); Eval(13393, o is IntE, false); Eval(13394, o is IntE[], false); Eval(13395, o is IntE?, false); Eval(13396, o is IntE?[], false); Eval(13397, o is ByteE, false); Eval(13398, o is ByteE[], false); Eval(13399, o is ByteE?, false); Eval(13400, o is ByteE?[], false); Eval(13401, o is LongE, false); Eval(13402, o is LongE[], false); Eval(13403, o is LongE?, false); Eval(13404, o is LongE?[], false); Eval(13405, o is char, false); Eval(13406, o is char[], false); Eval(13407, o is char?, false); Eval(13408, o is char?[], false); Eval(13409, o is bool, false); Eval(13410, o is bool[], false); Eval(13411, o is bool?, false); Eval(13412, o is bool?[], false); Eval(13413, o is byte, false); Eval(13414, o is byte[], false); Eval(13415, o is byte?, false); Eval(13416, o is byte?[], false); Eval(13417, o is sbyte, false); Eval(13418, o is sbyte[], false); Eval(13419, o is sbyte?, false); Eval(13420, o is sbyte?[], false); Eval(13421, o is short, false); Eval(13422, o is short[], false); Eval(13423, o is short?, false); Eval(13424, o is short?[], false); Eval(13425, o is ushort, false); Eval(13426, o is ushort[], false); Eval(13427, o is ushort?, false); Eval(13428, o is ushort?[], false); Eval(13429, o is int, false); Eval(13430, o is int[], false); Eval(13431, o is int?, false); Eval(13432, o is int?[], false); Eval(13433, o is uint, false); Eval(13434, o is uint[], false); Eval(13435, o is uint?, false); Eval(13436, o is uint?[], false); Eval(13437, o is long, false); Eval(13438, o is long[], false); Eval(13439, o is long?, false); Eval(13440, o is long?[], false); Eval(13441, o is ulong, false); Eval(13442, o is ulong[], false); Eval(13443, o is ulong?, false); Eval(13444, o is ulong?[], false); Eval(13445, o is float, false); Eval(13446, o is float[], false); Eval(13447, o is float?, false); Eval(13448, o is float?[], false); Eval(13449, o is double, false); Eval(13450, o is double[], false); Eval(13451, o is double?, false); Eval(13452, o is double?[], false); Eval(13453, o is decimal, false); Eval(13454, o is decimal[], false); Eval(13455, o is decimal?, false); Eval(13456, o is decimal?[], false); Eval(13457, o is IntPtr, false); Eval(13458, o is IntPtr[], false); Eval(13459, o is IntPtr?, false); Eval(13460, o is IntPtr?[], false); Eval(13461, o is UIntPtr, false); Eval(13462, o is UIntPtr[], false); Eval(13463, o is UIntPtr?, false); Eval(13464, o is UIntPtr?[], false); Eval(13465, o is Guid, false); Eval(13466, o is Guid[], false); Eval(13467, o is Guid?, false); Eval(13468, o is Guid?[], false); Eval(13469, o is GCHandle, false); Eval(13470, o is GCHandle[], false); Eval(13471, o is GCHandle?, false); Eval(13472, o is GCHandle?[], false); Eval(13473, o is object, false); Eval(13474, o is object[], false); Eval(13475, o is string, false); Eval(13476, o is string[], false); Eval(13477, o is ValueType, false); Eval(13478, o is ValueType[], false); Eval(13479, o is Array, false); Eval(13480, o is Array[], false); Eval(13481, o is Enum, false); Eval(13482, o is Enum[], false); Eval(13483, o is Delegate, false); Eval(13484, o is Delegate[], false); Eval(13485, o is MulticastDelegate, false); Eval(13486, o is MulticastDelegate[], false); Eval(13487, o is IEmpty, false); Eval(13488, o is IEmpty[], false); Eval(13489, o is INotEmpty, false); Eval(13490, o is INotEmpty[], false); Eval(13491, o is IEmptyGen<int>, false); Eval(13492, o is IEmptyGen<int>[], false); Eval(13493, o is INotEmptyGen<int>, false); Eval(13494, o is INotEmptyGen<int>[], false); Eval(13495, o is SimpleDelegate, false); Eval(13496, o is SimpleDelegate[], false); Eval(13497, o is GenericDelegate<int>, false); Eval(13498, o is GenericDelegate<int>[], false); Eval(13499, o is EmptyClass, false); Eval(13500, o is EmptyClass[], false); Eval(13501, o is NotEmptyClass, false); Eval(13502, o is NotEmptyClass[], false); Eval(13503, o is EmptyClassGen<int>, false); Eval(13504, o is EmptyClassGen<int>[], false); Eval(13505, o is NotEmptyClassGen<Guid>, false); Eval(13506, o is NotEmptyClassGen<Guid>[], false); Eval(13507, o is NotEmptyClassConstrainedGen<object>, false); Eval(13508, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13509, o is NestedClass, false); Eval(13510, o is NestedClass[], false); Eval(13511, o is NestedClassGen<Decimal>, false); Eval(13512, o is NestedClassGen<Decimal>[], false); Eval(13513, o is ImplementOneInterfaceC, false); Eval(13514, o is ImplementOneInterfaceC[], false); Eval(13515, o is ImplementTwoInterfaceC, false); Eval(13516, o is ImplementTwoInterfaceC[], false); Eval(13517, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13518, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13519, o is ImplementTwoInterfaceGenC<int>, false); Eval(13520, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13521, o is ImplementAllInterfaceC<int>, false); Eval(13522, o is ImplementAllInterfaceC<int>[], false); Eval(13523, o is SealedClass, false); Eval(13524, o is SealedClass[], false); } } // end of test case 0023 private static void TestCase0024() { { short v = default(short); ValueType o = v; Eval(13525, o is EmptyStruct, false); Eval(13526, o is EmptyStruct[], false); Eval(13527, o is EmptyStruct?, false); Eval(13528, o is EmptyStruct?[], false); Eval(13529, o is NotEmptyStruct, false); Eval(13530, o is NotEmptyStruct[], false); Eval(13531, o is NotEmptyStruct?, false); Eval(13532, o is NotEmptyStruct?[], false); Eval(13533, o is EmptyStructGen<int>, false); Eval(13534, o is EmptyStructGen<int>[], false); Eval(13535, o is EmptyStructGen<int>?, false); Eval(13536, o is EmptyStructGen<int>?[], false); Eval(13537, o is NotEmptyStructGen<Guid>, false); Eval(13538, o is NotEmptyStructGen<Guid>[], false); Eval(13539, o is NotEmptyStructGen<Guid>?, false); Eval(13540, o is NotEmptyStructGen<Guid>?[], false); Eval(13541, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13542, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13543, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13544, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13545, o is NestedStruct, false); Eval(13546, o is NestedStruct[], false); Eval(13547, o is NestedStruct?, false); Eval(13548, o is NestedStruct?[], false); Eval(13549, o is NestedStructGen<Decimal>, false); Eval(13550, o is NestedStructGen<Decimal>[], false); Eval(13551, o is NestedStructGen<Decimal>?, false); Eval(13552, o is NestedStructGen<Decimal>?[], false); Eval(13553, o is ExplicitFieldOffsetStruct, false); Eval(13554, o is ExplicitFieldOffsetStruct[], false); Eval(13555, o is ExplicitFieldOffsetStruct?, false); Eval(13556, o is ExplicitFieldOffsetStruct?[], false); Eval(13565, o is MarshalAsStruct, false); Eval(13566, o is MarshalAsStruct[], false); Eval(13567, o is MarshalAsStruct?, false); Eval(13568, o is MarshalAsStruct?[], false); Eval(13569, o is ImplementOneInterface, false); Eval(13570, o is ImplementOneInterface[], false); Eval(13571, o is ImplementOneInterface?, false); Eval(13572, o is ImplementOneInterface?[], false); Eval(13573, o is ImplementTwoInterface, false); Eval(13574, o is ImplementTwoInterface[], false); Eval(13575, o is ImplementTwoInterface?, false); Eval(13576, o is ImplementTwoInterface?[], false); Eval(13577, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13578, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13579, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13580, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13581, o is ImplementTwoInterfaceGen<int>, false); Eval(13582, o is ImplementTwoInterfaceGen<int>[], false); Eval(13583, o is ImplementTwoInterfaceGen<int>?, false); Eval(13584, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13585, o is ImplementAllInterface<int>, false); Eval(13586, o is ImplementAllInterface<int>[], false); Eval(13587, o is ImplementAllInterface<int>?, false); Eval(13588, o is ImplementAllInterface<int>?[], false); Eval(13589, o is IntE, false); Eval(13590, o is IntE[], false); Eval(13591, o is IntE?, false); Eval(13592, o is IntE?[], false); Eval(13593, o is ByteE, false); Eval(13594, o is ByteE[], false); Eval(13595, o is ByteE?, false); Eval(13596, o is ByteE?[], false); Eval(13597, o is LongE, false); Eval(13598, o is LongE[], false); Eval(13599, o is LongE?, false); Eval(13600, o is LongE?[], false); Eval(13601, o is char, false); Eval(13602, o is char[], false); Eval(13603, o is char?, false); Eval(13604, o is char?[], false); Eval(13605, o is bool, false); Eval(13606, o is bool[], false); Eval(13607, o is bool?, false); Eval(13608, o is bool?[], false); Eval(13609, o is byte, false); Eval(13610, o is byte[], false); Eval(13611, o is byte?, false); Eval(13612, o is byte?[], false); Eval(13613, o is sbyte, false); Eval(13614, o is sbyte[], false); Eval(13615, o is sbyte?, false); Eval(13616, o is sbyte?[], false); Eval(13617, o is short, true); Eval(13618, o is short[], false); Eval(13619, o is short?, true); Eval(13620, o is short?[], false); Eval(13621, o is ushort, false); Eval(13622, o is ushort[], false); Eval(13623, o is ushort?, false); Eval(13624, o is ushort?[], false); Eval(13625, o is int, false); Eval(13626, o is int[], false); Eval(13627, o is int?, false); Eval(13628, o is int?[], false); Eval(13629, o is uint, false); Eval(13630, o is uint[], false); Eval(13631, o is uint?, false); Eval(13632, o is uint?[], false); Eval(13633, o is long, false); Eval(13634, o is long[], false); Eval(13635, o is long?, false); Eval(13636, o is long?[], false); Eval(13637, o is ulong, false); Eval(13638, o is ulong[], false); Eval(13639, o is ulong?, false); Eval(13640, o is ulong?[], false); Eval(13641, o is float, false); Eval(13642, o is float[], false); Eval(13643, o is float?, false); Eval(13644, o is float?[], false); Eval(13645, o is double, false); Eval(13646, o is double[], false); Eval(13647, o is double?, false); Eval(13648, o is double?[], false); Eval(13649, o is decimal, false); Eval(13650, o is decimal[], false); Eval(13651, o is decimal?, false); Eval(13652, o is decimal?[], false); Eval(13653, o is IntPtr, false); Eval(13654, o is IntPtr[], false); Eval(13655, o is IntPtr?, false); Eval(13656, o is IntPtr?[], false); Eval(13657, o is UIntPtr, false); Eval(13658, o is UIntPtr[], false); Eval(13659, o is UIntPtr?, false); Eval(13660, o is UIntPtr?[], false); Eval(13661, o is Guid, false); Eval(13662, o is Guid[], false); Eval(13663, o is Guid?, false); Eval(13664, o is Guid?[], false); Eval(13665, o is GCHandle, false); Eval(13666, o is GCHandle[], false); Eval(13667, o is GCHandle?, false); Eval(13668, o is GCHandle?[], false); Eval(13669, o is object, true); Eval(13670, o is object[], false); Eval(13671, o is string, false); Eval(13672, o is string[], false); Eval(13673, o is ValueType, true); Eval(13674, o is ValueType[], false); Eval(13675, o is Array, false); Eval(13676, o is Array[], false); Eval(13677, o is Enum, false); Eval(13678, o is Enum[], false); Eval(13679, o is Delegate, false); Eval(13680, o is Delegate[], false); Eval(13681, o is MulticastDelegate, false); Eval(13682, o is MulticastDelegate[], false); Eval(13683, o is IEmpty, false); Eval(13684, o is IEmpty[], false); Eval(13685, o is INotEmpty, false); Eval(13686, o is INotEmpty[], false); Eval(13687, o is IEmptyGen<int>, false); Eval(13688, o is IEmptyGen<int>[], false); Eval(13689, o is INotEmptyGen<int>, false); Eval(13690, o is INotEmptyGen<int>[], false); Eval(13691, o is SimpleDelegate, false); Eval(13692, o is SimpleDelegate[], false); Eval(13693, o is GenericDelegate<int>, false); Eval(13694, o is GenericDelegate<int>[], false); Eval(13695, o is EmptyClass, false); Eval(13696, o is EmptyClass[], false); Eval(13697, o is NotEmptyClass, false); Eval(13698, o is NotEmptyClass[], false); Eval(13699, o is EmptyClassGen<int>, false); Eval(13700, o is EmptyClassGen<int>[], false); Eval(13701, o is NotEmptyClassGen<Guid>, false); Eval(13702, o is NotEmptyClassGen<Guid>[], false); Eval(13703, o is NotEmptyClassConstrainedGen<object>, false); Eval(13704, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13705, o is NestedClass, false); Eval(13706, o is NestedClass[], false); Eval(13707, o is NestedClassGen<Decimal>, false); Eval(13708, o is NestedClassGen<Decimal>[], false); Eval(13709, o is ImplementOneInterfaceC, false); Eval(13710, o is ImplementOneInterfaceC[], false); Eval(13711, o is ImplementTwoInterfaceC, false); Eval(13712, o is ImplementTwoInterfaceC[], false); Eval(13713, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13714, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13715, o is ImplementTwoInterfaceGenC<int>, false); Eval(13716, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13717, o is ImplementAllInterfaceC<int>, false); Eval(13718, o is ImplementAllInterfaceC<int>[], false); Eval(13719, o is SealedClass, false); Eval(13720, o is SealedClass[], false); } { short? v = default(short); ValueType o = v; Eval(13721, o is EmptyStruct, false); Eval(13722, o is EmptyStruct[], false); Eval(13723, o is EmptyStruct?, false); Eval(13724, o is EmptyStruct?[], false); Eval(13725, o is NotEmptyStruct, false); Eval(13726, o is NotEmptyStruct[], false); Eval(13727, o is NotEmptyStruct?, false); Eval(13728, o is NotEmptyStruct?[], false); Eval(13729, o is EmptyStructGen<int>, false); Eval(13730, o is EmptyStructGen<int>[], false); Eval(13731, o is EmptyStructGen<int>?, false); Eval(13732, o is EmptyStructGen<int>?[], false); Eval(13733, o is NotEmptyStructGen<Guid>, false); Eval(13734, o is NotEmptyStructGen<Guid>[], false); Eval(13735, o is NotEmptyStructGen<Guid>?, false); Eval(13736, o is NotEmptyStructGen<Guid>?[], false); Eval(13737, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13738, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13739, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13740, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13741, o is NestedStruct, false); Eval(13742, o is NestedStruct[], false); Eval(13743, o is NestedStruct?, false); Eval(13744, o is NestedStruct?[], false); Eval(13745, o is NestedStructGen<Decimal>, false); Eval(13746, o is NestedStructGen<Decimal>[], false); Eval(13747, o is NestedStructGen<Decimal>?, false); Eval(13748, o is NestedStructGen<Decimal>?[], false); Eval(13749, o is ExplicitFieldOffsetStruct, false); Eval(13750, o is ExplicitFieldOffsetStruct[], false); Eval(13751, o is ExplicitFieldOffsetStruct?, false); Eval(13752, o is ExplicitFieldOffsetStruct?[], false); Eval(13761, o is MarshalAsStruct, false); Eval(13762, o is MarshalAsStruct[], false); Eval(13763, o is MarshalAsStruct?, false); Eval(13764, o is MarshalAsStruct?[], false); Eval(13765, o is ImplementOneInterface, false); Eval(13766, o is ImplementOneInterface[], false); Eval(13767, o is ImplementOneInterface?, false); Eval(13768, o is ImplementOneInterface?[], false); Eval(13769, o is ImplementTwoInterface, false); Eval(13770, o is ImplementTwoInterface[], false); Eval(13771, o is ImplementTwoInterface?, false); Eval(13772, o is ImplementTwoInterface?[], false); Eval(13773, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13774, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13775, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13776, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13777, o is ImplementTwoInterfaceGen<int>, false); Eval(13778, o is ImplementTwoInterfaceGen<int>[], false); Eval(13779, o is ImplementTwoInterfaceGen<int>?, false); Eval(13780, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13781, o is ImplementAllInterface<int>, false); Eval(13782, o is ImplementAllInterface<int>[], false); Eval(13783, o is ImplementAllInterface<int>?, false); Eval(13784, o is ImplementAllInterface<int>?[], false); Eval(13785, o is IntE, false); Eval(13786, o is IntE[], false); Eval(13787, o is IntE?, false); Eval(13788, o is IntE?[], false); Eval(13789, o is ByteE, false); Eval(13790, o is ByteE[], false); Eval(13791, o is ByteE?, false); Eval(13792, o is ByteE?[], false); Eval(13793, o is LongE, false); Eval(13794, o is LongE[], false); Eval(13795, o is LongE?, false); Eval(13796, o is LongE?[], false); Eval(13797, o is char, false); Eval(13798, o is char[], false); Eval(13799, o is char?, false); Eval(13800, o is char?[], false); Eval(13801, o is bool, false); Eval(13802, o is bool[], false); Eval(13803, o is bool?, false); Eval(13804, o is bool?[], false); Eval(13805, o is byte, false); Eval(13806, o is byte[], false); Eval(13807, o is byte?, false); Eval(13808, o is byte?[], false); Eval(13809, o is sbyte, false); Eval(13810, o is sbyte[], false); Eval(13811, o is sbyte?, false); Eval(13812, o is sbyte?[], false); Eval(13813, o is short, true); Eval(13814, o is short[], false); Eval(13815, o is short?, true); Eval(13816, o is short?[], false); Eval(13817, o is ushort, false); Eval(13818, o is ushort[], false); Eval(13819, o is ushort?, false); Eval(13820, o is ushort?[], false); Eval(13821, o is int, false); Eval(13822, o is int[], false); Eval(13823, o is int?, false); Eval(13824, o is int?[], false); Eval(13825, o is uint, false); Eval(13826, o is uint[], false); Eval(13827, o is uint?, false); Eval(13828, o is uint?[], false); Eval(13829, o is long, false); Eval(13830, o is long[], false); Eval(13831, o is long?, false); Eval(13832, o is long?[], false); Eval(13833, o is ulong, false); Eval(13834, o is ulong[], false); Eval(13835, o is ulong?, false); Eval(13836, o is ulong?[], false); Eval(13837, o is float, false); Eval(13838, o is float[], false); Eval(13839, o is float?, false); Eval(13840, o is float?[], false); Eval(13841, o is double, false); Eval(13842, o is double[], false); Eval(13843, o is double?, false); Eval(13844, o is double?[], false); Eval(13845, o is decimal, false); Eval(13846, o is decimal[], false); Eval(13847, o is decimal?, false); Eval(13848, o is decimal?[], false); Eval(13849, o is IntPtr, false); Eval(13850, o is IntPtr[], false); Eval(13851, o is IntPtr?, false); Eval(13852, o is IntPtr?[], false); Eval(13853, o is UIntPtr, false); Eval(13854, o is UIntPtr[], false); Eval(13855, o is UIntPtr?, false); Eval(13856, o is UIntPtr?[], false); Eval(13857, o is Guid, false); Eval(13858, o is Guid[], false); Eval(13859, o is Guid?, false); Eval(13860, o is Guid?[], false); Eval(13861, o is GCHandle, false); Eval(13862, o is GCHandle[], false); Eval(13863, o is GCHandle?, false); Eval(13864, o is GCHandle?[], false); Eval(13865, o is object, true); Eval(13866, o is object[], false); Eval(13867, o is string, false); Eval(13868, o is string[], false); Eval(13869, o is ValueType, true); Eval(13870, o is ValueType[], false); Eval(13871, o is Array, false); Eval(13872, o is Array[], false); Eval(13873, o is Enum, false); Eval(13874, o is Enum[], false); Eval(13875, o is Delegate, false); Eval(13876, o is Delegate[], false); Eval(13877, o is MulticastDelegate, false); Eval(13878, o is MulticastDelegate[], false); Eval(13879, o is IEmpty, false); Eval(13880, o is IEmpty[], false); Eval(13881, o is INotEmpty, false); Eval(13882, o is INotEmpty[], false); Eval(13883, o is IEmptyGen<int>, false); Eval(13884, o is IEmptyGen<int>[], false); Eval(13885, o is INotEmptyGen<int>, false); Eval(13886, o is INotEmptyGen<int>[], false); Eval(13887, o is SimpleDelegate, false); Eval(13888, o is SimpleDelegate[], false); Eval(13889, o is GenericDelegate<int>, false); Eval(13890, o is GenericDelegate<int>[], false); Eval(13891, o is EmptyClass, false); Eval(13892, o is EmptyClass[], false); Eval(13893, o is NotEmptyClass, false); Eval(13894, o is NotEmptyClass[], false); Eval(13895, o is EmptyClassGen<int>, false); Eval(13896, o is EmptyClassGen<int>[], false); Eval(13897, o is NotEmptyClassGen<Guid>, false); Eval(13898, o is NotEmptyClassGen<Guid>[], false); Eval(13899, o is NotEmptyClassConstrainedGen<object>, false); Eval(13900, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13901, o is NestedClass, false); Eval(13902, o is NestedClass[], false); Eval(13903, o is NestedClassGen<Decimal>, false); Eval(13904, o is NestedClassGen<Decimal>[], false); Eval(13905, o is ImplementOneInterfaceC, false); Eval(13906, o is ImplementOneInterfaceC[], false); Eval(13907, o is ImplementTwoInterfaceC, false); Eval(13908, o is ImplementTwoInterfaceC[], false); Eval(13909, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13910, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13911, o is ImplementTwoInterfaceGenC<int>, false); Eval(13912, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13913, o is ImplementAllInterfaceC<int>, false); Eval(13914, o is ImplementAllInterfaceC<int>[], false); Eval(13915, o is SealedClass, false); Eval(13916, o is SealedClass[], false); } { short? v = default(short?); ValueType o = v; Eval(13917, o is EmptyStruct, false); Eval(13918, o is EmptyStruct[], false); Eval(13919, o is EmptyStruct?, false); Eval(13920, o is EmptyStruct?[], false); Eval(13921, o is NotEmptyStruct, false); Eval(13922, o is NotEmptyStruct[], false); Eval(13923, o is NotEmptyStruct?, false); Eval(13924, o is NotEmptyStruct?[], false); Eval(13925, o is EmptyStructGen<int>, false); Eval(13926, o is EmptyStructGen<int>[], false); Eval(13927, o is EmptyStructGen<int>?, false); Eval(13928, o is EmptyStructGen<int>?[], false); Eval(13929, o is NotEmptyStructGen<Guid>, false); Eval(13930, o is NotEmptyStructGen<Guid>[], false); Eval(13931, o is NotEmptyStructGen<Guid>?, false); Eval(13932, o is NotEmptyStructGen<Guid>?[], false); Eval(13933, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13934, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13935, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13936, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13937, o is NestedStruct, false); Eval(13938, o is NestedStruct[], false); Eval(13939, o is NestedStruct?, false); Eval(13940, o is NestedStruct?[], false); Eval(13941, o is NestedStructGen<Decimal>, false); Eval(13942, o is NestedStructGen<Decimal>[], false); Eval(13943, o is NestedStructGen<Decimal>?, false); Eval(13944, o is NestedStructGen<Decimal>?[], false); Eval(13945, o is ExplicitFieldOffsetStruct, false); Eval(13946, o is ExplicitFieldOffsetStruct[], false); Eval(13947, o is ExplicitFieldOffsetStruct?, false); Eval(13948, o is ExplicitFieldOffsetStruct?[], false); Eval(13957, o is MarshalAsStruct, false); Eval(13958, o is MarshalAsStruct[], false); Eval(13959, o is MarshalAsStruct?, false); Eval(13960, o is MarshalAsStruct?[], false); Eval(13961, o is ImplementOneInterface, false); Eval(13962, o is ImplementOneInterface[], false); Eval(13963, o is ImplementOneInterface?, false); Eval(13964, o is ImplementOneInterface?[], false); Eval(13965, o is ImplementTwoInterface, false); Eval(13966, o is ImplementTwoInterface[], false); Eval(13967, o is ImplementTwoInterface?, false); Eval(13968, o is ImplementTwoInterface?[], false); Eval(13969, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13970, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13971, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13972, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13973, o is ImplementTwoInterfaceGen<int>, false); Eval(13974, o is ImplementTwoInterfaceGen<int>[], false); Eval(13975, o is ImplementTwoInterfaceGen<int>?, false); Eval(13976, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13977, o is ImplementAllInterface<int>, false); Eval(13978, o is ImplementAllInterface<int>[], false); Eval(13979, o is ImplementAllInterface<int>?, false); Eval(13980, o is ImplementAllInterface<int>?[], false); Eval(13981, o is IntE, false); Eval(13982, o is IntE[], false); Eval(13983, o is IntE?, false); Eval(13984, o is IntE?[], false); Eval(13985, o is ByteE, false); Eval(13986, o is ByteE[], false); Eval(13987, o is ByteE?, false); Eval(13988, o is ByteE?[], false); Eval(13989, o is LongE, false); Eval(13990, o is LongE[], false); Eval(13991, o is LongE?, false); Eval(13992, o is LongE?[], false); Eval(13993, o is char, false); Eval(13994, o is char[], false); Eval(13995, o is char?, false); Eval(13996, o is char?[], false); Eval(13997, o is bool, false); Eval(13998, o is bool[], false); Eval(13999, o is bool?, false); Eval(14000, o is bool?[], false); Eval(14001, o is byte, false); Eval(14002, o is byte[], false); Eval(14003, o is byte?, false); Eval(14004, o is byte?[], false); Eval(14005, o is sbyte, false); Eval(14006, o is sbyte[], false); Eval(14007, o is sbyte?, false); Eval(14008, o is sbyte?[], false); Eval(14009, o is short, false); Eval(14010, o is short[], false); Eval(14011, o is short?, false); Eval(14012, o is short?[], false); Eval(14013, o is ushort, false); Eval(14014, o is ushort[], false); Eval(14015, o is ushort?, false); Eval(14016, o is ushort?[], false); Eval(14017, o is int, false); Eval(14018, o is int[], false); Eval(14019, o is int?, false); Eval(14020, o is int?[], false); Eval(14021, o is uint, false); Eval(14022, o is uint[], false); Eval(14023, o is uint?, false); Eval(14024, o is uint?[], false); Eval(14025, o is long, false); Eval(14026, o is long[], false); Eval(14027, o is long?, false); Eval(14028, o is long?[], false); Eval(14029, o is ulong, false); Eval(14030, o is ulong[], false); Eval(14031, o is ulong?, false); Eval(14032, o is ulong?[], false); Eval(14033, o is float, false); Eval(14034, o is float[], false); Eval(14035, o is float?, false); Eval(14036, o is float?[], false); Eval(14037, o is double, false); Eval(14038, o is double[], false); Eval(14039, o is double?, false); Eval(14040, o is double?[], false); Eval(14041, o is decimal, false); Eval(14042, o is decimal[], false); Eval(14043, o is decimal?, false); Eval(14044, o is decimal?[], false); Eval(14045, o is IntPtr, false); Eval(14046, o is IntPtr[], false); Eval(14047, o is IntPtr?, false); Eval(14048, o is IntPtr?[], false); Eval(14049, o is UIntPtr, false); Eval(14050, o is UIntPtr[], false); Eval(14051, o is UIntPtr?, false); Eval(14052, o is UIntPtr?[], false); Eval(14053, o is Guid, false); Eval(14054, o is Guid[], false); Eval(14055, o is Guid?, false); Eval(14056, o is Guid?[], false); Eval(14057, o is GCHandle, false); Eval(14058, o is GCHandle[], false); Eval(14059, o is GCHandle?, false); Eval(14060, o is GCHandle?[], false); Eval(14061, o is object, false); Eval(14062, o is object[], false); Eval(14063, o is string, false); Eval(14064, o is string[], false); Eval(14065, o is ValueType, false); Eval(14066, o is ValueType[], false); Eval(14067, o is Array, false); Eval(14068, o is Array[], false); Eval(14069, o is Enum, false); Eval(14070, o is Enum[], false); Eval(14071, o is Delegate, false); Eval(14072, o is Delegate[], false); Eval(14073, o is MulticastDelegate, false); Eval(14074, o is MulticastDelegate[], false); Eval(14075, o is IEmpty, false); Eval(14076, o is IEmpty[], false); Eval(14077, o is INotEmpty, false); Eval(14078, o is INotEmpty[], false); Eval(14079, o is IEmptyGen<int>, false); Eval(14080, o is IEmptyGen<int>[], false); Eval(14081, o is INotEmptyGen<int>, false); Eval(14082, o is INotEmptyGen<int>[], false); Eval(14083, o is SimpleDelegate, false); Eval(14084, o is SimpleDelegate[], false); Eval(14085, o is GenericDelegate<int>, false); Eval(14086, o is GenericDelegate<int>[], false); Eval(14087, o is EmptyClass, false); Eval(14088, o is EmptyClass[], false); Eval(14089, o is NotEmptyClass, false); Eval(14090, o is NotEmptyClass[], false); Eval(14091, o is EmptyClassGen<int>, false); Eval(14092, o is EmptyClassGen<int>[], false); Eval(14093, o is NotEmptyClassGen<Guid>, false); Eval(14094, o is NotEmptyClassGen<Guid>[], false); Eval(14095, o is NotEmptyClassConstrainedGen<object>, false); Eval(14096, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14097, o is NestedClass, false); Eval(14098, o is NestedClass[], false); Eval(14099, o is NestedClassGen<Decimal>, false); Eval(14100, o is NestedClassGen<Decimal>[], false); Eval(14101, o is ImplementOneInterfaceC, false); Eval(14102, o is ImplementOneInterfaceC[], false); Eval(14103, o is ImplementTwoInterfaceC, false); Eval(14104, o is ImplementTwoInterfaceC[], false); Eval(14105, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14106, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14107, o is ImplementTwoInterfaceGenC<int>, false); Eval(14108, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14109, o is ImplementAllInterfaceC<int>, false); Eval(14110, o is ImplementAllInterfaceC<int>[], false); Eval(14111, o is SealedClass, false); Eval(14112, o is SealedClass[], false); } } // end of test case 0024 private static void TestCase0025() { { ushort v = default(ushort); ValueType o = v; Eval(14113, o is EmptyStruct, false); Eval(14114, o is EmptyStruct[], false); Eval(14115, o is EmptyStruct?, false); Eval(14116, o is EmptyStruct?[], false); Eval(14117, o is NotEmptyStruct, false); Eval(14118, o is NotEmptyStruct[], false); Eval(14119, o is NotEmptyStruct?, false); Eval(14120, o is NotEmptyStruct?[], false); Eval(14121, o is EmptyStructGen<int>, false); Eval(14122, o is EmptyStructGen<int>[], false); Eval(14123, o is EmptyStructGen<int>?, false); Eval(14124, o is EmptyStructGen<int>?[], false); Eval(14125, o is NotEmptyStructGen<Guid>, false); Eval(14126, o is NotEmptyStructGen<Guid>[], false); Eval(14127, o is NotEmptyStructGen<Guid>?, false); Eval(14128, o is NotEmptyStructGen<Guid>?[], false); Eval(14129, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14130, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14131, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14132, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14133, o is NestedStruct, false); Eval(14134, o is NestedStruct[], false); Eval(14135, o is NestedStruct?, false); Eval(14136, o is NestedStruct?[], false); Eval(14137, o is NestedStructGen<Decimal>, false); Eval(14138, o is NestedStructGen<Decimal>[], false); Eval(14139, o is NestedStructGen<Decimal>?, false); Eval(14140, o is NestedStructGen<Decimal>?[], false); Eval(14141, o is ExplicitFieldOffsetStruct, false); Eval(14142, o is ExplicitFieldOffsetStruct[], false); Eval(14143, o is ExplicitFieldOffsetStruct?, false); Eval(14144, o is ExplicitFieldOffsetStruct?[], false); Eval(14153, o is MarshalAsStruct, false); Eval(14154, o is MarshalAsStruct[], false); Eval(14155, o is MarshalAsStruct?, false); Eval(14156, o is MarshalAsStruct?[], false); Eval(14157, o is ImplementOneInterface, false); Eval(14158, o is ImplementOneInterface[], false); Eval(14159, o is ImplementOneInterface?, false); Eval(14160, o is ImplementOneInterface?[], false); Eval(14161, o is ImplementTwoInterface, false); Eval(14162, o is ImplementTwoInterface[], false); Eval(14163, o is ImplementTwoInterface?, false); Eval(14164, o is ImplementTwoInterface?[], false); Eval(14165, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14166, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14167, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14168, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14169, o is ImplementTwoInterfaceGen<int>, false); Eval(14170, o is ImplementTwoInterfaceGen<int>[], false); Eval(14171, o is ImplementTwoInterfaceGen<int>?, false); Eval(14172, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14173, o is ImplementAllInterface<int>, false); Eval(14174, o is ImplementAllInterface<int>[], false); Eval(14175, o is ImplementAllInterface<int>?, false); Eval(14176, o is ImplementAllInterface<int>?[], false); Eval(14177, o is IntE, false); Eval(14178, o is IntE[], false); Eval(14179, o is IntE?, false); Eval(14180, o is IntE?[], false); Eval(14181, o is ByteE, false); Eval(14182, o is ByteE[], false); Eval(14183, o is ByteE?, false); Eval(14184, o is ByteE?[], false); Eval(14185, o is LongE, false); Eval(14186, o is LongE[], false); Eval(14187, o is LongE?, false); Eval(14188, o is LongE?[], false); Eval(14189, o is char, false); Eval(14190, o is char[], false); Eval(14191, o is char?, false); Eval(14192, o is char?[], false); Eval(14193, o is bool, false); Eval(14194, o is bool[], false); Eval(14195, o is bool?, false); Eval(14196, o is bool?[], false); Eval(14197, o is byte, false); Eval(14198, o is byte[], false); Eval(14199, o is byte?, false); Eval(14200, o is byte?[], false); Eval(14201, o is sbyte, false); Eval(14202, o is sbyte[], false); Eval(14203, o is sbyte?, false); Eval(14204, o is sbyte?[], false); Eval(14205, o is short, false); Eval(14206, o is short[], false); Eval(14207, o is short?, false); Eval(14208, o is short?[], false); Eval(14209, o is ushort, true); Eval(14210, o is ushort[], false); Eval(14211, o is ushort?, true); Eval(14212, o is ushort?[], false); Eval(14213, o is int, false); Eval(14214, o is int[], false); Eval(14215, o is int?, false); Eval(14216, o is int?[], false); Eval(14217, o is uint, false); Eval(14218, o is uint[], false); Eval(14219, o is uint?, false); Eval(14220, o is uint?[], false); Eval(14221, o is long, false); Eval(14222, o is long[], false); Eval(14223, o is long?, false); Eval(14224, o is long?[], false); Eval(14225, o is ulong, false); Eval(14226, o is ulong[], false); Eval(14227, o is ulong?, false); Eval(14228, o is ulong?[], false); Eval(14229, o is float, false); Eval(14230, o is float[], false); Eval(14231, o is float?, false); Eval(14232, o is float?[], false); Eval(14233, o is double, false); Eval(14234, o is double[], false); Eval(14235, o is double?, false); Eval(14236, o is double?[], false); Eval(14237, o is decimal, false); Eval(14238, o is decimal[], false); Eval(14239, o is decimal?, false); Eval(14240, o is decimal?[], false); Eval(14241, o is IntPtr, false); Eval(14242, o is IntPtr[], false); Eval(14243, o is IntPtr?, false); Eval(14244, o is IntPtr?[], false); Eval(14245, o is UIntPtr, false); Eval(14246, o is UIntPtr[], false); Eval(14247, o is UIntPtr?, false); Eval(14248, o is UIntPtr?[], false); Eval(14249, o is Guid, false); Eval(14250, o is Guid[], false); Eval(14251, o is Guid?, false); Eval(14252, o is Guid?[], false); Eval(14253, o is GCHandle, false); Eval(14254, o is GCHandle[], false); Eval(14255, o is GCHandle?, false); Eval(14256, o is GCHandle?[], false); Eval(14257, o is object, true); Eval(14258, o is object[], false); Eval(14259, o is string, false); Eval(14260, o is string[], false); Eval(14261, o is ValueType, true); Eval(14262, o is ValueType[], false); Eval(14263, o is Array, false); Eval(14264, o is Array[], false); Eval(14265, o is Enum, false); Eval(14266, o is Enum[], false); Eval(14267, o is Delegate, false); Eval(14268, o is Delegate[], false); Eval(14269, o is MulticastDelegate, false); Eval(14270, o is MulticastDelegate[], false); Eval(14271, o is IEmpty, false); Eval(14272, o is IEmpty[], false); Eval(14273, o is INotEmpty, false); Eval(14274, o is INotEmpty[], false); Eval(14275, o is IEmptyGen<int>, false); Eval(14276, o is IEmptyGen<int>[], false); Eval(14277, o is INotEmptyGen<int>, false); Eval(14278, o is INotEmptyGen<int>[], false); Eval(14279, o is SimpleDelegate, false); Eval(14280, o is SimpleDelegate[], false); Eval(14281, o is GenericDelegate<int>, false); Eval(14282, o is GenericDelegate<int>[], false); Eval(14283, o is EmptyClass, false); Eval(14284, o is EmptyClass[], false); Eval(14285, o is NotEmptyClass, false); Eval(14286, o is NotEmptyClass[], false); Eval(14287, o is EmptyClassGen<int>, false); Eval(14288, o is EmptyClassGen<int>[], false); Eval(14289, o is NotEmptyClassGen<Guid>, false); Eval(14290, o is NotEmptyClassGen<Guid>[], false); Eval(14291, o is NotEmptyClassConstrainedGen<object>, false); Eval(14292, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14293, o is NestedClass, false); Eval(14294, o is NestedClass[], false); Eval(14295, o is NestedClassGen<Decimal>, false); Eval(14296, o is NestedClassGen<Decimal>[], false); Eval(14297, o is ImplementOneInterfaceC, false); Eval(14298, o is ImplementOneInterfaceC[], false); Eval(14299, o is ImplementTwoInterfaceC, false); Eval(14300, o is ImplementTwoInterfaceC[], false); Eval(14301, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14302, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14303, o is ImplementTwoInterfaceGenC<int>, false); Eval(14304, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14305, o is ImplementAllInterfaceC<int>, false); Eval(14306, o is ImplementAllInterfaceC<int>[], false); Eval(14307, o is SealedClass, false); Eval(14308, o is SealedClass[], false); } { ushort? v = default(ushort); ValueType o = v; Eval(14309, o is EmptyStruct, false); Eval(14310, o is EmptyStruct[], false); Eval(14311, o is EmptyStruct?, false); Eval(14312, o is EmptyStruct?[], false); Eval(14313, o is NotEmptyStruct, false); Eval(14314, o is NotEmptyStruct[], false); Eval(14315, o is NotEmptyStruct?, false); Eval(14316, o is NotEmptyStruct?[], false); Eval(14317, o is EmptyStructGen<int>, false); Eval(14318, o is EmptyStructGen<int>[], false); Eval(14319, o is EmptyStructGen<int>?, false); Eval(14320, o is EmptyStructGen<int>?[], false); Eval(14321, o is NotEmptyStructGen<Guid>, false); Eval(14322, o is NotEmptyStructGen<Guid>[], false); Eval(14323, o is NotEmptyStructGen<Guid>?, false); Eval(14324, o is NotEmptyStructGen<Guid>?[], false); Eval(14325, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14326, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14327, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14328, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14329, o is NestedStruct, false); Eval(14330, o is NestedStruct[], false); Eval(14331, o is NestedStruct?, false); Eval(14332, o is NestedStruct?[], false); Eval(14333, o is NestedStructGen<Decimal>, false); Eval(14334, o is NestedStructGen<Decimal>[], false); Eval(14335, o is NestedStructGen<Decimal>?, false); Eval(14336, o is NestedStructGen<Decimal>?[], false); Eval(14337, o is ExplicitFieldOffsetStruct, false); Eval(14338, o is ExplicitFieldOffsetStruct[], false); Eval(14339, o is ExplicitFieldOffsetStruct?, false); Eval(14340, o is ExplicitFieldOffsetStruct?[], false); Eval(14349, o is MarshalAsStruct, false); Eval(14350, o is MarshalAsStruct[], false); Eval(14351, o is MarshalAsStruct?, false); Eval(14352, o is MarshalAsStruct?[], false); Eval(14353, o is ImplementOneInterface, false); Eval(14354, o is ImplementOneInterface[], false); Eval(14355, o is ImplementOneInterface?, false); Eval(14356, o is ImplementOneInterface?[], false); Eval(14357, o is ImplementTwoInterface, false); Eval(14358, o is ImplementTwoInterface[], false); Eval(14359, o is ImplementTwoInterface?, false); Eval(14360, o is ImplementTwoInterface?[], false); Eval(14361, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14362, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14363, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14364, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14365, o is ImplementTwoInterfaceGen<int>, false); Eval(14366, o is ImplementTwoInterfaceGen<int>[], false); Eval(14367, o is ImplementTwoInterfaceGen<int>?, false); Eval(14368, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14369, o is ImplementAllInterface<int>, false); Eval(14370, o is ImplementAllInterface<int>[], false); Eval(14371, o is ImplementAllInterface<int>?, false); Eval(14372, o is ImplementAllInterface<int>?[], false); Eval(14373, o is IntE, false); Eval(14374, o is IntE[], false); Eval(14375, o is IntE?, false); Eval(14376, o is IntE?[], false); Eval(14377, o is ByteE, false); Eval(14378, o is ByteE[], false); Eval(14379, o is ByteE?, false); Eval(14380, o is ByteE?[], false); Eval(14381, o is LongE, false); Eval(14382, o is LongE[], false); Eval(14383, o is LongE?, false); Eval(14384, o is LongE?[], false); Eval(14385, o is char, false); Eval(14386, o is char[], false); Eval(14387, o is char?, false); Eval(14388, o is char?[], false); Eval(14389, o is bool, false); Eval(14390, o is bool[], false); Eval(14391, o is bool?, false); Eval(14392, o is bool?[], false); Eval(14393, o is byte, false); Eval(14394, o is byte[], false); Eval(14395, o is byte?, false); Eval(14396, o is byte?[], false); Eval(14397, o is sbyte, false); Eval(14398, o is sbyte[], false); Eval(14399, o is sbyte?, false); Eval(14400, o is sbyte?[], false); Eval(14401, o is short, false); Eval(14402, o is short[], false); Eval(14403, o is short?, false); Eval(14404, o is short?[], false); Eval(14405, o is ushort, true); Eval(14406, o is ushort[], false); Eval(14407, o is ushort?, true); Eval(14408, o is ushort?[], false); Eval(14409, o is int, false); Eval(14410, o is int[], false); Eval(14411, o is int?, false); Eval(14412, o is int?[], false); Eval(14413, o is uint, false); Eval(14414, o is uint[], false); Eval(14415, o is uint?, false); Eval(14416, o is uint?[], false); Eval(14417, o is long, false); Eval(14418, o is long[], false); Eval(14419, o is long?, false); Eval(14420, o is long?[], false); Eval(14421, o is ulong, false); Eval(14422, o is ulong[], false); Eval(14423, o is ulong?, false); Eval(14424, o is ulong?[], false); Eval(14425, o is float, false); Eval(14426, o is float[], false); Eval(14427, o is float?, false); Eval(14428, o is float?[], false); Eval(14429, o is double, false); Eval(14430, o is double[], false); Eval(14431, o is double?, false); Eval(14432, o is double?[], false); Eval(14433, o is decimal, false); Eval(14434, o is decimal[], false); Eval(14435, o is decimal?, false); Eval(14436, o is decimal?[], false); Eval(14437, o is IntPtr, false); Eval(14438, o is IntPtr[], false); Eval(14439, o is IntPtr?, false); Eval(14440, o is IntPtr?[], false); Eval(14441, o is UIntPtr, false); Eval(14442, o is UIntPtr[], false); Eval(14443, o is UIntPtr?, false); Eval(14444, o is UIntPtr?[], false); Eval(14445, o is Guid, false); Eval(14446, o is Guid[], false); Eval(14447, o is Guid?, false); Eval(14448, o is Guid?[], false); Eval(14449, o is GCHandle, false); Eval(14450, o is GCHandle[], false); Eval(14451, o is GCHandle?, false); Eval(14452, o is GCHandle?[], false); Eval(14453, o is object, true); Eval(14454, o is object[], false); Eval(14455, o is string, false); Eval(14456, o is string[], false); Eval(14457, o is ValueType, true); Eval(14458, o is ValueType[], false); Eval(14459, o is Array, false); Eval(14460, o is Array[], false); Eval(14461, o is Enum, false); Eval(14462, o is Enum[], false); Eval(14463, o is Delegate, false); Eval(14464, o is Delegate[], false); Eval(14465, o is MulticastDelegate, false); Eval(14466, o is MulticastDelegate[], false); Eval(14467, o is IEmpty, false); Eval(14468, o is IEmpty[], false); Eval(14469, o is INotEmpty, false); Eval(14470, o is INotEmpty[], false); Eval(14471, o is IEmptyGen<int>, false); Eval(14472, o is IEmptyGen<int>[], false); Eval(14473, o is INotEmptyGen<int>, false); Eval(14474, o is INotEmptyGen<int>[], false); Eval(14475, o is SimpleDelegate, false); Eval(14476, o is SimpleDelegate[], false); Eval(14477, o is GenericDelegate<int>, false); Eval(14478, o is GenericDelegate<int>[], false); Eval(14479, o is EmptyClass, false); Eval(14480, o is EmptyClass[], false); Eval(14481, o is NotEmptyClass, false); Eval(14482, o is NotEmptyClass[], false); Eval(14483, o is EmptyClassGen<int>, false); Eval(14484, o is EmptyClassGen<int>[], false); Eval(14485, o is NotEmptyClassGen<Guid>, false); Eval(14486, o is NotEmptyClassGen<Guid>[], false); Eval(14487, o is NotEmptyClassConstrainedGen<object>, false); Eval(14488, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14489, o is NestedClass, false); Eval(14490, o is NestedClass[], false); Eval(14491, o is NestedClassGen<Decimal>, false); Eval(14492, o is NestedClassGen<Decimal>[], false); Eval(14493, o is ImplementOneInterfaceC, false); Eval(14494, o is ImplementOneInterfaceC[], false); Eval(14495, o is ImplementTwoInterfaceC, false); Eval(14496, o is ImplementTwoInterfaceC[], false); Eval(14497, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14498, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14499, o is ImplementTwoInterfaceGenC<int>, false); Eval(14500, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14501, o is ImplementAllInterfaceC<int>, false); Eval(14502, o is ImplementAllInterfaceC<int>[], false); Eval(14503, o is SealedClass, false); Eval(14504, o is SealedClass[], false); } { ushort? v = default(ushort?); ValueType o = v; Eval(14505, o is EmptyStruct, false); Eval(14506, o is EmptyStruct[], false); Eval(14507, o is EmptyStruct?, false); Eval(14508, o is EmptyStruct?[], false); Eval(14509, o is NotEmptyStruct, false); Eval(14510, o is NotEmptyStruct[], false); Eval(14511, o is NotEmptyStruct?, false); Eval(14512, o is NotEmptyStruct?[], false); Eval(14513, o is EmptyStructGen<int>, false); Eval(14514, o is EmptyStructGen<int>[], false); Eval(14515, o is EmptyStructGen<int>?, false); Eval(14516, o is EmptyStructGen<int>?[], false); Eval(14517, o is NotEmptyStructGen<Guid>, false); Eval(14518, o is NotEmptyStructGen<Guid>[], false); Eval(14519, o is NotEmptyStructGen<Guid>?, false); Eval(14520, o is NotEmptyStructGen<Guid>?[], false); Eval(14521, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14522, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14523, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14524, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14525, o is NestedStruct, false); Eval(14526, o is NestedStruct[], false); Eval(14527, o is NestedStruct?, false); Eval(14528, o is NestedStruct?[], false); Eval(14529, o is NestedStructGen<Decimal>, false); Eval(14530, o is NestedStructGen<Decimal>[], false); Eval(14531, o is NestedStructGen<Decimal>?, false); Eval(14532, o is NestedStructGen<Decimal>?[], false); Eval(14533, o is ExplicitFieldOffsetStruct, false); Eval(14534, o is ExplicitFieldOffsetStruct[], false); Eval(14535, o is ExplicitFieldOffsetStruct?, false); Eval(14536, o is ExplicitFieldOffsetStruct?[], false); Eval(14545, o is MarshalAsStruct, false); Eval(14546, o is MarshalAsStruct[], false); Eval(14547, o is MarshalAsStruct?, false); Eval(14548, o is MarshalAsStruct?[], false); Eval(14549, o is ImplementOneInterface, false); Eval(14550, o is ImplementOneInterface[], false); Eval(14551, o is ImplementOneInterface?, false); Eval(14552, o is ImplementOneInterface?[], false); Eval(14553, o is ImplementTwoInterface, false); Eval(14554, o is ImplementTwoInterface[], false); Eval(14555, o is ImplementTwoInterface?, false); Eval(14556, o is ImplementTwoInterface?[], false); Eval(14557, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14558, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14559, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14560, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14561, o is ImplementTwoInterfaceGen<int>, false); Eval(14562, o is ImplementTwoInterfaceGen<int>[], false); Eval(14563, o is ImplementTwoInterfaceGen<int>?, false); Eval(14564, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14565, o is ImplementAllInterface<int>, false); Eval(14566, o is ImplementAllInterface<int>[], false); Eval(14567, o is ImplementAllInterface<int>?, false); Eval(14568, o is ImplementAllInterface<int>?[], false); Eval(14569, o is IntE, false); Eval(14570, o is IntE[], false); Eval(14571, o is IntE?, false); Eval(14572, o is IntE?[], false); Eval(14573, o is ByteE, false); Eval(14574, o is ByteE[], false); Eval(14575, o is ByteE?, false); Eval(14576, o is ByteE?[], false); Eval(14577, o is LongE, false); Eval(14578, o is LongE[], false); Eval(14579, o is LongE?, false); Eval(14580, o is LongE?[], false); Eval(14581, o is char, false); Eval(14582, o is char[], false); Eval(14583, o is char?, false); Eval(14584, o is char?[], false); Eval(14585, o is bool, false); Eval(14586, o is bool[], false); Eval(14587, o is bool?, false); Eval(14588, o is bool?[], false); Eval(14589, o is byte, false); Eval(14590, o is byte[], false); Eval(14591, o is byte?, false); Eval(14592, o is byte?[], false); Eval(14593, o is sbyte, false); Eval(14594, o is sbyte[], false); Eval(14595, o is sbyte?, false); Eval(14596, o is sbyte?[], false); Eval(14597, o is short, false); Eval(14598, o is short[], false); Eval(14599, o is short?, false); Eval(14600, o is short?[], false); Eval(14601, o is ushort, false); Eval(14602, o is ushort[], false); Eval(14603, o is ushort?, false); Eval(14604, o is ushort?[], false); Eval(14605, o is int, false); Eval(14606, o is int[], false); Eval(14607, o is int?, false); Eval(14608, o is int?[], false); Eval(14609, o is uint, false); Eval(14610, o is uint[], false); Eval(14611, o is uint?, false); Eval(14612, o is uint?[], false); Eval(14613, o is long, false); Eval(14614, o is long[], false); Eval(14615, o is long?, false); Eval(14616, o is long?[], false); Eval(14617, o is ulong, false); Eval(14618, o is ulong[], false); Eval(14619, o is ulong?, false); Eval(14620, o is ulong?[], false); Eval(14621, o is float, false); Eval(14622, o is float[], false); Eval(14623, o is float?, false); Eval(14624, o is float?[], false); Eval(14625, o is double, false); Eval(14626, o is double[], false); Eval(14627, o is double?, false); Eval(14628, o is double?[], false); Eval(14629, o is decimal, false); Eval(14630, o is decimal[], false); Eval(14631, o is decimal?, false); Eval(14632, o is decimal?[], false); Eval(14633, o is IntPtr, false); Eval(14634, o is IntPtr[], false); Eval(14635, o is IntPtr?, false); Eval(14636, o is IntPtr?[], false); Eval(14637, o is UIntPtr, false); Eval(14638, o is UIntPtr[], false); Eval(14639, o is UIntPtr?, false); Eval(14640, o is UIntPtr?[], false); Eval(14641, o is Guid, false); Eval(14642, o is Guid[], false); Eval(14643, o is Guid?, false); Eval(14644, o is Guid?[], false); Eval(14645, o is GCHandle, false); Eval(14646, o is GCHandle[], false); Eval(14647, o is GCHandle?, false); Eval(14648, o is GCHandle?[], false); Eval(14649, o is object, false); Eval(14650, o is object[], false); Eval(14651, o is string, false); Eval(14652, o is string[], false); Eval(14653, o is ValueType, false); Eval(14654, o is ValueType[], false); Eval(14655, o is Array, false); Eval(14656, o is Array[], false); Eval(14657, o is Enum, false); Eval(14658, o is Enum[], false); Eval(14659, o is Delegate, false); Eval(14660, o is Delegate[], false); Eval(14661, o is MulticastDelegate, false); Eval(14662, o is MulticastDelegate[], false); Eval(14663, o is IEmpty, false); Eval(14664, o is IEmpty[], false); Eval(14665, o is INotEmpty, false); Eval(14666, o is INotEmpty[], false); Eval(14667, o is IEmptyGen<int>, false); Eval(14668, o is IEmptyGen<int>[], false); Eval(14669, o is INotEmptyGen<int>, false); Eval(14670, o is INotEmptyGen<int>[], false); Eval(14671, o is SimpleDelegate, false); Eval(14672, o is SimpleDelegate[], false); Eval(14673, o is GenericDelegate<int>, false); Eval(14674, o is GenericDelegate<int>[], false); Eval(14675, o is EmptyClass, false); Eval(14676, o is EmptyClass[], false); Eval(14677, o is NotEmptyClass, false); Eval(14678, o is NotEmptyClass[], false); Eval(14679, o is EmptyClassGen<int>, false); Eval(14680, o is EmptyClassGen<int>[], false); Eval(14681, o is NotEmptyClassGen<Guid>, false); Eval(14682, o is NotEmptyClassGen<Guid>[], false); Eval(14683, o is NotEmptyClassConstrainedGen<object>, false); Eval(14684, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14685, o is NestedClass, false); Eval(14686, o is NestedClass[], false); Eval(14687, o is NestedClassGen<Decimal>, false); Eval(14688, o is NestedClassGen<Decimal>[], false); Eval(14689, o is ImplementOneInterfaceC, false); Eval(14690, o is ImplementOneInterfaceC[], false); Eval(14691, o is ImplementTwoInterfaceC, false); Eval(14692, o is ImplementTwoInterfaceC[], false); Eval(14693, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14694, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14695, o is ImplementTwoInterfaceGenC<int>, false); Eval(14696, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14697, o is ImplementAllInterfaceC<int>, false); Eval(14698, o is ImplementAllInterfaceC<int>[], false); Eval(14699, o is SealedClass, false); Eval(14700, o is SealedClass[], false); } } // end of test case 0025 private static void TestCase0026() { { int v = default(int); ValueType o = v; Eval(14701, o is EmptyStruct, false); Eval(14702, o is EmptyStruct[], false); Eval(14703, o is EmptyStruct?, false); Eval(14704, o is EmptyStruct?[], false); Eval(14705, o is NotEmptyStruct, false); Eval(14706, o is NotEmptyStruct[], false); Eval(14707, o is NotEmptyStruct?, false); Eval(14708, o is NotEmptyStruct?[], false); Eval(14709, o is EmptyStructGen<int>, false); Eval(14710, o is EmptyStructGen<int>[], false); Eval(14711, o is EmptyStructGen<int>?, false); Eval(14712, o is EmptyStructGen<int>?[], false); Eval(14713, o is NotEmptyStructGen<Guid>, false); Eval(14714, o is NotEmptyStructGen<Guid>[], false); Eval(14715, o is NotEmptyStructGen<Guid>?, false); Eval(14716, o is NotEmptyStructGen<Guid>?[], false); Eval(14717, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14718, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14719, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14720, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14721, o is NestedStruct, false); Eval(14722, o is NestedStruct[], false); Eval(14723, o is NestedStruct?, false); Eval(14724, o is NestedStruct?[], false); Eval(14725, o is NestedStructGen<Decimal>, false); Eval(14726, o is NestedStructGen<Decimal>[], false); Eval(14727, o is NestedStructGen<Decimal>?, false); Eval(14728, o is NestedStructGen<Decimal>?[], false); Eval(14729, o is ExplicitFieldOffsetStruct, false); Eval(14730, o is ExplicitFieldOffsetStruct[], false); Eval(14731, o is ExplicitFieldOffsetStruct?, false); Eval(14732, o is ExplicitFieldOffsetStruct?[], false); Eval(14741, o is MarshalAsStruct, false); Eval(14742, o is MarshalAsStruct[], false); Eval(14743, o is MarshalAsStruct?, false); Eval(14744, o is MarshalAsStruct?[], false); Eval(14745, o is ImplementOneInterface, false); Eval(14746, o is ImplementOneInterface[], false); Eval(14747, o is ImplementOneInterface?, false); Eval(14748, o is ImplementOneInterface?[], false); Eval(14749, o is ImplementTwoInterface, false); Eval(14750, o is ImplementTwoInterface[], false); Eval(14751, o is ImplementTwoInterface?, false); Eval(14752, o is ImplementTwoInterface?[], false); Eval(14753, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14754, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14755, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14756, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14757, o is ImplementTwoInterfaceGen<int>, false); Eval(14758, o is ImplementTwoInterfaceGen<int>[], false); Eval(14759, o is ImplementTwoInterfaceGen<int>?, false); Eval(14760, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14761, o is ImplementAllInterface<int>, false); Eval(14762, o is ImplementAllInterface<int>[], false); Eval(14763, o is ImplementAllInterface<int>?, false); Eval(14764, o is ImplementAllInterface<int>?[], false); Eval(14765, o is IntE, false); Eval(14766, o is IntE[], false); Eval(14767, o is IntE?, false); Eval(14768, o is IntE?[], false); Eval(14769, o is ByteE, false); Eval(14770, o is ByteE[], false); Eval(14771, o is ByteE?, false); Eval(14772, o is ByteE?[], false); Eval(14773, o is LongE, false); Eval(14774, o is LongE[], false); Eval(14775, o is LongE?, false); Eval(14776, o is LongE?[], false); Eval(14777, o is char, false); Eval(14778, o is char[], false); Eval(14779, o is char?, false); Eval(14780, o is char?[], false); Eval(14781, o is bool, false); Eval(14782, o is bool[], false); Eval(14783, o is bool?, false); Eval(14784, o is bool?[], false); Eval(14785, o is byte, false); Eval(14786, o is byte[], false); Eval(14787, o is byte?, false); Eval(14788, o is byte?[], false); Eval(14789, o is sbyte, false); Eval(14790, o is sbyte[], false); Eval(14791, o is sbyte?, false); Eval(14792, o is sbyte?[], false); Eval(14793, o is short, false); Eval(14794, o is short[], false); Eval(14795, o is short?, false); Eval(14796, o is short?[], false); Eval(14797, o is ushort, false); Eval(14798, o is ushort[], false); Eval(14799, o is ushort?, false); Eval(14800, o is ushort?[], false); Eval(14801, o is int, true); Eval(14802, o is int[], false); Eval(14803, o is int?, true); Eval(14804, o is int?[], false); Eval(14805, o is uint, false); Eval(14806, o is uint[], false); Eval(14807, o is uint?, false); Eval(14808, o is uint?[], false); Eval(14809, o is long, false); Eval(14810, o is long[], false); Eval(14811, o is long?, false); Eval(14812, o is long?[], false); Eval(14813, o is ulong, false); Eval(14814, o is ulong[], false); Eval(14815, o is ulong?, false); Eval(14816, o is ulong?[], false); Eval(14817, o is float, false); Eval(14818, o is float[], false); Eval(14819, o is float?, false); Eval(14820, o is float?[], false); Eval(14821, o is double, false); Eval(14822, o is double[], false); Eval(14823, o is double?, false); Eval(14824, o is double?[], false); Eval(14825, o is decimal, false); Eval(14826, o is decimal[], false); Eval(14827, o is decimal?, false); Eval(14828, o is decimal?[], false); Eval(14829, o is IntPtr, false); Eval(14830, o is IntPtr[], false); Eval(14831, o is IntPtr?, false); Eval(14832, o is IntPtr?[], false); Eval(14833, o is UIntPtr, false); Eval(14834, o is UIntPtr[], false); Eval(14835, o is UIntPtr?, false); Eval(14836, o is UIntPtr?[], false); Eval(14837, o is Guid, false); Eval(14838, o is Guid[], false); Eval(14839, o is Guid?, false); Eval(14840, o is Guid?[], false); Eval(14841, o is GCHandle, false); Eval(14842, o is GCHandle[], false); Eval(14843, o is GCHandle?, false); Eval(14844, o is GCHandle?[], false); Eval(14845, o is object, true); Eval(14846, o is object[], false); Eval(14847, o is string, false); Eval(14848, o is string[], false); Eval(14849, o is ValueType, true); Eval(14850, o is ValueType[], false); Eval(14851, o is Array, false); Eval(14852, o is Array[], false); Eval(14853, o is Enum, false); Eval(14854, o is Enum[], false); Eval(14855, o is Delegate, false); Eval(14856, o is Delegate[], false); Eval(14857, o is MulticastDelegate, false); Eval(14858, o is MulticastDelegate[], false); Eval(14859, o is IEmpty, false); Eval(14860, o is IEmpty[], false); Eval(14861, o is INotEmpty, false); Eval(14862, o is INotEmpty[], false); Eval(14863, o is IEmptyGen<int>, false); Eval(14864, o is IEmptyGen<int>[], false); Eval(14865, o is INotEmptyGen<int>, false); Eval(14866, o is INotEmptyGen<int>[], false); Eval(14867, o is SimpleDelegate, false); Eval(14868, o is SimpleDelegate[], false); Eval(14869, o is GenericDelegate<int>, false); Eval(14870, o is GenericDelegate<int>[], false); Eval(14871, o is EmptyClass, false); Eval(14872, o is EmptyClass[], false); Eval(14873, o is NotEmptyClass, false); Eval(14874, o is NotEmptyClass[], false); Eval(14875, o is EmptyClassGen<int>, false); Eval(14876, o is EmptyClassGen<int>[], false); Eval(14877, o is NotEmptyClassGen<Guid>, false); Eval(14878, o is NotEmptyClassGen<Guid>[], false); Eval(14879, o is NotEmptyClassConstrainedGen<object>, false); Eval(14880, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14881, o is NestedClass, false); Eval(14882, o is NestedClass[], false); Eval(14883, o is NestedClassGen<Decimal>, false); Eval(14884, o is NestedClassGen<Decimal>[], false); Eval(14885, o is ImplementOneInterfaceC, false); Eval(14886, o is ImplementOneInterfaceC[], false); Eval(14887, o is ImplementTwoInterfaceC, false); Eval(14888, o is ImplementTwoInterfaceC[], false); Eval(14889, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14890, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14891, o is ImplementTwoInterfaceGenC<int>, false); Eval(14892, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14893, o is ImplementAllInterfaceC<int>, false); Eval(14894, o is ImplementAllInterfaceC<int>[], false); Eval(14895, o is SealedClass, false); Eval(14896, o is SealedClass[], false); } { int? v = default(int); ValueType o = v; Eval(14897, o is EmptyStruct, false); Eval(14898, o is EmptyStruct[], false); Eval(14899, o is EmptyStruct?, false); Eval(14900, o is EmptyStruct?[], false); Eval(14901, o is NotEmptyStruct, false); Eval(14902, o is NotEmptyStruct[], false); Eval(14903, o is NotEmptyStruct?, false); Eval(14904, o is NotEmptyStruct?[], false); Eval(14905, o is EmptyStructGen<int>, false); Eval(14906, o is EmptyStructGen<int>[], false); Eval(14907, o is EmptyStructGen<int>?, false); Eval(14908, o is EmptyStructGen<int>?[], false); Eval(14909, o is NotEmptyStructGen<Guid>, false); Eval(14910, o is NotEmptyStructGen<Guid>[], false); Eval(14911, o is NotEmptyStructGen<Guid>?, false); Eval(14912, o is NotEmptyStructGen<Guid>?[], false); Eval(14913, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14914, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14915, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14916, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14917, o is NestedStruct, false); Eval(14918, o is NestedStruct[], false); Eval(14919, o is NestedStruct?, false); Eval(14920, o is NestedStruct?[], false); Eval(14921, o is NestedStructGen<Decimal>, false); Eval(14922, o is NestedStructGen<Decimal>[], false); Eval(14923, o is NestedStructGen<Decimal>?, false); Eval(14924, o is NestedStructGen<Decimal>?[], false); Eval(14925, o is ExplicitFieldOffsetStruct, false); Eval(14926, o is ExplicitFieldOffsetStruct[], false); Eval(14927, o is ExplicitFieldOffsetStruct?, false); Eval(14928, o is ExplicitFieldOffsetStruct?[], false); Eval(14937, o is MarshalAsStruct, false); Eval(14938, o is MarshalAsStruct[], false); Eval(14939, o is MarshalAsStruct?, false); Eval(14940, o is MarshalAsStruct?[], false); Eval(14941, o is ImplementOneInterface, false); Eval(14942, o is ImplementOneInterface[], false); Eval(14943, o is ImplementOneInterface?, false); Eval(14944, o is ImplementOneInterface?[], false); Eval(14945, o is ImplementTwoInterface, false); Eval(14946, o is ImplementTwoInterface[], false); Eval(14947, o is ImplementTwoInterface?, false); Eval(14948, o is ImplementTwoInterface?[], false); Eval(14949, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14950, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14951, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14952, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14953, o is ImplementTwoInterfaceGen<int>, false); Eval(14954, o is ImplementTwoInterfaceGen<int>[], false); Eval(14955, o is ImplementTwoInterfaceGen<int>?, false); Eval(14956, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14957, o is ImplementAllInterface<int>, false); Eval(14958, o is ImplementAllInterface<int>[], false); Eval(14959, o is ImplementAllInterface<int>?, false); Eval(14960, o is ImplementAllInterface<int>?[], false); Eval(14961, o is IntE, false); Eval(14962, o is IntE[], false); Eval(14963, o is IntE?, false); Eval(14964, o is IntE?[], false); Eval(14965, o is ByteE, false); Eval(14966, o is ByteE[], false); Eval(14967, o is ByteE?, false); Eval(14968, o is ByteE?[], false); Eval(14969, o is LongE, false); Eval(14970, o is LongE[], false); Eval(14971, o is LongE?, false); Eval(14972, o is LongE?[], false); Eval(14973, o is char, false); Eval(14974, o is char[], false); Eval(14975, o is char?, false); Eval(14976, o is char?[], false); Eval(14977, o is bool, false); Eval(14978, o is bool[], false); Eval(14979, o is bool?, false); Eval(14980, o is bool?[], false); Eval(14981, o is byte, false); Eval(14982, o is byte[], false); Eval(14983, o is byte?, false); Eval(14984, o is byte?[], false); Eval(14985, o is sbyte, false); Eval(14986, o is sbyte[], false); Eval(14987, o is sbyte?, false); Eval(14988, o is sbyte?[], false); Eval(14989, o is short, false); Eval(14990, o is short[], false); Eval(14991, o is short?, false); Eval(14992, o is short?[], false); Eval(14993, o is ushort, false); Eval(14994, o is ushort[], false); Eval(14995, o is ushort?, false); Eval(14996, o is ushort?[], false); Eval(14997, o is int, true); Eval(14998, o is int[], false); Eval(14999, o is int?, true); Eval(15000, o is int?[], false); Eval(15001, o is uint, false); Eval(15002, o is uint[], false); Eval(15003, o is uint?, false); Eval(15004, o is uint?[], false); Eval(15005, o is long, false); Eval(15006, o is long[], false); Eval(15007, o is long?, false); Eval(15008, o is long?[], false); Eval(15009, o is ulong, false); Eval(15010, o is ulong[], false); Eval(15011, o is ulong?, false); Eval(15012, o is ulong?[], false); Eval(15013, o is float, false); Eval(15014, o is float[], false); Eval(15015, o is float?, false); Eval(15016, o is float?[], false); Eval(15017, o is double, false); Eval(15018, o is double[], false); Eval(15019, o is double?, false); Eval(15020, o is double?[], false); Eval(15021, o is decimal, false); Eval(15022, o is decimal[], false); Eval(15023, o is decimal?, false); Eval(15024, o is decimal?[], false); Eval(15025, o is IntPtr, false); Eval(15026, o is IntPtr[], false); Eval(15027, o is IntPtr?, false); Eval(15028, o is IntPtr?[], false); Eval(15029, o is UIntPtr, false); Eval(15030, o is UIntPtr[], false); Eval(15031, o is UIntPtr?, false); Eval(15032, o is UIntPtr?[], false); Eval(15033, o is Guid, false); Eval(15034, o is Guid[], false); Eval(15035, o is Guid?, false); Eval(15036, o is Guid?[], false); Eval(15037, o is GCHandle, false); Eval(15038, o is GCHandle[], false); Eval(15039, o is GCHandle?, false); Eval(15040, o is GCHandle?[], false); Eval(15041, o is object, true); Eval(15042, o is object[], false); Eval(15043, o is string, false); Eval(15044, o is string[], false); Eval(15045, o is ValueType, true); Eval(15046, o is ValueType[], false); Eval(15047, o is Array, false); Eval(15048, o is Array[], false); Eval(15049, o is Enum, false); Eval(15050, o is Enum[], false); Eval(15051, o is Delegate, false); Eval(15052, o is Delegate[], false); Eval(15053, o is MulticastDelegate, false); Eval(15054, o is MulticastDelegate[], false); Eval(15055, o is IEmpty, false); Eval(15056, o is IEmpty[], false); Eval(15057, o is INotEmpty, false); Eval(15058, o is INotEmpty[], false); Eval(15059, o is IEmptyGen<int>, false); Eval(15060, o is IEmptyGen<int>[], false); Eval(15061, o is INotEmptyGen<int>, false); Eval(15062, o is INotEmptyGen<int>[], false); Eval(15063, o is SimpleDelegate, false); Eval(15064, o is SimpleDelegate[], false); Eval(15065, o is GenericDelegate<int>, false); Eval(15066, o is GenericDelegate<int>[], false); Eval(15067, o is EmptyClass, false); Eval(15068, o is EmptyClass[], false); Eval(15069, o is NotEmptyClass, false); Eval(15070, o is NotEmptyClass[], false); Eval(15071, o is EmptyClassGen<int>, false); Eval(15072, o is EmptyClassGen<int>[], false); Eval(15073, o is NotEmptyClassGen<Guid>, false); Eval(15074, o is NotEmptyClassGen<Guid>[], false); Eval(15075, o is NotEmptyClassConstrainedGen<object>, false); Eval(15076, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15077, o is NestedClass, false); Eval(15078, o is NestedClass[], false); Eval(15079, o is NestedClassGen<Decimal>, false); Eval(15080, o is NestedClassGen<Decimal>[], false); Eval(15081, o is ImplementOneInterfaceC, false); Eval(15082, o is ImplementOneInterfaceC[], false); Eval(15083, o is ImplementTwoInterfaceC, false); Eval(15084, o is ImplementTwoInterfaceC[], false); Eval(15085, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15086, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15087, o is ImplementTwoInterfaceGenC<int>, false); Eval(15088, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15089, o is ImplementAllInterfaceC<int>, false); Eval(15090, o is ImplementAllInterfaceC<int>[], false); Eval(15091, o is SealedClass, false); Eval(15092, o is SealedClass[], false); } { int? v = default(int?); ValueType o = v; Eval(15093, o is EmptyStruct, false); Eval(15094, o is EmptyStruct[], false); Eval(15095, o is EmptyStruct?, false); Eval(15096, o is EmptyStruct?[], false); Eval(15097, o is NotEmptyStruct, false); Eval(15098, o is NotEmptyStruct[], false); Eval(15099, o is NotEmptyStruct?, false); Eval(15100, o is NotEmptyStruct?[], false); Eval(15101, o is EmptyStructGen<int>, false); Eval(15102, o is EmptyStructGen<int>[], false); Eval(15103, o is EmptyStructGen<int>?, false); Eval(15104, o is EmptyStructGen<int>?[], false); Eval(15105, o is NotEmptyStructGen<Guid>, false); Eval(15106, o is NotEmptyStructGen<Guid>[], false); Eval(15107, o is NotEmptyStructGen<Guid>?, false); Eval(15108, o is NotEmptyStructGen<Guid>?[], false); Eval(15109, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15110, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15111, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15112, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15113, o is NestedStruct, false); Eval(15114, o is NestedStruct[], false); Eval(15115, o is NestedStruct?, false); Eval(15116, o is NestedStruct?[], false); Eval(15117, o is NestedStructGen<Decimal>, false); Eval(15118, o is NestedStructGen<Decimal>[], false); Eval(15119, o is NestedStructGen<Decimal>?, false); Eval(15120, o is NestedStructGen<Decimal>?[], false); Eval(15121, o is ExplicitFieldOffsetStruct, false); Eval(15122, o is ExplicitFieldOffsetStruct[], false); Eval(15123, o is ExplicitFieldOffsetStruct?, false); Eval(15124, o is ExplicitFieldOffsetStruct?[], false); Eval(15133, o is MarshalAsStruct, false); Eval(15134, o is MarshalAsStruct[], false); Eval(15135, o is MarshalAsStruct?, false); Eval(15136, o is MarshalAsStruct?[], false); Eval(15137, o is ImplementOneInterface, false); Eval(15138, o is ImplementOneInterface[], false); Eval(15139, o is ImplementOneInterface?, false); Eval(15140, o is ImplementOneInterface?[], false); Eval(15141, o is ImplementTwoInterface, false); Eval(15142, o is ImplementTwoInterface[], false); Eval(15143, o is ImplementTwoInterface?, false); Eval(15144, o is ImplementTwoInterface?[], false); Eval(15145, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15146, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15147, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15148, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15149, o is ImplementTwoInterfaceGen<int>, false); Eval(15150, o is ImplementTwoInterfaceGen<int>[], false); Eval(15151, o is ImplementTwoInterfaceGen<int>?, false); Eval(15152, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15153, o is ImplementAllInterface<int>, false); Eval(15154, o is ImplementAllInterface<int>[], false); Eval(15155, o is ImplementAllInterface<int>?, false); Eval(15156, o is ImplementAllInterface<int>?[], false); Eval(15157, o is IntE, false); Eval(15158, o is IntE[], false); Eval(15159, o is IntE?, false); Eval(15160, o is IntE?[], false); Eval(15161, o is ByteE, false); Eval(15162, o is ByteE[], false); Eval(15163, o is ByteE?, false); Eval(15164, o is ByteE?[], false); Eval(15165, o is LongE, false); Eval(15166, o is LongE[], false); Eval(15167, o is LongE?, false); Eval(15168, o is LongE?[], false); Eval(15169, o is char, false); Eval(15170, o is char[], false); Eval(15171, o is char?, false); Eval(15172, o is char?[], false); Eval(15173, o is bool, false); Eval(15174, o is bool[], false); Eval(15175, o is bool?, false); Eval(15176, o is bool?[], false); Eval(15177, o is byte, false); Eval(15178, o is byte[], false); Eval(15179, o is byte?, false); Eval(15180, o is byte?[], false); Eval(15181, o is sbyte, false); Eval(15182, o is sbyte[], false); Eval(15183, o is sbyte?, false); Eval(15184, o is sbyte?[], false); Eval(15185, o is short, false); Eval(15186, o is short[], false); Eval(15187, o is short?, false); Eval(15188, o is short?[], false); Eval(15189, o is ushort, false); Eval(15190, o is ushort[], false); Eval(15191, o is ushort?, false); Eval(15192, o is ushort?[], false); Eval(15193, o is int, false); Eval(15194, o is int[], false); Eval(15195, o is int?, false); Eval(15196, o is int?[], false); Eval(15197, o is uint, false); Eval(15198, o is uint[], false); Eval(15199, o is uint?, false); Eval(15200, o is uint?[], false); Eval(15201, o is long, false); Eval(15202, o is long[], false); Eval(15203, o is long?, false); Eval(15204, o is long?[], false); Eval(15205, o is ulong, false); Eval(15206, o is ulong[], false); Eval(15207, o is ulong?, false); Eval(15208, o is ulong?[], false); Eval(15209, o is float, false); Eval(15210, o is float[], false); Eval(15211, o is float?, false); Eval(15212, o is float?[], false); Eval(15213, o is double, false); Eval(15214, o is double[], false); Eval(15215, o is double?, false); Eval(15216, o is double?[], false); Eval(15217, o is decimal, false); Eval(15218, o is decimal[], false); Eval(15219, o is decimal?, false); Eval(15220, o is decimal?[], false); Eval(15221, o is IntPtr, false); Eval(15222, o is IntPtr[], false); Eval(15223, o is IntPtr?, false); Eval(15224, o is IntPtr?[], false); Eval(15225, o is UIntPtr, false); Eval(15226, o is UIntPtr[], false); Eval(15227, o is UIntPtr?, false); Eval(15228, o is UIntPtr?[], false); Eval(15229, o is Guid, false); Eval(15230, o is Guid[], false); Eval(15231, o is Guid?, false); Eval(15232, o is Guid?[], false); Eval(15233, o is GCHandle, false); Eval(15234, o is GCHandle[], false); Eval(15235, o is GCHandle?, false); Eval(15236, o is GCHandle?[], false); Eval(15237, o is object, false); Eval(15238, o is object[], false); Eval(15239, o is string, false); Eval(15240, o is string[], false); Eval(15241, o is ValueType, false); Eval(15242, o is ValueType[], false); Eval(15243, o is Array, false); Eval(15244, o is Array[], false); Eval(15245, o is Enum, false); Eval(15246, o is Enum[], false); Eval(15247, o is Delegate, false); Eval(15248, o is Delegate[], false); Eval(15249, o is MulticastDelegate, false); Eval(15250, o is MulticastDelegate[], false); Eval(15251, o is IEmpty, false); Eval(15252, o is IEmpty[], false); Eval(15253, o is INotEmpty, false); Eval(15254, o is INotEmpty[], false); Eval(15255, o is IEmptyGen<int>, false); Eval(15256, o is IEmptyGen<int>[], false); Eval(15257, o is INotEmptyGen<int>, false); Eval(15258, o is INotEmptyGen<int>[], false); Eval(15259, o is SimpleDelegate, false); Eval(15260, o is SimpleDelegate[], false); Eval(15261, o is GenericDelegate<int>, false); Eval(15262, o is GenericDelegate<int>[], false); Eval(15263, o is EmptyClass, false); Eval(15264, o is EmptyClass[], false); Eval(15265, o is NotEmptyClass, false); Eval(15266, o is NotEmptyClass[], false); Eval(15267, o is EmptyClassGen<int>, false); Eval(15268, o is EmptyClassGen<int>[], false); Eval(15269, o is NotEmptyClassGen<Guid>, false); Eval(15270, o is NotEmptyClassGen<Guid>[], false); Eval(15271, o is NotEmptyClassConstrainedGen<object>, false); Eval(15272, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15273, o is NestedClass, false); Eval(15274, o is NestedClass[], false); Eval(15275, o is NestedClassGen<Decimal>, false); Eval(15276, o is NestedClassGen<Decimal>[], false); Eval(15277, o is ImplementOneInterfaceC, false); Eval(15278, o is ImplementOneInterfaceC[], false); Eval(15279, o is ImplementTwoInterfaceC, false); Eval(15280, o is ImplementTwoInterfaceC[], false); Eval(15281, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15282, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15283, o is ImplementTwoInterfaceGenC<int>, false); Eval(15284, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15285, o is ImplementAllInterfaceC<int>, false); Eval(15286, o is ImplementAllInterfaceC<int>[], false); Eval(15287, o is SealedClass, false); Eval(15288, o is SealedClass[], false); } } // end of test case 0026 private static void TestCase0027() { { uint v = default(uint); ValueType o = v; Eval(15289, o is EmptyStruct, false); Eval(15290, o is EmptyStruct[], false); Eval(15291, o is EmptyStruct?, false); Eval(15292, o is EmptyStruct?[], false); Eval(15293, o is NotEmptyStruct, false); Eval(15294, o is NotEmptyStruct[], false); Eval(15295, o is NotEmptyStruct?, false); Eval(15296, o is NotEmptyStruct?[], false); Eval(15297, o is EmptyStructGen<int>, false); Eval(15298, o is EmptyStructGen<int>[], false); Eval(15299, o is EmptyStructGen<int>?, false); Eval(15300, o is EmptyStructGen<int>?[], false); Eval(15301, o is NotEmptyStructGen<Guid>, false); Eval(15302, o is NotEmptyStructGen<Guid>[], false); Eval(15303, o is NotEmptyStructGen<Guid>?, false); Eval(15304, o is NotEmptyStructGen<Guid>?[], false); Eval(15305, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15306, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15307, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15308, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15309, o is NestedStruct, false); Eval(15310, o is NestedStruct[], false); Eval(15311, o is NestedStruct?, false); Eval(15312, o is NestedStruct?[], false); Eval(15313, o is NestedStructGen<Decimal>, false); Eval(15314, o is NestedStructGen<Decimal>[], false); Eval(15315, o is NestedStructGen<Decimal>?, false); Eval(15316, o is NestedStructGen<Decimal>?[], false); Eval(15317, o is ExplicitFieldOffsetStruct, false); Eval(15318, o is ExplicitFieldOffsetStruct[], false); Eval(15319, o is ExplicitFieldOffsetStruct?, false); Eval(15320, o is ExplicitFieldOffsetStruct?[], false); Eval(15329, o is MarshalAsStruct, false); Eval(15330, o is MarshalAsStruct[], false); Eval(15331, o is MarshalAsStruct?, false); Eval(15332, o is MarshalAsStruct?[], false); Eval(15333, o is ImplementOneInterface, false); Eval(15334, o is ImplementOneInterface[], false); Eval(15335, o is ImplementOneInterface?, false); Eval(15336, o is ImplementOneInterface?[], false); Eval(15337, o is ImplementTwoInterface, false); Eval(15338, o is ImplementTwoInterface[], false); Eval(15339, o is ImplementTwoInterface?, false); Eval(15340, o is ImplementTwoInterface?[], false); Eval(15341, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15342, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15343, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15344, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15345, o is ImplementTwoInterfaceGen<int>, false); Eval(15346, o is ImplementTwoInterfaceGen<int>[], false); Eval(15347, o is ImplementTwoInterfaceGen<int>?, false); Eval(15348, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15349, o is ImplementAllInterface<int>, false); Eval(15350, o is ImplementAllInterface<int>[], false); Eval(15351, o is ImplementAllInterface<int>?, false); Eval(15352, o is ImplementAllInterface<int>?[], false); Eval(15353, o is IntE, false); Eval(15354, o is IntE[], false); Eval(15355, o is IntE?, false); Eval(15356, o is IntE?[], false); Eval(15357, o is ByteE, false); Eval(15358, o is ByteE[], false); Eval(15359, o is ByteE?, false); Eval(15360, o is ByteE?[], false); Eval(15361, o is LongE, false); Eval(15362, o is LongE[], false); Eval(15363, o is LongE?, false); Eval(15364, o is LongE?[], false); Eval(15365, o is char, false); Eval(15366, o is char[], false); Eval(15367, o is char?, false); Eval(15368, o is char?[], false); Eval(15369, o is bool, false); Eval(15370, o is bool[], false); Eval(15371, o is bool?, false); Eval(15372, o is bool?[], false); Eval(15373, o is byte, false); Eval(15374, o is byte[], false); Eval(15375, o is byte?, false); Eval(15376, o is byte?[], false); Eval(15377, o is sbyte, false); Eval(15378, o is sbyte[], false); Eval(15379, o is sbyte?, false); Eval(15380, o is sbyte?[], false); Eval(15381, o is short, false); Eval(15382, o is short[], false); Eval(15383, o is short?, false); Eval(15384, o is short?[], false); Eval(15385, o is ushort, false); Eval(15386, o is ushort[], false); Eval(15387, o is ushort?, false); Eval(15388, o is ushort?[], false); Eval(15389, o is int, false); Eval(15390, o is int[], false); Eval(15391, o is int?, false); Eval(15392, o is int?[], false); Eval(15393, o is uint, true); Eval(15394, o is uint[], false); Eval(15395, o is uint?, true); Eval(15396, o is uint?[], false); Eval(15397, o is long, false); Eval(15398, o is long[], false); Eval(15399, o is long?, false); Eval(15400, o is long?[], false); Eval(15401, o is ulong, false); Eval(15402, o is ulong[], false); Eval(15403, o is ulong?, false); Eval(15404, o is ulong?[], false); Eval(15405, o is float, false); Eval(15406, o is float[], false); Eval(15407, o is float?, false); Eval(15408, o is float?[], false); Eval(15409, o is double, false); Eval(15410, o is double[], false); Eval(15411, o is double?, false); Eval(15412, o is double?[], false); Eval(15413, o is decimal, false); Eval(15414, o is decimal[], false); Eval(15415, o is decimal?, false); Eval(15416, o is decimal?[], false); Eval(15417, o is IntPtr, false); Eval(15418, o is IntPtr[], false); Eval(15419, o is IntPtr?, false); Eval(15420, o is IntPtr?[], false); Eval(15421, o is UIntPtr, false); Eval(15422, o is UIntPtr[], false); Eval(15423, o is UIntPtr?, false); Eval(15424, o is UIntPtr?[], false); Eval(15425, o is Guid, false); Eval(15426, o is Guid[], false); Eval(15427, o is Guid?, false); Eval(15428, o is Guid?[], false); Eval(15429, o is GCHandle, false); Eval(15430, o is GCHandle[], false); Eval(15431, o is GCHandle?, false); Eval(15432, o is GCHandle?[], false); Eval(15433, o is object, true); Eval(15434, o is object[], false); Eval(15435, o is string, false); Eval(15436, o is string[], false); Eval(15437, o is ValueType, true); Eval(15438, o is ValueType[], false); Eval(15439, o is Array, false); Eval(15440, o is Array[], false); Eval(15441, o is Enum, false); Eval(15442, o is Enum[], false); Eval(15443, o is Delegate, false); Eval(15444, o is Delegate[], false); Eval(15445, o is MulticastDelegate, false); Eval(15446, o is MulticastDelegate[], false); Eval(15447, o is IEmpty, false); Eval(15448, o is IEmpty[], false); Eval(15449, o is INotEmpty, false); Eval(15450, o is INotEmpty[], false); Eval(15451, o is IEmptyGen<int>, false); Eval(15452, o is IEmptyGen<int>[], false); Eval(15453, o is INotEmptyGen<int>, false); Eval(15454, o is INotEmptyGen<int>[], false); Eval(15455, o is SimpleDelegate, false); Eval(15456, o is SimpleDelegate[], false); Eval(15457, o is GenericDelegate<int>, false); Eval(15458, o is GenericDelegate<int>[], false); Eval(15459, o is EmptyClass, false); Eval(15460, o is EmptyClass[], false); Eval(15461, o is NotEmptyClass, false); Eval(15462, o is NotEmptyClass[], false); Eval(15463, o is EmptyClassGen<int>, false); Eval(15464, o is EmptyClassGen<int>[], false); Eval(15465, o is NotEmptyClassGen<Guid>, false); Eval(15466, o is NotEmptyClassGen<Guid>[], false); Eval(15467, o is NotEmptyClassConstrainedGen<object>, false); Eval(15468, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15469, o is NestedClass, false); Eval(15470, o is NestedClass[], false); Eval(15471, o is NestedClassGen<Decimal>, false); Eval(15472, o is NestedClassGen<Decimal>[], false); Eval(15473, o is ImplementOneInterfaceC, false); Eval(15474, o is ImplementOneInterfaceC[], false); Eval(15475, o is ImplementTwoInterfaceC, false); Eval(15476, o is ImplementTwoInterfaceC[], false); Eval(15477, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15478, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15479, o is ImplementTwoInterfaceGenC<int>, false); Eval(15480, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15481, o is ImplementAllInterfaceC<int>, false); Eval(15482, o is ImplementAllInterfaceC<int>[], false); Eval(15483, o is SealedClass, false); Eval(15484, o is SealedClass[], false); } { uint? v = default(uint); ValueType o = v; Eval(15485, o is EmptyStruct, false); Eval(15486, o is EmptyStruct[], false); Eval(15487, o is EmptyStruct?, false); Eval(15488, o is EmptyStruct?[], false); Eval(15489, o is NotEmptyStruct, false); Eval(15490, o is NotEmptyStruct[], false); Eval(15491, o is NotEmptyStruct?, false); Eval(15492, o is NotEmptyStruct?[], false); Eval(15493, o is EmptyStructGen<int>, false); Eval(15494, o is EmptyStructGen<int>[], false); Eval(15495, o is EmptyStructGen<int>?, false); Eval(15496, o is EmptyStructGen<int>?[], false); Eval(15497, o is NotEmptyStructGen<Guid>, false); Eval(15498, o is NotEmptyStructGen<Guid>[], false); Eval(15499, o is NotEmptyStructGen<Guid>?, false); Eval(15500, o is NotEmptyStructGen<Guid>?[], false); Eval(15501, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15502, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15503, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15504, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15505, o is NestedStruct, false); Eval(15506, o is NestedStruct[], false); Eval(15507, o is NestedStruct?, false); Eval(15508, o is NestedStruct?[], false); Eval(15509, o is NestedStructGen<Decimal>, false); Eval(15510, o is NestedStructGen<Decimal>[], false); Eval(15511, o is NestedStructGen<Decimal>?, false); Eval(15512, o is NestedStructGen<Decimal>?[], false); Eval(15513, o is ExplicitFieldOffsetStruct, false); Eval(15514, o is ExplicitFieldOffsetStruct[], false); Eval(15515, o is ExplicitFieldOffsetStruct?, false); Eval(15516, o is ExplicitFieldOffsetStruct?[], false); Eval(15525, o is MarshalAsStruct, false); Eval(15526, o is MarshalAsStruct[], false); Eval(15527, o is MarshalAsStruct?, false); Eval(15528, o is MarshalAsStruct?[], false); Eval(15529, o is ImplementOneInterface, false); Eval(15530, o is ImplementOneInterface[], false); Eval(15531, o is ImplementOneInterface?, false); Eval(15532, o is ImplementOneInterface?[], false); Eval(15533, o is ImplementTwoInterface, false); Eval(15534, o is ImplementTwoInterface[], false); Eval(15535, o is ImplementTwoInterface?, false); Eval(15536, o is ImplementTwoInterface?[], false); Eval(15537, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15538, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15539, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15540, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15541, o is ImplementTwoInterfaceGen<int>, false); Eval(15542, o is ImplementTwoInterfaceGen<int>[], false); Eval(15543, o is ImplementTwoInterfaceGen<int>?, false); Eval(15544, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15545, o is ImplementAllInterface<int>, false); Eval(15546, o is ImplementAllInterface<int>[], false); Eval(15547, o is ImplementAllInterface<int>?, false); Eval(15548, o is ImplementAllInterface<int>?[], false); Eval(15549, o is IntE, false); Eval(15550, o is IntE[], false); Eval(15551, o is IntE?, false); Eval(15552, o is IntE?[], false); Eval(15553, o is ByteE, false); Eval(15554, o is ByteE[], false); Eval(15555, o is ByteE?, false); Eval(15556, o is ByteE?[], false); Eval(15557, o is LongE, false); Eval(15558, o is LongE[], false); Eval(15559, o is LongE?, false); Eval(15560, o is LongE?[], false); Eval(15561, o is char, false); Eval(15562, o is char[], false); Eval(15563, o is char?, false); Eval(15564, o is char?[], false); Eval(15565, o is bool, false); Eval(15566, o is bool[], false); Eval(15567, o is bool?, false); Eval(15568, o is bool?[], false); Eval(15569, o is byte, false); Eval(15570, o is byte[], false); Eval(15571, o is byte?, false); Eval(15572, o is byte?[], false); Eval(15573, o is sbyte, false); Eval(15574, o is sbyte[], false); Eval(15575, o is sbyte?, false); Eval(15576, o is sbyte?[], false); Eval(15577, o is short, false); Eval(15578, o is short[], false); Eval(15579, o is short?, false); Eval(15580, o is short?[], false); Eval(15581, o is ushort, false); Eval(15582, o is ushort[], false); Eval(15583, o is ushort?, false); Eval(15584, o is ushort?[], false); Eval(15585, o is int, false); Eval(15586, o is int[], false); Eval(15587, o is int?, false); Eval(15588, o is int?[], false); Eval(15589, o is uint, true); Eval(15590, o is uint[], false); Eval(15591, o is uint?, true); Eval(15592, o is uint?[], false); Eval(15593, o is long, false); Eval(15594, o is long[], false); Eval(15595, o is long?, false); Eval(15596, o is long?[], false); Eval(15597, o is ulong, false); Eval(15598, o is ulong[], false); Eval(15599, o is ulong?, false); Eval(15600, o is ulong?[], false); Eval(15601, o is float, false); Eval(15602, o is float[], false); Eval(15603, o is float?, false); Eval(15604, o is float?[], false); Eval(15605, o is double, false); Eval(15606, o is double[], false); Eval(15607, o is double?, false); Eval(15608, o is double?[], false); Eval(15609, o is decimal, false); Eval(15610, o is decimal[], false); Eval(15611, o is decimal?, false); Eval(15612, o is decimal?[], false); Eval(15613, o is IntPtr, false); Eval(15614, o is IntPtr[], false); Eval(15615, o is IntPtr?, false); Eval(15616, o is IntPtr?[], false); Eval(15617, o is UIntPtr, false); Eval(15618, o is UIntPtr[], false); Eval(15619, o is UIntPtr?, false); Eval(15620, o is UIntPtr?[], false); Eval(15621, o is Guid, false); Eval(15622, o is Guid[], false); Eval(15623, o is Guid?, false); Eval(15624, o is Guid?[], false); Eval(15625, o is GCHandle, false); Eval(15626, o is GCHandle[], false); Eval(15627, o is GCHandle?, false); Eval(15628, o is GCHandle?[], false); Eval(15629, o is object, true); Eval(15630, o is object[], false); Eval(15631, o is string, false); Eval(15632, o is string[], false); Eval(15633, o is ValueType, true); Eval(15634, o is ValueType[], false); Eval(15635, o is Array, false); Eval(15636, o is Array[], false); Eval(15637, o is Enum, false); Eval(15638, o is Enum[], false); Eval(15639, o is Delegate, false); Eval(15640, o is Delegate[], false); Eval(15641, o is MulticastDelegate, false); Eval(15642, o is MulticastDelegate[], false); Eval(15643, o is IEmpty, false); Eval(15644, o is IEmpty[], false); Eval(15645, o is INotEmpty, false); Eval(15646, o is INotEmpty[], false); Eval(15647, o is IEmptyGen<int>, false); Eval(15648, o is IEmptyGen<int>[], false); Eval(15649, o is INotEmptyGen<int>, false); Eval(15650, o is INotEmptyGen<int>[], false); Eval(15651, o is SimpleDelegate, false); Eval(15652, o is SimpleDelegate[], false); Eval(15653, o is GenericDelegate<int>, false); Eval(15654, o is GenericDelegate<int>[], false); Eval(15655, o is EmptyClass, false); Eval(15656, o is EmptyClass[], false); Eval(15657, o is NotEmptyClass, false); Eval(15658, o is NotEmptyClass[], false); Eval(15659, o is EmptyClassGen<int>, false); Eval(15660, o is EmptyClassGen<int>[], false); Eval(15661, o is NotEmptyClassGen<Guid>, false); Eval(15662, o is NotEmptyClassGen<Guid>[], false); Eval(15663, o is NotEmptyClassConstrainedGen<object>, false); Eval(15664, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15665, o is NestedClass, false); Eval(15666, o is NestedClass[], false); Eval(15667, o is NestedClassGen<Decimal>, false); Eval(15668, o is NestedClassGen<Decimal>[], false); Eval(15669, o is ImplementOneInterfaceC, false); Eval(15670, o is ImplementOneInterfaceC[], false); Eval(15671, o is ImplementTwoInterfaceC, false); Eval(15672, o is ImplementTwoInterfaceC[], false); Eval(15673, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15674, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15675, o is ImplementTwoInterfaceGenC<int>, false); Eval(15676, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15677, o is ImplementAllInterfaceC<int>, false); Eval(15678, o is ImplementAllInterfaceC<int>[], false); Eval(15679, o is SealedClass, false); Eval(15680, o is SealedClass[], false); } { uint? v = default(uint?); ValueType o = v; Eval(15681, o is EmptyStruct, false); Eval(15682, o is EmptyStruct[], false); Eval(15683, o is EmptyStruct?, false); Eval(15684, o is EmptyStruct?[], false); Eval(15685, o is NotEmptyStruct, false); Eval(15686, o is NotEmptyStruct[], false); Eval(15687, o is NotEmptyStruct?, false); Eval(15688, o is NotEmptyStruct?[], false); Eval(15689, o is EmptyStructGen<int>, false); Eval(15690, o is EmptyStructGen<int>[], false); Eval(15691, o is EmptyStructGen<int>?, false); Eval(15692, o is EmptyStructGen<int>?[], false); Eval(15693, o is NotEmptyStructGen<Guid>, false); Eval(15694, o is NotEmptyStructGen<Guid>[], false); Eval(15695, o is NotEmptyStructGen<Guid>?, false); Eval(15696, o is NotEmptyStructGen<Guid>?[], false); Eval(15697, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15698, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15699, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15700, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15701, o is NestedStruct, false); Eval(15702, o is NestedStruct[], false); Eval(15703, o is NestedStruct?, false); Eval(15704, o is NestedStruct?[], false); Eval(15705, o is NestedStructGen<Decimal>, false); Eval(15706, o is NestedStructGen<Decimal>[], false); Eval(15707, o is NestedStructGen<Decimal>?, false); Eval(15708, o is NestedStructGen<Decimal>?[], false); Eval(15709, o is ExplicitFieldOffsetStruct, false); Eval(15710, o is ExplicitFieldOffsetStruct[], false); Eval(15711, o is ExplicitFieldOffsetStruct?, false); Eval(15712, o is ExplicitFieldOffsetStruct?[], false); Eval(15721, o is MarshalAsStruct, false); Eval(15722, o is MarshalAsStruct[], false); Eval(15723, o is MarshalAsStruct?, false); Eval(15724, o is MarshalAsStruct?[], false); Eval(15725, o is ImplementOneInterface, false); Eval(15726, o is ImplementOneInterface[], false); Eval(15727, o is ImplementOneInterface?, false); Eval(15728, o is ImplementOneInterface?[], false); Eval(15729, o is ImplementTwoInterface, false); Eval(15730, o is ImplementTwoInterface[], false); Eval(15731, o is ImplementTwoInterface?, false); Eval(15732, o is ImplementTwoInterface?[], false); Eval(15733, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15734, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15735, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15736, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15737, o is ImplementTwoInterfaceGen<int>, false); Eval(15738, o is ImplementTwoInterfaceGen<int>[], false); Eval(15739, o is ImplementTwoInterfaceGen<int>?, false); Eval(15740, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15741, o is ImplementAllInterface<int>, false); Eval(15742, o is ImplementAllInterface<int>[], false); Eval(15743, o is ImplementAllInterface<int>?, false); Eval(15744, o is ImplementAllInterface<int>?[], false); Eval(15745, o is IntE, false); Eval(15746, o is IntE[], false); Eval(15747, o is IntE?, false); Eval(15748, o is IntE?[], false); Eval(15749, o is ByteE, false); Eval(15750, o is ByteE[], false); Eval(15751, o is ByteE?, false); Eval(15752, o is ByteE?[], false); Eval(15753, o is LongE, false); Eval(15754, o is LongE[], false); Eval(15755, o is LongE?, false); Eval(15756, o is LongE?[], false); Eval(15757, o is char, false); Eval(15758, o is char[], false); Eval(15759, o is char?, false); Eval(15760, o is char?[], false); Eval(15761, o is bool, false); Eval(15762, o is bool[], false); Eval(15763, o is bool?, false); Eval(15764, o is bool?[], false); Eval(15765, o is byte, false); Eval(15766, o is byte[], false); Eval(15767, o is byte?, false); Eval(15768, o is byte?[], false); Eval(15769, o is sbyte, false); Eval(15770, o is sbyte[], false); Eval(15771, o is sbyte?, false); Eval(15772, o is sbyte?[], false); Eval(15773, o is short, false); Eval(15774, o is short[], false); Eval(15775, o is short?, false); Eval(15776, o is short?[], false); Eval(15777, o is ushort, false); Eval(15778, o is ushort[], false); Eval(15779, o is ushort?, false); Eval(15780, o is ushort?[], false); Eval(15781, o is int, false); Eval(15782, o is int[], false); Eval(15783, o is int?, false); Eval(15784, o is int?[], false); Eval(15785, o is uint, false); Eval(15786, o is uint[], false); Eval(15787, o is uint?, false); Eval(15788, o is uint?[], false); Eval(15789, o is long, false); Eval(15790, o is long[], false); Eval(15791, o is long?, false); Eval(15792, o is long?[], false); Eval(15793, o is ulong, false); Eval(15794, o is ulong[], false); Eval(15795, o is ulong?, false); Eval(15796, o is ulong?[], false); Eval(15797, o is float, false); Eval(15798, o is float[], false); Eval(15799, o is float?, false); Eval(15800, o is float?[], false); Eval(15801, o is double, false); Eval(15802, o is double[], false); Eval(15803, o is double?, false); Eval(15804, o is double?[], false); Eval(15805, o is decimal, false); Eval(15806, o is decimal[], false); Eval(15807, o is decimal?, false); Eval(15808, o is decimal?[], false); Eval(15809, o is IntPtr, false); Eval(15810, o is IntPtr[], false); Eval(15811, o is IntPtr?, false); Eval(15812, o is IntPtr?[], false); Eval(15813, o is UIntPtr, false); Eval(15814, o is UIntPtr[], false); Eval(15815, o is UIntPtr?, false); Eval(15816, o is UIntPtr?[], false); Eval(15817, o is Guid, false); Eval(15818, o is Guid[], false); Eval(15819, o is Guid?, false); Eval(15820, o is Guid?[], false); Eval(15821, o is GCHandle, false); Eval(15822, o is GCHandle[], false); Eval(15823, o is GCHandle?, false); Eval(15824, o is GCHandle?[], false); Eval(15825, o is object, false); Eval(15826, o is object[], false); Eval(15827, o is string, false); Eval(15828, o is string[], false); Eval(15829, o is ValueType, false); Eval(15830, o is ValueType[], false); Eval(15831, o is Array, false); Eval(15832, o is Array[], false); Eval(15833, o is Enum, false); Eval(15834, o is Enum[], false); Eval(15835, o is Delegate, false); Eval(15836, o is Delegate[], false); Eval(15837, o is MulticastDelegate, false); Eval(15838, o is MulticastDelegate[], false); Eval(15839, o is IEmpty, false); Eval(15840, o is IEmpty[], false); Eval(15841, o is INotEmpty, false); Eval(15842, o is INotEmpty[], false); Eval(15843, o is IEmptyGen<int>, false); Eval(15844, o is IEmptyGen<int>[], false); Eval(15845, o is INotEmptyGen<int>, false); Eval(15846, o is INotEmptyGen<int>[], false); Eval(15847, o is SimpleDelegate, false); Eval(15848, o is SimpleDelegate[], false); Eval(15849, o is GenericDelegate<int>, false); Eval(15850, o is GenericDelegate<int>[], false); Eval(15851, o is EmptyClass, false); Eval(15852, o is EmptyClass[], false); Eval(15853, o is NotEmptyClass, false); Eval(15854, o is NotEmptyClass[], false); Eval(15855, o is EmptyClassGen<int>, false); Eval(15856, o is EmptyClassGen<int>[], false); Eval(15857, o is NotEmptyClassGen<Guid>, false); Eval(15858, o is NotEmptyClassGen<Guid>[], false); Eval(15859, o is NotEmptyClassConstrainedGen<object>, false); Eval(15860, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15861, o is NestedClass, false); Eval(15862, o is NestedClass[], false); Eval(15863, o is NestedClassGen<Decimal>, false); Eval(15864, o is NestedClassGen<Decimal>[], false); Eval(15865, o is ImplementOneInterfaceC, false); Eval(15866, o is ImplementOneInterfaceC[], false); Eval(15867, o is ImplementTwoInterfaceC, false); Eval(15868, o is ImplementTwoInterfaceC[], false); Eval(15869, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15870, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15871, o is ImplementTwoInterfaceGenC<int>, false); Eval(15872, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15873, o is ImplementAllInterfaceC<int>, false); Eval(15874, o is ImplementAllInterfaceC<int>[], false); Eval(15875, o is SealedClass, false); Eval(15876, o is SealedClass[], false); } } // end of test case 0027 private static void TestCase0028() { { long v = default(long); ValueType o = v; Eval(15877, o is EmptyStruct, false); Eval(15878, o is EmptyStruct[], false); Eval(15879, o is EmptyStruct?, false); Eval(15880, o is EmptyStruct?[], false); Eval(15881, o is NotEmptyStruct, false); Eval(15882, o is NotEmptyStruct[], false); Eval(15883, o is NotEmptyStruct?, false); Eval(15884, o is NotEmptyStruct?[], false); Eval(15885, o is EmptyStructGen<int>, false); Eval(15886, o is EmptyStructGen<int>[], false); Eval(15887, o is EmptyStructGen<int>?, false); Eval(15888, o is EmptyStructGen<int>?[], false); Eval(15889, o is NotEmptyStructGen<Guid>, false); Eval(15890, o is NotEmptyStructGen<Guid>[], false); Eval(15891, o is NotEmptyStructGen<Guid>?, false); Eval(15892, o is NotEmptyStructGen<Guid>?[], false); Eval(15893, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15894, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15895, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15896, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15897, o is NestedStruct, false); Eval(15898, o is NestedStruct[], false); Eval(15899, o is NestedStruct?, false); Eval(15900, o is NestedStruct?[], false); Eval(15901, o is NestedStructGen<Decimal>, false); Eval(15902, o is NestedStructGen<Decimal>[], false); Eval(15903, o is NestedStructGen<Decimal>?, false); Eval(15904, o is NestedStructGen<Decimal>?[], false); Eval(15905, o is ExplicitFieldOffsetStruct, false); Eval(15906, o is ExplicitFieldOffsetStruct[], false); Eval(15907, o is ExplicitFieldOffsetStruct?, false); Eval(15908, o is ExplicitFieldOffsetStruct?[], false); Eval(15917, o is MarshalAsStruct, false); Eval(15918, o is MarshalAsStruct[], false); Eval(15919, o is MarshalAsStruct?, false); Eval(15920, o is MarshalAsStruct?[], false); Eval(15921, o is ImplementOneInterface, false); Eval(15922, o is ImplementOneInterface[], false); Eval(15923, o is ImplementOneInterface?, false); Eval(15924, o is ImplementOneInterface?[], false); Eval(15925, o is ImplementTwoInterface, false); Eval(15926, o is ImplementTwoInterface[], false); Eval(15927, o is ImplementTwoInterface?, false); Eval(15928, o is ImplementTwoInterface?[], false); Eval(15929, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15930, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15931, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15932, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15933, o is ImplementTwoInterfaceGen<int>, false); Eval(15934, o is ImplementTwoInterfaceGen<int>[], false); Eval(15935, o is ImplementTwoInterfaceGen<int>?, false); Eval(15936, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15937, o is ImplementAllInterface<int>, false); Eval(15938, o is ImplementAllInterface<int>[], false); Eval(15939, o is ImplementAllInterface<int>?, false); Eval(15940, o is ImplementAllInterface<int>?[], false); Eval(15941, o is IntE, false); Eval(15942, o is IntE[], false); Eval(15943, o is IntE?, false); Eval(15944, o is IntE?[], false); Eval(15945, o is ByteE, false); Eval(15946, o is ByteE[], false); Eval(15947, o is ByteE?, false); Eval(15948, o is ByteE?[], false); Eval(15949, o is LongE, false); Eval(15950, o is LongE[], false); Eval(15951, o is LongE?, false); Eval(15952, o is LongE?[], false); Eval(15953, o is char, false); Eval(15954, o is char[], false); Eval(15955, o is char?, false); Eval(15956, o is char?[], false); Eval(15957, o is bool, false); Eval(15958, o is bool[], false); Eval(15959, o is bool?, false); Eval(15960, o is bool?[], false); Eval(15961, o is byte, false); Eval(15962, o is byte[], false); Eval(15963, o is byte?, false); Eval(15964, o is byte?[], false); Eval(15965, o is sbyte, false); Eval(15966, o is sbyte[], false); Eval(15967, o is sbyte?, false); Eval(15968, o is sbyte?[], false); Eval(15969, o is short, false); Eval(15970, o is short[], false); Eval(15971, o is short?, false); Eval(15972, o is short?[], false); Eval(15973, o is ushort, false); Eval(15974, o is ushort[], false); Eval(15975, o is ushort?, false); Eval(15976, o is ushort?[], false); Eval(15977, o is int, false); Eval(15978, o is int[], false); Eval(15979, o is int?, false); Eval(15980, o is int?[], false); Eval(15981, o is uint, false); Eval(15982, o is uint[], false); Eval(15983, o is uint?, false); Eval(15984, o is uint?[], false); Eval(15985, o is long, true); Eval(15986, o is long[], false); Eval(15987, o is long?, true); Eval(15988, o is long?[], false); Eval(15989, o is ulong, false); Eval(15990, o is ulong[], false); Eval(15991, o is ulong?, false); Eval(15992, o is ulong?[], false); Eval(15993, o is float, false); Eval(15994, o is float[], false); Eval(15995, o is float?, false); Eval(15996, o is float?[], false); Eval(15997, o is double, false); Eval(15998, o is double[], false); Eval(15999, o is double?, false); Eval(16000, o is double?[], false); Eval(16001, o is decimal, false); Eval(16002, o is decimal[], false); Eval(16003, o is decimal?, false); Eval(16004, o is decimal?[], false); Eval(16005, o is IntPtr, false); Eval(16006, o is IntPtr[], false); Eval(16007, o is IntPtr?, false); Eval(16008, o is IntPtr?[], false); Eval(16009, o is UIntPtr, false); Eval(16010, o is UIntPtr[], false); Eval(16011, o is UIntPtr?, false); Eval(16012, o is UIntPtr?[], false); Eval(16013, o is Guid, false); Eval(16014, o is Guid[], false); Eval(16015, o is Guid?, false); Eval(16016, o is Guid?[], false); Eval(16017, o is GCHandle, false); Eval(16018, o is GCHandle[], false); Eval(16019, o is GCHandle?, false); Eval(16020, o is GCHandle?[], false); Eval(16021, o is object, true); Eval(16022, o is object[], false); Eval(16023, o is string, false); Eval(16024, o is string[], false); Eval(16025, o is ValueType, true); Eval(16026, o is ValueType[], false); Eval(16027, o is Array, false); Eval(16028, o is Array[], false); Eval(16029, o is Enum, false); Eval(16030, o is Enum[], false); Eval(16031, o is Delegate, false); Eval(16032, o is Delegate[], false); Eval(16033, o is MulticastDelegate, false); Eval(16034, o is MulticastDelegate[], false); Eval(16035, o is IEmpty, false); Eval(16036, o is IEmpty[], false); Eval(16037, o is INotEmpty, false); Eval(16038, o is INotEmpty[], false); Eval(16039, o is IEmptyGen<int>, false); Eval(16040, o is IEmptyGen<int>[], false); Eval(16041, o is INotEmptyGen<int>, false); Eval(16042, o is INotEmptyGen<int>[], false); Eval(16043, o is SimpleDelegate, false); Eval(16044, o is SimpleDelegate[], false); Eval(16045, o is GenericDelegate<int>, false); Eval(16046, o is GenericDelegate<int>[], false); Eval(16047, o is EmptyClass, false); Eval(16048, o is EmptyClass[], false); Eval(16049, o is NotEmptyClass, false); Eval(16050, o is NotEmptyClass[], false); Eval(16051, o is EmptyClassGen<int>, false); Eval(16052, o is EmptyClassGen<int>[], false); Eval(16053, o is NotEmptyClassGen<Guid>, false); Eval(16054, o is NotEmptyClassGen<Guid>[], false); Eval(16055, o is NotEmptyClassConstrainedGen<object>, false); Eval(16056, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16057, o is NestedClass, false); Eval(16058, o is NestedClass[], false); Eval(16059, o is NestedClassGen<Decimal>, false); Eval(16060, o is NestedClassGen<Decimal>[], false); Eval(16061, o is ImplementOneInterfaceC, false); Eval(16062, o is ImplementOneInterfaceC[], false); Eval(16063, o is ImplementTwoInterfaceC, false); Eval(16064, o is ImplementTwoInterfaceC[], false); Eval(16065, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16066, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16067, o is ImplementTwoInterfaceGenC<int>, false); Eval(16068, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16069, o is ImplementAllInterfaceC<int>, false); Eval(16070, o is ImplementAllInterfaceC<int>[], false); Eval(16071, o is SealedClass, false); Eval(16072, o is SealedClass[], false); } { long? v = default(long); ValueType o = v; Eval(16073, o is EmptyStruct, false); Eval(16074, o is EmptyStruct[], false); Eval(16075, o is EmptyStruct?, false); Eval(16076, o is EmptyStruct?[], false); Eval(16077, o is NotEmptyStruct, false); Eval(16078, o is NotEmptyStruct[], false); Eval(16079, o is NotEmptyStruct?, false); Eval(16080, o is NotEmptyStruct?[], false); Eval(16081, o is EmptyStructGen<int>, false); Eval(16082, o is EmptyStructGen<int>[], false); Eval(16083, o is EmptyStructGen<int>?, false); Eval(16084, o is EmptyStructGen<int>?[], false); Eval(16085, o is NotEmptyStructGen<Guid>, false); Eval(16086, o is NotEmptyStructGen<Guid>[], false); Eval(16087, o is NotEmptyStructGen<Guid>?, false); Eval(16088, o is NotEmptyStructGen<Guid>?[], false); Eval(16089, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16090, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16091, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16092, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16093, o is NestedStruct, false); Eval(16094, o is NestedStruct[], false); Eval(16095, o is NestedStruct?, false); Eval(16096, o is NestedStruct?[], false); Eval(16097, o is NestedStructGen<Decimal>, false); Eval(16098, o is NestedStructGen<Decimal>[], false); Eval(16099, o is NestedStructGen<Decimal>?, false); Eval(16100, o is NestedStructGen<Decimal>?[], false); Eval(16101, o is ExplicitFieldOffsetStruct, false); Eval(16102, o is ExplicitFieldOffsetStruct[], false); Eval(16103, o is ExplicitFieldOffsetStruct?, false); Eval(16104, o is ExplicitFieldOffsetStruct?[], false); Eval(16113, o is MarshalAsStruct, false); Eval(16114, o is MarshalAsStruct[], false); Eval(16115, o is MarshalAsStruct?, false); Eval(16116, o is MarshalAsStruct?[], false); Eval(16117, o is ImplementOneInterface, false); Eval(16118, o is ImplementOneInterface[], false); Eval(16119, o is ImplementOneInterface?, false); Eval(16120, o is ImplementOneInterface?[], false); Eval(16121, o is ImplementTwoInterface, false); Eval(16122, o is ImplementTwoInterface[], false); Eval(16123, o is ImplementTwoInterface?, false); Eval(16124, o is ImplementTwoInterface?[], false); Eval(16125, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16126, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16127, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16128, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16129, o is ImplementTwoInterfaceGen<int>, false); Eval(16130, o is ImplementTwoInterfaceGen<int>[], false); Eval(16131, o is ImplementTwoInterfaceGen<int>?, false); Eval(16132, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16133, o is ImplementAllInterface<int>, false); Eval(16134, o is ImplementAllInterface<int>[], false); Eval(16135, o is ImplementAllInterface<int>?, false); Eval(16136, o is ImplementAllInterface<int>?[], false); Eval(16137, o is IntE, false); Eval(16138, o is IntE[], false); Eval(16139, o is IntE?, false); Eval(16140, o is IntE?[], false); Eval(16141, o is ByteE, false); Eval(16142, o is ByteE[], false); Eval(16143, o is ByteE?, false); Eval(16144, o is ByteE?[], false); Eval(16145, o is LongE, false); Eval(16146, o is LongE[], false); Eval(16147, o is LongE?, false); Eval(16148, o is LongE?[], false); Eval(16149, o is char, false); Eval(16150, o is char[], false); Eval(16151, o is char?, false); Eval(16152, o is char?[], false); Eval(16153, o is bool, false); Eval(16154, o is bool[], false); Eval(16155, o is bool?, false); Eval(16156, o is bool?[], false); Eval(16157, o is byte, false); Eval(16158, o is byte[], false); Eval(16159, o is byte?, false); Eval(16160, o is byte?[], false); Eval(16161, o is sbyte, false); Eval(16162, o is sbyte[], false); Eval(16163, o is sbyte?, false); Eval(16164, o is sbyte?[], false); Eval(16165, o is short, false); Eval(16166, o is short[], false); Eval(16167, o is short?, false); Eval(16168, o is short?[], false); Eval(16169, o is ushort, false); Eval(16170, o is ushort[], false); Eval(16171, o is ushort?, false); Eval(16172, o is ushort?[], false); Eval(16173, o is int, false); Eval(16174, o is int[], false); Eval(16175, o is int?, false); Eval(16176, o is int?[], false); Eval(16177, o is uint, false); Eval(16178, o is uint[], false); Eval(16179, o is uint?, false); Eval(16180, o is uint?[], false); Eval(16181, o is long, true); Eval(16182, o is long[], false); Eval(16183, o is long?, true); Eval(16184, o is long?[], false); Eval(16185, o is ulong, false); Eval(16186, o is ulong[], false); Eval(16187, o is ulong?, false); Eval(16188, o is ulong?[], false); Eval(16189, o is float, false); Eval(16190, o is float[], false); Eval(16191, o is float?, false); Eval(16192, o is float?[], false); Eval(16193, o is double, false); Eval(16194, o is double[], false); Eval(16195, o is double?, false); Eval(16196, o is double?[], false); Eval(16197, o is decimal, false); Eval(16198, o is decimal[], false); Eval(16199, o is decimal?, false); Eval(16200, o is decimal?[], false); Eval(16201, o is IntPtr, false); Eval(16202, o is IntPtr[], false); Eval(16203, o is IntPtr?, false); Eval(16204, o is IntPtr?[], false); Eval(16205, o is UIntPtr, false); Eval(16206, o is UIntPtr[], false); Eval(16207, o is UIntPtr?, false); Eval(16208, o is UIntPtr?[], false); Eval(16209, o is Guid, false); Eval(16210, o is Guid[], false); Eval(16211, o is Guid?, false); Eval(16212, o is Guid?[], false); Eval(16213, o is GCHandle, false); Eval(16214, o is GCHandle[], false); Eval(16215, o is GCHandle?, false); Eval(16216, o is GCHandle?[], false); Eval(16217, o is object, true); Eval(16218, o is object[], false); Eval(16219, o is string, false); Eval(16220, o is string[], false); Eval(16221, o is ValueType, true); Eval(16222, o is ValueType[], false); Eval(16223, o is Array, false); Eval(16224, o is Array[], false); Eval(16225, o is Enum, false); Eval(16226, o is Enum[], false); Eval(16227, o is Delegate, false); Eval(16228, o is Delegate[], false); Eval(16229, o is MulticastDelegate, false); Eval(16230, o is MulticastDelegate[], false); Eval(16231, o is IEmpty, false); Eval(16232, o is IEmpty[], false); Eval(16233, o is INotEmpty, false); Eval(16234, o is INotEmpty[], false); Eval(16235, o is IEmptyGen<int>, false); Eval(16236, o is IEmptyGen<int>[], false); Eval(16237, o is INotEmptyGen<int>, false); Eval(16238, o is INotEmptyGen<int>[], false); Eval(16239, o is SimpleDelegate, false); Eval(16240, o is SimpleDelegate[], false); Eval(16241, o is GenericDelegate<int>, false); Eval(16242, o is GenericDelegate<int>[], false); Eval(16243, o is EmptyClass, false); Eval(16244, o is EmptyClass[], false); Eval(16245, o is NotEmptyClass, false); Eval(16246, o is NotEmptyClass[], false); Eval(16247, o is EmptyClassGen<int>, false); Eval(16248, o is EmptyClassGen<int>[], false); Eval(16249, o is NotEmptyClassGen<Guid>, false); Eval(16250, o is NotEmptyClassGen<Guid>[], false); Eval(16251, o is NotEmptyClassConstrainedGen<object>, false); Eval(16252, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16253, o is NestedClass, false); Eval(16254, o is NestedClass[], false); Eval(16255, o is NestedClassGen<Decimal>, false); Eval(16256, o is NestedClassGen<Decimal>[], false); Eval(16257, o is ImplementOneInterfaceC, false); Eval(16258, o is ImplementOneInterfaceC[], false); Eval(16259, o is ImplementTwoInterfaceC, false); Eval(16260, o is ImplementTwoInterfaceC[], false); Eval(16261, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16262, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16263, o is ImplementTwoInterfaceGenC<int>, false); Eval(16264, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16265, o is ImplementAllInterfaceC<int>, false); Eval(16266, o is ImplementAllInterfaceC<int>[], false); Eval(16267, o is SealedClass, false); Eval(16268, o is SealedClass[], false); } { long? v = default(long?); ValueType o = v; Eval(16269, o is EmptyStruct, false); Eval(16270, o is EmptyStruct[], false); Eval(16271, o is EmptyStruct?, false); Eval(16272, o is EmptyStruct?[], false); Eval(16273, o is NotEmptyStruct, false); Eval(16274, o is NotEmptyStruct[], false); Eval(16275, o is NotEmptyStruct?, false); Eval(16276, o is NotEmptyStruct?[], false); Eval(16277, o is EmptyStructGen<int>, false); Eval(16278, o is EmptyStructGen<int>[], false); Eval(16279, o is EmptyStructGen<int>?, false); Eval(16280, o is EmptyStructGen<int>?[], false); Eval(16281, o is NotEmptyStructGen<Guid>, false); Eval(16282, o is NotEmptyStructGen<Guid>[], false); Eval(16283, o is NotEmptyStructGen<Guid>?, false); Eval(16284, o is NotEmptyStructGen<Guid>?[], false); Eval(16285, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16286, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16287, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16288, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16289, o is NestedStruct, false); Eval(16290, o is NestedStruct[], false); Eval(16291, o is NestedStruct?, false); Eval(16292, o is NestedStruct?[], false); Eval(16293, o is NestedStructGen<Decimal>, false); Eval(16294, o is NestedStructGen<Decimal>[], false); Eval(16295, o is NestedStructGen<Decimal>?, false); Eval(16296, o is NestedStructGen<Decimal>?[], false); Eval(16297, o is ExplicitFieldOffsetStruct, false); Eval(16298, o is ExplicitFieldOffsetStruct[], false); Eval(16299, o is ExplicitFieldOffsetStruct?, false); Eval(16300, o is ExplicitFieldOffsetStruct?[], false); Eval(16309, o is MarshalAsStruct, false); Eval(16310, o is MarshalAsStruct[], false); Eval(16311, o is MarshalAsStruct?, false); Eval(16312, o is MarshalAsStruct?[], false); Eval(16313, o is ImplementOneInterface, false); Eval(16314, o is ImplementOneInterface[], false); Eval(16315, o is ImplementOneInterface?, false); Eval(16316, o is ImplementOneInterface?[], false); Eval(16317, o is ImplementTwoInterface, false); Eval(16318, o is ImplementTwoInterface[], false); Eval(16319, o is ImplementTwoInterface?, false); Eval(16320, o is ImplementTwoInterface?[], false); Eval(16321, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16322, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16323, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16324, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16325, o is ImplementTwoInterfaceGen<int>, false); Eval(16326, o is ImplementTwoInterfaceGen<int>[], false); Eval(16327, o is ImplementTwoInterfaceGen<int>?, false); Eval(16328, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16329, o is ImplementAllInterface<int>, false); Eval(16330, o is ImplementAllInterface<int>[], false); Eval(16331, o is ImplementAllInterface<int>?, false); Eval(16332, o is ImplementAllInterface<int>?[], false); Eval(16333, o is IntE, false); Eval(16334, o is IntE[], false); Eval(16335, o is IntE?, false); Eval(16336, o is IntE?[], false); Eval(16337, o is ByteE, false); Eval(16338, o is ByteE[], false); Eval(16339, o is ByteE?, false); Eval(16340, o is ByteE?[], false); Eval(16341, o is LongE, false); Eval(16342, o is LongE[], false); Eval(16343, o is LongE?, false); Eval(16344, o is LongE?[], false); Eval(16345, o is char, false); Eval(16346, o is char[], false); Eval(16347, o is char?, false); Eval(16348, o is char?[], false); Eval(16349, o is bool, false); Eval(16350, o is bool[], false); Eval(16351, o is bool?, false); Eval(16352, o is bool?[], false); Eval(16353, o is byte, false); Eval(16354, o is byte[], false); Eval(16355, o is byte?, false); Eval(16356, o is byte?[], false); Eval(16357, o is sbyte, false); Eval(16358, o is sbyte[], false); Eval(16359, o is sbyte?, false); Eval(16360, o is sbyte?[], false); Eval(16361, o is short, false); Eval(16362, o is short[], false); Eval(16363, o is short?, false); Eval(16364, o is short?[], false); Eval(16365, o is ushort, false); Eval(16366, o is ushort[], false); Eval(16367, o is ushort?, false); Eval(16368, o is ushort?[], false); Eval(16369, o is int, false); Eval(16370, o is int[], false); Eval(16371, o is int?, false); Eval(16372, o is int?[], false); Eval(16373, o is uint, false); Eval(16374, o is uint[], false); Eval(16375, o is uint?, false); Eval(16376, o is uint?[], false); Eval(16377, o is long, false); Eval(16378, o is long[], false); Eval(16379, o is long?, false); Eval(16380, o is long?[], false); Eval(16381, o is ulong, false); Eval(16382, o is ulong[], false); Eval(16383, o is ulong?, false); Eval(16384, o is ulong?[], false); Eval(16385, o is float, false); Eval(16386, o is float[], false); Eval(16387, o is float?, false); Eval(16388, o is float?[], false); Eval(16389, o is double, false); Eval(16390, o is double[], false); Eval(16391, o is double?, false); Eval(16392, o is double?[], false); Eval(16393, o is decimal, false); Eval(16394, o is decimal[], false); Eval(16395, o is decimal?, false); Eval(16396, o is decimal?[], false); Eval(16397, o is IntPtr, false); Eval(16398, o is IntPtr[], false); Eval(16399, o is IntPtr?, false); Eval(16400, o is IntPtr?[], false); Eval(16401, o is UIntPtr, false); Eval(16402, o is UIntPtr[], false); Eval(16403, o is UIntPtr?, false); Eval(16404, o is UIntPtr?[], false); Eval(16405, o is Guid, false); Eval(16406, o is Guid[], false); Eval(16407, o is Guid?, false); Eval(16408, o is Guid?[], false); Eval(16409, o is GCHandle, false); Eval(16410, o is GCHandle[], false); Eval(16411, o is GCHandle?, false); Eval(16412, o is GCHandle?[], false); Eval(16413, o is object, false); Eval(16414, o is object[], false); Eval(16415, o is string, false); Eval(16416, o is string[], false); Eval(16417, o is ValueType, false); Eval(16418, o is ValueType[], false); Eval(16419, o is Array, false); Eval(16420, o is Array[], false); Eval(16421, o is Enum, false); Eval(16422, o is Enum[], false); Eval(16423, o is Delegate, false); Eval(16424, o is Delegate[], false); Eval(16425, o is MulticastDelegate, false); Eval(16426, o is MulticastDelegate[], false); Eval(16427, o is IEmpty, false); Eval(16428, o is IEmpty[], false); Eval(16429, o is INotEmpty, false); Eval(16430, o is INotEmpty[], false); Eval(16431, o is IEmptyGen<int>, false); Eval(16432, o is IEmptyGen<int>[], false); Eval(16433, o is INotEmptyGen<int>, false); Eval(16434, o is INotEmptyGen<int>[], false); Eval(16435, o is SimpleDelegate, false); Eval(16436, o is SimpleDelegate[], false); Eval(16437, o is GenericDelegate<int>, false); Eval(16438, o is GenericDelegate<int>[], false); Eval(16439, o is EmptyClass, false); Eval(16440, o is EmptyClass[], false); Eval(16441, o is NotEmptyClass, false); Eval(16442, o is NotEmptyClass[], false); Eval(16443, o is EmptyClassGen<int>, false); Eval(16444, o is EmptyClassGen<int>[], false); Eval(16445, o is NotEmptyClassGen<Guid>, false); Eval(16446, o is NotEmptyClassGen<Guid>[], false); Eval(16447, o is NotEmptyClassConstrainedGen<object>, false); Eval(16448, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16449, o is NestedClass, false); Eval(16450, o is NestedClass[], false); Eval(16451, o is NestedClassGen<Decimal>, false); Eval(16452, o is NestedClassGen<Decimal>[], false); Eval(16453, o is ImplementOneInterfaceC, false); Eval(16454, o is ImplementOneInterfaceC[], false); Eval(16455, o is ImplementTwoInterfaceC, false); Eval(16456, o is ImplementTwoInterfaceC[], false); Eval(16457, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16458, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16459, o is ImplementTwoInterfaceGenC<int>, false); Eval(16460, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16461, o is ImplementAllInterfaceC<int>, false); Eval(16462, o is ImplementAllInterfaceC<int>[], false); Eval(16463, o is SealedClass, false); Eval(16464, o is SealedClass[], false); } } // end of test case 0028 private static void TestCase0029() { { ulong v = default(ulong); ValueType o = v; Eval(16465, o is EmptyStruct, false); Eval(16466, o is EmptyStruct[], false); Eval(16467, o is EmptyStruct?, false); Eval(16468, o is EmptyStruct?[], false); Eval(16469, o is NotEmptyStruct, false); Eval(16470, o is NotEmptyStruct[], false); Eval(16471, o is NotEmptyStruct?, false); Eval(16472, o is NotEmptyStruct?[], false); Eval(16473, o is EmptyStructGen<int>, false); Eval(16474, o is EmptyStructGen<int>[], false); Eval(16475, o is EmptyStructGen<int>?, false); Eval(16476, o is EmptyStructGen<int>?[], false); Eval(16477, o is NotEmptyStructGen<Guid>, false); Eval(16478, o is NotEmptyStructGen<Guid>[], false); Eval(16479, o is NotEmptyStructGen<Guid>?, false); Eval(16480, o is NotEmptyStructGen<Guid>?[], false); Eval(16481, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16482, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16483, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16484, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16485, o is NestedStruct, false); Eval(16486, o is NestedStruct[], false); Eval(16487, o is NestedStruct?, false); Eval(16488, o is NestedStruct?[], false); Eval(16489, o is NestedStructGen<Decimal>, false); Eval(16490, o is NestedStructGen<Decimal>[], false); Eval(16491, o is NestedStructGen<Decimal>?, false); Eval(16492, o is NestedStructGen<Decimal>?[], false); Eval(16493, o is ExplicitFieldOffsetStruct, false); Eval(16494, o is ExplicitFieldOffsetStruct[], false); Eval(16495, o is ExplicitFieldOffsetStruct?, false); Eval(16496, o is ExplicitFieldOffsetStruct?[], false); Eval(16505, o is MarshalAsStruct, false); Eval(16506, o is MarshalAsStruct[], false); Eval(16507, o is MarshalAsStruct?, false); Eval(16508, o is MarshalAsStruct?[], false); Eval(16509, o is ImplementOneInterface, false); Eval(16510, o is ImplementOneInterface[], false); Eval(16511, o is ImplementOneInterface?, false); Eval(16512, o is ImplementOneInterface?[], false); Eval(16513, o is ImplementTwoInterface, false); Eval(16514, o is ImplementTwoInterface[], false); Eval(16515, o is ImplementTwoInterface?, false); Eval(16516, o is ImplementTwoInterface?[], false); Eval(16517, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16518, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16519, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16520, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16521, o is ImplementTwoInterfaceGen<int>, false); Eval(16522, o is ImplementTwoInterfaceGen<int>[], false); Eval(16523, o is ImplementTwoInterfaceGen<int>?, false); Eval(16524, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16525, o is ImplementAllInterface<int>, false); Eval(16526, o is ImplementAllInterface<int>[], false); Eval(16527, o is ImplementAllInterface<int>?, false); Eval(16528, o is ImplementAllInterface<int>?[], false); Eval(16529, o is IntE, false); Eval(16530, o is IntE[], false); Eval(16531, o is IntE?, false); Eval(16532, o is IntE?[], false); Eval(16533, o is ByteE, false); Eval(16534, o is ByteE[], false); Eval(16535, o is ByteE?, false); Eval(16536, o is ByteE?[], false); Eval(16537, o is LongE, false); Eval(16538, o is LongE[], false); Eval(16539, o is LongE?, false); Eval(16540, o is LongE?[], false); Eval(16541, o is char, false); Eval(16542, o is char[], false); Eval(16543, o is char?, false); Eval(16544, o is char?[], false); Eval(16545, o is bool, false); Eval(16546, o is bool[], false); Eval(16547, o is bool?, false); Eval(16548, o is bool?[], false); Eval(16549, o is byte, false); Eval(16550, o is byte[], false); Eval(16551, o is byte?, false); Eval(16552, o is byte?[], false); Eval(16553, o is sbyte, false); Eval(16554, o is sbyte[], false); Eval(16555, o is sbyte?, false); Eval(16556, o is sbyte?[], false); Eval(16557, o is short, false); Eval(16558, o is short[], false); Eval(16559, o is short?, false); Eval(16560, o is short?[], false); Eval(16561, o is ushort, false); Eval(16562, o is ushort[], false); Eval(16563, o is ushort?, false); Eval(16564, o is ushort?[], false); Eval(16565, o is int, false); Eval(16566, o is int[], false); Eval(16567, o is int?, false); Eval(16568, o is int?[], false); Eval(16569, o is uint, false); Eval(16570, o is uint[], false); Eval(16571, o is uint?, false); Eval(16572, o is uint?[], false); Eval(16573, o is long, false); Eval(16574, o is long[], false); Eval(16575, o is long?, false); Eval(16576, o is long?[], false); Eval(16577, o is ulong, true); Eval(16578, o is ulong[], false); Eval(16579, o is ulong?, true); Eval(16580, o is ulong?[], false); Eval(16581, o is float, false); Eval(16582, o is float[], false); Eval(16583, o is float?, false); Eval(16584, o is float?[], false); Eval(16585, o is double, false); Eval(16586, o is double[], false); Eval(16587, o is double?, false); Eval(16588, o is double?[], false); Eval(16589, o is decimal, false); Eval(16590, o is decimal[], false); Eval(16591, o is decimal?, false); Eval(16592, o is decimal?[], false); Eval(16593, o is IntPtr, false); Eval(16594, o is IntPtr[], false); Eval(16595, o is IntPtr?, false); Eval(16596, o is IntPtr?[], false); Eval(16597, o is UIntPtr, false); Eval(16598, o is UIntPtr[], false); Eval(16599, o is UIntPtr?, false); Eval(16600, o is UIntPtr?[], false); Eval(16601, o is Guid, false); Eval(16602, o is Guid[], false); Eval(16603, o is Guid?, false); Eval(16604, o is Guid?[], false); Eval(16605, o is GCHandle, false); Eval(16606, o is GCHandle[], false); Eval(16607, o is GCHandle?, false); Eval(16608, o is GCHandle?[], false); Eval(16609, o is object, true); Eval(16610, o is object[], false); Eval(16611, o is string, false); Eval(16612, o is string[], false); Eval(16613, o is ValueType, true); Eval(16614, o is ValueType[], false); Eval(16615, o is Array, false); Eval(16616, o is Array[], false); Eval(16617, o is Enum, false); Eval(16618, o is Enum[], false); Eval(16619, o is Delegate, false); Eval(16620, o is Delegate[], false); Eval(16621, o is MulticastDelegate, false); Eval(16622, o is MulticastDelegate[], false); Eval(16623, o is IEmpty, false); Eval(16624, o is IEmpty[], false); Eval(16625, o is INotEmpty, false); Eval(16626, o is INotEmpty[], false); Eval(16627, o is IEmptyGen<int>, false); Eval(16628, o is IEmptyGen<int>[], false); Eval(16629, o is INotEmptyGen<int>, false); Eval(16630, o is INotEmptyGen<int>[], false); Eval(16631, o is SimpleDelegate, false); Eval(16632, o is SimpleDelegate[], false); Eval(16633, o is GenericDelegate<int>, false); Eval(16634, o is GenericDelegate<int>[], false); Eval(16635, o is EmptyClass, false); Eval(16636, o is EmptyClass[], false); Eval(16637, o is NotEmptyClass, false); Eval(16638, o is NotEmptyClass[], false); Eval(16639, o is EmptyClassGen<int>, false); Eval(16640, o is EmptyClassGen<int>[], false); Eval(16641, o is NotEmptyClassGen<Guid>, false); Eval(16642, o is NotEmptyClassGen<Guid>[], false); Eval(16643, o is NotEmptyClassConstrainedGen<object>, false); Eval(16644, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16645, o is NestedClass, false); Eval(16646, o is NestedClass[], false); Eval(16647, o is NestedClassGen<Decimal>, false); Eval(16648, o is NestedClassGen<Decimal>[], false); Eval(16649, o is ImplementOneInterfaceC, false); Eval(16650, o is ImplementOneInterfaceC[], false); Eval(16651, o is ImplementTwoInterfaceC, false); Eval(16652, o is ImplementTwoInterfaceC[], false); Eval(16653, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16654, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16655, o is ImplementTwoInterfaceGenC<int>, false); Eval(16656, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16657, o is ImplementAllInterfaceC<int>, false); Eval(16658, o is ImplementAllInterfaceC<int>[], false); Eval(16659, o is SealedClass, false); Eval(16660, o is SealedClass[], false); } { ulong? v = default(ulong); ValueType o = v; Eval(16661, o is EmptyStruct, false); Eval(16662, o is EmptyStruct[], false); Eval(16663, o is EmptyStruct?, false); Eval(16664, o is EmptyStruct?[], false); Eval(16665, o is NotEmptyStruct, false); Eval(16666, o is NotEmptyStruct[], false); Eval(16667, o is NotEmptyStruct?, false); Eval(16668, o is NotEmptyStruct?[], false); Eval(16669, o is EmptyStructGen<int>, false); Eval(16670, o is EmptyStructGen<int>[], false); Eval(16671, o is EmptyStructGen<int>?, false); Eval(16672, o is EmptyStructGen<int>?[], false); Eval(16673, o is NotEmptyStructGen<Guid>, false); Eval(16674, o is NotEmptyStructGen<Guid>[], false); Eval(16675, o is NotEmptyStructGen<Guid>?, false); Eval(16676, o is NotEmptyStructGen<Guid>?[], false); Eval(16677, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16678, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16679, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16680, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16681, o is NestedStruct, false); Eval(16682, o is NestedStruct[], false); Eval(16683, o is NestedStruct?, false); Eval(16684, o is NestedStruct?[], false); Eval(16685, o is NestedStructGen<Decimal>, false); Eval(16686, o is NestedStructGen<Decimal>[], false); Eval(16687, o is NestedStructGen<Decimal>?, false); Eval(16688, o is NestedStructGen<Decimal>?[], false); Eval(16689, o is ExplicitFieldOffsetStruct, false); Eval(16690, o is ExplicitFieldOffsetStruct[], false); Eval(16691, o is ExplicitFieldOffsetStruct?, false); Eval(16692, o is ExplicitFieldOffsetStruct?[], false); Eval(16701, o is MarshalAsStruct, false); Eval(16702, o is MarshalAsStruct[], false); Eval(16703, o is MarshalAsStruct?, false); Eval(16704, o is MarshalAsStruct?[], false); Eval(16705, o is ImplementOneInterface, false); Eval(16706, o is ImplementOneInterface[], false); Eval(16707, o is ImplementOneInterface?, false); Eval(16708, o is ImplementOneInterface?[], false); Eval(16709, o is ImplementTwoInterface, false); Eval(16710, o is ImplementTwoInterface[], false); Eval(16711, o is ImplementTwoInterface?, false); Eval(16712, o is ImplementTwoInterface?[], false); Eval(16713, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16714, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16715, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16716, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16717, o is ImplementTwoInterfaceGen<int>, false); Eval(16718, o is ImplementTwoInterfaceGen<int>[], false); Eval(16719, o is ImplementTwoInterfaceGen<int>?, false); Eval(16720, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16721, o is ImplementAllInterface<int>, false); Eval(16722, o is ImplementAllInterface<int>[], false); Eval(16723, o is ImplementAllInterface<int>?, false); Eval(16724, o is ImplementAllInterface<int>?[], false); Eval(16725, o is IntE, false); Eval(16726, o is IntE[], false); Eval(16727, o is IntE?, false); Eval(16728, o is IntE?[], false); Eval(16729, o is ByteE, false); Eval(16730, o is ByteE[], false); Eval(16731, o is ByteE?, false); Eval(16732, o is ByteE?[], false); Eval(16733, o is LongE, false); Eval(16734, o is LongE[], false); Eval(16735, o is LongE?, false); Eval(16736, o is LongE?[], false); Eval(16737, o is char, false); Eval(16738, o is char[], false); Eval(16739, o is char?, false); Eval(16740, o is char?[], false); Eval(16741, o is bool, false); Eval(16742, o is bool[], false); Eval(16743, o is bool?, false); Eval(16744, o is bool?[], false); Eval(16745, o is byte, false); Eval(16746, o is byte[], false); Eval(16747, o is byte?, false); Eval(16748, o is byte?[], false); Eval(16749, o is sbyte, false); Eval(16750, o is sbyte[], false); Eval(16751, o is sbyte?, false); Eval(16752, o is sbyte?[], false); Eval(16753, o is short, false); Eval(16754, o is short[], false); Eval(16755, o is short?, false); Eval(16756, o is short?[], false); Eval(16757, o is ushort, false); Eval(16758, o is ushort[], false); Eval(16759, o is ushort?, false); Eval(16760, o is ushort?[], false); Eval(16761, o is int, false); Eval(16762, o is int[], false); Eval(16763, o is int?, false); Eval(16764, o is int?[], false); Eval(16765, o is uint, false); Eval(16766, o is uint[], false); Eval(16767, o is uint?, false); Eval(16768, o is uint?[], false); Eval(16769, o is long, false); Eval(16770, o is long[], false); Eval(16771, o is long?, false); Eval(16772, o is long?[], false); Eval(16773, o is ulong, true); Eval(16774, o is ulong[], false); Eval(16775, o is ulong?, true); Eval(16776, o is ulong?[], false); Eval(16777, o is float, false); Eval(16778, o is float[], false); Eval(16779, o is float?, false); Eval(16780, o is float?[], false); Eval(16781, o is double, false); Eval(16782, o is double[], false); Eval(16783, o is double?, false); Eval(16784, o is double?[], false); Eval(16785, o is decimal, false); Eval(16786, o is decimal[], false); Eval(16787, o is decimal?, false); Eval(16788, o is decimal?[], false); Eval(16789, o is IntPtr, false); Eval(16790, o is IntPtr[], false); Eval(16791, o is IntPtr?, false); Eval(16792, o is IntPtr?[], false); Eval(16793, o is UIntPtr, false); Eval(16794, o is UIntPtr[], false); Eval(16795, o is UIntPtr?, false); Eval(16796, o is UIntPtr?[], false); Eval(16797, o is Guid, false); Eval(16798, o is Guid[], false); Eval(16799, o is Guid?, false); Eval(16800, o is Guid?[], false); Eval(16801, o is GCHandle, false); Eval(16802, o is GCHandle[], false); Eval(16803, o is GCHandle?, false); Eval(16804, o is GCHandle?[], false); Eval(16805, o is object, true); Eval(16806, o is object[], false); Eval(16807, o is string, false); Eval(16808, o is string[], false); Eval(16809, o is ValueType, true); Eval(16810, o is ValueType[], false); Eval(16811, o is Array, false); Eval(16812, o is Array[], false); Eval(16813, o is Enum, false); Eval(16814, o is Enum[], false); Eval(16815, o is Delegate, false); Eval(16816, o is Delegate[], false); Eval(16817, o is MulticastDelegate, false); Eval(16818, o is MulticastDelegate[], false); Eval(16819, o is IEmpty, false); Eval(16820, o is IEmpty[], false); Eval(16821, o is INotEmpty, false); Eval(16822, o is INotEmpty[], false); Eval(16823, o is IEmptyGen<int>, false); Eval(16824, o is IEmptyGen<int>[], false); Eval(16825, o is INotEmptyGen<int>, false); Eval(16826, o is INotEmptyGen<int>[], false); Eval(16827, o is SimpleDelegate, false); Eval(16828, o is SimpleDelegate[], false); Eval(16829, o is GenericDelegate<int>, false); Eval(16830, o is GenericDelegate<int>[], false); Eval(16831, o is EmptyClass, false); Eval(16832, o is EmptyClass[], false); Eval(16833, o is NotEmptyClass, false); Eval(16834, o is NotEmptyClass[], false); Eval(16835, o is EmptyClassGen<int>, false); Eval(16836, o is EmptyClassGen<int>[], false); Eval(16837, o is NotEmptyClassGen<Guid>, false); Eval(16838, o is NotEmptyClassGen<Guid>[], false); Eval(16839, o is NotEmptyClassConstrainedGen<object>, false); Eval(16840, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16841, o is NestedClass, false); Eval(16842, o is NestedClass[], false); Eval(16843, o is NestedClassGen<Decimal>, false); Eval(16844, o is NestedClassGen<Decimal>[], false); Eval(16845, o is ImplementOneInterfaceC, false); Eval(16846, o is ImplementOneInterfaceC[], false); Eval(16847, o is ImplementTwoInterfaceC, false); Eval(16848, o is ImplementTwoInterfaceC[], false); Eval(16849, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16850, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16851, o is ImplementTwoInterfaceGenC<int>, false); Eval(16852, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16853, o is ImplementAllInterfaceC<int>, false); Eval(16854, o is ImplementAllInterfaceC<int>[], false); Eval(16855, o is SealedClass, false); Eval(16856, o is SealedClass[], false); } { ulong? v = default(ulong?); ValueType o = v; Eval(16857, o is EmptyStruct, false); Eval(16858, o is EmptyStruct[], false); Eval(16859, o is EmptyStruct?, false); Eval(16860, o is EmptyStruct?[], false); Eval(16861, o is NotEmptyStruct, false); Eval(16862, o is NotEmptyStruct[], false); Eval(16863, o is NotEmptyStruct?, false); Eval(16864, o is NotEmptyStruct?[], false); Eval(16865, o is EmptyStructGen<int>, false); Eval(16866, o is EmptyStructGen<int>[], false); Eval(16867, o is EmptyStructGen<int>?, false); Eval(16868, o is EmptyStructGen<int>?[], false); Eval(16869, o is NotEmptyStructGen<Guid>, false); Eval(16870, o is NotEmptyStructGen<Guid>[], false); Eval(16871, o is NotEmptyStructGen<Guid>?, false); Eval(16872, o is NotEmptyStructGen<Guid>?[], false); Eval(16873, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16874, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16875, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16876, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16877, o is NestedStruct, false); Eval(16878, o is NestedStruct[], false); Eval(16879, o is NestedStruct?, false); Eval(16880, o is NestedStruct?[], false); Eval(16881, o is NestedStructGen<Decimal>, false); Eval(16882, o is NestedStructGen<Decimal>[], false); Eval(16883, o is NestedStructGen<Decimal>?, false); Eval(16884, o is NestedStructGen<Decimal>?[], false); Eval(16885, o is ExplicitFieldOffsetStruct, false); Eval(16886, o is ExplicitFieldOffsetStruct[], false); Eval(16887, o is ExplicitFieldOffsetStruct?, false); Eval(16888, o is ExplicitFieldOffsetStruct?[], false); Eval(16897, o is MarshalAsStruct, false); Eval(16898, o is MarshalAsStruct[], false); Eval(16899, o is MarshalAsStruct?, false); Eval(16900, o is MarshalAsStruct?[], false); Eval(16901, o is ImplementOneInterface, false); Eval(16902, o is ImplementOneInterface[], false); Eval(16903, o is ImplementOneInterface?, false); Eval(16904, o is ImplementOneInterface?[], false); Eval(16905, o is ImplementTwoInterface, false); Eval(16906, o is ImplementTwoInterface[], false); Eval(16907, o is ImplementTwoInterface?, false); Eval(16908, o is ImplementTwoInterface?[], false); Eval(16909, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16910, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16911, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16912, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16913, o is ImplementTwoInterfaceGen<int>, false); Eval(16914, o is ImplementTwoInterfaceGen<int>[], false); Eval(16915, o is ImplementTwoInterfaceGen<int>?, false); Eval(16916, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16917, o is ImplementAllInterface<int>, false); Eval(16918, o is ImplementAllInterface<int>[], false); Eval(16919, o is ImplementAllInterface<int>?, false); Eval(16920, o is ImplementAllInterface<int>?[], false); Eval(16921, o is IntE, false); Eval(16922, o is IntE[], false); Eval(16923, o is IntE?, false); Eval(16924, o is IntE?[], false); Eval(16925, o is ByteE, false); Eval(16926, o is ByteE[], false); Eval(16927, o is ByteE?, false); Eval(16928, o is ByteE?[], false); Eval(16929, o is LongE, false); Eval(16930, o is LongE[], false); Eval(16931, o is LongE?, false); Eval(16932, o is LongE?[], false); Eval(16933, o is char, false); Eval(16934, o is char[], false); Eval(16935, o is char?, false); Eval(16936, o is char?[], false); Eval(16937, o is bool, false); Eval(16938, o is bool[], false); Eval(16939, o is bool?, false); Eval(16940, o is bool?[], false); Eval(16941, o is byte, false); Eval(16942, o is byte[], false); Eval(16943, o is byte?, false); Eval(16944, o is byte?[], false); Eval(16945, o is sbyte, false); Eval(16946, o is sbyte[], false); Eval(16947, o is sbyte?, false); Eval(16948, o is sbyte?[], false); Eval(16949, o is short, false); Eval(16950, o is short[], false); Eval(16951, o is short?, false); Eval(16952, o is short?[], false); Eval(16953, o is ushort, false); Eval(16954, o is ushort[], false); Eval(16955, o is ushort?, false); Eval(16956, o is ushort?[], false); Eval(16957, o is int, false); Eval(16958, o is int[], false); Eval(16959, o is int?, false); Eval(16960, o is int?[], false); Eval(16961, o is uint, false); Eval(16962, o is uint[], false); Eval(16963, o is uint?, false); Eval(16964, o is uint?[], false); Eval(16965, o is long, false); Eval(16966, o is long[], false); Eval(16967, o is long?, false); Eval(16968, o is long?[], false); Eval(16969, o is ulong, false); Eval(16970, o is ulong[], false); Eval(16971, o is ulong?, false); Eval(16972, o is ulong?[], false); Eval(16973, o is float, false); Eval(16974, o is float[], false); Eval(16975, o is float?, false); Eval(16976, o is float?[], false); Eval(16977, o is double, false); Eval(16978, o is double[], false); Eval(16979, o is double?, false); Eval(16980, o is double?[], false); Eval(16981, o is decimal, false); Eval(16982, o is decimal[], false); Eval(16983, o is decimal?, false); Eval(16984, o is decimal?[], false); Eval(16985, o is IntPtr, false); Eval(16986, o is IntPtr[], false); Eval(16987, o is IntPtr?, false); Eval(16988, o is IntPtr?[], false); Eval(16989, o is UIntPtr, false); Eval(16990, o is UIntPtr[], false); Eval(16991, o is UIntPtr?, false); Eval(16992, o is UIntPtr?[], false); Eval(16993, o is Guid, false); Eval(16994, o is Guid[], false); Eval(16995, o is Guid?, false); Eval(16996, o is Guid?[], false); Eval(16997, o is GCHandle, false); Eval(16998, o is GCHandle[], false); Eval(16999, o is GCHandle?, false); Eval(17000, o is GCHandle?[], false); Eval(17001, o is object, false); Eval(17002, o is object[], false); Eval(17003, o is string, false); Eval(17004, o is string[], false); Eval(17005, o is ValueType, false); Eval(17006, o is ValueType[], false); Eval(17007, o is Array, false); Eval(17008, o is Array[], false); Eval(17009, o is Enum, false); Eval(17010, o is Enum[], false); Eval(17011, o is Delegate, false); Eval(17012, o is Delegate[], false); Eval(17013, o is MulticastDelegate, false); Eval(17014, o is MulticastDelegate[], false); Eval(17015, o is IEmpty, false); Eval(17016, o is IEmpty[], false); Eval(17017, o is INotEmpty, false); Eval(17018, o is INotEmpty[], false); Eval(17019, o is IEmptyGen<int>, false); Eval(17020, o is IEmptyGen<int>[], false); Eval(17021, o is INotEmptyGen<int>, false); Eval(17022, o is INotEmptyGen<int>[], false); Eval(17023, o is SimpleDelegate, false); Eval(17024, o is SimpleDelegate[], false); Eval(17025, o is GenericDelegate<int>, false); Eval(17026, o is GenericDelegate<int>[], false); Eval(17027, o is EmptyClass, false); Eval(17028, o is EmptyClass[], false); Eval(17029, o is NotEmptyClass, false); Eval(17030, o is NotEmptyClass[], false); Eval(17031, o is EmptyClassGen<int>, false); Eval(17032, o is EmptyClassGen<int>[], false); Eval(17033, o is NotEmptyClassGen<Guid>, false); Eval(17034, o is NotEmptyClassGen<Guid>[], false); Eval(17035, o is NotEmptyClassConstrainedGen<object>, false); Eval(17036, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17037, o is NestedClass, false); Eval(17038, o is NestedClass[], false); Eval(17039, o is NestedClassGen<Decimal>, false); Eval(17040, o is NestedClassGen<Decimal>[], false); Eval(17041, o is ImplementOneInterfaceC, false); Eval(17042, o is ImplementOneInterfaceC[], false); Eval(17043, o is ImplementTwoInterfaceC, false); Eval(17044, o is ImplementTwoInterfaceC[], false); Eval(17045, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17046, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17047, o is ImplementTwoInterfaceGenC<int>, false); Eval(17048, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17049, o is ImplementAllInterfaceC<int>, false); Eval(17050, o is ImplementAllInterfaceC<int>[], false); Eval(17051, o is SealedClass, false); Eval(17052, o is SealedClass[], false); } } // end of test case 0029 private static void TestCase0030() { { float v = default(float); ValueType o = v; Eval(17053, o is EmptyStruct, false); Eval(17054, o is EmptyStruct[], false); Eval(17055, o is EmptyStruct?, false); Eval(17056, o is EmptyStruct?[], false); Eval(17057, o is NotEmptyStruct, false); Eval(17058, o is NotEmptyStruct[], false); Eval(17059, o is NotEmptyStruct?, false); Eval(17060, o is NotEmptyStruct?[], false); Eval(17061, o is EmptyStructGen<int>, false); Eval(17062, o is EmptyStructGen<int>[], false); Eval(17063, o is EmptyStructGen<int>?, false); Eval(17064, o is EmptyStructGen<int>?[], false); Eval(17065, o is NotEmptyStructGen<Guid>, false); Eval(17066, o is NotEmptyStructGen<Guid>[], false); Eval(17067, o is NotEmptyStructGen<Guid>?, false); Eval(17068, o is NotEmptyStructGen<Guid>?[], false); Eval(17069, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17070, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17071, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17072, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17073, o is NestedStruct, false); Eval(17074, o is NestedStruct[], false); Eval(17075, o is NestedStruct?, false); Eval(17076, o is NestedStruct?[], false); Eval(17077, o is NestedStructGen<Decimal>, false); Eval(17078, o is NestedStructGen<Decimal>[], false); Eval(17079, o is NestedStructGen<Decimal>?, false); Eval(17080, o is NestedStructGen<Decimal>?[], false); Eval(17081, o is ExplicitFieldOffsetStruct, false); Eval(17082, o is ExplicitFieldOffsetStruct[], false); Eval(17083, o is ExplicitFieldOffsetStruct?, false); Eval(17084, o is ExplicitFieldOffsetStruct?[], false); Eval(17093, o is MarshalAsStruct, false); Eval(17094, o is MarshalAsStruct[], false); Eval(17095, o is MarshalAsStruct?, false); Eval(17096, o is MarshalAsStruct?[], false); Eval(17097, o is ImplementOneInterface, false); Eval(17098, o is ImplementOneInterface[], false); Eval(17099, o is ImplementOneInterface?, false); Eval(17100, o is ImplementOneInterface?[], false); Eval(17101, o is ImplementTwoInterface, false); Eval(17102, o is ImplementTwoInterface[], false); Eval(17103, o is ImplementTwoInterface?, false); Eval(17104, o is ImplementTwoInterface?[], false); Eval(17105, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17106, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17107, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17108, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17109, o is ImplementTwoInterfaceGen<int>, false); Eval(17110, o is ImplementTwoInterfaceGen<int>[], false); Eval(17111, o is ImplementTwoInterfaceGen<int>?, false); Eval(17112, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17113, o is ImplementAllInterface<int>, false); Eval(17114, o is ImplementAllInterface<int>[], false); Eval(17115, o is ImplementAllInterface<int>?, false); Eval(17116, o is ImplementAllInterface<int>?[], false); Eval(17117, o is IntE, false); Eval(17118, o is IntE[], false); Eval(17119, o is IntE?, false); Eval(17120, o is IntE?[], false); Eval(17121, o is ByteE, false); Eval(17122, o is ByteE[], false); Eval(17123, o is ByteE?, false); Eval(17124, o is ByteE?[], false); Eval(17125, o is LongE, false); Eval(17126, o is LongE[], false); Eval(17127, o is LongE?, false); Eval(17128, o is LongE?[], false); Eval(17129, o is char, false); Eval(17130, o is char[], false); Eval(17131, o is char?, false); Eval(17132, o is char?[], false); Eval(17133, o is bool, false); Eval(17134, o is bool[], false); Eval(17135, o is bool?, false); Eval(17136, o is bool?[], false); Eval(17137, o is byte, false); Eval(17138, o is byte[], false); Eval(17139, o is byte?, false); Eval(17140, o is byte?[], false); Eval(17141, o is sbyte, false); Eval(17142, o is sbyte[], false); Eval(17143, o is sbyte?, false); Eval(17144, o is sbyte?[], false); Eval(17145, o is short, false); Eval(17146, o is short[], false); Eval(17147, o is short?, false); Eval(17148, o is short?[], false); Eval(17149, o is ushort, false); Eval(17150, o is ushort[], false); Eval(17151, o is ushort?, false); Eval(17152, o is ushort?[], false); Eval(17153, o is int, false); Eval(17154, o is int[], false); Eval(17155, o is int?, false); Eval(17156, o is int?[], false); Eval(17157, o is uint, false); Eval(17158, o is uint[], false); Eval(17159, o is uint?, false); Eval(17160, o is uint?[], false); Eval(17161, o is long, false); Eval(17162, o is long[], false); Eval(17163, o is long?, false); Eval(17164, o is long?[], false); Eval(17165, o is ulong, false); Eval(17166, o is ulong[], false); Eval(17167, o is ulong?, false); Eval(17168, o is ulong?[], false); Eval(17169, o is float, true); Eval(17170, o is float[], false); Eval(17171, o is float?, true); Eval(17172, o is float?[], false); Eval(17173, o is double, false); Eval(17174, o is double[], false); Eval(17175, o is double?, false); Eval(17176, o is double?[], false); Eval(17177, o is decimal, false); Eval(17178, o is decimal[], false); Eval(17179, o is decimal?, false); Eval(17180, o is decimal?[], false); Eval(17181, o is IntPtr, false); Eval(17182, o is IntPtr[], false); Eval(17183, o is IntPtr?, false); Eval(17184, o is IntPtr?[], false); Eval(17185, o is UIntPtr, false); Eval(17186, o is UIntPtr[], false); Eval(17187, o is UIntPtr?, false); Eval(17188, o is UIntPtr?[], false); Eval(17189, o is Guid, false); Eval(17190, o is Guid[], false); Eval(17191, o is Guid?, false); Eval(17192, o is Guid?[], false); Eval(17193, o is GCHandle, false); Eval(17194, o is GCHandle[], false); Eval(17195, o is GCHandle?, false); Eval(17196, o is GCHandle?[], false); Eval(17197, o is object, true); Eval(17198, o is object[], false); Eval(17199, o is string, false); Eval(17200, o is string[], false); Eval(17201, o is ValueType, true); Eval(17202, o is ValueType[], false); Eval(17203, o is Array, false); Eval(17204, o is Array[], false); Eval(17205, o is Enum, false); Eval(17206, o is Enum[], false); Eval(17207, o is Delegate, false); Eval(17208, o is Delegate[], false); Eval(17209, o is MulticastDelegate, false); Eval(17210, o is MulticastDelegate[], false); Eval(17211, o is IEmpty, false); Eval(17212, o is IEmpty[], false); Eval(17213, o is INotEmpty, false); Eval(17214, o is INotEmpty[], false); Eval(17215, o is IEmptyGen<int>, false); Eval(17216, o is IEmptyGen<int>[], false); Eval(17217, o is INotEmptyGen<int>, false); Eval(17218, o is INotEmptyGen<int>[], false); Eval(17219, o is SimpleDelegate, false); Eval(17220, o is SimpleDelegate[], false); Eval(17221, o is GenericDelegate<int>, false); Eval(17222, o is GenericDelegate<int>[], false); Eval(17223, o is EmptyClass, false); Eval(17224, o is EmptyClass[], false); Eval(17225, o is NotEmptyClass, false); Eval(17226, o is NotEmptyClass[], false); Eval(17227, o is EmptyClassGen<int>, false); Eval(17228, o is EmptyClassGen<int>[], false); Eval(17229, o is NotEmptyClassGen<Guid>, false); Eval(17230, o is NotEmptyClassGen<Guid>[], false); Eval(17231, o is NotEmptyClassConstrainedGen<object>, false); Eval(17232, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17233, o is NestedClass, false); Eval(17234, o is NestedClass[], false); Eval(17235, o is NestedClassGen<Decimal>, false); Eval(17236, o is NestedClassGen<Decimal>[], false); Eval(17237, o is ImplementOneInterfaceC, false); Eval(17238, o is ImplementOneInterfaceC[], false); Eval(17239, o is ImplementTwoInterfaceC, false); Eval(17240, o is ImplementTwoInterfaceC[], false); Eval(17241, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17242, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17243, o is ImplementTwoInterfaceGenC<int>, false); Eval(17244, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17245, o is ImplementAllInterfaceC<int>, false); Eval(17246, o is ImplementAllInterfaceC<int>[], false); Eval(17247, o is SealedClass, false); Eval(17248, o is SealedClass[], false); } { float? v = default(float); ValueType o = v; Eval(17249, o is EmptyStruct, false); Eval(17250, o is EmptyStruct[], false); Eval(17251, o is EmptyStruct?, false); Eval(17252, o is EmptyStruct?[], false); Eval(17253, o is NotEmptyStruct, false); Eval(17254, o is NotEmptyStruct[], false); Eval(17255, o is NotEmptyStruct?, false); Eval(17256, o is NotEmptyStruct?[], false); Eval(17257, o is EmptyStructGen<int>, false); Eval(17258, o is EmptyStructGen<int>[], false); Eval(17259, o is EmptyStructGen<int>?, false); Eval(17260, o is EmptyStructGen<int>?[], false); Eval(17261, o is NotEmptyStructGen<Guid>, false); Eval(17262, o is NotEmptyStructGen<Guid>[], false); Eval(17263, o is NotEmptyStructGen<Guid>?, false); Eval(17264, o is NotEmptyStructGen<Guid>?[], false); Eval(17265, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17266, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17267, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17268, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17269, o is NestedStruct, false); Eval(17270, o is NestedStruct[], false); Eval(17271, o is NestedStruct?, false); Eval(17272, o is NestedStruct?[], false); Eval(17273, o is NestedStructGen<Decimal>, false); Eval(17274, o is NestedStructGen<Decimal>[], false); Eval(17275, o is NestedStructGen<Decimal>?, false); Eval(17276, o is NestedStructGen<Decimal>?[], false); Eval(17277, o is ExplicitFieldOffsetStruct, false); Eval(17278, o is ExplicitFieldOffsetStruct[], false); Eval(17279, o is ExplicitFieldOffsetStruct?, false); Eval(17280, o is ExplicitFieldOffsetStruct?[], false); Eval(17289, o is MarshalAsStruct, false); Eval(17290, o is MarshalAsStruct[], false); Eval(17291, o is MarshalAsStruct?, false); Eval(17292, o is MarshalAsStruct?[], false); Eval(17293, o is ImplementOneInterface, false); Eval(17294, o is ImplementOneInterface[], false); Eval(17295, o is ImplementOneInterface?, false); Eval(17296, o is ImplementOneInterface?[], false); Eval(17297, o is ImplementTwoInterface, false); Eval(17298, o is ImplementTwoInterface[], false); Eval(17299, o is ImplementTwoInterface?, false); Eval(17300, o is ImplementTwoInterface?[], false); Eval(17301, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17302, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17303, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17304, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17305, o is ImplementTwoInterfaceGen<int>, false); Eval(17306, o is ImplementTwoInterfaceGen<int>[], false); Eval(17307, o is ImplementTwoInterfaceGen<int>?, false); Eval(17308, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17309, o is ImplementAllInterface<int>, false); Eval(17310, o is ImplementAllInterface<int>[], false); Eval(17311, o is ImplementAllInterface<int>?, false); Eval(17312, o is ImplementAllInterface<int>?[], false); Eval(17313, o is IntE, false); Eval(17314, o is IntE[], false); Eval(17315, o is IntE?, false); Eval(17316, o is IntE?[], false); Eval(17317, o is ByteE, false); Eval(17318, o is ByteE[], false); Eval(17319, o is ByteE?, false); Eval(17320, o is ByteE?[], false); Eval(17321, o is LongE, false); Eval(17322, o is LongE[], false); Eval(17323, o is LongE?, false); Eval(17324, o is LongE?[], false); Eval(17325, o is char, false); Eval(17326, o is char[], false); Eval(17327, o is char?, false); Eval(17328, o is char?[], false); Eval(17329, o is bool, false); Eval(17330, o is bool[], false); Eval(17331, o is bool?, false); Eval(17332, o is bool?[], false); Eval(17333, o is byte, false); Eval(17334, o is byte[], false); Eval(17335, o is byte?, false); Eval(17336, o is byte?[], false); Eval(17337, o is sbyte, false); Eval(17338, o is sbyte[], false); Eval(17339, o is sbyte?, false); Eval(17340, o is sbyte?[], false); Eval(17341, o is short, false); Eval(17342, o is short[], false); Eval(17343, o is short?, false); Eval(17344, o is short?[], false); Eval(17345, o is ushort, false); Eval(17346, o is ushort[], false); Eval(17347, o is ushort?, false); Eval(17348, o is ushort?[], false); Eval(17349, o is int, false); Eval(17350, o is int[], false); Eval(17351, o is int?, false); Eval(17352, o is int?[], false); Eval(17353, o is uint, false); Eval(17354, o is uint[], false); Eval(17355, o is uint?, false); Eval(17356, o is uint?[], false); Eval(17357, o is long, false); Eval(17358, o is long[], false); Eval(17359, o is long?, false); Eval(17360, o is long?[], false); Eval(17361, o is ulong, false); Eval(17362, o is ulong[], false); Eval(17363, o is ulong?, false); Eval(17364, o is ulong?[], false); Eval(17365, o is float, true); Eval(17366, o is float[], false); Eval(17367, o is float?, true); Eval(17368, o is float?[], false); Eval(17369, o is double, false); Eval(17370, o is double[], false); Eval(17371, o is double?, false); Eval(17372, o is double?[], false); Eval(17373, o is decimal, false); Eval(17374, o is decimal[], false); Eval(17375, o is decimal?, false); Eval(17376, o is decimal?[], false); Eval(17377, o is IntPtr, false); Eval(17378, o is IntPtr[], false); Eval(17379, o is IntPtr?, false); Eval(17380, o is IntPtr?[], false); Eval(17381, o is UIntPtr, false); Eval(17382, o is UIntPtr[], false); Eval(17383, o is UIntPtr?, false); Eval(17384, o is UIntPtr?[], false); Eval(17385, o is Guid, false); Eval(17386, o is Guid[], false); Eval(17387, o is Guid?, false); Eval(17388, o is Guid?[], false); Eval(17389, o is GCHandle, false); Eval(17390, o is GCHandle[], false); Eval(17391, o is GCHandle?, false); Eval(17392, o is GCHandle?[], false); Eval(17393, o is object, true); Eval(17394, o is object[], false); Eval(17395, o is string, false); Eval(17396, o is string[], false); Eval(17397, o is ValueType, true); Eval(17398, o is ValueType[], false); Eval(17399, o is Array, false); Eval(17400, o is Array[], false); Eval(17401, o is Enum, false); Eval(17402, o is Enum[], false); Eval(17403, o is Delegate, false); Eval(17404, o is Delegate[], false); Eval(17405, o is MulticastDelegate, false); Eval(17406, o is MulticastDelegate[], false); Eval(17407, o is IEmpty, false); Eval(17408, o is IEmpty[], false); Eval(17409, o is INotEmpty, false); Eval(17410, o is INotEmpty[], false); Eval(17411, o is IEmptyGen<int>, false); Eval(17412, o is IEmptyGen<int>[], false); Eval(17413, o is INotEmptyGen<int>, false); Eval(17414, o is INotEmptyGen<int>[], false); Eval(17415, o is SimpleDelegate, false); Eval(17416, o is SimpleDelegate[], false); Eval(17417, o is GenericDelegate<int>, false); Eval(17418, o is GenericDelegate<int>[], false); Eval(17419, o is EmptyClass, false); Eval(17420, o is EmptyClass[], false); Eval(17421, o is NotEmptyClass, false); Eval(17422, o is NotEmptyClass[], false); Eval(17423, o is EmptyClassGen<int>, false); Eval(17424, o is EmptyClassGen<int>[], false); Eval(17425, o is NotEmptyClassGen<Guid>, false); Eval(17426, o is NotEmptyClassGen<Guid>[], false); Eval(17427, o is NotEmptyClassConstrainedGen<object>, false); Eval(17428, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17429, o is NestedClass, false); Eval(17430, o is NestedClass[], false); Eval(17431, o is NestedClassGen<Decimal>, false); Eval(17432, o is NestedClassGen<Decimal>[], false); Eval(17433, o is ImplementOneInterfaceC, false); Eval(17434, o is ImplementOneInterfaceC[], false); Eval(17435, o is ImplementTwoInterfaceC, false); Eval(17436, o is ImplementTwoInterfaceC[], false); Eval(17437, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17438, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17439, o is ImplementTwoInterfaceGenC<int>, false); Eval(17440, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17441, o is ImplementAllInterfaceC<int>, false); Eval(17442, o is ImplementAllInterfaceC<int>[], false); Eval(17443, o is SealedClass, false); Eval(17444, o is SealedClass[], false); } { float? v = default(float?); ValueType o = v; Eval(17445, o is EmptyStruct, false); Eval(17446, o is EmptyStruct[], false); Eval(17447, o is EmptyStruct?, false); Eval(17448, o is EmptyStruct?[], false); Eval(17449, o is NotEmptyStruct, false); Eval(17450, o is NotEmptyStruct[], false); Eval(17451, o is NotEmptyStruct?, false); Eval(17452, o is NotEmptyStruct?[], false); Eval(17453, o is EmptyStructGen<int>, false); Eval(17454, o is EmptyStructGen<int>[], false); Eval(17455, o is EmptyStructGen<int>?, false); Eval(17456, o is EmptyStructGen<int>?[], false); Eval(17457, o is NotEmptyStructGen<Guid>, false); Eval(17458, o is NotEmptyStructGen<Guid>[], false); Eval(17459, o is NotEmptyStructGen<Guid>?, false); Eval(17460, o is NotEmptyStructGen<Guid>?[], false); Eval(17461, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17462, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17463, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17464, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17465, o is NestedStruct, false); Eval(17466, o is NestedStruct[], false); Eval(17467, o is NestedStruct?, false); Eval(17468, o is NestedStruct?[], false); Eval(17469, o is NestedStructGen<Decimal>, false); Eval(17470, o is NestedStructGen<Decimal>[], false); Eval(17471, o is NestedStructGen<Decimal>?, false); Eval(17472, o is NestedStructGen<Decimal>?[], false); Eval(17473, o is ExplicitFieldOffsetStruct, false); Eval(17474, o is ExplicitFieldOffsetStruct[], false); Eval(17475, o is ExplicitFieldOffsetStruct?, false); Eval(17476, o is ExplicitFieldOffsetStruct?[], false); Eval(17485, o is MarshalAsStruct, false); Eval(17486, o is MarshalAsStruct[], false); Eval(17487, o is MarshalAsStruct?, false); Eval(17488, o is MarshalAsStruct?[], false); Eval(17489, o is ImplementOneInterface, false); Eval(17490, o is ImplementOneInterface[], false); Eval(17491, o is ImplementOneInterface?, false); Eval(17492, o is ImplementOneInterface?[], false); Eval(17493, o is ImplementTwoInterface, false); Eval(17494, o is ImplementTwoInterface[], false); Eval(17495, o is ImplementTwoInterface?, false); Eval(17496, o is ImplementTwoInterface?[], false); Eval(17497, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17498, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17499, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17500, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17501, o is ImplementTwoInterfaceGen<int>, false); Eval(17502, o is ImplementTwoInterfaceGen<int>[], false); Eval(17503, o is ImplementTwoInterfaceGen<int>?, false); Eval(17504, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17505, o is ImplementAllInterface<int>, false); Eval(17506, o is ImplementAllInterface<int>[], false); Eval(17507, o is ImplementAllInterface<int>?, false); Eval(17508, o is ImplementAllInterface<int>?[], false); Eval(17509, o is IntE, false); Eval(17510, o is IntE[], false); Eval(17511, o is IntE?, false); Eval(17512, o is IntE?[], false); Eval(17513, o is ByteE, false); Eval(17514, o is ByteE[], false); Eval(17515, o is ByteE?, false); Eval(17516, o is ByteE?[], false); Eval(17517, o is LongE, false); Eval(17518, o is LongE[], false); Eval(17519, o is LongE?, false); Eval(17520, o is LongE?[], false); Eval(17521, o is char, false); Eval(17522, o is char[], false); Eval(17523, o is char?, false); Eval(17524, o is char?[], false); Eval(17525, o is bool, false); Eval(17526, o is bool[], false); Eval(17527, o is bool?, false); Eval(17528, o is bool?[], false); Eval(17529, o is byte, false); Eval(17530, o is byte[], false); Eval(17531, o is byte?, false); Eval(17532, o is byte?[], false); Eval(17533, o is sbyte, false); Eval(17534, o is sbyte[], false); Eval(17535, o is sbyte?, false); Eval(17536, o is sbyte?[], false); Eval(17537, o is short, false); Eval(17538, o is short[], false); Eval(17539, o is short?, false); Eval(17540, o is short?[], false); Eval(17541, o is ushort, false); Eval(17542, o is ushort[], false); Eval(17543, o is ushort?, false); Eval(17544, o is ushort?[], false); Eval(17545, o is int, false); Eval(17546, o is int[], false); Eval(17547, o is int?, false); Eval(17548, o is int?[], false); Eval(17549, o is uint, false); Eval(17550, o is uint[], false); Eval(17551, o is uint?, false); Eval(17552, o is uint?[], false); Eval(17553, o is long, false); Eval(17554, o is long[], false); Eval(17555, o is long?, false); Eval(17556, o is long?[], false); Eval(17557, o is ulong, false); Eval(17558, o is ulong[], false); Eval(17559, o is ulong?, false); Eval(17560, o is ulong?[], false); Eval(17561, o is float, false); Eval(17562, o is float[], false); Eval(17563, o is float?, false); Eval(17564, o is float?[], false); Eval(17565, o is double, false); Eval(17566, o is double[], false); Eval(17567, o is double?, false); Eval(17568, o is double?[], false); Eval(17569, o is decimal, false); Eval(17570, o is decimal[], false); Eval(17571, o is decimal?, false); Eval(17572, o is decimal?[], false); Eval(17573, o is IntPtr, false); Eval(17574, o is IntPtr[], false); Eval(17575, o is IntPtr?, false); Eval(17576, o is IntPtr?[], false); Eval(17577, o is UIntPtr, false); Eval(17578, o is UIntPtr[], false); Eval(17579, o is UIntPtr?, false); Eval(17580, o is UIntPtr?[], false); Eval(17581, o is Guid, false); Eval(17582, o is Guid[], false); Eval(17583, o is Guid?, false); Eval(17584, o is Guid?[], false); Eval(17585, o is GCHandle, false); Eval(17586, o is GCHandle[], false); Eval(17587, o is GCHandle?, false); Eval(17588, o is GCHandle?[], false); Eval(17589, o is object, false); Eval(17590, o is object[], false); Eval(17591, o is string, false); Eval(17592, o is string[], false); Eval(17593, o is ValueType, false); Eval(17594, o is ValueType[], false); Eval(17595, o is Array, false); Eval(17596, o is Array[], false); Eval(17597, o is Enum, false); Eval(17598, o is Enum[], false); Eval(17599, o is Delegate, false); Eval(17600, o is Delegate[], false); Eval(17601, o is MulticastDelegate, false); Eval(17602, o is MulticastDelegate[], false); Eval(17603, o is IEmpty, false); Eval(17604, o is IEmpty[], false); Eval(17605, o is INotEmpty, false); Eval(17606, o is INotEmpty[], false); Eval(17607, o is IEmptyGen<int>, false); Eval(17608, o is IEmptyGen<int>[], false); Eval(17609, o is INotEmptyGen<int>, false); Eval(17610, o is INotEmptyGen<int>[], false); Eval(17611, o is SimpleDelegate, false); Eval(17612, o is SimpleDelegate[], false); Eval(17613, o is GenericDelegate<int>, false); Eval(17614, o is GenericDelegate<int>[], false); Eval(17615, o is EmptyClass, false); Eval(17616, o is EmptyClass[], false); Eval(17617, o is NotEmptyClass, false); Eval(17618, o is NotEmptyClass[], false); Eval(17619, o is EmptyClassGen<int>, false); Eval(17620, o is EmptyClassGen<int>[], false); Eval(17621, o is NotEmptyClassGen<Guid>, false); Eval(17622, o is NotEmptyClassGen<Guid>[], false); Eval(17623, o is NotEmptyClassConstrainedGen<object>, false); Eval(17624, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17625, o is NestedClass, false); Eval(17626, o is NestedClass[], false); Eval(17627, o is NestedClassGen<Decimal>, false); Eval(17628, o is NestedClassGen<Decimal>[], false); Eval(17629, o is ImplementOneInterfaceC, false); Eval(17630, o is ImplementOneInterfaceC[], false); Eval(17631, o is ImplementTwoInterfaceC, false); Eval(17632, o is ImplementTwoInterfaceC[], false); Eval(17633, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17634, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17635, o is ImplementTwoInterfaceGenC<int>, false); Eval(17636, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17637, o is ImplementAllInterfaceC<int>, false); Eval(17638, o is ImplementAllInterfaceC<int>[], false); Eval(17639, o is SealedClass, false); Eval(17640, o is SealedClass[], false); } } // end of test case 0030 private static void TestCase0031() { { double v = default(double); ValueType o = v; Eval(17641, o is EmptyStruct, false); Eval(17642, o is EmptyStruct[], false); Eval(17643, o is EmptyStruct?, false); Eval(17644, o is EmptyStruct?[], false); Eval(17645, o is NotEmptyStruct, false); Eval(17646, o is NotEmptyStruct[], false); Eval(17647, o is NotEmptyStruct?, false); Eval(17648, o is NotEmptyStruct?[], false); Eval(17649, o is EmptyStructGen<int>, false); Eval(17650, o is EmptyStructGen<int>[], false); Eval(17651, o is EmptyStructGen<int>?, false); Eval(17652, o is EmptyStructGen<int>?[], false); Eval(17653, o is NotEmptyStructGen<Guid>, false); Eval(17654, o is NotEmptyStructGen<Guid>[], false); Eval(17655, o is NotEmptyStructGen<Guid>?, false); Eval(17656, o is NotEmptyStructGen<Guid>?[], false); Eval(17657, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17658, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17659, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17660, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17661, o is NestedStruct, false); Eval(17662, o is NestedStruct[], false); Eval(17663, o is NestedStruct?, false); Eval(17664, o is NestedStruct?[], false); Eval(17665, o is NestedStructGen<Decimal>, false); Eval(17666, o is NestedStructGen<Decimal>[], false); Eval(17667, o is NestedStructGen<Decimal>?, false); Eval(17668, o is NestedStructGen<Decimal>?[], false); Eval(17669, o is ExplicitFieldOffsetStruct, false); Eval(17670, o is ExplicitFieldOffsetStruct[], false); Eval(17671, o is ExplicitFieldOffsetStruct?, false); Eval(17672, o is ExplicitFieldOffsetStruct?[], false); Eval(17681, o is MarshalAsStruct, false); Eval(17682, o is MarshalAsStruct[], false); Eval(17683, o is MarshalAsStruct?, false); Eval(17684, o is MarshalAsStruct?[], false); Eval(17685, o is ImplementOneInterface, false); Eval(17686, o is ImplementOneInterface[], false); Eval(17687, o is ImplementOneInterface?, false); Eval(17688, o is ImplementOneInterface?[], false); Eval(17689, o is ImplementTwoInterface, false); Eval(17690, o is ImplementTwoInterface[], false); Eval(17691, o is ImplementTwoInterface?, false); Eval(17692, o is ImplementTwoInterface?[], false); Eval(17693, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17694, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17695, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17696, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17697, o is ImplementTwoInterfaceGen<int>, false); Eval(17698, o is ImplementTwoInterfaceGen<int>[], false); Eval(17699, o is ImplementTwoInterfaceGen<int>?, false); Eval(17700, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17701, o is ImplementAllInterface<int>, false); Eval(17702, o is ImplementAllInterface<int>[], false); Eval(17703, o is ImplementAllInterface<int>?, false); Eval(17704, o is ImplementAllInterface<int>?[], false); Eval(17705, o is IntE, false); Eval(17706, o is IntE[], false); Eval(17707, o is IntE?, false); Eval(17708, o is IntE?[], false); Eval(17709, o is ByteE, false); Eval(17710, o is ByteE[], false); Eval(17711, o is ByteE?, false); Eval(17712, o is ByteE?[], false); Eval(17713, o is LongE, false); Eval(17714, o is LongE[], false); Eval(17715, o is LongE?, false); Eval(17716, o is LongE?[], false); Eval(17717, o is char, false); Eval(17718, o is char[], false); Eval(17719, o is char?, false); Eval(17720, o is char?[], false); Eval(17721, o is bool, false); Eval(17722, o is bool[], false); Eval(17723, o is bool?, false); Eval(17724, o is bool?[], false); Eval(17725, o is byte, false); Eval(17726, o is byte[], false); Eval(17727, o is byte?, false); Eval(17728, o is byte?[], false); Eval(17729, o is sbyte, false); Eval(17730, o is sbyte[], false); Eval(17731, o is sbyte?, false); Eval(17732, o is sbyte?[], false); Eval(17733, o is short, false); Eval(17734, o is short[], false); Eval(17735, o is short?, false); Eval(17736, o is short?[], false); Eval(17737, o is ushort, false); Eval(17738, o is ushort[], false); Eval(17739, o is ushort?, false); Eval(17740, o is ushort?[], false); Eval(17741, o is int, false); Eval(17742, o is int[], false); Eval(17743, o is int?, false); Eval(17744, o is int?[], false); Eval(17745, o is uint, false); Eval(17746, o is uint[], false); Eval(17747, o is uint?, false); Eval(17748, o is uint?[], false); Eval(17749, o is long, false); Eval(17750, o is long[], false); Eval(17751, o is long?, false); Eval(17752, o is long?[], false); Eval(17753, o is ulong, false); Eval(17754, o is ulong[], false); Eval(17755, o is ulong?, false); Eval(17756, o is ulong?[], false); Eval(17757, o is float, false); Eval(17758, o is float[], false); Eval(17759, o is float?, false); Eval(17760, o is float?[], false); Eval(17761, o is double, true); Eval(17762, o is double[], false); Eval(17763, o is double?, true); Eval(17764, o is double?[], false); Eval(17765, o is decimal, false); Eval(17766, o is decimal[], false); Eval(17767, o is decimal?, false); Eval(17768, o is decimal?[], false); Eval(17769, o is IntPtr, false); Eval(17770, o is IntPtr[], false); Eval(17771, o is IntPtr?, false); Eval(17772, o is IntPtr?[], false); Eval(17773, o is UIntPtr, false); Eval(17774, o is UIntPtr[], false); Eval(17775, o is UIntPtr?, false); Eval(17776, o is UIntPtr?[], false); Eval(17777, o is Guid, false); Eval(17778, o is Guid[], false); Eval(17779, o is Guid?, false); Eval(17780, o is Guid?[], false); Eval(17781, o is GCHandle, false); Eval(17782, o is GCHandle[], false); Eval(17783, o is GCHandle?, false); Eval(17784, o is GCHandle?[], false); Eval(17785, o is object, true); Eval(17786, o is object[], false); Eval(17787, o is string, false); Eval(17788, o is string[], false); Eval(17789, o is ValueType, true); Eval(17790, o is ValueType[], false); Eval(17791, o is Array, false); Eval(17792, o is Array[], false); Eval(17793, o is Enum, false); Eval(17794, o is Enum[], false); Eval(17795, o is Delegate, false); Eval(17796, o is Delegate[], false); Eval(17797, o is MulticastDelegate, false); Eval(17798, o is MulticastDelegate[], false); Eval(17799, o is IEmpty, false); Eval(17800, o is IEmpty[], false); Eval(17801, o is INotEmpty, false); Eval(17802, o is INotEmpty[], false); Eval(17803, o is IEmptyGen<int>, false); Eval(17804, o is IEmptyGen<int>[], false); Eval(17805, o is INotEmptyGen<int>, false); Eval(17806, o is INotEmptyGen<int>[], false); Eval(17807, o is SimpleDelegate, false); Eval(17808, o is SimpleDelegate[], false); Eval(17809, o is GenericDelegate<int>, false); Eval(17810, o is GenericDelegate<int>[], false); Eval(17811, o is EmptyClass, false); Eval(17812, o is EmptyClass[], false); Eval(17813, o is NotEmptyClass, false); Eval(17814, o is NotEmptyClass[], false); Eval(17815, o is EmptyClassGen<int>, false); Eval(17816, o is EmptyClassGen<int>[], false); Eval(17817, o is NotEmptyClassGen<Guid>, false); Eval(17818, o is NotEmptyClassGen<Guid>[], false); Eval(17819, o is NotEmptyClassConstrainedGen<object>, false); Eval(17820, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17821, o is NestedClass, false); Eval(17822, o is NestedClass[], false); Eval(17823, o is NestedClassGen<Decimal>, false); Eval(17824, o is NestedClassGen<Decimal>[], false); Eval(17825, o is ImplementOneInterfaceC, false); Eval(17826, o is ImplementOneInterfaceC[], false); Eval(17827, o is ImplementTwoInterfaceC, false); Eval(17828, o is ImplementTwoInterfaceC[], false); Eval(17829, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17830, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17831, o is ImplementTwoInterfaceGenC<int>, false); Eval(17832, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17833, o is ImplementAllInterfaceC<int>, false); Eval(17834, o is ImplementAllInterfaceC<int>[], false); Eval(17835, o is SealedClass, false); Eval(17836, o is SealedClass[], false); } { double? v = default(double); ValueType o = v; Eval(17837, o is EmptyStruct, false); Eval(17838, o is EmptyStruct[], false); Eval(17839, o is EmptyStruct?, false); Eval(17840, o is EmptyStruct?[], false); Eval(17841, o is NotEmptyStruct, false); Eval(17842, o is NotEmptyStruct[], false); Eval(17843, o is NotEmptyStruct?, false); Eval(17844, o is NotEmptyStruct?[], false); Eval(17845, o is EmptyStructGen<int>, false); Eval(17846, o is EmptyStructGen<int>[], false); Eval(17847, o is EmptyStructGen<int>?, false); Eval(17848, o is EmptyStructGen<int>?[], false); Eval(17849, o is NotEmptyStructGen<Guid>, false); Eval(17850, o is NotEmptyStructGen<Guid>[], false); Eval(17851, o is NotEmptyStructGen<Guid>?, false); Eval(17852, o is NotEmptyStructGen<Guid>?[], false); Eval(17853, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17854, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17855, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17856, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17857, o is NestedStruct, false); Eval(17858, o is NestedStruct[], false); Eval(17859, o is NestedStruct?, false); Eval(17860, o is NestedStruct?[], false); Eval(17861, o is NestedStructGen<Decimal>, false); Eval(17862, o is NestedStructGen<Decimal>[], false); Eval(17863, o is NestedStructGen<Decimal>?, false); Eval(17864, o is NestedStructGen<Decimal>?[], false); Eval(17865, o is ExplicitFieldOffsetStruct, false); Eval(17866, o is ExplicitFieldOffsetStruct[], false); Eval(17867, o is ExplicitFieldOffsetStruct?, false); Eval(17868, o is ExplicitFieldOffsetStruct?[], false); Eval(17877, o is MarshalAsStruct, false); Eval(17878, o is MarshalAsStruct[], false); Eval(17879, o is MarshalAsStruct?, false); Eval(17880, o is MarshalAsStruct?[], false); Eval(17881, o is ImplementOneInterface, false); Eval(17882, o is ImplementOneInterface[], false); Eval(17883, o is ImplementOneInterface?, false); Eval(17884, o is ImplementOneInterface?[], false); Eval(17885, o is ImplementTwoInterface, false); Eval(17886, o is ImplementTwoInterface[], false); Eval(17887, o is ImplementTwoInterface?, false); Eval(17888, o is ImplementTwoInterface?[], false); Eval(17889, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17890, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17891, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17892, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17893, o is ImplementTwoInterfaceGen<int>, false); Eval(17894, o is ImplementTwoInterfaceGen<int>[], false); Eval(17895, o is ImplementTwoInterfaceGen<int>?, false); Eval(17896, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17897, o is ImplementAllInterface<int>, false); Eval(17898, o is ImplementAllInterface<int>[], false); Eval(17899, o is ImplementAllInterface<int>?, false); Eval(17900, o is ImplementAllInterface<int>?[], false); Eval(17901, o is IntE, false); Eval(17902, o is IntE[], false); Eval(17903, o is IntE?, false); Eval(17904, o is IntE?[], false); Eval(17905, o is ByteE, false); Eval(17906, o is ByteE[], false); Eval(17907, o is ByteE?, false); Eval(17908, o is ByteE?[], false); Eval(17909, o is LongE, false); Eval(17910, o is LongE[], false); Eval(17911, o is LongE?, false); Eval(17912, o is LongE?[], false); Eval(17913, o is char, false); Eval(17914, o is char[], false); Eval(17915, o is char?, false); Eval(17916, o is char?[], false); Eval(17917, o is bool, false); Eval(17918, o is bool[], false); Eval(17919, o is bool?, false); Eval(17920, o is bool?[], false); Eval(17921, o is byte, false); Eval(17922, o is byte[], false); Eval(17923, o is byte?, false); Eval(17924, o is byte?[], false); Eval(17925, o is sbyte, false); Eval(17926, o is sbyte[], false); Eval(17927, o is sbyte?, false); Eval(17928, o is sbyte?[], false); Eval(17929, o is short, false); Eval(17930, o is short[], false); Eval(17931, o is short?, false); Eval(17932, o is short?[], false); Eval(17933, o is ushort, false); Eval(17934, o is ushort[], false); Eval(17935, o is ushort?, false); Eval(17936, o is ushort?[], false); Eval(17937, o is int, false); Eval(17938, o is int[], false); Eval(17939, o is int?, false); Eval(17940, o is int?[], false); Eval(17941, o is uint, false); Eval(17942, o is uint[], false); Eval(17943, o is uint?, false); Eval(17944, o is uint?[], false); Eval(17945, o is long, false); Eval(17946, o is long[], false); Eval(17947, o is long?, false); Eval(17948, o is long?[], false); Eval(17949, o is ulong, false); Eval(17950, o is ulong[], false); Eval(17951, o is ulong?, false); Eval(17952, o is ulong?[], false); Eval(17953, o is float, false); Eval(17954, o is float[], false); Eval(17955, o is float?, false); Eval(17956, o is float?[], false); Eval(17957, o is double, true); Eval(17958, o is double[], false); Eval(17959, o is double?, true); Eval(17960, o is double?[], false); Eval(17961, o is decimal, false); Eval(17962, o is decimal[], false); Eval(17963, o is decimal?, false); Eval(17964, o is decimal?[], false); Eval(17965, o is IntPtr, false); Eval(17966, o is IntPtr[], false); Eval(17967, o is IntPtr?, false); Eval(17968, o is IntPtr?[], false); Eval(17969, o is UIntPtr, false); Eval(17970, o is UIntPtr[], false); Eval(17971, o is UIntPtr?, false); Eval(17972, o is UIntPtr?[], false); Eval(17973, o is Guid, false); Eval(17974, o is Guid[], false); Eval(17975, o is Guid?, false); Eval(17976, o is Guid?[], false); Eval(17977, o is GCHandle, false); Eval(17978, o is GCHandle[], false); Eval(17979, o is GCHandle?, false); Eval(17980, o is GCHandle?[], false); Eval(17981, o is object, true); Eval(17982, o is object[], false); Eval(17983, o is string, false); Eval(17984, o is string[], false); Eval(17985, o is ValueType, true); Eval(17986, o is ValueType[], false); Eval(17987, o is Array, false); Eval(17988, o is Array[], false); Eval(17989, o is Enum, false); Eval(17990, o is Enum[], false); Eval(17991, o is Delegate, false); Eval(17992, o is Delegate[], false); Eval(17993, o is MulticastDelegate, false); Eval(17994, o is MulticastDelegate[], false); Eval(17995, o is IEmpty, false); Eval(17996, o is IEmpty[], false); Eval(17997, o is INotEmpty, false); Eval(17998, o is INotEmpty[], false); Eval(17999, o is IEmptyGen<int>, false); Eval(18000, o is IEmptyGen<int>[], false); Eval(18001, o is INotEmptyGen<int>, false); Eval(18002, o is INotEmptyGen<int>[], false); Eval(18003, o is SimpleDelegate, false); Eval(18004, o is SimpleDelegate[], false); Eval(18005, o is GenericDelegate<int>, false); Eval(18006, o is GenericDelegate<int>[], false); Eval(18007, o is EmptyClass, false); Eval(18008, o is EmptyClass[], false); Eval(18009, o is NotEmptyClass, false); Eval(18010, o is NotEmptyClass[], false); Eval(18011, o is EmptyClassGen<int>, false); Eval(18012, o is EmptyClassGen<int>[], false); Eval(18013, o is NotEmptyClassGen<Guid>, false); Eval(18014, o is NotEmptyClassGen<Guid>[], false); Eval(18015, o is NotEmptyClassConstrainedGen<object>, false); Eval(18016, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18017, o is NestedClass, false); Eval(18018, o is NestedClass[], false); Eval(18019, o is NestedClassGen<Decimal>, false); Eval(18020, o is NestedClassGen<Decimal>[], false); Eval(18021, o is ImplementOneInterfaceC, false); Eval(18022, o is ImplementOneInterfaceC[], false); Eval(18023, o is ImplementTwoInterfaceC, false); Eval(18024, o is ImplementTwoInterfaceC[], false); Eval(18025, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18026, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18027, o is ImplementTwoInterfaceGenC<int>, false); Eval(18028, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18029, o is ImplementAllInterfaceC<int>, false); Eval(18030, o is ImplementAllInterfaceC<int>[], false); Eval(18031, o is SealedClass, false); Eval(18032, o is SealedClass[], false); } { double? v = default(double?); ValueType o = v; Eval(18033, o is EmptyStruct, false); Eval(18034, o is EmptyStruct[], false); Eval(18035, o is EmptyStruct?, false); Eval(18036, o is EmptyStruct?[], false); Eval(18037, o is NotEmptyStruct, false); Eval(18038, o is NotEmptyStruct[], false); Eval(18039, o is NotEmptyStruct?, false); Eval(18040, o is NotEmptyStruct?[], false); Eval(18041, o is EmptyStructGen<int>, false); Eval(18042, o is EmptyStructGen<int>[], false); Eval(18043, o is EmptyStructGen<int>?, false); Eval(18044, o is EmptyStructGen<int>?[], false); Eval(18045, o is NotEmptyStructGen<Guid>, false); Eval(18046, o is NotEmptyStructGen<Guid>[], false); Eval(18047, o is NotEmptyStructGen<Guid>?, false); Eval(18048, o is NotEmptyStructGen<Guid>?[], false); Eval(18049, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18050, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18051, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18052, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18053, o is NestedStruct, false); Eval(18054, o is NestedStruct[], false); Eval(18055, o is NestedStruct?, false); Eval(18056, o is NestedStruct?[], false); Eval(18057, o is NestedStructGen<Decimal>, false); Eval(18058, o is NestedStructGen<Decimal>[], false); Eval(18059, o is NestedStructGen<Decimal>?, false); Eval(18060, o is NestedStructGen<Decimal>?[], false); Eval(18061, o is ExplicitFieldOffsetStruct, false); Eval(18062, o is ExplicitFieldOffsetStruct[], false); Eval(18063, o is ExplicitFieldOffsetStruct?, false); Eval(18064, o is ExplicitFieldOffsetStruct?[], false); Eval(18073, o is MarshalAsStruct, false); Eval(18074, o is MarshalAsStruct[], false); Eval(18075, o is MarshalAsStruct?, false); Eval(18076, o is MarshalAsStruct?[], false); Eval(18077, o is ImplementOneInterface, false); Eval(18078, o is ImplementOneInterface[], false); Eval(18079, o is ImplementOneInterface?, false); Eval(18080, o is ImplementOneInterface?[], false); Eval(18081, o is ImplementTwoInterface, false); Eval(18082, o is ImplementTwoInterface[], false); Eval(18083, o is ImplementTwoInterface?, false); Eval(18084, o is ImplementTwoInterface?[], false); Eval(18085, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18086, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18087, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18088, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18089, o is ImplementTwoInterfaceGen<int>, false); Eval(18090, o is ImplementTwoInterfaceGen<int>[], false); Eval(18091, o is ImplementTwoInterfaceGen<int>?, false); Eval(18092, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18093, o is ImplementAllInterface<int>, false); Eval(18094, o is ImplementAllInterface<int>[], false); Eval(18095, o is ImplementAllInterface<int>?, false); Eval(18096, o is ImplementAllInterface<int>?[], false); Eval(18097, o is IntE, false); Eval(18098, o is IntE[], false); Eval(18099, o is IntE?, false); Eval(18100, o is IntE?[], false); Eval(18101, o is ByteE, false); Eval(18102, o is ByteE[], false); Eval(18103, o is ByteE?, false); Eval(18104, o is ByteE?[], false); Eval(18105, o is LongE, false); Eval(18106, o is LongE[], false); Eval(18107, o is LongE?, false); Eval(18108, o is LongE?[], false); Eval(18109, o is char, false); Eval(18110, o is char[], false); Eval(18111, o is char?, false); Eval(18112, o is char?[], false); Eval(18113, o is bool, false); Eval(18114, o is bool[], false); Eval(18115, o is bool?, false); Eval(18116, o is bool?[], false); Eval(18117, o is byte, false); Eval(18118, o is byte[], false); Eval(18119, o is byte?, false); Eval(18120, o is byte?[], false); Eval(18121, o is sbyte, false); Eval(18122, o is sbyte[], false); Eval(18123, o is sbyte?, false); Eval(18124, o is sbyte?[], false); Eval(18125, o is short, false); Eval(18126, o is short[], false); Eval(18127, o is short?, false); Eval(18128, o is short?[], false); Eval(18129, o is ushort, false); Eval(18130, o is ushort[], false); Eval(18131, o is ushort?, false); Eval(18132, o is ushort?[], false); Eval(18133, o is int, false); Eval(18134, o is int[], false); Eval(18135, o is int?, false); Eval(18136, o is int?[], false); Eval(18137, o is uint, false); Eval(18138, o is uint[], false); Eval(18139, o is uint?, false); Eval(18140, o is uint?[], false); Eval(18141, o is long, false); Eval(18142, o is long[], false); Eval(18143, o is long?, false); Eval(18144, o is long?[], false); Eval(18145, o is ulong, false); Eval(18146, o is ulong[], false); Eval(18147, o is ulong?, false); Eval(18148, o is ulong?[], false); Eval(18149, o is float, false); Eval(18150, o is float[], false); Eval(18151, o is float?, false); Eval(18152, o is float?[], false); Eval(18153, o is double, false); Eval(18154, o is double[], false); Eval(18155, o is double?, false); Eval(18156, o is double?[], false); Eval(18157, o is decimal, false); Eval(18158, o is decimal[], false); Eval(18159, o is decimal?, false); Eval(18160, o is decimal?[], false); Eval(18161, o is IntPtr, false); Eval(18162, o is IntPtr[], false); Eval(18163, o is IntPtr?, false); Eval(18164, o is IntPtr?[], false); Eval(18165, o is UIntPtr, false); Eval(18166, o is UIntPtr[], false); Eval(18167, o is UIntPtr?, false); Eval(18168, o is UIntPtr?[], false); Eval(18169, o is Guid, false); Eval(18170, o is Guid[], false); Eval(18171, o is Guid?, false); Eval(18172, o is Guid?[], false); Eval(18173, o is GCHandle, false); Eval(18174, o is GCHandle[], false); Eval(18175, o is GCHandle?, false); Eval(18176, o is GCHandle?[], false); Eval(18177, o is object, false); Eval(18178, o is object[], false); Eval(18179, o is string, false); Eval(18180, o is string[], false); Eval(18181, o is ValueType, false); Eval(18182, o is ValueType[], false); Eval(18183, o is Array, false); Eval(18184, o is Array[], false); Eval(18185, o is Enum, false); Eval(18186, o is Enum[], false); Eval(18187, o is Delegate, false); Eval(18188, o is Delegate[], false); Eval(18189, o is MulticastDelegate, false); Eval(18190, o is MulticastDelegate[], false); Eval(18191, o is IEmpty, false); Eval(18192, o is IEmpty[], false); Eval(18193, o is INotEmpty, false); Eval(18194, o is INotEmpty[], false); Eval(18195, o is IEmptyGen<int>, false); Eval(18196, o is IEmptyGen<int>[], false); Eval(18197, o is INotEmptyGen<int>, false); Eval(18198, o is INotEmptyGen<int>[], false); Eval(18199, o is SimpleDelegate, false); Eval(18200, o is SimpleDelegate[], false); Eval(18201, o is GenericDelegate<int>, false); Eval(18202, o is GenericDelegate<int>[], false); Eval(18203, o is EmptyClass, false); Eval(18204, o is EmptyClass[], false); Eval(18205, o is NotEmptyClass, false); Eval(18206, o is NotEmptyClass[], false); Eval(18207, o is EmptyClassGen<int>, false); Eval(18208, o is EmptyClassGen<int>[], false); Eval(18209, o is NotEmptyClassGen<Guid>, false); Eval(18210, o is NotEmptyClassGen<Guid>[], false); Eval(18211, o is NotEmptyClassConstrainedGen<object>, false); Eval(18212, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18213, o is NestedClass, false); Eval(18214, o is NestedClass[], false); Eval(18215, o is NestedClassGen<Decimal>, false); Eval(18216, o is NestedClassGen<Decimal>[], false); Eval(18217, o is ImplementOneInterfaceC, false); Eval(18218, o is ImplementOneInterfaceC[], false); Eval(18219, o is ImplementTwoInterfaceC, false); Eval(18220, o is ImplementTwoInterfaceC[], false); Eval(18221, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18222, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18223, o is ImplementTwoInterfaceGenC<int>, false); Eval(18224, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18225, o is ImplementAllInterfaceC<int>, false); Eval(18226, o is ImplementAllInterfaceC<int>[], false); Eval(18227, o is SealedClass, false); Eval(18228, o is SealedClass[], false); } } // end of test case 0031 private static void TestCase0032() { { decimal v = default(decimal); ValueType o = v; Eval(18229, o is EmptyStruct, false); Eval(18230, o is EmptyStruct[], false); Eval(18231, o is EmptyStruct?, false); Eval(18232, o is EmptyStruct?[], false); Eval(18233, o is NotEmptyStruct, false); Eval(18234, o is NotEmptyStruct[], false); Eval(18235, o is NotEmptyStruct?, false); Eval(18236, o is NotEmptyStruct?[], false); Eval(18237, o is EmptyStructGen<int>, false); Eval(18238, o is EmptyStructGen<int>[], false); Eval(18239, o is EmptyStructGen<int>?, false); Eval(18240, o is EmptyStructGen<int>?[], false); Eval(18241, o is NotEmptyStructGen<Guid>, false); Eval(18242, o is NotEmptyStructGen<Guid>[], false); Eval(18243, o is NotEmptyStructGen<Guid>?, false); Eval(18244, o is NotEmptyStructGen<Guid>?[], false); Eval(18245, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18246, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18247, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18248, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18249, o is NestedStruct, false); Eval(18250, o is NestedStruct[], false); Eval(18251, o is NestedStruct?, false); Eval(18252, o is NestedStruct?[], false); Eval(18253, o is NestedStructGen<Decimal>, false); Eval(18254, o is NestedStructGen<Decimal>[], false); Eval(18255, o is NestedStructGen<Decimal>?, false); Eval(18256, o is NestedStructGen<Decimal>?[], false); Eval(18257, o is ExplicitFieldOffsetStruct, false); Eval(18258, o is ExplicitFieldOffsetStruct[], false); Eval(18259, o is ExplicitFieldOffsetStruct?, false); Eval(18260, o is ExplicitFieldOffsetStruct?[], false); Eval(18269, o is MarshalAsStruct, false); Eval(18270, o is MarshalAsStruct[], false); Eval(18271, o is MarshalAsStruct?, false); Eval(18272, o is MarshalAsStruct?[], false); Eval(18273, o is ImplementOneInterface, false); Eval(18274, o is ImplementOneInterface[], false); Eval(18275, o is ImplementOneInterface?, false); Eval(18276, o is ImplementOneInterface?[], false); Eval(18277, o is ImplementTwoInterface, false); Eval(18278, o is ImplementTwoInterface[], false); Eval(18279, o is ImplementTwoInterface?, false); Eval(18280, o is ImplementTwoInterface?[], false); Eval(18281, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18282, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18283, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18284, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18285, o is ImplementTwoInterfaceGen<int>, false); Eval(18286, o is ImplementTwoInterfaceGen<int>[], false); Eval(18287, o is ImplementTwoInterfaceGen<int>?, false); Eval(18288, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18289, o is ImplementAllInterface<int>, false); Eval(18290, o is ImplementAllInterface<int>[], false); Eval(18291, o is ImplementAllInterface<int>?, false); Eval(18292, o is ImplementAllInterface<int>?[], false); Eval(18293, o is IntE, false); Eval(18294, o is IntE[], false); Eval(18295, o is IntE?, false); Eval(18296, o is IntE?[], false); Eval(18297, o is ByteE, false); Eval(18298, o is ByteE[], false); Eval(18299, o is ByteE?, false); Eval(18300, o is ByteE?[], false); Eval(18301, o is LongE, false); Eval(18302, o is LongE[], false); Eval(18303, o is LongE?, false); Eval(18304, o is LongE?[], false); Eval(18305, o is char, false); Eval(18306, o is char[], false); Eval(18307, o is char?, false); Eval(18308, o is char?[], false); Eval(18309, o is bool, false); Eval(18310, o is bool[], false); Eval(18311, o is bool?, false); Eval(18312, o is bool?[], false); Eval(18313, o is byte, false); Eval(18314, o is byte[], false); Eval(18315, o is byte?, false); Eval(18316, o is byte?[], false); Eval(18317, o is sbyte, false); Eval(18318, o is sbyte[], false); Eval(18319, o is sbyte?, false); Eval(18320, o is sbyte?[], false); Eval(18321, o is short, false); Eval(18322, o is short[], false); Eval(18323, o is short?, false); Eval(18324, o is short?[], false); Eval(18325, o is ushort, false); Eval(18326, o is ushort[], false); Eval(18327, o is ushort?, false); Eval(18328, o is ushort?[], false); Eval(18329, o is int, false); Eval(18330, o is int[], false); Eval(18331, o is int?, false); Eval(18332, o is int?[], false); Eval(18333, o is uint, false); Eval(18334, o is uint[], false); Eval(18335, o is uint?, false); Eval(18336, o is uint?[], false); Eval(18337, o is long, false); Eval(18338, o is long[], false); Eval(18339, o is long?, false); Eval(18340, o is long?[], false); Eval(18341, o is ulong, false); Eval(18342, o is ulong[], false); Eval(18343, o is ulong?, false); Eval(18344, o is ulong?[], false); Eval(18345, o is float, false); Eval(18346, o is float[], false); Eval(18347, o is float?, false); Eval(18348, o is float?[], false); Eval(18349, o is double, false); Eval(18350, o is double[], false); Eval(18351, o is double?, false); Eval(18352, o is double?[], false); Eval(18353, o is decimal, true); Eval(18354, o is decimal[], false); Eval(18355, o is decimal?, true); Eval(18356, o is decimal?[], false); Eval(18357, o is IntPtr, false); Eval(18358, o is IntPtr[], false); Eval(18359, o is IntPtr?, false); Eval(18360, o is IntPtr?[], false); Eval(18361, o is UIntPtr, false); Eval(18362, o is UIntPtr[], false); Eval(18363, o is UIntPtr?, false); Eval(18364, o is UIntPtr?[], false); Eval(18365, o is Guid, false); Eval(18366, o is Guid[], false); Eval(18367, o is Guid?, false); Eval(18368, o is Guid?[], false); Eval(18369, o is GCHandle, false); Eval(18370, o is GCHandle[], false); Eval(18371, o is GCHandle?, false); Eval(18372, o is GCHandle?[], false); Eval(18373, o is object, true); Eval(18374, o is object[], false); Eval(18375, o is string, false); Eval(18376, o is string[], false); Eval(18377, o is ValueType, true); Eval(18378, o is ValueType[], false); Eval(18379, o is Array, false); Eval(18380, o is Array[], false); Eval(18381, o is Enum, false); Eval(18382, o is Enum[], false); Eval(18383, o is Delegate, false); Eval(18384, o is Delegate[], false); Eval(18385, o is MulticastDelegate, false); Eval(18386, o is MulticastDelegate[], false); Eval(18387, o is IEmpty, false); Eval(18388, o is IEmpty[], false); Eval(18389, o is INotEmpty, false); Eval(18390, o is INotEmpty[], false); Eval(18391, o is IEmptyGen<int>, false); Eval(18392, o is IEmptyGen<int>[], false); Eval(18393, o is INotEmptyGen<int>, false); Eval(18394, o is INotEmptyGen<int>[], false); Eval(18395, o is SimpleDelegate, false); Eval(18396, o is SimpleDelegate[], false); Eval(18397, o is GenericDelegate<int>, false); Eval(18398, o is GenericDelegate<int>[], false); Eval(18399, o is EmptyClass, false); Eval(18400, o is EmptyClass[], false); Eval(18401, o is NotEmptyClass, false); Eval(18402, o is NotEmptyClass[], false); Eval(18403, o is EmptyClassGen<int>, false); Eval(18404, o is EmptyClassGen<int>[], false); Eval(18405, o is NotEmptyClassGen<Guid>, false); Eval(18406, o is NotEmptyClassGen<Guid>[], false); Eval(18407, o is NotEmptyClassConstrainedGen<object>, false); Eval(18408, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18409, o is NestedClass, false); Eval(18410, o is NestedClass[], false); Eval(18411, o is NestedClassGen<Decimal>, false); Eval(18412, o is NestedClassGen<Decimal>[], false); Eval(18413, o is ImplementOneInterfaceC, false); Eval(18414, o is ImplementOneInterfaceC[], false); Eval(18415, o is ImplementTwoInterfaceC, false); Eval(18416, o is ImplementTwoInterfaceC[], false); Eval(18417, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18418, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18419, o is ImplementTwoInterfaceGenC<int>, false); Eval(18420, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18421, o is ImplementAllInterfaceC<int>, false); Eval(18422, o is ImplementAllInterfaceC<int>[], false); Eval(18423, o is SealedClass, false); Eval(18424, o is SealedClass[], false); } { decimal? v = default(decimal); ValueType o = v; Eval(18425, o is EmptyStruct, false); Eval(18426, o is EmptyStruct[], false); Eval(18427, o is EmptyStruct?, false); Eval(18428, o is EmptyStruct?[], false); Eval(18429, o is NotEmptyStruct, false); Eval(18430, o is NotEmptyStruct[], false); Eval(18431, o is NotEmptyStruct?, false); Eval(18432, o is NotEmptyStruct?[], false); Eval(18433, o is EmptyStructGen<int>, false); Eval(18434, o is EmptyStructGen<int>[], false); Eval(18435, o is EmptyStructGen<int>?, false); Eval(18436, o is EmptyStructGen<int>?[], false); Eval(18437, o is NotEmptyStructGen<Guid>, false); Eval(18438, o is NotEmptyStructGen<Guid>[], false); Eval(18439, o is NotEmptyStructGen<Guid>?, false); Eval(18440, o is NotEmptyStructGen<Guid>?[], false); Eval(18441, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18442, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18443, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18444, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18445, o is NestedStruct, false); Eval(18446, o is NestedStruct[], false); Eval(18447, o is NestedStruct?, false); Eval(18448, o is NestedStruct?[], false); Eval(18449, o is NestedStructGen<Decimal>, false); Eval(18450, o is NestedStructGen<Decimal>[], false); Eval(18451, o is NestedStructGen<Decimal>?, false); Eval(18452, o is NestedStructGen<Decimal>?[], false); Eval(18453, o is ExplicitFieldOffsetStruct, false); Eval(18454, o is ExplicitFieldOffsetStruct[], false); Eval(18455, o is ExplicitFieldOffsetStruct?, false); Eval(18456, o is ExplicitFieldOffsetStruct?[], false); Eval(18465, o is MarshalAsStruct, false); Eval(18466, o is MarshalAsStruct[], false); Eval(18467, o is MarshalAsStruct?, false); Eval(18468, o is MarshalAsStruct?[], false); Eval(18469, o is ImplementOneInterface, false); Eval(18470, o is ImplementOneInterface[], false); Eval(18471, o is ImplementOneInterface?, false); Eval(18472, o is ImplementOneInterface?[], false); Eval(18473, o is ImplementTwoInterface, false); Eval(18474, o is ImplementTwoInterface[], false); Eval(18475, o is ImplementTwoInterface?, false); Eval(18476, o is ImplementTwoInterface?[], false); Eval(18477, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18478, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18479, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18480, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18481, o is ImplementTwoInterfaceGen<int>, false); Eval(18482, o is ImplementTwoInterfaceGen<int>[], false); Eval(18483, o is ImplementTwoInterfaceGen<int>?, false); Eval(18484, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18485, o is ImplementAllInterface<int>, false); Eval(18486, o is ImplementAllInterface<int>[], false); Eval(18487, o is ImplementAllInterface<int>?, false); Eval(18488, o is ImplementAllInterface<int>?[], false); Eval(18489, o is IntE, false); Eval(18490, o is IntE[], false); Eval(18491, o is IntE?, false); Eval(18492, o is IntE?[], false); Eval(18493, o is ByteE, false); Eval(18494, o is ByteE[], false); Eval(18495, o is ByteE?, false); Eval(18496, o is ByteE?[], false); Eval(18497, o is LongE, false); Eval(18498, o is LongE[], false); Eval(18499, o is LongE?, false); Eval(18500, o is LongE?[], false); Eval(18501, o is char, false); Eval(18502, o is char[], false); Eval(18503, o is char?, false); Eval(18504, o is char?[], false); Eval(18505, o is bool, false); Eval(18506, o is bool[], false); Eval(18507, o is bool?, false); Eval(18508, o is bool?[], false); Eval(18509, o is byte, false); Eval(18510, o is byte[], false); Eval(18511, o is byte?, false); Eval(18512, o is byte?[], false); Eval(18513, o is sbyte, false); Eval(18514, o is sbyte[], false); Eval(18515, o is sbyte?, false); Eval(18516, o is sbyte?[], false); Eval(18517, o is short, false); Eval(18518, o is short[], false); Eval(18519, o is short?, false); Eval(18520, o is short?[], false); Eval(18521, o is ushort, false); Eval(18522, o is ushort[], false); Eval(18523, o is ushort?, false); Eval(18524, o is ushort?[], false); Eval(18525, o is int, false); Eval(18526, o is int[], false); Eval(18527, o is int?, false); Eval(18528, o is int?[], false); Eval(18529, o is uint, false); Eval(18530, o is uint[], false); Eval(18531, o is uint?, false); Eval(18532, o is uint?[], false); Eval(18533, o is long, false); Eval(18534, o is long[], false); Eval(18535, o is long?, false); Eval(18536, o is long?[], false); Eval(18537, o is ulong, false); Eval(18538, o is ulong[], false); Eval(18539, o is ulong?, false); Eval(18540, o is ulong?[], false); Eval(18541, o is float, false); Eval(18542, o is float[], false); Eval(18543, o is float?, false); Eval(18544, o is float?[], false); Eval(18545, o is double, false); Eval(18546, o is double[], false); Eval(18547, o is double?, false); Eval(18548, o is double?[], false); Eval(18549, o is decimal, true); Eval(18550, o is decimal[], false); Eval(18551, o is decimal?, true); Eval(18552, o is decimal?[], false); Eval(18553, o is IntPtr, false); Eval(18554, o is IntPtr[], false); Eval(18555, o is IntPtr?, false); Eval(18556, o is IntPtr?[], false); Eval(18557, o is UIntPtr, false); Eval(18558, o is UIntPtr[], false); Eval(18559, o is UIntPtr?, false); Eval(18560, o is UIntPtr?[], false); Eval(18561, o is Guid, false); Eval(18562, o is Guid[], false); Eval(18563, o is Guid?, false); Eval(18564, o is Guid?[], false); Eval(18565, o is GCHandle, false); Eval(18566, o is GCHandle[], false); Eval(18567, o is GCHandle?, false); Eval(18568, o is GCHandle?[], false); Eval(18569, o is object, true); Eval(18570, o is object[], false); Eval(18571, o is string, false); Eval(18572, o is string[], false); Eval(18573, o is ValueType, true); Eval(18574, o is ValueType[], false); Eval(18575, o is Array, false); Eval(18576, o is Array[], false); Eval(18577, o is Enum, false); Eval(18578, o is Enum[], false); Eval(18579, o is Delegate, false); Eval(18580, o is Delegate[], false); Eval(18581, o is MulticastDelegate, false); Eval(18582, o is MulticastDelegate[], false); Eval(18583, o is IEmpty, false); Eval(18584, o is IEmpty[], false); Eval(18585, o is INotEmpty, false); Eval(18586, o is INotEmpty[], false); Eval(18587, o is IEmptyGen<int>, false); Eval(18588, o is IEmptyGen<int>[], false); Eval(18589, o is INotEmptyGen<int>, false); Eval(18590, o is INotEmptyGen<int>[], false); Eval(18591, o is SimpleDelegate, false); Eval(18592, o is SimpleDelegate[], false); Eval(18593, o is GenericDelegate<int>, false); Eval(18594, o is GenericDelegate<int>[], false); Eval(18595, o is EmptyClass, false); Eval(18596, o is EmptyClass[], false); Eval(18597, o is NotEmptyClass, false); Eval(18598, o is NotEmptyClass[], false); Eval(18599, o is EmptyClassGen<int>, false); Eval(18600, o is EmptyClassGen<int>[], false); Eval(18601, o is NotEmptyClassGen<Guid>, false); Eval(18602, o is NotEmptyClassGen<Guid>[], false); Eval(18603, o is NotEmptyClassConstrainedGen<object>, false); Eval(18604, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18605, o is NestedClass, false); Eval(18606, o is NestedClass[], false); Eval(18607, o is NestedClassGen<Decimal>, false); Eval(18608, o is NestedClassGen<Decimal>[], false); Eval(18609, o is ImplementOneInterfaceC, false); Eval(18610, o is ImplementOneInterfaceC[], false); Eval(18611, o is ImplementTwoInterfaceC, false); Eval(18612, o is ImplementTwoInterfaceC[], false); Eval(18613, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18614, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18615, o is ImplementTwoInterfaceGenC<int>, false); Eval(18616, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18617, o is ImplementAllInterfaceC<int>, false); Eval(18618, o is ImplementAllInterfaceC<int>[], false); Eval(18619, o is SealedClass, false); Eval(18620, o is SealedClass[], false); } { decimal? v = default(decimal?); ValueType o = v; Eval(18621, o is EmptyStruct, false); Eval(18622, o is EmptyStruct[], false); Eval(18623, o is EmptyStruct?, false); Eval(18624, o is EmptyStruct?[], false); Eval(18625, o is NotEmptyStruct, false); Eval(18626, o is NotEmptyStruct[], false); Eval(18627, o is NotEmptyStruct?, false); Eval(18628, o is NotEmptyStruct?[], false); Eval(18629, o is EmptyStructGen<int>, false); Eval(18630, o is EmptyStructGen<int>[], false); Eval(18631, o is EmptyStructGen<int>?, false); Eval(18632, o is EmptyStructGen<int>?[], false); Eval(18633, o is NotEmptyStructGen<Guid>, false); Eval(18634, o is NotEmptyStructGen<Guid>[], false); Eval(18635, o is NotEmptyStructGen<Guid>?, false); Eval(18636, o is NotEmptyStructGen<Guid>?[], false); Eval(18637, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18638, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18639, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18640, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18641, o is NestedStruct, false); Eval(18642, o is NestedStruct[], false); Eval(18643, o is NestedStruct?, false); Eval(18644, o is NestedStruct?[], false); Eval(18645, o is NestedStructGen<Decimal>, false); Eval(18646, o is NestedStructGen<Decimal>[], false); Eval(18647, o is NestedStructGen<Decimal>?, false); Eval(18648, o is NestedStructGen<Decimal>?[], false); Eval(18649, o is ExplicitFieldOffsetStruct, false); Eval(18650, o is ExplicitFieldOffsetStruct[], false); Eval(18651, o is ExplicitFieldOffsetStruct?, false); Eval(18652, o is ExplicitFieldOffsetStruct?[], false); Eval(18661, o is MarshalAsStruct, false); Eval(18662, o is MarshalAsStruct[], false); Eval(18663, o is MarshalAsStruct?, false); Eval(18664, o is MarshalAsStruct?[], false); Eval(18665, o is ImplementOneInterface, false); Eval(18666, o is ImplementOneInterface[], false); Eval(18667, o is ImplementOneInterface?, false); Eval(18668, o is ImplementOneInterface?[], false); Eval(18669, o is ImplementTwoInterface, false); Eval(18670, o is ImplementTwoInterface[], false); Eval(18671, o is ImplementTwoInterface?, false); Eval(18672, o is ImplementTwoInterface?[], false); Eval(18673, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18674, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18675, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18676, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18677, o is ImplementTwoInterfaceGen<int>, false); Eval(18678, o is ImplementTwoInterfaceGen<int>[], false); Eval(18679, o is ImplementTwoInterfaceGen<int>?, false); Eval(18680, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18681, o is ImplementAllInterface<int>, false); Eval(18682, o is ImplementAllInterface<int>[], false); Eval(18683, o is ImplementAllInterface<int>?, false); Eval(18684, o is ImplementAllInterface<int>?[], false); Eval(18685, o is IntE, false); Eval(18686, o is IntE[], false); Eval(18687, o is IntE?, false); Eval(18688, o is IntE?[], false); Eval(18689, o is ByteE, false); Eval(18690, o is ByteE[], false); Eval(18691, o is ByteE?, false); Eval(18692, o is ByteE?[], false); Eval(18693, o is LongE, false); Eval(18694, o is LongE[], false); Eval(18695, o is LongE?, false); Eval(18696, o is LongE?[], false); Eval(18697, o is char, false); Eval(18698, o is char[], false); Eval(18699, o is char?, false); Eval(18700, o is char?[], false); Eval(18701, o is bool, false); Eval(18702, o is bool[], false); Eval(18703, o is bool?, false); Eval(18704, o is bool?[], false); Eval(18705, o is byte, false); Eval(18706, o is byte[], false); Eval(18707, o is byte?, false); Eval(18708, o is byte?[], false); Eval(18709, o is sbyte, false); Eval(18710, o is sbyte[], false); Eval(18711, o is sbyte?, false); Eval(18712, o is sbyte?[], false); Eval(18713, o is short, false); Eval(18714, o is short[], false); Eval(18715, o is short?, false); Eval(18716, o is short?[], false); Eval(18717, o is ushort, false); Eval(18718, o is ushort[], false); Eval(18719, o is ushort?, false); Eval(18720, o is ushort?[], false); Eval(18721, o is int, false); Eval(18722, o is int[], false); Eval(18723, o is int?, false); Eval(18724, o is int?[], false); Eval(18725, o is uint, false); Eval(18726, o is uint[], false); Eval(18727, o is uint?, false); Eval(18728, o is uint?[], false); Eval(18729, o is long, false); Eval(18730, o is long[], false); Eval(18731, o is long?, false); Eval(18732, o is long?[], false); Eval(18733, o is ulong, false); Eval(18734, o is ulong[], false); Eval(18735, o is ulong?, false); Eval(18736, o is ulong?[], false); Eval(18737, o is float, false); Eval(18738, o is float[], false); Eval(18739, o is float?, false); Eval(18740, o is float?[], false); Eval(18741, o is double, false); Eval(18742, o is double[], false); Eval(18743, o is double?, false); Eval(18744, o is double?[], false); Eval(18745, o is decimal, false); Eval(18746, o is decimal[], false); Eval(18747, o is decimal?, false); Eval(18748, o is decimal?[], false); Eval(18749, o is IntPtr, false); Eval(18750, o is IntPtr[], false); Eval(18751, o is IntPtr?, false); Eval(18752, o is IntPtr?[], false); Eval(18753, o is UIntPtr, false); Eval(18754, o is UIntPtr[], false); Eval(18755, o is UIntPtr?, false); Eval(18756, o is UIntPtr?[], false); Eval(18757, o is Guid, false); Eval(18758, o is Guid[], false); Eval(18759, o is Guid?, false); Eval(18760, o is Guid?[], false); Eval(18761, o is GCHandle, false); Eval(18762, o is GCHandle[], false); Eval(18763, o is GCHandle?, false); Eval(18764, o is GCHandle?[], false); Eval(18765, o is object, false); Eval(18766, o is object[], false); Eval(18767, o is string, false); Eval(18768, o is string[], false); Eval(18769, o is ValueType, false); Eval(18770, o is ValueType[], false); Eval(18771, o is Array, false); Eval(18772, o is Array[], false); Eval(18773, o is Enum, false); Eval(18774, o is Enum[], false); Eval(18775, o is Delegate, false); Eval(18776, o is Delegate[], false); Eval(18777, o is MulticastDelegate, false); Eval(18778, o is MulticastDelegate[], false); Eval(18779, o is IEmpty, false); Eval(18780, o is IEmpty[], false); Eval(18781, o is INotEmpty, false); Eval(18782, o is INotEmpty[], false); Eval(18783, o is IEmptyGen<int>, false); Eval(18784, o is IEmptyGen<int>[], false); Eval(18785, o is INotEmptyGen<int>, false); Eval(18786, o is INotEmptyGen<int>[], false); Eval(18787, o is SimpleDelegate, false); Eval(18788, o is SimpleDelegate[], false); Eval(18789, o is GenericDelegate<int>, false); Eval(18790, o is GenericDelegate<int>[], false); Eval(18791, o is EmptyClass, false); Eval(18792, o is EmptyClass[], false); Eval(18793, o is NotEmptyClass, false); Eval(18794, o is NotEmptyClass[], false); Eval(18795, o is EmptyClassGen<int>, false); Eval(18796, o is EmptyClassGen<int>[], false); Eval(18797, o is NotEmptyClassGen<Guid>, false); Eval(18798, o is NotEmptyClassGen<Guid>[], false); Eval(18799, o is NotEmptyClassConstrainedGen<object>, false); Eval(18800, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18801, o is NestedClass, false); Eval(18802, o is NestedClass[], false); Eval(18803, o is NestedClassGen<Decimal>, false); Eval(18804, o is NestedClassGen<Decimal>[], false); Eval(18805, o is ImplementOneInterfaceC, false); Eval(18806, o is ImplementOneInterfaceC[], false); Eval(18807, o is ImplementTwoInterfaceC, false); Eval(18808, o is ImplementTwoInterfaceC[], false); Eval(18809, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18810, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18811, o is ImplementTwoInterfaceGenC<int>, false); Eval(18812, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18813, o is ImplementAllInterfaceC<int>, false); Eval(18814, o is ImplementAllInterfaceC<int>[], false); Eval(18815, o is SealedClass, false); Eval(18816, o is SealedClass[], false); } } // end of test case 0032 private static void TestCase0033() { { IntPtr v = default(IntPtr); ValueType o = v; Eval(18817, o is EmptyStruct, false); Eval(18818, o is EmptyStruct[], false); Eval(18819, o is EmptyStruct?, false); Eval(18820, o is EmptyStruct?[], false); Eval(18821, o is NotEmptyStruct, false); Eval(18822, o is NotEmptyStruct[], false); Eval(18823, o is NotEmptyStruct?, false); Eval(18824, o is NotEmptyStruct?[], false); Eval(18825, o is EmptyStructGen<int>, false); Eval(18826, o is EmptyStructGen<int>[], false); Eval(18827, o is EmptyStructGen<int>?, false); Eval(18828, o is EmptyStructGen<int>?[], false); Eval(18829, o is NotEmptyStructGen<Guid>, false); Eval(18830, o is NotEmptyStructGen<Guid>[], false); Eval(18831, o is NotEmptyStructGen<Guid>?, false); Eval(18832, o is NotEmptyStructGen<Guid>?[], false); Eval(18833, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18834, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18835, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18836, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18837, o is NestedStruct, false); Eval(18838, o is NestedStruct[], false); Eval(18839, o is NestedStruct?, false); Eval(18840, o is NestedStruct?[], false); Eval(18841, o is NestedStructGen<Decimal>, false); Eval(18842, o is NestedStructGen<Decimal>[], false); Eval(18843, o is NestedStructGen<Decimal>?, false); Eval(18844, o is NestedStructGen<Decimal>?[], false); Eval(18845, o is ExplicitFieldOffsetStruct, false); Eval(18846, o is ExplicitFieldOffsetStruct[], false); Eval(18847, o is ExplicitFieldOffsetStruct?, false); Eval(18848, o is ExplicitFieldOffsetStruct?[], false); Eval(18857, o is MarshalAsStruct, false); Eval(18858, o is MarshalAsStruct[], false); Eval(18859, o is MarshalAsStruct?, false); Eval(18860, o is MarshalAsStruct?[], false); Eval(18861, o is ImplementOneInterface, false); Eval(18862, o is ImplementOneInterface[], false); Eval(18863, o is ImplementOneInterface?, false); Eval(18864, o is ImplementOneInterface?[], false); Eval(18865, o is ImplementTwoInterface, false); Eval(18866, o is ImplementTwoInterface[], false); Eval(18867, o is ImplementTwoInterface?, false); Eval(18868, o is ImplementTwoInterface?[], false); Eval(18869, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18870, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18871, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18872, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18873, o is ImplementTwoInterfaceGen<int>, false); Eval(18874, o is ImplementTwoInterfaceGen<int>[], false); Eval(18875, o is ImplementTwoInterfaceGen<int>?, false); Eval(18876, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18877, o is ImplementAllInterface<int>, false); Eval(18878, o is ImplementAllInterface<int>[], false); Eval(18879, o is ImplementAllInterface<int>?, false); Eval(18880, o is ImplementAllInterface<int>?[], false); Eval(18881, o is IntE, false); Eval(18882, o is IntE[], false); Eval(18883, o is IntE?, false); Eval(18884, o is IntE?[], false); Eval(18885, o is ByteE, false); Eval(18886, o is ByteE[], false); Eval(18887, o is ByteE?, false); Eval(18888, o is ByteE?[], false); Eval(18889, o is LongE, false); Eval(18890, o is LongE[], false); Eval(18891, o is LongE?, false); Eval(18892, o is LongE?[], false); Eval(18893, o is char, false); Eval(18894, o is char[], false); Eval(18895, o is char?, false); Eval(18896, o is char?[], false); Eval(18897, o is bool, false); Eval(18898, o is bool[], false); Eval(18899, o is bool?, false); Eval(18900, o is bool?[], false); Eval(18901, o is byte, false); Eval(18902, o is byte[], false); Eval(18903, o is byte?, false); Eval(18904, o is byte?[], false); Eval(18905, o is sbyte, false); Eval(18906, o is sbyte[], false); Eval(18907, o is sbyte?, false); Eval(18908, o is sbyte?[], false); Eval(18909, o is short, false); Eval(18910, o is short[], false); Eval(18911, o is short?, false); Eval(18912, o is short?[], false); Eval(18913, o is ushort, false); Eval(18914, o is ushort[], false); Eval(18915, o is ushort?, false); Eval(18916, o is ushort?[], false); Eval(18917, o is int, false); Eval(18918, o is int[], false); Eval(18919, o is int?, false); Eval(18920, o is int?[], false); Eval(18921, o is uint, false); Eval(18922, o is uint[], false); Eval(18923, o is uint?, false); Eval(18924, o is uint?[], false); Eval(18925, o is long, false); Eval(18926, o is long[], false); Eval(18927, o is long?, false); Eval(18928, o is long?[], false); Eval(18929, o is ulong, false); Eval(18930, o is ulong[], false); Eval(18931, o is ulong?, false); Eval(18932, o is ulong?[], false); Eval(18933, o is float, false); Eval(18934, o is float[], false); Eval(18935, o is float?, false); Eval(18936, o is float?[], false); Eval(18937, o is double, false); Eval(18938, o is double[], false); Eval(18939, o is double?, false); Eval(18940, o is double?[], false); Eval(18941, o is decimal, false); Eval(18942, o is decimal[], false); Eval(18943, o is decimal?, false); Eval(18944, o is decimal?[], false); Eval(18945, o is IntPtr, true); Eval(18946, o is IntPtr[], false); Eval(18947, o is IntPtr?, true); Eval(18948, o is IntPtr?[], false); Eval(18949, o is UIntPtr, false); Eval(18950, o is UIntPtr[], false); Eval(18951, o is UIntPtr?, false); Eval(18952, o is UIntPtr?[], false); Eval(18953, o is Guid, false); Eval(18954, o is Guid[], false); Eval(18955, o is Guid?, false); Eval(18956, o is Guid?[], false); Eval(18957, o is GCHandle, false); Eval(18958, o is GCHandle[], false); Eval(18959, o is GCHandle?, false); Eval(18960, o is GCHandle?[], false); Eval(18961, o is object, true); Eval(18962, o is object[], false); Eval(18963, o is string, false); Eval(18964, o is string[], false); Eval(18965, o is ValueType, true); Eval(18966, o is ValueType[], false); Eval(18967, o is Array, false); Eval(18968, o is Array[], false); Eval(18969, o is Enum, false); Eval(18970, o is Enum[], false); Eval(18971, o is Delegate, false); Eval(18972, o is Delegate[], false); Eval(18973, o is MulticastDelegate, false); Eval(18974, o is MulticastDelegate[], false); Eval(18975, o is IEmpty, false); Eval(18976, o is IEmpty[], false); Eval(18977, o is INotEmpty, false); Eval(18978, o is INotEmpty[], false); Eval(18979, o is IEmptyGen<int>, false); Eval(18980, o is IEmptyGen<int>[], false); Eval(18981, o is INotEmptyGen<int>, false); Eval(18982, o is INotEmptyGen<int>[], false); Eval(18983, o is SimpleDelegate, false); Eval(18984, o is SimpleDelegate[], false); Eval(18985, o is GenericDelegate<int>, false); Eval(18986, o is GenericDelegate<int>[], false); Eval(18987, o is EmptyClass, false); Eval(18988, o is EmptyClass[], false); Eval(18989, o is NotEmptyClass, false); Eval(18990, o is NotEmptyClass[], false); Eval(18991, o is EmptyClassGen<int>, false); Eval(18992, o is EmptyClassGen<int>[], false); Eval(18993, o is NotEmptyClassGen<Guid>, false); Eval(18994, o is NotEmptyClassGen<Guid>[], false); Eval(18995, o is NotEmptyClassConstrainedGen<object>, false); Eval(18996, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18997, o is NestedClass, false); Eval(18998, o is NestedClass[], false); Eval(18999, o is NestedClassGen<Decimal>, false); Eval(19000, o is NestedClassGen<Decimal>[], false); Eval(19001, o is ImplementOneInterfaceC, false); Eval(19002, o is ImplementOneInterfaceC[], false); Eval(19003, o is ImplementTwoInterfaceC, false); Eval(19004, o is ImplementTwoInterfaceC[], false); Eval(19005, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19006, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19007, o is ImplementTwoInterfaceGenC<int>, false); Eval(19008, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19009, o is ImplementAllInterfaceC<int>, false); Eval(19010, o is ImplementAllInterfaceC<int>[], false); Eval(19011, o is SealedClass, false); Eval(19012, o is SealedClass[], false); } { IntPtr? v = default(IntPtr); ValueType o = v; Eval(19013, o is EmptyStruct, false); Eval(19014, o is EmptyStruct[], false); Eval(19015, o is EmptyStruct?, false); Eval(19016, o is EmptyStruct?[], false); Eval(19017, o is NotEmptyStruct, false); Eval(19018, o is NotEmptyStruct[], false); Eval(19019, o is NotEmptyStruct?, false); Eval(19020, o is NotEmptyStruct?[], false); Eval(19021, o is EmptyStructGen<int>, false); Eval(19022, o is EmptyStructGen<int>[], false); Eval(19023, o is EmptyStructGen<int>?, false); Eval(19024, o is EmptyStructGen<int>?[], false); Eval(19025, o is NotEmptyStructGen<Guid>, false); Eval(19026, o is NotEmptyStructGen<Guid>[], false); Eval(19027, o is NotEmptyStructGen<Guid>?, false); Eval(19028, o is NotEmptyStructGen<Guid>?[], false); Eval(19029, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19030, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19031, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19032, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19033, o is NestedStruct, false); Eval(19034, o is NestedStruct[], false); Eval(19035, o is NestedStruct?, false); Eval(19036, o is NestedStruct?[], false); Eval(19037, o is NestedStructGen<Decimal>, false); Eval(19038, o is NestedStructGen<Decimal>[], false); Eval(19039, o is NestedStructGen<Decimal>?, false); Eval(19040, o is NestedStructGen<Decimal>?[], false); Eval(19041, o is ExplicitFieldOffsetStruct, false); Eval(19042, o is ExplicitFieldOffsetStruct[], false); Eval(19043, o is ExplicitFieldOffsetStruct?, false); Eval(19044, o is ExplicitFieldOffsetStruct?[], false); Eval(19053, o is MarshalAsStruct, false); Eval(19054, o is MarshalAsStruct[], false); Eval(19055, o is MarshalAsStruct?, false); Eval(19056, o is MarshalAsStruct?[], false); Eval(19057, o is ImplementOneInterface, false); Eval(19058, o is ImplementOneInterface[], false); Eval(19059, o is ImplementOneInterface?, false); Eval(19060, o is ImplementOneInterface?[], false); Eval(19061, o is ImplementTwoInterface, false); Eval(19062, o is ImplementTwoInterface[], false); Eval(19063, o is ImplementTwoInterface?, false); Eval(19064, o is ImplementTwoInterface?[], false); Eval(19065, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19066, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19067, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19068, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19069, o is ImplementTwoInterfaceGen<int>, false); Eval(19070, o is ImplementTwoInterfaceGen<int>[], false); Eval(19071, o is ImplementTwoInterfaceGen<int>?, false); Eval(19072, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19073, o is ImplementAllInterface<int>, false); Eval(19074, o is ImplementAllInterface<int>[], false); Eval(19075, o is ImplementAllInterface<int>?, false); Eval(19076, o is ImplementAllInterface<int>?[], false); Eval(19077, o is IntE, false); Eval(19078, o is IntE[], false); Eval(19079, o is IntE?, false); Eval(19080, o is IntE?[], false); Eval(19081, o is ByteE, false); Eval(19082, o is ByteE[], false); Eval(19083, o is ByteE?, false); Eval(19084, o is ByteE?[], false); Eval(19085, o is LongE, false); Eval(19086, o is LongE[], false); Eval(19087, o is LongE?, false); Eval(19088, o is LongE?[], false); Eval(19089, o is char, false); Eval(19090, o is char[], false); Eval(19091, o is char?, false); Eval(19092, o is char?[], false); Eval(19093, o is bool, false); Eval(19094, o is bool[], false); Eval(19095, o is bool?, false); Eval(19096, o is bool?[], false); Eval(19097, o is byte, false); Eval(19098, o is byte[], false); Eval(19099, o is byte?, false); Eval(19100, o is byte?[], false); Eval(19101, o is sbyte, false); Eval(19102, o is sbyte[], false); Eval(19103, o is sbyte?, false); Eval(19104, o is sbyte?[], false); Eval(19105, o is short, false); Eval(19106, o is short[], false); Eval(19107, o is short?, false); Eval(19108, o is short?[], false); Eval(19109, o is ushort, false); Eval(19110, o is ushort[], false); Eval(19111, o is ushort?, false); Eval(19112, o is ushort?[], false); Eval(19113, o is int, false); Eval(19114, o is int[], false); Eval(19115, o is int?, false); Eval(19116, o is int?[], false); Eval(19117, o is uint, false); Eval(19118, o is uint[], false); Eval(19119, o is uint?, false); Eval(19120, o is uint?[], false); Eval(19121, o is long, false); Eval(19122, o is long[], false); Eval(19123, o is long?, false); Eval(19124, o is long?[], false); Eval(19125, o is ulong, false); Eval(19126, o is ulong[], false); Eval(19127, o is ulong?, false); Eval(19128, o is ulong?[], false); Eval(19129, o is float, false); Eval(19130, o is float[], false); Eval(19131, o is float?, false); Eval(19132, o is float?[], false); Eval(19133, o is double, false); Eval(19134, o is double[], false); Eval(19135, o is double?, false); Eval(19136, o is double?[], false); Eval(19137, o is decimal, false); Eval(19138, o is decimal[], false); Eval(19139, o is decimal?, false); Eval(19140, o is decimal?[], false); Eval(19141, o is IntPtr, true); Eval(19142, o is IntPtr[], false); Eval(19143, o is IntPtr?, true); Eval(19144, o is IntPtr?[], false); Eval(19145, o is UIntPtr, false); Eval(19146, o is UIntPtr[], false); Eval(19147, o is UIntPtr?, false); Eval(19148, o is UIntPtr?[], false); Eval(19149, o is Guid, false); Eval(19150, o is Guid[], false); Eval(19151, o is Guid?, false); Eval(19152, o is Guid?[], false); Eval(19153, o is GCHandle, false); Eval(19154, o is GCHandle[], false); Eval(19155, o is GCHandle?, false); Eval(19156, o is GCHandle?[], false); Eval(19157, o is object, true); Eval(19158, o is object[], false); Eval(19159, o is string, false); Eval(19160, o is string[], false); Eval(19161, o is ValueType, true); Eval(19162, o is ValueType[], false); Eval(19163, o is Array, false); Eval(19164, o is Array[], false); Eval(19165, o is Enum, false); Eval(19166, o is Enum[], false); Eval(19167, o is Delegate, false); Eval(19168, o is Delegate[], false); Eval(19169, o is MulticastDelegate, false); Eval(19170, o is MulticastDelegate[], false); Eval(19171, o is IEmpty, false); Eval(19172, o is IEmpty[], false); Eval(19173, o is INotEmpty, false); Eval(19174, o is INotEmpty[], false); Eval(19175, o is IEmptyGen<int>, false); Eval(19176, o is IEmptyGen<int>[], false); Eval(19177, o is INotEmptyGen<int>, false); Eval(19178, o is INotEmptyGen<int>[], false); Eval(19179, o is SimpleDelegate, false); Eval(19180, o is SimpleDelegate[], false); Eval(19181, o is GenericDelegate<int>, false); Eval(19182, o is GenericDelegate<int>[], false); Eval(19183, o is EmptyClass, false); Eval(19184, o is EmptyClass[], false); Eval(19185, o is NotEmptyClass, false); Eval(19186, o is NotEmptyClass[], false); Eval(19187, o is EmptyClassGen<int>, false); Eval(19188, o is EmptyClassGen<int>[], false); Eval(19189, o is NotEmptyClassGen<Guid>, false); Eval(19190, o is NotEmptyClassGen<Guid>[], false); Eval(19191, o is NotEmptyClassConstrainedGen<object>, false); Eval(19192, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19193, o is NestedClass, false); Eval(19194, o is NestedClass[], false); Eval(19195, o is NestedClassGen<Decimal>, false); Eval(19196, o is NestedClassGen<Decimal>[], false); Eval(19197, o is ImplementOneInterfaceC, false); Eval(19198, o is ImplementOneInterfaceC[], false); Eval(19199, o is ImplementTwoInterfaceC, false); Eval(19200, o is ImplementTwoInterfaceC[], false); Eval(19201, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19202, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19203, o is ImplementTwoInterfaceGenC<int>, false); Eval(19204, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19205, o is ImplementAllInterfaceC<int>, false); Eval(19206, o is ImplementAllInterfaceC<int>[], false); Eval(19207, o is SealedClass, false); Eval(19208, o is SealedClass[], false); } { IntPtr? v = default(IntPtr?); ValueType o = v; Eval(19209, o is EmptyStruct, false); Eval(19210, o is EmptyStruct[], false); Eval(19211, o is EmptyStruct?, false); Eval(19212, o is EmptyStruct?[], false); Eval(19213, o is NotEmptyStruct, false); Eval(19214, o is NotEmptyStruct[], false); Eval(19215, o is NotEmptyStruct?, false); Eval(19216, o is NotEmptyStruct?[], false); Eval(19217, o is EmptyStructGen<int>, false); Eval(19218, o is EmptyStructGen<int>[], false); Eval(19219, o is EmptyStructGen<int>?, false); Eval(19220, o is EmptyStructGen<int>?[], false); Eval(19221, o is NotEmptyStructGen<Guid>, false); Eval(19222, o is NotEmptyStructGen<Guid>[], false); Eval(19223, o is NotEmptyStructGen<Guid>?, false); Eval(19224, o is NotEmptyStructGen<Guid>?[], false); Eval(19225, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19226, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19227, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19228, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19229, o is NestedStruct, false); Eval(19230, o is NestedStruct[], false); Eval(19231, o is NestedStruct?, false); Eval(19232, o is NestedStruct?[], false); Eval(19233, o is NestedStructGen<Decimal>, false); Eval(19234, o is NestedStructGen<Decimal>[], false); Eval(19235, o is NestedStructGen<Decimal>?, false); Eval(19236, o is NestedStructGen<Decimal>?[], false); Eval(19237, o is ExplicitFieldOffsetStruct, false); Eval(19238, o is ExplicitFieldOffsetStruct[], false); Eval(19239, o is ExplicitFieldOffsetStruct?, false); Eval(19240, o is ExplicitFieldOffsetStruct?[], false); Eval(19249, o is MarshalAsStruct, false); Eval(19250, o is MarshalAsStruct[], false); Eval(19251, o is MarshalAsStruct?, false); Eval(19252, o is MarshalAsStruct?[], false); Eval(19253, o is ImplementOneInterface, false); Eval(19254, o is ImplementOneInterface[], false); Eval(19255, o is ImplementOneInterface?, false); Eval(19256, o is ImplementOneInterface?[], false); Eval(19257, o is ImplementTwoInterface, false); Eval(19258, o is ImplementTwoInterface[], false); Eval(19259, o is ImplementTwoInterface?, false); Eval(19260, o is ImplementTwoInterface?[], false); Eval(19261, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19262, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19263, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19264, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19265, o is ImplementTwoInterfaceGen<int>, false); Eval(19266, o is ImplementTwoInterfaceGen<int>[], false); Eval(19267, o is ImplementTwoInterfaceGen<int>?, false); Eval(19268, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19269, o is ImplementAllInterface<int>, false); Eval(19270, o is ImplementAllInterface<int>[], false); Eval(19271, o is ImplementAllInterface<int>?, false); Eval(19272, o is ImplementAllInterface<int>?[], false); Eval(19273, o is IntE, false); Eval(19274, o is IntE[], false); Eval(19275, o is IntE?, false); Eval(19276, o is IntE?[], false); Eval(19277, o is ByteE, false); Eval(19278, o is ByteE[], false); Eval(19279, o is ByteE?, false); Eval(19280, o is ByteE?[], false); Eval(19281, o is LongE, false); Eval(19282, o is LongE[], false); Eval(19283, o is LongE?, false); Eval(19284, o is LongE?[], false); Eval(19285, o is char, false); Eval(19286, o is char[], false); Eval(19287, o is char?, false); Eval(19288, o is char?[], false); Eval(19289, o is bool, false); Eval(19290, o is bool[], false); Eval(19291, o is bool?, false); Eval(19292, o is bool?[], false); Eval(19293, o is byte, false); Eval(19294, o is byte[], false); Eval(19295, o is byte?, false); Eval(19296, o is byte?[], false); Eval(19297, o is sbyte, false); Eval(19298, o is sbyte[], false); Eval(19299, o is sbyte?, false); Eval(19300, o is sbyte?[], false); Eval(19301, o is short, false); Eval(19302, o is short[], false); Eval(19303, o is short?, false); Eval(19304, o is short?[], false); Eval(19305, o is ushort, false); Eval(19306, o is ushort[], false); Eval(19307, o is ushort?, false); Eval(19308, o is ushort?[], false); Eval(19309, o is int, false); Eval(19310, o is int[], false); Eval(19311, o is int?, false); Eval(19312, o is int?[], false); Eval(19313, o is uint, false); Eval(19314, o is uint[], false); Eval(19315, o is uint?, false); Eval(19316, o is uint?[], false); Eval(19317, o is long, false); Eval(19318, o is long[], false); Eval(19319, o is long?, false); Eval(19320, o is long?[], false); Eval(19321, o is ulong, false); Eval(19322, o is ulong[], false); Eval(19323, o is ulong?, false); Eval(19324, o is ulong?[], false); Eval(19325, o is float, false); Eval(19326, o is float[], false); Eval(19327, o is float?, false); Eval(19328, o is float?[], false); Eval(19329, o is double, false); Eval(19330, o is double[], false); Eval(19331, o is double?, false); Eval(19332, o is double?[], false); Eval(19333, o is decimal, false); Eval(19334, o is decimal[], false); Eval(19335, o is decimal?, false); Eval(19336, o is decimal?[], false); Eval(19337, o is IntPtr, false); Eval(19338, o is IntPtr[], false); Eval(19339, o is IntPtr?, false); Eval(19340, o is IntPtr?[], false); Eval(19341, o is UIntPtr, false); Eval(19342, o is UIntPtr[], false); Eval(19343, o is UIntPtr?, false); Eval(19344, o is UIntPtr?[], false); Eval(19345, o is Guid, false); Eval(19346, o is Guid[], false); Eval(19347, o is Guid?, false); Eval(19348, o is Guid?[], false); Eval(19349, o is GCHandle, false); Eval(19350, o is GCHandle[], false); Eval(19351, o is GCHandle?, false); Eval(19352, o is GCHandle?[], false); Eval(19353, o is object, false); Eval(19354, o is object[], false); Eval(19355, o is string, false); Eval(19356, o is string[], false); Eval(19357, o is ValueType, false); Eval(19358, o is ValueType[], false); Eval(19359, o is Array, false); Eval(19360, o is Array[], false); Eval(19361, o is Enum, false); Eval(19362, o is Enum[], false); Eval(19363, o is Delegate, false); Eval(19364, o is Delegate[], false); Eval(19365, o is MulticastDelegate, false); Eval(19366, o is MulticastDelegate[], false); Eval(19367, o is IEmpty, false); Eval(19368, o is IEmpty[], false); Eval(19369, o is INotEmpty, false); Eval(19370, o is INotEmpty[], false); Eval(19371, o is IEmptyGen<int>, false); Eval(19372, o is IEmptyGen<int>[], false); Eval(19373, o is INotEmptyGen<int>, false); Eval(19374, o is INotEmptyGen<int>[], false); Eval(19375, o is SimpleDelegate, false); Eval(19376, o is SimpleDelegate[], false); Eval(19377, o is GenericDelegate<int>, false); Eval(19378, o is GenericDelegate<int>[], false); Eval(19379, o is EmptyClass, false); Eval(19380, o is EmptyClass[], false); Eval(19381, o is NotEmptyClass, false); Eval(19382, o is NotEmptyClass[], false); Eval(19383, o is EmptyClassGen<int>, false); Eval(19384, o is EmptyClassGen<int>[], false); Eval(19385, o is NotEmptyClassGen<Guid>, false); Eval(19386, o is NotEmptyClassGen<Guid>[], false); Eval(19387, o is NotEmptyClassConstrainedGen<object>, false); Eval(19388, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19389, o is NestedClass, false); Eval(19390, o is NestedClass[], false); Eval(19391, o is NestedClassGen<Decimal>, false); Eval(19392, o is NestedClassGen<Decimal>[], false); Eval(19393, o is ImplementOneInterfaceC, false); Eval(19394, o is ImplementOneInterfaceC[], false); Eval(19395, o is ImplementTwoInterfaceC, false); Eval(19396, o is ImplementTwoInterfaceC[], false); Eval(19397, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19398, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19399, o is ImplementTwoInterfaceGenC<int>, false); Eval(19400, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19401, o is ImplementAllInterfaceC<int>, false); Eval(19402, o is ImplementAllInterfaceC<int>[], false); Eval(19403, o is SealedClass, false); Eval(19404, o is SealedClass[], false); } } // end of test case 0033 private static void TestCase0034() { { UIntPtr v = default(UIntPtr); ValueType o = v; Eval(19405, o is EmptyStruct, false); Eval(19406, o is EmptyStruct[], false); Eval(19407, o is EmptyStruct?, false); Eval(19408, o is EmptyStruct?[], false); Eval(19409, o is NotEmptyStruct, false); Eval(19410, o is NotEmptyStruct[], false); Eval(19411, o is NotEmptyStruct?, false); Eval(19412, o is NotEmptyStruct?[], false); Eval(19413, o is EmptyStructGen<int>, false); Eval(19414, o is EmptyStructGen<int>[], false); Eval(19415, o is EmptyStructGen<int>?, false); Eval(19416, o is EmptyStructGen<int>?[], false); Eval(19417, o is NotEmptyStructGen<Guid>, false); Eval(19418, o is NotEmptyStructGen<Guid>[], false); Eval(19419, o is NotEmptyStructGen<Guid>?, false); Eval(19420, o is NotEmptyStructGen<Guid>?[], false); Eval(19421, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19422, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19423, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19424, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19425, o is NestedStruct, false); Eval(19426, o is NestedStruct[], false); Eval(19427, o is NestedStruct?, false); Eval(19428, o is NestedStruct?[], false); Eval(19429, o is NestedStructGen<Decimal>, false); Eval(19430, o is NestedStructGen<Decimal>[], false); Eval(19431, o is NestedStructGen<Decimal>?, false); Eval(19432, o is NestedStructGen<Decimal>?[], false); Eval(19433, o is ExplicitFieldOffsetStruct, false); Eval(19434, o is ExplicitFieldOffsetStruct[], false); Eval(19435, o is ExplicitFieldOffsetStruct?, false); Eval(19436, o is ExplicitFieldOffsetStruct?[], false); Eval(19445, o is MarshalAsStruct, false); Eval(19446, o is MarshalAsStruct[], false); Eval(19447, o is MarshalAsStruct?, false); Eval(19448, o is MarshalAsStruct?[], false); Eval(19449, o is ImplementOneInterface, false); Eval(19450, o is ImplementOneInterface[], false); Eval(19451, o is ImplementOneInterface?, false); Eval(19452, o is ImplementOneInterface?[], false); Eval(19453, o is ImplementTwoInterface, false); Eval(19454, o is ImplementTwoInterface[], false); Eval(19455, o is ImplementTwoInterface?, false); Eval(19456, o is ImplementTwoInterface?[], false); Eval(19457, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19458, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19459, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19460, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19461, o is ImplementTwoInterfaceGen<int>, false); Eval(19462, o is ImplementTwoInterfaceGen<int>[], false); Eval(19463, o is ImplementTwoInterfaceGen<int>?, false); Eval(19464, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19465, o is ImplementAllInterface<int>, false); Eval(19466, o is ImplementAllInterface<int>[], false); Eval(19467, o is ImplementAllInterface<int>?, false); Eval(19468, o is ImplementAllInterface<int>?[], false); Eval(19469, o is IntE, false); Eval(19470, o is IntE[], false); Eval(19471, o is IntE?, false); Eval(19472, o is IntE?[], false); Eval(19473, o is ByteE, false); Eval(19474, o is ByteE[], false); Eval(19475, o is ByteE?, false); Eval(19476, o is ByteE?[], false); Eval(19477, o is LongE, false); Eval(19478, o is LongE[], false); Eval(19479, o is LongE?, false); Eval(19480, o is LongE?[], false); Eval(19481, o is char, false); Eval(19482, o is char[], false); Eval(19483, o is char?, false); Eval(19484, o is char?[], false); Eval(19485, o is bool, false); Eval(19486, o is bool[], false); Eval(19487, o is bool?, false); Eval(19488, o is bool?[], false); Eval(19489, o is byte, false); Eval(19490, o is byte[], false); Eval(19491, o is byte?, false); Eval(19492, o is byte?[], false); Eval(19493, o is sbyte, false); Eval(19494, o is sbyte[], false); Eval(19495, o is sbyte?, false); Eval(19496, o is sbyte?[], false); Eval(19497, o is short, false); Eval(19498, o is short[], false); Eval(19499, o is short?, false); Eval(19500, o is short?[], false); Eval(19501, o is ushort, false); Eval(19502, o is ushort[], false); Eval(19503, o is ushort?, false); Eval(19504, o is ushort?[], false); Eval(19505, o is int, false); Eval(19506, o is int[], false); Eval(19507, o is int?, false); Eval(19508, o is int?[], false); Eval(19509, o is uint, false); Eval(19510, o is uint[], false); Eval(19511, o is uint?, false); Eval(19512, o is uint?[], false); Eval(19513, o is long, false); Eval(19514, o is long[], false); Eval(19515, o is long?, false); Eval(19516, o is long?[], false); Eval(19517, o is ulong, false); Eval(19518, o is ulong[], false); Eval(19519, o is ulong?, false); Eval(19520, o is ulong?[], false); Eval(19521, o is float, false); Eval(19522, o is float[], false); Eval(19523, o is float?, false); Eval(19524, o is float?[], false); Eval(19525, o is double, false); Eval(19526, o is double[], false); Eval(19527, o is double?, false); Eval(19528, o is double?[], false); Eval(19529, o is decimal, false); Eval(19530, o is decimal[], false); Eval(19531, o is decimal?, false); Eval(19532, o is decimal?[], false); Eval(19533, o is IntPtr, false); Eval(19534, o is IntPtr[], false); Eval(19535, o is IntPtr?, false); Eval(19536, o is IntPtr?[], false); Eval(19537, o is UIntPtr, true); Eval(19538, o is UIntPtr[], false); Eval(19539, o is UIntPtr?, true); Eval(19540, o is UIntPtr?[], false); Eval(19541, o is Guid, false); Eval(19542, o is Guid[], false); Eval(19543, o is Guid?, false); Eval(19544, o is Guid?[], false); Eval(19545, o is GCHandle, false); Eval(19546, o is GCHandle[], false); Eval(19547, o is GCHandle?, false); Eval(19548, o is GCHandle?[], false); Eval(19549, o is object, true); Eval(19550, o is object[], false); Eval(19551, o is string, false); Eval(19552, o is string[], false); Eval(19553, o is ValueType, true); Eval(19554, o is ValueType[], false); Eval(19555, o is Array, false); Eval(19556, o is Array[], false); Eval(19557, o is Enum, false); Eval(19558, o is Enum[], false); Eval(19559, o is Delegate, false); Eval(19560, o is Delegate[], false); Eval(19561, o is MulticastDelegate, false); Eval(19562, o is MulticastDelegate[], false); Eval(19563, o is IEmpty, false); Eval(19564, o is IEmpty[], false); Eval(19565, o is INotEmpty, false); Eval(19566, o is INotEmpty[], false); Eval(19567, o is IEmptyGen<int>, false); Eval(19568, o is IEmptyGen<int>[], false); Eval(19569, o is INotEmptyGen<int>, false); Eval(19570, o is INotEmptyGen<int>[], false); Eval(19571, o is SimpleDelegate, false); Eval(19572, o is SimpleDelegate[], false); Eval(19573, o is GenericDelegate<int>, false); Eval(19574, o is GenericDelegate<int>[], false); Eval(19575, o is EmptyClass, false); Eval(19576, o is EmptyClass[], false); Eval(19577, o is NotEmptyClass, false); Eval(19578, o is NotEmptyClass[], false); Eval(19579, o is EmptyClassGen<int>, false); Eval(19580, o is EmptyClassGen<int>[], false); Eval(19581, o is NotEmptyClassGen<Guid>, false); Eval(19582, o is NotEmptyClassGen<Guid>[], false); Eval(19583, o is NotEmptyClassConstrainedGen<object>, false); Eval(19584, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19585, o is NestedClass, false); Eval(19586, o is NestedClass[], false); Eval(19587, o is NestedClassGen<Decimal>, false); Eval(19588, o is NestedClassGen<Decimal>[], false); Eval(19589, o is ImplementOneInterfaceC, false); Eval(19590, o is ImplementOneInterfaceC[], false); Eval(19591, o is ImplementTwoInterfaceC, false); Eval(19592, o is ImplementTwoInterfaceC[], false); Eval(19593, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19594, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19595, o is ImplementTwoInterfaceGenC<int>, false); Eval(19596, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19597, o is ImplementAllInterfaceC<int>, false); Eval(19598, o is ImplementAllInterfaceC<int>[], false); Eval(19599, o is SealedClass, false); Eval(19600, o is SealedClass[], false); } { UIntPtr? v = default(UIntPtr); ValueType o = v; Eval(19601, o is EmptyStruct, false); Eval(19602, o is EmptyStruct[], false); Eval(19603, o is EmptyStruct?, false); Eval(19604, o is EmptyStruct?[], false); Eval(19605, o is NotEmptyStruct, false); Eval(19606, o is NotEmptyStruct[], false); Eval(19607, o is NotEmptyStruct?, false); Eval(19608, o is NotEmptyStruct?[], false); Eval(19609, o is EmptyStructGen<int>, false); Eval(19610, o is EmptyStructGen<int>[], false); Eval(19611, o is EmptyStructGen<int>?, false); Eval(19612, o is EmptyStructGen<int>?[], false); Eval(19613, o is NotEmptyStructGen<Guid>, false); Eval(19614, o is NotEmptyStructGen<Guid>[], false); Eval(19615, o is NotEmptyStructGen<Guid>?, false); Eval(19616, o is NotEmptyStructGen<Guid>?[], false); Eval(19617, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19618, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19619, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19620, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19621, o is NestedStruct, false); Eval(19622, o is NestedStruct[], false); Eval(19623, o is NestedStruct?, false); Eval(19624, o is NestedStruct?[], false); Eval(19625, o is NestedStructGen<Decimal>, false); Eval(19626, o is NestedStructGen<Decimal>[], false); Eval(19627, o is NestedStructGen<Decimal>?, false); Eval(19628, o is NestedStructGen<Decimal>?[], false); Eval(19629, o is ExplicitFieldOffsetStruct, false); Eval(19630, o is ExplicitFieldOffsetStruct[], false); Eval(19631, o is ExplicitFieldOffsetStruct?, false); Eval(19632, o is ExplicitFieldOffsetStruct?[], false); Eval(19641, o is MarshalAsStruct, false); Eval(19642, o is MarshalAsStruct[], false); Eval(19643, o is MarshalAsStruct?, false); Eval(19644, o is MarshalAsStruct?[], false); Eval(19645, o is ImplementOneInterface, false); Eval(19646, o is ImplementOneInterface[], false); Eval(19647, o is ImplementOneInterface?, false); Eval(19648, o is ImplementOneInterface?[], false); Eval(19649, o is ImplementTwoInterface, false); Eval(19650, o is ImplementTwoInterface[], false); Eval(19651, o is ImplementTwoInterface?, false); Eval(19652, o is ImplementTwoInterface?[], false); Eval(19653, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19654, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19655, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19656, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19657, o is ImplementTwoInterfaceGen<int>, false); Eval(19658, o is ImplementTwoInterfaceGen<int>[], false); Eval(19659, o is ImplementTwoInterfaceGen<int>?, false); Eval(19660, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19661, o is ImplementAllInterface<int>, false); Eval(19662, o is ImplementAllInterface<int>[], false); Eval(19663, o is ImplementAllInterface<int>?, false); Eval(19664, o is ImplementAllInterface<int>?[], false); Eval(19665, o is IntE, false); Eval(19666, o is IntE[], false); Eval(19667, o is IntE?, false); Eval(19668, o is IntE?[], false); Eval(19669, o is ByteE, false); Eval(19670, o is ByteE[], false); Eval(19671, o is ByteE?, false); Eval(19672, o is ByteE?[], false); Eval(19673, o is LongE, false); Eval(19674, o is LongE[], false); Eval(19675, o is LongE?, false); Eval(19676, o is LongE?[], false); Eval(19677, o is char, false); Eval(19678, o is char[], false); Eval(19679, o is char?, false); Eval(19680, o is char?[], false); Eval(19681, o is bool, false); Eval(19682, o is bool[], false); Eval(19683, o is bool?, false); Eval(19684, o is bool?[], false); Eval(19685, o is byte, false); Eval(19686, o is byte[], false); Eval(19687, o is byte?, false); Eval(19688, o is byte?[], false); Eval(19689, o is sbyte, false); Eval(19690, o is sbyte[], false); Eval(19691, o is sbyte?, false); Eval(19692, o is sbyte?[], false); Eval(19693, o is short, false); Eval(19694, o is short[], false); Eval(19695, o is short?, false); Eval(19696, o is short?[], false); Eval(19697, o is ushort, false); Eval(19698, o is ushort[], false); Eval(19699, o is ushort?, false); Eval(19700, o is ushort?[], false); Eval(19701, o is int, false); Eval(19702, o is int[], false); Eval(19703, o is int?, false); Eval(19704, o is int?[], false); Eval(19705, o is uint, false); Eval(19706, o is uint[], false); Eval(19707, o is uint?, false); Eval(19708, o is uint?[], false); Eval(19709, o is long, false); Eval(19710, o is long[], false); Eval(19711, o is long?, false); Eval(19712, o is long?[], false); Eval(19713, o is ulong, false); Eval(19714, o is ulong[], false); Eval(19715, o is ulong?, false); Eval(19716, o is ulong?[], false); Eval(19717, o is float, false); Eval(19718, o is float[], false); Eval(19719, o is float?, false); Eval(19720, o is float?[], false); Eval(19721, o is double, false); Eval(19722, o is double[], false); Eval(19723, o is double?, false); Eval(19724, o is double?[], false); Eval(19725, o is decimal, false); Eval(19726, o is decimal[], false); Eval(19727, o is decimal?, false); Eval(19728, o is decimal?[], false); Eval(19729, o is IntPtr, false); Eval(19730, o is IntPtr[], false); Eval(19731, o is IntPtr?, false); Eval(19732, o is IntPtr?[], false); Eval(19733, o is UIntPtr, true); Eval(19734, o is UIntPtr[], false); Eval(19735, o is UIntPtr?, true); Eval(19736, o is UIntPtr?[], false); Eval(19737, o is Guid, false); Eval(19738, o is Guid[], false); Eval(19739, o is Guid?, false); Eval(19740, o is Guid?[], false); Eval(19741, o is GCHandle, false); Eval(19742, o is GCHandle[], false); Eval(19743, o is GCHandle?, false); Eval(19744, o is GCHandle?[], false); Eval(19745, o is object, true); Eval(19746, o is object[], false); Eval(19747, o is string, false); Eval(19748, o is string[], false); Eval(19749, o is ValueType, true); Eval(19750, o is ValueType[], false); Eval(19751, o is Array, false); Eval(19752, o is Array[], false); Eval(19753, o is Enum, false); Eval(19754, o is Enum[], false); Eval(19755, o is Delegate, false); Eval(19756, o is Delegate[], false); Eval(19757, o is MulticastDelegate, false); Eval(19758, o is MulticastDelegate[], false); Eval(19759, o is IEmpty, false); Eval(19760, o is IEmpty[], false); Eval(19761, o is INotEmpty, false); Eval(19762, o is INotEmpty[], false); Eval(19763, o is IEmptyGen<int>, false); Eval(19764, o is IEmptyGen<int>[], false); Eval(19765, o is INotEmptyGen<int>, false); Eval(19766, o is INotEmptyGen<int>[], false); Eval(19767, o is SimpleDelegate, false); Eval(19768, o is SimpleDelegate[], false); Eval(19769, o is GenericDelegate<int>, false); Eval(19770, o is GenericDelegate<int>[], false); Eval(19771, o is EmptyClass, false); Eval(19772, o is EmptyClass[], false); Eval(19773, o is NotEmptyClass, false); Eval(19774, o is NotEmptyClass[], false); Eval(19775, o is EmptyClassGen<int>, false); Eval(19776, o is EmptyClassGen<int>[], false); Eval(19777, o is NotEmptyClassGen<Guid>, false); Eval(19778, o is NotEmptyClassGen<Guid>[], false); Eval(19779, o is NotEmptyClassConstrainedGen<object>, false); Eval(19780, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19781, o is NestedClass, false); Eval(19782, o is NestedClass[], false); Eval(19783, o is NestedClassGen<Decimal>, false); Eval(19784, o is NestedClassGen<Decimal>[], false); Eval(19785, o is ImplementOneInterfaceC, false); Eval(19786, o is ImplementOneInterfaceC[], false); Eval(19787, o is ImplementTwoInterfaceC, false); Eval(19788, o is ImplementTwoInterfaceC[], false); Eval(19789, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19790, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19791, o is ImplementTwoInterfaceGenC<int>, false); Eval(19792, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19793, o is ImplementAllInterfaceC<int>, false); Eval(19794, o is ImplementAllInterfaceC<int>[], false); Eval(19795, o is SealedClass, false); Eval(19796, o is SealedClass[], false); } { UIntPtr? v = default(UIntPtr?); ValueType o = v; Eval(19797, o is EmptyStruct, false); Eval(19798, o is EmptyStruct[], false); Eval(19799, o is EmptyStruct?, false); Eval(19800, o is EmptyStruct?[], false); Eval(19801, o is NotEmptyStruct, false); Eval(19802, o is NotEmptyStruct[], false); Eval(19803, o is NotEmptyStruct?, false); Eval(19804, o is NotEmptyStruct?[], false); Eval(19805, o is EmptyStructGen<int>, false); Eval(19806, o is EmptyStructGen<int>[], false); Eval(19807, o is EmptyStructGen<int>?, false); Eval(19808, o is EmptyStructGen<int>?[], false); Eval(19809, o is NotEmptyStructGen<Guid>, false); Eval(19810, o is NotEmptyStructGen<Guid>[], false); Eval(19811, o is NotEmptyStructGen<Guid>?, false); Eval(19812, o is NotEmptyStructGen<Guid>?[], false); Eval(19813, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19814, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19815, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19816, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19817, o is NestedStruct, false); Eval(19818, o is NestedStruct[], false); Eval(19819, o is NestedStruct?, false); Eval(19820, o is NestedStruct?[], false); Eval(19821, o is NestedStructGen<Decimal>, false); Eval(19822, o is NestedStructGen<Decimal>[], false); Eval(19823, o is NestedStructGen<Decimal>?, false); Eval(19824, o is NestedStructGen<Decimal>?[], false); Eval(19825, o is ExplicitFieldOffsetStruct, false); Eval(19826, o is ExplicitFieldOffsetStruct[], false); Eval(19827, o is ExplicitFieldOffsetStruct?, false); Eval(19828, o is ExplicitFieldOffsetStruct?[], false); Eval(19837, o is MarshalAsStruct, false); Eval(19838, o is MarshalAsStruct[], false); Eval(19839, o is MarshalAsStruct?, false); Eval(19840, o is MarshalAsStruct?[], false); Eval(19841, o is ImplementOneInterface, false); Eval(19842, o is ImplementOneInterface[], false); Eval(19843, o is ImplementOneInterface?, false); Eval(19844, o is ImplementOneInterface?[], false); Eval(19845, o is ImplementTwoInterface, false); Eval(19846, o is ImplementTwoInterface[], false); Eval(19847, o is ImplementTwoInterface?, false); Eval(19848, o is ImplementTwoInterface?[], false); Eval(19849, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19850, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19851, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19852, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19853, o is ImplementTwoInterfaceGen<int>, false); Eval(19854, o is ImplementTwoInterfaceGen<int>[], false); Eval(19855, o is ImplementTwoInterfaceGen<int>?, false); Eval(19856, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19857, o is ImplementAllInterface<int>, false); Eval(19858, o is ImplementAllInterface<int>[], false); Eval(19859, o is ImplementAllInterface<int>?, false); Eval(19860, o is ImplementAllInterface<int>?[], false); Eval(19861, o is IntE, false); Eval(19862, o is IntE[], false); Eval(19863, o is IntE?, false); Eval(19864, o is IntE?[], false); Eval(19865, o is ByteE, false); Eval(19866, o is ByteE[], false); Eval(19867, o is ByteE?, false); Eval(19868, o is ByteE?[], false); Eval(19869, o is LongE, false); Eval(19870, o is LongE[], false); Eval(19871, o is LongE?, false); Eval(19872, o is LongE?[], false); Eval(19873, o is char, false); Eval(19874, o is char[], false); Eval(19875, o is char?, false); Eval(19876, o is char?[], false); Eval(19877, o is bool, false); Eval(19878, o is bool[], false); Eval(19879, o is bool?, false); Eval(19880, o is bool?[], false); Eval(19881, o is byte, false); Eval(19882, o is byte[], false); Eval(19883, o is byte?, false); Eval(19884, o is byte?[], false); Eval(19885, o is sbyte, false); Eval(19886, o is sbyte[], false); Eval(19887, o is sbyte?, false); Eval(19888, o is sbyte?[], false); Eval(19889, o is short, false); Eval(19890, o is short[], false); Eval(19891, o is short?, false); Eval(19892, o is short?[], false); Eval(19893, o is ushort, false); Eval(19894, o is ushort[], false); Eval(19895, o is ushort?, false); Eval(19896, o is ushort?[], false); Eval(19897, o is int, false); Eval(19898, o is int[], false); Eval(19899, o is int?, false); Eval(19900, o is int?[], false); Eval(19901, o is uint, false); Eval(19902, o is uint[], false); Eval(19903, o is uint?, false); Eval(19904, o is uint?[], false); Eval(19905, o is long, false); Eval(19906, o is long[], false); Eval(19907, o is long?, false); Eval(19908, o is long?[], false); Eval(19909, o is ulong, false); Eval(19910, o is ulong[], false); Eval(19911, o is ulong?, false); Eval(19912, o is ulong?[], false); Eval(19913, o is float, false); Eval(19914, o is float[], false); Eval(19915, o is float?, false); Eval(19916, o is float?[], false); Eval(19917, o is double, false); Eval(19918, o is double[], false); Eval(19919, o is double?, false); Eval(19920, o is double?[], false); Eval(19921, o is decimal, false); Eval(19922, o is decimal[], false); Eval(19923, o is decimal?, false); Eval(19924, o is decimal?[], false); Eval(19925, o is IntPtr, false); Eval(19926, o is IntPtr[], false); Eval(19927, o is IntPtr?, false); Eval(19928, o is IntPtr?[], false); Eval(19929, o is UIntPtr, false); Eval(19930, o is UIntPtr[], false); Eval(19931, o is UIntPtr?, false); Eval(19932, o is UIntPtr?[], false); Eval(19933, o is Guid, false); Eval(19934, o is Guid[], false); Eval(19935, o is Guid?, false); Eval(19936, o is Guid?[], false); Eval(19937, o is GCHandle, false); Eval(19938, o is GCHandle[], false); Eval(19939, o is GCHandle?, false); Eval(19940, o is GCHandle?[], false); Eval(19941, o is object, false); Eval(19942, o is object[], false); Eval(19943, o is string, false); Eval(19944, o is string[], false); Eval(19945, o is ValueType, false); Eval(19946, o is ValueType[], false); Eval(19947, o is Array, false); Eval(19948, o is Array[], false); Eval(19949, o is Enum, false); Eval(19950, o is Enum[], false); Eval(19951, o is Delegate, false); Eval(19952, o is Delegate[], false); Eval(19953, o is MulticastDelegate, false); Eval(19954, o is MulticastDelegate[], false); Eval(19955, o is IEmpty, false); Eval(19956, o is IEmpty[], false); Eval(19957, o is INotEmpty, false); Eval(19958, o is INotEmpty[], false); Eval(19959, o is IEmptyGen<int>, false); Eval(19960, o is IEmptyGen<int>[], false); Eval(19961, o is INotEmptyGen<int>, false); Eval(19962, o is INotEmptyGen<int>[], false); Eval(19963, o is SimpleDelegate, false); Eval(19964, o is SimpleDelegate[], false); Eval(19965, o is GenericDelegate<int>, false); Eval(19966, o is GenericDelegate<int>[], false); Eval(19967, o is EmptyClass, false); Eval(19968, o is EmptyClass[], false); Eval(19969, o is NotEmptyClass, false); Eval(19970, o is NotEmptyClass[], false); Eval(19971, o is EmptyClassGen<int>, false); Eval(19972, o is EmptyClassGen<int>[], false); Eval(19973, o is NotEmptyClassGen<Guid>, false); Eval(19974, o is NotEmptyClassGen<Guid>[], false); Eval(19975, o is NotEmptyClassConstrainedGen<object>, false); Eval(19976, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19977, o is NestedClass, false); Eval(19978, o is NestedClass[], false); Eval(19979, o is NestedClassGen<Decimal>, false); Eval(19980, o is NestedClassGen<Decimal>[], false); Eval(19981, o is ImplementOneInterfaceC, false); Eval(19982, o is ImplementOneInterfaceC[], false); Eval(19983, o is ImplementTwoInterfaceC, false); Eval(19984, o is ImplementTwoInterfaceC[], false); Eval(19985, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19986, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19987, o is ImplementTwoInterfaceGenC<int>, false); Eval(19988, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19989, o is ImplementAllInterfaceC<int>, false); Eval(19990, o is ImplementAllInterfaceC<int>[], false); Eval(19991, o is SealedClass, false); Eval(19992, o is SealedClass[], false); } } // end of test case 0034 private static void TestCase0035() { { Guid v = default(Guid); ValueType o = v; Eval(19993, o is EmptyStruct, false); Eval(19994, o is EmptyStruct[], false); Eval(19995, o is EmptyStruct?, false); Eval(19996, o is EmptyStruct?[], false); Eval(19997, o is NotEmptyStruct, false); Eval(19998, o is NotEmptyStruct[], false); Eval(19999, o is NotEmptyStruct?, false); Eval(20000, o is NotEmptyStruct?[], false); Eval(20001, o is EmptyStructGen<int>, false); Eval(20002, o is EmptyStructGen<int>[], false); Eval(20003, o is EmptyStructGen<int>?, false); Eval(20004, o is EmptyStructGen<int>?[], false); Eval(20005, o is NotEmptyStructGen<Guid>, false); Eval(20006, o is NotEmptyStructGen<Guid>[], false); Eval(20007, o is NotEmptyStructGen<Guid>?, false); Eval(20008, o is NotEmptyStructGen<Guid>?[], false); Eval(20009, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20010, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20011, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20012, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20013, o is NestedStruct, false); Eval(20014, o is NestedStruct[], false); Eval(20015, o is NestedStruct?, false); Eval(20016, o is NestedStruct?[], false); Eval(20017, o is NestedStructGen<Decimal>, false); Eval(20018, o is NestedStructGen<Decimal>[], false); Eval(20019, o is NestedStructGen<Decimal>?, false); Eval(20020, o is NestedStructGen<Decimal>?[], false); Eval(20021, o is ExplicitFieldOffsetStruct, false); Eval(20022, o is ExplicitFieldOffsetStruct[], false); Eval(20023, o is ExplicitFieldOffsetStruct?, false); Eval(20024, o is ExplicitFieldOffsetStruct?[], false); Eval(20033, o is MarshalAsStruct, false); Eval(20034, o is MarshalAsStruct[], false); Eval(20035, o is MarshalAsStruct?, false); Eval(20036, o is MarshalAsStruct?[], false); Eval(20037, o is ImplementOneInterface, false); Eval(20038, o is ImplementOneInterface[], false); Eval(20039, o is ImplementOneInterface?, false); Eval(20040, o is ImplementOneInterface?[], false); Eval(20041, o is ImplementTwoInterface, false); Eval(20042, o is ImplementTwoInterface[], false); Eval(20043, o is ImplementTwoInterface?, false); Eval(20044, o is ImplementTwoInterface?[], false); Eval(20045, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20046, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20047, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20048, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20049, o is ImplementTwoInterfaceGen<int>, false); Eval(20050, o is ImplementTwoInterfaceGen<int>[], false); Eval(20051, o is ImplementTwoInterfaceGen<int>?, false); Eval(20052, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20053, o is ImplementAllInterface<int>, false); Eval(20054, o is ImplementAllInterface<int>[], false); Eval(20055, o is ImplementAllInterface<int>?, false); Eval(20056, o is ImplementAllInterface<int>?[], false); Eval(20057, o is IntE, false); Eval(20058, o is IntE[], false); Eval(20059, o is IntE?, false); Eval(20060, o is IntE?[], false); Eval(20061, o is ByteE, false); Eval(20062, o is ByteE[], false); Eval(20063, o is ByteE?, false); Eval(20064, o is ByteE?[], false); Eval(20065, o is LongE, false); Eval(20066, o is LongE[], false); Eval(20067, o is LongE?, false); Eval(20068, o is LongE?[], false); Eval(20069, o is char, false); Eval(20070, o is char[], false); Eval(20071, o is char?, false); Eval(20072, o is char?[], false); Eval(20073, o is bool, false); Eval(20074, o is bool[], false); Eval(20075, o is bool?, false); Eval(20076, o is bool?[], false); Eval(20077, o is byte, false); Eval(20078, o is byte[], false); Eval(20079, o is byte?, false); Eval(20080, o is byte?[], false); Eval(20081, o is sbyte, false); Eval(20082, o is sbyte[], false); Eval(20083, o is sbyte?, false); Eval(20084, o is sbyte?[], false); Eval(20085, o is short, false); Eval(20086, o is short[], false); Eval(20087, o is short?, false); Eval(20088, o is short?[], false); Eval(20089, o is ushort, false); Eval(20090, o is ushort[], false); Eval(20091, o is ushort?, false); Eval(20092, o is ushort?[], false); Eval(20093, o is int, false); Eval(20094, o is int[], false); Eval(20095, o is int?, false); Eval(20096, o is int?[], false); Eval(20097, o is uint, false); Eval(20098, o is uint[], false); Eval(20099, o is uint?, false); Eval(20100, o is uint?[], false); Eval(20101, o is long, false); Eval(20102, o is long[], false); Eval(20103, o is long?, false); Eval(20104, o is long?[], false); Eval(20105, o is ulong, false); Eval(20106, o is ulong[], false); Eval(20107, o is ulong?, false); Eval(20108, o is ulong?[], false); Eval(20109, o is float, false); Eval(20110, o is float[], false); Eval(20111, o is float?, false); Eval(20112, o is float?[], false); Eval(20113, o is double, false); Eval(20114, o is double[], false); Eval(20115, o is double?, false); Eval(20116, o is double?[], false); Eval(20117, o is decimal, false); Eval(20118, o is decimal[], false); Eval(20119, o is decimal?, false); Eval(20120, o is decimal?[], false); Eval(20121, o is IntPtr, false); Eval(20122, o is IntPtr[], false); Eval(20123, o is IntPtr?, false); Eval(20124, o is IntPtr?[], false); Eval(20125, o is UIntPtr, false); Eval(20126, o is UIntPtr[], false); Eval(20127, o is UIntPtr?, false); Eval(20128, o is UIntPtr?[], false); Eval(20129, o is Guid, true); Eval(20130, o is Guid[], false); Eval(20131, o is Guid?, true); Eval(20132, o is Guid?[], false); Eval(20133, o is GCHandle, false); Eval(20134, o is GCHandle[], false); Eval(20135, o is GCHandle?, false); Eval(20136, o is GCHandle?[], false); Eval(20137, o is object, true); Eval(20138, o is object[], false); Eval(20139, o is string, false); Eval(20140, o is string[], false); Eval(20141, o is ValueType, true); Eval(20142, o is ValueType[], false); Eval(20143, o is Array, false); Eval(20144, o is Array[], false); Eval(20145, o is Enum, false); Eval(20146, o is Enum[], false); Eval(20147, o is Delegate, false); Eval(20148, o is Delegate[], false); Eval(20149, o is MulticastDelegate, false); Eval(20150, o is MulticastDelegate[], false); Eval(20151, o is IEmpty, false); Eval(20152, o is IEmpty[], false); Eval(20153, o is INotEmpty, false); Eval(20154, o is INotEmpty[], false); Eval(20155, o is IEmptyGen<int>, false); Eval(20156, o is IEmptyGen<int>[], false); Eval(20157, o is INotEmptyGen<int>, false); Eval(20158, o is INotEmptyGen<int>[], false); Eval(20159, o is SimpleDelegate, false); Eval(20160, o is SimpleDelegate[], false); Eval(20161, o is GenericDelegate<int>, false); Eval(20162, o is GenericDelegate<int>[], false); Eval(20163, o is EmptyClass, false); Eval(20164, o is EmptyClass[], false); Eval(20165, o is NotEmptyClass, false); Eval(20166, o is NotEmptyClass[], false); Eval(20167, o is EmptyClassGen<int>, false); Eval(20168, o is EmptyClassGen<int>[], false); Eval(20169, o is NotEmptyClassGen<Guid>, false); Eval(20170, o is NotEmptyClassGen<Guid>[], false); Eval(20171, o is NotEmptyClassConstrainedGen<object>, false); Eval(20172, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20173, o is NestedClass, false); Eval(20174, o is NestedClass[], false); Eval(20175, o is NestedClassGen<Decimal>, false); Eval(20176, o is NestedClassGen<Decimal>[], false); Eval(20177, o is ImplementOneInterfaceC, false); Eval(20178, o is ImplementOneInterfaceC[], false); Eval(20179, o is ImplementTwoInterfaceC, false); Eval(20180, o is ImplementTwoInterfaceC[], false); Eval(20181, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20182, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20183, o is ImplementTwoInterfaceGenC<int>, false); Eval(20184, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20185, o is ImplementAllInterfaceC<int>, false); Eval(20186, o is ImplementAllInterfaceC<int>[], false); Eval(20187, o is SealedClass, false); Eval(20188, o is SealedClass[], false); } { Guid? v = default(Guid); ValueType o = v; Eval(20189, o is EmptyStruct, false); Eval(20190, o is EmptyStruct[], false); Eval(20191, o is EmptyStruct?, false); Eval(20192, o is EmptyStruct?[], false); Eval(20193, o is NotEmptyStruct, false); Eval(20194, o is NotEmptyStruct[], false); Eval(20195, o is NotEmptyStruct?, false); Eval(20196, o is NotEmptyStruct?[], false); Eval(20197, o is EmptyStructGen<int>, false); Eval(20198, o is EmptyStructGen<int>[], false); Eval(20199, o is EmptyStructGen<int>?, false); Eval(20200, o is EmptyStructGen<int>?[], false); Eval(20201, o is NotEmptyStructGen<Guid>, false); Eval(20202, o is NotEmptyStructGen<Guid>[], false); Eval(20203, o is NotEmptyStructGen<Guid>?, false); Eval(20204, o is NotEmptyStructGen<Guid>?[], false); Eval(20205, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20206, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20207, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20208, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20209, o is NestedStruct, false); Eval(20210, o is NestedStruct[], false); Eval(20211, o is NestedStruct?, false); Eval(20212, o is NestedStruct?[], false); Eval(20213, o is NestedStructGen<Decimal>, false); Eval(20214, o is NestedStructGen<Decimal>[], false); Eval(20215, o is NestedStructGen<Decimal>?, false); Eval(20216, o is NestedStructGen<Decimal>?[], false); Eval(20217, o is ExplicitFieldOffsetStruct, false); Eval(20218, o is ExplicitFieldOffsetStruct[], false); Eval(20219, o is ExplicitFieldOffsetStruct?, false); Eval(20220, o is ExplicitFieldOffsetStruct?[], false); Eval(20229, o is MarshalAsStruct, false); Eval(20230, o is MarshalAsStruct[], false); Eval(20231, o is MarshalAsStruct?, false); Eval(20232, o is MarshalAsStruct?[], false); Eval(20233, o is ImplementOneInterface, false); Eval(20234, o is ImplementOneInterface[], false); Eval(20235, o is ImplementOneInterface?, false); Eval(20236, o is ImplementOneInterface?[], false); Eval(20237, o is ImplementTwoInterface, false); Eval(20238, o is ImplementTwoInterface[], false); Eval(20239, o is ImplementTwoInterface?, false); Eval(20240, o is ImplementTwoInterface?[], false); Eval(20241, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20242, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20243, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20244, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20245, o is ImplementTwoInterfaceGen<int>, false); Eval(20246, o is ImplementTwoInterfaceGen<int>[], false); Eval(20247, o is ImplementTwoInterfaceGen<int>?, false); Eval(20248, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20249, o is ImplementAllInterface<int>, false); Eval(20250, o is ImplementAllInterface<int>[], false); Eval(20251, o is ImplementAllInterface<int>?, false); Eval(20252, o is ImplementAllInterface<int>?[], false); Eval(20253, o is IntE, false); Eval(20254, o is IntE[], false); Eval(20255, o is IntE?, false); Eval(20256, o is IntE?[], false); Eval(20257, o is ByteE, false); Eval(20258, o is ByteE[], false); Eval(20259, o is ByteE?, false); Eval(20260, o is ByteE?[], false); Eval(20261, o is LongE, false); Eval(20262, o is LongE[], false); Eval(20263, o is LongE?, false); Eval(20264, o is LongE?[], false); Eval(20265, o is char, false); Eval(20266, o is char[], false); Eval(20267, o is char?, false); Eval(20268, o is char?[], false); Eval(20269, o is bool, false); Eval(20270, o is bool[], false); Eval(20271, o is bool?, false); Eval(20272, o is bool?[], false); Eval(20273, o is byte, false); Eval(20274, o is byte[], false); Eval(20275, o is byte?, false); Eval(20276, o is byte?[], false); Eval(20277, o is sbyte, false); Eval(20278, o is sbyte[], false); Eval(20279, o is sbyte?, false); Eval(20280, o is sbyte?[], false); Eval(20281, o is short, false); Eval(20282, o is short[], false); Eval(20283, o is short?, false); Eval(20284, o is short?[], false); Eval(20285, o is ushort, false); Eval(20286, o is ushort[], false); Eval(20287, o is ushort?, false); Eval(20288, o is ushort?[], false); Eval(20289, o is int, false); Eval(20290, o is int[], false); Eval(20291, o is int?, false); Eval(20292, o is int?[], false); Eval(20293, o is uint, false); Eval(20294, o is uint[], false); Eval(20295, o is uint?, false); Eval(20296, o is uint?[], false); Eval(20297, o is long, false); Eval(20298, o is long[], false); Eval(20299, o is long?, false); Eval(20300, o is long?[], false); Eval(20301, o is ulong, false); Eval(20302, o is ulong[], false); Eval(20303, o is ulong?, false); Eval(20304, o is ulong?[], false); Eval(20305, o is float, false); Eval(20306, o is float[], false); Eval(20307, o is float?, false); Eval(20308, o is float?[], false); Eval(20309, o is double, false); Eval(20310, o is double[], false); Eval(20311, o is double?, false); Eval(20312, o is double?[], false); Eval(20313, o is decimal, false); Eval(20314, o is decimal[], false); Eval(20315, o is decimal?, false); Eval(20316, o is decimal?[], false); Eval(20317, o is IntPtr, false); Eval(20318, o is IntPtr[], false); Eval(20319, o is IntPtr?, false); Eval(20320, o is IntPtr?[], false); Eval(20321, o is UIntPtr, false); Eval(20322, o is UIntPtr[], false); Eval(20323, o is UIntPtr?, false); Eval(20324, o is UIntPtr?[], false); Eval(20325, o is Guid, true); Eval(20326, o is Guid[], false); Eval(20327, o is Guid?, true); Eval(20328, o is Guid?[], false); Eval(20329, o is GCHandle, false); Eval(20330, o is GCHandle[], false); Eval(20331, o is GCHandle?, false); Eval(20332, o is GCHandle?[], false); Eval(20333, o is object, true); Eval(20334, o is object[], false); Eval(20335, o is string, false); Eval(20336, o is string[], false); Eval(20337, o is ValueType, true); Eval(20338, o is ValueType[], false); Eval(20339, o is Array, false); Eval(20340, o is Array[], false); Eval(20341, o is Enum, false); Eval(20342, o is Enum[], false); Eval(20343, o is Delegate, false); Eval(20344, o is Delegate[], false); Eval(20345, o is MulticastDelegate, false); Eval(20346, o is MulticastDelegate[], false); Eval(20347, o is IEmpty, false); Eval(20348, o is IEmpty[], false); Eval(20349, o is INotEmpty, false); Eval(20350, o is INotEmpty[], false); Eval(20351, o is IEmptyGen<int>, false); Eval(20352, o is IEmptyGen<int>[], false); Eval(20353, o is INotEmptyGen<int>, false); Eval(20354, o is INotEmptyGen<int>[], false); Eval(20355, o is SimpleDelegate, false); Eval(20356, o is SimpleDelegate[], false); Eval(20357, o is GenericDelegate<int>, false); Eval(20358, o is GenericDelegate<int>[], false); Eval(20359, o is EmptyClass, false); Eval(20360, o is EmptyClass[], false); Eval(20361, o is NotEmptyClass, false); Eval(20362, o is NotEmptyClass[], false); Eval(20363, o is EmptyClassGen<int>, false); Eval(20364, o is EmptyClassGen<int>[], false); Eval(20365, o is NotEmptyClassGen<Guid>, false); Eval(20366, o is NotEmptyClassGen<Guid>[], false); Eval(20367, o is NotEmptyClassConstrainedGen<object>, false); Eval(20368, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20369, o is NestedClass, false); Eval(20370, o is NestedClass[], false); Eval(20371, o is NestedClassGen<Decimal>, false); Eval(20372, o is NestedClassGen<Decimal>[], false); Eval(20373, o is ImplementOneInterfaceC, false); Eval(20374, o is ImplementOneInterfaceC[], false); Eval(20375, o is ImplementTwoInterfaceC, false); Eval(20376, o is ImplementTwoInterfaceC[], false); Eval(20377, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20378, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20379, o is ImplementTwoInterfaceGenC<int>, false); Eval(20380, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20381, o is ImplementAllInterfaceC<int>, false); Eval(20382, o is ImplementAllInterfaceC<int>[], false); Eval(20383, o is SealedClass, false); Eval(20384, o is SealedClass[], false); } { Guid? v = default(Guid?); ValueType o = v; Eval(20385, o is EmptyStruct, false); Eval(20386, o is EmptyStruct[], false); Eval(20387, o is EmptyStruct?, false); Eval(20388, o is EmptyStruct?[], false); Eval(20389, o is NotEmptyStruct, false); Eval(20390, o is NotEmptyStruct[], false); Eval(20391, o is NotEmptyStruct?, false); Eval(20392, o is NotEmptyStruct?[], false); Eval(20393, o is EmptyStructGen<int>, false); Eval(20394, o is EmptyStructGen<int>[], false); Eval(20395, o is EmptyStructGen<int>?, false); Eval(20396, o is EmptyStructGen<int>?[], false); Eval(20397, o is NotEmptyStructGen<Guid>, false); Eval(20398, o is NotEmptyStructGen<Guid>[], false); Eval(20399, o is NotEmptyStructGen<Guid>?, false); Eval(20400, o is NotEmptyStructGen<Guid>?[], false); Eval(20401, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20402, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20403, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20404, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20405, o is NestedStruct, false); Eval(20406, o is NestedStruct[], false); Eval(20407, o is NestedStruct?, false); Eval(20408, o is NestedStruct?[], false); Eval(20409, o is NestedStructGen<Decimal>, false); Eval(20410, o is NestedStructGen<Decimal>[], false); Eval(20411, o is NestedStructGen<Decimal>?, false); Eval(20412, o is NestedStructGen<Decimal>?[], false); Eval(20413, o is ExplicitFieldOffsetStruct, false); Eval(20414, o is ExplicitFieldOffsetStruct[], false); Eval(20415, o is ExplicitFieldOffsetStruct?, false); Eval(20416, o is ExplicitFieldOffsetStruct?[], false); Eval(20425, o is MarshalAsStruct, false); Eval(20426, o is MarshalAsStruct[], false); Eval(20427, o is MarshalAsStruct?, false); Eval(20428, o is MarshalAsStruct?[], false); Eval(20429, o is ImplementOneInterface, false); Eval(20430, o is ImplementOneInterface[], false); Eval(20431, o is ImplementOneInterface?, false); Eval(20432, o is ImplementOneInterface?[], false); Eval(20433, o is ImplementTwoInterface, false); Eval(20434, o is ImplementTwoInterface[], false); Eval(20435, o is ImplementTwoInterface?, false); Eval(20436, o is ImplementTwoInterface?[], false); Eval(20437, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20438, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20439, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20440, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20441, o is ImplementTwoInterfaceGen<int>, false); Eval(20442, o is ImplementTwoInterfaceGen<int>[], false); Eval(20443, o is ImplementTwoInterfaceGen<int>?, false); Eval(20444, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20445, o is ImplementAllInterface<int>, false); Eval(20446, o is ImplementAllInterface<int>[], false); Eval(20447, o is ImplementAllInterface<int>?, false); Eval(20448, o is ImplementAllInterface<int>?[], false); Eval(20449, o is IntE, false); Eval(20450, o is IntE[], false); Eval(20451, o is IntE?, false); Eval(20452, o is IntE?[], false); Eval(20453, o is ByteE, false); Eval(20454, o is ByteE[], false); Eval(20455, o is ByteE?, false); Eval(20456, o is ByteE?[], false); Eval(20457, o is LongE, false); Eval(20458, o is LongE[], false); Eval(20459, o is LongE?, false); Eval(20460, o is LongE?[], false); Eval(20461, o is char, false); Eval(20462, o is char[], false); Eval(20463, o is char?, false); Eval(20464, o is char?[], false); Eval(20465, o is bool, false); Eval(20466, o is bool[], false); Eval(20467, o is bool?, false); Eval(20468, o is bool?[], false); Eval(20469, o is byte, false); Eval(20470, o is byte[], false); Eval(20471, o is byte?, false); Eval(20472, o is byte?[], false); Eval(20473, o is sbyte, false); Eval(20474, o is sbyte[], false); Eval(20475, o is sbyte?, false); Eval(20476, o is sbyte?[], false); Eval(20477, o is short, false); Eval(20478, o is short[], false); Eval(20479, o is short?, false); Eval(20480, o is short?[], false); Eval(20481, o is ushort, false); Eval(20482, o is ushort[], false); Eval(20483, o is ushort?, false); Eval(20484, o is ushort?[], false); Eval(20485, o is int, false); Eval(20486, o is int[], false); Eval(20487, o is int?, false); Eval(20488, o is int?[], false); Eval(20489, o is uint, false); Eval(20490, o is uint[], false); Eval(20491, o is uint?, false); Eval(20492, o is uint?[], false); Eval(20493, o is long, false); Eval(20494, o is long[], false); Eval(20495, o is long?, false); Eval(20496, o is long?[], false); Eval(20497, o is ulong, false); Eval(20498, o is ulong[], false); Eval(20499, o is ulong?, false); Eval(20500, o is ulong?[], false); Eval(20501, o is float, false); Eval(20502, o is float[], false); Eval(20503, o is float?, false); Eval(20504, o is float?[], false); Eval(20505, o is double, false); Eval(20506, o is double[], false); Eval(20507, o is double?, false); Eval(20508, o is double?[], false); Eval(20509, o is decimal, false); Eval(20510, o is decimal[], false); Eval(20511, o is decimal?, false); Eval(20512, o is decimal?[], false); Eval(20513, o is IntPtr, false); Eval(20514, o is IntPtr[], false); Eval(20515, o is IntPtr?, false); Eval(20516, o is IntPtr?[], false); Eval(20517, o is UIntPtr, false); Eval(20518, o is UIntPtr[], false); Eval(20519, o is UIntPtr?, false); Eval(20520, o is UIntPtr?[], false); Eval(20521, o is Guid, false); Eval(20522, o is Guid[], false); Eval(20523, o is Guid?, false); Eval(20524, o is Guid?[], false); Eval(20525, o is GCHandle, false); Eval(20526, o is GCHandle[], false); Eval(20527, o is GCHandle?, false); Eval(20528, o is GCHandle?[], false); Eval(20529, o is object, false); Eval(20530, o is object[], false); Eval(20531, o is string, false); Eval(20532, o is string[], false); Eval(20533, o is ValueType, false); Eval(20534, o is ValueType[], false); Eval(20535, o is Array, false); Eval(20536, o is Array[], false); Eval(20537, o is Enum, false); Eval(20538, o is Enum[], false); Eval(20539, o is Delegate, false); Eval(20540, o is Delegate[], false); Eval(20541, o is MulticastDelegate, false); Eval(20542, o is MulticastDelegate[], false); Eval(20543, o is IEmpty, false); Eval(20544, o is IEmpty[], false); Eval(20545, o is INotEmpty, false); Eval(20546, o is INotEmpty[], false); Eval(20547, o is IEmptyGen<int>, false); Eval(20548, o is IEmptyGen<int>[], false); Eval(20549, o is INotEmptyGen<int>, false); Eval(20550, o is INotEmptyGen<int>[], false); Eval(20551, o is SimpleDelegate, false); Eval(20552, o is SimpleDelegate[], false); Eval(20553, o is GenericDelegate<int>, false); Eval(20554, o is GenericDelegate<int>[], false); Eval(20555, o is EmptyClass, false); Eval(20556, o is EmptyClass[], false); Eval(20557, o is NotEmptyClass, false); Eval(20558, o is NotEmptyClass[], false); Eval(20559, o is EmptyClassGen<int>, false); Eval(20560, o is EmptyClassGen<int>[], false); Eval(20561, o is NotEmptyClassGen<Guid>, false); Eval(20562, o is NotEmptyClassGen<Guid>[], false); Eval(20563, o is NotEmptyClassConstrainedGen<object>, false); Eval(20564, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20565, o is NestedClass, false); Eval(20566, o is NestedClass[], false); Eval(20567, o is NestedClassGen<Decimal>, false); Eval(20568, o is NestedClassGen<Decimal>[], false); Eval(20569, o is ImplementOneInterfaceC, false); Eval(20570, o is ImplementOneInterfaceC[], false); Eval(20571, o is ImplementTwoInterfaceC, false); Eval(20572, o is ImplementTwoInterfaceC[], false); Eval(20573, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20574, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20575, o is ImplementTwoInterfaceGenC<int>, false); Eval(20576, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20577, o is ImplementAllInterfaceC<int>, false); Eval(20578, o is ImplementAllInterfaceC<int>[], false); Eval(20579, o is SealedClass, false); Eval(20580, o is SealedClass[], false); } } // end of test case 0035 private static void TestCase0036() { { GCHandle v = default(GCHandle); ValueType o = v; Eval(20581, o is EmptyStruct, false); Eval(20582, o is EmptyStruct[], false); Eval(20583, o is EmptyStruct?, false); Eval(20584, o is EmptyStruct?[], false); Eval(20585, o is NotEmptyStruct, false); Eval(20586, o is NotEmptyStruct[], false); Eval(20587, o is NotEmptyStruct?, false); Eval(20588, o is NotEmptyStruct?[], false); Eval(20589, o is EmptyStructGen<int>, false); Eval(20590, o is EmptyStructGen<int>[], false); Eval(20591, o is EmptyStructGen<int>?, false); Eval(20592, o is EmptyStructGen<int>?[], false); Eval(20593, o is NotEmptyStructGen<Guid>, false); Eval(20594, o is NotEmptyStructGen<Guid>[], false); Eval(20595, o is NotEmptyStructGen<Guid>?, false); Eval(20596, o is NotEmptyStructGen<Guid>?[], false); Eval(20597, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20598, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20599, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20600, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20601, o is NestedStruct, false); Eval(20602, o is NestedStruct[], false); Eval(20603, o is NestedStruct?, false); Eval(20604, o is NestedStruct?[], false); Eval(20605, o is NestedStructGen<Decimal>, false); Eval(20606, o is NestedStructGen<Decimal>[], false); Eval(20607, o is NestedStructGen<Decimal>?, false); Eval(20608, o is NestedStructGen<Decimal>?[], false); Eval(20609, o is ExplicitFieldOffsetStruct, false); Eval(20610, o is ExplicitFieldOffsetStruct[], false); Eval(20611, o is ExplicitFieldOffsetStruct?, false); Eval(20612, o is ExplicitFieldOffsetStruct?[], false); Eval(20621, o is MarshalAsStruct, false); Eval(20622, o is MarshalAsStruct[], false); Eval(20623, o is MarshalAsStruct?, false); Eval(20624, o is MarshalAsStruct?[], false); Eval(20625, o is ImplementOneInterface, false); Eval(20626, o is ImplementOneInterface[], false); Eval(20627, o is ImplementOneInterface?, false); Eval(20628, o is ImplementOneInterface?[], false); Eval(20629, o is ImplementTwoInterface, false); Eval(20630, o is ImplementTwoInterface[], false); Eval(20631, o is ImplementTwoInterface?, false); Eval(20632, o is ImplementTwoInterface?[], false); Eval(20633, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20634, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20635, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20636, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20637, o is ImplementTwoInterfaceGen<int>, false); Eval(20638, o is ImplementTwoInterfaceGen<int>[], false); Eval(20639, o is ImplementTwoInterfaceGen<int>?, false); Eval(20640, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20641, o is ImplementAllInterface<int>, false); Eval(20642, o is ImplementAllInterface<int>[], false); Eval(20643, o is ImplementAllInterface<int>?, false); Eval(20644, o is ImplementAllInterface<int>?[], false); Eval(20645, o is IntE, false); Eval(20646, o is IntE[], false); Eval(20647, o is IntE?, false); Eval(20648, o is IntE?[], false); Eval(20649, o is ByteE, false); Eval(20650, o is ByteE[], false); Eval(20651, o is ByteE?, false); Eval(20652, o is ByteE?[], false); Eval(20653, o is LongE, false); Eval(20654, o is LongE[], false); Eval(20655, o is LongE?, false); Eval(20656, o is LongE?[], false); Eval(20657, o is char, false); Eval(20658, o is char[], false); Eval(20659, o is char?, false); Eval(20660, o is char?[], false); Eval(20661, o is bool, false); Eval(20662, o is bool[], false); Eval(20663, o is bool?, false); Eval(20664, o is bool?[], false); Eval(20665, o is byte, false); Eval(20666, o is byte[], false); Eval(20667, o is byte?, false); Eval(20668, o is byte?[], false); Eval(20669, o is sbyte, false); Eval(20670, o is sbyte[], false); Eval(20671, o is sbyte?, false); Eval(20672, o is sbyte?[], false); Eval(20673, o is short, false); Eval(20674, o is short[], false); Eval(20675, o is short?, false); Eval(20676, o is short?[], false); Eval(20677, o is ushort, false); Eval(20678, o is ushort[], false); Eval(20679, o is ushort?, false); Eval(20680, o is ushort?[], false); Eval(20681, o is int, false); Eval(20682, o is int[], false); Eval(20683, o is int?, false); Eval(20684, o is int?[], false); Eval(20685, o is uint, false); Eval(20686, o is uint[], false); Eval(20687, o is uint?, false); Eval(20688, o is uint?[], false); Eval(20689, o is long, false); Eval(20690, o is long[], false); Eval(20691, o is long?, false); Eval(20692, o is long?[], false); Eval(20693, o is ulong, false); Eval(20694, o is ulong[], false); Eval(20695, o is ulong?, false); Eval(20696, o is ulong?[], false); Eval(20697, o is float, false); Eval(20698, o is float[], false); Eval(20699, o is float?, false); Eval(20700, o is float?[], false); Eval(20701, o is double, false); Eval(20702, o is double[], false); Eval(20703, o is double?, false); Eval(20704, o is double?[], false); Eval(20705, o is decimal, false); Eval(20706, o is decimal[], false); Eval(20707, o is decimal?, false); Eval(20708, o is decimal?[], false); Eval(20709, o is IntPtr, false); Eval(20710, o is IntPtr[], false); Eval(20711, o is IntPtr?, false); Eval(20712, o is IntPtr?[], false); Eval(20713, o is UIntPtr, false); Eval(20714, o is UIntPtr[], false); Eval(20715, o is UIntPtr?, false); Eval(20716, o is UIntPtr?[], false); Eval(20717, o is Guid, false); Eval(20718, o is Guid[], false); Eval(20719, o is Guid?, false); Eval(20720, o is Guid?[], false); Eval(20721, o is GCHandle, true); Eval(20722, o is GCHandle[], false); Eval(20723, o is GCHandle?, true); Eval(20724, o is GCHandle?[], false); Eval(20725, o is object, true); Eval(20726, o is object[], false); Eval(20727, o is string, false); Eval(20728, o is string[], false); Eval(20729, o is ValueType, true); Eval(20730, o is ValueType[], false); Eval(20731, o is Array, false); Eval(20732, o is Array[], false); Eval(20733, o is Enum, false); Eval(20734, o is Enum[], false); Eval(20735, o is Delegate, false); Eval(20736, o is Delegate[], false); Eval(20737, o is MulticastDelegate, false); Eval(20738, o is MulticastDelegate[], false); Eval(20739, o is IEmpty, false); Eval(20740, o is IEmpty[], false); Eval(20741, o is INotEmpty, false); Eval(20742, o is INotEmpty[], false); Eval(20743, o is IEmptyGen<int>, false); Eval(20744, o is IEmptyGen<int>[], false); Eval(20745, o is INotEmptyGen<int>, false); Eval(20746, o is INotEmptyGen<int>[], false); Eval(20747, o is SimpleDelegate, false); Eval(20748, o is SimpleDelegate[], false); Eval(20749, o is GenericDelegate<int>, false); Eval(20750, o is GenericDelegate<int>[], false); Eval(20751, o is EmptyClass, false); Eval(20752, o is EmptyClass[], false); Eval(20753, o is NotEmptyClass, false); Eval(20754, o is NotEmptyClass[], false); Eval(20755, o is EmptyClassGen<int>, false); Eval(20756, o is EmptyClassGen<int>[], false); Eval(20757, o is NotEmptyClassGen<Guid>, false); Eval(20758, o is NotEmptyClassGen<Guid>[], false); Eval(20759, o is NotEmptyClassConstrainedGen<object>, false); Eval(20760, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20761, o is NestedClass, false); Eval(20762, o is NestedClass[], false); Eval(20763, o is NestedClassGen<Decimal>, false); Eval(20764, o is NestedClassGen<Decimal>[], false); Eval(20765, o is ImplementOneInterfaceC, false); Eval(20766, o is ImplementOneInterfaceC[], false); Eval(20767, o is ImplementTwoInterfaceC, false); Eval(20768, o is ImplementTwoInterfaceC[], false); Eval(20769, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20770, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20771, o is ImplementTwoInterfaceGenC<int>, false); Eval(20772, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20773, o is ImplementAllInterfaceC<int>, false); Eval(20774, o is ImplementAllInterfaceC<int>[], false); Eval(20775, o is SealedClass, false); Eval(20776, o is SealedClass[], false); } { GCHandle? v = default(GCHandle); ValueType o = v; Eval(20777, o is EmptyStruct, false); Eval(20778, o is EmptyStruct[], false); Eval(20779, o is EmptyStruct?, false); Eval(20780, o is EmptyStruct?[], false); Eval(20781, o is NotEmptyStruct, false); Eval(20782, o is NotEmptyStruct[], false); Eval(20783, o is NotEmptyStruct?, false); Eval(20784, o is NotEmptyStruct?[], false); Eval(20785, o is EmptyStructGen<int>, false); Eval(20786, o is EmptyStructGen<int>[], false); Eval(20787, o is EmptyStructGen<int>?, false); Eval(20788, o is EmptyStructGen<int>?[], false); Eval(20789, o is NotEmptyStructGen<Guid>, false); Eval(20790, o is NotEmptyStructGen<Guid>[], false); Eval(20791, o is NotEmptyStructGen<Guid>?, false); Eval(20792, o is NotEmptyStructGen<Guid>?[], false); Eval(20793, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20794, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20795, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20796, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20797, o is NestedStruct, false); Eval(20798, o is NestedStruct[], false); Eval(20799, o is NestedStruct?, false); Eval(20800, o is NestedStruct?[], false); Eval(20801, o is NestedStructGen<Decimal>, false); Eval(20802, o is NestedStructGen<Decimal>[], false); Eval(20803, o is NestedStructGen<Decimal>?, false); Eval(20804, o is NestedStructGen<Decimal>?[], false); Eval(20805, o is ExplicitFieldOffsetStruct, false); Eval(20806, o is ExplicitFieldOffsetStruct[], false); Eval(20807, o is ExplicitFieldOffsetStruct?, false); Eval(20808, o is ExplicitFieldOffsetStruct?[], false); Eval(20817, o is MarshalAsStruct, false); Eval(20818, o is MarshalAsStruct[], false); Eval(20819, o is MarshalAsStruct?, false); Eval(20820, o is MarshalAsStruct?[], false); Eval(20821, o is ImplementOneInterface, false); Eval(20822, o is ImplementOneInterface[], false); Eval(20823, o is ImplementOneInterface?, false); Eval(20824, o is ImplementOneInterface?[], false); Eval(20825, o is ImplementTwoInterface, false); Eval(20826, o is ImplementTwoInterface[], false); Eval(20827, o is ImplementTwoInterface?, false); Eval(20828, o is ImplementTwoInterface?[], false); Eval(20829, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20830, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20831, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20832, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20833, o is ImplementTwoInterfaceGen<int>, false); Eval(20834, o is ImplementTwoInterfaceGen<int>[], false); Eval(20835, o is ImplementTwoInterfaceGen<int>?, false); Eval(20836, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20837, o is ImplementAllInterface<int>, false); Eval(20838, o is ImplementAllInterface<int>[], false); Eval(20839, o is ImplementAllInterface<int>?, false); Eval(20840, o is ImplementAllInterface<int>?[], false); Eval(20841, o is IntE, false); Eval(20842, o is IntE[], false); Eval(20843, o is IntE?, false); Eval(20844, o is IntE?[], false); Eval(20845, o is ByteE, false); Eval(20846, o is ByteE[], false); Eval(20847, o is ByteE?, false); Eval(20848, o is ByteE?[], false); Eval(20849, o is LongE, false); Eval(20850, o is LongE[], false); Eval(20851, o is LongE?, false); Eval(20852, o is LongE?[], false); Eval(20853, o is char, false); Eval(20854, o is char[], false); Eval(20855, o is char?, false); Eval(20856, o is char?[], false); Eval(20857, o is bool, false); Eval(20858, o is bool[], false); Eval(20859, o is bool?, false); Eval(20860, o is bool?[], false); Eval(20861, o is byte, false); Eval(20862, o is byte[], false); Eval(20863, o is byte?, false); Eval(20864, o is byte?[], false); Eval(20865, o is sbyte, false); Eval(20866, o is sbyte[], false); Eval(20867, o is sbyte?, false); Eval(20868, o is sbyte?[], false); Eval(20869, o is short, false); Eval(20870, o is short[], false); Eval(20871, o is short?, false); Eval(20872, o is short?[], false); Eval(20873, o is ushort, false); Eval(20874, o is ushort[], false); Eval(20875, o is ushort?, false); Eval(20876, o is ushort?[], false); Eval(20877, o is int, false); Eval(20878, o is int[], false); Eval(20879, o is int?, false); Eval(20880, o is int?[], false); Eval(20881, o is uint, false); Eval(20882, o is uint[], false); Eval(20883, o is uint?, false); Eval(20884, o is uint?[], false); Eval(20885, o is long, false); Eval(20886, o is long[], false); Eval(20887, o is long?, false); Eval(20888, o is long?[], false); Eval(20889, o is ulong, false); Eval(20890, o is ulong[], false); Eval(20891, o is ulong?, false); Eval(20892, o is ulong?[], false); Eval(20893, o is float, false); Eval(20894, o is float[], false); Eval(20895, o is float?, false); Eval(20896, o is float?[], false); Eval(20897, o is double, false); Eval(20898, o is double[], false); Eval(20899, o is double?, false); Eval(20900, o is double?[], false); Eval(20901, o is decimal, false); Eval(20902, o is decimal[], false); Eval(20903, o is decimal?, false); Eval(20904, o is decimal?[], false); Eval(20905, o is IntPtr, false); Eval(20906, o is IntPtr[], false); Eval(20907, o is IntPtr?, false); Eval(20908, o is IntPtr?[], false); Eval(20909, o is UIntPtr, false); Eval(20910, o is UIntPtr[], false); Eval(20911, o is UIntPtr?, false); Eval(20912, o is UIntPtr?[], false); Eval(20913, o is Guid, false); Eval(20914, o is Guid[], false); Eval(20915, o is Guid?, false); Eval(20916, o is Guid?[], false); Eval(20917, o is GCHandle, true); Eval(20918, o is GCHandle[], false); Eval(20919, o is GCHandle?, true); Eval(20920, o is GCHandle?[], false); Eval(20921, o is object, true); Eval(20922, o is object[], false); Eval(20923, o is string, false); Eval(20924, o is string[], false); Eval(20925, o is ValueType, true); Eval(20926, o is ValueType[], false); Eval(20927, o is Array, false); Eval(20928, o is Array[], false); Eval(20929, o is Enum, false); Eval(20930, o is Enum[], false); Eval(20931, o is Delegate, false); Eval(20932, o is Delegate[], false); Eval(20933, o is MulticastDelegate, false); Eval(20934, o is MulticastDelegate[], false); Eval(20935, o is IEmpty, false); Eval(20936, o is IEmpty[], false); Eval(20937, o is INotEmpty, false); Eval(20938, o is INotEmpty[], false); Eval(20939, o is IEmptyGen<int>, false); Eval(20940, o is IEmptyGen<int>[], false); Eval(20941, o is INotEmptyGen<int>, false); Eval(20942, o is INotEmptyGen<int>[], false); Eval(20943, o is SimpleDelegate, false); Eval(20944, o is SimpleDelegate[], false); Eval(20945, o is GenericDelegate<int>, false); Eval(20946, o is GenericDelegate<int>[], false); Eval(20947, o is EmptyClass, false); Eval(20948, o is EmptyClass[], false); Eval(20949, o is NotEmptyClass, false); Eval(20950, o is NotEmptyClass[], false); Eval(20951, o is EmptyClassGen<int>, false); Eval(20952, o is EmptyClassGen<int>[], false); Eval(20953, o is NotEmptyClassGen<Guid>, false); Eval(20954, o is NotEmptyClassGen<Guid>[], false); Eval(20955, o is NotEmptyClassConstrainedGen<object>, false); Eval(20956, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20957, o is NestedClass, false); Eval(20958, o is NestedClass[], false); Eval(20959, o is NestedClassGen<Decimal>, false); Eval(20960, o is NestedClassGen<Decimal>[], false); Eval(20961, o is ImplementOneInterfaceC, false); Eval(20962, o is ImplementOneInterfaceC[], false); Eval(20963, o is ImplementTwoInterfaceC, false); Eval(20964, o is ImplementTwoInterfaceC[], false); Eval(20965, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20966, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20967, o is ImplementTwoInterfaceGenC<int>, false); Eval(20968, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20969, o is ImplementAllInterfaceC<int>, false); Eval(20970, o is ImplementAllInterfaceC<int>[], false); Eval(20971, o is SealedClass, false); Eval(20972, o is SealedClass[], false); } { GCHandle? v = default(GCHandle?); ValueType o = v; Eval(20973, o is EmptyStruct, false); Eval(20974, o is EmptyStruct[], false); Eval(20975, o is EmptyStruct?, false); Eval(20976, o is EmptyStruct?[], false); Eval(20977, o is NotEmptyStruct, false); Eval(20978, o is NotEmptyStruct[], false); Eval(20979, o is NotEmptyStruct?, false); Eval(20980, o is NotEmptyStruct?[], false); Eval(20981, o is EmptyStructGen<int>, false); Eval(20982, o is EmptyStructGen<int>[], false); Eval(20983, o is EmptyStructGen<int>?, false); Eval(20984, o is EmptyStructGen<int>?[], false); Eval(20985, o is NotEmptyStructGen<Guid>, false); Eval(20986, o is NotEmptyStructGen<Guid>[], false); Eval(20987, o is NotEmptyStructGen<Guid>?, false); Eval(20988, o is NotEmptyStructGen<Guid>?[], false); Eval(20989, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20990, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20991, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20992, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20993, o is NestedStruct, false); Eval(20994, o is NestedStruct[], false); Eval(20995, o is NestedStruct?, false); Eval(20996, o is NestedStruct?[], false); Eval(20997, o is NestedStructGen<Decimal>, false); Eval(20998, o is NestedStructGen<Decimal>[], false); Eval(20999, o is NestedStructGen<Decimal>?, false); Eval(21000, o is NestedStructGen<Decimal>?[], false); Eval(21001, o is ExplicitFieldOffsetStruct, false); Eval(21002, o is ExplicitFieldOffsetStruct[], false); Eval(21003, o is ExplicitFieldOffsetStruct?, false); Eval(21004, o is ExplicitFieldOffsetStruct?[], false); Eval(21013, o is MarshalAsStruct, false); Eval(21014, o is MarshalAsStruct[], false); Eval(21015, o is MarshalAsStruct?, false); Eval(21016, o is MarshalAsStruct?[], false); Eval(21017, o is ImplementOneInterface, false); Eval(21018, o is ImplementOneInterface[], false); Eval(21019, o is ImplementOneInterface?, false); Eval(21020, o is ImplementOneInterface?[], false); Eval(21021, o is ImplementTwoInterface, false); Eval(21022, o is ImplementTwoInterface[], false); Eval(21023, o is ImplementTwoInterface?, false); Eval(21024, o is ImplementTwoInterface?[], false); Eval(21025, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(21026, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(21027, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(21028, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(21029, o is ImplementTwoInterfaceGen<int>, false); Eval(21030, o is ImplementTwoInterfaceGen<int>[], false); Eval(21031, o is ImplementTwoInterfaceGen<int>?, false); Eval(21032, o is ImplementTwoInterfaceGen<int>?[], false); Eval(21033, o is ImplementAllInterface<int>, false); Eval(21034, o is ImplementAllInterface<int>[], false); Eval(21035, o is ImplementAllInterface<int>?, false); Eval(21036, o is ImplementAllInterface<int>?[], false); Eval(21037, o is IntE, false); Eval(21038, o is IntE[], false); Eval(21039, o is IntE?, false); Eval(21040, o is IntE?[], false); Eval(21041, o is ByteE, false); Eval(21042, o is ByteE[], false); Eval(21043, o is ByteE?, false); Eval(21044, o is ByteE?[], false); Eval(21045, o is LongE, false); Eval(21046, o is LongE[], false); Eval(21047, o is LongE?, false); Eval(21048, o is LongE?[], false); Eval(21049, o is char, false); Eval(21050, o is char[], false); Eval(21051, o is char?, false); Eval(21052, o is char?[], false); Eval(21053, o is bool, false); Eval(21054, o is bool[], false); Eval(21055, o is bool?, false); Eval(21056, o is bool?[], false); Eval(21057, o is byte, false); Eval(21058, o is byte[], false); Eval(21059, o is byte?, false); Eval(21060, o is byte?[], false); Eval(21061, o is sbyte, false); Eval(21062, o is sbyte[], false); Eval(21063, o is sbyte?, false); Eval(21064, o is sbyte?[], false); Eval(21065, o is short, false); Eval(21066, o is short[], false); Eval(21067, o is short?, false); Eval(21068, o is short?[], false); Eval(21069, o is ushort, false); Eval(21070, o is ushort[], false); Eval(21071, o is ushort?, false); Eval(21072, o is ushort?[], false); Eval(21073, o is int, false); Eval(21074, o is int[], false); Eval(21075, o is int?, false); Eval(21076, o is int?[], false); Eval(21077, o is uint, false); Eval(21078, o is uint[], false); Eval(21079, o is uint?, false); Eval(21080, o is uint?[], false); Eval(21081, o is long, false); Eval(21082, o is long[], false); Eval(21083, o is long?, false); Eval(21084, o is long?[], false); Eval(21085, o is ulong, false); Eval(21086, o is ulong[], false); Eval(21087, o is ulong?, false); Eval(21088, o is ulong?[], false); Eval(21089, o is float, false); Eval(21090, o is float[], false); Eval(21091, o is float?, false); Eval(21092, o is float?[], false); Eval(21093, o is double, false); Eval(21094, o is double[], false); Eval(21095, o is double?, false); Eval(21096, o is double?[], false); Eval(21097, o is decimal, false); Eval(21098, o is decimal[], false); Eval(21099, o is decimal?, false); Eval(21100, o is decimal?[], false); Eval(21101, o is IntPtr, false); Eval(21102, o is IntPtr[], false); Eval(21103, o is IntPtr?, false); Eval(21104, o is IntPtr?[], false); Eval(21105, o is UIntPtr, false); Eval(21106, o is UIntPtr[], false); Eval(21107, o is UIntPtr?, false); Eval(21108, o is UIntPtr?[], false); Eval(21109, o is Guid, false); Eval(21110, o is Guid[], false); Eval(21111, o is Guid?, false); Eval(21112, o is Guid?[], false); Eval(21113, o is GCHandle, false); Eval(21114, o is GCHandle[], false); Eval(21115, o is GCHandle?, false); Eval(21116, o is GCHandle?[], false); Eval(21117, o is object, false); Eval(21118, o is object[], false); Eval(21119, o is string, false); Eval(21120, o is string[], false); Eval(21121, o is ValueType, false); Eval(21122, o is ValueType[], false); Eval(21123, o is Array, false); Eval(21124, o is Array[], false); Eval(21125, o is Enum, false); Eval(21126, o is Enum[], false); Eval(21127, o is Delegate, false); Eval(21128, o is Delegate[], false); Eval(21129, o is MulticastDelegate, false); Eval(21130, o is MulticastDelegate[], false); Eval(21131, o is IEmpty, false); Eval(21132, o is IEmpty[], false); Eval(21133, o is INotEmpty, false); Eval(21134, o is INotEmpty[], false); Eval(21135, o is IEmptyGen<int>, false); Eval(21136, o is IEmptyGen<int>[], false); Eval(21137, o is INotEmptyGen<int>, false); Eval(21138, o is INotEmptyGen<int>[], false); Eval(21139, o is SimpleDelegate, false); Eval(21140, o is SimpleDelegate[], false); Eval(21141, o is GenericDelegate<int>, false); Eval(21142, o is GenericDelegate<int>[], false); Eval(21143, o is EmptyClass, false); Eval(21144, o is EmptyClass[], false); Eval(21145, o is NotEmptyClass, false); Eval(21146, o is NotEmptyClass[], false); Eval(21147, o is EmptyClassGen<int>, false); Eval(21148, o is EmptyClassGen<int>[], false); Eval(21149, o is NotEmptyClassGen<Guid>, false); Eval(21150, o is NotEmptyClassGen<Guid>[], false); Eval(21151, o is NotEmptyClassConstrainedGen<object>, false); Eval(21152, o is NotEmptyClassConstrainedGen<object>[], false); Eval(21153, o is NestedClass, false); Eval(21154, o is NestedClass[], false); Eval(21155, o is NestedClassGen<Decimal>, false); Eval(21156, o is NestedClassGen<Decimal>[], false); Eval(21157, o is ImplementOneInterfaceC, false); Eval(21158, o is ImplementOneInterfaceC[], false); Eval(21159, o is ImplementTwoInterfaceC, false); Eval(21160, o is ImplementTwoInterfaceC[], false); Eval(21161, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(21162, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(21163, o is ImplementTwoInterfaceGenC<int>, false); Eval(21164, o is ImplementTwoInterfaceGenC<int>[], false); Eval(21165, o is ImplementAllInterfaceC<int>, false); Eval(21166, o is ImplementAllInterfaceC<int>[], false); Eval(21167, o is SealedClass, false); Eval(21168, o is SealedClass[], false); } } // end of test case 0036 private static int Main() { try { TestCase0001(); TestCase0002(); TestCase0003(); TestCase0004(); TestCase0005(); TestCase0006(); TestCase0007(); TestCase0008(); TestCase0011(); TestCase0012(); TestCase0013(); TestCase0014(); TestCase0015(); TestCase0016(); TestCase0017(); TestCase0018(); TestCase0019(); TestCase0020(); TestCase0021(); TestCase0022(); TestCase0023(); TestCase0024(); TestCase0025(); TestCase0026(); TestCase0027(); TestCase0028(); TestCase0029(); TestCase0030(); TestCase0031(); TestCase0032(); TestCase0033(); TestCase0034(); TestCase0035(); TestCase0036(); } catch (Exception e) { System.Console.WriteLine(e.Message); Console.WriteLine("Test FAILED"); return 666; } Console.WriteLine("Test SUCCESS"); return 100; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma warning disable 0184 using System; using System.Runtime.InteropServices; internal class Program { private static void Eval(int testCase, bool b1, bool b2) { if (b1 != b2) throw new Exception(string.Format("case {0:000} failed: v1 {1} v2 {2}", testCase, b1, b2)); } private static void TestCase0001() { { EmptyStruct v = default(EmptyStruct); ValueType o = v; Eval(0001, o is EmptyStruct, true); Eval(0002, o is EmptyStruct[], false); Eval(0003, o is EmptyStruct?, true); Eval(0004, o is EmptyStruct?[], false); Eval(0005, o is NotEmptyStruct, false); Eval(0006, o is NotEmptyStruct[], false); Eval(0007, o is NotEmptyStruct?, false); Eval(0008, o is NotEmptyStruct?[], false); Eval(0009, o is EmptyStructGen<int>, false); Eval(0010, o is EmptyStructGen<int>[], false); Eval(0011, o is EmptyStructGen<int>?, false); Eval(0012, o is EmptyStructGen<int>?[], false); Eval(0013, o is NotEmptyStructGen<Guid>, false); Eval(0014, o is NotEmptyStructGen<Guid>[], false); Eval(0015, o is NotEmptyStructGen<Guid>?, false); Eval(0016, o is NotEmptyStructGen<Guid>?[], false); Eval(0017, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0018, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0019, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0020, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0021, o is NestedStruct, false); Eval(0022, o is NestedStruct[], false); Eval(0023, o is NestedStruct?, false); Eval(0024, o is NestedStruct?[], false); Eval(0025, o is NestedStructGen<Decimal>, false); Eval(0026, o is NestedStructGen<Decimal>[], false); Eval(0027, o is NestedStructGen<Decimal>?, false); Eval(0028, o is NestedStructGen<Decimal>?[], false); Eval(0029, o is ExplicitFieldOffsetStruct, false); Eval(0030, o is ExplicitFieldOffsetStruct[], false); Eval(0031, o is ExplicitFieldOffsetStruct?, false); Eval(0032, o is ExplicitFieldOffsetStruct?[], false); Eval(0041, o is MarshalAsStruct, false); Eval(0042, o is MarshalAsStruct[], false); Eval(0043, o is MarshalAsStruct?, false); Eval(0044, o is MarshalAsStruct?[], false); Eval(0045, o is ImplementOneInterface, false); Eval(0046, o is ImplementOneInterface[], false); Eval(0047, o is ImplementOneInterface?, false); Eval(0048, o is ImplementOneInterface?[], false); Eval(0049, o is ImplementTwoInterface, false); Eval(0050, o is ImplementTwoInterface[], false); Eval(0051, o is ImplementTwoInterface?, false); Eval(0052, o is ImplementTwoInterface?[], false); Eval(0053, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0054, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0055, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0056, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0057, o is ImplementTwoInterfaceGen<int>, false); Eval(0058, o is ImplementTwoInterfaceGen<int>[], false); Eval(0059, o is ImplementTwoInterfaceGen<int>?, false); Eval(0060, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0061, o is ImplementAllInterface<int>, false); Eval(0062, o is ImplementAllInterface<int>[], false); Eval(0063, o is ImplementAllInterface<int>?, false); Eval(0064, o is ImplementAllInterface<int>?[], false); Eval(0065, o is IntE, false); Eval(0066, o is IntE[], false); Eval(0067, o is IntE?, false); Eval(0068, o is IntE?[], false); Eval(0069, o is ByteE, false); Eval(0070, o is ByteE[], false); Eval(0071, o is ByteE?, false); Eval(0072, o is ByteE?[], false); Eval(0073, o is LongE, false); Eval(0074, o is LongE[], false); Eval(0075, o is LongE?, false); Eval(0076, o is LongE?[], false); Eval(0077, o is char, false); Eval(0078, o is char[], false); Eval(0079, o is char?, false); Eval(0080, o is char?[], false); Eval(0081, o is bool, false); Eval(0082, o is bool[], false); Eval(0083, o is bool?, false); Eval(0084, o is bool?[], false); Eval(0085, o is byte, false); Eval(0086, o is byte[], false); Eval(0087, o is byte?, false); Eval(0088, o is byte?[], false); Eval(0089, o is sbyte, false); Eval(0090, o is sbyte[], false); Eval(0091, o is sbyte?, false); Eval(0092, o is sbyte?[], false); Eval(0093, o is short, false); Eval(0094, o is short[], false); Eval(0095, o is short?, false); Eval(0096, o is short?[], false); Eval(0097, o is ushort, false); Eval(0098, o is ushort[], false); Eval(0099, o is ushort?, false); Eval(0100, o is ushort?[], false); Eval(0101, o is int, false); Eval(0102, o is int[], false); Eval(0103, o is int?, false); Eval(0104, o is int?[], false); Eval(0105, o is uint, false); Eval(0106, o is uint[], false); Eval(0107, o is uint?, false); Eval(0108, o is uint?[], false); Eval(0109, o is long, false); Eval(0110, o is long[], false); Eval(0111, o is long?, false); Eval(0112, o is long?[], false); Eval(0113, o is ulong, false); Eval(0114, o is ulong[], false); Eval(0115, o is ulong?, false); Eval(0116, o is ulong?[], false); Eval(0117, o is float, false); Eval(0118, o is float[], false); Eval(0119, o is float?, false); Eval(0120, o is float?[], false); Eval(0121, o is double, false); Eval(0122, o is double[], false); Eval(0123, o is double?, false); Eval(0124, o is double?[], false); Eval(0125, o is decimal, false); Eval(0126, o is decimal[], false); Eval(0127, o is decimal?, false); Eval(0128, o is decimal?[], false); Eval(0129, o is IntPtr, false); Eval(0130, o is IntPtr[], false); Eval(0131, o is IntPtr?, false); Eval(0132, o is IntPtr?[], false); Eval(0133, o is UIntPtr, false); Eval(0134, o is UIntPtr[], false); Eval(0135, o is UIntPtr?, false); Eval(0136, o is UIntPtr?[], false); Eval(0137, o is Guid, false); Eval(0138, o is Guid[], false); Eval(0139, o is Guid?, false); Eval(0140, o is Guid?[], false); Eval(0141, o is GCHandle, false); Eval(0142, o is GCHandle[], false); Eval(0143, o is GCHandle?, false); Eval(0144, o is GCHandle?[], false); Eval(0145, o is object, true); Eval(0146, o is object[], false); Eval(0147, o is string, false); Eval(0148, o is string[], false); Eval(0149, o is ValueType, true); Eval(0150, o is ValueType[], false); Eval(0151, o is Array, false); Eval(0152, o is Array[], false); Eval(0153, o is Enum, false); Eval(0154, o is Enum[], false); Eval(0155, o is Delegate, false); Eval(0156, o is Delegate[], false); Eval(0157, o is MulticastDelegate, false); Eval(0158, o is MulticastDelegate[], false); Eval(0159, o is IEmpty, false); Eval(0160, o is IEmpty[], false); Eval(0161, o is INotEmpty, false); Eval(0162, o is INotEmpty[], false); Eval(0163, o is IEmptyGen<int>, false); Eval(0164, o is IEmptyGen<int>[], false); Eval(0165, o is INotEmptyGen<int>, false); Eval(0166, o is INotEmptyGen<int>[], false); Eval(0167, o is SimpleDelegate, false); Eval(0168, o is SimpleDelegate[], false); Eval(0169, o is GenericDelegate<int>, false); Eval(0170, o is GenericDelegate<int>[], false); Eval(0171, o is EmptyClass, false); Eval(0172, o is EmptyClass[], false); Eval(0173, o is NotEmptyClass, false); Eval(0174, o is NotEmptyClass[], false); Eval(0175, o is EmptyClassGen<int>, false); Eval(0176, o is EmptyClassGen<int>[], false); Eval(0177, o is NotEmptyClassGen<Guid>, false); Eval(0178, o is NotEmptyClassGen<Guid>[], false); Eval(0179, o is NotEmptyClassConstrainedGen<object>, false); Eval(0180, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0181, o is NestedClass, false); Eval(0182, o is NestedClass[], false); Eval(0183, o is NestedClassGen<Decimal>, false); Eval(0184, o is NestedClassGen<Decimal>[], false); Eval(0185, o is ImplementOneInterfaceC, false); Eval(0186, o is ImplementOneInterfaceC[], false); Eval(0187, o is ImplementTwoInterfaceC, false); Eval(0188, o is ImplementTwoInterfaceC[], false); Eval(0189, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0190, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0191, o is ImplementTwoInterfaceGenC<int>, false); Eval(0192, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0193, o is ImplementAllInterfaceC<int>, false); Eval(0194, o is ImplementAllInterfaceC<int>[], false); Eval(0195, o is SealedClass, false); Eval(0196, o is SealedClass[], false); } { EmptyStruct? v = default(EmptyStruct); ValueType o = v; Eval(0197, o is EmptyStruct, true); Eval(0198, o is EmptyStruct[], false); Eval(0199, o is EmptyStruct?, true); Eval(0200, o is EmptyStruct?[], false); Eval(0201, o is NotEmptyStruct, false); Eval(0202, o is NotEmptyStruct[], false); Eval(0203, o is NotEmptyStruct?, false); Eval(0204, o is NotEmptyStruct?[], false); Eval(0205, o is EmptyStructGen<int>, false); Eval(0206, o is EmptyStructGen<int>[], false); Eval(0207, o is EmptyStructGen<int>?, false); Eval(0208, o is EmptyStructGen<int>?[], false); Eval(0209, o is NotEmptyStructGen<Guid>, false); Eval(0210, o is NotEmptyStructGen<Guid>[], false); Eval(0211, o is NotEmptyStructGen<Guid>?, false); Eval(0212, o is NotEmptyStructGen<Guid>?[], false); Eval(0213, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0214, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0215, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0216, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0217, o is NestedStruct, false); Eval(0218, o is NestedStruct[], false); Eval(0219, o is NestedStruct?, false); Eval(0220, o is NestedStruct?[], false); Eval(0221, o is NestedStructGen<Decimal>, false); Eval(0222, o is NestedStructGen<Decimal>[], false); Eval(0223, o is NestedStructGen<Decimal>?, false); Eval(0224, o is NestedStructGen<Decimal>?[], false); Eval(0225, o is ExplicitFieldOffsetStruct, false); Eval(0226, o is ExplicitFieldOffsetStruct[], false); Eval(0227, o is ExplicitFieldOffsetStruct?, false); Eval(0228, o is ExplicitFieldOffsetStruct?[], false); Eval(0237, o is MarshalAsStruct, false); Eval(0238, o is MarshalAsStruct[], false); Eval(0239, o is MarshalAsStruct?, false); Eval(0240, o is MarshalAsStruct?[], false); Eval(0241, o is ImplementOneInterface, false); Eval(0242, o is ImplementOneInterface[], false); Eval(0243, o is ImplementOneInterface?, false); Eval(0244, o is ImplementOneInterface?[], false); Eval(0245, o is ImplementTwoInterface, false); Eval(0246, o is ImplementTwoInterface[], false); Eval(0247, o is ImplementTwoInterface?, false); Eval(0248, o is ImplementTwoInterface?[], false); Eval(0249, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0250, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0251, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0252, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0253, o is ImplementTwoInterfaceGen<int>, false); Eval(0254, o is ImplementTwoInterfaceGen<int>[], false); Eval(0255, o is ImplementTwoInterfaceGen<int>?, false); Eval(0256, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0257, o is ImplementAllInterface<int>, false); Eval(0258, o is ImplementAllInterface<int>[], false); Eval(0259, o is ImplementAllInterface<int>?, false); Eval(0260, o is ImplementAllInterface<int>?[], false); Eval(0261, o is IntE, false); Eval(0262, o is IntE[], false); Eval(0263, o is IntE?, false); Eval(0264, o is IntE?[], false); Eval(0265, o is ByteE, false); Eval(0266, o is ByteE[], false); Eval(0267, o is ByteE?, false); Eval(0268, o is ByteE?[], false); Eval(0269, o is LongE, false); Eval(0270, o is LongE[], false); Eval(0271, o is LongE?, false); Eval(0272, o is LongE?[], false); Eval(0273, o is char, false); Eval(0274, o is char[], false); Eval(0275, o is char?, false); Eval(0276, o is char?[], false); Eval(0277, o is bool, false); Eval(0278, o is bool[], false); Eval(0279, o is bool?, false); Eval(0280, o is bool?[], false); Eval(0281, o is byte, false); Eval(0282, o is byte[], false); Eval(0283, o is byte?, false); Eval(0284, o is byte?[], false); Eval(0285, o is sbyte, false); Eval(0286, o is sbyte[], false); Eval(0287, o is sbyte?, false); Eval(0288, o is sbyte?[], false); Eval(0289, o is short, false); Eval(0290, o is short[], false); Eval(0291, o is short?, false); Eval(0292, o is short?[], false); Eval(0293, o is ushort, false); Eval(0294, o is ushort[], false); Eval(0295, o is ushort?, false); Eval(0296, o is ushort?[], false); Eval(0297, o is int, false); Eval(0298, o is int[], false); Eval(0299, o is int?, false); Eval(0300, o is int?[], false); Eval(0301, o is uint, false); Eval(0302, o is uint[], false); Eval(0303, o is uint?, false); Eval(0304, o is uint?[], false); Eval(0305, o is long, false); Eval(0306, o is long[], false); Eval(0307, o is long?, false); Eval(0308, o is long?[], false); Eval(0309, o is ulong, false); Eval(0310, o is ulong[], false); Eval(0311, o is ulong?, false); Eval(0312, o is ulong?[], false); Eval(0313, o is float, false); Eval(0314, o is float[], false); Eval(0315, o is float?, false); Eval(0316, o is float?[], false); Eval(0317, o is double, false); Eval(0318, o is double[], false); Eval(0319, o is double?, false); Eval(0320, o is double?[], false); Eval(0321, o is decimal, false); Eval(0322, o is decimal[], false); Eval(0323, o is decimal?, false); Eval(0324, o is decimal?[], false); Eval(0325, o is IntPtr, false); Eval(0326, o is IntPtr[], false); Eval(0327, o is IntPtr?, false); Eval(0328, o is IntPtr?[], false); Eval(0329, o is UIntPtr, false); Eval(0330, o is UIntPtr[], false); Eval(0331, o is UIntPtr?, false); Eval(0332, o is UIntPtr?[], false); Eval(0333, o is Guid, false); Eval(0334, o is Guid[], false); Eval(0335, o is Guid?, false); Eval(0336, o is Guid?[], false); Eval(0337, o is GCHandle, false); Eval(0338, o is GCHandle[], false); Eval(0339, o is GCHandle?, false); Eval(0340, o is GCHandle?[], false); Eval(0341, o is object, true); Eval(0342, o is object[], false); Eval(0343, o is string, false); Eval(0344, o is string[], false); Eval(0345, o is ValueType, true); Eval(0346, o is ValueType[], false); Eval(0347, o is Array, false); Eval(0348, o is Array[], false); Eval(0349, o is Enum, false); Eval(0350, o is Enum[], false); Eval(0351, o is Delegate, false); Eval(0352, o is Delegate[], false); Eval(0353, o is MulticastDelegate, false); Eval(0354, o is MulticastDelegate[], false); Eval(0355, o is IEmpty, false); Eval(0356, o is IEmpty[], false); Eval(0357, o is INotEmpty, false); Eval(0358, o is INotEmpty[], false); Eval(0359, o is IEmptyGen<int>, false); Eval(0360, o is IEmptyGen<int>[], false); Eval(0361, o is INotEmptyGen<int>, false); Eval(0362, o is INotEmptyGen<int>[], false); Eval(0363, o is SimpleDelegate, false); Eval(0364, o is SimpleDelegate[], false); Eval(0365, o is GenericDelegate<int>, false); Eval(0366, o is GenericDelegate<int>[], false); Eval(0367, o is EmptyClass, false); Eval(0368, o is EmptyClass[], false); Eval(0369, o is NotEmptyClass, false); Eval(0370, o is NotEmptyClass[], false); Eval(0371, o is EmptyClassGen<int>, false); Eval(0372, o is EmptyClassGen<int>[], false); Eval(0373, o is NotEmptyClassGen<Guid>, false); Eval(0374, o is NotEmptyClassGen<Guid>[], false); Eval(0375, o is NotEmptyClassConstrainedGen<object>, false); Eval(0376, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0377, o is NestedClass, false); Eval(0378, o is NestedClass[], false); Eval(0379, o is NestedClassGen<Decimal>, false); Eval(0380, o is NestedClassGen<Decimal>[], false); Eval(0381, o is ImplementOneInterfaceC, false); Eval(0382, o is ImplementOneInterfaceC[], false); Eval(0383, o is ImplementTwoInterfaceC, false); Eval(0384, o is ImplementTwoInterfaceC[], false); Eval(0385, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0386, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0387, o is ImplementTwoInterfaceGenC<int>, false); Eval(0388, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0389, o is ImplementAllInterfaceC<int>, false); Eval(0390, o is ImplementAllInterfaceC<int>[], false); Eval(0391, o is SealedClass, false); Eval(0392, o is SealedClass[], false); } { EmptyStruct? v = default(EmptyStruct?); ValueType o = v; Eval(0393, o is EmptyStruct, false); Eval(0394, o is EmptyStruct[], false); Eval(0395, o is EmptyStruct?, false); Eval(0396, o is EmptyStruct?[], false); Eval(0397, o is NotEmptyStruct, false); Eval(0398, o is NotEmptyStruct[], false); Eval(0399, o is NotEmptyStruct?, false); Eval(0400, o is NotEmptyStruct?[], false); Eval(0401, o is EmptyStructGen<int>, false); Eval(0402, o is EmptyStructGen<int>[], false); Eval(0403, o is EmptyStructGen<int>?, false); Eval(0404, o is EmptyStructGen<int>?[], false); Eval(0405, o is NotEmptyStructGen<Guid>, false); Eval(0406, o is NotEmptyStructGen<Guid>[], false); Eval(0407, o is NotEmptyStructGen<Guid>?, false); Eval(0408, o is NotEmptyStructGen<Guid>?[], false); Eval(0409, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0410, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0411, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0412, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0413, o is NestedStruct, false); Eval(0414, o is NestedStruct[], false); Eval(0415, o is NestedStruct?, false); Eval(0416, o is NestedStruct?[], false); Eval(0417, o is NestedStructGen<Decimal>, false); Eval(0418, o is NestedStructGen<Decimal>[], false); Eval(0419, o is NestedStructGen<Decimal>?, false); Eval(0420, o is NestedStructGen<Decimal>?[], false); Eval(0421, o is ExplicitFieldOffsetStruct, false); Eval(0422, o is ExplicitFieldOffsetStruct[], false); Eval(0423, o is ExplicitFieldOffsetStruct?, false); Eval(0424, o is ExplicitFieldOffsetStruct?[], false); Eval(0433, o is MarshalAsStruct, false); Eval(0434, o is MarshalAsStruct[], false); Eval(0435, o is MarshalAsStruct?, false); Eval(0436, o is MarshalAsStruct?[], false); Eval(0437, o is ImplementOneInterface, false); Eval(0438, o is ImplementOneInterface[], false); Eval(0439, o is ImplementOneInterface?, false); Eval(0440, o is ImplementOneInterface?[], false); Eval(0441, o is ImplementTwoInterface, false); Eval(0442, o is ImplementTwoInterface[], false); Eval(0443, o is ImplementTwoInterface?, false); Eval(0444, o is ImplementTwoInterface?[], false); Eval(0445, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0446, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0447, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0448, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0449, o is ImplementTwoInterfaceGen<int>, false); Eval(0450, o is ImplementTwoInterfaceGen<int>[], false); Eval(0451, o is ImplementTwoInterfaceGen<int>?, false); Eval(0452, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0453, o is ImplementAllInterface<int>, false); Eval(0454, o is ImplementAllInterface<int>[], false); Eval(0455, o is ImplementAllInterface<int>?, false); Eval(0456, o is ImplementAllInterface<int>?[], false); Eval(0457, o is IntE, false); Eval(0458, o is IntE[], false); Eval(0459, o is IntE?, false); Eval(0460, o is IntE?[], false); Eval(0461, o is ByteE, false); Eval(0462, o is ByteE[], false); Eval(0463, o is ByteE?, false); Eval(0464, o is ByteE?[], false); Eval(0465, o is LongE, false); Eval(0466, o is LongE[], false); Eval(0467, o is LongE?, false); Eval(0468, o is LongE?[], false); Eval(0469, o is char, false); Eval(0470, o is char[], false); Eval(0471, o is char?, false); Eval(0472, o is char?[], false); Eval(0473, o is bool, false); Eval(0474, o is bool[], false); Eval(0475, o is bool?, false); Eval(0476, o is bool?[], false); Eval(0477, o is byte, false); Eval(0478, o is byte[], false); Eval(0479, o is byte?, false); Eval(0480, o is byte?[], false); Eval(0481, o is sbyte, false); Eval(0482, o is sbyte[], false); Eval(0483, o is sbyte?, false); Eval(0484, o is sbyte?[], false); Eval(0485, o is short, false); Eval(0486, o is short[], false); Eval(0487, o is short?, false); Eval(0488, o is short?[], false); Eval(0489, o is ushort, false); Eval(0490, o is ushort[], false); Eval(0491, o is ushort?, false); Eval(0492, o is ushort?[], false); Eval(0493, o is int, false); Eval(0494, o is int[], false); Eval(0495, o is int?, false); Eval(0496, o is int?[], false); Eval(0497, o is uint, false); Eval(0498, o is uint[], false); Eval(0499, o is uint?, false); Eval(0500, o is uint?[], false); Eval(0501, o is long, false); Eval(0502, o is long[], false); Eval(0503, o is long?, false); Eval(0504, o is long?[], false); Eval(0505, o is ulong, false); Eval(0506, o is ulong[], false); Eval(0507, o is ulong?, false); Eval(0508, o is ulong?[], false); Eval(0509, o is float, false); Eval(0510, o is float[], false); Eval(0511, o is float?, false); Eval(0512, o is float?[], false); Eval(0513, o is double, false); Eval(0514, o is double[], false); Eval(0515, o is double?, false); Eval(0516, o is double?[], false); Eval(0517, o is decimal, false); Eval(0518, o is decimal[], false); Eval(0519, o is decimal?, false); Eval(0520, o is decimal?[], false); Eval(0521, o is IntPtr, false); Eval(0522, o is IntPtr[], false); Eval(0523, o is IntPtr?, false); Eval(0524, o is IntPtr?[], false); Eval(0525, o is UIntPtr, false); Eval(0526, o is UIntPtr[], false); Eval(0527, o is UIntPtr?, false); Eval(0528, o is UIntPtr?[], false); Eval(0529, o is Guid, false); Eval(0530, o is Guid[], false); Eval(0531, o is Guid?, false); Eval(0532, o is Guid?[], false); Eval(0533, o is GCHandle, false); Eval(0534, o is GCHandle[], false); Eval(0535, o is GCHandle?, false); Eval(0536, o is GCHandle?[], false); Eval(0537, o is object, false); Eval(0538, o is object[], false); Eval(0539, o is string, false); Eval(0540, o is string[], false); Eval(0541, o is ValueType, false); Eval(0542, o is ValueType[], false); Eval(0543, o is Array, false); Eval(0544, o is Array[], false); Eval(0545, o is Enum, false); Eval(0546, o is Enum[], false); Eval(0547, o is Delegate, false); Eval(0548, o is Delegate[], false); Eval(0549, o is MulticastDelegate, false); Eval(0550, o is MulticastDelegate[], false); Eval(0551, o is IEmpty, false); Eval(0552, o is IEmpty[], false); Eval(0553, o is INotEmpty, false); Eval(0554, o is INotEmpty[], false); Eval(0555, o is IEmptyGen<int>, false); Eval(0556, o is IEmptyGen<int>[], false); Eval(0557, o is INotEmptyGen<int>, false); Eval(0558, o is INotEmptyGen<int>[], false); Eval(0559, o is SimpleDelegate, false); Eval(0560, o is SimpleDelegate[], false); Eval(0561, o is GenericDelegate<int>, false); Eval(0562, o is GenericDelegate<int>[], false); Eval(0563, o is EmptyClass, false); Eval(0564, o is EmptyClass[], false); Eval(0565, o is NotEmptyClass, false); Eval(0566, o is NotEmptyClass[], false); Eval(0567, o is EmptyClassGen<int>, false); Eval(0568, o is EmptyClassGen<int>[], false); Eval(0569, o is NotEmptyClassGen<Guid>, false); Eval(0570, o is NotEmptyClassGen<Guid>[], false); Eval(0571, o is NotEmptyClassConstrainedGen<object>, false); Eval(0572, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0573, o is NestedClass, false); Eval(0574, o is NestedClass[], false); Eval(0575, o is NestedClassGen<Decimal>, false); Eval(0576, o is NestedClassGen<Decimal>[], false); Eval(0577, o is ImplementOneInterfaceC, false); Eval(0578, o is ImplementOneInterfaceC[], false); Eval(0579, o is ImplementTwoInterfaceC, false); Eval(0580, o is ImplementTwoInterfaceC[], false); Eval(0581, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0582, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0583, o is ImplementTwoInterfaceGenC<int>, false); Eval(0584, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0585, o is ImplementAllInterfaceC<int>, false); Eval(0586, o is ImplementAllInterfaceC<int>[], false); Eval(0587, o is SealedClass, false); Eval(0588, o is SealedClass[], false); } } // end of test case 0001 private static void TestCase0002() { { NotEmptyStruct v = default(NotEmptyStruct); ValueType o = v; Eval(0589, o is EmptyStruct, false); Eval(0590, o is EmptyStruct[], false); Eval(0591, o is EmptyStruct?, false); Eval(0592, o is EmptyStruct?[], false); Eval(0593, o is NotEmptyStruct, true); Eval(0594, o is NotEmptyStruct[], false); Eval(0595, o is NotEmptyStruct?, true); Eval(0596, o is NotEmptyStruct?[], false); Eval(0597, o is EmptyStructGen<int>, false); Eval(0598, o is EmptyStructGen<int>[], false); Eval(0599, o is EmptyStructGen<int>?, false); Eval(0600, o is EmptyStructGen<int>?[], false); Eval(0601, o is NotEmptyStructGen<Guid>, false); Eval(0602, o is NotEmptyStructGen<Guid>[], false); Eval(0603, o is NotEmptyStructGen<Guid>?, false); Eval(0604, o is NotEmptyStructGen<Guid>?[], false); Eval(0605, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0606, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0607, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0608, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0609, o is NestedStruct, false); Eval(0610, o is NestedStruct[], false); Eval(0611, o is NestedStruct?, false); Eval(0612, o is NestedStruct?[], false); Eval(0613, o is NestedStructGen<Decimal>, false); Eval(0614, o is NestedStructGen<Decimal>[], false); Eval(0615, o is NestedStructGen<Decimal>?, false); Eval(0616, o is NestedStructGen<Decimal>?[], false); Eval(0617, o is ExplicitFieldOffsetStruct, false); Eval(0618, o is ExplicitFieldOffsetStruct[], false); Eval(0619, o is ExplicitFieldOffsetStruct?, false); Eval(0620, o is ExplicitFieldOffsetStruct?[], false); Eval(0629, o is MarshalAsStruct, false); Eval(0630, o is MarshalAsStruct[], false); Eval(0631, o is MarshalAsStruct?, false); Eval(0632, o is MarshalAsStruct?[], false); Eval(0633, o is ImplementOneInterface, false); Eval(0634, o is ImplementOneInterface[], false); Eval(0635, o is ImplementOneInterface?, false); Eval(0636, o is ImplementOneInterface?[], false); Eval(0637, o is ImplementTwoInterface, false); Eval(0638, o is ImplementTwoInterface[], false); Eval(0639, o is ImplementTwoInterface?, false); Eval(0640, o is ImplementTwoInterface?[], false); Eval(0641, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0642, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0643, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0644, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0645, o is ImplementTwoInterfaceGen<int>, false); Eval(0646, o is ImplementTwoInterfaceGen<int>[], false); Eval(0647, o is ImplementTwoInterfaceGen<int>?, false); Eval(0648, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0649, o is ImplementAllInterface<int>, false); Eval(0650, o is ImplementAllInterface<int>[], false); Eval(0651, o is ImplementAllInterface<int>?, false); Eval(0652, o is ImplementAllInterface<int>?[], false); Eval(0653, o is IntE, false); Eval(0654, o is IntE[], false); Eval(0655, o is IntE?, false); Eval(0656, o is IntE?[], false); Eval(0657, o is ByteE, false); Eval(0658, o is ByteE[], false); Eval(0659, o is ByteE?, false); Eval(0660, o is ByteE?[], false); Eval(0661, o is LongE, false); Eval(0662, o is LongE[], false); Eval(0663, o is LongE?, false); Eval(0664, o is LongE?[], false); Eval(0665, o is char, false); Eval(0666, o is char[], false); Eval(0667, o is char?, false); Eval(0668, o is char?[], false); Eval(0669, o is bool, false); Eval(0670, o is bool[], false); Eval(0671, o is bool?, false); Eval(0672, o is bool?[], false); Eval(0673, o is byte, false); Eval(0674, o is byte[], false); Eval(0675, o is byte?, false); Eval(0676, o is byte?[], false); Eval(0677, o is sbyte, false); Eval(0678, o is sbyte[], false); Eval(0679, o is sbyte?, false); Eval(0680, o is sbyte?[], false); Eval(0681, o is short, false); Eval(0682, o is short[], false); Eval(0683, o is short?, false); Eval(0684, o is short?[], false); Eval(0685, o is ushort, false); Eval(0686, o is ushort[], false); Eval(0687, o is ushort?, false); Eval(0688, o is ushort?[], false); Eval(0689, o is int, false); Eval(0690, o is int[], false); Eval(0691, o is int?, false); Eval(0692, o is int?[], false); Eval(0693, o is uint, false); Eval(0694, o is uint[], false); Eval(0695, o is uint?, false); Eval(0696, o is uint?[], false); Eval(0697, o is long, false); Eval(0698, o is long[], false); Eval(0699, o is long?, false); Eval(0700, o is long?[], false); Eval(0701, o is ulong, false); Eval(0702, o is ulong[], false); Eval(0703, o is ulong?, false); Eval(0704, o is ulong?[], false); Eval(0705, o is float, false); Eval(0706, o is float[], false); Eval(0707, o is float?, false); Eval(0708, o is float?[], false); Eval(0709, o is double, false); Eval(0710, o is double[], false); Eval(0711, o is double?, false); Eval(0712, o is double?[], false); Eval(0713, o is decimal, false); Eval(0714, o is decimal[], false); Eval(0715, o is decimal?, false); Eval(0716, o is decimal?[], false); Eval(0717, o is IntPtr, false); Eval(0718, o is IntPtr[], false); Eval(0719, o is IntPtr?, false); Eval(0720, o is IntPtr?[], false); Eval(0721, o is UIntPtr, false); Eval(0722, o is UIntPtr[], false); Eval(0723, o is UIntPtr?, false); Eval(0724, o is UIntPtr?[], false); Eval(0725, o is Guid, false); Eval(0726, o is Guid[], false); Eval(0727, o is Guid?, false); Eval(0728, o is Guid?[], false); Eval(0729, o is GCHandle, false); Eval(0730, o is GCHandle[], false); Eval(0731, o is GCHandle?, false); Eval(0732, o is GCHandle?[], false); Eval(0733, o is object, true); Eval(0734, o is object[], false); Eval(0735, o is string, false); Eval(0736, o is string[], false); Eval(0737, o is ValueType, true); Eval(0738, o is ValueType[], false); Eval(0739, o is Array, false); Eval(0740, o is Array[], false); Eval(0741, o is Enum, false); Eval(0742, o is Enum[], false); Eval(0743, o is Delegate, false); Eval(0744, o is Delegate[], false); Eval(0745, o is MulticastDelegate, false); Eval(0746, o is MulticastDelegate[], false); Eval(0747, o is IEmpty, false); Eval(0748, o is IEmpty[], false); Eval(0749, o is INotEmpty, false); Eval(0750, o is INotEmpty[], false); Eval(0751, o is IEmptyGen<int>, false); Eval(0752, o is IEmptyGen<int>[], false); Eval(0753, o is INotEmptyGen<int>, false); Eval(0754, o is INotEmptyGen<int>[], false); Eval(0755, o is SimpleDelegate, false); Eval(0756, o is SimpleDelegate[], false); Eval(0757, o is GenericDelegate<int>, false); Eval(0758, o is GenericDelegate<int>[], false); Eval(0759, o is EmptyClass, false); Eval(0760, o is EmptyClass[], false); Eval(0761, o is NotEmptyClass, false); Eval(0762, o is NotEmptyClass[], false); Eval(0763, o is EmptyClassGen<int>, false); Eval(0764, o is EmptyClassGen<int>[], false); Eval(0765, o is NotEmptyClassGen<Guid>, false); Eval(0766, o is NotEmptyClassGen<Guid>[], false); Eval(0767, o is NotEmptyClassConstrainedGen<object>, false); Eval(0768, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0769, o is NestedClass, false); Eval(0770, o is NestedClass[], false); Eval(0771, o is NestedClassGen<Decimal>, false); Eval(0772, o is NestedClassGen<Decimal>[], false); Eval(0773, o is ImplementOneInterfaceC, false); Eval(0774, o is ImplementOneInterfaceC[], false); Eval(0775, o is ImplementTwoInterfaceC, false); Eval(0776, o is ImplementTwoInterfaceC[], false); Eval(0777, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0778, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0779, o is ImplementTwoInterfaceGenC<int>, false); Eval(0780, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0781, o is ImplementAllInterfaceC<int>, false); Eval(0782, o is ImplementAllInterfaceC<int>[], false); Eval(0783, o is SealedClass, false); Eval(0784, o is SealedClass[], false); } { NotEmptyStruct? v = default(NotEmptyStruct); ValueType o = v; Eval(0785, o is EmptyStruct, false); Eval(0786, o is EmptyStruct[], false); Eval(0787, o is EmptyStruct?, false); Eval(0788, o is EmptyStruct?[], false); Eval(0789, o is NotEmptyStruct, true); Eval(0790, o is NotEmptyStruct[], false); Eval(0791, o is NotEmptyStruct?, true); Eval(0792, o is NotEmptyStruct?[], false); Eval(0793, o is EmptyStructGen<int>, false); Eval(0794, o is EmptyStructGen<int>[], false); Eval(0795, o is EmptyStructGen<int>?, false); Eval(0796, o is EmptyStructGen<int>?[], false); Eval(0797, o is NotEmptyStructGen<Guid>, false); Eval(0798, o is NotEmptyStructGen<Guid>[], false); Eval(0799, o is NotEmptyStructGen<Guid>?, false); Eval(0800, o is NotEmptyStructGen<Guid>?[], false); Eval(0801, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0802, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0803, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(0804, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(0805, o is NestedStruct, false); Eval(0806, o is NestedStruct[], false); Eval(0807, o is NestedStruct?, false); Eval(0808, o is NestedStruct?[], false); Eval(0809, o is NestedStructGen<Decimal>, false); Eval(0810, o is NestedStructGen<Decimal>[], false); Eval(0811, o is NestedStructGen<Decimal>?, false); Eval(0812, o is NestedStructGen<Decimal>?[], false); Eval(0813, o is ExplicitFieldOffsetStruct, false); Eval(0814, o is ExplicitFieldOffsetStruct[], false); Eval(0815, o is ExplicitFieldOffsetStruct?, false); Eval(0816, o is ExplicitFieldOffsetStruct?[], false); Eval(0825, o is MarshalAsStruct, false); Eval(0826, o is MarshalAsStruct[], false); Eval(0827, o is MarshalAsStruct?, false); Eval(0828, o is MarshalAsStruct?[], false); Eval(0829, o is ImplementOneInterface, false); Eval(0830, o is ImplementOneInterface[], false); Eval(0831, o is ImplementOneInterface?, false); Eval(0832, o is ImplementOneInterface?[], false); Eval(0833, o is ImplementTwoInterface, false); Eval(0834, o is ImplementTwoInterface[], false); Eval(0835, o is ImplementTwoInterface?, false); Eval(0836, o is ImplementTwoInterface?[], false); Eval(0837, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(0838, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(0839, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(0840, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(0841, o is ImplementTwoInterfaceGen<int>, false); Eval(0842, o is ImplementTwoInterfaceGen<int>[], false); Eval(0843, o is ImplementTwoInterfaceGen<int>?, false); Eval(0844, o is ImplementTwoInterfaceGen<int>?[], false); Eval(0845, o is ImplementAllInterface<int>, false); Eval(0846, o is ImplementAllInterface<int>[], false); Eval(0847, o is ImplementAllInterface<int>?, false); Eval(0848, o is ImplementAllInterface<int>?[], false); Eval(0849, o is IntE, false); Eval(0850, o is IntE[], false); Eval(0851, o is IntE?, false); Eval(0852, o is IntE?[], false); Eval(0853, o is ByteE, false); Eval(0854, o is ByteE[], false); Eval(0855, o is ByteE?, false); Eval(0856, o is ByteE?[], false); Eval(0857, o is LongE, false); Eval(0858, o is LongE[], false); Eval(0859, o is LongE?, false); Eval(0860, o is LongE?[], false); Eval(0861, o is char, false); Eval(0862, o is char[], false); Eval(0863, o is char?, false); Eval(0864, o is char?[], false); Eval(0865, o is bool, false); Eval(0866, o is bool[], false); Eval(0867, o is bool?, false); Eval(0868, o is bool?[], false); Eval(0869, o is byte, false); Eval(0870, o is byte[], false); Eval(0871, o is byte?, false); Eval(0872, o is byte?[], false); Eval(0873, o is sbyte, false); Eval(0874, o is sbyte[], false); Eval(0875, o is sbyte?, false); Eval(0876, o is sbyte?[], false); Eval(0877, o is short, false); Eval(0878, o is short[], false); Eval(0879, o is short?, false); Eval(0880, o is short?[], false); Eval(0881, o is ushort, false); Eval(0882, o is ushort[], false); Eval(0883, o is ushort?, false); Eval(0884, o is ushort?[], false); Eval(0885, o is int, false); Eval(0886, o is int[], false); Eval(0887, o is int?, false); Eval(0888, o is int?[], false); Eval(0889, o is uint, false); Eval(0890, o is uint[], false); Eval(0891, o is uint?, false); Eval(0892, o is uint?[], false); Eval(0893, o is long, false); Eval(0894, o is long[], false); Eval(0895, o is long?, false); Eval(0896, o is long?[], false); Eval(0897, o is ulong, false); Eval(0898, o is ulong[], false); Eval(0899, o is ulong?, false); Eval(0900, o is ulong?[], false); Eval(0901, o is float, false); Eval(0902, o is float[], false); Eval(0903, o is float?, false); Eval(0904, o is float?[], false); Eval(0905, o is double, false); Eval(0906, o is double[], false); Eval(0907, o is double?, false); Eval(0908, o is double?[], false); Eval(0909, o is decimal, false); Eval(0910, o is decimal[], false); Eval(0911, o is decimal?, false); Eval(0912, o is decimal?[], false); Eval(0913, o is IntPtr, false); Eval(0914, o is IntPtr[], false); Eval(0915, o is IntPtr?, false); Eval(0916, o is IntPtr?[], false); Eval(0917, o is UIntPtr, false); Eval(0918, o is UIntPtr[], false); Eval(0919, o is UIntPtr?, false); Eval(0920, o is UIntPtr?[], false); Eval(0921, o is Guid, false); Eval(0922, o is Guid[], false); Eval(0923, o is Guid?, false); Eval(0924, o is Guid?[], false); Eval(0925, o is GCHandle, false); Eval(0926, o is GCHandle[], false); Eval(0927, o is GCHandle?, false); Eval(0928, o is GCHandle?[], false); Eval(0929, o is object, true); Eval(0930, o is object[], false); Eval(0931, o is string, false); Eval(0932, o is string[], false); Eval(0933, o is ValueType, true); Eval(0934, o is ValueType[], false); Eval(0935, o is Array, false); Eval(0936, o is Array[], false); Eval(0937, o is Enum, false); Eval(0938, o is Enum[], false); Eval(0939, o is Delegate, false); Eval(0940, o is Delegate[], false); Eval(0941, o is MulticastDelegate, false); Eval(0942, o is MulticastDelegate[], false); Eval(0943, o is IEmpty, false); Eval(0944, o is IEmpty[], false); Eval(0945, o is INotEmpty, false); Eval(0946, o is INotEmpty[], false); Eval(0947, o is IEmptyGen<int>, false); Eval(0948, o is IEmptyGen<int>[], false); Eval(0949, o is INotEmptyGen<int>, false); Eval(0950, o is INotEmptyGen<int>[], false); Eval(0951, o is SimpleDelegate, false); Eval(0952, o is SimpleDelegate[], false); Eval(0953, o is GenericDelegate<int>, false); Eval(0954, o is GenericDelegate<int>[], false); Eval(0955, o is EmptyClass, false); Eval(0956, o is EmptyClass[], false); Eval(0957, o is NotEmptyClass, false); Eval(0958, o is NotEmptyClass[], false); Eval(0959, o is EmptyClassGen<int>, false); Eval(0960, o is EmptyClassGen<int>[], false); Eval(0961, o is NotEmptyClassGen<Guid>, false); Eval(0962, o is NotEmptyClassGen<Guid>[], false); Eval(0963, o is NotEmptyClassConstrainedGen<object>, false); Eval(0964, o is NotEmptyClassConstrainedGen<object>[], false); Eval(0965, o is NestedClass, false); Eval(0966, o is NestedClass[], false); Eval(0967, o is NestedClassGen<Decimal>, false); Eval(0968, o is NestedClassGen<Decimal>[], false); Eval(0969, o is ImplementOneInterfaceC, false); Eval(0970, o is ImplementOneInterfaceC[], false); Eval(0971, o is ImplementTwoInterfaceC, false); Eval(0972, o is ImplementTwoInterfaceC[], false); Eval(0973, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(0974, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(0975, o is ImplementTwoInterfaceGenC<int>, false); Eval(0976, o is ImplementTwoInterfaceGenC<int>[], false); Eval(0977, o is ImplementAllInterfaceC<int>, false); Eval(0978, o is ImplementAllInterfaceC<int>[], false); Eval(0979, o is SealedClass, false); Eval(0980, o is SealedClass[], false); } { NotEmptyStruct? v = default(NotEmptyStruct?); ValueType o = v; Eval(0981, o is EmptyStruct, false); Eval(0982, o is EmptyStruct[], false); Eval(0983, o is EmptyStruct?, false); Eval(0984, o is EmptyStruct?[], false); Eval(0985, o is NotEmptyStruct, false); Eval(0986, o is NotEmptyStruct[], false); Eval(0987, o is NotEmptyStruct?, false); Eval(0988, o is NotEmptyStruct?[], false); Eval(0989, o is EmptyStructGen<int>, false); Eval(0990, o is EmptyStructGen<int>[], false); Eval(0991, o is EmptyStructGen<int>?, false); Eval(0992, o is EmptyStructGen<int>?[], false); Eval(0993, o is NotEmptyStructGen<Guid>, false); Eval(0994, o is NotEmptyStructGen<Guid>[], false); Eval(0995, o is NotEmptyStructGen<Guid>?, false); Eval(0996, o is NotEmptyStructGen<Guid>?[], false); Eval(0997, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(0998, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(0999, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1000, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1001, o is NestedStruct, false); Eval(1002, o is NestedStruct[], false); Eval(1003, o is NestedStruct?, false); Eval(1004, o is NestedStruct?[], false); Eval(1005, o is NestedStructGen<Decimal>, false); Eval(1006, o is NestedStructGen<Decimal>[], false); Eval(1007, o is NestedStructGen<Decimal>?, false); Eval(1008, o is NestedStructGen<Decimal>?[], false); Eval(1009, o is ExplicitFieldOffsetStruct, false); Eval(1010, o is ExplicitFieldOffsetStruct[], false); Eval(1011, o is ExplicitFieldOffsetStruct?, false); Eval(1012, o is ExplicitFieldOffsetStruct?[], false); Eval(1021, o is MarshalAsStruct, false); Eval(1022, o is MarshalAsStruct[], false); Eval(1023, o is MarshalAsStruct?, false); Eval(1024, o is MarshalAsStruct?[], false); Eval(1025, o is ImplementOneInterface, false); Eval(1026, o is ImplementOneInterface[], false); Eval(1027, o is ImplementOneInterface?, false); Eval(1028, o is ImplementOneInterface?[], false); Eval(1029, o is ImplementTwoInterface, false); Eval(1030, o is ImplementTwoInterface[], false); Eval(1031, o is ImplementTwoInterface?, false); Eval(1032, o is ImplementTwoInterface?[], false); Eval(1033, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1034, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1035, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1036, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1037, o is ImplementTwoInterfaceGen<int>, false); Eval(1038, o is ImplementTwoInterfaceGen<int>[], false); Eval(1039, o is ImplementTwoInterfaceGen<int>?, false); Eval(1040, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1041, o is ImplementAllInterface<int>, false); Eval(1042, o is ImplementAllInterface<int>[], false); Eval(1043, o is ImplementAllInterface<int>?, false); Eval(1044, o is ImplementAllInterface<int>?[], false); Eval(1045, o is IntE, false); Eval(1046, o is IntE[], false); Eval(1047, o is IntE?, false); Eval(1048, o is IntE?[], false); Eval(1049, o is ByteE, false); Eval(1050, o is ByteE[], false); Eval(1051, o is ByteE?, false); Eval(1052, o is ByteE?[], false); Eval(1053, o is LongE, false); Eval(1054, o is LongE[], false); Eval(1055, o is LongE?, false); Eval(1056, o is LongE?[], false); Eval(1057, o is char, false); Eval(1058, o is char[], false); Eval(1059, o is char?, false); Eval(1060, o is char?[], false); Eval(1061, o is bool, false); Eval(1062, o is bool[], false); Eval(1063, o is bool?, false); Eval(1064, o is bool?[], false); Eval(1065, o is byte, false); Eval(1066, o is byte[], false); Eval(1067, o is byte?, false); Eval(1068, o is byte?[], false); Eval(1069, o is sbyte, false); Eval(1070, o is sbyte[], false); Eval(1071, o is sbyte?, false); Eval(1072, o is sbyte?[], false); Eval(1073, o is short, false); Eval(1074, o is short[], false); Eval(1075, o is short?, false); Eval(1076, o is short?[], false); Eval(1077, o is ushort, false); Eval(1078, o is ushort[], false); Eval(1079, o is ushort?, false); Eval(1080, o is ushort?[], false); Eval(1081, o is int, false); Eval(1082, o is int[], false); Eval(1083, o is int?, false); Eval(1084, o is int?[], false); Eval(1085, o is uint, false); Eval(1086, o is uint[], false); Eval(1087, o is uint?, false); Eval(1088, o is uint?[], false); Eval(1089, o is long, false); Eval(1090, o is long[], false); Eval(1091, o is long?, false); Eval(1092, o is long?[], false); Eval(1093, o is ulong, false); Eval(1094, o is ulong[], false); Eval(1095, o is ulong?, false); Eval(1096, o is ulong?[], false); Eval(1097, o is float, false); Eval(1098, o is float[], false); Eval(1099, o is float?, false); Eval(1100, o is float?[], false); Eval(1101, o is double, false); Eval(1102, o is double[], false); Eval(1103, o is double?, false); Eval(1104, o is double?[], false); Eval(1105, o is decimal, false); Eval(1106, o is decimal[], false); Eval(1107, o is decimal?, false); Eval(1108, o is decimal?[], false); Eval(1109, o is IntPtr, false); Eval(1110, o is IntPtr[], false); Eval(1111, o is IntPtr?, false); Eval(1112, o is IntPtr?[], false); Eval(1113, o is UIntPtr, false); Eval(1114, o is UIntPtr[], false); Eval(1115, o is UIntPtr?, false); Eval(1116, o is UIntPtr?[], false); Eval(1117, o is Guid, false); Eval(1118, o is Guid[], false); Eval(1119, o is Guid?, false); Eval(1120, o is Guid?[], false); Eval(1121, o is GCHandle, false); Eval(1122, o is GCHandle[], false); Eval(1123, o is GCHandle?, false); Eval(1124, o is GCHandle?[], false); Eval(1125, o is object, false); Eval(1126, o is object[], false); Eval(1127, o is string, false); Eval(1128, o is string[], false); Eval(1129, o is ValueType, false); Eval(1130, o is ValueType[], false); Eval(1131, o is Array, false); Eval(1132, o is Array[], false); Eval(1133, o is Enum, false); Eval(1134, o is Enum[], false); Eval(1135, o is Delegate, false); Eval(1136, o is Delegate[], false); Eval(1137, o is MulticastDelegate, false); Eval(1138, o is MulticastDelegate[], false); Eval(1139, o is IEmpty, false); Eval(1140, o is IEmpty[], false); Eval(1141, o is INotEmpty, false); Eval(1142, o is INotEmpty[], false); Eval(1143, o is IEmptyGen<int>, false); Eval(1144, o is IEmptyGen<int>[], false); Eval(1145, o is INotEmptyGen<int>, false); Eval(1146, o is INotEmptyGen<int>[], false); Eval(1147, o is SimpleDelegate, false); Eval(1148, o is SimpleDelegate[], false); Eval(1149, o is GenericDelegate<int>, false); Eval(1150, o is GenericDelegate<int>[], false); Eval(1151, o is EmptyClass, false); Eval(1152, o is EmptyClass[], false); Eval(1153, o is NotEmptyClass, false); Eval(1154, o is NotEmptyClass[], false); Eval(1155, o is EmptyClassGen<int>, false); Eval(1156, o is EmptyClassGen<int>[], false); Eval(1157, o is NotEmptyClassGen<Guid>, false); Eval(1158, o is NotEmptyClassGen<Guid>[], false); Eval(1159, o is NotEmptyClassConstrainedGen<object>, false); Eval(1160, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1161, o is NestedClass, false); Eval(1162, o is NestedClass[], false); Eval(1163, o is NestedClassGen<Decimal>, false); Eval(1164, o is NestedClassGen<Decimal>[], false); Eval(1165, o is ImplementOneInterfaceC, false); Eval(1166, o is ImplementOneInterfaceC[], false); Eval(1167, o is ImplementTwoInterfaceC, false); Eval(1168, o is ImplementTwoInterfaceC[], false); Eval(1169, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1170, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1171, o is ImplementTwoInterfaceGenC<int>, false); Eval(1172, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1173, o is ImplementAllInterfaceC<int>, false); Eval(1174, o is ImplementAllInterfaceC<int>[], false); Eval(1175, o is SealedClass, false); Eval(1176, o is SealedClass[], false); } } // end of test case 0002 private static void TestCase0003() { { EmptyStructGen<int> v = default(EmptyStructGen<int>); ValueType o = v; Eval(1177, o is EmptyStruct, false); Eval(1178, o is EmptyStruct[], false); Eval(1179, o is EmptyStruct?, false); Eval(1180, o is EmptyStruct?[], false); Eval(1181, o is NotEmptyStruct, false); Eval(1182, o is NotEmptyStruct[], false); Eval(1183, o is NotEmptyStruct?, false); Eval(1184, o is NotEmptyStruct?[], false); Eval(1185, o is EmptyStructGen<int>, true); Eval(1186, o is EmptyStructGen<int>[], false); Eval(1187, o is EmptyStructGen<int>?, true); Eval(1188, o is EmptyStructGen<int>?[], false); Eval(1189, o is NotEmptyStructGen<Guid>, false); Eval(1190, o is NotEmptyStructGen<Guid>[], false); Eval(1191, o is NotEmptyStructGen<Guid>?, false); Eval(1192, o is NotEmptyStructGen<Guid>?[], false); Eval(1193, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1194, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1195, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1196, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1197, o is NestedStruct, false); Eval(1198, o is NestedStruct[], false); Eval(1199, o is NestedStruct?, false); Eval(1200, o is NestedStruct?[], false); Eval(1201, o is NestedStructGen<Decimal>, false); Eval(1202, o is NestedStructGen<Decimal>[], false); Eval(1203, o is NestedStructGen<Decimal>?, false); Eval(1204, o is NestedStructGen<Decimal>?[], false); Eval(1205, o is ExplicitFieldOffsetStruct, false); Eval(1206, o is ExplicitFieldOffsetStruct[], false); Eval(1207, o is ExplicitFieldOffsetStruct?, false); Eval(1208, o is ExplicitFieldOffsetStruct?[], false); Eval(1217, o is MarshalAsStruct, false); Eval(1218, o is MarshalAsStruct[], false); Eval(1219, o is MarshalAsStruct?, false); Eval(1220, o is MarshalAsStruct?[], false); Eval(1221, o is ImplementOneInterface, false); Eval(1222, o is ImplementOneInterface[], false); Eval(1223, o is ImplementOneInterface?, false); Eval(1224, o is ImplementOneInterface?[], false); Eval(1225, o is ImplementTwoInterface, false); Eval(1226, o is ImplementTwoInterface[], false); Eval(1227, o is ImplementTwoInterface?, false); Eval(1228, o is ImplementTwoInterface?[], false); Eval(1229, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1230, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1231, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1232, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1233, o is ImplementTwoInterfaceGen<int>, false); Eval(1234, o is ImplementTwoInterfaceGen<int>[], false); Eval(1235, o is ImplementTwoInterfaceGen<int>?, false); Eval(1236, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1237, o is ImplementAllInterface<int>, false); Eval(1238, o is ImplementAllInterface<int>[], false); Eval(1239, o is ImplementAllInterface<int>?, false); Eval(1240, o is ImplementAllInterface<int>?[], false); Eval(1241, o is IntE, false); Eval(1242, o is IntE[], false); Eval(1243, o is IntE?, false); Eval(1244, o is IntE?[], false); Eval(1245, o is ByteE, false); Eval(1246, o is ByteE[], false); Eval(1247, o is ByteE?, false); Eval(1248, o is ByteE?[], false); Eval(1249, o is LongE, false); Eval(1250, o is LongE[], false); Eval(1251, o is LongE?, false); Eval(1252, o is LongE?[], false); Eval(1253, o is char, false); Eval(1254, o is char[], false); Eval(1255, o is char?, false); Eval(1256, o is char?[], false); Eval(1257, o is bool, false); Eval(1258, o is bool[], false); Eval(1259, o is bool?, false); Eval(1260, o is bool?[], false); Eval(1261, o is byte, false); Eval(1262, o is byte[], false); Eval(1263, o is byte?, false); Eval(1264, o is byte?[], false); Eval(1265, o is sbyte, false); Eval(1266, o is sbyte[], false); Eval(1267, o is sbyte?, false); Eval(1268, o is sbyte?[], false); Eval(1269, o is short, false); Eval(1270, o is short[], false); Eval(1271, o is short?, false); Eval(1272, o is short?[], false); Eval(1273, o is ushort, false); Eval(1274, o is ushort[], false); Eval(1275, o is ushort?, false); Eval(1276, o is ushort?[], false); Eval(1277, o is int, false); Eval(1278, o is int[], false); Eval(1279, o is int?, false); Eval(1280, o is int?[], false); Eval(1281, o is uint, false); Eval(1282, o is uint[], false); Eval(1283, o is uint?, false); Eval(1284, o is uint?[], false); Eval(1285, o is long, false); Eval(1286, o is long[], false); Eval(1287, o is long?, false); Eval(1288, o is long?[], false); Eval(1289, o is ulong, false); Eval(1290, o is ulong[], false); Eval(1291, o is ulong?, false); Eval(1292, o is ulong?[], false); Eval(1293, o is float, false); Eval(1294, o is float[], false); Eval(1295, o is float?, false); Eval(1296, o is float?[], false); Eval(1297, o is double, false); Eval(1298, o is double[], false); Eval(1299, o is double?, false); Eval(1300, o is double?[], false); Eval(1301, o is decimal, false); Eval(1302, o is decimal[], false); Eval(1303, o is decimal?, false); Eval(1304, o is decimal?[], false); Eval(1305, o is IntPtr, false); Eval(1306, o is IntPtr[], false); Eval(1307, o is IntPtr?, false); Eval(1308, o is IntPtr?[], false); Eval(1309, o is UIntPtr, false); Eval(1310, o is UIntPtr[], false); Eval(1311, o is UIntPtr?, false); Eval(1312, o is UIntPtr?[], false); Eval(1313, o is Guid, false); Eval(1314, o is Guid[], false); Eval(1315, o is Guid?, false); Eval(1316, o is Guid?[], false); Eval(1317, o is GCHandle, false); Eval(1318, o is GCHandle[], false); Eval(1319, o is GCHandle?, false); Eval(1320, o is GCHandle?[], false); Eval(1321, o is object, true); Eval(1322, o is object[], false); Eval(1323, o is string, false); Eval(1324, o is string[], false); Eval(1325, o is ValueType, true); Eval(1326, o is ValueType[], false); Eval(1327, o is Array, false); Eval(1328, o is Array[], false); Eval(1329, o is Enum, false); Eval(1330, o is Enum[], false); Eval(1331, o is Delegate, false); Eval(1332, o is Delegate[], false); Eval(1333, o is MulticastDelegate, false); Eval(1334, o is MulticastDelegate[], false); Eval(1335, o is IEmpty, false); Eval(1336, o is IEmpty[], false); Eval(1337, o is INotEmpty, false); Eval(1338, o is INotEmpty[], false); Eval(1339, o is IEmptyGen<int>, false); Eval(1340, o is IEmptyGen<int>[], false); Eval(1341, o is INotEmptyGen<int>, false); Eval(1342, o is INotEmptyGen<int>[], false); Eval(1343, o is SimpleDelegate, false); Eval(1344, o is SimpleDelegate[], false); Eval(1345, o is GenericDelegate<int>, false); Eval(1346, o is GenericDelegate<int>[], false); Eval(1347, o is EmptyClass, false); Eval(1348, o is EmptyClass[], false); Eval(1349, o is NotEmptyClass, false); Eval(1350, o is NotEmptyClass[], false); Eval(1351, o is EmptyClassGen<int>, false); Eval(1352, o is EmptyClassGen<int>[], false); Eval(1353, o is NotEmptyClassGen<Guid>, false); Eval(1354, o is NotEmptyClassGen<Guid>[], false); Eval(1355, o is NotEmptyClassConstrainedGen<object>, false); Eval(1356, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1357, o is NestedClass, false); Eval(1358, o is NestedClass[], false); Eval(1359, o is NestedClassGen<Decimal>, false); Eval(1360, o is NestedClassGen<Decimal>[], false); Eval(1361, o is ImplementOneInterfaceC, false); Eval(1362, o is ImplementOneInterfaceC[], false); Eval(1363, o is ImplementTwoInterfaceC, false); Eval(1364, o is ImplementTwoInterfaceC[], false); Eval(1365, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1366, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1367, o is ImplementTwoInterfaceGenC<int>, false); Eval(1368, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1369, o is ImplementAllInterfaceC<int>, false); Eval(1370, o is ImplementAllInterfaceC<int>[], false); Eval(1371, o is SealedClass, false); Eval(1372, o is SealedClass[], false); } { EmptyStructGen<int>? v = default(EmptyStructGen<int>); ValueType o = v; Eval(1373, o is EmptyStruct, false); Eval(1374, o is EmptyStruct[], false); Eval(1375, o is EmptyStruct?, false); Eval(1376, o is EmptyStruct?[], false); Eval(1377, o is NotEmptyStruct, false); Eval(1378, o is NotEmptyStruct[], false); Eval(1379, o is NotEmptyStruct?, false); Eval(1380, o is NotEmptyStruct?[], false); Eval(1381, o is EmptyStructGen<int>, true); Eval(1382, o is EmptyStructGen<int>[], false); Eval(1383, o is EmptyStructGen<int>?, true); Eval(1384, o is EmptyStructGen<int>?[], false); Eval(1385, o is NotEmptyStructGen<Guid>, false); Eval(1386, o is NotEmptyStructGen<Guid>[], false); Eval(1387, o is NotEmptyStructGen<Guid>?, false); Eval(1388, o is NotEmptyStructGen<Guid>?[], false); Eval(1389, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1390, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1391, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1392, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1393, o is NestedStruct, false); Eval(1394, o is NestedStruct[], false); Eval(1395, o is NestedStruct?, false); Eval(1396, o is NestedStruct?[], false); Eval(1397, o is NestedStructGen<Decimal>, false); Eval(1398, o is NestedStructGen<Decimal>[], false); Eval(1399, o is NestedStructGen<Decimal>?, false); Eval(1400, o is NestedStructGen<Decimal>?[], false); Eval(1401, o is ExplicitFieldOffsetStruct, false); Eval(1402, o is ExplicitFieldOffsetStruct[], false); Eval(1403, o is ExplicitFieldOffsetStruct?, false); Eval(1404, o is ExplicitFieldOffsetStruct?[], false); Eval(1413, o is MarshalAsStruct, false); Eval(1414, o is MarshalAsStruct[], false); Eval(1415, o is MarshalAsStruct?, false); Eval(1416, o is MarshalAsStruct?[], false); Eval(1417, o is ImplementOneInterface, false); Eval(1418, o is ImplementOneInterface[], false); Eval(1419, o is ImplementOneInterface?, false); Eval(1420, o is ImplementOneInterface?[], false); Eval(1421, o is ImplementTwoInterface, false); Eval(1422, o is ImplementTwoInterface[], false); Eval(1423, o is ImplementTwoInterface?, false); Eval(1424, o is ImplementTwoInterface?[], false); Eval(1425, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1426, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1427, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1428, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1429, o is ImplementTwoInterfaceGen<int>, false); Eval(1430, o is ImplementTwoInterfaceGen<int>[], false); Eval(1431, o is ImplementTwoInterfaceGen<int>?, false); Eval(1432, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1433, o is ImplementAllInterface<int>, false); Eval(1434, o is ImplementAllInterface<int>[], false); Eval(1435, o is ImplementAllInterface<int>?, false); Eval(1436, o is ImplementAllInterface<int>?[], false); Eval(1437, o is IntE, false); Eval(1438, o is IntE[], false); Eval(1439, o is IntE?, false); Eval(1440, o is IntE?[], false); Eval(1441, o is ByteE, false); Eval(1442, o is ByteE[], false); Eval(1443, o is ByteE?, false); Eval(1444, o is ByteE?[], false); Eval(1445, o is LongE, false); Eval(1446, o is LongE[], false); Eval(1447, o is LongE?, false); Eval(1448, o is LongE?[], false); Eval(1449, o is char, false); Eval(1450, o is char[], false); Eval(1451, o is char?, false); Eval(1452, o is char?[], false); Eval(1453, o is bool, false); Eval(1454, o is bool[], false); Eval(1455, o is bool?, false); Eval(1456, o is bool?[], false); Eval(1457, o is byte, false); Eval(1458, o is byte[], false); Eval(1459, o is byte?, false); Eval(1460, o is byte?[], false); Eval(1461, o is sbyte, false); Eval(1462, o is sbyte[], false); Eval(1463, o is sbyte?, false); Eval(1464, o is sbyte?[], false); Eval(1465, o is short, false); Eval(1466, o is short[], false); Eval(1467, o is short?, false); Eval(1468, o is short?[], false); Eval(1469, o is ushort, false); Eval(1470, o is ushort[], false); Eval(1471, o is ushort?, false); Eval(1472, o is ushort?[], false); Eval(1473, o is int, false); Eval(1474, o is int[], false); Eval(1475, o is int?, false); Eval(1476, o is int?[], false); Eval(1477, o is uint, false); Eval(1478, o is uint[], false); Eval(1479, o is uint?, false); Eval(1480, o is uint?[], false); Eval(1481, o is long, false); Eval(1482, o is long[], false); Eval(1483, o is long?, false); Eval(1484, o is long?[], false); Eval(1485, o is ulong, false); Eval(1486, o is ulong[], false); Eval(1487, o is ulong?, false); Eval(1488, o is ulong?[], false); Eval(1489, o is float, false); Eval(1490, o is float[], false); Eval(1491, o is float?, false); Eval(1492, o is float?[], false); Eval(1493, o is double, false); Eval(1494, o is double[], false); Eval(1495, o is double?, false); Eval(1496, o is double?[], false); Eval(1497, o is decimal, false); Eval(1498, o is decimal[], false); Eval(1499, o is decimal?, false); Eval(1500, o is decimal?[], false); Eval(1501, o is IntPtr, false); Eval(1502, o is IntPtr[], false); Eval(1503, o is IntPtr?, false); Eval(1504, o is IntPtr?[], false); Eval(1505, o is UIntPtr, false); Eval(1506, o is UIntPtr[], false); Eval(1507, o is UIntPtr?, false); Eval(1508, o is UIntPtr?[], false); Eval(1509, o is Guid, false); Eval(1510, o is Guid[], false); Eval(1511, o is Guid?, false); Eval(1512, o is Guid?[], false); Eval(1513, o is GCHandle, false); Eval(1514, o is GCHandle[], false); Eval(1515, o is GCHandle?, false); Eval(1516, o is GCHandle?[], false); Eval(1517, o is object, true); Eval(1518, o is object[], false); Eval(1519, o is string, false); Eval(1520, o is string[], false); Eval(1521, o is ValueType, true); Eval(1522, o is ValueType[], false); Eval(1523, o is Array, false); Eval(1524, o is Array[], false); Eval(1525, o is Enum, false); Eval(1526, o is Enum[], false); Eval(1527, o is Delegate, false); Eval(1528, o is Delegate[], false); Eval(1529, o is MulticastDelegate, false); Eval(1530, o is MulticastDelegate[], false); Eval(1531, o is IEmpty, false); Eval(1532, o is IEmpty[], false); Eval(1533, o is INotEmpty, false); Eval(1534, o is INotEmpty[], false); Eval(1535, o is IEmptyGen<int>, false); Eval(1536, o is IEmptyGen<int>[], false); Eval(1537, o is INotEmptyGen<int>, false); Eval(1538, o is INotEmptyGen<int>[], false); Eval(1539, o is SimpleDelegate, false); Eval(1540, o is SimpleDelegate[], false); Eval(1541, o is GenericDelegate<int>, false); Eval(1542, o is GenericDelegate<int>[], false); Eval(1543, o is EmptyClass, false); Eval(1544, o is EmptyClass[], false); Eval(1545, o is NotEmptyClass, false); Eval(1546, o is NotEmptyClass[], false); Eval(1547, o is EmptyClassGen<int>, false); Eval(1548, o is EmptyClassGen<int>[], false); Eval(1549, o is NotEmptyClassGen<Guid>, false); Eval(1550, o is NotEmptyClassGen<Guid>[], false); Eval(1551, o is NotEmptyClassConstrainedGen<object>, false); Eval(1552, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1553, o is NestedClass, false); Eval(1554, o is NestedClass[], false); Eval(1555, o is NestedClassGen<Decimal>, false); Eval(1556, o is NestedClassGen<Decimal>[], false); Eval(1557, o is ImplementOneInterfaceC, false); Eval(1558, o is ImplementOneInterfaceC[], false); Eval(1559, o is ImplementTwoInterfaceC, false); Eval(1560, o is ImplementTwoInterfaceC[], false); Eval(1561, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1562, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1563, o is ImplementTwoInterfaceGenC<int>, false); Eval(1564, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1565, o is ImplementAllInterfaceC<int>, false); Eval(1566, o is ImplementAllInterfaceC<int>[], false); Eval(1567, o is SealedClass, false); Eval(1568, o is SealedClass[], false); } { EmptyStructGen<int>? v = default(EmptyStructGen<int>?); ValueType o = v; Eval(1569, o is EmptyStruct, false); Eval(1570, o is EmptyStruct[], false); Eval(1571, o is EmptyStruct?, false); Eval(1572, o is EmptyStruct?[], false); Eval(1573, o is NotEmptyStruct, false); Eval(1574, o is NotEmptyStruct[], false); Eval(1575, o is NotEmptyStruct?, false); Eval(1576, o is NotEmptyStruct?[], false); Eval(1577, o is EmptyStructGen<int>, false); Eval(1578, o is EmptyStructGen<int>[], false); Eval(1579, o is EmptyStructGen<int>?, false); Eval(1580, o is EmptyStructGen<int>?[], false); Eval(1581, o is NotEmptyStructGen<Guid>, false); Eval(1582, o is NotEmptyStructGen<Guid>[], false); Eval(1583, o is NotEmptyStructGen<Guid>?, false); Eval(1584, o is NotEmptyStructGen<Guid>?[], false); Eval(1585, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1586, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1587, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1588, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1589, o is NestedStruct, false); Eval(1590, o is NestedStruct[], false); Eval(1591, o is NestedStruct?, false); Eval(1592, o is NestedStruct?[], false); Eval(1593, o is NestedStructGen<Decimal>, false); Eval(1594, o is NestedStructGen<Decimal>[], false); Eval(1595, o is NestedStructGen<Decimal>?, false); Eval(1596, o is NestedStructGen<Decimal>?[], false); Eval(1597, o is ExplicitFieldOffsetStruct, false); Eval(1598, o is ExplicitFieldOffsetStruct[], false); Eval(1599, o is ExplicitFieldOffsetStruct?, false); Eval(1600, o is ExplicitFieldOffsetStruct?[], false); Eval(1609, o is MarshalAsStruct, false); Eval(1610, o is MarshalAsStruct[], false); Eval(1611, o is MarshalAsStruct?, false); Eval(1612, o is MarshalAsStruct?[], false); Eval(1613, o is ImplementOneInterface, false); Eval(1614, o is ImplementOneInterface[], false); Eval(1615, o is ImplementOneInterface?, false); Eval(1616, o is ImplementOneInterface?[], false); Eval(1617, o is ImplementTwoInterface, false); Eval(1618, o is ImplementTwoInterface[], false); Eval(1619, o is ImplementTwoInterface?, false); Eval(1620, o is ImplementTwoInterface?[], false); Eval(1621, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1622, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1623, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1624, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1625, o is ImplementTwoInterfaceGen<int>, false); Eval(1626, o is ImplementTwoInterfaceGen<int>[], false); Eval(1627, o is ImplementTwoInterfaceGen<int>?, false); Eval(1628, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1629, o is ImplementAllInterface<int>, false); Eval(1630, o is ImplementAllInterface<int>[], false); Eval(1631, o is ImplementAllInterface<int>?, false); Eval(1632, o is ImplementAllInterface<int>?[], false); Eval(1633, o is IntE, false); Eval(1634, o is IntE[], false); Eval(1635, o is IntE?, false); Eval(1636, o is IntE?[], false); Eval(1637, o is ByteE, false); Eval(1638, o is ByteE[], false); Eval(1639, o is ByteE?, false); Eval(1640, o is ByteE?[], false); Eval(1641, o is LongE, false); Eval(1642, o is LongE[], false); Eval(1643, o is LongE?, false); Eval(1644, o is LongE?[], false); Eval(1645, o is char, false); Eval(1646, o is char[], false); Eval(1647, o is char?, false); Eval(1648, o is char?[], false); Eval(1649, o is bool, false); Eval(1650, o is bool[], false); Eval(1651, o is bool?, false); Eval(1652, o is bool?[], false); Eval(1653, o is byte, false); Eval(1654, o is byte[], false); Eval(1655, o is byte?, false); Eval(1656, o is byte?[], false); Eval(1657, o is sbyte, false); Eval(1658, o is sbyte[], false); Eval(1659, o is sbyte?, false); Eval(1660, o is sbyte?[], false); Eval(1661, o is short, false); Eval(1662, o is short[], false); Eval(1663, o is short?, false); Eval(1664, o is short?[], false); Eval(1665, o is ushort, false); Eval(1666, o is ushort[], false); Eval(1667, o is ushort?, false); Eval(1668, o is ushort?[], false); Eval(1669, o is int, false); Eval(1670, o is int[], false); Eval(1671, o is int?, false); Eval(1672, o is int?[], false); Eval(1673, o is uint, false); Eval(1674, o is uint[], false); Eval(1675, o is uint?, false); Eval(1676, o is uint?[], false); Eval(1677, o is long, false); Eval(1678, o is long[], false); Eval(1679, o is long?, false); Eval(1680, o is long?[], false); Eval(1681, o is ulong, false); Eval(1682, o is ulong[], false); Eval(1683, o is ulong?, false); Eval(1684, o is ulong?[], false); Eval(1685, o is float, false); Eval(1686, o is float[], false); Eval(1687, o is float?, false); Eval(1688, o is float?[], false); Eval(1689, o is double, false); Eval(1690, o is double[], false); Eval(1691, o is double?, false); Eval(1692, o is double?[], false); Eval(1693, o is decimal, false); Eval(1694, o is decimal[], false); Eval(1695, o is decimal?, false); Eval(1696, o is decimal?[], false); Eval(1697, o is IntPtr, false); Eval(1698, o is IntPtr[], false); Eval(1699, o is IntPtr?, false); Eval(1700, o is IntPtr?[], false); Eval(1701, o is UIntPtr, false); Eval(1702, o is UIntPtr[], false); Eval(1703, o is UIntPtr?, false); Eval(1704, o is UIntPtr?[], false); Eval(1705, o is Guid, false); Eval(1706, o is Guid[], false); Eval(1707, o is Guid?, false); Eval(1708, o is Guid?[], false); Eval(1709, o is GCHandle, false); Eval(1710, o is GCHandle[], false); Eval(1711, o is GCHandle?, false); Eval(1712, o is GCHandle?[], false); Eval(1713, o is object, false); Eval(1714, o is object[], false); Eval(1715, o is string, false); Eval(1716, o is string[], false); Eval(1717, o is ValueType, false); Eval(1718, o is ValueType[], false); Eval(1719, o is Array, false); Eval(1720, o is Array[], false); Eval(1721, o is Enum, false); Eval(1722, o is Enum[], false); Eval(1723, o is Delegate, false); Eval(1724, o is Delegate[], false); Eval(1725, o is MulticastDelegate, false); Eval(1726, o is MulticastDelegate[], false); Eval(1727, o is IEmpty, false); Eval(1728, o is IEmpty[], false); Eval(1729, o is INotEmpty, false); Eval(1730, o is INotEmpty[], false); Eval(1731, o is IEmptyGen<int>, false); Eval(1732, o is IEmptyGen<int>[], false); Eval(1733, o is INotEmptyGen<int>, false); Eval(1734, o is INotEmptyGen<int>[], false); Eval(1735, o is SimpleDelegate, false); Eval(1736, o is SimpleDelegate[], false); Eval(1737, o is GenericDelegate<int>, false); Eval(1738, o is GenericDelegate<int>[], false); Eval(1739, o is EmptyClass, false); Eval(1740, o is EmptyClass[], false); Eval(1741, o is NotEmptyClass, false); Eval(1742, o is NotEmptyClass[], false); Eval(1743, o is EmptyClassGen<int>, false); Eval(1744, o is EmptyClassGen<int>[], false); Eval(1745, o is NotEmptyClassGen<Guid>, false); Eval(1746, o is NotEmptyClassGen<Guid>[], false); Eval(1747, o is NotEmptyClassConstrainedGen<object>, false); Eval(1748, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1749, o is NestedClass, false); Eval(1750, o is NestedClass[], false); Eval(1751, o is NestedClassGen<Decimal>, false); Eval(1752, o is NestedClassGen<Decimal>[], false); Eval(1753, o is ImplementOneInterfaceC, false); Eval(1754, o is ImplementOneInterfaceC[], false); Eval(1755, o is ImplementTwoInterfaceC, false); Eval(1756, o is ImplementTwoInterfaceC[], false); Eval(1757, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1758, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1759, o is ImplementTwoInterfaceGenC<int>, false); Eval(1760, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1761, o is ImplementAllInterfaceC<int>, false); Eval(1762, o is ImplementAllInterfaceC<int>[], false); Eval(1763, o is SealedClass, false); Eval(1764, o is SealedClass[], false); } } // end of test case 0003 private static void TestCase0004() { { NotEmptyStructGen<Guid> v = default(NotEmptyStructGen<Guid>); ValueType o = v; Eval(1765, o is EmptyStruct, false); Eval(1766, o is EmptyStruct[], false); Eval(1767, o is EmptyStruct?, false); Eval(1768, o is EmptyStruct?[], false); Eval(1769, o is NotEmptyStruct, false); Eval(1770, o is NotEmptyStruct[], false); Eval(1771, o is NotEmptyStruct?, false); Eval(1772, o is NotEmptyStruct?[], false); Eval(1773, o is EmptyStructGen<int>, false); Eval(1774, o is EmptyStructGen<int>[], false); Eval(1775, o is EmptyStructGen<int>?, false); Eval(1776, o is EmptyStructGen<int>?[], false); Eval(1777, o is NotEmptyStructGen<Guid>, true); Eval(1778, o is NotEmptyStructGen<Guid>[], false); Eval(1779, o is NotEmptyStructGen<Guid>?, true); Eval(1780, o is NotEmptyStructGen<Guid>?[], false); Eval(1781, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1782, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1783, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1784, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1785, o is NestedStruct, false); Eval(1786, o is NestedStruct[], false); Eval(1787, o is NestedStruct?, false); Eval(1788, o is NestedStruct?[], false); Eval(1789, o is NestedStructGen<Decimal>, false); Eval(1790, o is NestedStructGen<Decimal>[], false); Eval(1791, o is NestedStructGen<Decimal>?, false); Eval(1792, o is NestedStructGen<Decimal>?[], false); Eval(1793, o is ExplicitFieldOffsetStruct, false); Eval(1794, o is ExplicitFieldOffsetStruct[], false); Eval(1795, o is ExplicitFieldOffsetStruct?, false); Eval(1796, o is ExplicitFieldOffsetStruct?[], false); Eval(1805, o is MarshalAsStruct, false); Eval(1806, o is MarshalAsStruct[], false); Eval(1807, o is MarshalAsStruct?, false); Eval(1808, o is MarshalAsStruct?[], false); Eval(1809, o is ImplementOneInterface, false); Eval(1810, o is ImplementOneInterface[], false); Eval(1811, o is ImplementOneInterface?, false); Eval(1812, o is ImplementOneInterface?[], false); Eval(1813, o is ImplementTwoInterface, false); Eval(1814, o is ImplementTwoInterface[], false); Eval(1815, o is ImplementTwoInterface?, false); Eval(1816, o is ImplementTwoInterface?[], false); Eval(1817, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(1818, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(1819, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(1820, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(1821, o is ImplementTwoInterfaceGen<int>, false); Eval(1822, o is ImplementTwoInterfaceGen<int>[], false); Eval(1823, o is ImplementTwoInterfaceGen<int>?, false); Eval(1824, o is ImplementTwoInterfaceGen<int>?[], false); Eval(1825, o is ImplementAllInterface<int>, false); Eval(1826, o is ImplementAllInterface<int>[], false); Eval(1827, o is ImplementAllInterface<int>?, false); Eval(1828, o is ImplementAllInterface<int>?[], false); Eval(1829, o is IntE, false); Eval(1830, o is IntE[], false); Eval(1831, o is IntE?, false); Eval(1832, o is IntE?[], false); Eval(1833, o is ByteE, false); Eval(1834, o is ByteE[], false); Eval(1835, o is ByteE?, false); Eval(1836, o is ByteE?[], false); Eval(1837, o is LongE, false); Eval(1838, o is LongE[], false); Eval(1839, o is LongE?, false); Eval(1840, o is LongE?[], false); Eval(1841, o is char, false); Eval(1842, o is char[], false); Eval(1843, o is char?, false); Eval(1844, o is char?[], false); Eval(1845, o is bool, false); Eval(1846, o is bool[], false); Eval(1847, o is bool?, false); Eval(1848, o is bool?[], false); Eval(1849, o is byte, false); Eval(1850, o is byte[], false); Eval(1851, o is byte?, false); Eval(1852, o is byte?[], false); Eval(1853, o is sbyte, false); Eval(1854, o is sbyte[], false); Eval(1855, o is sbyte?, false); Eval(1856, o is sbyte?[], false); Eval(1857, o is short, false); Eval(1858, o is short[], false); Eval(1859, o is short?, false); Eval(1860, o is short?[], false); Eval(1861, o is ushort, false); Eval(1862, o is ushort[], false); Eval(1863, o is ushort?, false); Eval(1864, o is ushort?[], false); Eval(1865, o is int, false); Eval(1866, o is int[], false); Eval(1867, o is int?, false); Eval(1868, o is int?[], false); Eval(1869, o is uint, false); Eval(1870, o is uint[], false); Eval(1871, o is uint?, false); Eval(1872, o is uint?[], false); Eval(1873, o is long, false); Eval(1874, o is long[], false); Eval(1875, o is long?, false); Eval(1876, o is long?[], false); Eval(1877, o is ulong, false); Eval(1878, o is ulong[], false); Eval(1879, o is ulong?, false); Eval(1880, o is ulong?[], false); Eval(1881, o is float, false); Eval(1882, o is float[], false); Eval(1883, o is float?, false); Eval(1884, o is float?[], false); Eval(1885, o is double, false); Eval(1886, o is double[], false); Eval(1887, o is double?, false); Eval(1888, o is double?[], false); Eval(1889, o is decimal, false); Eval(1890, o is decimal[], false); Eval(1891, o is decimal?, false); Eval(1892, o is decimal?[], false); Eval(1893, o is IntPtr, false); Eval(1894, o is IntPtr[], false); Eval(1895, o is IntPtr?, false); Eval(1896, o is IntPtr?[], false); Eval(1897, o is UIntPtr, false); Eval(1898, o is UIntPtr[], false); Eval(1899, o is UIntPtr?, false); Eval(1900, o is UIntPtr?[], false); Eval(1901, o is Guid, false); Eval(1902, o is Guid[], false); Eval(1903, o is Guid?, false); Eval(1904, o is Guid?[], false); Eval(1905, o is GCHandle, false); Eval(1906, o is GCHandle[], false); Eval(1907, o is GCHandle?, false); Eval(1908, o is GCHandle?[], false); Eval(1909, o is object, true); Eval(1910, o is object[], false); Eval(1911, o is string, false); Eval(1912, o is string[], false); Eval(1913, o is ValueType, true); Eval(1914, o is ValueType[], false); Eval(1915, o is Array, false); Eval(1916, o is Array[], false); Eval(1917, o is Enum, false); Eval(1918, o is Enum[], false); Eval(1919, o is Delegate, false); Eval(1920, o is Delegate[], false); Eval(1921, o is MulticastDelegate, false); Eval(1922, o is MulticastDelegate[], false); Eval(1923, o is IEmpty, false); Eval(1924, o is IEmpty[], false); Eval(1925, o is INotEmpty, false); Eval(1926, o is INotEmpty[], false); Eval(1927, o is IEmptyGen<int>, false); Eval(1928, o is IEmptyGen<int>[], false); Eval(1929, o is INotEmptyGen<int>, false); Eval(1930, o is INotEmptyGen<int>[], false); Eval(1931, o is SimpleDelegate, false); Eval(1932, o is SimpleDelegate[], false); Eval(1933, o is GenericDelegate<int>, false); Eval(1934, o is GenericDelegate<int>[], false); Eval(1935, o is EmptyClass, false); Eval(1936, o is EmptyClass[], false); Eval(1937, o is NotEmptyClass, false); Eval(1938, o is NotEmptyClass[], false); Eval(1939, o is EmptyClassGen<int>, false); Eval(1940, o is EmptyClassGen<int>[], false); Eval(1941, o is NotEmptyClassGen<Guid>, false); Eval(1942, o is NotEmptyClassGen<Guid>[], false); Eval(1943, o is NotEmptyClassConstrainedGen<object>, false); Eval(1944, o is NotEmptyClassConstrainedGen<object>[], false); Eval(1945, o is NestedClass, false); Eval(1946, o is NestedClass[], false); Eval(1947, o is NestedClassGen<Decimal>, false); Eval(1948, o is NestedClassGen<Decimal>[], false); Eval(1949, o is ImplementOneInterfaceC, false); Eval(1950, o is ImplementOneInterfaceC[], false); Eval(1951, o is ImplementTwoInterfaceC, false); Eval(1952, o is ImplementTwoInterfaceC[], false); Eval(1953, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(1954, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(1955, o is ImplementTwoInterfaceGenC<int>, false); Eval(1956, o is ImplementTwoInterfaceGenC<int>[], false); Eval(1957, o is ImplementAllInterfaceC<int>, false); Eval(1958, o is ImplementAllInterfaceC<int>[], false); Eval(1959, o is SealedClass, false); Eval(1960, o is SealedClass[], false); } { NotEmptyStructGen<Guid>? v = default(NotEmptyStructGen<Guid>); ValueType o = v; Eval(1961, o is EmptyStruct, false); Eval(1962, o is EmptyStruct[], false); Eval(1963, o is EmptyStruct?, false); Eval(1964, o is EmptyStruct?[], false); Eval(1965, o is NotEmptyStruct, false); Eval(1966, o is NotEmptyStruct[], false); Eval(1967, o is NotEmptyStruct?, false); Eval(1968, o is NotEmptyStruct?[], false); Eval(1969, o is EmptyStructGen<int>, false); Eval(1970, o is EmptyStructGen<int>[], false); Eval(1971, o is EmptyStructGen<int>?, false); Eval(1972, o is EmptyStructGen<int>?[], false); Eval(1973, o is NotEmptyStructGen<Guid>, true); Eval(1974, o is NotEmptyStructGen<Guid>[], false); Eval(1975, o is NotEmptyStructGen<Guid>?, true); Eval(1976, o is NotEmptyStructGen<Guid>?[], false); Eval(1977, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(1978, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(1979, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(1980, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(1981, o is NestedStruct, false); Eval(1982, o is NestedStruct[], false); Eval(1983, o is NestedStruct?, false); Eval(1984, o is NestedStruct?[], false); Eval(1985, o is NestedStructGen<Decimal>, false); Eval(1986, o is NestedStructGen<Decimal>[], false); Eval(1987, o is NestedStructGen<Decimal>?, false); Eval(1988, o is NestedStructGen<Decimal>?[], false); Eval(1989, o is ExplicitFieldOffsetStruct, false); Eval(1990, o is ExplicitFieldOffsetStruct[], false); Eval(1991, o is ExplicitFieldOffsetStruct?, false); Eval(1992, o is ExplicitFieldOffsetStruct?[], false); Eval(2001, o is MarshalAsStruct, false); Eval(2002, o is MarshalAsStruct[], false); Eval(2003, o is MarshalAsStruct?, false); Eval(2004, o is MarshalAsStruct?[], false); Eval(2005, o is ImplementOneInterface, false); Eval(2006, o is ImplementOneInterface[], false); Eval(2007, o is ImplementOneInterface?, false); Eval(2008, o is ImplementOneInterface?[], false); Eval(2009, o is ImplementTwoInterface, false); Eval(2010, o is ImplementTwoInterface[], false); Eval(2011, o is ImplementTwoInterface?, false); Eval(2012, o is ImplementTwoInterface?[], false); Eval(2013, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2014, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2015, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2016, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2017, o is ImplementTwoInterfaceGen<int>, false); Eval(2018, o is ImplementTwoInterfaceGen<int>[], false); Eval(2019, o is ImplementTwoInterfaceGen<int>?, false); Eval(2020, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2021, o is ImplementAllInterface<int>, false); Eval(2022, o is ImplementAllInterface<int>[], false); Eval(2023, o is ImplementAllInterface<int>?, false); Eval(2024, o is ImplementAllInterface<int>?[], false); Eval(2025, o is IntE, false); Eval(2026, o is IntE[], false); Eval(2027, o is IntE?, false); Eval(2028, o is IntE?[], false); Eval(2029, o is ByteE, false); Eval(2030, o is ByteE[], false); Eval(2031, o is ByteE?, false); Eval(2032, o is ByteE?[], false); Eval(2033, o is LongE, false); Eval(2034, o is LongE[], false); Eval(2035, o is LongE?, false); Eval(2036, o is LongE?[], false); Eval(2037, o is char, false); Eval(2038, o is char[], false); Eval(2039, o is char?, false); Eval(2040, o is char?[], false); Eval(2041, o is bool, false); Eval(2042, o is bool[], false); Eval(2043, o is bool?, false); Eval(2044, o is bool?[], false); Eval(2045, o is byte, false); Eval(2046, o is byte[], false); Eval(2047, o is byte?, false); Eval(2048, o is byte?[], false); Eval(2049, o is sbyte, false); Eval(2050, o is sbyte[], false); Eval(2051, o is sbyte?, false); Eval(2052, o is sbyte?[], false); Eval(2053, o is short, false); Eval(2054, o is short[], false); Eval(2055, o is short?, false); Eval(2056, o is short?[], false); Eval(2057, o is ushort, false); Eval(2058, o is ushort[], false); Eval(2059, o is ushort?, false); Eval(2060, o is ushort?[], false); Eval(2061, o is int, false); Eval(2062, o is int[], false); Eval(2063, o is int?, false); Eval(2064, o is int?[], false); Eval(2065, o is uint, false); Eval(2066, o is uint[], false); Eval(2067, o is uint?, false); Eval(2068, o is uint?[], false); Eval(2069, o is long, false); Eval(2070, o is long[], false); Eval(2071, o is long?, false); Eval(2072, o is long?[], false); Eval(2073, o is ulong, false); Eval(2074, o is ulong[], false); Eval(2075, o is ulong?, false); Eval(2076, o is ulong?[], false); Eval(2077, o is float, false); Eval(2078, o is float[], false); Eval(2079, o is float?, false); Eval(2080, o is float?[], false); Eval(2081, o is double, false); Eval(2082, o is double[], false); Eval(2083, o is double?, false); Eval(2084, o is double?[], false); Eval(2085, o is decimal, false); Eval(2086, o is decimal[], false); Eval(2087, o is decimal?, false); Eval(2088, o is decimal?[], false); Eval(2089, o is IntPtr, false); Eval(2090, o is IntPtr[], false); Eval(2091, o is IntPtr?, false); Eval(2092, o is IntPtr?[], false); Eval(2093, o is UIntPtr, false); Eval(2094, o is UIntPtr[], false); Eval(2095, o is UIntPtr?, false); Eval(2096, o is UIntPtr?[], false); Eval(2097, o is Guid, false); Eval(2098, o is Guid[], false); Eval(2099, o is Guid?, false); Eval(2100, o is Guid?[], false); Eval(2101, o is GCHandle, false); Eval(2102, o is GCHandle[], false); Eval(2103, o is GCHandle?, false); Eval(2104, o is GCHandle?[], false); Eval(2105, o is object, true); Eval(2106, o is object[], false); Eval(2107, o is string, false); Eval(2108, o is string[], false); Eval(2109, o is ValueType, true); Eval(2110, o is ValueType[], false); Eval(2111, o is Array, false); Eval(2112, o is Array[], false); Eval(2113, o is Enum, false); Eval(2114, o is Enum[], false); Eval(2115, o is Delegate, false); Eval(2116, o is Delegate[], false); Eval(2117, o is MulticastDelegate, false); Eval(2118, o is MulticastDelegate[], false); Eval(2119, o is IEmpty, false); Eval(2120, o is IEmpty[], false); Eval(2121, o is INotEmpty, false); Eval(2122, o is INotEmpty[], false); Eval(2123, o is IEmptyGen<int>, false); Eval(2124, o is IEmptyGen<int>[], false); Eval(2125, o is INotEmptyGen<int>, false); Eval(2126, o is INotEmptyGen<int>[], false); Eval(2127, o is SimpleDelegate, false); Eval(2128, o is SimpleDelegate[], false); Eval(2129, o is GenericDelegate<int>, false); Eval(2130, o is GenericDelegate<int>[], false); Eval(2131, o is EmptyClass, false); Eval(2132, o is EmptyClass[], false); Eval(2133, o is NotEmptyClass, false); Eval(2134, o is NotEmptyClass[], false); Eval(2135, o is EmptyClassGen<int>, false); Eval(2136, o is EmptyClassGen<int>[], false); Eval(2137, o is NotEmptyClassGen<Guid>, false); Eval(2138, o is NotEmptyClassGen<Guid>[], false); Eval(2139, o is NotEmptyClassConstrainedGen<object>, false); Eval(2140, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2141, o is NestedClass, false); Eval(2142, o is NestedClass[], false); Eval(2143, o is NestedClassGen<Decimal>, false); Eval(2144, o is NestedClassGen<Decimal>[], false); Eval(2145, o is ImplementOneInterfaceC, false); Eval(2146, o is ImplementOneInterfaceC[], false); Eval(2147, o is ImplementTwoInterfaceC, false); Eval(2148, o is ImplementTwoInterfaceC[], false); Eval(2149, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2150, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2151, o is ImplementTwoInterfaceGenC<int>, false); Eval(2152, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2153, o is ImplementAllInterfaceC<int>, false); Eval(2154, o is ImplementAllInterfaceC<int>[], false); Eval(2155, o is SealedClass, false); Eval(2156, o is SealedClass[], false); } { NotEmptyStructGen<Guid>? v = default(NotEmptyStructGen<Guid>?); ValueType o = v; Eval(2157, o is EmptyStruct, false); Eval(2158, o is EmptyStruct[], false); Eval(2159, o is EmptyStruct?, false); Eval(2160, o is EmptyStruct?[], false); Eval(2161, o is NotEmptyStruct, false); Eval(2162, o is NotEmptyStruct[], false); Eval(2163, o is NotEmptyStruct?, false); Eval(2164, o is NotEmptyStruct?[], false); Eval(2165, o is EmptyStructGen<int>, false); Eval(2166, o is EmptyStructGen<int>[], false); Eval(2167, o is EmptyStructGen<int>?, false); Eval(2168, o is EmptyStructGen<int>?[], false); Eval(2169, o is NotEmptyStructGen<Guid>, false); Eval(2170, o is NotEmptyStructGen<Guid>[], false); Eval(2171, o is NotEmptyStructGen<Guid>?, false); Eval(2172, o is NotEmptyStructGen<Guid>?[], false); Eval(2173, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(2174, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2175, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(2176, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2177, o is NestedStruct, false); Eval(2178, o is NestedStruct[], false); Eval(2179, o is NestedStruct?, false); Eval(2180, o is NestedStruct?[], false); Eval(2181, o is NestedStructGen<Decimal>, false); Eval(2182, o is NestedStructGen<Decimal>[], false); Eval(2183, o is NestedStructGen<Decimal>?, false); Eval(2184, o is NestedStructGen<Decimal>?[], false); Eval(2185, o is ExplicitFieldOffsetStruct, false); Eval(2186, o is ExplicitFieldOffsetStruct[], false); Eval(2187, o is ExplicitFieldOffsetStruct?, false); Eval(2188, o is ExplicitFieldOffsetStruct?[], false); Eval(2197, o is MarshalAsStruct, false); Eval(2198, o is MarshalAsStruct[], false); Eval(2199, o is MarshalAsStruct?, false); Eval(2200, o is MarshalAsStruct?[], false); Eval(2201, o is ImplementOneInterface, false); Eval(2202, o is ImplementOneInterface[], false); Eval(2203, o is ImplementOneInterface?, false); Eval(2204, o is ImplementOneInterface?[], false); Eval(2205, o is ImplementTwoInterface, false); Eval(2206, o is ImplementTwoInterface[], false); Eval(2207, o is ImplementTwoInterface?, false); Eval(2208, o is ImplementTwoInterface?[], false); Eval(2209, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2210, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2211, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2212, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2213, o is ImplementTwoInterfaceGen<int>, false); Eval(2214, o is ImplementTwoInterfaceGen<int>[], false); Eval(2215, o is ImplementTwoInterfaceGen<int>?, false); Eval(2216, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2217, o is ImplementAllInterface<int>, false); Eval(2218, o is ImplementAllInterface<int>[], false); Eval(2219, o is ImplementAllInterface<int>?, false); Eval(2220, o is ImplementAllInterface<int>?[], false); Eval(2221, o is IntE, false); Eval(2222, o is IntE[], false); Eval(2223, o is IntE?, false); Eval(2224, o is IntE?[], false); Eval(2225, o is ByteE, false); Eval(2226, o is ByteE[], false); Eval(2227, o is ByteE?, false); Eval(2228, o is ByteE?[], false); Eval(2229, o is LongE, false); Eval(2230, o is LongE[], false); Eval(2231, o is LongE?, false); Eval(2232, o is LongE?[], false); Eval(2233, o is char, false); Eval(2234, o is char[], false); Eval(2235, o is char?, false); Eval(2236, o is char?[], false); Eval(2237, o is bool, false); Eval(2238, o is bool[], false); Eval(2239, o is bool?, false); Eval(2240, o is bool?[], false); Eval(2241, o is byte, false); Eval(2242, o is byte[], false); Eval(2243, o is byte?, false); Eval(2244, o is byte?[], false); Eval(2245, o is sbyte, false); Eval(2246, o is sbyte[], false); Eval(2247, o is sbyte?, false); Eval(2248, o is sbyte?[], false); Eval(2249, o is short, false); Eval(2250, o is short[], false); Eval(2251, o is short?, false); Eval(2252, o is short?[], false); Eval(2253, o is ushort, false); Eval(2254, o is ushort[], false); Eval(2255, o is ushort?, false); Eval(2256, o is ushort?[], false); Eval(2257, o is int, false); Eval(2258, o is int[], false); Eval(2259, o is int?, false); Eval(2260, o is int?[], false); Eval(2261, o is uint, false); Eval(2262, o is uint[], false); Eval(2263, o is uint?, false); Eval(2264, o is uint?[], false); Eval(2265, o is long, false); Eval(2266, o is long[], false); Eval(2267, o is long?, false); Eval(2268, o is long?[], false); Eval(2269, o is ulong, false); Eval(2270, o is ulong[], false); Eval(2271, o is ulong?, false); Eval(2272, o is ulong?[], false); Eval(2273, o is float, false); Eval(2274, o is float[], false); Eval(2275, o is float?, false); Eval(2276, o is float?[], false); Eval(2277, o is double, false); Eval(2278, o is double[], false); Eval(2279, o is double?, false); Eval(2280, o is double?[], false); Eval(2281, o is decimal, false); Eval(2282, o is decimal[], false); Eval(2283, o is decimal?, false); Eval(2284, o is decimal?[], false); Eval(2285, o is IntPtr, false); Eval(2286, o is IntPtr[], false); Eval(2287, o is IntPtr?, false); Eval(2288, o is IntPtr?[], false); Eval(2289, o is UIntPtr, false); Eval(2290, o is UIntPtr[], false); Eval(2291, o is UIntPtr?, false); Eval(2292, o is UIntPtr?[], false); Eval(2293, o is Guid, false); Eval(2294, o is Guid[], false); Eval(2295, o is Guid?, false); Eval(2296, o is Guid?[], false); Eval(2297, o is GCHandle, false); Eval(2298, o is GCHandle[], false); Eval(2299, o is GCHandle?, false); Eval(2300, o is GCHandle?[], false); Eval(2301, o is object, false); Eval(2302, o is object[], false); Eval(2303, o is string, false); Eval(2304, o is string[], false); Eval(2305, o is ValueType, false); Eval(2306, o is ValueType[], false); Eval(2307, o is Array, false); Eval(2308, o is Array[], false); Eval(2309, o is Enum, false); Eval(2310, o is Enum[], false); Eval(2311, o is Delegate, false); Eval(2312, o is Delegate[], false); Eval(2313, o is MulticastDelegate, false); Eval(2314, o is MulticastDelegate[], false); Eval(2315, o is IEmpty, false); Eval(2316, o is IEmpty[], false); Eval(2317, o is INotEmpty, false); Eval(2318, o is INotEmpty[], false); Eval(2319, o is IEmptyGen<int>, false); Eval(2320, o is IEmptyGen<int>[], false); Eval(2321, o is INotEmptyGen<int>, false); Eval(2322, o is INotEmptyGen<int>[], false); Eval(2323, o is SimpleDelegate, false); Eval(2324, o is SimpleDelegate[], false); Eval(2325, o is GenericDelegate<int>, false); Eval(2326, o is GenericDelegate<int>[], false); Eval(2327, o is EmptyClass, false); Eval(2328, o is EmptyClass[], false); Eval(2329, o is NotEmptyClass, false); Eval(2330, o is NotEmptyClass[], false); Eval(2331, o is EmptyClassGen<int>, false); Eval(2332, o is EmptyClassGen<int>[], false); Eval(2333, o is NotEmptyClassGen<Guid>, false); Eval(2334, o is NotEmptyClassGen<Guid>[], false); Eval(2335, o is NotEmptyClassConstrainedGen<object>, false); Eval(2336, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2337, o is NestedClass, false); Eval(2338, o is NestedClass[], false); Eval(2339, o is NestedClassGen<Decimal>, false); Eval(2340, o is NestedClassGen<Decimal>[], false); Eval(2341, o is ImplementOneInterfaceC, false); Eval(2342, o is ImplementOneInterfaceC[], false); Eval(2343, o is ImplementTwoInterfaceC, false); Eval(2344, o is ImplementTwoInterfaceC[], false); Eval(2345, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2346, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2347, o is ImplementTwoInterfaceGenC<int>, false); Eval(2348, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2349, o is ImplementAllInterfaceC<int>, false); Eval(2350, o is ImplementAllInterfaceC<int>[], false); Eval(2351, o is SealedClass, false); Eval(2352, o is SealedClass[], false); } } // end of test case 0004 private static void TestCase0005() { { NotEmptyStructConstrainedGen<IntPtr> v = default(NotEmptyStructConstrainedGen<IntPtr>); ValueType o = v; Eval(2353, o is EmptyStruct, false); Eval(2354, o is EmptyStruct[], false); Eval(2355, o is EmptyStruct?, false); Eval(2356, o is EmptyStruct?[], false); Eval(2357, o is NotEmptyStruct, false); Eval(2358, o is NotEmptyStruct[], false); Eval(2359, o is NotEmptyStruct?, false); Eval(2360, o is NotEmptyStruct?[], false); Eval(2361, o is EmptyStructGen<int>, false); Eval(2362, o is EmptyStructGen<int>[], false); Eval(2363, o is EmptyStructGen<int>?, false); Eval(2364, o is EmptyStructGen<int>?[], false); Eval(2365, o is NotEmptyStructGen<Guid>, false); Eval(2366, o is NotEmptyStructGen<Guid>[], false); Eval(2367, o is NotEmptyStructGen<Guid>?, false); Eval(2368, o is NotEmptyStructGen<Guid>?[], false); Eval(2369, o is NotEmptyStructConstrainedGen<IntPtr>, true); Eval(2370, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2371, o is NotEmptyStructConstrainedGen<IntPtr>?, true); Eval(2372, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2373, o is NestedStruct, false); Eval(2374, o is NestedStruct[], false); Eval(2375, o is NestedStruct?, false); Eval(2376, o is NestedStruct?[], false); Eval(2377, o is NestedStructGen<Decimal>, false); Eval(2378, o is NestedStructGen<Decimal>[], false); Eval(2379, o is NestedStructGen<Decimal>?, false); Eval(2380, o is NestedStructGen<Decimal>?[], false); Eval(2381, o is ExplicitFieldOffsetStruct, false); Eval(2382, o is ExplicitFieldOffsetStruct[], false); Eval(2383, o is ExplicitFieldOffsetStruct?, false); Eval(2384, o is ExplicitFieldOffsetStruct?[], false); Eval(2393, o is MarshalAsStruct, false); Eval(2394, o is MarshalAsStruct[], false); Eval(2395, o is MarshalAsStruct?, false); Eval(2396, o is MarshalAsStruct?[], false); Eval(2397, o is ImplementOneInterface, false); Eval(2398, o is ImplementOneInterface[], false); Eval(2399, o is ImplementOneInterface?, false); Eval(2400, o is ImplementOneInterface?[], false); Eval(2401, o is ImplementTwoInterface, false); Eval(2402, o is ImplementTwoInterface[], false); Eval(2403, o is ImplementTwoInterface?, false); Eval(2404, o is ImplementTwoInterface?[], false); Eval(2405, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2406, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2407, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2408, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2409, o is ImplementTwoInterfaceGen<int>, false); Eval(2410, o is ImplementTwoInterfaceGen<int>[], false); Eval(2411, o is ImplementTwoInterfaceGen<int>?, false); Eval(2412, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2413, o is ImplementAllInterface<int>, false); Eval(2414, o is ImplementAllInterface<int>[], false); Eval(2415, o is ImplementAllInterface<int>?, false); Eval(2416, o is ImplementAllInterface<int>?[], false); Eval(2417, o is IntE, false); Eval(2418, o is IntE[], false); Eval(2419, o is IntE?, false); Eval(2420, o is IntE?[], false); Eval(2421, o is ByteE, false); Eval(2422, o is ByteE[], false); Eval(2423, o is ByteE?, false); Eval(2424, o is ByteE?[], false); Eval(2425, o is LongE, false); Eval(2426, o is LongE[], false); Eval(2427, o is LongE?, false); Eval(2428, o is LongE?[], false); Eval(2429, o is char, false); Eval(2430, o is char[], false); Eval(2431, o is char?, false); Eval(2432, o is char?[], false); Eval(2433, o is bool, false); Eval(2434, o is bool[], false); Eval(2435, o is bool?, false); Eval(2436, o is bool?[], false); Eval(2437, o is byte, false); Eval(2438, o is byte[], false); Eval(2439, o is byte?, false); Eval(2440, o is byte?[], false); Eval(2441, o is sbyte, false); Eval(2442, o is sbyte[], false); Eval(2443, o is sbyte?, false); Eval(2444, o is sbyte?[], false); Eval(2445, o is short, false); Eval(2446, o is short[], false); Eval(2447, o is short?, false); Eval(2448, o is short?[], false); Eval(2449, o is ushort, false); Eval(2450, o is ushort[], false); Eval(2451, o is ushort?, false); Eval(2452, o is ushort?[], false); Eval(2453, o is int, false); Eval(2454, o is int[], false); Eval(2455, o is int?, false); Eval(2456, o is int?[], false); Eval(2457, o is uint, false); Eval(2458, o is uint[], false); Eval(2459, o is uint?, false); Eval(2460, o is uint?[], false); Eval(2461, o is long, false); Eval(2462, o is long[], false); Eval(2463, o is long?, false); Eval(2464, o is long?[], false); Eval(2465, o is ulong, false); Eval(2466, o is ulong[], false); Eval(2467, o is ulong?, false); Eval(2468, o is ulong?[], false); Eval(2469, o is float, false); Eval(2470, o is float[], false); Eval(2471, o is float?, false); Eval(2472, o is float?[], false); Eval(2473, o is double, false); Eval(2474, o is double[], false); Eval(2475, o is double?, false); Eval(2476, o is double?[], false); Eval(2477, o is decimal, false); Eval(2478, o is decimal[], false); Eval(2479, o is decimal?, false); Eval(2480, o is decimal?[], false); Eval(2481, o is IntPtr, false); Eval(2482, o is IntPtr[], false); Eval(2483, o is IntPtr?, false); Eval(2484, o is IntPtr?[], false); Eval(2485, o is UIntPtr, false); Eval(2486, o is UIntPtr[], false); Eval(2487, o is UIntPtr?, false); Eval(2488, o is UIntPtr?[], false); Eval(2489, o is Guid, false); Eval(2490, o is Guid[], false); Eval(2491, o is Guid?, false); Eval(2492, o is Guid?[], false); Eval(2493, o is GCHandle, false); Eval(2494, o is GCHandle[], false); Eval(2495, o is GCHandle?, false); Eval(2496, o is GCHandle?[], false); Eval(2497, o is object, true); Eval(2498, o is object[], false); Eval(2499, o is string, false); Eval(2500, o is string[], false); Eval(2501, o is ValueType, true); Eval(2502, o is ValueType[], false); Eval(2503, o is Array, false); Eval(2504, o is Array[], false); Eval(2505, o is Enum, false); Eval(2506, o is Enum[], false); Eval(2507, o is Delegate, false); Eval(2508, o is Delegate[], false); Eval(2509, o is MulticastDelegate, false); Eval(2510, o is MulticastDelegate[], false); Eval(2511, o is IEmpty, false); Eval(2512, o is IEmpty[], false); Eval(2513, o is INotEmpty, false); Eval(2514, o is INotEmpty[], false); Eval(2515, o is IEmptyGen<int>, false); Eval(2516, o is IEmptyGen<int>[], false); Eval(2517, o is INotEmptyGen<int>, false); Eval(2518, o is INotEmptyGen<int>[], false); Eval(2519, o is SimpleDelegate, false); Eval(2520, o is SimpleDelegate[], false); Eval(2521, o is GenericDelegate<int>, false); Eval(2522, o is GenericDelegate<int>[], false); Eval(2523, o is EmptyClass, false); Eval(2524, o is EmptyClass[], false); Eval(2525, o is NotEmptyClass, false); Eval(2526, o is NotEmptyClass[], false); Eval(2527, o is EmptyClassGen<int>, false); Eval(2528, o is EmptyClassGen<int>[], false); Eval(2529, o is NotEmptyClassGen<Guid>, false); Eval(2530, o is NotEmptyClassGen<Guid>[], false); Eval(2531, o is NotEmptyClassConstrainedGen<object>, false); Eval(2532, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2533, o is NestedClass, false); Eval(2534, o is NestedClass[], false); Eval(2535, o is NestedClassGen<Decimal>, false); Eval(2536, o is NestedClassGen<Decimal>[], false); Eval(2537, o is ImplementOneInterfaceC, false); Eval(2538, o is ImplementOneInterfaceC[], false); Eval(2539, o is ImplementTwoInterfaceC, false); Eval(2540, o is ImplementTwoInterfaceC[], false); Eval(2541, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2542, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2543, o is ImplementTwoInterfaceGenC<int>, false); Eval(2544, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2545, o is ImplementAllInterfaceC<int>, false); Eval(2546, o is ImplementAllInterfaceC<int>[], false); Eval(2547, o is SealedClass, false); Eval(2548, o is SealedClass[], false); } { NotEmptyStructConstrainedGen<IntPtr>? v = default(NotEmptyStructConstrainedGen<IntPtr>); ValueType o = v; Eval(2549, o is EmptyStruct, false); Eval(2550, o is EmptyStruct[], false); Eval(2551, o is EmptyStruct?, false); Eval(2552, o is EmptyStruct?[], false); Eval(2553, o is NotEmptyStruct, false); Eval(2554, o is NotEmptyStruct[], false); Eval(2555, o is NotEmptyStruct?, false); Eval(2556, o is NotEmptyStruct?[], false); Eval(2557, o is EmptyStructGen<int>, false); Eval(2558, o is EmptyStructGen<int>[], false); Eval(2559, o is EmptyStructGen<int>?, false); Eval(2560, o is EmptyStructGen<int>?[], false); Eval(2561, o is NotEmptyStructGen<Guid>, false); Eval(2562, o is NotEmptyStructGen<Guid>[], false); Eval(2563, o is NotEmptyStructGen<Guid>?, false); Eval(2564, o is NotEmptyStructGen<Guid>?[], false); Eval(2565, o is NotEmptyStructConstrainedGen<IntPtr>, true); Eval(2566, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2567, o is NotEmptyStructConstrainedGen<IntPtr>?, true); Eval(2568, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2569, o is NestedStruct, false); Eval(2570, o is NestedStruct[], false); Eval(2571, o is NestedStruct?, false); Eval(2572, o is NestedStruct?[], false); Eval(2573, o is NestedStructGen<Decimal>, false); Eval(2574, o is NestedStructGen<Decimal>[], false); Eval(2575, o is NestedStructGen<Decimal>?, false); Eval(2576, o is NestedStructGen<Decimal>?[], false); Eval(2577, o is ExplicitFieldOffsetStruct, false); Eval(2578, o is ExplicitFieldOffsetStruct[], false); Eval(2579, o is ExplicitFieldOffsetStruct?, false); Eval(2580, o is ExplicitFieldOffsetStruct?[], false); Eval(2589, o is MarshalAsStruct, false); Eval(2590, o is MarshalAsStruct[], false); Eval(2591, o is MarshalAsStruct?, false); Eval(2592, o is MarshalAsStruct?[], false); Eval(2593, o is ImplementOneInterface, false); Eval(2594, o is ImplementOneInterface[], false); Eval(2595, o is ImplementOneInterface?, false); Eval(2596, o is ImplementOneInterface?[], false); Eval(2597, o is ImplementTwoInterface, false); Eval(2598, o is ImplementTwoInterface[], false); Eval(2599, o is ImplementTwoInterface?, false); Eval(2600, o is ImplementTwoInterface?[], false); Eval(2601, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2602, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2603, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2604, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2605, o is ImplementTwoInterfaceGen<int>, false); Eval(2606, o is ImplementTwoInterfaceGen<int>[], false); Eval(2607, o is ImplementTwoInterfaceGen<int>?, false); Eval(2608, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2609, o is ImplementAllInterface<int>, false); Eval(2610, o is ImplementAllInterface<int>[], false); Eval(2611, o is ImplementAllInterface<int>?, false); Eval(2612, o is ImplementAllInterface<int>?[], false); Eval(2613, o is IntE, false); Eval(2614, o is IntE[], false); Eval(2615, o is IntE?, false); Eval(2616, o is IntE?[], false); Eval(2617, o is ByteE, false); Eval(2618, o is ByteE[], false); Eval(2619, o is ByteE?, false); Eval(2620, o is ByteE?[], false); Eval(2621, o is LongE, false); Eval(2622, o is LongE[], false); Eval(2623, o is LongE?, false); Eval(2624, o is LongE?[], false); Eval(2625, o is char, false); Eval(2626, o is char[], false); Eval(2627, o is char?, false); Eval(2628, o is char?[], false); Eval(2629, o is bool, false); Eval(2630, o is bool[], false); Eval(2631, o is bool?, false); Eval(2632, o is bool?[], false); Eval(2633, o is byte, false); Eval(2634, o is byte[], false); Eval(2635, o is byte?, false); Eval(2636, o is byte?[], false); Eval(2637, o is sbyte, false); Eval(2638, o is sbyte[], false); Eval(2639, o is sbyte?, false); Eval(2640, o is sbyte?[], false); Eval(2641, o is short, false); Eval(2642, o is short[], false); Eval(2643, o is short?, false); Eval(2644, o is short?[], false); Eval(2645, o is ushort, false); Eval(2646, o is ushort[], false); Eval(2647, o is ushort?, false); Eval(2648, o is ushort?[], false); Eval(2649, o is int, false); Eval(2650, o is int[], false); Eval(2651, o is int?, false); Eval(2652, o is int?[], false); Eval(2653, o is uint, false); Eval(2654, o is uint[], false); Eval(2655, o is uint?, false); Eval(2656, o is uint?[], false); Eval(2657, o is long, false); Eval(2658, o is long[], false); Eval(2659, o is long?, false); Eval(2660, o is long?[], false); Eval(2661, o is ulong, false); Eval(2662, o is ulong[], false); Eval(2663, o is ulong?, false); Eval(2664, o is ulong?[], false); Eval(2665, o is float, false); Eval(2666, o is float[], false); Eval(2667, o is float?, false); Eval(2668, o is float?[], false); Eval(2669, o is double, false); Eval(2670, o is double[], false); Eval(2671, o is double?, false); Eval(2672, o is double?[], false); Eval(2673, o is decimal, false); Eval(2674, o is decimal[], false); Eval(2675, o is decimal?, false); Eval(2676, o is decimal?[], false); Eval(2677, o is IntPtr, false); Eval(2678, o is IntPtr[], false); Eval(2679, o is IntPtr?, false); Eval(2680, o is IntPtr?[], false); Eval(2681, o is UIntPtr, false); Eval(2682, o is UIntPtr[], false); Eval(2683, o is UIntPtr?, false); Eval(2684, o is UIntPtr?[], false); Eval(2685, o is Guid, false); Eval(2686, o is Guid[], false); Eval(2687, o is Guid?, false); Eval(2688, o is Guid?[], false); Eval(2689, o is GCHandle, false); Eval(2690, o is GCHandle[], false); Eval(2691, o is GCHandle?, false); Eval(2692, o is GCHandle?[], false); Eval(2693, o is object, true); Eval(2694, o is object[], false); Eval(2695, o is string, false); Eval(2696, o is string[], false); Eval(2697, o is ValueType, true); Eval(2698, o is ValueType[], false); Eval(2699, o is Array, false); Eval(2700, o is Array[], false); Eval(2701, o is Enum, false); Eval(2702, o is Enum[], false); Eval(2703, o is Delegate, false); Eval(2704, o is Delegate[], false); Eval(2705, o is MulticastDelegate, false); Eval(2706, o is MulticastDelegate[], false); Eval(2707, o is IEmpty, false); Eval(2708, o is IEmpty[], false); Eval(2709, o is INotEmpty, false); Eval(2710, o is INotEmpty[], false); Eval(2711, o is IEmptyGen<int>, false); Eval(2712, o is IEmptyGen<int>[], false); Eval(2713, o is INotEmptyGen<int>, false); Eval(2714, o is INotEmptyGen<int>[], false); Eval(2715, o is SimpleDelegate, false); Eval(2716, o is SimpleDelegate[], false); Eval(2717, o is GenericDelegate<int>, false); Eval(2718, o is GenericDelegate<int>[], false); Eval(2719, o is EmptyClass, false); Eval(2720, o is EmptyClass[], false); Eval(2721, o is NotEmptyClass, false); Eval(2722, o is NotEmptyClass[], false); Eval(2723, o is EmptyClassGen<int>, false); Eval(2724, o is EmptyClassGen<int>[], false); Eval(2725, o is NotEmptyClassGen<Guid>, false); Eval(2726, o is NotEmptyClassGen<Guid>[], false); Eval(2727, o is NotEmptyClassConstrainedGen<object>, false); Eval(2728, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2729, o is NestedClass, false); Eval(2730, o is NestedClass[], false); Eval(2731, o is NestedClassGen<Decimal>, false); Eval(2732, o is NestedClassGen<Decimal>[], false); Eval(2733, o is ImplementOneInterfaceC, false); Eval(2734, o is ImplementOneInterfaceC[], false); Eval(2735, o is ImplementTwoInterfaceC, false); Eval(2736, o is ImplementTwoInterfaceC[], false); Eval(2737, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2738, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2739, o is ImplementTwoInterfaceGenC<int>, false); Eval(2740, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2741, o is ImplementAllInterfaceC<int>, false); Eval(2742, o is ImplementAllInterfaceC<int>[], false); Eval(2743, o is SealedClass, false); Eval(2744, o is SealedClass[], false); } { NotEmptyStructConstrainedGen<IntPtr>? v = default(NotEmptyStructConstrainedGen<IntPtr>?); ValueType o = v; Eval(2745, o is EmptyStruct, false); Eval(2746, o is EmptyStruct[], false); Eval(2747, o is EmptyStruct?, false); Eval(2748, o is EmptyStruct?[], false); Eval(2749, o is NotEmptyStruct, false); Eval(2750, o is NotEmptyStruct[], false); Eval(2751, o is NotEmptyStruct?, false); Eval(2752, o is NotEmptyStruct?[], false); Eval(2753, o is EmptyStructGen<int>, false); Eval(2754, o is EmptyStructGen<int>[], false); Eval(2755, o is EmptyStructGen<int>?, false); Eval(2756, o is EmptyStructGen<int>?[], false); Eval(2757, o is NotEmptyStructGen<Guid>, false); Eval(2758, o is NotEmptyStructGen<Guid>[], false); Eval(2759, o is NotEmptyStructGen<Guid>?, false); Eval(2760, o is NotEmptyStructGen<Guid>?[], false); Eval(2761, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(2762, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2763, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(2764, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2765, o is NestedStruct, false); Eval(2766, o is NestedStruct[], false); Eval(2767, o is NestedStruct?, false); Eval(2768, o is NestedStruct?[], false); Eval(2769, o is NestedStructGen<Decimal>, false); Eval(2770, o is NestedStructGen<Decimal>[], false); Eval(2771, o is NestedStructGen<Decimal>?, false); Eval(2772, o is NestedStructGen<Decimal>?[], false); Eval(2773, o is ExplicitFieldOffsetStruct, false); Eval(2774, o is ExplicitFieldOffsetStruct[], false); Eval(2775, o is ExplicitFieldOffsetStruct?, false); Eval(2776, o is ExplicitFieldOffsetStruct?[], false); Eval(2785, o is MarshalAsStruct, false); Eval(2786, o is MarshalAsStruct[], false); Eval(2787, o is MarshalAsStruct?, false); Eval(2788, o is MarshalAsStruct?[], false); Eval(2789, o is ImplementOneInterface, false); Eval(2790, o is ImplementOneInterface[], false); Eval(2791, o is ImplementOneInterface?, false); Eval(2792, o is ImplementOneInterface?[], false); Eval(2793, o is ImplementTwoInterface, false); Eval(2794, o is ImplementTwoInterface[], false); Eval(2795, o is ImplementTwoInterface?, false); Eval(2796, o is ImplementTwoInterface?[], false); Eval(2797, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2798, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2799, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2800, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2801, o is ImplementTwoInterfaceGen<int>, false); Eval(2802, o is ImplementTwoInterfaceGen<int>[], false); Eval(2803, o is ImplementTwoInterfaceGen<int>?, false); Eval(2804, o is ImplementTwoInterfaceGen<int>?[], false); Eval(2805, o is ImplementAllInterface<int>, false); Eval(2806, o is ImplementAllInterface<int>[], false); Eval(2807, o is ImplementAllInterface<int>?, false); Eval(2808, o is ImplementAllInterface<int>?[], false); Eval(2809, o is IntE, false); Eval(2810, o is IntE[], false); Eval(2811, o is IntE?, false); Eval(2812, o is IntE?[], false); Eval(2813, o is ByteE, false); Eval(2814, o is ByteE[], false); Eval(2815, o is ByteE?, false); Eval(2816, o is ByteE?[], false); Eval(2817, o is LongE, false); Eval(2818, o is LongE[], false); Eval(2819, o is LongE?, false); Eval(2820, o is LongE?[], false); Eval(2821, o is char, false); Eval(2822, o is char[], false); Eval(2823, o is char?, false); Eval(2824, o is char?[], false); Eval(2825, o is bool, false); Eval(2826, o is bool[], false); Eval(2827, o is bool?, false); Eval(2828, o is bool?[], false); Eval(2829, o is byte, false); Eval(2830, o is byte[], false); Eval(2831, o is byte?, false); Eval(2832, o is byte?[], false); Eval(2833, o is sbyte, false); Eval(2834, o is sbyte[], false); Eval(2835, o is sbyte?, false); Eval(2836, o is sbyte?[], false); Eval(2837, o is short, false); Eval(2838, o is short[], false); Eval(2839, o is short?, false); Eval(2840, o is short?[], false); Eval(2841, o is ushort, false); Eval(2842, o is ushort[], false); Eval(2843, o is ushort?, false); Eval(2844, o is ushort?[], false); Eval(2845, o is int, false); Eval(2846, o is int[], false); Eval(2847, o is int?, false); Eval(2848, o is int?[], false); Eval(2849, o is uint, false); Eval(2850, o is uint[], false); Eval(2851, o is uint?, false); Eval(2852, o is uint?[], false); Eval(2853, o is long, false); Eval(2854, o is long[], false); Eval(2855, o is long?, false); Eval(2856, o is long?[], false); Eval(2857, o is ulong, false); Eval(2858, o is ulong[], false); Eval(2859, o is ulong?, false); Eval(2860, o is ulong?[], false); Eval(2861, o is float, false); Eval(2862, o is float[], false); Eval(2863, o is float?, false); Eval(2864, o is float?[], false); Eval(2865, o is double, false); Eval(2866, o is double[], false); Eval(2867, o is double?, false); Eval(2868, o is double?[], false); Eval(2869, o is decimal, false); Eval(2870, o is decimal[], false); Eval(2871, o is decimal?, false); Eval(2872, o is decimal?[], false); Eval(2873, o is IntPtr, false); Eval(2874, o is IntPtr[], false); Eval(2875, o is IntPtr?, false); Eval(2876, o is IntPtr?[], false); Eval(2877, o is UIntPtr, false); Eval(2878, o is UIntPtr[], false); Eval(2879, o is UIntPtr?, false); Eval(2880, o is UIntPtr?[], false); Eval(2881, o is Guid, false); Eval(2882, o is Guid[], false); Eval(2883, o is Guid?, false); Eval(2884, o is Guid?[], false); Eval(2885, o is GCHandle, false); Eval(2886, o is GCHandle[], false); Eval(2887, o is GCHandle?, false); Eval(2888, o is GCHandle?[], false); Eval(2889, o is object, false); Eval(2890, o is object[], false); Eval(2891, o is string, false); Eval(2892, o is string[], false); Eval(2893, o is ValueType, false); Eval(2894, o is ValueType[], false); Eval(2895, o is Array, false); Eval(2896, o is Array[], false); Eval(2897, o is Enum, false); Eval(2898, o is Enum[], false); Eval(2899, o is Delegate, false); Eval(2900, o is Delegate[], false); Eval(2901, o is MulticastDelegate, false); Eval(2902, o is MulticastDelegate[], false); Eval(2903, o is IEmpty, false); Eval(2904, o is IEmpty[], false); Eval(2905, o is INotEmpty, false); Eval(2906, o is INotEmpty[], false); Eval(2907, o is IEmptyGen<int>, false); Eval(2908, o is IEmptyGen<int>[], false); Eval(2909, o is INotEmptyGen<int>, false); Eval(2910, o is INotEmptyGen<int>[], false); Eval(2911, o is SimpleDelegate, false); Eval(2912, o is SimpleDelegate[], false); Eval(2913, o is GenericDelegate<int>, false); Eval(2914, o is GenericDelegate<int>[], false); Eval(2915, o is EmptyClass, false); Eval(2916, o is EmptyClass[], false); Eval(2917, o is NotEmptyClass, false); Eval(2918, o is NotEmptyClass[], false); Eval(2919, o is EmptyClassGen<int>, false); Eval(2920, o is EmptyClassGen<int>[], false); Eval(2921, o is NotEmptyClassGen<Guid>, false); Eval(2922, o is NotEmptyClassGen<Guid>[], false); Eval(2923, o is NotEmptyClassConstrainedGen<object>, false); Eval(2924, o is NotEmptyClassConstrainedGen<object>[], false); Eval(2925, o is NestedClass, false); Eval(2926, o is NestedClass[], false); Eval(2927, o is NestedClassGen<Decimal>, false); Eval(2928, o is NestedClassGen<Decimal>[], false); Eval(2929, o is ImplementOneInterfaceC, false); Eval(2930, o is ImplementOneInterfaceC[], false); Eval(2931, o is ImplementTwoInterfaceC, false); Eval(2932, o is ImplementTwoInterfaceC[], false); Eval(2933, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(2934, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(2935, o is ImplementTwoInterfaceGenC<int>, false); Eval(2936, o is ImplementTwoInterfaceGenC<int>[], false); Eval(2937, o is ImplementAllInterfaceC<int>, false); Eval(2938, o is ImplementAllInterfaceC<int>[], false); Eval(2939, o is SealedClass, false); Eval(2940, o is SealedClass[], false); } } // end of test case 0005 private static void TestCase0006() { { NestedStruct v = default(NestedStruct); ValueType o = v; Eval(2941, o is EmptyStruct, false); Eval(2942, o is EmptyStruct[], false); Eval(2943, o is EmptyStruct?, false); Eval(2944, o is EmptyStruct?[], false); Eval(2945, o is NotEmptyStruct, false); Eval(2946, o is NotEmptyStruct[], false); Eval(2947, o is NotEmptyStruct?, false); Eval(2948, o is NotEmptyStruct?[], false); Eval(2949, o is EmptyStructGen<int>, false); Eval(2950, o is EmptyStructGen<int>[], false); Eval(2951, o is EmptyStructGen<int>?, false); Eval(2952, o is EmptyStructGen<int>?[], false); Eval(2953, o is NotEmptyStructGen<Guid>, false); Eval(2954, o is NotEmptyStructGen<Guid>[], false); Eval(2955, o is NotEmptyStructGen<Guid>?, false); Eval(2956, o is NotEmptyStructGen<Guid>?[], false); Eval(2957, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(2958, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(2959, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(2960, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(2961, o is NestedStruct, true); Eval(2962, o is NestedStruct[], false); Eval(2963, o is NestedStruct?, true); Eval(2964, o is NestedStruct?[], false); Eval(2965, o is NestedStructGen<Decimal>, false); Eval(2966, o is NestedStructGen<Decimal>[], false); Eval(2967, o is NestedStructGen<Decimal>?, false); Eval(2968, o is NestedStructGen<Decimal>?[], false); Eval(2969, o is ExplicitFieldOffsetStruct, false); Eval(2970, o is ExplicitFieldOffsetStruct[], false); Eval(2971, o is ExplicitFieldOffsetStruct?, false); Eval(2972, o is ExplicitFieldOffsetStruct?[], false); Eval(2981, o is MarshalAsStruct, false); Eval(2982, o is MarshalAsStruct[], false); Eval(2983, o is MarshalAsStruct?, false); Eval(2984, o is MarshalAsStruct?[], false); Eval(2985, o is ImplementOneInterface, false); Eval(2986, o is ImplementOneInterface[], false); Eval(2987, o is ImplementOneInterface?, false); Eval(2988, o is ImplementOneInterface?[], false); Eval(2989, o is ImplementTwoInterface, false); Eval(2990, o is ImplementTwoInterface[], false); Eval(2991, o is ImplementTwoInterface?, false); Eval(2992, o is ImplementTwoInterface?[], false); Eval(2993, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(2994, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(2995, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(2996, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(2997, o is ImplementTwoInterfaceGen<int>, false); Eval(2998, o is ImplementTwoInterfaceGen<int>[], false); Eval(2999, o is ImplementTwoInterfaceGen<int>?, false); Eval(3000, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3001, o is ImplementAllInterface<int>, false); Eval(3002, o is ImplementAllInterface<int>[], false); Eval(3003, o is ImplementAllInterface<int>?, false); Eval(3004, o is ImplementAllInterface<int>?[], false); Eval(3005, o is IntE, false); Eval(3006, o is IntE[], false); Eval(3007, o is IntE?, false); Eval(3008, o is IntE?[], false); Eval(3009, o is ByteE, false); Eval(3010, o is ByteE[], false); Eval(3011, o is ByteE?, false); Eval(3012, o is ByteE?[], false); Eval(3013, o is LongE, false); Eval(3014, o is LongE[], false); Eval(3015, o is LongE?, false); Eval(3016, o is LongE?[], false); Eval(3017, o is char, false); Eval(3018, o is char[], false); Eval(3019, o is char?, false); Eval(3020, o is char?[], false); Eval(3021, o is bool, false); Eval(3022, o is bool[], false); Eval(3023, o is bool?, false); Eval(3024, o is bool?[], false); Eval(3025, o is byte, false); Eval(3026, o is byte[], false); Eval(3027, o is byte?, false); Eval(3028, o is byte?[], false); Eval(3029, o is sbyte, false); Eval(3030, o is sbyte[], false); Eval(3031, o is sbyte?, false); Eval(3032, o is sbyte?[], false); Eval(3033, o is short, false); Eval(3034, o is short[], false); Eval(3035, o is short?, false); Eval(3036, o is short?[], false); Eval(3037, o is ushort, false); Eval(3038, o is ushort[], false); Eval(3039, o is ushort?, false); Eval(3040, o is ushort?[], false); Eval(3041, o is int, false); Eval(3042, o is int[], false); Eval(3043, o is int?, false); Eval(3044, o is int?[], false); Eval(3045, o is uint, false); Eval(3046, o is uint[], false); Eval(3047, o is uint?, false); Eval(3048, o is uint?[], false); Eval(3049, o is long, false); Eval(3050, o is long[], false); Eval(3051, o is long?, false); Eval(3052, o is long?[], false); Eval(3053, o is ulong, false); Eval(3054, o is ulong[], false); Eval(3055, o is ulong?, false); Eval(3056, o is ulong?[], false); Eval(3057, o is float, false); Eval(3058, o is float[], false); Eval(3059, o is float?, false); Eval(3060, o is float?[], false); Eval(3061, o is double, false); Eval(3062, o is double[], false); Eval(3063, o is double?, false); Eval(3064, o is double?[], false); Eval(3065, o is decimal, false); Eval(3066, o is decimal[], false); Eval(3067, o is decimal?, false); Eval(3068, o is decimal?[], false); Eval(3069, o is IntPtr, false); Eval(3070, o is IntPtr[], false); Eval(3071, o is IntPtr?, false); Eval(3072, o is IntPtr?[], false); Eval(3073, o is UIntPtr, false); Eval(3074, o is UIntPtr[], false); Eval(3075, o is UIntPtr?, false); Eval(3076, o is UIntPtr?[], false); Eval(3077, o is Guid, false); Eval(3078, o is Guid[], false); Eval(3079, o is Guid?, false); Eval(3080, o is Guid?[], false); Eval(3081, o is GCHandle, false); Eval(3082, o is GCHandle[], false); Eval(3083, o is GCHandle?, false); Eval(3084, o is GCHandle?[], false); Eval(3085, o is object, true); Eval(3086, o is object[], false); Eval(3087, o is string, false); Eval(3088, o is string[], false); Eval(3089, o is ValueType, true); Eval(3090, o is ValueType[], false); Eval(3091, o is Array, false); Eval(3092, o is Array[], false); Eval(3093, o is Enum, false); Eval(3094, o is Enum[], false); Eval(3095, o is Delegate, false); Eval(3096, o is Delegate[], false); Eval(3097, o is MulticastDelegate, false); Eval(3098, o is MulticastDelegate[], false); Eval(3099, o is IEmpty, false); Eval(3100, o is IEmpty[], false); Eval(3101, o is INotEmpty, false); Eval(3102, o is INotEmpty[], false); Eval(3103, o is IEmptyGen<int>, false); Eval(3104, o is IEmptyGen<int>[], false); Eval(3105, o is INotEmptyGen<int>, false); Eval(3106, o is INotEmptyGen<int>[], false); Eval(3107, o is SimpleDelegate, false); Eval(3108, o is SimpleDelegate[], false); Eval(3109, o is GenericDelegate<int>, false); Eval(3110, o is GenericDelegate<int>[], false); Eval(3111, o is EmptyClass, false); Eval(3112, o is EmptyClass[], false); Eval(3113, o is NotEmptyClass, false); Eval(3114, o is NotEmptyClass[], false); Eval(3115, o is EmptyClassGen<int>, false); Eval(3116, o is EmptyClassGen<int>[], false); Eval(3117, o is NotEmptyClassGen<Guid>, false); Eval(3118, o is NotEmptyClassGen<Guid>[], false); Eval(3119, o is NotEmptyClassConstrainedGen<object>, false); Eval(3120, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3121, o is NestedClass, false); Eval(3122, o is NestedClass[], false); Eval(3123, o is NestedClassGen<Decimal>, false); Eval(3124, o is NestedClassGen<Decimal>[], false); Eval(3125, o is ImplementOneInterfaceC, false); Eval(3126, o is ImplementOneInterfaceC[], false); Eval(3127, o is ImplementTwoInterfaceC, false); Eval(3128, o is ImplementTwoInterfaceC[], false); Eval(3129, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3130, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3131, o is ImplementTwoInterfaceGenC<int>, false); Eval(3132, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3133, o is ImplementAllInterfaceC<int>, false); Eval(3134, o is ImplementAllInterfaceC<int>[], false); Eval(3135, o is SealedClass, false); Eval(3136, o is SealedClass[], false); } { NestedStruct? v = default(NestedStruct); ValueType o = v; Eval(3137, o is EmptyStruct, false); Eval(3138, o is EmptyStruct[], false); Eval(3139, o is EmptyStruct?, false); Eval(3140, o is EmptyStruct?[], false); Eval(3141, o is NotEmptyStruct, false); Eval(3142, o is NotEmptyStruct[], false); Eval(3143, o is NotEmptyStruct?, false); Eval(3144, o is NotEmptyStruct?[], false); Eval(3145, o is EmptyStructGen<int>, false); Eval(3146, o is EmptyStructGen<int>[], false); Eval(3147, o is EmptyStructGen<int>?, false); Eval(3148, o is EmptyStructGen<int>?[], false); Eval(3149, o is NotEmptyStructGen<Guid>, false); Eval(3150, o is NotEmptyStructGen<Guid>[], false); Eval(3151, o is NotEmptyStructGen<Guid>?, false); Eval(3152, o is NotEmptyStructGen<Guid>?[], false); Eval(3153, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3154, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3155, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3156, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3157, o is NestedStruct, true); Eval(3158, o is NestedStruct[], false); Eval(3159, o is NestedStruct?, true); Eval(3160, o is NestedStruct?[], false); Eval(3161, o is NestedStructGen<Decimal>, false); Eval(3162, o is NestedStructGen<Decimal>[], false); Eval(3163, o is NestedStructGen<Decimal>?, false); Eval(3164, o is NestedStructGen<Decimal>?[], false); Eval(3165, o is ExplicitFieldOffsetStruct, false); Eval(3166, o is ExplicitFieldOffsetStruct[], false); Eval(3167, o is ExplicitFieldOffsetStruct?, false); Eval(3168, o is ExplicitFieldOffsetStruct?[], false); Eval(3177, o is MarshalAsStruct, false); Eval(3178, o is MarshalAsStruct[], false); Eval(3179, o is MarshalAsStruct?, false); Eval(3180, o is MarshalAsStruct?[], false); Eval(3181, o is ImplementOneInterface, false); Eval(3182, o is ImplementOneInterface[], false); Eval(3183, o is ImplementOneInterface?, false); Eval(3184, o is ImplementOneInterface?[], false); Eval(3185, o is ImplementTwoInterface, false); Eval(3186, o is ImplementTwoInterface[], false); Eval(3187, o is ImplementTwoInterface?, false); Eval(3188, o is ImplementTwoInterface?[], false); Eval(3189, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3190, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3191, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3192, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3193, o is ImplementTwoInterfaceGen<int>, false); Eval(3194, o is ImplementTwoInterfaceGen<int>[], false); Eval(3195, o is ImplementTwoInterfaceGen<int>?, false); Eval(3196, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3197, o is ImplementAllInterface<int>, false); Eval(3198, o is ImplementAllInterface<int>[], false); Eval(3199, o is ImplementAllInterface<int>?, false); Eval(3200, o is ImplementAllInterface<int>?[], false); Eval(3201, o is IntE, false); Eval(3202, o is IntE[], false); Eval(3203, o is IntE?, false); Eval(3204, o is IntE?[], false); Eval(3205, o is ByteE, false); Eval(3206, o is ByteE[], false); Eval(3207, o is ByteE?, false); Eval(3208, o is ByteE?[], false); Eval(3209, o is LongE, false); Eval(3210, o is LongE[], false); Eval(3211, o is LongE?, false); Eval(3212, o is LongE?[], false); Eval(3213, o is char, false); Eval(3214, o is char[], false); Eval(3215, o is char?, false); Eval(3216, o is char?[], false); Eval(3217, o is bool, false); Eval(3218, o is bool[], false); Eval(3219, o is bool?, false); Eval(3220, o is bool?[], false); Eval(3221, o is byte, false); Eval(3222, o is byte[], false); Eval(3223, o is byte?, false); Eval(3224, o is byte?[], false); Eval(3225, o is sbyte, false); Eval(3226, o is sbyte[], false); Eval(3227, o is sbyte?, false); Eval(3228, o is sbyte?[], false); Eval(3229, o is short, false); Eval(3230, o is short[], false); Eval(3231, o is short?, false); Eval(3232, o is short?[], false); Eval(3233, o is ushort, false); Eval(3234, o is ushort[], false); Eval(3235, o is ushort?, false); Eval(3236, o is ushort?[], false); Eval(3237, o is int, false); Eval(3238, o is int[], false); Eval(3239, o is int?, false); Eval(3240, o is int?[], false); Eval(3241, o is uint, false); Eval(3242, o is uint[], false); Eval(3243, o is uint?, false); Eval(3244, o is uint?[], false); Eval(3245, o is long, false); Eval(3246, o is long[], false); Eval(3247, o is long?, false); Eval(3248, o is long?[], false); Eval(3249, o is ulong, false); Eval(3250, o is ulong[], false); Eval(3251, o is ulong?, false); Eval(3252, o is ulong?[], false); Eval(3253, o is float, false); Eval(3254, o is float[], false); Eval(3255, o is float?, false); Eval(3256, o is float?[], false); Eval(3257, o is double, false); Eval(3258, o is double[], false); Eval(3259, o is double?, false); Eval(3260, o is double?[], false); Eval(3261, o is decimal, false); Eval(3262, o is decimal[], false); Eval(3263, o is decimal?, false); Eval(3264, o is decimal?[], false); Eval(3265, o is IntPtr, false); Eval(3266, o is IntPtr[], false); Eval(3267, o is IntPtr?, false); Eval(3268, o is IntPtr?[], false); Eval(3269, o is UIntPtr, false); Eval(3270, o is UIntPtr[], false); Eval(3271, o is UIntPtr?, false); Eval(3272, o is UIntPtr?[], false); Eval(3273, o is Guid, false); Eval(3274, o is Guid[], false); Eval(3275, o is Guid?, false); Eval(3276, o is Guid?[], false); Eval(3277, o is GCHandle, false); Eval(3278, o is GCHandle[], false); Eval(3279, o is GCHandle?, false); Eval(3280, o is GCHandle?[], false); Eval(3281, o is object, true); Eval(3282, o is object[], false); Eval(3283, o is string, false); Eval(3284, o is string[], false); Eval(3285, o is ValueType, true); Eval(3286, o is ValueType[], false); Eval(3287, o is Array, false); Eval(3288, o is Array[], false); Eval(3289, o is Enum, false); Eval(3290, o is Enum[], false); Eval(3291, o is Delegate, false); Eval(3292, o is Delegate[], false); Eval(3293, o is MulticastDelegate, false); Eval(3294, o is MulticastDelegate[], false); Eval(3295, o is IEmpty, false); Eval(3296, o is IEmpty[], false); Eval(3297, o is INotEmpty, false); Eval(3298, o is INotEmpty[], false); Eval(3299, o is IEmptyGen<int>, false); Eval(3300, o is IEmptyGen<int>[], false); Eval(3301, o is INotEmptyGen<int>, false); Eval(3302, o is INotEmptyGen<int>[], false); Eval(3303, o is SimpleDelegate, false); Eval(3304, o is SimpleDelegate[], false); Eval(3305, o is GenericDelegate<int>, false); Eval(3306, o is GenericDelegate<int>[], false); Eval(3307, o is EmptyClass, false); Eval(3308, o is EmptyClass[], false); Eval(3309, o is NotEmptyClass, false); Eval(3310, o is NotEmptyClass[], false); Eval(3311, o is EmptyClassGen<int>, false); Eval(3312, o is EmptyClassGen<int>[], false); Eval(3313, o is NotEmptyClassGen<Guid>, false); Eval(3314, o is NotEmptyClassGen<Guid>[], false); Eval(3315, o is NotEmptyClassConstrainedGen<object>, false); Eval(3316, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3317, o is NestedClass, false); Eval(3318, o is NestedClass[], false); Eval(3319, o is NestedClassGen<Decimal>, false); Eval(3320, o is NestedClassGen<Decimal>[], false); Eval(3321, o is ImplementOneInterfaceC, false); Eval(3322, o is ImplementOneInterfaceC[], false); Eval(3323, o is ImplementTwoInterfaceC, false); Eval(3324, o is ImplementTwoInterfaceC[], false); Eval(3325, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3326, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3327, o is ImplementTwoInterfaceGenC<int>, false); Eval(3328, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3329, o is ImplementAllInterfaceC<int>, false); Eval(3330, o is ImplementAllInterfaceC<int>[], false); Eval(3331, o is SealedClass, false); Eval(3332, o is SealedClass[], false); } { NestedStruct? v = default(NestedStruct?); ValueType o = v; Eval(3333, o is EmptyStruct, false); Eval(3334, o is EmptyStruct[], false); Eval(3335, o is EmptyStruct?, false); Eval(3336, o is EmptyStruct?[], false); Eval(3337, o is NotEmptyStruct, false); Eval(3338, o is NotEmptyStruct[], false); Eval(3339, o is NotEmptyStruct?, false); Eval(3340, o is NotEmptyStruct?[], false); Eval(3341, o is EmptyStructGen<int>, false); Eval(3342, o is EmptyStructGen<int>[], false); Eval(3343, o is EmptyStructGen<int>?, false); Eval(3344, o is EmptyStructGen<int>?[], false); Eval(3345, o is NotEmptyStructGen<Guid>, false); Eval(3346, o is NotEmptyStructGen<Guid>[], false); Eval(3347, o is NotEmptyStructGen<Guid>?, false); Eval(3348, o is NotEmptyStructGen<Guid>?[], false); Eval(3349, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3350, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3351, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3352, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3353, o is NestedStruct, false); Eval(3354, o is NestedStruct[], false); Eval(3355, o is NestedStruct?, false); Eval(3356, o is NestedStruct?[], false); Eval(3357, o is NestedStructGen<Decimal>, false); Eval(3358, o is NestedStructGen<Decimal>[], false); Eval(3359, o is NestedStructGen<Decimal>?, false); Eval(3360, o is NestedStructGen<Decimal>?[], false); Eval(3361, o is ExplicitFieldOffsetStruct, false); Eval(3362, o is ExplicitFieldOffsetStruct[], false); Eval(3363, o is ExplicitFieldOffsetStruct?, false); Eval(3364, o is ExplicitFieldOffsetStruct?[], false); Eval(3373, o is MarshalAsStruct, false); Eval(3374, o is MarshalAsStruct[], false); Eval(3375, o is MarshalAsStruct?, false); Eval(3376, o is MarshalAsStruct?[], false); Eval(3377, o is ImplementOneInterface, false); Eval(3378, o is ImplementOneInterface[], false); Eval(3379, o is ImplementOneInterface?, false); Eval(3380, o is ImplementOneInterface?[], false); Eval(3381, o is ImplementTwoInterface, false); Eval(3382, o is ImplementTwoInterface[], false); Eval(3383, o is ImplementTwoInterface?, false); Eval(3384, o is ImplementTwoInterface?[], false); Eval(3385, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3386, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3387, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3388, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3389, o is ImplementTwoInterfaceGen<int>, false); Eval(3390, o is ImplementTwoInterfaceGen<int>[], false); Eval(3391, o is ImplementTwoInterfaceGen<int>?, false); Eval(3392, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3393, o is ImplementAllInterface<int>, false); Eval(3394, o is ImplementAllInterface<int>[], false); Eval(3395, o is ImplementAllInterface<int>?, false); Eval(3396, o is ImplementAllInterface<int>?[], false); Eval(3397, o is IntE, false); Eval(3398, o is IntE[], false); Eval(3399, o is IntE?, false); Eval(3400, o is IntE?[], false); Eval(3401, o is ByteE, false); Eval(3402, o is ByteE[], false); Eval(3403, o is ByteE?, false); Eval(3404, o is ByteE?[], false); Eval(3405, o is LongE, false); Eval(3406, o is LongE[], false); Eval(3407, o is LongE?, false); Eval(3408, o is LongE?[], false); Eval(3409, o is char, false); Eval(3410, o is char[], false); Eval(3411, o is char?, false); Eval(3412, o is char?[], false); Eval(3413, o is bool, false); Eval(3414, o is bool[], false); Eval(3415, o is bool?, false); Eval(3416, o is bool?[], false); Eval(3417, o is byte, false); Eval(3418, o is byte[], false); Eval(3419, o is byte?, false); Eval(3420, o is byte?[], false); Eval(3421, o is sbyte, false); Eval(3422, o is sbyte[], false); Eval(3423, o is sbyte?, false); Eval(3424, o is sbyte?[], false); Eval(3425, o is short, false); Eval(3426, o is short[], false); Eval(3427, o is short?, false); Eval(3428, o is short?[], false); Eval(3429, o is ushort, false); Eval(3430, o is ushort[], false); Eval(3431, o is ushort?, false); Eval(3432, o is ushort?[], false); Eval(3433, o is int, false); Eval(3434, o is int[], false); Eval(3435, o is int?, false); Eval(3436, o is int?[], false); Eval(3437, o is uint, false); Eval(3438, o is uint[], false); Eval(3439, o is uint?, false); Eval(3440, o is uint?[], false); Eval(3441, o is long, false); Eval(3442, o is long[], false); Eval(3443, o is long?, false); Eval(3444, o is long?[], false); Eval(3445, o is ulong, false); Eval(3446, o is ulong[], false); Eval(3447, o is ulong?, false); Eval(3448, o is ulong?[], false); Eval(3449, o is float, false); Eval(3450, o is float[], false); Eval(3451, o is float?, false); Eval(3452, o is float?[], false); Eval(3453, o is double, false); Eval(3454, o is double[], false); Eval(3455, o is double?, false); Eval(3456, o is double?[], false); Eval(3457, o is decimal, false); Eval(3458, o is decimal[], false); Eval(3459, o is decimal?, false); Eval(3460, o is decimal?[], false); Eval(3461, o is IntPtr, false); Eval(3462, o is IntPtr[], false); Eval(3463, o is IntPtr?, false); Eval(3464, o is IntPtr?[], false); Eval(3465, o is UIntPtr, false); Eval(3466, o is UIntPtr[], false); Eval(3467, o is UIntPtr?, false); Eval(3468, o is UIntPtr?[], false); Eval(3469, o is Guid, false); Eval(3470, o is Guid[], false); Eval(3471, o is Guid?, false); Eval(3472, o is Guid?[], false); Eval(3473, o is GCHandle, false); Eval(3474, o is GCHandle[], false); Eval(3475, o is GCHandle?, false); Eval(3476, o is GCHandle?[], false); Eval(3477, o is object, false); Eval(3478, o is object[], false); Eval(3479, o is string, false); Eval(3480, o is string[], false); Eval(3481, o is ValueType, false); Eval(3482, o is ValueType[], false); Eval(3483, o is Array, false); Eval(3484, o is Array[], false); Eval(3485, o is Enum, false); Eval(3486, o is Enum[], false); Eval(3487, o is Delegate, false); Eval(3488, o is Delegate[], false); Eval(3489, o is MulticastDelegate, false); Eval(3490, o is MulticastDelegate[], false); Eval(3491, o is IEmpty, false); Eval(3492, o is IEmpty[], false); Eval(3493, o is INotEmpty, false); Eval(3494, o is INotEmpty[], false); Eval(3495, o is IEmptyGen<int>, false); Eval(3496, o is IEmptyGen<int>[], false); Eval(3497, o is INotEmptyGen<int>, false); Eval(3498, o is INotEmptyGen<int>[], false); Eval(3499, o is SimpleDelegate, false); Eval(3500, o is SimpleDelegate[], false); Eval(3501, o is GenericDelegate<int>, false); Eval(3502, o is GenericDelegate<int>[], false); Eval(3503, o is EmptyClass, false); Eval(3504, o is EmptyClass[], false); Eval(3505, o is NotEmptyClass, false); Eval(3506, o is NotEmptyClass[], false); Eval(3507, o is EmptyClassGen<int>, false); Eval(3508, o is EmptyClassGen<int>[], false); Eval(3509, o is NotEmptyClassGen<Guid>, false); Eval(3510, o is NotEmptyClassGen<Guid>[], false); Eval(3511, o is NotEmptyClassConstrainedGen<object>, false); Eval(3512, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3513, o is NestedClass, false); Eval(3514, o is NestedClass[], false); Eval(3515, o is NestedClassGen<Decimal>, false); Eval(3516, o is NestedClassGen<Decimal>[], false); Eval(3517, o is ImplementOneInterfaceC, false); Eval(3518, o is ImplementOneInterfaceC[], false); Eval(3519, o is ImplementTwoInterfaceC, false); Eval(3520, o is ImplementTwoInterfaceC[], false); Eval(3521, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3522, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3523, o is ImplementTwoInterfaceGenC<int>, false); Eval(3524, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3525, o is ImplementAllInterfaceC<int>, false); Eval(3526, o is ImplementAllInterfaceC<int>[], false); Eval(3527, o is SealedClass, false); Eval(3528, o is SealedClass[], false); } } // end of test case 0006 private static void TestCase0007() { { NestedStructGen<Decimal> v = default(NestedStructGen<Decimal>); ValueType o = v; Eval(3529, o is EmptyStruct, false); Eval(3530, o is EmptyStruct[], false); Eval(3531, o is EmptyStruct?, false); Eval(3532, o is EmptyStruct?[], false); Eval(3533, o is NotEmptyStruct, false); Eval(3534, o is NotEmptyStruct[], false); Eval(3535, o is NotEmptyStruct?, false); Eval(3536, o is NotEmptyStruct?[], false); Eval(3537, o is EmptyStructGen<int>, false); Eval(3538, o is EmptyStructGen<int>[], false); Eval(3539, o is EmptyStructGen<int>?, false); Eval(3540, o is EmptyStructGen<int>?[], false); Eval(3541, o is NotEmptyStructGen<Guid>, false); Eval(3542, o is NotEmptyStructGen<Guid>[], false); Eval(3543, o is NotEmptyStructGen<Guid>?, false); Eval(3544, o is NotEmptyStructGen<Guid>?[], false); Eval(3545, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3546, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3547, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3548, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3549, o is NestedStruct, false); Eval(3550, o is NestedStruct[], false); Eval(3551, o is NestedStruct?, false); Eval(3552, o is NestedStruct?[], false); Eval(3553, o is NestedStructGen<Decimal>, true); Eval(3554, o is NestedStructGen<Decimal>[], false); Eval(3555, o is NestedStructGen<Decimal>?, true); Eval(3556, o is NestedStructGen<Decimal>?[], false); Eval(3557, o is ExplicitFieldOffsetStruct, false); Eval(3558, o is ExplicitFieldOffsetStruct[], false); Eval(3559, o is ExplicitFieldOffsetStruct?, false); Eval(3560, o is ExplicitFieldOffsetStruct?[], false); Eval(3569, o is MarshalAsStruct, false); Eval(3570, o is MarshalAsStruct[], false); Eval(3571, o is MarshalAsStruct?, false); Eval(3572, o is MarshalAsStruct?[], false); Eval(3573, o is ImplementOneInterface, false); Eval(3574, o is ImplementOneInterface[], false); Eval(3575, o is ImplementOneInterface?, false); Eval(3576, o is ImplementOneInterface?[], false); Eval(3577, o is ImplementTwoInterface, false); Eval(3578, o is ImplementTwoInterface[], false); Eval(3579, o is ImplementTwoInterface?, false); Eval(3580, o is ImplementTwoInterface?[], false); Eval(3581, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3582, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3583, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3584, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3585, o is ImplementTwoInterfaceGen<int>, false); Eval(3586, o is ImplementTwoInterfaceGen<int>[], false); Eval(3587, o is ImplementTwoInterfaceGen<int>?, false); Eval(3588, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3589, o is ImplementAllInterface<int>, false); Eval(3590, o is ImplementAllInterface<int>[], false); Eval(3591, o is ImplementAllInterface<int>?, false); Eval(3592, o is ImplementAllInterface<int>?[], false); Eval(3593, o is IntE, false); Eval(3594, o is IntE[], false); Eval(3595, o is IntE?, false); Eval(3596, o is IntE?[], false); Eval(3597, o is ByteE, false); Eval(3598, o is ByteE[], false); Eval(3599, o is ByteE?, false); Eval(3600, o is ByteE?[], false); Eval(3601, o is LongE, false); Eval(3602, o is LongE[], false); Eval(3603, o is LongE?, false); Eval(3604, o is LongE?[], false); Eval(3605, o is char, false); Eval(3606, o is char[], false); Eval(3607, o is char?, false); Eval(3608, o is char?[], false); Eval(3609, o is bool, false); Eval(3610, o is bool[], false); Eval(3611, o is bool?, false); Eval(3612, o is bool?[], false); Eval(3613, o is byte, false); Eval(3614, o is byte[], false); Eval(3615, o is byte?, false); Eval(3616, o is byte?[], false); Eval(3617, o is sbyte, false); Eval(3618, o is sbyte[], false); Eval(3619, o is sbyte?, false); Eval(3620, o is sbyte?[], false); Eval(3621, o is short, false); Eval(3622, o is short[], false); Eval(3623, o is short?, false); Eval(3624, o is short?[], false); Eval(3625, o is ushort, false); Eval(3626, o is ushort[], false); Eval(3627, o is ushort?, false); Eval(3628, o is ushort?[], false); Eval(3629, o is int, false); Eval(3630, o is int[], false); Eval(3631, o is int?, false); Eval(3632, o is int?[], false); Eval(3633, o is uint, false); Eval(3634, o is uint[], false); Eval(3635, o is uint?, false); Eval(3636, o is uint?[], false); Eval(3637, o is long, false); Eval(3638, o is long[], false); Eval(3639, o is long?, false); Eval(3640, o is long?[], false); Eval(3641, o is ulong, false); Eval(3642, o is ulong[], false); Eval(3643, o is ulong?, false); Eval(3644, o is ulong?[], false); Eval(3645, o is float, false); Eval(3646, o is float[], false); Eval(3647, o is float?, false); Eval(3648, o is float?[], false); Eval(3649, o is double, false); Eval(3650, o is double[], false); Eval(3651, o is double?, false); Eval(3652, o is double?[], false); Eval(3653, o is decimal, false); Eval(3654, o is decimal[], false); Eval(3655, o is decimal?, false); Eval(3656, o is decimal?[], false); Eval(3657, o is IntPtr, false); Eval(3658, o is IntPtr[], false); Eval(3659, o is IntPtr?, false); Eval(3660, o is IntPtr?[], false); Eval(3661, o is UIntPtr, false); Eval(3662, o is UIntPtr[], false); Eval(3663, o is UIntPtr?, false); Eval(3664, o is UIntPtr?[], false); Eval(3665, o is Guid, false); Eval(3666, o is Guid[], false); Eval(3667, o is Guid?, false); Eval(3668, o is Guid?[], false); Eval(3669, o is GCHandle, false); Eval(3670, o is GCHandle[], false); Eval(3671, o is GCHandle?, false); Eval(3672, o is GCHandle?[], false); Eval(3673, o is object, true); Eval(3674, o is object[], false); Eval(3675, o is string, false); Eval(3676, o is string[], false); Eval(3677, o is ValueType, true); Eval(3678, o is ValueType[], false); Eval(3679, o is Array, false); Eval(3680, o is Array[], false); Eval(3681, o is Enum, false); Eval(3682, o is Enum[], false); Eval(3683, o is Delegate, false); Eval(3684, o is Delegate[], false); Eval(3685, o is MulticastDelegate, false); Eval(3686, o is MulticastDelegate[], false); Eval(3687, o is IEmpty, false); Eval(3688, o is IEmpty[], false); Eval(3689, o is INotEmpty, false); Eval(3690, o is INotEmpty[], false); Eval(3691, o is IEmptyGen<int>, false); Eval(3692, o is IEmptyGen<int>[], false); Eval(3693, o is INotEmptyGen<int>, false); Eval(3694, o is INotEmptyGen<int>[], false); Eval(3695, o is SimpleDelegate, false); Eval(3696, o is SimpleDelegate[], false); Eval(3697, o is GenericDelegate<int>, false); Eval(3698, o is GenericDelegate<int>[], false); Eval(3699, o is EmptyClass, false); Eval(3700, o is EmptyClass[], false); Eval(3701, o is NotEmptyClass, false); Eval(3702, o is NotEmptyClass[], false); Eval(3703, o is EmptyClassGen<int>, false); Eval(3704, o is EmptyClassGen<int>[], false); Eval(3705, o is NotEmptyClassGen<Guid>, false); Eval(3706, o is NotEmptyClassGen<Guid>[], false); Eval(3707, o is NotEmptyClassConstrainedGen<object>, false); Eval(3708, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3709, o is NestedClass, false); Eval(3710, o is NestedClass[], false); Eval(3711, o is NestedClassGen<Decimal>, false); Eval(3712, o is NestedClassGen<Decimal>[], false); Eval(3713, o is ImplementOneInterfaceC, false); Eval(3714, o is ImplementOneInterfaceC[], false); Eval(3715, o is ImplementTwoInterfaceC, false); Eval(3716, o is ImplementTwoInterfaceC[], false); Eval(3717, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3718, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3719, o is ImplementTwoInterfaceGenC<int>, false); Eval(3720, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3721, o is ImplementAllInterfaceC<int>, false); Eval(3722, o is ImplementAllInterfaceC<int>[], false); Eval(3723, o is SealedClass, false); Eval(3724, o is SealedClass[], false); } { NestedStructGen<Decimal>? v = default(NestedStructGen<Decimal>); ValueType o = v; Eval(3725, o is EmptyStruct, false); Eval(3726, o is EmptyStruct[], false); Eval(3727, o is EmptyStruct?, false); Eval(3728, o is EmptyStruct?[], false); Eval(3729, o is NotEmptyStruct, false); Eval(3730, o is NotEmptyStruct[], false); Eval(3731, o is NotEmptyStruct?, false); Eval(3732, o is NotEmptyStruct?[], false); Eval(3733, o is EmptyStructGen<int>, false); Eval(3734, o is EmptyStructGen<int>[], false); Eval(3735, o is EmptyStructGen<int>?, false); Eval(3736, o is EmptyStructGen<int>?[], false); Eval(3737, o is NotEmptyStructGen<Guid>, false); Eval(3738, o is NotEmptyStructGen<Guid>[], false); Eval(3739, o is NotEmptyStructGen<Guid>?, false); Eval(3740, o is NotEmptyStructGen<Guid>?[], false); Eval(3741, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3742, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3743, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3744, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3745, o is NestedStruct, false); Eval(3746, o is NestedStruct[], false); Eval(3747, o is NestedStruct?, false); Eval(3748, o is NestedStruct?[], false); Eval(3749, o is NestedStructGen<Decimal>, true); Eval(3750, o is NestedStructGen<Decimal>[], false); Eval(3751, o is NestedStructGen<Decimal>?, true); Eval(3752, o is NestedStructGen<Decimal>?[], false); Eval(3753, o is ExplicitFieldOffsetStruct, false); Eval(3754, o is ExplicitFieldOffsetStruct[], false); Eval(3755, o is ExplicitFieldOffsetStruct?, false); Eval(3756, o is ExplicitFieldOffsetStruct?[], false); Eval(3765, o is MarshalAsStruct, false); Eval(3766, o is MarshalAsStruct[], false); Eval(3767, o is MarshalAsStruct?, false); Eval(3768, o is MarshalAsStruct?[], false); Eval(3769, o is ImplementOneInterface, false); Eval(3770, o is ImplementOneInterface[], false); Eval(3771, o is ImplementOneInterface?, false); Eval(3772, o is ImplementOneInterface?[], false); Eval(3773, o is ImplementTwoInterface, false); Eval(3774, o is ImplementTwoInterface[], false); Eval(3775, o is ImplementTwoInterface?, false); Eval(3776, o is ImplementTwoInterface?[], false); Eval(3777, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3778, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3779, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3780, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3781, o is ImplementTwoInterfaceGen<int>, false); Eval(3782, o is ImplementTwoInterfaceGen<int>[], false); Eval(3783, o is ImplementTwoInterfaceGen<int>?, false); Eval(3784, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3785, o is ImplementAllInterface<int>, false); Eval(3786, o is ImplementAllInterface<int>[], false); Eval(3787, o is ImplementAllInterface<int>?, false); Eval(3788, o is ImplementAllInterface<int>?[], false); Eval(3789, o is IntE, false); Eval(3790, o is IntE[], false); Eval(3791, o is IntE?, false); Eval(3792, o is IntE?[], false); Eval(3793, o is ByteE, false); Eval(3794, o is ByteE[], false); Eval(3795, o is ByteE?, false); Eval(3796, o is ByteE?[], false); Eval(3797, o is LongE, false); Eval(3798, o is LongE[], false); Eval(3799, o is LongE?, false); Eval(3800, o is LongE?[], false); Eval(3801, o is char, false); Eval(3802, o is char[], false); Eval(3803, o is char?, false); Eval(3804, o is char?[], false); Eval(3805, o is bool, false); Eval(3806, o is bool[], false); Eval(3807, o is bool?, false); Eval(3808, o is bool?[], false); Eval(3809, o is byte, false); Eval(3810, o is byte[], false); Eval(3811, o is byte?, false); Eval(3812, o is byte?[], false); Eval(3813, o is sbyte, false); Eval(3814, o is sbyte[], false); Eval(3815, o is sbyte?, false); Eval(3816, o is sbyte?[], false); Eval(3817, o is short, false); Eval(3818, o is short[], false); Eval(3819, o is short?, false); Eval(3820, o is short?[], false); Eval(3821, o is ushort, false); Eval(3822, o is ushort[], false); Eval(3823, o is ushort?, false); Eval(3824, o is ushort?[], false); Eval(3825, o is int, false); Eval(3826, o is int[], false); Eval(3827, o is int?, false); Eval(3828, o is int?[], false); Eval(3829, o is uint, false); Eval(3830, o is uint[], false); Eval(3831, o is uint?, false); Eval(3832, o is uint?[], false); Eval(3833, o is long, false); Eval(3834, o is long[], false); Eval(3835, o is long?, false); Eval(3836, o is long?[], false); Eval(3837, o is ulong, false); Eval(3838, o is ulong[], false); Eval(3839, o is ulong?, false); Eval(3840, o is ulong?[], false); Eval(3841, o is float, false); Eval(3842, o is float[], false); Eval(3843, o is float?, false); Eval(3844, o is float?[], false); Eval(3845, o is double, false); Eval(3846, o is double[], false); Eval(3847, o is double?, false); Eval(3848, o is double?[], false); Eval(3849, o is decimal, false); Eval(3850, o is decimal[], false); Eval(3851, o is decimal?, false); Eval(3852, o is decimal?[], false); Eval(3853, o is IntPtr, false); Eval(3854, o is IntPtr[], false); Eval(3855, o is IntPtr?, false); Eval(3856, o is IntPtr?[], false); Eval(3857, o is UIntPtr, false); Eval(3858, o is UIntPtr[], false); Eval(3859, o is UIntPtr?, false); Eval(3860, o is UIntPtr?[], false); Eval(3861, o is Guid, false); Eval(3862, o is Guid[], false); Eval(3863, o is Guid?, false); Eval(3864, o is Guid?[], false); Eval(3865, o is GCHandle, false); Eval(3866, o is GCHandle[], false); Eval(3867, o is GCHandle?, false); Eval(3868, o is GCHandle?[], false); Eval(3869, o is object, true); Eval(3870, o is object[], false); Eval(3871, o is string, false); Eval(3872, o is string[], false); Eval(3873, o is ValueType, true); Eval(3874, o is ValueType[], false); Eval(3875, o is Array, false); Eval(3876, o is Array[], false); Eval(3877, o is Enum, false); Eval(3878, o is Enum[], false); Eval(3879, o is Delegate, false); Eval(3880, o is Delegate[], false); Eval(3881, o is MulticastDelegate, false); Eval(3882, o is MulticastDelegate[], false); Eval(3883, o is IEmpty, false); Eval(3884, o is IEmpty[], false); Eval(3885, o is INotEmpty, false); Eval(3886, o is INotEmpty[], false); Eval(3887, o is IEmptyGen<int>, false); Eval(3888, o is IEmptyGen<int>[], false); Eval(3889, o is INotEmptyGen<int>, false); Eval(3890, o is INotEmptyGen<int>[], false); Eval(3891, o is SimpleDelegate, false); Eval(3892, o is SimpleDelegate[], false); Eval(3893, o is GenericDelegate<int>, false); Eval(3894, o is GenericDelegate<int>[], false); Eval(3895, o is EmptyClass, false); Eval(3896, o is EmptyClass[], false); Eval(3897, o is NotEmptyClass, false); Eval(3898, o is NotEmptyClass[], false); Eval(3899, o is EmptyClassGen<int>, false); Eval(3900, o is EmptyClassGen<int>[], false); Eval(3901, o is NotEmptyClassGen<Guid>, false); Eval(3902, o is NotEmptyClassGen<Guid>[], false); Eval(3903, o is NotEmptyClassConstrainedGen<object>, false); Eval(3904, o is NotEmptyClassConstrainedGen<object>[], false); Eval(3905, o is NestedClass, false); Eval(3906, o is NestedClass[], false); Eval(3907, o is NestedClassGen<Decimal>, false); Eval(3908, o is NestedClassGen<Decimal>[], false); Eval(3909, o is ImplementOneInterfaceC, false); Eval(3910, o is ImplementOneInterfaceC[], false); Eval(3911, o is ImplementTwoInterfaceC, false); Eval(3912, o is ImplementTwoInterfaceC[], false); Eval(3913, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(3914, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(3915, o is ImplementTwoInterfaceGenC<int>, false); Eval(3916, o is ImplementTwoInterfaceGenC<int>[], false); Eval(3917, o is ImplementAllInterfaceC<int>, false); Eval(3918, o is ImplementAllInterfaceC<int>[], false); Eval(3919, o is SealedClass, false); Eval(3920, o is SealedClass[], false); } { NestedStructGen<Decimal>? v = default(NestedStructGen<Decimal>?); ValueType o = v; Eval(3921, o is EmptyStruct, false); Eval(3922, o is EmptyStruct[], false); Eval(3923, o is EmptyStruct?, false); Eval(3924, o is EmptyStruct?[], false); Eval(3925, o is NotEmptyStruct, false); Eval(3926, o is NotEmptyStruct[], false); Eval(3927, o is NotEmptyStruct?, false); Eval(3928, o is NotEmptyStruct?[], false); Eval(3929, o is EmptyStructGen<int>, false); Eval(3930, o is EmptyStructGen<int>[], false); Eval(3931, o is EmptyStructGen<int>?, false); Eval(3932, o is EmptyStructGen<int>?[], false); Eval(3933, o is NotEmptyStructGen<Guid>, false); Eval(3934, o is NotEmptyStructGen<Guid>[], false); Eval(3935, o is NotEmptyStructGen<Guid>?, false); Eval(3936, o is NotEmptyStructGen<Guid>?[], false); Eval(3937, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(3938, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(3939, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(3940, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(3941, o is NestedStruct, false); Eval(3942, o is NestedStruct[], false); Eval(3943, o is NestedStruct?, false); Eval(3944, o is NestedStruct?[], false); Eval(3945, o is NestedStructGen<Decimal>, false); Eval(3946, o is NestedStructGen<Decimal>[], false); Eval(3947, o is NestedStructGen<Decimal>?, false); Eval(3948, o is NestedStructGen<Decimal>?[], false); Eval(3949, o is ExplicitFieldOffsetStruct, false); Eval(3950, o is ExplicitFieldOffsetStruct[], false); Eval(3951, o is ExplicitFieldOffsetStruct?, false); Eval(3952, o is ExplicitFieldOffsetStruct?[], false); Eval(3961, o is MarshalAsStruct, false); Eval(3962, o is MarshalAsStruct[], false); Eval(3963, o is MarshalAsStruct?, false); Eval(3964, o is MarshalAsStruct?[], false); Eval(3965, o is ImplementOneInterface, false); Eval(3966, o is ImplementOneInterface[], false); Eval(3967, o is ImplementOneInterface?, false); Eval(3968, o is ImplementOneInterface?[], false); Eval(3969, o is ImplementTwoInterface, false); Eval(3970, o is ImplementTwoInterface[], false); Eval(3971, o is ImplementTwoInterface?, false); Eval(3972, o is ImplementTwoInterface?[], false); Eval(3973, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(3974, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(3975, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(3976, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(3977, o is ImplementTwoInterfaceGen<int>, false); Eval(3978, o is ImplementTwoInterfaceGen<int>[], false); Eval(3979, o is ImplementTwoInterfaceGen<int>?, false); Eval(3980, o is ImplementTwoInterfaceGen<int>?[], false); Eval(3981, o is ImplementAllInterface<int>, false); Eval(3982, o is ImplementAllInterface<int>[], false); Eval(3983, o is ImplementAllInterface<int>?, false); Eval(3984, o is ImplementAllInterface<int>?[], false); Eval(3985, o is IntE, false); Eval(3986, o is IntE[], false); Eval(3987, o is IntE?, false); Eval(3988, o is IntE?[], false); Eval(3989, o is ByteE, false); Eval(3990, o is ByteE[], false); Eval(3991, o is ByteE?, false); Eval(3992, o is ByteE?[], false); Eval(3993, o is LongE, false); Eval(3994, o is LongE[], false); Eval(3995, o is LongE?, false); Eval(3996, o is LongE?[], false); Eval(3997, o is char, false); Eval(3998, o is char[], false); Eval(3999, o is char?, false); Eval(4000, o is char?[], false); Eval(4001, o is bool, false); Eval(4002, o is bool[], false); Eval(4003, o is bool?, false); Eval(4004, o is bool?[], false); Eval(4005, o is byte, false); Eval(4006, o is byte[], false); Eval(4007, o is byte?, false); Eval(4008, o is byte?[], false); Eval(4009, o is sbyte, false); Eval(4010, o is sbyte[], false); Eval(4011, o is sbyte?, false); Eval(4012, o is sbyte?[], false); Eval(4013, o is short, false); Eval(4014, o is short[], false); Eval(4015, o is short?, false); Eval(4016, o is short?[], false); Eval(4017, o is ushort, false); Eval(4018, o is ushort[], false); Eval(4019, o is ushort?, false); Eval(4020, o is ushort?[], false); Eval(4021, o is int, false); Eval(4022, o is int[], false); Eval(4023, o is int?, false); Eval(4024, o is int?[], false); Eval(4025, o is uint, false); Eval(4026, o is uint[], false); Eval(4027, o is uint?, false); Eval(4028, o is uint?[], false); Eval(4029, o is long, false); Eval(4030, o is long[], false); Eval(4031, o is long?, false); Eval(4032, o is long?[], false); Eval(4033, o is ulong, false); Eval(4034, o is ulong[], false); Eval(4035, o is ulong?, false); Eval(4036, o is ulong?[], false); Eval(4037, o is float, false); Eval(4038, o is float[], false); Eval(4039, o is float?, false); Eval(4040, o is float?[], false); Eval(4041, o is double, false); Eval(4042, o is double[], false); Eval(4043, o is double?, false); Eval(4044, o is double?[], false); Eval(4045, o is decimal, false); Eval(4046, o is decimal[], false); Eval(4047, o is decimal?, false); Eval(4048, o is decimal?[], false); Eval(4049, o is IntPtr, false); Eval(4050, o is IntPtr[], false); Eval(4051, o is IntPtr?, false); Eval(4052, o is IntPtr?[], false); Eval(4053, o is UIntPtr, false); Eval(4054, o is UIntPtr[], false); Eval(4055, o is UIntPtr?, false); Eval(4056, o is UIntPtr?[], false); Eval(4057, o is Guid, false); Eval(4058, o is Guid[], false); Eval(4059, o is Guid?, false); Eval(4060, o is Guid?[], false); Eval(4061, o is GCHandle, false); Eval(4062, o is GCHandle[], false); Eval(4063, o is GCHandle?, false); Eval(4064, o is GCHandle?[], false); Eval(4065, o is object, false); Eval(4066, o is object[], false); Eval(4067, o is string, false); Eval(4068, o is string[], false); Eval(4069, o is ValueType, false); Eval(4070, o is ValueType[], false); Eval(4071, o is Array, false); Eval(4072, o is Array[], false); Eval(4073, o is Enum, false); Eval(4074, o is Enum[], false); Eval(4075, o is Delegate, false); Eval(4076, o is Delegate[], false); Eval(4077, o is MulticastDelegate, false); Eval(4078, o is MulticastDelegate[], false); Eval(4079, o is IEmpty, false); Eval(4080, o is IEmpty[], false); Eval(4081, o is INotEmpty, false); Eval(4082, o is INotEmpty[], false); Eval(4083, o is IEmptyGen<int>, false); Eval(4084, o is IEmptyGen<int>[], false); Eval(4085, o is INotEmptyGen<int>, false); Eval(4086, o is INotEmptyGen<int>[], false); Eval(4087, o is SimpleDelegate, false); Eval(4088, o is SimpleDelegate[], false); Eval(4089, o is GenericDelegate<int>, false); Eval(4090, o is GenericDelegate<int>[], false); Eval(4091, o is EmptyClass, false); Eval(4092, o is EmptyClass[], false); Eval(4093, o is NotEmptyClass, false); Eval(4094, o is NotEmptyClass[], false); Eval(4095, o is EmptyClassGen<int>, false); Eval(4096, o is EmptyClassGen<int>[], false); Eval(4097, o is NotEmptyClassGen<Guid>, false); Eval(4098, o is NotEmptyClassGen<Guid>[], false); Eval(4099, o is NotEmptyClassConstrainedGen<object>, false); Eval(4100, o is NotEmptyClassConstrainedGen<object>[], false); Eval(4101, o is NestedClass, false); Eval(4102, o is NestedClass[], false); Eval(4103, o is NestedClassGen<Decimal>, false); Eval(4104, o is NestedClassGen<Decimal>[], false); Eval(4105, o is ImplementOneInterfaceC, false); Eval(4106, o is ImplementOneInterfaceC[], false); Eval(4107, o is ImplementTwoInterfaceC, false); Eval(4108, o is ImplementTwoInterfaceC[], false); Eval(4109, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(4110, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(4111, o is ImplementTwoInterfaceGenC<int>, false); Eval(4112, o is ImplementTwoInterfaceGenC<int>[], false); Eval(4113, o is ImplementAllInterfaceC<int>, false); Eval(4114, o is ImplementAllInterfaceC<int>[], false); Eval(4115, o is SealedClass, false); Eval(4116, o is SealedClass[], false); } } // end of test case 0007 private static void TestCase0008() { { ExplicitFieldOffsetStruct v = default(ExplicitFieldOffsetStruct); ValueType o = v; Eval(4117, o is EmptyStruct, false); Eval(4118, o is EmptyStruct[], false); Eval(4119, o is EmptyStruct?, false); Eval(4120, o is EmptyStruct?[], false); Eval(4121, o is NotEmptyStruct, false); Eval(4122, o is NotEmptyStruct[], false); Eval(4123, o is NotEmptyStruct?, false); Eval(4124, o is NotEmptyStruct?[], false); Eval(4125, o is EmptyStructGen<int>, false); Eval(4126, o is EmptyStructGen<int>[], false); Eval(4127, o is EmptyStructGen<int>?, false); Eval(4128, o is EmptyStructGen<int>?[], false); Eval(4129, o is NotEmptyStructGen<Guid>, false); Eval(4130, o is NotEmptyStructGen<Guid>[], false); Eval(4131, o is NotEmptyStructGen<Guid>?, false); Eval(4132, o is NotEmptyStructGen<Guid>?[], false); Eval(4133, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(4134, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(4135, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(4136, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(4137, o is NestedStruct, false); Eval(4138, o is NestedStruct[], false); Eval(4139, o is NestedStruct?, false); Eval(4140, o is NestedStruct?[], false); Eval(4141, o is NestedStructGen<Decimal>, false); Eval(4142, o is NestedStructGen<Decimal>[], false); Eval(4143, o is NestedStructGen<Decimal>?, false); Eval(4144, o is NestedStructGen<Decimal>?[], false); Eval(4145, o is ExplicitFieldOffsetStruct, true); Eval(4146, o is ExplicitFieldOffsetStruct[], false); Eval(4147, o is ExplicitFieldOffsetStruct?, true); Eval(4148, o is ExplicitFieldOffsetStruct?[], false); Eval(4157, o is MarshalAsStruct, false); Eval(4158, o is MarshalAsStruct[], false); Eval(4159, o is MarshalAsStruct?, false); Eval(4160, o is MarshalAsStruct?[], false); Eval(4161, o is ImplementOneInterface, false); Eval(4162, o is ImplementOneInterface[], false); Eval(4163, o is ImplementOneInterface?, false); Eval(4164, o is ImplementOneInterface?[], false); Eval(4165, o is ImplementTwoInterface, false); Eval(4166, o is ImplementTwoInterface[], false); Eval(4167, o is ImplementTwoInterface?, false); Eval(4168, o is ImplementTwoInterface?[], false); Eval(4169, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(4170, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(4171, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(4172, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(4173, o is ImplementTwoInterfaceGen<int>, false); Eval(4174, o is ImplementTwoInterfaceGen<int>[], false); Eval(4175, o is ImplementTwoInterfaceGen<int>?, false); Eval(4176, o is ImplementTwoInterfaceGen<int>?[], false); Eval(4177, o is ImplementAllInterface<int>, false); Eval(4178, o is ImplementAllInterface<int>[], false); Eval(4179, o is ImplementAllInterface<int>?, false); Eval(4180, o is ImplementAllInterface<int>?[], false); Eval(4181, o is IntE, false); Eval(4182, o is IntE[], false); Eval(4183, o is IntE?, false); Eval(4184, o is IntE?[], false); Eval(4185, o is ByteE, false); Eval(4186, o is ByteE[], false); Eval(4187, o is ByteE?, false); Eval(4188, o is ByteE?[], false); Eval(4189, o is LongE, false); Eval(4190, o is LongE[], false); Eval(4191, o is LongE?, false); Eval(4192, o is LongE?[], false); Eval(4193, o is char, false); Eval(4194, o is char[], false); Eval(4195, o is char?, false); Eval(4196, o is char?[], false); Eval(4197, o is bool, false); Eval(4198, o is bool[], false); Eval(4199, o is bool?, false); Eval(4200, o is bool?[], false); Eval(4201, o is byte, false); Eval(4202, o is byte[], false); Eval(4203, o is byte?, false); Eval(4204, o is byte?[], false); Eval(4205, o is sbyte, false); Eval(4206, o is sbyte[], false); Eval(4207, o is sbyte?, false); Eval(4208, o is sbyte?[], false); Eval(4209, o is short, false); Eval(4210, o is short[], false); Eval(4211, o is short?, false); Eval(4212, o is short?[], false); Eval(4213, o is ushort, false); Eval(4214, o is ushort[], false); Eval(4215, o is ushort?, false); Eval(4216, o is ushort?[], false); Eval(4217, o is int, false); Eval(4218, o is int[], false); Eval(4219, o is int?, false); Eval(4220, o is int?[], false); Eval(4221, o is uint, false); Eval(4222, o is uint[], false); Eval(4223, o is uint?, false); Eval(4224, o is uint?[], false); Eval(4225, o is long, false); Eval(4226, o is long[], false); Eval(4227, o is long?, false); Eval(4228, o is long?[], false); Eval(4229, o is ulong, false); Eval(4230, o is ulong[], false); Eval(4231, o is ulong?, false); Eval(4232, o is ulong?[], false); Eval(4233, o is float, false); Eval(4234, o is float[], false); Eval(4235, o is float?, false); Eval(4236, o is float?[], false); Eval(4237, o is double, false); Eval(4238, o is double[], false); Eval(4239, o is double?, false); Eval(4240, o is double?[], false); Eval(4241, o is decimal, false); Eval(4242, o is decimal[], false); Eval(4243, o is decimal?, false); Eval(4244, o is decimal?[], false); Eval(4245, o is IntPtr, false); Eval(4246, o is IntPtr[], false); Eval(4247, o is IntPtr?, false); Eval(4248, o is IntPtr?[], false); Eval(4249, o is UIntPtr, false); Eval(4250, o is UIntPtr[], false); Eval(4251, o is UIntPtr?, false); Eval(4252, o is UIntPtr?[], false); Eval(4253, o is Guid, false); Eval(4254, o is Guid[], false); Eval(4255, o is Guid?, false); Eval(4256, o is Guid?[], false); Eval(4257, o is GCHandle, false); Eval(4258, o is GCHandle[], false); Eval(4259, o is GCHandle?, false); Eval(4260, o is GCHandle?[], false); Eval(4261, o is object, true); Eval(4262, o is object[], false); Eval(4263, o is string, false); Eval(4264, o is string[], false); Eval(4265, o is ValueType, true); Eval(4266, o is ValueType[], false); Eval(4267, o is Array, false); Eval(4268, o is Array[], false); Eval(4269, o is Enum, false); Eval(4270, o is Enum[], false); Eval(4271, o is Delegate, false); Eval(4272, o is Delegate[], false); Eval(4273, o is MulticastDelegate, false); Eval(4274, o is MulticastDelegate[], false); Eval(4275, o is IEmpty, false); Eval(4276, o is IEmpty[], false); Eval(4277, o is INotEmpty, false); Eval(4278, o is INotEmpty[], false); Eval(4279, o is IEmptyGen<int>, false); Eval(4280, o is IEmptyGen<int>[], false); Eval(4281, o is INotEmptyGen<int>, false); Eval(4282, o is INotEmptyGen<int>[], false); Eval(4283, o is SimpleDelegate, false); Eval(4284, o is SimpleDelegate[], false); Eval(4285, o is GenericDelegate<int>, false); Eval(4286, o is GenericDelegate<int>[], false); Eval(4287, o is EmptyClass, false); Eval(4288, o is EmptyClass[], false); Eval(4289, o is NotEmptyClass, false); Eval(4290, o is NotEmptyClass[], false); Eval(4291, o is EmptyClassGen<int>, false); Eval(4292, o is EmptyClassGen<int>[], false); Eval(4293, o is NotEmptyClassGen<Guid>, false); Eval(4294, o is NotEmptyClassGen<Guid>[], false); Eval(4295, o is NotEmptyClassConstrainedGen<object>, false); Eval(4296, o is NotEmptyClassConstrainedGen<object>[], false); Eval(4297, o is NestedClass, false); Eval(4298, o is NestedClass[], false); Eval(4299, o is NestedClassGen<Decimal>, false); Eval(4300, o is NestedClassGen<Decimal>[], false); Eval(4301, o is ImplementOneInterfaceC, false); Eval(4302, o is ImplementOneInterfaceC[], false); Eval(4303, o is ImplementTwoInterfaceC, false); Eval(4304, o is ImplementTwoInterfaceC[], false); Eval(4305, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(4306, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(4307, o is ImplementTwoInterfaceGenC<int>, false); Eval(4308, o is ImplementTwoInterfaceGenC<int>[], false); Eval(4309, o is ImplementAllInterfaceC<int>, false); Eval(4310, o is ImplementAllInterfaceC<int>[], false); Eval(4311, o is SealedClass, false); Eval(4312, o is SealedClass[], false); } { ExplicitFieldOffsetStruct? v = default(ExplicitFieldOffsetStruct); ValueType o = v; Eval(4313, o is EmptyStruct, false); Eval(4314, o is EmptyStruct[], false); Eval(4315, o is EmptyStruct?, false); Eval(4316, o is EmptyStruct?[], false); Eval(4317, o is NotEmptyStruct, false); Eval(4318, o is NotEmptyStruct[], false); Eval(4319, o is NotEmptyStruct?, false); Eval(4320, o is NotEmptyStruct?[], false); Eval(4321, o is EmptyStructGen<int>, false); Eval(4322, o is EmptyStructGen<int>[], false); Eval(4323, o is EmptyStructGen<int>?, false); Eval(4324, o is EmptyStructGen<int>?[], false); Eval(4325, o is NotEmptyStructGen<Guid>, false); Eval(4326, o is NotEmptyStructGen<Guid>[], false); Eval(4327, o is NotEmptyStructGen<Guid>?, false); Eval(4328, o is NotEmptyStructGen<Guid>?[], false); Eval(4329, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(4330, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(4331, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(4332, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(4333, o is NestedStruct, false); Eval(4334, o is NestedStruct[], false); Eval(4335, o is NestedStruct?, false); Eval(4336, o is NestedStruct?[], false); Eval(4337, o is NestedStructGen<Decimal>, false); Eval(4338, o is NestedStructGen<Decimal>[], false); Eval(4339, o is NestedStructGen<Decimal>?, false); Eval(4340, o is NestedStructGen<Decimal>?[], false); Eval(4341, o is ExplicitFieldOffsetStruct, true); Eval(4342, o is ExplicitFieldOffsetStruct[], false); Eval(4343, o is ExplicitFieldOffsetStruct?, true); Eval(4344, o is ExplicitFieldOffsetStruct?[], false); Eval(4353, o is MarshalAsStruct, false); Eval(4354, o is MarshalAsStruct[], false); Eval(4355, o is MarshalAsStruct?, false); Eval(4356, o is MarshalAsStruct?[], false); Eval(4357, o is ImplementOneInterface, false); Eval(4358, o is ImplementOneInterface[], false); Eval(4359, o is ImplementOneInterface?, false); Eval(4360, o is ImplementOneInterface?[], false); Eval(4361, o is ImplementTwoInterface, false); Eval(4362, o is ImplementTwoInterface[], false); Eval(4363, o is ImplementTwoInterface?, false); Eval(4364, o is ImplementTwoInterface?[], false); Eval(4365, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(4366, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(4367, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(4368, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(4369, o is ImplementTwoInterfaceGen<int>, false); Eval(4370, o is ImplementTwoInterfaceGen<int>[], false); Eval(4371, o is ImplementTwoInterfaceGen<int>?, false); Eval(4372, o is ImplementTwoInterfaceGen<int>?[], false); Eval(4373, o is ImplementAllInterface<int>, false); Eval(4374, o is ImplementAllInterface<int>[], false); Eval(4375, o is ImplementAllInterface<int>?, false); Eval(4376, o is ImplementAllInterface<int>?[], false); Eval(4377, o is IntE, false); Eval(4378, o is IntE[], false); Eval(4379, o is IntE?, false); Eval(4380, o is IntE?[], false); Eval(4381, o is ByteE, false); Eval(4382, o is ByteE[], false); Eval(4383, o is ByteE?, false); Eval(4384, o is ByteE?[], false); Eval(4385, o is LongE, false); Eval(4386, o is LongE[], false); Eval(4387, o is LongE?, false); Eval(4388, o is LongE?[], false); Eval(4389, o is char, false); Eval(4390, o is char[], false); Eval(4391, o is char?, false); Eval(4392, o is char?[], false); Eval(4393, o is bool, false); Eval(4394, o is bool[], false); Eval(4395, o is bool?, false); Eval(4396, o is bool?[], false); Eval(4397, o is byte, false); Eval(4398, o is byte[], false); Eval(4399, o is byte?, false); Eval(4400, o is byte?[], false); Eval(4401, o is sbyte, false); Eval(4402, o is sbyte[], false); Eval(4403, o is sbyte?, false); Eval(4404, o is sbyte?[], false); Eval(4405, o is short, false); Eval(4406, o is short[], false); Eval(4407, o is short?, false); Eval(4408, o is short?[], false); Eval(4409, o is ushort, false); Eval(4410, o is ushort[], false); Eval(4411, o is ushort?, false); Eval(4412, o is ushort?[], false); Eval(4413, o is int, false); Eval(4414, o is int[], false); Eval(4415, o is int?, false); Eval(4416, o is int?[], false); Eval(4417, o is uint, false); Eval(4418, o is uint[], false); Eval(4419, o is uint?, false); Eval(4420, o is uint?[], false); Eval(4421, o is long, false); Eval(4422, o is long[], false); Eval(4423, o is long?, false); Eval(4424, o is long?[], false); Eval(4425, o is ulong, false); Eval(4426, o is ulong[], false); Eval(4427, o is ulong?, false); Eval(4428, o is ulong?[], false); Eval(4429, o is float, false); Eval(4430, o is float[], false); Eval(4431, o is float?, false); Eval(4432, o is float?[], false); Eval(4433, o is double, false); Eval(4434, o is double[], false); Eval(4435, o is double?, false); Eval(4436, o is double?[], false); Eval(4437, o is decimal, false); Eval(4438, o is decimal[], false); Eval(4439, o is decimal?, false); Eval(4440, o is decimal?[], false); Eval(4441, o is IntPtr, false); Eval(4442, o is IntPtr[], false); Eval(4443, o is IntPtr?, false); Eval(4444, o is IntPtr?[], false); Eval(4445, o is UIntPtr, false); Eval(4446, o is UIntPtr[], false); Eval(4447, o is UIntPtr?, false); Eval(4448, o is UIntPtr?[], false); Eval(4449, o is Guid, false); Eval(4450, o is Guid[], false); Eval(4451, o is Guid?, false); Eval(4452, o is Guid?[], false); Eval(4453, o is GCHandle, false); Eval(4454, o is GCHandle[], false); Eval(4455, o is GCHandle?, false); Eval(4456, o is GCHandle?[], false); Eval(4457, o is object, true); Eval(4458, o is object[], false); Eval(4459, o is string, false); Eval(4460, o is string[], false); Eval(4461, o is ValueType, true); Eval(4462, o is ValueType[], false); Eval(4463, o is Array, false); Eval(4464, o is Array[], false); Eval(4465, o is Enum, false); Eval(4466, o is Enum[], false); Eval(4467, o is Delegate, false); Eval(4468, o is Delegate[], false); Eval(4469, o is MulticastDelegate, false); Eval(4470, o is MulticastDelegate[], false); Eval(4471, o is IEmpty, false); Eval(4472, o is IEmpty[], false); Eval(4473, o is INotEmpty, false); Eval(4474, o is INotEmpty[], false); Eval(4475, o is IEmptyGen<int>, false); Eval(4476, o is IEmptyGen<int>[], false); Eval(4477, o is INotEmptyGen<int>, false); Eval(4478, o is INotEmptyGen<int>[], false); Eval(4479, o is SimpleDelegate, false); Eval(4480, o is SimpleDelegate[], false); Eval(4481, o is GenericDelegate<int>, false); Eval(4482, o is GenericDelegate<int>[], false); Eval(4483, o is EmptyClass, false); Eval(4484, o is EmptyClass[], false); Eval(4485, o is NotEmptyClass, false); Eval(4486, o is NotEmptyClass[], false); Eval(4487, o is EmptyClassGen<int>, false); Eval(4488, o is EmptyClassGen<int>[], false); Eval(4489, o is NotEmptyClassGen<Guid>, false); Eval(4490, o is NotEmptyClassGen<Guid>[], false); Eval(4491, o is NotEmptyClassConstrainedGen<object>, false); Eval(4492, o is NotEmptyClassConstrainedGen<object>[], false); Eval(4493, o is NestedClass, false); Eval(4494, o is NestedClass[], false); Eval(4495, o is NestedClassGen<Decimal>, false); Eval(4496, o is NestedClassGen<Decimal>[], false); Eval(4497, o is ImplementOneInterfaceC, false); Eval(4498, o is ImplementOneInterfaceC[], false); Eval(4499, o is ImplementTwoInterfaceC, false); Eval(4500, o is ImplementTwoInterfaceC[], false); Eval(4501, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(4502, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(4503, o is ImplementTwoInterfaceGenC<int>, false); Eval(4504, o is ImplementTwoInterfaceGenC<int>[], false); Eval(4505, o is ImplementAllInterfaceC<int>, false); Eval(4506, o is ImplementAllInterfaceC<int>[], false); Eval(4507, o is SealedClass, false); Eval(4508, o is SealedClass[], false); } { ExplicitFieldOffsetStruct? v = default(ExplicitFieldOffsetStruct?); ValueType o = v; Eval(4509, o is EmptyStruct, false); Eval(4510, o is EmptyStruct[], false); Eval(4511, o is EmptyStruct?, false); Eval(4512, o is EmptyStruct?[], false); Eval(4513, o is NotEmptyStruct, false); Eval(4514, o is NotEmptyStruct[], false); Eval(4515, o is NotEmptyStruct?, false); Eval(4516, o is NotEmptyStruct?[], false); Eval(4517, o is EmptyStructGen<int>, false); Eval(4518, o is EmptyStructGen<int>[], false); Eval(4519, o is EmptyStructGen<int>?, false); Eval(4520, o is EmptyStructGen<int>?[], false); Eval(4521, o is NotEmptyStructGen<Guid>, false); Eval(4522, o is NotEmptyStructGen<Guid>[], false); Eval(4523, o is NotEmptyStructGen<Guid>?, false); Eval(4524, o is NotEmptyStructGen<Guid>?[], false); Eval(4525, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(4526, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(4527, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(4528, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(4529, o is NestedStruct, false); Eval(4530, o is NestedStruct[], false); Eval(4531, o is NestedStruct?, false); Eval(4532, o is NestedStruct?[], false); Eval(4533, o is NestedStructGen<Decimal>, false); Eval(4534, o is NestedStructGen<Decimal>[], false); Eval(4535, o is NestedStructGen<Decimal>?, false); Eval(4536, o is NestedStructGen<Decimal>?[], false); Eval(4537, o is ExplicitFieldOffsetStruct, false); Eval(4538, o is ExplicitFieldOffsetStruct[], false); Eval(4539, o is ExplicitFieldOffsetStruct?, false); Eval(4540, o is ExplicitFieldOffsetStruct?[], false); Eval(4549, o is MarshalAsStruct, false); Eval(4550, o is MarshalAsStruct[], false); Eval(4551, o is MarshalAsStruct?, false); Eval(4552, o is MarshalAsStruct?[], false); Eval(4553, o is ImplementOneInterface, false); Eval(4554, o is ImplementOneInterface[], false); Eval(4555, o is ImplementOneInterface?, false); Eval(4556, o is ImplementOneInterface?[], false); Eval(4557, o is ImplementTwoInterface, false); Eval(4558, o is ImplementTwoInterface[], false); Eval(4559, o is ImplementTwoInterface?, false); Eval(4560, o is ImplementTwoInterface?[], false); Eval(4561, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(4562, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(4563, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(4564, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(4565, o is ImplementTwoInterfaceGen<int>, false); Eval(4566, o is ImplementTwoInterfaceGen<int>[], false); Eval(4567, o is ImplementTwoInterfaceGen<int>?, false); Eval(4568, o is ImplementTwoInterfaceGen<int>?[], false); Eval(4569, o is ImplementAllInterface<int>, false); Eval(4570, o is ImplementAllInterface<int>[], false); Eval(4571, o is ImplementAllInterface<int>?, false); Eval(4572, o is ImplementAllInterface<int>?[], false); Eval(4573, o is IntE, false); Eval(4574, o is IntE[], false); Eval(4575, o is IntE?, false); Eval(4576, o is IntE?[], false); Eval(4577, o is ByteE, false); Eval(4578, o is ByteE[], false); Eval(4579, o is ByteE?, false); Eval(4580, o is ByteE?[], false); Eval(4581, o is LongE, false); Eval(4582, o is LongE[], false); Eval(4583, o is LongE?, false); Eval(4584, o is LongE?[], false); Eval(4585, o is char, false); Eval(4586, o is char[], false); Eval(4587, o is char?, false); Eval(4588, o is char?[], false); Eval(4589, o is bool, false); Eval(4590, o is bool[], false); Eval(4591, o is bool?, false); Eval(4592, o is bool?[], false); Eval(4593, o is byte, false); Eval(4594, o is byte[], false); Eval(4595, o is byte?, false); Eval(4596, o is byte?[], false); Eval(4597, o is sbyte, false); Eval(4598, o is sbyte[], false); Eval(4599, o is sbyte?, false); Eval(4600, o is sbyte?[], false); Eval(4601, o is short, false); Eval(4602, o is short[], false); Eval(4603, o is short?, false); Eval(4604, o is short?[], false); Eval(4605, o is ushort, false); Eval(4606, o is ushort[], false); Eval(4607, o is ushort?, false); Eval(4608, o is ushort?[], false); Eval(4609, o is int, false); Eval(4610, o is int[], false); Eval(4611, o is int?, false); Eval(4612, o is int?[], false); Eval(4613, o is uint, false); Eval(4614, o is uint[], false); Eval(4615, o is uint?, false); Eval(4616, o is uint?[], false); Eval(4617, o is long, false); Eval(4618, o is long[], false); Eval(4619, o is long?, false); Eval(4620, o is long?[], false); Eval(4621, o is ulong, false); Eval(4622, o is ulong[], false); Eval(4623, o is ulong?, false); Eval(4624, o is ulong?[], false); Eval(4625, o is float, false); Eval(4626, o is float[], false); Eval(4627, o is float?, false); Eval(4628, o is float?[], false); Eval(4629, o is double, false); Eval(4630, o is double[], false); Eval(4631, o is double?, false); Eval(4632, o is double?[], false); Eval(4633, o is decimal, false); Eval(4634, o is decimal[], false); Eval(4635, o is decimal?, false); Eval(4636, o is decimal?[], false); Eval(4637, o is IntPtr, false); Eval(4638, o is IntPtr[], false); Eval(4639, o is IntPtr?, false); Eval(4640, o is IntPtr?[], false); Eval(4641, o is UIntPtr, false); Eval(4642, o is UIntPtr[], false); Eval(4643, o is UIntPtr?, false); Eval(4644, o is UIntPtr?[], false); Eval(4645, o is Guid, false); Eval(4646, o is Guid[], false); Eval(4647, o is Guid?, false); Eval(4648, o is Guid?[], false); Eval(4649, o is GCHandle, false); Eval(4650, o is GCHandle[], false); Eval(4651, o is GCHandle?, false); Eval(4652, o is GCHandle?[], false); Eval(4653, o is object, false); Eval(4654, o is object[], false); Eval(4655, o is string, false); Eval(4656, o is string[], false); Eval(4657, o is ValueType, false); Eval(4658, o is ValueType[], false); Eval(4659, o is Array, false); Eval(4660, o is Array[], false); Eval(4661, o is Enum, false); Eval(4662, o is Enum[], false); Eval(4663, o is Delegate, false); Eval(4664, o is Delegate[], false); Eval(4665, o is MulticastDelegate, false); Eval(4666, o is MulticastDelegate[], false); Eval(4667, o is IEmpty, false); Eval(4668, o is IEmpty[], false); Eval(4669, o is INotEmpty, false); Eval(4670, o is INotEmpty[], false); Eval(4671, o is IEmptyGen<int>, false); Eval(4672, o is IEmptyGen<int>[], false); Eval(4673, o is INotEmptyGen<int>, false); Eval(4674, o is INotEmptyGen<int>[], false); Eval(4675, o is SimpleDelegate, false); Eval(4676, o is SimpleDelegate[], false); Eval(4677, o is GenericDelegate<int>, false); Eval(4678, o is GenericDelegate<int>[], false); Eval(4679, o is EmptyClass, false); Eval(4680, o is EmptyClass[], false); Eval(4681, o is NotEmptyClass, false); Eval(4682, o is NotEmptyClass[], false); Eval(4683, o is EmptyClassGen<int>, false); Eval(4684, o is EmptyClassGen<int>[], false); Eval(4685, o is NotEmptyClassGen<Guid>, false); Eval(4686, o is NotEmptyClassGen<Guid>[], false); Eval(4687, o is NotEmptyClassConstrainedGen<object>, false); Eval(4688, o is NotEmptyClassConstrainedGen<object>[], false); Eval(4689, o is NestedClass, false); Eval(4690, o is NestedClass[], false); Eval(4691, o is NestedClassGen<Decimal>, false); Eval(4692, o is NestedClassGen<Decimal>[], false); Eval(4693, o is ImplementOneInterfaceC, false); Eval(4694, o is ImplementOneInterfaceC[], false); Eval(4695, o is ImplementTwoInterfaceC, false); Eval(4696, o is ImplementTwoInterfaceC[], false); Eval(4697, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(4698, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(4699, o is ImplementTwoInterfaceGenC<int>, false); Eval(4700, o is ImplementTwoInterfaceGenC<int>[], false); Eval(4701, o is ImplementAllInterfaceC<int>, false); Eval(4702, o is ImplementAllInterfaceC<int>[], false); Eval(4703, o is SealedClass, false); Eval(4704, o is SealedClass[], false); } } // end of test case 0008 private static void TestCase0011() { { MarshalAsStruct v = default(MarshalAsStruct); ValueType o = v; Eval(5881, o is EmptyStruct, false); Eval(5882, o is EmptyStruct[], false); Eval(5883, o is EmptyStruct?, false); Eval(5884, o is EmptyStruct?[], false); Eval(5885, o is NotEmptyStruct, false); Eval(5886, o is NotEmptyStruct[], false); Eval(5887, o is NotEmptyStruct?, false); Eval(5888, o is NotEmptyStruct?[], false); Eval(5889, o is EmptyStructGen<int>, false); Eval(5890, o is EmptyStructGen<int>[], false); Eval(5891, o is EmptyStructGen<int>?, false); Eval(5892, o is EmptyStructGen<int>?[], false); Eval(5893, o is NotEmptyStructGen<Guid>, false); Eval(5894, o is NotEmptyStructGen<Guid>[], false); Eval(5895, o is NotEmptyStructGen<Guid>?, false); Eval(5896, o is NotEmptyStructGen<Guid>?[], false); Eval(5897, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(5898, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(5899, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(5900, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(5901, o is NestedStruct, false); Eval(5902, o is NestedStruct[], false); Eval(5903, o is NestedStruct?, false); Eval(5904, o is NestedStruct?[], false); Eval(5905, o is NestedStructGen<Decimal>, false); Eval(5906, o is NestedStructGen<Decimal>[], false); Eval(5907, o is NestedStructGen<Decimal>?, false); Eval(5908, o is NestedStructGen<Decimal>?[], false); Eval(5909, o is ExplicitFieldOffsetStruct, false); Eval(5910, o is ExplicitFieldOffsetStruct[], false); Eval(5911, o is ExplicitFieldOffsetStruct?, false); Eval(5912, o is ExplicitFieldOffsetStruct?[], false); Eval(5921, o is MarshalAsStruct, true); Eval(5922, o is MarshalAsStruct[], false); Eval(5923, o is MarshalAsStruct?, true); Eval(5924, o is MarshalAsStruct?[], false); Eval(5925, o is ImplementOneInterface, false); Eval(5926, o is ImplementOneInterface[], false); Eval(5927, o is ImplementOneInterface?, false); Eval(5928, o is ImplementOneInterface?[], false); Eval(5929, o is ImplementTwoInterface, false); Eval(5930, o is ImplementTwoInterface[], false); Eval(5931, o is ImplementTwoInterface?, false); Eval(5932, o is ImplementTwoInterface?[], false); Eval(5933, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(5934, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(5935, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(5936, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(5937, o is ImplementTwoInterfaceGen<int>, false); Eval(5938, o is ImplementTwoInterfaceGen<int>[], false); Eval(5939, o is ImplementTwoInterfaceGen<int>?, false); Eval(5940, o is ImplementTwoInterfaceGen<int>?[], false); Eval(5941, o is ImplementAllInterface<int>, false); Eval(5942, o is ImplementAllInterface<int>[], false); Eval(5943, o is ImplementAllInterface<int>?, false); Eval(5944, o is ImplementAllInterface<int>?[], false); Eval(5945, o is IntE, false); Eval(5946, o is IntE[], false); Eval(5947, o is IntE?, false); Eval(5948, o is IntE?[], false); Eval(5949, o is ByteE, false); Eval(5950, o is ByteE[], false); Eval(5951, o is ByteE?, false); Eval(5952, o is ByteE?[], false); Eval(5953, o is LongE, false); Eval(5954, o is LongE[], false); Eval(5955, o is LongE?, false); Eval(5956, o is LongE?[], false); Eval(5957, o is char, false); Eval(5958, o is char[], false); Eval(5959, o is char?, false); Eval(5960, o is char?[], false); Eval(5961, o is bool, false); Eval(5962, o is bool[], false); Eval(5963, o is bool?, false); Eval(5964, o is bool?[], false); Eval(5965, o is byte, false); Eval(5966, o is byte[], false); Eval(5967, o is byte?, false); Eval(5968, o is byte?[], false); Eval(5969, o is sbyte, false); Eval(5970, o is sbyte[], false); Eval(5971, o is sbyte?, false); Eval(5972, o is sbyte?[], false); Eval(5973, o is short, false); Eval(5974, o is short[], false); Eval(5975, o is short?, false); Eval(5976, o is short?[], false); Eval(5977, o is ushort, false); Eval(5978, o is ushort[], false); Eval(5979, o is ushort?, false); Eval(5980, o is ushort?[], false); Eval(5981, o is int, false); Eval(5982, o is int[], false); Eval(5983, o is int?, false); Eval(5984, o is int?[], false); Eval(5985, o is uint, false); Eval(5986, o is uint[], false); Eval(5987, o is uint?, false); Eval(5988, o is uint?[], false); Eval(5989, o is long, false); Eval(5990, o is long[], false); Eval(5991, o is long?, false); Eval(5992, o is long?[], false); Eval(5993, o is ulong, false); Eval(5994, o is ulong[], false); Eval(5995, o is ulong?, false); Eval(5996, o is ulong?[], false); Eval(5997, o is float, false); Eval(5998, o is float[], false); Eval(5999, o is float?, false); Eval(6000, o is float?[], false); Eval(6001, o is double, false); Eval(6002, o is double[], false); Eval(6003, o is double?, false); Eval(6004, o is double?[], false); Eval(6005, o is decimal, false); Eval(6006, o is decimal[], false); Eval(6007, o is decimal?, false); Eval(6008, o is decimal?[], false); Eval(6009, o is IntPtr, false); Eval(6010, o is IntPtr[], false); Eval(6011, o is IntPtr?, false); Eval(6012, o is IntPtr?[], false); Eval(6013, o is UIntPtr, false); Eval(6014, o is UIntPtr[], false); Eval(6015, o is UIntPtr?, false); Eval(6016, o is UIntPtr?[], false); Eval(6017, o is Guid, false); Eval(6018, o is Guid[], false); Eval(6019, o is Guid?, false); Eval(6020, o is Guid?[], false); Eval(6021, o is GCHandle, false); Eval(6022, o is GCHandle[], false); Eval(6023, o is GCHandle?, false); Eval(6024, o is GCHandle?[], false); Eval(6025, o is object, true); Eval(6026, o is object[], false); Eval(6027, o is string, false); Eval(6028, o is string[], false); Eval(6029, o is ValueType, true); Eval(6030, o is ValueType[], false); Eval(6031, o is Array, false); Eval(6032, o is Array[], false); Eval(6033, o is Enum, false); Eval(6034, o is Enum[], false); Eval(6035, o is Delegate, false); Eval(6036, o is Delegate[], false); Eval(6037, o is MulticastDelegate, false); Eval(6038, o is MulticastDelegate[], false); Eval(6039, o is IEmpty, false); Eval(6040, o is IEmpty[], false); Eval(6041, o is INotEmpty, false); Eval(6042, o is INotEmpty[], false); Eval(6043, o is IEmptyGen<int>, false); Eval(6044, o is IEmptyGen<int>[], false); Eval(6045, o is INotEmptyGen<int>, false); Eval(6046, o is INotEmptyGen<int>[], false); Eval(6047, o is SimpleDelegate, false); Eval(6048, o is SimpleDelegate[], false); Eval(6049, o is GenericDelegate<int>, false); Eval(6050, o is GenericDelegate<int>[], false); Eval(6051, o is EmptyClass, false); Eval(6052, o is EmptyClass[], false); Eval(6053, o is NotEmptyClass, false); Eval(6054, o is NotEmptyClass[], false); Eval(6055, o is EmptyClassGen<int>, false); Eval(6056, o is EmptyClassGen<int>[], false); Eval(6057, o is NotEmptyClassGen<Guid>, false); Eval(6058, o is NotEmptyClassGen<Guid>[], false); Eval(6059, o is NotEmptyClassConstrainedGen<object>, false); Eval(6060, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6061, o is NestedClass, false); Eval(6062, o is NestedClass[], false); Eval(6063, o is NestedClassGen<Decimal>, false); Eval(6064, o is NestedClassGen<Decimal>[], false); Eval(6065, o is ImplementOneInterfaceC, false); Eval(6066, o is ImplementOneInterfaceC[], false); Eval(6067, o is ImplementTwoInterfaceC, false); Eval(6068, o is ImplementTwoInterfaceC[], false); Eval(6069, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6070, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6071, o is ImplementTwoInterfaceGenC<int>, false); Eval(6072, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6073, o is ImplementAllInterfaceC<int>, false); Eval(6074, o is ImplementAllInterfaceC<int>[], false); Eval(6075, o is SealedClass, false); Eval(6076, o is SealedClass[], false); } { MarshalAsStruct? v = default(MarshalAsStruct); ValueType o = v; Eval(6077, o is EmptyStruct, false); Eval(6078, o is EmptyStruct[], false); Eval(6079, o is EmptyStruct?, false); Eval(6080, o is EmptyStruct?[], false); Eval(6081, o is NotEmptyStruct, false); Eval(6082, o is NotEmptyStruct[], false); Eval(6083, o is NotEmptyStruct?, false); Eval(6084, o is NotEmptyStruct?[], false); Eval(6085, o is EmptyStructGen<int>, false); Eval(6086, o is EmptyStructGen<int>[], false); Eval(6087, o is EmptyStructGen<int>?, false); Eval(6088, o is EmptyStructGen<int>?[], false); Eval(6089, o is NotEmptyStructGen<Guid>, false); Eval(6090, o is NotEmptyStructGen<Guid>[], false); Eval(6091, o is NotEmptyStructGen<Guid>?, false); Eval(6092, o is NotEmptyStructGen<Guid>?[], false); Eval(6093, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6094, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6095, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6096, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6097, o is NestedStruct, false); Eval(6098, o is NestedStruct[], false); Eval(6099, o is NestedStruct?, false); Eval(6100, o is NestedStruct?[], false); Eval(6101, o is NestedStructGen<Decimal>, false); Eval(6102, o is NestedStructGen<Decimal>[], false); Eval(6103, o is NestedStructGen<Decimal>?, false); Eval(6104, o is NestedStructGen<Decimal>?[], false); Eval(6105, o is ExplicitFieldOffsetStruct, false); Eval(6106, o is ExplicitFieldOffsetStruct[], false); Eval(6107, o is ExplicitFieldOffsetStruct?, false); Eval(6108, o is ExplicitFieldOffsetStruct?[], false); Eval(6117, o is MarshalAsStruct, true); Eval(6118, o is MarshalAsStruct[], false); Eval(6119, o is MarshalAsStruct?, true); Eval(6120, o is MarshalAsStruct?[], false); Eval(6121, o is ImplementOneInterface, false); Eval(6122, o is ImplementOneInterface[], false); Eval(6123, o is ImplementOneInterface?, false); Eval(6124, o is ImplementOneInterface?[], false); Eval(6125, o is ImplementTwoInterface, false); Eval(6126, o is ImplementTwoInterface[], false); Eval(6127, o is ImplementTwoInterface?, false); Eval(6128, o is ImplementTwoInterface?[], false); Eval(6129, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6130, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6131, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6132, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6133, o is ImplementTwoInterfaceGen<int>, false); Eval(6134, o is ImplementTwoInterfaceGen<int>[], false); Eval(6135, o is ImplementTwoInterfaceGen<int>?, false); Eval(6136, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6137, o is ImplementAllInterface<int>, false); Eval(6138, o is ImplementAllInterface<int>[], false); Eval(6139, o is ImplementAllInterface<int>?, false); Eval(6140, o is ImplementAllInterface<int>?[], false); Eval(6141, o is IntE, false); Eval(6142, o is IntE[], false); Eval(6143, o is IntE?, false); Eval(6144, o is IntE?[], false); Eval(6145, o is ByteE, false); Eval(6146, o is ByteE[], false); Eval(6147, o is ByteE?, false); Eval(6148, o is ByteE?[], false); Eval(6149, o is LongE, false); Eval(6150, o is LongE[], false); Eval(6151, o is LongE?, false); Eval(6152, o is LongE?[], false); Eval(6153, o is char, false); Eval(6154, o is char[], false); Eval(6155, o is char?, false); Eval(6156, o is char?[], false); Eval(6157, o is bool, false); Eval(6158, o is bool[], false); Eval(6159, o is bool?, false); Eval(6160, o is bool?[], false); Eval(6161, o is byte, false); Eval(6162, o is byte[], false); Eval(6163, o is byte?, false); Eval(6164, o is byte?[], false); Eval(6165, o is sbyte, false); Eval(6166, o is sbyte[], false); Eval(6167, o is sbyte?, false); Eval(6168, o is sbyte?[], false); Eval(6169, o is short, false); Eval(6170, o is short[], false); Eval(6171, o is short?, false); Eval(6172, o is short?[], false); Eval(6173, o is ushort, false); Eval(6174, o is ushort[], false); Eval(6175, o is ushort?, false); Eval(6176, o is ushort?[], false); Eval(6177, o is int, false); Eval(6178, o is int[], false); Eval(6179, o is int?, false); Eval(6180, o is int?[], false); Eval(6181, o is uint, false); Eval(6182, o is uint[], false); Eval(6183, o is uint?, false); Eval(6184, o is uint?[], false); Eval(6185, o is long, false); Eval(6186, o is long[], false); Eval(6187, o is long?, false); Eval(6188, o is long?[], false); Eval(6189, o is ulong, false); Eval(6190, o is ulong[], false); Eval(6191, o is ulong?, false); Eval(6192, o is ulong?[], false); Eval(6193, o is float, false); Eval(6194, o is float[], false); Eval(6195, o is float?, false); Eval(6196, o is float?[], false); Eval(6197, o is double, false); Eval(6198, o is double[], false); Eval(6199, o is double?, false); Eval(6200, o is double?[], false); Eval(6201, o is decimal, false); Eval(6202, o is decimal[], false); Eval(6203, o is decimal?, false); Eval(6204, o is decimal?[], false); Eval(6205, o is IntPtr, false); Eval(6206, o is IntPtr[], false); Eval(6207, o is IntPtr?, false); Eval(6208, o is IntPtr?[], false); Eval(6209, o is UIntPtr, false); Eval(6210, o is UIntPtr[], false); Eval(6211, o is UIntPtr?, false); Eval(6212, o is UIntPtr?[], false); Eval(6213, o is Guid, false); Eval(6214, o is Guid[], false); Eval(6215, o is Guid?, false); Eval(6216, o is Guid?[], false); Eval(6217, o is GCHandle, false); Eval(6218, o is GCHandle[], false); Eval(6219, o is GCHandle?, false); Eval(6220, o is GCHandle?[], false); Eval(6221, o is object, true); Eval(6222, o is object[], false); Eval(6223, o is string, false); Eval(6224, o is string[], false); Eval(6225, o is ValueType, true); Eval(6226, o is ValueType[], false); Eval(6227, o is Array, false); Eval(6228, o is Array[], false); Eval(6229, o is Enum, false); Eval(6230, o is Enum[], false); Eval(6231, o is Delegate, false); Eval(6232, o is Delegate[], false); Eval(6233, o is MulticastDelegate, false); Eval(6234, o is MulticastDelegate[], false); Eval(6235, o is IEmpty, false); Eval(6236, o is IEmpty[], false); Eval(6237, o is INotEmpty, false); Eval(6238, o is INotEmpty[], false); Eval(6239, o is IEmptyGen<int>, false); Eval(6240, o is IEmptyGen<int>[], false); Eval(6241, o is INotEmptyGen<int>, false); Eval(6242, o is INotEmptyGen<int>[], false); Eval(6243, o is SimpleDelegate, false); Eval(6244, o is SimpleDelegate[], false); Eval(6245, o is GenericDelegate<int>, false); Eval(6246, o is GenericDelegate<int>[], false); Eval(6247, o is EmptyClass, false); Eval(6248, o is EmptyClass[], false); Eval(6249, o is NotEmptyClass, false); Eval(6250, o is NotEmptyClass[], false); Eval(6251, o is EmptyClassGen<int>, false); Eval(6252, o is EmptyClassGen<int>[], false); Eval(6253, o is NotEmptyClassGen<Guid>, false); Eval(6254, o is NotEmptyClassGen<Guid>[], false); Eval(6255, o is NotEmptyClassConstrainedGen<object>, false); Eval(6256, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6257, o is NestedClass, false); Eval(6258, o is NestedClass[], false); Eval(6259, o is NestedClassGen<Decimal>, false); Eval(6260, o is NestedClassGen<Decimal>[], false); Eval(6261, o is ImplementOneInterfaceC, false); Eval(6262, o is ImplementOneInterfaceC[], false); Eval(6263, o is ImplementTwoInterfaceC, false); Eval(6264, o is ImplementTwoInterfaceC[], false); Eval(6265, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6266, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6267, o is ImplementTwoInterfaceGenC<int>, false); Eval(6268, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6269, o is ImplementAllInterfaceC<int>, false); Eval(6270, o is ImplementAllInterfaceC<int>[], false); Eval(6271, o is SealedClass, false); Eval(6272, o is SealedClass[], false); } { MarshalAsStruct? v = default(MarshalAsStruct?); ValueType o = v; Eval(6273, o is EmptyStruct, false); Eval(6274, o is EmptyStruct[], false); Eval(6275, o is EmptyStruct?, false); Eval(6276, o is EmptyStruct?[], false); Eval(6277, o is NotEmptyStruct, false); Eval(6278, o is NotEmptyStruct[], false); Eval(6279, o is NotEmptyStruct?, false); Eval(6280, o is NotEmptyStruct?[], false); Eval(6281, o is EmptyStructGen<int>, false); Eval(6282, o is EmptyStructGen<int>[], false); Eval(6283, o is EmptyStructGen<int>?, false); Eval(6284, o is EmptyStructGen<int>?[], false); Eval(6285, o is NotEmptyStructGen<Guid>, false); Eval(6286, o is NotEmptyStructGen<Guid>[], false); Eval(6287, o is NotEmptyStructGen<Guid>?, false); Eval(6288, o is NotEmptyStructGen<Guid>?[], false); Eval(6289, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6290, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6291, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6292, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6293, o is NestedStruct, false); Eval(6294, o is NestedStruct[], false); Eval(6295, o is NestedStruct?, false); Eval(6296, o is NestedStruct?[], false); Eval(6297, o is NestedStructGen<Decimal>, false); Eval(6298, o is NestedStructGen<Decimal>[], false); Eval(6299, o is NestedStructGen<Decimal>?, false); Eval(6300, o is NestedStructGen<Decimal>?[], false); Eval(6301, o is ExplicitFieldOffsetStruct, false); Eval(6302, o is ExplicitFieldOffsetStruct[], false); Eval(6303, o is ExplicitFieldOffsetStruct?, false); Eval(6304, o is ExplicitFieldOffsetStruct?[], false); Eval(6313, o is MarshalAsStruct, false); Eval(6314, o is MarshalAsStruct[], false); Eval(6315, o is MarshalAsStruct?, false); Eval(6316, o is MarshalAsStruct?[], false); Eval(6317, o is ImplementOneInterface, false); Eval(6318, o is ImplementOneInterface[], false); Eval(6319, o is ImplementOneInterface?, false); Eval(6320, o is ImplementOneInterface?[], false); Eval(6321, o is ImplementTwoInterface, false); Eval(6322, o is ImplementTwoInterface[], false); Eval(6323, o is ImplementTwoInterface?, false); Eval(6324, o is ImplementTwoInterface?[], false); Eval(6325, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6326, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6327, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6328, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6329, o is ImplementTwoInterfaceGen<int>, false); Eval(6330, o is ImplementTwoInterfaceGen<int>[], false); Eval(6331, o is ImplementTwoInterfaceGen<int>?, false); Eval(6332, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6333, o is ImplementAllInterface<int>, false); Eval(6334, o is ImplementAllInterface<int>[], false); Eval(6335, o is ImplementAllInterface<int>?, false); Eval(6336, o is ImplementAllInterface<int>?[], false); Eval(6337, o is IntE, false); Eval(6338, o is IntE[], false); Eval(6339, o is IntE?, false); Eval(6340, o is IntE?[], false); Eval(6341, o is ByteE, false); Eval(6342, o is ByteE[], false); Eval(6343, o is ByteE?, false); Eval(6344, o is ByteE?[], false); Eval(6345, o is LongE, false); Eval(6346, o is LongE[], false); Eval(6347, o is LongE?, false); Eval(6348, o is LongE?[], false); Eval(6349, o is char, false); Eval(6350, o is char[], false); Eval(6351, o is char?, false); Eval(6352, o is char?[], false); Eval(6353, o is bool, false); Eval(6354, o is bool[], false); Eval(6355, o is bool?, false); Eval(6356, o is bool?[], false); Eval(6357, o is byte, false); Eval(6358, o is byte[], false); Eval(6359, o is byte?, false); Eval(6360, o is byte?[], false); Eval(6361, o is sbyte, false); Eval(6362, o is sbyte[], false); Eval(6363, o is sbyte?, false); Eval(6364, o is sbyte?[], false); Eval(6365, o is short, false); Eval(6366, o is short[], false); Eval(6367, o is short?, false); Eval(6368, o is short?[], false); Eval(6369, o is ushort, false); Eval(6370, o is ushort[], false); Eval(6371, o is ushort?, false); Eval(6372, o is ushort?[], false); Eval(6373, o is int, false); Eval(6374, o is int[], false); Eval(6375, o is int?, false); Eval(6376, o is int?[], false); Eval(6377, o is uint, false); Eval(6378, o is uint[], false); Eval(6379, o is uint?, false); Eval(6380, o is uint?[], false); Eval(6381, o is long, false); Eval(6382, o is long[], false); Eval(6383, o is long?, false); Eval(6384, o is long?[], false); Eval(6385, o is ulong, false); Eval(6386, o is ulong[], false); Eval(6387, o is ulong?, false); Eval(6388, o is ulong?[], false); Eval(6389, o is float, false); Eval(6390, o is float[], false); Eval(6391, o is float?, false); Eval(6392, o is float?[], false); Eval(6393, o is double, false); Eval(6394, o is double[], false); Eval(6395, o is double?, false); Eval(6396, o is double?[], false); Eval(6397, o is decimal, false); Eval(6398, o is decimal[], false); Eval(6399, o is decimal?, false); Eval(6400, o is decimal?[], false); Eval(6401, o is IntPtr, false); Eval(6402, o is IntPtr[], false); Eval(6403, o is IntPtr?, false); Eval(6404, o is IntPtr?[], false); Eval(6405, o is UIntPtr, false); Eval(6406, o is UIntPtr[], false); Eval(6407, o is UIntPtr?, false); Eval(6408, o is UIntPtr?[], false); Eval(6409, o is Guid, false); Eval(6410, o is Guid[], false); Eval(6411, o is Guid?, false); Eval(6412, o is Guid?[], false); Eval(6413, o is GCHandle, false); Eval(6414, o is GCHandle[], false); Eval(6415, o is GCHandle?, false); Eval(6416, o is GCHandle?[], false); Eval(6417, o is object, false); Eval(6418, o is object[], false); Eval(6419, o is string, false); Eval(6420, o is string[], false); Eval(6421, o is ValueType, false); Eval(6422, o is ValueType[], false); Eval(6423, o is Array, false); Eval(6424, o is Array[], false); Eval(6425, o is Enum, false); Eval(6426, o is Enum[], false); Eval(6427, o is Delegate, false); Eval(6428, o is Delegate[], false); Eval(6429, o is MulticastDelegate, false); Eval(6430, o is MulticastDelegate[], false); Eval(6431, o is IEmpty, false); Eval(6432, o is IEmpty[], false); Eval(6433, o is INotEmpty, false); Eval(6434, o is INotEmpty[], false); Eval(6435, o is IEmptyGen<int>, false); Eval(6436, o is IEmptyGen<int>[], false); Eval(6437, o is INotEmptyGen<int>, false); Eval(6438, o is INotEmptyGen<int>[], false); Eval(6439, o is SimpleDelegate, false); Eval(6440, o is SimpleDelegate[], false); Eval(6441, o is GenericDelegate<int>, false); Eval(6442, o is GenericDelegate<int>[], false); Eval(6443, o is EmptyClass, false); Eval(6444, o is EmptyClass[], false); Eval(6445, o is NotEmptyClass, false); Eval(6446, o is NotEmptyClass[], false); Eval(6447, o is EmptyClassGen<int>, false); Eval(6448, o is EmptyClassGen<int>[], false); Eval(6449, o is NotEmptyClassGen<Guid>, false); Eval(6450, o is NotEmptyClassGen<Guid>[], false); Eval(6451, o is NotEmptyClassConstrainedGen<object>, false); Eval(6452, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6453, o is NestedClass, false); Eval(6454, o is NestedClass[], false); Eval(6455, o is NestedClassGen<Decimal>, false); Eval(6456, o is NestedClassGen<Decimal>[], false); Eval(6457, o is ImplementOneInterfaceC, false); Eval(6458, o is ImplementOneInterfaceC[], false); Eval(6459, o is ImplementTwoInterfaceC, false); Eval(6460, o is ImplementTwoInterfaceC[], false); Eval(6461, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6462, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6463, o is ImplementTwoInterfaceGenC<int>, false); Eval(6464, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6465, o is ImplementAllInterfaceC<int>, false); Eval(6466, o is ImplementAllInterfaceC<int>[], false); Eval(6467, o is SealedClass, false); Eval(6468, o is SealedClass[], false); } } // end of test case 0011 private static void TestCase0012() { { ImplementOneInterface v = default(ImplementOneInterface); ValueType o = v; Eval(6469, o is EmptyStruct, false); Eval(6470, o is EmptyStruct[], false); Eval(6471, o is EmptyStruct?, false); Eval(6472, o is EmptyStruct?[], false); Eval(6473, o is NotEmptyStruct, false); Eval(6474, o is NotEmptyStruct[], false); Eval(6475, o is NotEmptyStruct?, false); Eval(6476, o is NotEmptyStruct?[], false); Eval(6477, o is EmptyStructGen<int>, false); Eval(6478, o is EmptyStructGen<int>[], false); Eval(6479, o is EmptyStructGen<int>?, false); Eval(6480, o is EmptyStructGen<int>?[], false); Eval(6481, o is NotEmptyStructGen<Guid>, false); Eval(6482, o is NotEmptyStructGen<Guid>[], false); Eval(6483, o is NotEmptyStructGen<Guid>?, false); Eval(6484, o is NotEmptyStructGen<Guid>?[], false); Eval(6485, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6486, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6487, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6488, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6489, o is NestedStruct, false); Eval(6490, o is NestedStruct[], false); Eval(6491, o is NestedStruct?, false); Eval(6492, o is NestedStruct?[], false); Eval(6493, o is NestedStructGen<Decimal>, false); Eval(6494, o is NestedStructGen<Decimal>[], false); Eval(6495, o is NestedStructGen<Decimal>?, false); Eval(6496, o is NestedStructGen<Decimal>?[], false); Eval(6497, o is ExplicitFieldOffsetStruct, false); Eval(6498, o is ExplicitFieldOffsetStruct[], false); Eval(6499, o is ExplicitFieldOffsetStruct?, false); Eval(6500, o is ExplicitFieldOffsetStruct?[], false); Eval(6509, o is MarshalAsStruct, false); Eval(6510, o is MarshalAsStruct[], false); Eval(6511, o is MarshalAsStruct?, false); Eval(6512, o is MarshalAsStruct?[], false); Eval(6513, o is ImplementOneInterface, true); Eval(6514, o is ImplementOneInterface[], false); Eval(6515, o is ImplementOneInterface?, true); Eval(6516, o is ImplementOneInterface?[], false); Eval(6517, o is ImplementTwoInterface, false); Eval(6518, o is ImplementTwoInterface[], false); Eval(6519, o is ImplementTwoInterface?, false); Eval(6520, o is ImplementTwoInterface?[], false); Eval(6521, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6522, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6523, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6524, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6525, o is ImplementTwoInterfaceGen<int>, false); Eval(6526, o is ImplementTwoInterfaceGen<int>[], false); Eval(6527, o is ImplementTwoInterfaceGen<int>?, false); Eval(6528, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6529, o is ImplementAllInterface<int>, false); Eval(6530, o is ImplementAllInterface<int>[], false); Eval(6531, o is ImplementAllInterface<int>?, false); Eval(6532, o is ImplementAllInterface<int>?[], false); Eval(6533, o is IntE, false); Eval(6534, o is IntE[], false); Eval(6535, o is IntE?, false); Eval(6536, o is IntE?[], false); Eval(6537, o is ByteE, false); Eval(6538, o is ByteE[], false); Eval(6539, o is ByteE?, false); Eval(6540, o is ByteE?[], false); Eval(6541, o is LongE, false); Eval(6542, o is LongE[], false); Eval(6543, o is LongE?, false); Eval(6544, o is LongE?[], false); Eval(6545, o is char, false); Eval(6546, o is char[], false); Eval(6547, o is char?, false); Eval(6548, o is char?[], false); Eval(6549, o is bool, false); Eval(6550, o is bool[], false); Eval(6551, o is bool?, false); Eval(6552, o is bool?[], false); Eval(6553, o is byte, false); Eval(6554, o is byte[], false); Eval(6555, o is byte?, false); Eval(6556, o is byte?[], false); Eval(6557, o is sbyte, false); Eval(6558, o is sbyte[], false); Eval(6559, o is sbyte?, false); Eval(6560, o is sbyte?[], false); Eval(6561, o is short, false); Eval(6562, o is short[], false); Eval(6563, o is short?, false); Eval(6564, o is short?[], false); Eval(6565, o is ushort, false); Eval(6566, o is ushort[], false); Eval(6567, o is ushort?, false); Eval(6568, o is ushort?[], false); Eval(6569, o is int, false); Eval(6570, o is int[], false); Eval(6571, o is int?, false); Eval(6572, o is int?[], false); Eval(6573, o is uint, false); Eval(6574, o is uint[], false); Eval(6575, o is uint?, false); Eval(6576, o is uint?[], false); Eval(6577, o is long, false); Eval(6578, o is long[], false); Eval(6579, o is long?, false); Eval(6580, o is long?[], false); Eval(6581, o is ulong, false); Eval(6582, o is ulong[], false); Eval(6583, o is ulong?, false); Eval(6584, o is ulong?[], false); Eval(6585, o is float, false); Eval(6586, o is float[], false); Eval(6587, o is float?, false); Eval(6588, o is float?[], false); Eval(6589, o is double, false); Eval(6590, o is double[], false); Eval(6591, o is double?, false); Eval(6592, o is double?[], false); Eval(6593, o is decimal, false); Eval(6594, o is decimal[], false); Eval(6595, o is decimal?, false); Eval(6596, o is decimal?[], false); Eval(6597, o is IntPtr, false); Eval(6598, o is IntPtr[], false); Eval(6599, o is IntPtr?, false); Eval(6600, o is IntPtr?[], false); Eval(6601, o is UIntPtr, false); Eval(6602, o is UIntPtr[], false); Eval(6603, o is UIntPtr?, false); Eval(6604, o is UIntPtr?[], false); Eval(6605, o is Guid, false); Eval(6606, o is Guid[], false); Eval(6607, o is Guid?, false); Eval(6608, o is Guid?[], false); Eval(6609, o is GCHandle, false); Eval(6610, o is GCHandle[], false); Eval(6611, o is GCHandle?, false); Eval(6612, o is GCHandle?[], false); Eval(6613, o is object, true); Eval(6614, o is object[], false); Eval(6615, o is string, false); Eval(6616, o is string[], false); Eval(6617, o is ValueType, true); Eval(6618, o is ValueType[], false); Eval(6619, o is Array, false); Eval(6620, o is Array[], false); Eval(6621, o is Enum, false); Eval(6622, o is Enum[], false); Eval(6623, o is Delegate, false); Eval(6624, o is Delegate[], false); Eval(6625, o is MulticastDelegate, false); Eval(6626, o is MulticastDelegate[], false); Eval(6627, o is IEmpty, true); Eval(6628, o is IEmpty[], false); Eval(6629, o is INotEmpty, false); Eval(6630, o is INotEmpty[], false); Eval(6631, o is IEmptyGen<int>, false); Eval(6632, o is IEmptyGen<int>[], false); Eval(6633, o is INotEmptyGen<int>, false); Eval(6634, o is INotEmptyGen<int>[], false); Eval(6635, o is SimpleDelegate, false); Eval(6636, o is SimpleDelegate[], false); Eval(6637, o is GenericDelegate<int>, false); Eval(6638, o is GenericDelegate<int>[], false); Eval(6639, o is EmptyClass, false); Eval(6640, o is EmptyClass[], false); Eval(6641, o is NotEmptyClass, false); Eval(6642, o is NotEmptyClass[], false); Eval(6643, o is EmptyClassGen<int>, false); Eval(6644, o is EmptyClassGen<int>[], false); Eval(6645, o is NotEmptyClassGen<Guid>, false); Eval(6646, o is NotEmptyClassGen<Guid>[], false); Eval(6647, o is NotEmptyClassConstrainedGen<object>, false); Eval(6648, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6649, o is NestedClass, false); Eval(6650, o is NestedClass[], false); Eval(6651, o is NestedClassGen<Decimal>, false); Eval(6652, o is NestedClassGen<Decimal>[], false); Eval(6653, o is ImplementOneInterfaceC, false); Eval(6654, o is ImplementOneInterfaceC[], false); Eval(6655, o is ImplementTwoInterfaceC, false); Eval(6656, o is ImplementTwoInterfaceC[], false); Eval(6657, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6658, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6659, o is ImplementTwoInterfaceGenC<int>, false); Eval(6660, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6661, o is ImplementAllInterfaceC<int>, false); Eval(6662, o is ImplementAllInterfaceC<int>[], false); Eval(6663, o is SealedClass, false); Eval(6664, o is SealedClass[], false); } { ImplementOneInterface? v = default(ImplementOneInterface); ValueType o = v; Eval(6665, o is EmptyStruct, false); Eval(6666, o is EmptyStruct[], false); Eval(6667, o is EmptyStruct?, false); Eval(6668, o is EmptyStruct?[], false); Eval(6669, o is NotEmptyStruct, false); Eval(6670, o is NotEmptyStruct[], false); Eval(6671, o is NotEmptyStruct?, false); Eval(6672, o is NotEmptyStruct?[], false); Eval(6673, o is EmptyStructGen<int>, false); Eval(6674, o is EmptyStructGen<int>[], false); Eval(6675, o is EmptyStructGen<int>?, false); Eval(6676, o is EmptyStructGen<int>?[], false); Eval(6677, o is NotEmptyStructGen<Guid>, false); Eval(6678, o is NotEmptyStructGen<Guid>[], false); Eval(6679, o is NotEmptyStructGen<Guid>?, false); Eval(6680, o is NotEmptyStructGen<Guid>?[], false); Eval(6681, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6682, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6683, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6684, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6685, o is NestedStruct, false); Eval(6686, o is NestedStruct[], false); Eval(6687, o is NestedStruct?, false); Eval(6688, o is NestedStruct?[], false); Eval(6689, o is NestedStructGen<Decimal>, false); Eval(6690, o is NestedStructGen<Decimal>[], false); Eval(6691, o is NestedStructGen<Decimal>?, false); Eval(6692, o is NestedStructGen<Decimal>?[], false); Eval(6693, o is ExplicitFieldOffsetStruct, false); Eval(6694, o is ExplicitFieldOffsetStruct[], false); Eval(6695, o is ExplicitFieldOffsetStruct?, false); Eval(6696, o is ExplicitFieldOffsetStruct?[], false); Eval(6705, o is MarshalAsStruct, false); Eval(6706, o is MarshalAsStruct[], false); Eval(6707, o is MarshalAsStruct?, false); Eval(6708, o is MarshalAsStruct?[], false); Eval(6709, o is ImplementOneInterface, true); Eval(6710, o is ImplementOneInterface[], false); Eval(6711, o is ImplementOneInterface?, true); Eval(6712, o is ImplementOneInterface?[], false); Eval(6713, o is ImplementTwoInterface, false); Eval(6714, o is ImplementTwoInterface[], false); Eval(6715, o is ImplementTwoInterface?, false); Eval(6716, o is ImplementTwoInterface?[], false); Eval(6717, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6718, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6719, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6720, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6721, o is ImplementTwoInterfaceGen<int>, false); Eval(6722, o is ImplementTwoInterfaceGen<int>[], false); Eval(6723, o is ImplementTwoInterfaceGen<int>?, false); Eval(6724, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6725, o is ImplementAllInterface<int>, false); Eval(6726, o is ImplementAllInterface<int>[], false); Eval(6727, o is ImplementAllInterface<int>?, false); Eval(6728, o is ImplementAllInterface<int>?[], false); Eval(6729, o is IntE, false); Eval(6730, o is IntE[], false); Eval(6731, o is IntE?, false); Eval(6732, o is IntE?[], false); Eval(6733, o is ByteE, false); Eval(6734, o is ByteE[], false); Eval(6735, o is ByteE?, false); Eval(6736, o is ByteE?[], false); Eval(6737, o is LongE, false); Eval(6738, o is LongE[], false); Eval(6739, o is LongE?, false); Eval(6740, o is LongE?[], false); Eval(6741, o is char, false); Eval(6742, o is char[], false); Eval(6743, o is char?, false); Eval(6744, o is char?[], false); Eval(6745, o is bool, false); Eval(6746, o is bool[], false); Eval(6747, o is bool?, false); Eval(6748, o is bool?[], false); Eval(6749, o is byte, false); Eval(6750, o is byte[], false); Eval(6751, o is byte?, false); Eval(6752, o is byte?[], false); Eval(6753, o is sbyte, false); Eval(6754, o is sbyte[], false); Eval(6755, o is sbyte?, false); Eval(6756, o is sbyte?[], false); Eval(6757, o is short, false); Eval(6758, o is short[], false); Eval(6759, o is short?, false); Eval(6760, o is short?[], false); Eval(6761, o is ushort, false); Eval(6762, o is ushort[], false); Eval(6763, o is ushort?, false); Eval(6764, o is ushort?[], false); Eval(6765, o is int, false); Eval(6766, o is int[], false); Eval(6767, o is int?, false); Eval(6768, o is int?[], false); Eval(6769, o is uint, false); Eval(6770, o is uint[], false); Eval(6771, o is uint?, false); Eval(6772, o is uint?[], false); Eval(6773, o is long, false); Eval(6774, o is long[], false); Eval(6775, o is long?, false); Eval(6776, o is long?[], false); Eval(6777, o is ulong, false); Eval(6778, o is ulong[], false); Eval(6779, o is ulong?, false); Eval(6780, o is ulong?[], false); Eval(6781, o is float, false); Eval(6782, o is float[], false); Eval(6783, o is float?, false); Eval(6784, o is float?[], false); Eval(6785, o is double, false); Eval(6786, o is double[], false); Eval(6787, o is double?, false); Eval(6788, o is double?[], false); Eval(6789, o is decimal, false); Eval(6790, o is decimal[], false); Eval(6791, o is decimal?, false); Eval(6792, o is decimal?[], false); Eval(6793, o is IntPtr, false); Eval(6794, o is IntPtr[], false); Eval(6795, o is IntPtr?, false); Eval(6796, o is IntPtr?[], false); Eval(6797, o is UIntPtr, false); Eval(6798, o is UIntPtr[], false); Eval(6799, o is UIntPtr?, false); Eval(6800, o is UIntPtr?[], false); Eval(6801, o is Guid, false); Eval(6802, o is Guid[], false); Eval(6803, o is Guid?, false); Eval(6804, o is Guid?[], false); Eval(6805, o is GCHandle, false); Eval(6806, o is GCHandle[], false); Eval(6807, o is GCHandle?, false); Eval(6808, o is GCHandle?[], false); Eval(6809, o is object, true); Eval(6810, o is object[], false); Eval(6811, o is string, false); Eval(6812, o is string[], false); Eval(6813, o is ValueType, true); Eval(6814, o is ValueType[], false); Eval(6815, o is Array, false); Eval(6816, o is Array[], false); Eval(6817, o is Enum, false); Eval(6818, o is Enum[], false); Eval(6819, o is Delegate, false); Eval(6820, o is Delegate[], false); Eval(6821, o is MulticastDelegate, false); Eval(6822, o is MulticastDelegate[], false); Eval(6823, o is IEmpty, true); Eval(6824, o is IEmpty[], false); Eval(6825, o is INotEmpty, false); Eval(6826, o is INotEmpty[], false); Eval(6827, o is IEmptyGen<int>, false); Eval(6828, o is IEmptyGen<int>[], false); Eval(6829, o is INotEmptyGen<int>, false); Eval(6830, o is INotEmptyGen<int>[], false); Eval(6831, o is SimpleDelegate, false); Eval(6832, o is SimpleDelegate[], false); Eval(6833, o is GenericDelegate<int>, false); Eval(6834, o is GenericDelegate<int>[], false); Eval(6835, o is EmptyClass, false); Eval(6836, o is EmptyClass[], false); Eval(6837, o is NotEmptyClass, false); Eval(6838, o is NotEmptyClass[], false); Eval(6839, o is EmptyClassGen<int>, false); Eval(6840, o is EmptyClassGen<int>[], false); Eval(6841, o is NotEmptyClassGen<Guid>, false); Eval(6842, o is NotEmptyClassGen<Guid>[], false); Eval(6843, o is NotEmptyClassConstrainedGen<object>, false); Eval(6844, o is NotEmptyClassConstrainedGen<object>[], false); Eval(6845, o is NestedClass, false); Eval(6846, o is NestedClass[], false); Eval(6847, o is NestedClassGen<Decimal>, false); Eval(6848, o is NestedClassGen<Decimal>[], false); Eval(6849, o is ImplementOneInterfaceC, false); Eval(6850, o is ImplementOneInterfaceC[], false); Eval(6851, o is ImplementTwoInterfaceC, false); Eval(6852, o is ImplementTwoInterfaceC[], false); Eval(6853, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(6854, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(6855, o is ImplementTwoInterfaceGenC<int>, false); Eval(6856, o is ImplementTwoInterfaceGenC<int>[], false); Eval(6857, o is ImplementAllInterfaceC<int>, false); Eval(6858, o is ImplementAllInterfaceC<int>[], false); Eval(6859, o is SealedClass, false); Eval(6860, o is SealedClass[], false); } { ImplementOneInterface? v = default(ImplementOneInterface?); ValueType o = v; Eval(6861, o is EmptyStruct, false); Eval(6862, o is EmptyStruct[], false); Eval(6863, o is EmptyStruct?, false); Eval(6864, o is EmptyStruct?[], false); Eval(6865, o is NotEmptyStruct, false); Eval(6866, o is NotEmptyStruct[], false); Eval(6867, o is NotEmptyStruct?, false); Eval(6868, o is NotEmptyStruct?[], false); Eval(6869, o is EmptyStructGen<int>, false); Eval(6870, o is EmptyStructGen<int>[], false); Eval(6871, o is EmptyStructGen<int>?, false); Eval(6872, o is EmptyStructGen<int>?[], false); Eval(6873, o is NotEmptyStructGen<Guid>, false); Eval(6874, o is NotEmptyStructGen<Guid>[], false); Eval(6875, o is NotEmptyStructGen<Guid>?, false); Eval(6876, o is NotEmptyStructGen<Guid>?[], false); Eval(6877, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(6878, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(6879, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(6880, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(6881, o is NestedStruct, false); Eval(6882, o is NestedStruct[], false); Eval(6883, o is NestedStruct?, false); Eval(6884, o is NestedStruct?[], false); Eval(6885, o is NestedStructGen<Decimal>, false); Eval(6886, o is NestedStructGen<Decimal>[], false); Eval(6887, o is NestedStructGen<Decimal>?, false); Eval(6888, o is NestedStructGen<Decimal>?[], false); Eval(6889, o is ExplicitFieldOffsetStruct, false); Eval(6890, o is ExplicitFieldOffsetStruct[], false); Eval(6891, o is ExplicitFieldOffsetStruct?, false); Eval(6892, o is ExplicitFieldOffsetStruct?[], false); Eval(6901, o is MarshalAsStruct, false); Eval(6902, o is MarshalAsStruct[], false); Eval(6903, o is MarshalAsStruct?, false); Eval(6904, o is MarshalAsStruct?[], false); Eval(6905, o is ImplementOneInterface, false); Eval(6906, o is ImplementOneInterface[], false); Eval(6907, o is ImplementOneInterface?, false); Eval(6908, o is ImplementOneInterface?[], false); Eval(6909, o is ImplementTwoInterface, false); Eval(6910, o is ImplementTwoInterface[], false); Eval(6911, o is ImplementTwoInterface?, false); Eval(6912, o is ImplementTwoInterface?[], false); Eval(6913, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(6914, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(6915, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(6916, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(6917, o is ImplementTwoInterfaceGen<int>, false); Eval(6918, o is ImplementTwoInterfaceGen<int>[], false); Eval(6919, o is ImplementTwoInterfaceGen<int>?, false); Eval(6920, o is ImplementTwoInterfaceGen<int>?[], false); Eval(6921, o is ImplementAllInterface<int>, false); Eval(6922, o is ImplementAllInterface<int>[], false); Eval(6923, o is ImplementAllInterface<int>?, false); Eval(6924, o is ImplementAllInterface<int>?[], false); Eval(6925, o is IntE, false); Eval(6926, o is IntE[], false); Eval(6927, o is IntE?, false); Eval(6928, o is IntE?[], false); Eval(6929, o is ByteE, false); Eval(6930, o is ByteE[], false); Eval(6931, o is ByteE?, false); Eval(6932, o is ByteE?[], false); Eval(6933, o is LongE, false); Eval(6934, o is LongE[], false); Eval(6935, o is LongE?, false); Eval(6936, o is LongE?[], false); Eval(6937, o is char, false); Eval(6938, o is char[], false); Eval(6939, o is char?, false); Eval(6940, o is char?[], false); Eval(6941, o is bool, false); Eval(6942, o is bool[], false); Eval(6943, o is bool?, false); Eval(6944, o is bool?[], false); Eval(6945, o is byte, false); Eval(6946, o is byte[], false); Eval(6947, o is byte?, false); Eval(6948, o is byte?[], false); Eval(6949, o is sbyte, false); Eval(6950, o is sbyte[], false); Eval(6951, o is sbyte?, false); Eval(6952, o is sbyte?[], false); Eval(6953, o is short, false); Eval(6954, o is short[], false); Eval(6955, o is short?, false); Eval(6956, o is short?[], false); Eval(6957, o is ushort, false); Eval(6958, o is ushort[], false); Eval(6959, o is ushort?, false); Eval(6960, o is ushort?[], false); Eval(6961, o is int, false); Eval(6962, o is int[], false); Eval(6963, o is int?, false); Eval(6964, o is int?[], false); Eval(6965, o is uint, false); Eval(6966, o is uint[], false); Eval(6967, o is uint?, false); Eval(6968, o is uint?[], false); Eval(6969, o is long, false); Eval(6970, o is long[], false); Eval(6971, o is long?, false); Eval(6972, o is long?[], false); Eval(6973, o is ulong, false); Eval(6974, o is ulong[], false); Eval(6975, o is ulong?, false); Eval(6976, o is ulong?[], false); Eval(6977, o is float, false); Eval(6978, o is float[], false); Eval(6979, o is float?, false); Eval(6980, o is float?[], false); Eval(6981, o is double, false); Eval(6982, o is double[], false); Eval(6983, o is double?, false); Eval(6984, o is double?[], false); Eval(6985, o is decimal, false); Eval(6986, o is decimal[], false); Eval(6987, o is decimal?, false); Eval(6988, o is decimal?[], false); Eval(6989, o is IntPtr, false); Eval(6990, o is IntPtr[], false); Eval(6991, o is IntPtr?, false); Eval(6992, o is IntPtr?[], false); Eval(6993, o is UIntPtr, false); Eval(6994, o is UIntPtr[], false); Eval(6995, o is UIntPtr?, false); Eval(6996, o is UIntPtr?[], false); Eval(6997, o is Guid, false); Eval(6998, o is Guid[], false); Eval(6999, o is Guid?, false); Eval(7000, o is Guid?[], false); Eval(7001, o is GCHandle, false); Eval(7002, o is GCHandle[], false); Eval(7003, o is GCHandle?, false); Eval(7004, o is GCHandle?[], false); Eval(7005, o is object, false); Eval(7006, o is object[], false); Eval(7007, o is string, false); Eval(7008, o is string[], false); Eval(7009, o is ValueType, false); Eval(7010, o is ValueType[], false); Eval(7011, o is Array, false); Eval(7012, o is Array[], false); Eval(7013, o is Enum, false); Eval(7014, o is Enum[], false); Eval(7015, o is Delegate, false); Eval(7016, o is Delegate[], false); Eval(7017, o is MulticastDelegate, false); Eval(7018, o is MulticastDelegate[], false); Eval(7019, o is IEmpty, false); Eval(7020, o is IEmpty[], false); Eval(7021, o is INotEmpty, false); Eval(7022, o is INotEmpty[], false); Eval(7023, o is IEmptyGen<int>, false); Eval(7024, o is IEmptyGen<int>[], false); Eval(7025, o is INotEmptyGen<int>, false); Eval(7026, o is INotEmptyGen<int>[], false); Eval(7027, o is SimpleDelegate, false); Eval(7028, o is SimpleDelegate[], false); Eval(7029, o is GenericDelegate<int>, false); Eval(7030, o is GenericDelegate<int>[], false); Eval(7031, o is EmptyClass, false); Eval(7032, o is EmptyClass[], false); Eval(7033, o is NotEmptyClass, false); Eval(7034, o is NotEmptyClass[], false); Eval(7035, o is EmptyClassGen<int>, false); Eval(7036, o is EmptyClassGen<int>[], false); Eval(7037, o is NotEmptyClassGen<Guid>, false); Eval(7038, o is NotEmptyClassGen<Guid>[], false); Eval(7039, o is NotEmptyClassConstrainedGen<object>, false); Eval(7040, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7041, o is NestedClass, false); Eval(7042, o is NestedClass[], false); Eval(7043, o is NestedClassGen<Decimal>, false); Eval(7044, o is NestedClassGen<Decimal>[], false); Eval(7045, o is ImplementOneInterfaceC, false); Eval(7046, o is ImplementOneInterfaceC[], false); Eval(7047, o is ImplementTwoInterfaceC, false); Eval(7048, o is ImplementTwoInterfaceC[], false); Eval(7049, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7050, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7051, o is ImplementTwoInterfaceGenC<int>, false); Eval(7052, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7053, o is ImplementAllInterfaceC<int>, false); Eval(7054, o is ImplementAllInterfaceC<int>[], false); Eval(7055, o is SealedClass, false); Eval(7056, o is SealedClass[], false); } } // end of test case 0012 private static void TestCase0013() { { ImplementTwoInterface v = default(ImplementTwoInterface); ValueType o = v; Eval(7057, o is EmptyStruct, false); Eval(7058, o is EmptyStruct[], false); Eval(7059, o is EmptyStruct?, false); Eval(7060, o is EmptyStruct?[], false); Eval(7061, o is NotEmptyStruct, false); Eval(7062, o is NotEmptyStruct[], false); Eval(7063, o is NotEmptyStruct?, false); Eval(7064, o is NotEmptyStruct?[], false); Eval(7065, o is EmptyStructGen<int>, false); Eval(7066, o is EmptyStructGen<int>[], false); Eval(7067, o is EmptyStructGen<int>?, false); Eval(7068, o is EmptyStructGen<int>?[], false); Eval(7069, o is NotEmptyStructGen<Guid>, false); Eval(7070, o is NotEmptyStructGen<Guid>[], false); Eval(7071, o is NotEmptyStructGen<Guid>?, false); Eval(7072, o is NotEmptyStructGen<Guid>?[], false); Eval(7073, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7074, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7075, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7076, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7077, o is NestedStruct, false); Eval(7078, o is NestedStruct[], false); Eval(7079, o is NestedStruct?, false); Eval(7080, o is NestedStruct?[], false); Eval(7081, o is NestedStructGen<Decimal>, false); Eval(7082, o is NestedStructGen<Decimal>[], false); Eval(7083, o is NestedStructGen<Decimal>?, false); Eval(7084, o is NestedStructGen<Decimal>?[], false); Eval(7085, o is ExplicitFieldOffsetStruct, false); Eval(7086, o is ExplicitFieldOffsetStruct[], false); Eval(7087, o is ExplicitFieldOffsetStruct?, false); Eval(7088, o is ExplicitFieldOffsetStruct?[], false); Eval(7097, o is MarshalAsStruct, false); Eval(7098, o is MarshalAsStruct[], false); Eval(7099, o is MarshalAsStruct?, false); Eval(7100, o is MarshalAsStruct?[], false); Eval(7101, o is ImplementOneInterface, false); Eval(7102, o is ImplementOneInterface[], false); Eval(7103, o is ImplementOneInterface?, false); Eval(7104, o is ImplementOneInterface?[], false); Eval(7105, o is ImplementTwoInterface, true); Eval(7106, o is ImplementTwoInterface[], false); Eval(7107, o is ImplementTwoInterface?, true); Eval(7108, o is ImplementTwoInterface?[], false); Eval(7109, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(7110, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7111, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(7112, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7113, o is ImplementTwoInterfaceGen<int>, false); Eval(7114, o is ImplementTwoInterfaceGen<int>[], false); Eval(7115, o is ImplementTwoInterfaceGen<int>?, false); Eval(7116, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7117, o is ImplementAllInterface<int>, false); Eval(7118, o is ImplementAllInterface<int>[], false); Eval(7119, o is ImplementAllInterface<int>?, false); Eval(7120, o is ImplementAllInterface<int>?[], false); Eval(7121, o is IntE, false); Eval(7122, o is IntE[], false); Eval(7123, o is IntE?, false); Eval(7124, o is IntE?[], false); Eval(7125, o is ByteE, false); Eval(7126, o is ByteE[], false); Eval(7127, o is ByteE?, false); Eval(7128, o is ByteE?[], false); Eval(7129, o is LongE, false); Eval(7130, o is LongE[], false); Eval(7131, o is LongE?, false); Eval(7132, o is LongE?[], false); Eval(7133, o is char, false); Eval(7134, o is char[], false); Eval(7135, o is char?, false); Eval(7136, o is char?[], false); Eval(7137, o is bool, false); Eval(7138, o is bool[], false); Eval(7139, o is bool?, false); Eval(7140, o is bool?[], false); Eval(7141, o is byte, false); Eval(7142, o is byte[], false); Eval(7143, o is byte?, false); Eval(7144, o is byte?[], false); Eval(7145, o is sbyte, false); Eval(7146, o is sbyte[], false); Eval(7147, o is sbyte?, false); Eval(7148, o is sbyte?[], false); Eval(7149, o is short, false); Eval(7150, o is short[], false); Eval(7151, o is short?, false); Eval(7152, o is short?[], false); Eval(7153, o is ushort, false); Eval(7154, o is ushort[], false); Eval(7155, o is ushort?, false); Eval(7156, o is ushort?[], false); Eval(7157, o is int, false); Eval(7158, o is int[], false); Eval(7159, o is int?, false); Eval(7160, o is int?[], false); Eval(7161, o is uint, false); Eval(7162, o is uint[], false); Eval(7163, o is uint?, false); Eval(7164, o is uint?[], false); Eval(7165, o is long, false); Eval(7166, o is long[], false); Eval(7167, o is long?, false); Eval(7168, o is long?[], false); Eval(7169, o is ulong, false); Eval(7170, o is ulong[], false); Eval(7171, o is ulong?, false); Eval(7172, o is ulong?[], false); Eval(7173, o is float, false); Eval(7174, o is float[], false); Eval(7175, o is float?, false); Eval(7176, o is float?[], false); Eval(7177, o is double, false); Eval(7178, o is double[], false); Eval(7179, o is double?, false); Eval(7180, o is double?[], false); Eval(7181, o is decimal, false); Eval(7182, o is decimal[], false); Eval(7183, o is decimal?, false); Eval(7184, o is decimal?[], false); Eval(7185, o is IntPtr, false); Eval(7186, o is IntPtr[], false); Eval(7187, o is IntPtr?, false); Eval(7188, o is IntPtr?[], false); Eval(7189, o is UIntPtr, false); Eval(7190, o is UIntPtr[], false); Eval(7191, o is UIntPtr?, false); Eval(7192, o is UIntPtr?[], false); Eval(7193, o is Guid, false); Eval(7194, o is Guid[], false); Eval(7195, o is Guid?, false); Eval(7196, o is Guid?[], false); Eval(7197, o is GCHandle, false); Eval(7198, o is GCHandle[], false); Eval(7199, o is GCHandle?, false); Eval(7200, o is GCHandle?[], false); Eval(7201, o is object, true); Eval(7202, o is object[], false); Eval(7203, o is string, false); Eval(7204, o is string[], false); Eval(7205, o is ValueType, true); Eval(7206, o is ValueType[], false); Eval(7207, o is Array, false); Eval(7208, o is Array[], false); Eval(7209, o is Enum, false); Eval(7210, o is Enum[], false); Eval(7211, o is Delegate, false); Eval(7212, o is Delegate[], false); Eval(7213, o is MulticastDelegate, false); Eval(7214, o is MulticastDelegate[], false); Eval(7215, o is IEmpty, true); Eval(7216, o is IEmpty[], false); Eval(7217, o is INotEmpty, true); Eval(7218, o is INotEmpty[], false); Eval(7219, o is IEmptyGen<int>, false); Eval(7220, o is IEmptyGen<int>[], false); Eval(7221, o is INotEmptyGen<int>, false); Eval(7222, o is INotEmptyGen<int>[], false); Eval(7223, o is SimpleDelegate, false); Eval(7224, o is SimpleDelegate[], false); Eval(7225, o is GenericDelegate<int>, false); Eval(7226, o is GenericDelegate<int>[], false); Eval(7227, o is EmptyClass, false); Eval(7228, o is EmptyClass[], false); Eval(7229, o is NotEmptyClass, false); Eval(7230, o is NotEmptyClass[], false); Eval(7231, o is EmptyClassGen<int>, false); Eval(7232, o is EmptyClassGen<int>[], false); Eval(7233, o is NotEmptyClassGen<Guid>, false); Eval(7234, o is NotEmptyClassGen<Guid>[], false); Eval(7235, o is NotEmptyClassConstrainedGen<object>, false); Eval(7236, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7237, o is NestedClass, false); Eval(7238, o is NestedClass[], false); Eval(7239, o is NestedClassGen<Decimal>, false); Eval(7240, o is NestedClassGen<Decimal>[], false); Eval(7241, o is ImplementOneInterfaceC, false); Eval(7242, o is ImplementOneInterfaceC[], false); Eval(7243, o is ImplementTwoInterfaceC, false); Eval(7244, o is ImplementTwoInterfaceC[], false); Eval(7245, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7246, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7247, o is ImplementTwoInterfaceGenC<int>, false); Eval(7248, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7249, o is ImplementAllInterfaceC<int>, false); Eval(7250, o is ImplementAllInterfaceC<int>[], false); Eval(7251, o is SealedClass, false); Eval(7252, o is SealedClass[], false); } { ImplementTwoInterface? v = default(ImplementTwoInterface); ValueType o = v; Eval(7253, o is EmptyStruct, false); Eval(7254, o is EmptyStruct[], false); Eval(7255, o is EmptyStruct?, false); Eval(7256, o is EmptyStruct?[], false); Eval(7257, o is NotEmptyStruct, false); Eval(7258, o is NotEmptyStruct[], false); Eval(7259, o is NotEmptyStruct?, false); Eval(7260, o is NotEmptyStruct?[], false); Eval(7261, o is EmptyStructGen<int>, false); Eval(7262, o is EmptyStructGen<int>[], false); Eval(7263, o is EmptyStructGen<int>?, false); Eval(7264, o is EmptyStructGen<int>?[], false); Eval(7265, o is NotEmptyStructGen<Guid>, false); Eval(7266, o is NotEmptyStructGen<Guid>[], false); Eval(7267, o is NotEmptyStructGen<Guid>?, false); Eval(7268, o is NotEmptyStructGen<Guid>?[], false); Eval(7269, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7270, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7271, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7272, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7273, o is NestedStruct, false); Eval(7274, o is NestedStruct[], false); Eval(7275, o is NestedStruct?, false); Eval(7276, o is NestedStruct?[], false); Eval(7277, o is NestedStructGen<Decimal>, false); Eval(7278, o is NestedStructGen<Decimal>[], false); Eval(7279, o is NestedStructGen<Decimal>?, false); Eval(7280, o is NestedStructGen<Decimal>?[], false); Eval(7281, o is ExplicitFieldOffsetStruct, false); Eval(7282, o is ExplicitFieldOffsetStruct[], false); Eval(7283, o is ExplicitFieldOffsetStruct?, false); Eval(7284, o is ExplicitFieldOffsetStruct?[], false); Eval(7293, o is MarshalAsStruct, false); Eval(7294, o is MarshalAsStruct[], false); Eval(7295, o is MarshalAsStruct?, false); Eval(7296, o is MarshalAsStruct?[], false); Eval(7297, o is ImplementOneInterface, false); Eval(7298, o is ImplementOneInterface[], false); Eval(7299, o is ImplementOneInterface?, false); Eval(7300, o is ImplementOneInterface?[], false); Eval(7301, o is ImplementTwoInterface, true); Eval(7302, o is ImplementTwoInterface[], false); Eval(7303, o is ImplementTwoInterface?, true); Eval(7304, o is ImplementTwoInterface?[], false); Eval(7305, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(7306, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7307, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(7308, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7309, o is ImplementTwoInterfaceGen<int>, false); Eval(7310, o is ImplementTwoInterfaceGen<int>[], false); Eval(7311, o is ImplementTwoInterfaceGen<int>?, false); Eval(7312, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7313, o is ImplementAllInterface<int>, false); Eval(7314, o is ImplementAllInterface<int>[], false); Eval(7315, o is ImplementAllInterface<int>?, false); Eval(7316, o is ImplementAllInterface<int>?[], false); Eval(7317, o is IntE, false); Eval(7318, o is IntE[], false); Eval(7319, o is IntE?, false); Eval(7320, o is IntE?[], false); Eval(7321, o is ByteE, false); Eval(7322, o is ByteE[], false); Eval(7323, o is ByteE?, false); Eval(7324, o is ByteE?[], false); Eval(7325, o is LongE, false); Eval(7326, o is LongE[], false); Eval(7327, o is LongE?, false); Eval(7328, o is LongE?[], false); Eval(7329, o is char, false); Eval(7330, o is char[], false); Eval(7331, o is char?, false); Eval(7332, o is char?[], false); Eval(7333, o is bool, false); Eval(7334, o is bool[], false); Eval(7335, o is bool?, false); Eval(7336, o is bool?[], false); Eval(7337, o is byte, false); Eval(7338, o is byte[], false); Eval(7339, o is byte?, false); Eval(7340, o is byte?[], false); Eval(7341, o is sbyte, false); Eval(7342, o is sbyte[], false); Eval(7343, o is sbyte?, false); Eval(7344, o is sbyte?[], false); Eval(7345, o is short, false); Eval(7346, o is short[], false); Eval(7347, o is short?, false); Eval(7348, o is short?[], false); Eval(7349, o is ushort, false); Eval(7350, o is ushort[], false); Eval(7351, o is ushort?, false); Eval(7352, o is ushort?[], false); Eval(7353, o is int, false); Eval(7354, o is int[], false); Eval(7355, o is int?, false); Eval(7356, o is int?[], false); Eval(7357, o is uint, false); Eval(7358, o is uint[], false); Eval(7359, o is uint?, false); Eval(7360, o is uint?[], false); Eval(7361, o is long, false); Eval(7362, o is long[], false); Eval(7363, o is long?, false); Eval(7364, o is long?[], false); Eval(7365, o is ulong, false); Eval(7366, o is ulong[], false); Eval(7367, o is ulong?, false); Eval(7368, o is ulong?[], false); Eval(7369, o is float, false); Eval(7370, o is float[], false); Eval(7371, o is float?, false); Eval(7372, o is float?[], false); Eval(7373, o is double, false); Eval(7374, o is double[], false); Eval(7375, o is double?, false); Eval(7376, o is double?[], false); Eval(7377, o is decimal, false); Eval(7378, o is decimal[], false); Eval(7379, o is decimal?, false); Eval(7380, o is decimal?[], false); Eval(7381, o is IntPtr, false); Eval(7382, o is IntPtr[], false); Eval(7383, o is IntPtr?, false); Eval(7384, o is IntPtr?[], false); Eval(7385, o is UIntPtr, false); Eval(7386, o is UIntPtr[], false); Eval(7387, o is UIntPtr?, false); Eval(7388, o is UIntPtr?[], false); Eval(7389, o is Guid, false); Eval(7390, o is Guid[], false); Eval(7391, o is Guid?, false); Eval(7392, o is Guid?[], false); Eval(7393, o is GCHandle, false); Eval(7394, o is GCHandle[], false); Eval(7395, o is GCHandle?, false); Eval(7396, o is GCHandle?[], false); Eval(7397, o is object, true); Eval(7398, o is object[], false); Eval(7399, o is string, false); Eval(7400, o is string[], false); Eval(7401, o is ValueType, true); Eval(7402, o is ValueType[], false); Eval(7403, o is Array, false); Eval(7404, o is Array[], false); Eval(7405, o is Enum, false); Eval(7406, o is Enum[], false); Eval(7407, o is Delegate, false); Eval(7408, o is Delegate[], false); Eval(7409, o is MulticastDelegate, false); Eval(7410, o is MulticastDelegate[], false); Eval(7411, o is IEmpty, true); Eval(7412, o is IEmpty[], false); Eval(7413, o is INotEmpty, true); Eval(7414, o is INotEmpty[], false); Eval(7415, o is IEmptyGen<int>, false); Eval(7416, o is IEmptyGen<int>[], false); Eval(7417, o is INotEmptyGen<int>, false); Eval(7418, o is INotEmptyGen<int>[], false); Eval(7419, o is SimpleDelegate, false); Eval(7420, o is SimpleDelegate[], false); Eval(7421, o is GenericDelegate<int>, false); Eval(7422, o is GenericDelegate<int>[], false); Eval(7423, o is EmptyClass, false); Eval(7424, o is EmptyClass[], false); Eval(7425, o is NotEmptyClass, false); Eval(7426, o is NotEmptyClass[], false); Eval(7427, o is EmptyClassGen<int>, false); Eval(7428, o is EmptyClassGen<int>[], false); Eval(7429, o is NotEmptyClassGen<Guid>, false); Eval(7430, o is NotEmptyClassGen<Guid>[], false); Eval(7431, o is NotEmptyClassConstrainedGen<object>, false); Eval(7432, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7433, o is NestedClass, false); Eval(7434, o is NestedClass[], false); Eval(7435, o is NestedClassGen<Decimal>, false); Eval(7436, o is NestedClassGen<Decimal>[], false); Eval(7437, o is ImplementOneInterfaceC, false); Eval(7438, o is ImplementOneInterfaceC[], false); Eval(7439, o is ImplementTwoInterfaceC, false); Eval(7440, o is ImplementTwoInterfaceC[], false); Eval(7441, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7442, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7443, o is ImplementTwoInterfaceGenC<int>, false); Eval(7444, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7445, o is ImplementAllInterfaceC<int>, false); Eval(7446, o is ImplementAllInterfaceC<int>[], false); Eval(7447, o is SealedClass, false); Eval(7448, o is SealedClass[], false); } { ImplementTwoInterface? v = default(ImplementTwoInterface?); ValueType o = v; Eval(7449, o is EmptyStruct, false); Eval(7450, o is EmptyStruct[], false); Eval(7451, o is EmptyStruct?, false); Eval(7452, o is EmptyStruct?[], false); Eval(7453, o is NotEmptyStruct, false); Eval(7454, o is NotEmptyStruct[], false); Eval(7455, o is NotEmptyStruct?, false); Eval(7456, o is NotEmptyStruct?[], false); Eval(7457, o is EmptyStructGen<int>, false); Eval(7458, o is EmptyStructGen<int>[], false); Eval(7459, o is EmptyStructGen<int>?, false); Eval(7460, o is EmptyStructGen<int>?[], false); Eval(7461, o is NotEmptyStructGen<Guid>, false); Eval(7462, o is NotEmptyStructGen<Guid>[], false); Eval(7463, o is NotEmptyStructGen<Guid>?, false); Eval(7464, o is NotEmptyStructGen<Guid>?[], false); Eval(7465, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7466, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7467, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7468, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7469, o is NestedStruct, false); Eval(7470, o is NestedStruct[], false); Eval(7471, o is NestedStruct?, false); Eval(7472, o is NestedStruct?[], false); Eval(7473, o is NestedStructGen<Decimal>, false); Eval(7474, o is NestedStructGen<Decimal>[], false); Eval(7475, o is NestedStructGen<Decimal>?, false); Eval(7476, o is NestedStructGen<Decimal>?[], false); Eval(7477, o is ExplicitFieldOffsetStruct, false); Eval(7478, o is ExplicitFieldOffsetStruct[], false); Eval(7479, o is ExplicitFieldOffsetStruct?, false); Eval(7480, o is ExplicitFieldOffsetStruct?[], false); Eval(7489, o is MarshalAsStruct, false); Eval(7490, o is MarshalAsStruct[], false); Eval(7491, o is MarshalAsStruct?, false); Eval(7492, o is MarshalAsStruct?[], false); Eval(7493, o is ImplementOneInterface, false); Eval(7494, o is ImplementOneInterface[], false); Eval(7495, o is ImplementOneInterface?, false); Eval(7496, o is ImplementOneInterface?[], false); Eval(7497, o is ImplementTwoInterface, false); Eval(7498, o is ImplementTwoInterface[], false); Eval(7499, o is ImplementTwoInterface?, false); Eval(7500, o is ImplementTwoInterface?[], false); Eval(7501, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(7502, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7503, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(7504, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7505, o is ImplementTwoInterfaceGen<int>, false); Eval(7506, o is ImplementTwoInterfaceGen<int>[], false); Eval(7507, o is ImplementTwoInterfaceGen<int>?, false); Eval(7508, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7509, o is ImplementAllInterface<int>, false); Eval(7510, o is ImplementAllInterface<int>[], false); Eval(7511, o is ImplementAllInterface<int>?, false); Eval(7512, o is ImplementAllInterface<int>?[], false); Eval(7513, o is IntE, false); Eval(7514, o is IntE[], false); Eval(7515, o is IntE?, false); Eval(7516, o is IntE?[], false); Eval(7517, o is ByteE, false); Eval(7518, o is ByteE[], false); Eval(7519, o is ByteE?, false); Eval(7520, o is ByteE?[], false); Eval(7521, o is LongE, false); Eval(7522, o is LongE[], false); Eval(7523, o is LongE?, false); Eval(7524, o is LongE?[], false); Eval(7525, o is char, false); Eval(7526, o is char[], false); Eval(7527, o is char?, false); Eval(7528, o is char?[], false); Eval(7529, o is bool, false); Eval(7530, o is bool[], false); Eval(7531, o is bool?, false); Eval(7532, o is bool?[], false); Eval(7533, o is byte, false); Eval(7534, o is byte[], false); Eval(7535, o is byte?, false); Eval(7536, o is byte?[], false); Eval(7537, o is sbyte, false); Eval(7538, o is sbyte[], false); Eval(7539, o is sbyte?, false); Eval(7540, o is sbyte?[], false); Eval(7541, o is short, false); Eval(7542, o is short[], false); Eval(7543, o is short?, false); Eval(7544, o is short?[], false); Eval(7545, o is ushort, false); Eval(7546, o is ushort[], false); Eval(7547, o is ushort?, false); Eval(7548, o is ushort?[], false); Eval(7549, o is int, false); Eval(7550, o is int[], false); Eval(7551, o is int?, false); Eval(7552, o is int?[], false); Eval(7553, o is uint, false); Eval(7554, o is uint[], false); Eval(7555, o is uint?, false); Eval(7556, o is uint?[], false); Eval(7557, o is long, false); Eval(7558, o is long[], false); Eval(7559, o is long?, false); Eval(7560, o is long?[], false); Eval(7561, o is ulong, false); Eval(7562, o is ulong[], false); Eval(7563, o is ulong?, false); Eval(7564, o is ulong?[], false); Eval(7565, o is float, false); Eval(7566, o is float[], false); Eval(7567, o is float?, false); Eval(7568, o is float?[], false); Eval(7569, o is double, false); Eval(7570, o is double[], false); Eval(7571, o is double?, false); Eval(7572, o is double?[], false); Eval(7573, o is decimal, false); Eval(7574, o is decimal[], false); Eval(7575, o is decimal?, false); Eval(7576, o is decimal?[], false); Eval(7577, o is IntPtr, false); Eval(7578, o is IntPtr[], false); Eval(7579, o is IntPtr?, false); Eval(7580, o is IntPtr?[], false); Eval(7581, o is UIntPtr, false); Eval(7582, o is UIntPtr[], false); Eval(7583, o is UIntPtr?, false); Eval(7584, o is UIntPtr?[], false); Eval(7585, o is Guid, false); Eval(7586, o is Guid[], false); Eval(7587, o is Guid?, false); Eval(7588, o is Guid?[], false); Eval(7589, o is GCHandle, false); Eval(7590, o is GCHandle[], false); Eval(7591, o is GCHandle?, false); Eval(7592, o is GCHandle?[], false); Eval(7593, o is object, false); Eval(7594, o is object[], false); Eval(7595, o is string, false); Eval(7596, o is string[], false); Eval(7597, o is ValueType, false); Eval(7598, o is ValueType[], false); Eval(7599, o is Array, false); Eval(7600, o is Array[], false); Eval(7601, o is Enum, false); Eval(7602, o is Enum[], false); Eval(7603, o is Delegate, false); Eval(7604, o is Delegate[], false); Eval(7605, o is MulticastDelegate, false); Eval(7606, o is MulticastDelegate[], false); Eval(7607, o is IEmpty, false); Eval(7608, o is IEmpty[], false); Eval(7609, o is INotEmpty, false); Eval(7610, o is INotEmpty[], false); Eval(7611, o is IEmptyGen<int>, false); Eval(7612, o is IEmptyGen<int>[], false); Eval(7613, o is INotEmptyGen<int>, false); Eval(7614, o is INotEmptyGen<int>[], false); Eval(7615, o is SimpleDelegate, false); Eval(7616, o is SimpleDelegate[], false); Eval(7617, o is GenericDelegate<int>, false); Eval(7618, o is GenericDelegate<int>[], false); Eval(7619, o is EmptyClass, false); Eval(7620, o is EmptyClass[], false); Eval(7621, o is NotEmptyClass, false); Eval(7622, o is NotEmptyClass[], false); Eval(7623, o is EmptyClassGen<int>, false); Eval(7624, o is EmptyClassGen<int>[], false); Eval(7625, o is NotEmptyClassGen<Guid>, false); Eval(7626, o is NotEmptyClassGen<Guid>[], false); Eval(7627, o is NotEmptyClassConstrainedGen<object>, false); Eval(7628, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7629, o is NestedClass, false); Eval(7630, o is NestedClass[], false); Eval(7631, o is NestedClassGen<Decimal>, false); Eval(7632, o is NestedClassGen<Decimal>[], false); Eval(7633, o is ImplementOneInterfaceC, false); Eval(7634, o is ImplementOneInterfaceC[], false); Eval(7635, o is ImplementTwoInterfaceC, false); Eval(7636, o is ImplementTwoInterfaceC[], false); Eval(7637, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7638, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7639, o is ImplementTwoInterfaceGenC<int>, false); Eval(7640, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7641, o is ImplementAllInterfaceC<int>, false); Eval(7642, o is ImplementAllInterfaceC<int>[], false); Eval(7643, o is SealedClass, false); Eval(7644, o is SealedClass[], false); } } // end of test case 0013 private static void TestCase0014() { { ImplementOneInterfaceGen<EmptyStructGen<int>> v = default(ImplementOneInterfaceGen<EmptyStructGen<int>>); ValueType o = v; Eval(7645, o is EmptyStruct, false); Eval(7646, o is EmptyStruct[], false); Eval(7647, o is EmptyStruct?, false); Eval(7648, o is EmptyStruct?[], false); Eval(7649, o is NotEmptyStruct, false); Eval(7650, o is NotEmptyStruct[], false); Eval(7651, o is NotEmptyStruct?, false); Eval(7652, o is NotEmptyStruct?[], false); Eval(7653, o is EmptyStructGen<int>, false); Eval(7654, o is EmptyStructGen<int>[], false); Eval(7655, o is EmptyStructGen<int>?, false); Eval(7656, o is EmptyStructGen<int>?[], false); Eval(7657, o is NotEmptyStructGen<Guid>, false); Eval(7658, o is NotEmptyStructGen<Guid>[], false); Eval(7659, o is NotEmptyStructGen<Guid>?, false); Eval(7660, o is NotEmptyStructGen<Guid>?[], false); Eval(7661, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7662, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7663, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7664, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7665, o is NestedStruct, false); Eval(7666, o is NestedStruct[], false); Eval(7667, o is NestedStruct?, false); Eval(7668, o is NestedStruct?[], false); Eval(7669, o is NestedStructGen<Decimal>, false); Eval(7670, o is NestedStructGen<Decimal>[], false); Eval(7671, o is NestedStructGen<Decimal>?, false); Eval(7672, o is NestedStructGen<Decimal>?[], false); Eval(7673, o is ExplicitFieldOffsetStruct, false); Eval(7674, o is ExplicitFieldOffsetStruct[], false); Eval(7675, o is ExplicitFieldOffsetStruct?, false); Eval(7676, o is ExplicitFieldOffsetStruct?[], false); Eval(7685, o is MarshalAsStruct, false); Eval(7686, o is MarshalAsStruct[], false); Eval(7687, o is MarshalAsStruct?, false); Eval(7688, o is MarshalAsStruct?[], false); Eval(7689, o is ImplementOneInterface, false); Eval(7690, o is ImplementOneInterface[], false); Eval(7691, o is ImplementOneInterface?, false); Eval(7692, o is ImplementOneInterface?[], false); Eval(7693, o is ImplementTwoInterface, false); Eval(7694, o is ImplementTwoInterface[], false); Eval(7695, o is ImplementTwoInterface?, false); Eval(7696, o is ImplementTwoInterface?[], false); Eval(7697, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, true); Eval(7698, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7699, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, true); Eval(7700, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7701, o is ImplementTwoInterfaceGen<int>, false); Eval(7702, o is ImplementTwoInterfaceGen<int>[], false); Eval(7703, o is ImplementTwoInterfaceGen<int>?, false); Eval(7704, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7705, o is ImplementAllInterface<int>, false); Eval(7706, o is ImplementAllInterface<int>[], false); Eval(7707, o is ImplementAllInterface<int>?, false); Eval(7708, o is ImplementAllInterface<int>?[], false); Eval(7709, o is IntE, false); Eval(7710, o is IntE[], false); Eval(7711, o is IntE?, false); Eval(7712, o is IntE?[], false); Eval(7713, o is ByteE, false); Eval(7714, o is ByteE[], false); Eval(7715, o is ByteE?, false); Eval(7716, o is ByteE?[], false); Eval(7717, o is LongE, false); Eval(7718, o is LongE[], false); Eval(7719, o is LongE?, false); Eval(7720, o is LongE?[], false); Eval(7721, o is char, false); Eval(7722, o is char[], false); Eval(7723, o is char?, false); Eval(7724, o is char?[], false); Eval(7725, o is bool, false); Eval(7726, o is bool[], false); Eval(7727, o is bool?, false); Eval(7728, o is bool?[], false); Eval(7729, o is byte, false); Eval(7730, o is byte[], false); Eval(7731, o is byte?, false); Eval(7732, o is byte?[], false); Eval(7733, o is sbyte, false); Eval(7734, o is sbyte[], false); Eval(7735, o is sbyte?, false); Eval(7736, o is sbyte?[], false); Eval(7737, o is short, false); Eval(7738, o is short[], false); Eval(7739, o is short?, false); Eval(7740, o is short?[], false); Eval(7741, o is ushort, false); Eval(7742, o is ushort[], false); Eval(7743, o is ushort?, false); Eval(7744, o is ushort?[], false); Eval(7745, o is int, false); Eval(7746, o is int[], false); Eval(7747, o is int?, false); Eval(7748, o is int?[], false); Eval(7749, o is uint, false); Eval(7750, o is uint[], false); Eval(7751, o is uint?, false); Eval(7752, o is uint?[], false); Eval(7753, o is long, false); Eval(7754, o is long[], false); Eval(7755, o is long?, false); Eval(7756, o is long?[], false); Eval(7757, o is ulong, false); Eval(7758, o is ulong[], false); Eval(7759, o is ulong?, false); Eval(7760, o is ulong?[], false); Eval(7761, o is float, false); Eval(7762, o is float[], false); Eval(7763, o is float?, false); Eval(7764, o is float?[], false); Eval(7765, o is double, false); Eval(7766, o is double[], false); Eval(7767, o is double?, false); Eval(7768, o is double?[], false); Eval(7769, o is decimal, false); Eval(7770, o is decimal[], false); Eval(7771, o is decimal?, false); Eval(7772, o is decimal?[], false); Eval(7773, o is IntPtr, false); Eval(7774, o is IntPtr[], false); Eval(7775, o is IntPtr?, false); Eval(7776, o is IntPtr?[], false); Eval(7777, o is UIntPtr, false); Eval(7778, o is UIntPtr[], false); Eval(7779, o is UIntPtr?, false); Eval(7780, o is UIntPtr?[], false); Eval(7781, o is Guid, false); Eval(7782, o is Guid[], false); Eval(7783, o is Guid?, false); Eval(7784, o is Guid?[], false); Eval(7785, o is GCHandle, false); Eval(7786, o is GCHandle[], false); Eval(7787, o is GCHandle?, false); Eval(7788, o is GCHandle?[], false); Eval(7789, o is object, true); Eval(7790, o is object[], false); Eval(7791, o is string, false); Eval(7792, o is string[], false); Eval(7793, o is ValueType, true); Eval(7794, o is ValueType[], false); Eval(7795, o is Array, false); Eval(7796, o is Array[], false); Eval(7797, o is Enum, false); Eval(7798, o is Enum[], false); Eval(7799, o is Delegate, false); Eval(7800, o is Delegate[], false); Eval(7801, o is MulticastDelegate, false); Eval(7802, o is MulticastDelegate[], false); Eval(7803, o is IEmpty, false); Eval(7804, o is IEmpty[], false); Eval(7805, o is INotEmpty, false); Eval(7806, o is INotEmpty[], false); Eval(7807, o is IEmptyGen<int>, false); Eval(7808, o is IEmptyGen<int>[], false); Eval(7809, o is INotEmptyGen<int>, false); Eval(7810, o is INotEmptyGen<int>[], false); Eval(7811, o is SimpleDelegate, false); Eval(7812, o is SimpleDelegate[], false); Eval(7813, o is GenericDelegate<int>, false); Eval(7814, o is GenericDelegate<int>[], false); Eval(7815, o is EmptyClass, false); Eval(7816, o is EmptyClass[], false); Eval(7817, o is NotEmptyClass, false); Eval(7818, o is NotEmptyClass[], false); Eval(7819, o is EmptyClassGen<int>, false); Eval(7820, o is EmptyClassGen<int>[], false); Eval(7821, o is NotEmptyClassGen<Guid>, false); Eval(7822, o is NotEmptyClassGen<Guid>[], false); Eval(7823, o is NotEmptyClassConstrainedGen<object>, false); Eval(7824, o is NotEmptyClassConstrainedGen<object>[], false); Eval(7825, o is NestedClass, false); Eval(7826, o is NestedClass[], false); Eval(7827, o is NestedClassGen<Decimal>, false); Eval(7828, o is NestedClassGen<Decimal>[], false); Eval(7829, o is ImplementOneInterfaceC, false); Eval(7830, o is ImplementOneInterfaceC[], false); Eval(7831, o is ImplementTwoInterfaceC, false); Eval(7832, o is ImplementTwoInterfaceC[], false); Eval(7833, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(7834, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(7835, o is ImplementTwoInterfaceGenC<int>, false); Eval(7836, o is ImplementTwoInterfaceGenC<int>[], false); Eval(7837, o is ImplementAllInterfaceC<int>, false); Eval(7838, o is ImplementAllInterfaceC<int>[], false); Eval(7839, o is SealedClass, false); Eval(7840, o is SealedClass[], false); } { ImplementOneInterfaceGen<EmptyStructGen<int>>? v = default(ImplementOneInterfaceGen<EmptyStructGen<int>>); ValueType o = v; Eval(7841, o is EmptyStruct, false); Eval(7842, o is EmptyStruct[], false); Eval(7843, o is EmptyStruct?, false); Eval(7844, o is EmptyStruct?[], false); Eval(7845, o is NotEmptyStruct, false); Eval(7846, o is NotEmptyStruct[], false); Eval(7847, o is NotEmptyStruct?, false); Eval(7848, o is NotEmptyStruct?[], false); Eval(7849, o is EmptyStructGen<int>, false); Eval(7850, o is EmptyStructGen<int>[], false); Eval(7851, o is EmptyStructGen<int>?, false); Eval(7852, o is EmptyStructGen<int>?[], false); Eval(7853, o is NotEmptyStructGen<Guid>, false); Eval(7854, o is NotEmptyStructGen<Guid>[], false); Eval(7855, o is NotEmptyStructGen<Guid>?, false); Eval(7856, o is NotEmptyStructGen<Guid>?[], false); Eval(7857, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(7858, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(7859, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(7860, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(7861, o is NestedStruct, false); Eval(7862, o is NestedStruct[], false); Eval(7863, o is NestedStruct?, false); Eval(7864, o is NestedStruct?[], false); Eval(7865, o is NestedStructGen<Decimal>, false); Eval(7866, o is NestedStructGen<Decimal>[], false); Eval(7867, o is NestedStructGen<Decimal>?, false); Eval(7868, o is NestedStructGen<Decimal>?[], false); Eval(7869, o is ExplicitFieldOffsetStruct, false); Eval(7870, o is ExplicitFieldOffsetStruct[], false); Eval(7871, o is ExplicitFieldOffsetStruct?, false); Eval(7872, o is ExplicitFieldOffsetStruct?[], false); Eval(7881, o is MarshalAsStruct, false); Eval(7882, o is MarshalAsStruct[], false); Eval(7883, o is MarshalAsStruct?, false); Eval(7884, o is MarshalAsStruct?[], false); Eval(7885, o is ImplementOneInterface, false); Eval(7886, o is ImplementOneInterface[], false); Eval(7887, o is ImplementOneInterface?, false); Eval(7888, o is ImplementOneInterface?[], false); Eval(7889, o is ImplementTwoInterface, false); Eval(7890, o is ImplementTwoInterface[], false); Eval(7891, o is ImplementTwoInterface?, false); Eval(7892, o is ImplementTwoInterface?[], false); Eval(7893, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, true); Eval(7894, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(7895, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, true); Eval(7896, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(7897, o is ImplementTwoInterfaceGen<int>, false); Eval(7898, o is ImplementTwoInterfaceGen<int>[], false); Eval(7899, o is ImplementTwoInterfaceGen<int>?, false); Eval(7900, o is ImplementTwoInterfaceGen<int>?[], false); Eval(7901, o is ImplementAllInterface<int>, false); Eval(7902, o is ImplementAllInterface<int>[], false); Eval(7903, o is ImplementAllInterface<int>?, false); Eval(7904, o is ImplementAllInterface<int>?[], false); Eval(7905, o is IntE, false); Eval(7906, o is IntE[], false); Eval(7907, o is IntE?, false); Eval(7908, o is IntE?[], false); Eval(7909, o is ByteE, false); Eval(7910, o is ByteE[], false); Eval(7911, o is ByteE?, false); Eval(7912, o is ByteE?[], false); Eval(7913, o is LongE, false); Eval(7914, o is LongE[], false); Eval(7915, o is LongE?, false); Eval(7916, o is LongE?[], false); Eval(7917, o is char, false); Eval(7918, o is char[], false); Eval(7919, o is char?, false); Eval(7920, o is char?[], false); Eval(7921, o is bool, false); Eval(7922, o is bool[], false); Eval(7923, o is bool?, false); Eval(7924, o is bool?[], false); Eval(7925, o is byte, false); Eval(7926, o is byte[], false); Eval(7927, o is byte?, false); Eval(7928, o is byte?[], false); Eval(7929, o is sbyte, false); Eval(7930, o is sbyte[], false); Eval(7931, o is sbyte?, false); Eval(7932, o is sbyte?[], false); Eval(7933, o is short, false); Eval(7934, o is short[], false); Eval(7935, o is short?, false); Eval(7936, o is short?[], false); Eval(7937, o is ushort, false); Eval(7938, o is ushort[], false); Eval(7939, o is ushort?, false); Eval(7940, o is ushort?[], false); Eval(7941, o is int, false); Eval(7942, o is int[], false); Eval(7943, o is int?, false); Eval(7944, o is int?[], false); Eval(7945, o is uint, false); Eval(7946, o is uint[], false); Eval(7947, o is uint?, false); Eval(7948, o is uint?[], false); Eval(7949, o is long, false); Eval(7950, o is long[], false); Eval(7951, o is long?, false); Eval(7952, o is long?[], false); Eval(7953, o is ulong, false); Eval(7954, o is ulong[], false); Eval(7955, o is ulong?, false); Eval(7956, o is ulong?[], false); Eval(7957, o is float, false); Eval(7958, o is float[], false); Eval(7959, o is float?, false); Eval(7960, o is float?[], false); Eval(7961, o is double, false); Eval(7962, o is double[], false); Eval(7963, o is double?, false); Eval(7964, o is double?[], false); Eval(7965, o is decimal, false); Eval(7966, o is decimal[], false); Eval(7967, o is decimal?, false); Eval(7968, o is decimal?[], false); Eval(7969, o is IntPtr, false); Eval(7970, o is IntPtr[], false); Eval(7971, o is IntPtr?, false); Eval(7972, o is IntPtr?[], false); Eval(7973, o is UIntPtr, false); Eval(7974, o is UIntPtr[], false); Eval(7975, o is UIntPtr?, false); Eval(7976, o is UIntPtr?[], false); Eval(7977, o is Guid, false); Eval(7978, o is Guid[], false); Eval(7979, o is Guid?, false); Eval(7980, o is Guid?[], false); Eval(7981, o is GCHandle, false); Eval(7982, o is GCHandle[], false); Eval(7983, o is GCHandle?, false); Eval(7984, o is GCHandle?[], false); Eval(7985, o is object, true); Eval(7986, o is object[], false); Eval(7987, o is string, false); Eval(7988, o is string[], false); Eval(7989, o is ValueType, true); Eval(7990, o is ValueType[], false); Eval(7991, o is Array, false); Eval(7992, o is Array[], false); Eval(7993, o is Enum, false); Eval(7994, o is Enum[], false); Eval(7995, o is Delegate, false); Eval(7996, o is Delegate[], false); Eval(7997, o is MulticastDelegate, false); Eval(7998, o is MulticastDelegate[], false); Eval(7999, o is IEmpty, false); Eval(8000, o is IEmpty[], false); Eval(8001, o is INotEmpty, false); Eval(8002, o is INotEmpty[], false); Eval(8003, o is IEmptyGen<int>, false); Eval(8004, o is IEmptyGen<int>[], false); Eval(8005, o is INotEmptyGen<int>, false); Eval(8006, o is INotEmptyGen<int>[], false); Eval(8007, o is SimpleDelegate, false); Eval(8008, o is SimpleDelegate[], false); Eval(8009, o is GenericDelegate<int>, false); Eval(8010, o is GenericDelegate<int>[], false); Eval(8011, o is EmptyClass, false); Eval(8012, o is EmptyClass[], false); Eval(8013, o is NotEmptyClass, false); Eval(8014, o is NotEmptyClass[], false); Eval(8015, o is EmptyClassGen<int>, false); Eval(8016, o is EmptyClassGen<int>[], false); Eval(8017, o is NotEmptyClassGen<Guid>, false); Eval(8018, o is NotEmptyClassGen<Guid>[], false); Eval(8019, o is NotEmptyClassConstrainedGen<object>, false); Eval(8020, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8021, o is NestedClass, false); Eval(8022, o is NestedClass[], false); Eval(8023, o is NestedClassGen<Decimal>, false); Eval(8024, o is NestedClassGen<Decimal>[], false); Eval(8025, o is ImplementOneInterfaceC, false); Eval(8026, o is ImplementOneInterfaceC[], false); Eval(8027, o is ImplementTwoInterfaceC, false); Eval(8028, o is ImplementTwoInterfaceC[], false); Eval(8029, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8030, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8031, o is ImplementTwoInterfaceGenC<int>, false); Eval(8032, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8033, o is ImplementAllInterfaceC<int>, false); Eval(8034, o is ImplementAllInterfaceC<int>[], false); Eval(8035, o is SealedClass, false); Eval(8036, o is SealedClass[], false); } { ImplementOneInterfaceGen<EmptyStructGen<int>>? v = default(ImplementOneInterfaceGen<EmptyStructGen<int>>?); ValueType o = v; Eval(8037, o is EmptyStruct, false); Eval(8038, o is EmptyStruct[], false); Eval(8039, o is EmptyStruct?, false); Eval(8040, o is EmptyStruct?[], false); Eval(8041, o is NotEmptyStruct, false); Eval(8042, o is NotEmptyStruct[], false); Eval(8043, o is NotEmptyStruct?, false); Eval(8044, o is NotEmptyStruct?[], false); Eval(8045, o is EmptyStructGen<int>, false); Eval(8046, o is EmptyStructGen<int>[], false); Eval(8047, o is EmptyStructGen<int>?, false); Eval(8048, o is EmptyStructGen<int>?[], false); Eval(8049, o is NotEmptyStructGen<Guid>, false); Eval(8050, o is NotEmptyStructGen<Guid>[], false); Eval(8051, o is NotEmptyStructGen<Guid>?, false); Eval(8052, o is NotEmptyStructGen<Guid>?[], false); Eval(8053, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8054, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8055, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8056, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8057, o is NestedStruct, false); Eval(8058, o is NestedStruct[], false); Eval(8059, o is NestedStruct?, false); Eval(8060, o is NestedStruct?[], false); Eval(8061, o is NestedStructGen<Decimal>, false); Eval(8062, o is NestedStructGen<Decimal>[], false); Eval(8063, o is NestedStructGen<Decimal>?, false); Eval(8064, o is NestedStructGen<Decimal>?[], false); Eval(8065, o is ExplicitFieldOffsetStruct, false); Eval(8066, o is ExplicitFieldOffsetStruct[], false); Eval(8067, o is ExplicitFieldOffsetStruct?, false); Eval(8068, o is ExplicitFieldOffsetStruct?[], false); Eval(8077, o is MarshalAsStruct, false); Eval(8078, o is MarshalAsStruct[], false); Eval(8079, o is MarshalAsStruct?, false); Eval(8080, o is MarshalAsStruct?[], false); Eval(8081, o is ImplementOneInterface, false); Eval(8082, o is ImplementOneInterface[], false); Eval(8083, o is ImplementOneInterface?, false); Eval(8084, o is ImplementOneInterface?[], false); Eval(8085, o is ImplementTwoInterface, false); Eval(8086, o is ImplementTwoInterface[], false); Eval(8087, o is ImplementTwoInterface?, false); Eval(8088, o is ImplementTwoInterface?[], false); Eval(8089, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8090, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8091, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8092, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8093, o is ImplementTwoInterfaceGen<int>, false); Eval(8094, o is ImplementTwoInterfaceGen<int>[], false); Eval(8095, o is ImplementTwoInterfaceGen<int>?, false); Eval(8096, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8097, o is ImplementAllInterface<int>, false); Eval(8098, o is ImplementAllInterface<int>[], false); Eval(8099, o is ImplementAllInterface<int>?, false); Eval(8100, o is ImplementAllInterface<int>?[], false); Eval(8101, o is IntE, false); Eval(8102, o is IntE[], false); Eval(8103, o is IntE?, false); Eval(8104, o is IntE?[], false); Eval(8105, o is ByteE, false); Eval(8106, o is ByteE[], false); Eval(8107, o is ByteE?, false); Eval(8108, o is ByteE?[], false); Eval(8109, o is LongE, false); Eval(8110, o is LongE[], false); Eval(8111, o is LongE?, false); Eval(8112, o is LongE?[], false); Eval(8113, o is char, false); Eval(8114, o is char[], false); Eval(8115, o is char?, false); Eval(8116, o is char?[], false); Eval(8117, o is bool, false); Eval(8118, o is bool[], false); Eval(8119, o is bool?, false); Eval(8120, o is bool?[], false); Eval(8121, o is byte, false); Eval(8122, o is byte[], false); Eval(8123, o is byte?, false); Eval(8124, o is byte?[], false); Eval(8125, o is sbyte, false); Eval(8126, o is sbyte[], false); Eval(8127, o is sbyte?, false); Eval(8128, o is sbyte?[], false); Eval(8129, o is short, false); Eval(8130, o is short[], false); Eval(8131, o is short?, false); Eval(8132, o is short?[], false); Eval(8133, o is ushort, false); Eval(8134, o is ushort[], false); Eval(8135, o is ushort?, false); Eval(8136, o is ushort?[], false); Eval(8137, o is int, false); Eval(8138, o is int[], false); Eval(8139, o is int?, false); Eval(8140, o is int?[], false); Eval(8141, o is uint, false); Eval(8142, o is uint[], false); Eval(8143, o is uint?, false); Eval(8144, o is uint?[], false); Eval(8145, o is long, false); Eval(8146, o is long[], false); Eval(8147, o is long?, false); Eval(8148, o is long?[], false); Eval(8149, o is ulong, false); Eval(8150, o is ulong[], false); Eval(8151, o is ulong?, false); Eval(8152, o is ulong?[], false); Eval(8153, o is float, false); Eval(8154, o is float[], false); Eval(8155, o is float?, false); Eval(8156, o is float?[], false); Eval(8157, o is double, false); Eval(8158, o is double[], false); Eval(8159, o is double?, false); Eval(8160, o is double?[], false); Eval(8161, o is decimal, false); Eval(8162, o is decimal[], false); Eval(8163, o is decimal?, false); Eval(8164, o is decimal?[], false); Eval(8165, o is IntPtr, false); Eval(8166, o is IntPtr[], false); Eval(8167, o is IntPtr?, false); Eval(8168, o is IntPtr?[], false); Eval(8169, o is UIntPtr, false); Eval(8170, o is UIntPtr[], false); Eval(8171, o is UIntPtr?, false); Eval(8172, o is UIntPtr?[], false); Eval(8173, o is Guid, false); Eval(8174, o is Guid[], false); Eval(8175, o is Guid?, false); Eval(8176, o is Guid?[], false); Eval(8177, o is GCHandle, false); Eval(8178, o is GCHandle[], false); Eval(8179, o is GCHandle?, false); Eval(8180, o is GCHandle?[], false); Eval(8181, o is object, false); Eval(8182, o is object[], false); Eval(8183, o is string, false); Eval(8184, o is string[], false); Eval(8185, o is ValueType, false); Eval(8186, o is ValueType[], false); Eval(8187, o is Array, false); Eval(8188, o is Array[], false); Eval(8189, o is Enum, false); Eval(8190, o is Enum[], false); Eval(8191, o is Delegate, false); Eval(8192, o is Delegate[], false); Eval(8193, o is MulticastDelegate, false); Eval(8194, o is MulticastDelegate[], false); Eval(8195, o is IEmpty, false); Eval(8196, o is IEmpty[], false); Eval(8197, o is INotEmpty, false); Eval(8198, o is INotEmpty[], false); Eval(8199, o is IEmptyGen<int>, false); Eval(8200, o is IEmptyGen<int>[], false); Eval(8201, o is INotEmptyGen<int>, false); Eval(8202, o is INotEmptyGen<int>[], false); Eval(8203, o is SimpleDelegate, false); Eval(8204, o is SimpleDelegate[], false); Eval(8205, o is GenericDelegate<int>, false); Eval(8206, o is GenericDelegate<int>[], false); Eval(8207, o is EmptyClass, false); Eval(8208, o is EmptyClass[], false); Eval(8209, o is NotEmptyClass, false); Eval(8210, o is NotEmptyClass[], false); Eval(8211, o is EmptyClassGen<int>, false); Eval(8212, o is EmptyClassGen<int>[], false); Eval(8213, o is NotEmptyClassGen<Guid>, false); Eval(8214, o is NotEmptyClassGen<Guid>[], false); Eval(8215, o is NotEmptyClassConstrainedGen<object>, false); Eval(8216, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8217, o is NestedClass, false); Eval(8218, o is NestedClass[], false); Eval(8219, o is NestedClassGen<Decimal>, false); Eval(8220, o is NestedClassGen<Decimal>[], false); Eval(8221, o is ImplementOneInterfaceC, false); Eval(8222, o is ImplementOneInterfaceC[], false); Eval(8223, o is ImplementTwoInterfaceC, false); Eval(8224, o is ImplementTwoInterfaceC[], false); Eval(8225, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8226, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8227, o is ImplementTwoInterfaceGenC<int>, false); Eval(8228, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8229, o is ImplementAllInterfaceC<int>, false); Eval(8230, o is ImplementAllInterfaceC<int>[], false); Eval(8231, o is SealedClass, false); Eval(8232, o is SealedClass[], false); } } // end of test case 0014 private static void TestCase0015() { { ImplementTwoInterfaceGen<int> v = default(ImplementTwoInterfaceGen<int>); ValueType o = v; Eval(8233, o is EmptyStruct, false); Eval(8234, o is EmptyStruct[], false); Eval(8235, o is EmptyStruct?, false); Eval(8236, o is EmptyStruct?[], false); Eval(8237, o is NotEmptyStruct, false); Eval(8238, o is NotEmptyStruct[], false); Eval(8239, o is NotEmptyStruct?, false); Eval(8240, o is NotEmptyStruct?[], false); Eval(8241, o is EmptyStructGen<int>, false); Eval(8242, o is EmptyStructGen<int>[], false); Eval(8243, o is EmptyStructGen<int>?, false); Eval(8244, o is EmptyStructGen<int>?[], false); Eval(8245, o is NotEmptyStructGen<Guid>, false); Eval(8246, o is NotEmptyStructGen<Guid>[], false); Eval(8247, o is NotEmptyStructGen<Guid>?, false); Eval(8248, o is NotEmptyStructGen<Guid>?[], false); Eval(8249, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8250, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8251, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8252, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8253, o is NestedStruct, false); Eval(8254, o is NestedStruct[], false); Eval(8255, o is NestedStruct?, false); Eval(8256, o is NestedStruct?[], false); Eval(8257, o is NestedStructGen<Decimal>, false); Eval(8258, o is NestedStructGen<Decimal>[], false); Eval(8259, o is NestedStructGen<Decimal>?, false); Eval(8260, o is NestedStructGen<Decimal>?[], false); Eval(8261, o is ExplicitFieldOffsetStruct, false); Eval(8262, o is ExplicitFieldOffsetStruct[], false); Eval(8263, o is ExplicitFieldOffsetStruct?, false); Eval(8264, o is ExplicitFieldOffsetStruct?[], false); Eval(8273, o is MarshalAsStruct, false); Eval(8274, o is MarshalAsStruct[], false); Eval(8275, o is MarshalAsStruct?, false); Eval(8276, o is MarshalAsStruct?[], false); Eval(8277, o is ImplementOneInterface, false); Eval(8278, o is ImplementOneInterface[], false); Eval(8279, o is ImplementOneInterface?, false); Eval(8280, o is ImplementOneInterface?[], false); Eval(8281, o is ImplementTwoInterface, false); Eval(8282, o is ImplementTwoInterface[], false); Eval(8283, o is ImplementTwoInterface?, false); Eval(8284, o is ImplementTwoInterface?[], false); Eval(8285, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8286, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8287, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8288, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8289, o is ImplementTwoInterfaceGen<int>, true); Eval(8290, o is ImplementTwoInterfaceGen<int>[], false); Eval(8291, o is ImplementTwoInterfaceGen<int>?, true); Eval(8292, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8293, o is ImplementAllInterface<int>, false); Eval(8294, o is ImplementAllInterface<int>[], false); Eval(8295, o is ImplementAllInterface<int>?, false); Eval(8296, o is ImplementAllInterface<int>?[], false); Eval(8297, o is IntE, false); Eval(8298, o is IntE[], false); Eval(8299, o is IntE?, false); Eval(8300, o is IntE?[], false); Eval(8301, o is ByteE, false); Eval(8302, o is ByteE[], false); Eval(8303, o is ByteE?, false); Eval(8304, o is ByteE?[], false); Eval(8305, o is LongE, false); Eval(8306, o is LongE[], false); Eval(8307, o is LongE?, false); Eval(8308, o is LongE?[], false); Eval(8309, o is char, false); Eval(8310, o is char[], false); Eval(8311, o is char?, false); Eval(8312, o is char?[], false); Eval(8313, o is bool, false); Eval(8314, o is bool[], false); Eval(8315, o is bool?, false); Eval(8316, o is bool?[], false); Eval(8317, o is byte, false); Eval(8318, o is byte[], false); Eval(8319, o is byte?, false); Eval(8320, o is byte?[], false); Eval(8321, o is sbyte, false); Eval(8322, o is sbyte[], false); Eval(8323, o is sbyte?, false); Eval(8324, o is sbyte?[], false); Eval(8325, o is short, false); Eval(8326, o is short[], false); Eval(8327, o is short?, false); Eval(8328, o is short?[], false); Eval(8329, o is ushort, false); Eval(8330, o is ushort[], false); Eval(8331, o is ushort?, false); Eval(8332, o is ushort?[], false); Eval(8333, o is int, false); Eval(8334, o is int[], false); Eval(8335, o is int?, false); Eval(8336, o is int?[], false); Eval(8337, o is uint, false); Eval(8338, o is uint[], false); Eval(8339, o is uint?, false); Eval(8340, o is uint?[], false); Eval(8341, o is long, false); Eval(8342, o is long[], false); Eval(8343, o is long?, false); Eval(8344, o is long?[], false); Eval(8345, o is ulong, false); Eval(8346, o is ulong[], false); Eval(8347, o is ulong?, false); Eval(8348, o is ulong?[], false); Eval(8349, o is float, false); Eval(8350, o is float[], false); Eval(8351, o is float?, false); Eval(8352, o is float?[], false); Eval(8353, o is double, false); Eval(8354, o is double[], false); Eval(8355, o is double?, false); Eval(8356, o is double?[], false); Eval(8357, o is decimal, false); Eval(8358, o is decimal[], false); Eval(8359, o is decimal?, false); Eval(8360, o is decimal?[], false); Eval(8361, o is IntPtr, false); Eval(8362, o is IntPtr[], false); Eval(8363, o is IntPtr?, false); Eval(8364, o is IntPtr?[], false); Eval(8365, o is UIntPtr, false); Eval(8366, o is UIntPtr[], false); Eval(8367, o is UIntPtr?, false); Eval(8368, o is UIntPtr?[], false); Eval(8369, o is Guid, false); Eval(8370, o is Guid[], false); Eval(8371, o is Guid?, false); Eval(8372, o is Guid?[], false); Eval(8373, o is GCHandle, false); Eval(8374, o is GCHandle[], false); Eval(8375, o is GCHandle?, false); Eval(8376, o is GCHandle?[], false); Eval(8377, o is object, true); Eval(8378, o is object[], false); Eval(8379, o is string, false); Eval(8380, o is string[], false); Eval(8381, o is ValueType, true); Eval(8382, o is ValueType[], false); Eval(8383, o is Array, false); Eval(8384, o is Array[], false); Eval(8385, o is Enum, false); Eval(8386, o is Enum[], false); Eval(8387, o is Delegate, false); Eval(8388, o is Delegate[], false); Eval(8389, o is MulticastDelegate, false); Eval(8390, o is MulticastDelegate[], false); Eval(8391, o is IEmpty, false); Eval(8392, o is IEmpty[], false); Eval(8393, o is INotEmpty, false); Eval(8394, o is INotEmpty[], false); Eval(8395, o is IEmptyGen<int>, true); Eval(8396, o is IEmptyGen<int>[], false); Eval(8397, o is INotEmptyGen<int>, true); Eval(8398, o is INotEmptyGen<int>[], false); Eval(8399, o is SimpleDelegate, false); Eval(8400, o is SimpleDelegate[], false); Eval(8401, o is GenericDelegate<int>, false); Eval(8402, o is GenericDelegate<int>[], false); Eval(8403, o is EmptyClass, false); Eval(8404, o is EmptyClass[], false); Eval(8405, o is NotEmptyClass, false); Eval(8406, o is NotEmptyClass[], false); Eval(8407, o is EmptyClassGen<int>, false); Eval(8408, o is EmptyClassGen<int>[], false); Eval(8409, o is NotEmptyClassGen<Guid>, false); Eval(8410, o is NotEmptyClassGen<Guid>[], false); Eval(8411, o is NotEmptyClassConstrainedGen<object>, false); Eval(8412, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8413, o is NestedClass, false); Eval(8414, o is NestedClass[], false); Eval(8415, o is NestedClassGen<Decimal>, false); Eval(8416, o is NestedClassGen<Decimal>[], false); Eval(8417, o is ImplementOneInterfaceC, false); Eval(8418, o is ImplementOneInterfaceC[], false); Eval(8419, o is ImplementTwoInterfaceC, false); Eval(8420, o is ImplementTwoInterfaceC[], false); Eval(8421, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8422, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8423, o is ImplementTwoInterfaceGenC<int>, false); Eval(8424, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8425, o is ImplementAllInterfaceC<int>, false); Eval(8426, o is ImplementAllInterfaceC<int>[], false); Eval(8427, o is SealedClass, false); Eval(8428, o is SealedClass[], false); } { ImplementTwoInterfaceGen<int>? v = default(ImplementTwoInterfaceGen<int>); ValueType o = v; Eval(8429, o is EmptyStruct, false); Eval(8430, o is EmptyStruct[], false); Eval(8431, o is EmptyStruct?, false); Eval(8432, o is EmptyStruct?[], false); Eval(8433, o is NotEmptyStruct, false); Eval(8434, o is NotEmptyStruct[], false); Eval(8435, o is NotEmptyStruct?, false); Eval(8436, o is NotEmptyStruct?[], false); Eval(8437, o is EmptyStructGen<int>, false); Eval(8438, o is EmptyStructGen<int>[], false); Eval(8439, o is EmptyStructGen<int>?, false); Eval(8440, o is EmptyStructGen<int>?[], false); Eval(8441, o is NotEmptyStructGen<Guid>, false); Eval(8442, o is NotEmptyStructGen<Guid>[], false); Eval(8443, o is NotEmptyStructGen<Guid>?, false); Eval(8444, o is NotEmptyStructGen<Guid>?[], false); Eval(8445, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8446, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8447, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8448, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8449, o is NestedStruct, false); Eval(8450, o is NestedStruct[], false); Eval(8451, o is NestedStruct?, false); Eval(8452, o is NestedStruct?[], false); Eval(8453, o is NestedStructGen<Decimal>, false); Eval(8454, o is NestedStructGen<Decimal>[], false); Eval(8455, o is NestedStructGen<Decimal>?, false); Eval(8456, o is NestedStructGen<Decimal>?[], false); Eval(8457, o is ExplicitFieldOffsetStruct, false); Eval(8458, o is ExplicitFieldOffsetStruct[], false); Eval(8459, o is ExplicitFieldOffsetStruct?, false); Eval(8460, o is ExplicitFieldOffsetStruct?[], false); Eval(8469, o is MarshalAsStruct, false); Eval(8470, o is MarshalAsStruct[], false); Eval(8471, o is MarshalAsStruct?, false); Eval(8472, o is MarshalAsStruct?[], false); Eval(8473, o is ImplementOneInterface, false); Eval(8474, o is ImplementOneInterface[], false); Eval(8475, o is ImplementOneInterface?, false); Eval(8476, o is ImplementOneInterface?[], false); Eval(8477, o is ImplementTwoInterface, false); Eval(8478, o is ImplementTwoInterface[], false); Eval(8479, o is ImplementTwoInterface?, false); Eval(8480, o is ImplementTwoInterface?[], false); Eval(8481, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8482, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8483, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8484, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8485, o is ImplementTwoInterfaceGen<int>, true); Eval(8486, o is ImplementTwoInterfaceGen<int>[], false); Eval(8487, o is ImplementTwoInterfaceGen<int>?, true); Eval(8488, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8489, o is ImplementAllInterface<int>, false); Eval(8490, o is ImplementAllInterface<int>[], false); Eval(8491, o is ImplementAllInterface<int>?, false); Eval(8492, o is ImplementAllInterface<int>?[], false); Eval(8493, o is IntE, false); Eval(8494, o is IntE[], false); Eval(8495, o is IntE?, false); Eval(8496, o is IntE?[], false); Eval(8497, o is ByteE, false); Eval(8498, o is ByteE[], false); Eval(8499, o is ByteE?, false); Eval(8500, o is ByteE?[], false); Eval(8501, o is LongE, false); Eval(8502, o is LongE[], false); Eval(8503, o is LongE?, false); Eval(8504, o is LongE?[], false); Eval(8505, o is char, false); Eval(8506, o is char[], false); Eval(8507, o is char?, false); Eval(8508, o is char?[], false); Eval(8509, o is bool, false); Eval(8510, o is bool[], false); Eval(8511, o is bool?, false); Eval(8512, o is bool?[], false); Eval(8513, o is byte, false); Eval(8514, o is byte[], false); Eval(8515, o is byte?, false); Eval(8516, o is byte?[], false); Eval(8517, o is sbyte, false); Eval(8518, o is sbyte[], false); Eval(8519, o is sbyte?, false); Eval(8520, o is sbyte?[], false); Eval(8521, o is short, false); Eval(8522, o is short[], false); Eval(8523, o is short?, false); Eval(8524, o is short?[], false); Eval(8525, o is ushort, false); Eval(8526, o is ushort[], false); Eval(8527, o is ushort?, false); Eval(8528, o is ushort?[], false); Eval(8529, o is int, false); Eval(8530, o is int[], false); Eval(8531, o is int?, false); Eval(8532, o is int?[], false); Eval(8533, o is uint, false); Eval(8534, o is uint[], false); Eval(8535, o is uint?, false); Eval(8536, o is uint?[], false); Eval(8537, o is long, false); Eval(8538, o is long[], false); Eval(8539, o is long?, false); Eval(8540, o is long?[], false); Eval(8541, o is ulong, false); Eval(8542, o is ulong[], false); Eval(8543, o is ulong?, false); Eval(8544, o is ulong?[], false); Eval(8545, o is float, false); Eval(8546, o is float[], false); Eval(8547, o is float?, false); Eval(8548, o is float?[], false); Eval(8549, o is double, false); Eval(8550, o is double[], false); Eval(8551, o is double?, false); Eval(8552, o is double?[], false); Eval(8553, o is decimal, false); Eval(8554, o is decimal[], false); Eval(8555, o is decimal?, false); Eval(8556, o is decimal?[], false); Eval(8557, o is IntPtr, false); Eval(8558, o is IntPtr[], false); Eval(8559, o is IntPtr?, false); Eval(8560, o is IntPtr?[], false); Eval(8561, o is UIntPtr, false); Eval(8562, o is UIntPtr[], false); Eval(8563, o is UIntPtr?, false); Eval(8564, o is UIntPtr?[], false); Eval(8565, o is Guid, false); Eval(8566, o is Guid[], false); Eval(8567, o is Guid?, false); Eval(8568, o is Guid?[], false); Eval(8569, o is GCHandle, false); Eval(8570, o is GCHandle[], false); Eval(8571, o is GCHandle?, false); Eval(8572, o is GCHandle?[], false); Eval(8573, o is object, true); Eval(8574, o is object[], false); Eval(8575, o is string, false); Eval(8576, o is string[], false); Eval(8577, o is ValueType, true); Eval(8578, o is ValueType[], false); Eval(8579, o is Array, false); Eval(8580, o is Array[], false); Eval(8581, o is Enum, false); Eval(8582, o is Enum[], false); Eval(8583, o is Delegate, false); Eval(8584, o is Delegate[], false); Eval(8585, o is MulticastDelegate, false); Eval(8586, o is MulticastDelegate[], false); Eval(8587, o is IEmpty, false); Eval(8588, o is IEmpty[], false); Eval(8589, o is INotEmpty, false); Eval(8590, o is INotEmpty[], false); Eval(8591, o is IEmptyGen<int>, true); Eval(8592, o is IEmptyGen<int>[], false); Eval(8593, o is INotEmptyGen<int>, true); Eval(8594, o is INotEmptyGen<int>[], false); Eval(8595, o is SimpleDelegate, false); Eval(8596, o is SimpleDelegate[], false); Eval(8597, o is GenericDelegate<int>, false); Eval(8598, o is GenericDelegate<int>[], false); Eval(8599, o is EmptyClass, false); Eval(8600, o is EmptyClass[], false); Eval(8601, o is NotEmptyClass, false); Eval(8602, o is NotEmptyClass[], false); Eval(8603, o is EmptyClassGen<int>, false); Eval(8604, o is EmptyClassGen<int>[], false); Eval(8605, o is NotEmptyClassGen<Guid>, false); Eval(8606, o is NotEmptyClassGen<Guid>[], false); Eval(8607, o is NotEmptyClassConstrainedGen<object>, false); Eval(8608, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8609, o is NestedClass, false); Eval(8610, o is NestedClass[], false); Eval(8611, o is NestedClassGen<Decimal>, false); Eval(8612, o is NestedClassGen<Decimal>[], false); Eval(8613, o is ImplementOneInterfaceC, false); Eval(8614, o is ImplementOneInterfaceC[], false); Eval(8615, o is ImplementTwoInterfaceC, false); Eval(8616, o is ImplementTwoInterfaceC[], false); Eval(8617, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8618, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8619, o is ImplementTwoInterfaceGenC<int>, false); Eval(8620, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8621, o is ImplementAllInterfaceC<int>, false); Eval(8622, o is ImplementAllInterfaceC<int>[], false); Eval(8623, o is SealedClass, false); Eval(8624, o is SealedClass[], false); } { ImplementTwoInterfaceGen<int>? v = default(ImplementTwoInterfaceGen<int>?); ValueType o = v; Eval(8625, o is EmptyStruct, false); Eval(8626, o is EmptyStruct[], false); Eval(8627, o is EmptyStruct?, false); Eval(8628, o is EmptyStruct?[], false); Eval(8629, o is NotEmptyStruct, false); Eval(8630, o is NotEmptyStruct[], false); Eval(8631, o is NotEmptyStruct?, false); Eval(8632, o is NotEmptyStruct?[], false); Eval(8633, o is EmptyStructGen<int>, false); Eval(8634, o is EmptyStructGen<int>[], false); Eval(8635, o is EmptyStructGen<int>?, false); Eval(8636, o is EmptyStructGen<int>?[], false); Eval(8637, o is NotEmptyStructGen<Guid>, false); Eval(8638, o is NotEmptyStructGen<Guid>[], false); Eval(8639, o is NotEmptyStructGen<Guid>?, false); Eval(8640, o is NotEmptyStructGen<Guid>?[], false); Eval(8641, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8642, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8643, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8644, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8645, o is NestedStruct, false); Eval(8646, o is NestedStruct[], false); Eval(8647, o is NestedStruct?, false); Eval(8648, o is NestedStruct?[], false); Eval(8649, o is NestedStructGen<Decimal>, false); Eval(8650, o is NestedStructGen<Decimal>[], false); Eval(8651, o is NestedStructGen<Decimal>?, false); Eval(8652, o is NestedStructGen<Decimal>?[], false); Eval(8653, o is ExplicitFieldOffsetStruct, false); Eval(8654, o is ExplicitFieldOffsetStruct[], false); Eval(8655, o is ExplicitFieldOffsetStruct?, false); Eval(8656, o is ExplicitFieldOffsetStruct?[], false); Eval(8665, o is MarshalAsStruct, false); Eval(8666, o is MarshalAsStruct[], false); Eval(8667, o is MarshalAsStruct?, false); Eval(8668, o is MarshalAsStruct?[], false); Eval(8669, o is ImplementOneInterface, false); Eval(8670, o is ImplementOneInterface[], false); Eval(8671, o is ImplementOneInterface?, false); Eval(8672, o is ImplementOneInterface?[], false); Eval(8673, o is ImplementTwoInterface, false); Eval(8674, o is ImplementTwoInterface[], false); Eval(8675, o is ImplementTwoInterface?, false); Eval(8676, o is ImplementTwoInterface?[], false); Eval(8677, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8678, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8679, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8680, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8681, o is ImplementTwoInterfaceGen<int>, false); Eval(8682, o is ImplementTwoInterfaceGen<int>[], false); Eval(8683, o is ImplementTwoInterfaceGen<int>?, false); Eval(8684, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8685, o is ImplementAllInterface<int>, false); Eval(8686, o is ImplementAllInterface<int>[], false); Eval(8687, o is ImplementAllInterface<int>?, false); Eval(8688, o is ImplementAllInterface<int>?[], false); Eval(8689, o is IntE, false); Eval(8690, o is IntE[], false); Eval(8691, o is IntE?, false); Eval(8692, o is IntE?[], false); Eval(8693, o is ByteE, false); Eval(8694, o is ByteE[], false); Eval(8695, o is ByteE?, false); Eval(8696, o is ByteE?[], false); Eval(8697, o is LongE, false); Eval(8698, o is LongE[], false); Eval(8699, o is LongE?, false); Eval(8700, o is LongE?[], false); Eval(8701, o is char, false); Eval(8702, o is char[], false); Eval(8703, o is char?, false); Eval(8704, o is char?[], false); Eval(8705, o is bool, false); Eval(8706, o is bool[], false); Eval(8707, o is bool?, false); Eval(8708, o is bool?[], false); Eval(8709, o is byte, false); Eval(8710, o is byte[], false); Eval(8711, o is byte?, false); Eval(8712, o is byte?[], false); Eval(8713, o is sbyte, false); Eval(8714, o is sbyte[], false); Eval(8715, o is sbyte?, false); Eval(8716, o is sbyte?[], false); Eval(8717, o is short, false); Eval(8718, o is short[], false); Eval(8719, o is short?, false); Eval(8720, o is short?[], false); Eval(8721, o is ushort, false); Eval(8722, o is ushort[], false); Eval(8723, o is ushort?, false); Eval(8724, o is ushort?[], false); Eval(8725, o is int, false); Eval(8726, o is int[], false); Eval(8727, o is int?, false); Eval(8728, o is int?[], false); Eval(8729, o is uint, false); Eval(8730, o is uint[], false); Eval(8731, o is uint?, false); Eval(8732, o is uint?[], false); Eval(8733, o is long, false); Eval(8734, o is long[], false); Eval(8735, o is long?, false); Eval(8736, o is long?[], false); Eval(8737, o is ulong, false); Eval(8738, o is ulong[], false); Eval(8739, o is ulong?, false); Eval(8740, o is ulong?[], false); Eval(8741, o is float, false); Eval(8742, o is float[], false); Eval(8743, o is float?, false); Eval(8744, o is float?[], false); Eval(8745, o is double, false); Eval(8746, o is double[], false); Eval(8747, o is double?, false); Eval(8748, o is double?[], false); Eval(8749, o is decimal, false); Eval(8750, o is decimal[], false); Eval(8751, o is decimal?, false); Eval(8752, o is decimal?[], false); Eval(8753, o is IntPtr, false); Eval(8754, o is IntPtr[], false); Eval(8755, o is IntPtr?, false); Eval(8756, o is IntPtr?[], false); Eval(8757, o is UIntPtr, false); Eval(8758, o is UIntPtr[], false); Eval(8759, o is UIntPtr?, false); Eval(8760, o is UIntPtr?[], false); Eval(8761, o is Guid, false); Eval(8762, o is Guid[], false); Eval(8763, o is Guid?, false); Eval(8764, o is Guid?[], false); Eval(8765, o is GCHandle, false); Eval(8766, o is GCHandle[], false); Eval(8767, o is GCHandle?, false); Eval(8768, o is GCHandle?[], false); Eval(8769, o is object, false); Eval(8770, o is object[], false); Eval(8771, o is string, false); Eval(8772, o is string[], false); Eval(8773, o is ValueType, false); Eval(8774, o is ValueType[], false); Eval(8775, o is Array, false); Eval(8776, o is Array[], false); Eval(8777, o is Enum, false); Eval(8778, o is Enum[], false); Eval(8779, o is Delegate, false); Eval(8780, o is Delegate[], false); Eval(8781, o is MulticastDelegate, false); Eval(8782, o is MulticastDelegate[], false); Eval(8783, o is IEmpty, false); Eval(8784, o is IEmpty[], false); Eval(8785, o is INotEmpty, false); Eval(8786, o is INotEmpty[], false); Eval(8787, o is IEmptyGen<int>, false); Eval(8788, o is IEmptyGen<int>[], false); Eval(8789, o is INotEmptyGen<int>, false); Eval(8790, o is INotEmptyGen<int>[], false); Eval(8791, o is SimpleDelegate, false); Eval(8792, o is SimpleDelegate[], false); Eval(8793, o is GenericDelegate<int>, false); Eval(8794, o is GenericDelegate<int>[], false); Eval(8795, o is EmptyClass, false); Eval(8796, o is EmptyClass[], false); Eval(8797, o is NotEmptyClass, false); Eval(8798, o is NotEmptyClass[], false); Eval(8799, o is EmptyClassGen<int>, false); Eval(8800, o is EmptyClassGen<int>[], false); Eval(8801, o is NotEmptyClassGen<Guid>, false); Eval(8802, o is NotEmptyClassGen<Guid>[], false); Eval(8803, o is NotEmptyClassConstrainedGen<object>, false); Eval(8804, o is NotEmptyClassConstrainedGen<object>[], false); Eval(8805, o is NestedClass, false); Eval(8806, o is NestedClass[], false); Eval(8807, o is NestedClassGen<Decimal>, false); Eval(8808, o is NestedClassGen<Decimal>[], false); Eval(8809, o is ImplementOneInterfaceC, false); Eval(8810, o is ImplementOneInterfaceC[], false); Eval(8811, o is ImplementTwoInterfaceC, false); Eval(8812, o is ImplementTwoInterfaceC[], false); Eval(8813, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(8814, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(8815, o is ImplementTwoInterfaceGenC<int>, false); Eval(8816, o is ImplementTwoInterfaceGenC<int>[], false); Eval(8817, o is ImplementAllInterfaceC<int>, false); Eval(8818, o is ImplementAllInterfaceC<int>[], false); Eval(8819, o is SealedClass, false); Eval(8820, o is SealedClass[], false); } } // end of test case 0015 private static void TestCase0016() { { ImplementAllInterface<int> v = default(ImplementAllInterface<int>); ValueType o = v; Eval(8821, o is EmptyStruct, false); Eval(8822, o is EmptyStruct[], false); Eval(8823, o is EmptyStruct?, false); Eval(8824, o is EmptyStruct?[], false); Eval(8825, o is NotEmptyStruct, false); Eval(8826, o is NotEmptyStruct[], false); Eval(8827, o is NotEmptyStruct?, false); Eval(8828, o is NotEmptyStruct?[], false); Eval(8829, o is EmptyStructGen<int>, false); Eval(8830, o is EmptyStructGen<int>[], false); Eval(8831, o is EmptyStructGen<int>?, false); Eval(8832, o is EmptyStructGen<int>?[], false); Eval(8833, o is NotEmptyStructGen<Guid>, false); Eval(8834, o is NotEmptyStructGen<Guid>[], false); Eval(8835, o is NotEmptyStructGen<Guid>?, false); Eval(8836, o is NotEmptyStructGen<Guid>?[], false); Eval(8837, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(8838, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(8839, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(8840, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(8841, o is NestedStruct, false); Eval(8842, o is NestedStruct[], false); Eval(8843, o is NestedStruct?, false); Eval(8844, o is NestedStruct?[], false); Eval(8845, o is NestedStructGen<Decimal>, false); Eval(8846, o is NestedStructGen<Decimal>[], false); Eval(8847, o is NestedStructGen<Decimal>?, false); Eval(8848, o is NestedStructGen<Decimal>?[], false); Eval(8849, o is ExplicitFieldOffsetStruct, false); Eval(8850, o is ExplicitFieldOffsetStruct[], false); Eval(8851, o is ExplicitFieldOffsetStruct?, false); Eval(8852, o is ExplicitFieldOffsetStruct?[], false); Eval(8861, o is MarshalAsStruct, false); Eval(8862, o is MarshalAsStruct[], false); Eval(8863, o is MarshalAsStruct?, false); Eval(8864, o is MarshalAsStruct?[], false); Eval(8865, o is ImplementOneInterface, false); Eval(8866, o is ImplementOneInterface[], false); Eval(8867, o is ImplementOneInterface?, false); Eval(8868, o is ImplementOneInterface?[], false); Eval(8869, o is ImplementTwoInterface, false); Eval(8870, o is ImplementTwoInterface[], false); Eval(8871, o is ImplementTwoInterface?, false); Eval(8872, o is ImplementTwoInterface?[], false); Eval(8873, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(8874, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(8875, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(8876, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(8877, o is ImplementTwoInterfaceGen<int>, false); Eval(8878, o is ImplementTwoInterfaceGen<int>[], false); Eval(8879, o is ImplementTwoInterfaceGen<int>?, false); Eval(8880, o is ImplementTwoInterfaceGen<int>?[], false); Eval(8881, o is ImplementAllInterface<int>, true); Eval(8882, o is ImplementAllInterface<int>[], false); Eval(8883, o is ImplementAllInterface<int>?, true); Eval(8884, o is ImplementAllInterface<int>?[], false); Eval(8885, o is IntE, false); Eval(8886, o is IntE[], false); Eval(8887, o is IntE?, false); Eval(8888, o is IntE?[], false); Eval(8889, o is ByteE, false); Eval(8890, o is ByteE[], false); Eval(8891, o is ByteE?, false); Eval(8892, o is ByteE?[], false); Eval(8893, o is LongE, false); Eval(8894, o is LongE[], false); Eval(8895, o is LongE?, false); Eval(8896, o is LongE?[], false); Eval(8897, o is char, false); Eval(8898, o is char[], false); Eval(8899, o is char?, false); Eval(8900, o is char?[], false); Eval(8901, o is bool, false); Eval(8902, o is bool[], false); Eval(8903, o is bool?, false); Eval(8904, o is bool?[], false); Eval(8905, o is byte, false); Eval(8906, o is byte[], false); Eval(8907, o is byte?, false); Eval(8908, o is byte?[], false); Eval(8909, o is sbyte, false); Eval(8910, o is sbyte[], false); Eval(8911, o is sbyte?, false); Eval(8912, o is sbyte?[], false); Eval(8913, o is short, false); Eval(8914, o is short[], false); Eval(8915, o is short?, false); Eval(8916, o is short?[], false); Eval(8917, o is ushort, false); Eval(8918, o is ushort[], false); Eval(8919, o is ushort?, false); Eval(8920, o is ushort?[], false); Eval(8921, o is int, false); Eval(8922, o is int[], false); Eval(8923, o is int?, false); Eval(8924, o is int?[], false); Eval(8925, o is uint, false); Eval(8926, o is uint[], false); Eval(8927, o is uint?, false); Eval(8928, o is uint?[], false); Eval(8929, o is long, false); Eval(8930, o is long[], false); Eval(8931, o is long?, false); Eval(8932, o is long?[], false); Eval(8933, o is ulong, false); Eval(8934, o is ulong[], false); Eval(8935, o is ulong?, false); Eval(8936, o is ulong?[], false); Eval(8937, o is float, false); Eval(8938, o is float[], false); Eval(8939, o is float?, false); Eval(8940, o is float?[], false); Eval(8941, o is double, false); Eval(8942, o is double[], false); Eval(8943, o is double?, false); Eval(8944, o is double?[], false); Eval(8945, o is decimal, false); Eval(8946, o is decimal[], false); Eval(8947, o is decimal?, false); Eval(8948, o is decimal?[], false); Eval(8949, o is IntPtr, false); Eval(8950, o is IntPtr[], false); Eval(8951, o is IntPtr?, false); Eval(8952, o is IntPtr?[], false); Eval(8953, o is UIntPtr, false); Eval(8954, o is UIntPtr[], false); Eval(8955, o is UIntPtr?, false); Eval(8956, o is UIntPtr?[], false); Eval(8957, o is Guid, false); Eval(8958, o is Guid[], false); Eval(8959, o is Guid?, false); Eval(8960, o is Guid?[], false); Eval(8961, o is GCHandle, false); Eval(8962, o is GCHandle[], false); Eval(8963, o is GCHandle?, false); Eval(8964, o is GCHandle?[], false); Eval(8965, o is object, true); Eval(8966, o is object[], false); Eval(8967, o is string, false); Eval(8968, o is string[], false); Eval(8969, o is ValueType, true); Eval(8970, o is ValueType[], false); Eval(8971, o is Array, false); Eval(8972, o is Array[], false); Eval(8973, o is Enum, false); Eval(8974, o is Enum[], false); Eval(8975, o is Delegate, false); Eval(8976, o is Delegate[], false); Eval(8977, o is MulticastDelegate, false); Eval(8978, o is MulticastDelegate[], false); Eval(8979, o is IEmpty, true); Eval(8980, o is IEmpty[], false); Eval(8981, o is INotEmpty, true); Eval(8982, o is INotEmpty[], false); Eval(8983, o is IEmptyGen<int>, true); Eval(8984, o is IEmptyGen<int>[], false); Eval(8985, o is INotEmptyGen<int>, true); Eval(8986, o is INotEmptyGen<int>[], false); Eval(8987, o is SimpleDelegate, false); Eval(8988, o is SimpleDelegate[], false); Eval(8989, o is GenericDelegate<int>, false); Eval(8990, o is GenericDelegate<int>[], false); Eval(8991, o is EmptyClass, false); Eval(8992, o is EmptyClass[], false); Eval(8993, o is NotEmptyClass, false); Eval(8994, o is NotEmptyClass[], false); Eval(8995, o is EmptyClassGen<int>, false); Eval(8996, o is EmptyClassGen<int>[], false); Eval(8997, o is NotEmptyClassGen<Guid>, false); Eval(8998, o is NotEmptyClassGen<Guid>[], false); Eval(8999, o is NotEmptyClassConstrainedGen<object>, false); Eval(9000, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9001, o is NestedClass, false); Eval(9002, o is NestedClass[], false); Eval(9003, o is NestedClassGen<Decimal>, false); Eval(9004, o is NestedClassGen<Decimal>[], false); Eval(9005, o is ImplementOneInterfaceC, false); Eval(9006, o is ImplementOneInterfaceC[], false); Eval(9007, o is ImplementTwoInterfaceC, false); Eval(9008, o is ImplementTwoInterfaceC[], false); Eval(9009, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9010, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9011, o is ImplementTwoInterfaceGenC<int>, false); Eval(9012, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9013, o is ImplementAllInterfaceC<int>, false); Eval(9014, o is ImplementAllInterfaceC<int>[], false); Eval(9015, o is SealedClass, false); Eval(9016, o is SealedClass[], false); } { ImplementAllInterface<int>? v = default(ImplementAllInterface<int>); ValueType o = v; Eval(9017, o is EmptyStruct, false); Eval(9018, o is EmptyStruct[], false); Eval(9019, o is EmptyStruct?, false); Eval(9020, o is EmptyStruct?[], false); Eval(9021, o is NotEmptyStruct, false); Eval(9022, o is NotEmptyStruct[], false); Eval(9023, o is NotEmptyStruct?, false); Eval(9024, o is NotEmptyStruct?[], false); Eval(9025, o is EmptyStructGen<int>, false); Eval(9026, o is EmptyStructGen<int>[], false); Eval(9027, o is EmptyStructGen<int>?, false); Eval(9028, o is EmptyStructGen<int>?[], false); Eval(9029, o is NotEmptyStructGen<Guid>, false); Eval(9030, o is NotEmptyStructGen<Guid>[], false); Eval(9031, o is NotEmptyStructGen<Guid>?, false); Eval(9032, o is NotEmptyStructGen<Guid>?[], false); Eval(9033, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9034, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9035, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9036, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9037, o is NestedStruct, false); Eval(9038, o is NestedStruct[], false); Eval(9039, o is NestedStruct?, false); Eval(9040, o is NestedStruct?[], false); Eval(9041, o is NestedStructGen<Decimal>, false); Eval(9042, o is NestedStructGen<Decimal>[], false); Eval(9043, o is NestedStructGen<Decimal>?, false); Eval(9044, o is NestedStructGen<Decimal>?[], false); Eval(9045, o is ExplicitFieldOffsetStruct, false); Eval(9046, o is ExplicitFieldOffsetStruct[], false); Eval(9047, o is ExplicitFieldOffsetStruct?, false); Eval(9048, o is ExplicitFieldOffsetStruct?[], false); Eval(9057, o is MarshalAsStruct, false); Eval(9058, o is MarshalAsStruct[], false); Eval(9059, o is MarshalAsStruct?, false); Eval(9060, o is MarshalAsStruct?[], false); Eval(9061, o is ImplementOneInterface, false); Eval(9062, o is ImplementOneInterface[], false); Eval(9063, o is ImplementOneInterface?, false); Eval(9064, o is ImplementOneInterface?[], false); Eval(9065, o is ImplementTwoInterface, false); Eval(9066, o is ImplementTwoInterface[], false); Eval(9067, o is ImplementTwoInterface?, false); Eval(9068, o is ImplementTwoInterface?[], false); Eval(9069, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9070, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9071, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9072, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9073, o is ImplementTwoInterfaceGen<int>, false); Eval(9074, o is ImplementTwoInterfaceGen<int>[], false); Eval(9075, o is ImplementTwoInterfaceGen<int>?, false); Eval(9076, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9077, o is ImplementAllInterface<int>, true); Eval(9078, o is ImplementAllInterface<int>[], false); Eval(9079, o is ImplementAllInterface<int>?, true); Eval(9080, o is ImplementAllInterface<int>?[], false); Eval(9081, o is IntE, false); Eval(9082, o is IntE[], false); Eval(9083, o is IntE?, false); Eval(9084, o is IntE?[], false); Eval(9085, o is ByteE, false); Eval(9086, o is ByteE[], false); Eval(9087, o is ByteE?, false); Eval(9088, o is ByteE?[], false); Eval(9089, o is LongE, false); Eval(9090, o is LongE[], false); Eval(9091, o is LongE?, false); Eval(9092, o is LongE?[], false); Eval(9093, o is char, false); Eval(9094, o is char[], false); Eval(9095, o is char?, false); Eval(9096, o is char?[], false); Eval(9097, o is bool, false); Eval(9098, o is bool[], false); Eval(9099, o is bool?, false); Eval(9100, o is bool?[], false); Eval(9101, o is byte, false); Eval(9102, o is byte[], false); Eval(9103, o is byte?, false); Eval(9104, o is byte?[], false); Eval(9105, o is sbyte, false); Eval(9106, o is sbyte[], false); Eval(9107, o is sbyte?, false); Eval(9108, o is sbyte?[], false); Eval(9109, o is short, false); Eval(9110, o is short[], false); Eval(9111, o is short?, false); Eval(9112, o is short?[], false); Eval(9113, o is ushort, false); Eval(9114, o is ushort[], false); Eval(9115, o is ushort?, false); Eval(9116, o is ushort?[], false); Eval(9117, o is int, false); Eval(9118, o is int[], false); Eval(9119, o is int?, false); Eval(9120, o is int?[], false); Eval(9121, o is uint, false); Eval(9122, o is uint[], false); Eval(9123, o is uint?, false); Eval(9124, o is uint?[], false); Eval(9125, o is long, false); Eval(9126, o is long[], false); Eval(9127, o is long?, false); Eval(9128, o is long?[], false); Eval(9129, o is ulong, false); Eval(9130, o is ulong[], false); Eval(9131, o is ulong?, false); Eval(9132, o is ulong?[], false); Eval(9133, o is float, false); Eval(9134, o is float[], false); Eval(9135, o is float?, false); Eval(9136, o is float?[], false); Eval(9137, o is double, false); Eval(9138, o is double[], false); Eval(9139, o is double?, false); Eval(9140, o is double?[], false); Eval(9141, o is decimal, false); Eval(9142, o is decimal[], false); Eval(9143, o is decimal?, false); Eval(9144, o is decimal?[], false); Eval(9145, o is IntPtr, false); Eval(9146, o is IntPtr[], false); Eval(9147, o is IntPtr?, false); Eval(9148, o is IntPtr?[], false); Eval(9149, o is UIntPtr, false); Eval(9150, o is UIntPtr[], false); Eval(9151, o is UIntPtr?, false); Eval(9152, o is UIntPtr?[], false); Eval(9153, o is Guid, false); Eval(9154, o is Guid[], false); Eval(9155, o is Guid?, false); Eval(9156, o is Guid?[], false); Eval(9157, o is GCHandle, false); Eval(9158, o is GCHandle[], false); Eval(9159, o is GCHandle?, false); Eval(9160, o is GCHandle?[], false); Eval(9161, o is object, true); Eval(9162, o is object[], false); Eval(9163, o is string, false); Eval(9164, o is string[], false); Eval(9165, o is ValueType, true); Eval(9166, o is ValueType[], false); Eval(9167, o is Array, false); Eval(9168, o is Array[], false); Eval(9169, o is Enum, false); Eval(9170, o is Enum[], false); Eval(9171, o is Delegate, false); Eval(9172, o is Delegate[], false); Eval(9173, o is MulticastDelegate, false); Eval(9174, o is MulticastDelegate[], false); Eval(9175, o is IEmpty, true); Eval(9176, o is IEmpty[], false); Eval(9177, o is INotEmpty, true); Eval(9178, o is INotEmpty[], false); Eval(9179, o is IEmptyGen<int>, true); Eval(9180, o is IEmptyGen<int>[], false); Eval(9181, o is INotEmptyGen<int>, true); Eval(9182, o is INotEmptyGen<int>[], false); Eval(9183, o is SimpleDelegate, false); Eval(9184, o is SimpleDelegate[], false); Eval(9185, o is GenericDelegate<int>, false); Eval(9186, o is GenericDelegate<int>[], false); Eval(9187, o is EmptyClass, false); Eval(9188, o is EmptyClass[], false); Eval(9189, o is NotEmptyClass, false); Eval(9190, o is NotEmptyClass[], false); Eval(9191, o is EmptyClassGen<int>, false); Eval(9192, o is EmptyClassGen<int>[], false); Eval(9193, o is NotEmptyClassGen<Guid>, false); Eval(9194, o is NotEmptyClassGen<Guid>[], false); Eval(9195, o is NotEmptyClassConstrainedGen<object>, false); Eval(9196, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9197, o is NestedClass, false); Eval(9198, o is NestedClass[], false); Eval(9199, o is NestedClassGen<Decimal>, false); Eval(9200, o is NestedClassGen<Decimal>[], false); Eval(9201, o is ImplementOneInterfaceC, false); Eval(9202, o is ImplementOneInterfaceC[], false); Eval(9203, o is ImplementTwoInterfaceC, false); Eval(9204, o is ImplementTwoInterfaceC[], false); Eval(9205, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9206, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9207, o is ImplementTwoInterfaceGenC<int>, false); Eval(9208, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9209, o is ImplementAllInterfaceC<int>, false); Eval(9210, o is ImplementAllInterfaceC<int>[], false); Eval(9211, o is SealedClass, false); Eval(9212, o is SealedClass[], false); } { ImplementAllInterface<int>? v = default(ImplementAllInterface<int>?); ValueType o = v; Eval(9213, o is EmptyStruct, false); Eval(9214, o is EmptyStruct[], false); Eval(9215, o is EmptyStruct?, false); Eval(9216, o is EmptyStruct?[], false); Eval(9217, o is NotEmptyStruct, false); Eval(9218, o is NotEmptyStruct[], false); Eval(9219, o is NotEmptyStruct?, false); Eval(9220, o is NotEmptyStruct?[], false); Eval(9221, o is EmptyStructGen<int>, false); Eval(9222, o is EmptyStructGen<int>[], false); Eval(9223, o is EmptyStructGen<int>?, false); Eval(9224, o is EmptyStructGen<int>?[], false); Eval(9225, o is NotEmptyStructGen<Guid>, false); Eval(9226, o is NotEmptyStructGen<Guid>[], false); Eval(9227, o is NotEmptyStructGen<Guid>?, false); Eval(9228, o is NotEmptyStructGen<Guid>?[], false); Eval(9229, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9230, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9231, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9232, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9233, o is NestedStruct, false); Eval(9234, o is NestedStruct[], false); Eval(9235, o is NestedStruct?, false); Eval(9236, o is NestedStruct?[], false); Eval(9237, o is NestedStructGen<Decimal>, false); Eval(9238, o is NestedStructGen<Decimal>[], false); Eval(9239, o is NestedStructGen<Decimal>?, false); Eval(9240, o is NestedStructGen<Decimal>?[], false); Eval(9241, o is ExplicitFieldOffsetStruct, false); Eval(9242, o is ExplicitFieldOffsetStruct[], false); Eval(9243, o is ExplicitFieldOffsetStruct?, false); Eval(9244, o is ExplicitFieldOffsetStruct?[], false); Eval(9253, o is MarshalAsStruct, false); Eval(9254, o is MarshalAsStruct[], false); Eval(9255, o is MarshalAsStruct?, false); Eval(9256, o is MarshalAsStruct?[], false); Eval(9257, o is ImplementOneInterface, false); Eval(9258, o is ImplementOneInterface[], false); Eval(9259, o is ImplementOneInterface?, false); Eval(9260, o is ImplementOneInterface?[], false); Eval(9261, o is ImplementTwoInterface, false); Eval(9262, o is ImplementTwoInterface[], false); Eval(9263, o is ImplementTwoInterface?, false); Eval(9264, o is ImplementTwoInterface?[], false); Eval(9265, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9266, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9267, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9268, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9269, o is ImplementTwoInterfaceGen<int>, false); Eval(9270, o is ImplementTwoInterfaceGen<int>[], false); Eval(9271, o is ImplementTwoInterfaceGen<int>?, false); Eval(9272, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9273, o is ImplementAllInterface<int>, false); Eval(9274, o is ImplementAllInterface<int>[], false); Eval(9275, o is ImplementAllInterface<int>?, false); Eval(9276, o is ImplementAllInterface<int>?[], false); Eval(9277, o is IntE, false); Eval(9278, o is IntE[], false); Eval(9279, o is IntE?, false); Eval(9280, o is IntE?[], false); Eval(9281, o is ByteE, false); Eval(9282, o is ByteE[], false); Eval(9283, o is ByteE?, false); Eval(9284, o is ByteE?[], false); Eval(9285, o is LongE, false); Eval(9286, o is LongE[], false); Eval(9287, o is LongE?, false); Eval(9288, o is LongE?[], false); Eval(9289, o is char, false); Eval(9290, o is char[], false); Eval(9291, o is char?, false); Eval(9292, o is char?[], false); Eval(9293, o is bool, false); Eval(9294, o is bool[], false); Eval(9295, o is bool?, false); Eval(9296, o is bool?[], false); Eval(9297, o is byte, false); Eval(9298, o is byte[], false); Eval(9299, o is byte?, false); Eval(9300, o is byte?[], false); Eval(9301, o is sbyte, false); Eval(9302, o is sbyte[], false); Eval(9303, o is sbyte?, false); Eval(9304, o is sbyte?[], false); Eval(9305, o is short, false); Eval(9306, o is short[], false); Eval(9307, o is short?, false); Eval(9308, o is short?[], false); Eval(9309, o is ushort, false); Eval(9310, o is ushort[], false); Eval(9311, o is ushort?, false); Eval(9312, o is ushort?[], false); Eval(9313, o is int, false); Eval(9314, o is int[], false); Eval(9315, o is int?, false); Eval(9316, o is int?[], false); Eval(9317, o is uint, false); Eval(9318, o is uint[], false); Eval(9319, o is uint?, false); Eval(9320, o is uint?[], false); Eval(9321, o is long, false); Eval(9322, o is long[], false); Eval(9323, o is long?, false); Eval(9324, o is long?[], false); Eval(9325, o is ulong, false); Eval(9326, o is ulong[], false); Eval(9327, o is ulong?, false); Eval(9328, o is ulong?[], false); Eval(9329, o is float, false); Eval(9330, o is float[], false); Eval(9331, o is float?, false); Eval(9332, o is float?[], false); Eval(9333, o is double, false); Eval(9334, o is double[], false); Eval(9335, o is double?, false); Eval(9336, o is double?[], false); Eval(9337, o is decimal, false); Eval(9338, o is decimal[], false); Eval(9339, o is decimal?, false); Eval(9340, o is decimal?[], false); Eval(9341, o is IntPtr, false); Eval(9342, o is IntPtr[], false); Eval(9343, o is IntPtr?, false); Eval(9344, o is IntPtr?[], false); Eval(9345, o is UIntPtr, false); Eval(9346, o is UIntPtr[], false); Eval(9347, o is UIntPtr?, false); Eval(9348, o is UIntPtr?[], false); Eval(9349, o is Guid, false); Eval(9350, o is Guid[], false); Eval(9351, o is Guid?, false); Eval(9352, o is Guid?[], false); Eval(9353, o is GCHandle, false); Eval(9354, o is GCHandle[], false); Eval(9355, o is GCHandle?, false); Eval(9356, o is GCHandle?[], false); Eval(9357, o is object, false); Eval(9358, o is object[], false); Eval(9359, o is string, false); Eval(9360, o is string[], false); Eval(9361, o is ValueType, false); Eval(9362, o is ValueType[], false); Eval(9363, o is Array, false); Eval(9364, o is Array[], false); Eval(9365, o is Enum, false); Eval(9366, o is Enum[], false); Eval(9367, o is Delegate, false); Eval(9368, o is Delegate[], false); Eval(9369, o is MulticastDelegate, false); Eval(9370, o is MulticastDelegate[], false); Eval(9371, o is IEmpty, false); Eval(9372, o is IEmpty[], false); Eval(9373, o is INotEmpty, false); Eval(9374, o is INotEmpty[], false); Eval(9375, o is IEmptyGen<int>, false); Eval(9376, o is IEmptyGen<int>[], false); Eval(9377, o is INotEmptyGen<int>, false); Eval(9378, o is INotEmptyGen<int>[], false); Eval(9379, o is SimpleDelegate, false); Eval(9380, o is SimpleDelegate[], false); Eval(9381, o is GenericDelegate<int>, false); Eval(9382, o is GenericDelegate<int>[], false); Eval(9383, o is EmptyClass, false); Eval(9384, o is EmptyClass[], false); Eval(9385, o is NotEmptyClass, false); Eval(9386, o is NotEmptyClass[], false); Eval(9387, o is EmptyClassGen<int>, false); Eval(9388, o is EmptyClassGen<int>[], false); Eval(9389, o is NotEmptyClassGen<Guid>, false); Eval(9390, o is NotEmptyClassGen<Guid>[], false); Eval(9391, o is NotEmptyClassConstrainedGen<object>, false); Eval(9392, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9393, o is NestedClass, false); Eval(9394, o is NestedClass[], false); Eval(9395, o is NestedClassGen<Decimal>, false); Eval(9396, o is NestedClassGen<Decimal>[], false); Eval(9397, o is ImplementOneInterfaceC, false); Eval(9398, o is ImplementOneInterfaceC[], false); Eval(9399, o is ImplementTwoInterfaceC, false); Eval(9400, o is ImplementTwoInterfaceC[], false); Eval(9401, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9402, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9403, o is ImplementTwoInterfaceGenC<int>, false); Eval(9404, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9405, o is ImplementAllInterfaceC<int>, false); Eval(9406, o is ImplementAllInterfaceC<int>[], false); Eval(9407, o is SealedClass, false); Eval(9408, o is SealedClass[], false); } } // end of test case 0016 private static void TestCase0017() { { IntE v = default(IntE); ValueType o = v; Eval(9409, o is EmptyStruct, false); Eval(9410, o is EmptyStruct[], false); Eval(9411, o is EmptyStruct?, false); Eval(9412, o is EmptyStruct?[], false); Eval(9413, o is NotEmptyStruct, false); Eval(9414, o is NotEmptyStruct[], false); Eval(9415, o is NotEmptyStruct?, false); Eval(9416, o is NotEmptyStruct?[], false); Eval(9417, o is EmptyStructGen<int>, false); Eval(9418, o is EmptyStructGen<int>[], false); Eval(9419, o is EmptyStructGen<int>?, false); Eval(9420, o is EmptyStructGen<int>?[], false); Eval(9421, o is NotEmptyStructGen<Guid>, false); Eval(9422, o is NotEmptyStructGen<Guid>[], false); Eval(9423, o is NotEmptyStructGen<Guid>?, false); Eval(9424, o is NotEmptyStructGen<Guid>?[], false); Eval(9425, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9426, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9427, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9428, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9429, o is NestedStruct, false); Eval(9430, o is NestedStruct[], false); Eval(9431, o is NestedStruct?, false); Eval(9432, o is NestedStruct?[], false); Eval(9433, o is NestedStructGen<Decimal>, false); Eval(9434, o is NestedStructGen<Decimal>[], false); Eval(9435, o is NestedStructGen<Decimal>?, false); Eval(9436, o is NestedStructGen<Decimal>?[], false); Eval(9437, o is ExplicitFieldOffsetStruct, false); Eval(9438, o is ExplicitFieldOffsetStruct[], false); Eval(9439, o is ExplicitFieldOffsetStruct?, false); Eval(9440, o is ExplicitFieldOffsetStruct?[], false); Eval(9449, o is MarshalAsStruct, false); Eval(9450, o is MarshalAsStruct[], false); Eval(9451, o is MarshalAsStruct?, false); Eval(9452, o is MarshalAsStruct?[], false); Eval(9453, o is ImplementOneInterface, false); Eval(9454, o is ImplementOneInterface[], false); Eval(9455, o is ImplementOneInterface?, false); Eval(9456, o is ImplementOneInterface?[], false); Eval(9457, o is ImplementTwoInterface, false); Eval(9458, o is ImplementTwoInterface[], false); Eval(9459, o is ImplementTwoInterface?, false); Eval(9460, o is ImplementTwoInterface?[], false); Eval(9461, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9462, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9463, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9464, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9465, o is ImplementTwoInterfaceGen<int>, false); Eval(9466, o is ImplementTwoInterfaceGen<int>[], false); Eval(9467, o is ImplementTwoInterfaceGen<int>?, false); Eval(9468, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9469, o is ImplementAllInterface<int>, false); Eval(9470, o is ImplementAllInterface<int>[], false); Eval(9471, o is ImplementAllInterface<int>?, false); Eval(9472, o is ImplementAllInterface<int>?[], false); Eval(9473, o is IntE, true); Eval(9474, o is IntE[], false); Eval(9475, o is IntE?, true); Eval(9476, o is IntE?[], false); Eval(9477, o is ByteE, false); Eval(9478, o is ByteE[], false); Eval(9479, o is ByteE?, false); Eval(9480, o is ByteE?[], false); Eval(9481, o is LongE, false); Eval(9482, o is LongE[], false); Eval(9483, o is LongE?, false); Eval(9484, o is LongE?[], false); Eval(9485, o is char, false); Eval(9486, o is char[], false); Eval(9487, o is char?, false); Eval(9488, o is char?[], false); Eval(9489, o is bool, false); Eval(9490, o is bool[], false); Eval(9491, o is bool?, false); Eval(9492, o is bool?[], false); Eval(9493, o is byte, false); Eval(9494, o is byte[], false); Eval(9495, o is byte?, false); Eval(9496, o is byte?[], false); Eval(9497, o is sbyte, false); Eval(9498, o is sbyte[], false); Eval(9499, o is sbyte?, false); Eval(9500, o is sbyte?[], false); Eval(9501, o is short, false); Eval(9502, o is short[], false); Eval(9503, o is short?, false); Eval(9504, o is short?[], false); Eval(9505, o is ushort, false); Eval(9506, o is ushort[], false); Eval(9507, o is ushort?, false); Eval(9508, o is ushort?[], false); Eval(9509, o is int, false); Eval(9510, o is int[], false); Eval(9511, o is int?, false); Eval(9512, o is int?[], false); Eval(9513, o is uint, false); Eval(9514, o is uint[], false); Eval(9515, o is uint?, false); Eval(9516, o is uint?[], false); Eval(9517, o is long, false); Eval(9518, o is long[], false); Eval(9519, o is long?, false); Eval(9520, o is long?[], false); Eval(9521, o is ulong, false); Eval(9522, o is ulong[], false); Eval(9523, o is ulong?, false); Eval(9524, o is ulong?[], false); Eval(9525, o is float, false); Eval(9526, o is float[], false); Eval(9527, o is float?, false); Eval(9528, o is float?[], false); Eval(9529, o is double, false); Eval(9530, o is double[], false); Eval(9531, o is double?, false); Eval(9532, o is double?[], false); Eval(9533, o is decimal, false); Eval(9534, o is decimal[], false); Eval(9535, o is decimal?, false); Eval(9536, o is decimal?[], false); Eval(9537, o is IntPtr, false); Eval(9538, o is IntPtr[], false); Eval(9539, o is IntPtr?, false); Eval(9540, o is IntPtr?[], false); Eval(9541, o is UIntPtr, false); Eval(9542, o is UIntPtr[], false); Eval(9543, o is UIntPtr?, false); Eval(9544, o is UIntPtr?[], false); Eval(9545, o is Guid, false); Eval(9546, o is Guid[], false); Eval(9547, o is Guid?, false); Eval(9548, o is Guid?[], false); Eval(9549, o is GCHandle, false); Eval(9550, o is GCHandle[], false); Eval(9551, o is GCHandle?, false); Eval(9552, o is GCHandle?[], false); Eval(9553, o is object, true); Eval(9554, o is object[], false); Eval(9555, o is string, false); Eval(9556, o is string[], false); Eval(9557, o is ValueType, true); Eval(9558, o is ValueType[], false); Eval(9559, o is Array, false); Eval(9560, o is Array[], false); Eval(9561, o is Enum, true); Eval(9562, o is Enum[], false); Eval(9563, o is Delegate, false); Eval(9564, o is Delegate[], false); Eval(9565, o is MulticastDelegate, false); Eval(9566, o is MulticastDelegate[], false); Eval(9567, o is IEmpty, false); Eval(9568, o is IEmpty[], false); Eval(9569, o is INotEmpty, false); Eval(9570, o is INotEmpty[], false); Eval(9571, o is IEmptyGen<int>, false); Eval(9572, o is IEmptyGen<int>[], false); Eval(9573, o is INotEmptyGen<int>, false); Eval(9574, o is INotEmptyGen<int>[], false); Eval(9575, o is SimpleDelegate, false); Eval(9576, o is SimpleDelegate[], false); Eval(9577, o is GenericDelegate<int>, false); Eval(9578, o is GenericDelegate<int>[], false); Eval(9579, o is EmptyClass, false); Eval(9580, o is EmptyClass[], false); Eval(9581, o is NotEmptyClass, false); Eval(9582, o is NotEmptyClass[], false); Eval(9583, o is EmptyClassGen<int>, false); Eval(9584, o is EmptyClassGen<int>[], false); Eval(9585, o is NotEmptyClassGen<Guid>, false); Eval(9586, o is NotEmptyClassGen<Guid>[], false); Eval(9587, o is NotEmptyClassConstrainedGen<object>, false); Eval(9588, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9589, o is NestedClass, false); Eval(9590, o is NestedClass[], false); Eval(9591, o is NestedClassGen<Decimal>, false); Eval(9592, o is NestedClassGen<Decimal>[], false); Eval(9593, o is ImplementOneInterfaceC, false); Eval(9594, o is ImplementOneInterfaceC[], false); Eval(9595, o is ImplementTwoInterfaceC, false); Eval(9596, o is ImplementTwoInterfaceC[], false); Eval(9597, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9598, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9599, o is ImplementTwoInterfaceGenC<int>, false); Eval(9600, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9601, o is ImplementAllInterfaceC<int>, false); Eval(9602, o is ImplementAllInterfaceC<int>[], false); Eval(9603, o is SealedClass, false); Eval(9604, o is SealedClass[], false); } { IntE? v = default(IntE); ValueType o = v; Eval(9605, o is EmptyStruct, false); Eval(9606, o is EmptyStruct[], false); Eval(9607, o is EmptyStruct?, false); Eval(9608, o is EmptyStruct?[], false); Eval(9609, o is NotEmptyStruct, false); Eval(9610, o is NotEmptyStruct[], false); Eval(9611, o is NotEmptyStruct?, false); Eval(9612, o is NotEmptyStruct?[], false); Eval(9613, o is EmptyStructGen<int>, false); Eval(9614, o is EmptyStructGen<int>[], false); Eval(9615, o is EmptyStructGen<int>?, false); Eval(9616, o is EmptyStructGen<int>?[], false); Eval(9617, o is NotEmptyStructGen<Guid>, false); Eval(9618, o is NotEmptyStructGen<Guid>[], false); Eval(9619, o is NotEmptyStructGen<Guid>?, false); Eval(9620, o is NotEmptyStructGen<Guid>?[], false); Eval(9621, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9622, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9623, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9624, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9625, o is NestedStruct, false); Eval(9626, o is NestedStruct[], false); Eval(9627, o is NestedStruct?, false); Eval(9628, o is NestedStruct?[], false); Eval(9629, o is NestedStructGen<Decimal>, false); Eval(9630, o is NestedStructGen<Decimal>[], false); Eval(9631, o is NestedStructGen<Decimal>?, false); Eval(9632, o is NestedStructGen<Decimal>?[], false); Eval(9633, o is ExplicitFieldOffsetStruct, false); Eval(9634, o is ExplicitFieldOffsetStruct[], false); Eval(9635, o is ExplicitFieldOffsetStruct?, false); Eval(9636, o is ExplicitFieldOffsetStruct?[], false); Eval(9645, o is MarshalAsStruct, false); Eval(9646, o is MarshalAsStruct[], false); Eval(9647, o is MarshalAsStruct?, false); Eval(9648, o is MarshalAsStruct?[], false); Eval(9649, o is ImplementOneInterface, false); Eval(9650, o is ImplementOneInterface[], false); Eval(9651, o is ImplementOneInterface?, false); Eval(9652, o is ImplementOneInterface?[], false); Eval(9653, o is ImplementTwoInterface, false); Eval(9654, o is ImplementTwoInterface[], false); Eval(9655, o is ImplementTwoInterface?, false); Eval(9656, o is ImplementTwoInterface?[], false); Eval(9657, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9658, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9659, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9660, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9661, o is ImplementTwoInterfaceGen<int>, false); Eval(9662, o is ImplementTwoInterfaceGen<int>[], false); Eval(9663, o is ImplementTwoInterfaceGen<int>?, false); Eval(9664, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9665, o is ImplementAllInterface<int>, false); Eval(9666, o is ImplementAllInterface<int>[], false); Eval(9667, o is ImplementAllInterface<int>?, false); Eval(9668, o is ImplementAllInterface<int>?[], false); Eval(9669, o is IntE, true); Eval(9670, o is IntE[], false); Eval(9671, o is IntE?, true); Eval(9672, o is IntE?[], false); Eval(9673, o is ByteE, false); Eval(9674, o is ByteE[], false); Eval(9675, o is ByteE?, false); Eval(9676, o is ByteE?[], false); Eval(9677, o is LongE, false); Eval(9678, o is LongE[], false); Eval(9679, o is LongE?, false); Eval(9680, o is LongE?[], false); Eval(9681, o is char, false); Eval(9682, o is char[], false); Eval(9683, o is char?, false); Eval(9684, o is char?[], false); Eval(9685, o is bool, false); Eval(9686, o is bool[], false); Eval(9687, o is bool?, false); Eval(9688, o is bool?[], false); Eval(9689, o is byte, false); Eval(9690, o is byte[], false); Eval(9691, o is byte?, false); Eval(9692, o is byte?[], false); Eval(9693, o is sbyte, false); Eval(9694, o is sbyte[], false); Eval(9695, o is sbyte?, false); Eval(9696, o is sbyte?[], false); Eval(9697, o is short, false); Eval(9698, o is short[], false); Eval(9699, o is short?, false); Eval(9700, o is short?[], false); Eval(9701, o is ushort, false); Eval(9702, o is ushort[], false); Eval(9703, o is ushort?, false); Eval(9704, o is ushort?[], false); Eval(9705, o is int, false); Eval(9706, o is int[], false); Eval(9707, o is int?, false); Eval(9708, o is int?[], false); Eval(9709, o is uint, false); Eval(9710, o is uint[], false); Eval(9711, o is uint?, false); Eval(9712, o is uint?[], false); Eval(9713, o is long, false); Eval(9714, o is long[], false); Eval(9715, o is long?, false); Eval(9716, o is long?[], false); Eval(9717, o is ulong, false); Eval(9718, o is ulong[], false); Eval(9719, o is ulong?, false); Eval(9720, o is ulong?[], false); Eval(9721, o is float, false); Eval(9722, o is float[], false); Eval(9723, o is float?, false); Eval(9724, o is float?[], false); Eval(9725, o is double, false); Eval(9726, o is double[], false); Eval(9727, o is double?, false); Eval(9728, o is double?[], false); Eval(9729, o is decimal, false); Eval(9730, o is decimal[], false); Eval(9731, o is decimal?, false); Eval(9732, o is decimal?[], false); Eval(9733, o is IntPtr, false); Eval(9734, o is IntPtr[], false); Eval(9735, o is IntPtr?, false); Eval(9736, o is IntPtr?[], false); Eval(9737, o is UIntPtr, false); Eval(9738, o is UIntPtr[], false); Eval(9739, o is UIntPtr?, false); Eval(9740, o is UIntPtr?[], false); Eval(9741, o is Guid, false); Eval(9742, o is Guid[], false); Eval(9743, o is Guid?, false); Eval(9744, o is Guid?[], false); Eval(9745, o is GCHandle, false); Eval(9746, o is GCHandle[], false); Eval(9747, o is GCHandle?, false); Eval(9748, o is GCHandle?[], false); Eval(9749, o is object, true); Eval(9750, o is object[], false); Eval(9751, o is string, false); Eval(9752, o is string[], false); Eval(9753, o is ValueType, true); Eval(9754, o is ValueType[], false); Eval(9755, o is Array, false); Eval(9756, o is Array[], false); Eval(9757, o is Enum, true); Eval(9758, o is Enum[], false); Eval(9759, o is Delegate, false); Eval(9760, o is Delegate[], false); Eval(9761, o is MulticastDelegate, false); Eval(9762, o is MulticastDelegate[], false); Eval(9763, o is IEmpty, false); Eval(9764, o is IEmpty[], false); Eval(9765, o is INotEmpty, false); Eval(9766, o is INotEmpty[], false); Eval(9767, o is IEmptyGen<int>, false); Eval(9768, o is IEmptyGen<int>[], false); Eval(9769, o is INotEmptyGen<int>, false); Eval(9770, o is INotEmptyGen<int>[], false); Eval(9771, o is SimpleDelegate, false); Eval(9772, o is SimpleDelegate[], false); Eval(9773, o is GenericDelegate<int>, false); Eval(9774, o is GenericDelegate<int>[], false); Eval(9775, o is EmptyClass, false); Eval(9776, o is EmptyClass[], false); Eval(9777, o is NotEmptyClass, false); Eval(9778, o is NotEmptyClass[], false); Eval(9779, o is EmptyClassGen<int>, false); Eval(9780, o is EmptyClassGen<int>[], false); Eval(9781, o is NotEmptyClassGen<Guid>, false); Eval(9782, o is NotEmptyClassGen<Guid>[], false); Eval(9783, o is NotEmptyClassConstrainedGen<object>, false); Eval(9784, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9785, o is NestedClass, false); Eval(9786, o is NestedClass[], false); Eval(9787, o is NestedClassGen<Decimal>, false); Eval(9788, o is NestedClassGen<Decimal>[], false); Eval(9789, o is ImplementOneInterfaceC, false); Eval(9790, o is ImplementOneInterfaceC[], false); Eval(9791, o is ImplementTwoInterfaceC, false); Eval(9792, o is ImplementTwoInterfaceC[], false); Eval(9793, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9794, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9795, o is ImplementTwoInterfaceGenC<int>, false); Eval(9796, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9797, o is ImplementAllInterfaceC<int>, false); Eval(9798, o is ImplementAllInterfaceC<int>[], false); Eval(9799, o is SealedClass, false); Eval(9800, o is SealedClass[], false); } { IntE? v = default(IntE?); ValueType o = v; Eval(9801, o is EmptyStruct, false); Eval(9802, o is EmptyStruct[], false); Eval(9803, o is EmptyStruct?, false); Eval(9804, o is EmptyStruct?[], false); Eval(9805, o is NotEmptyStruct, false); Eval(9806, o is NotEmptyStruct[], false); Eval(9807, o is NotEmptyStruct?, false); Eval(9808, o is NotEmptyStruct?[], false); Eval(9809, o is EmptyStructGen<int>, false); Eval(9810, o is EmptyStructGen<int>[], false); Eval(9811, o is EmptyStructGen<int>?, false); Eval(9812, o is EmptyStructGen<int>?[], false); Eval(9813, o is NotEmptyStructGen<Guid>, false); Eval(9814, o is NotEmptyStructGen<Guid>[], false); Eval(9815, o is NotEmptyStructGen<Guid>?, false); Eval(9816, o is NotEmptyStructGen<Guid>?[], false); Eval(9817, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(9818, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(9819, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(9820, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(9821, o is NestedStruct, false); Eval(9822, o is NestedStruct[], false); Eval(9823, o is NestedStruct?, false); Eval(9824, o is NestedStruct?[], false); Eval(9825, o is NestedStructGen<Decimal>, false); Eval(9826, o is NestedStructGen<Decimal>[], false); Eval(9827, o is NestedStructGen<Decimal>?, false); Eval(9828, o is NestedStructGen<Decimal>?[], false); Eval(9829, o is ExplicitFieldOffsetStruct, false); Eval(9830, o is ExplicitFieldOffsetStruct[], false); Eval(9831, o is ExplicitFieldOffsetStruct?, false); Eval(9832, o is ExplicitFieldOffsetStruct?[], false); Eval(9841, o is MarshalAsStruct, false); Eval(9842, o is MarshalAsStruct[], false); Eval(9843, o is MarshalAsStruct?, false); Eval(9844, o is MarshalAsStruct?[], false); Eval(9845, o is ImplementOneInterface, false); Eval(9846, o is ImplementOneInterface[], false); Eval(9847, o is ImplementOneInterface?, false); Eval(9848, o is ImplementOneInterface?[], false); Eval(9849, o is ImplementTwoInterface, false); Eval(9850, o is ImplementTwoInterface[], false); Eval(9851, o is ImplementTwoInterface?, false); Eval(9852, o is ImplementTwoInterface?[], false); Eval(9853, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(9854, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(9855, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(9856, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(9857, o is ImplementTwoInterfaceGen<int>, false); Eval(9858, o is ImplementTwoInterfaceGen<int>[], false); Eval(9859, o is ImplementTwoInterfaceGen<int>?, false); Eval(9860, o is ImplementTwoInterfaceGen<int>?[], false); Eval(9861, o is ImplementAllInterface<int>, false); Eval(9862, o is ImplementAllInterface<int>[], false); Eval(9863, o is ImplementAllInterface<int>?, false); Eval(9864, o is ImplementAllInterface<int>?[], false); Eval(9865, o is IntE, false); Eval(9866, o is IntE[], false); Eval(9867, o is IntE?, false); Eval(9868, o is IntE?[], false); Eval(9869, o is ByteE, false); Eval(9870, o is ByteE[], false); Eval(9871, o is ByteE?, false); Eval(9872, o is ByteE?[], false); Eval(9873, o is LongE, false); Eval(9874, o is LongE[], false); Eval(9875, o is LongE?, false); Eval(9876, o is LongE?[], false); Eval(9877, o is char, false); Eval(9878, o is char[], false); Eval(9879, o is char?, false); Eval(9880, o is char?[], false); Eval(9881, o is bool, false); Eval(9882, o is bool[], false); Eval(9883, o is bool?, false); Eval(9884, o is bool?[], false); Eval(9885, o is byte, false); Eval(9886, o is byte[], false); Eval(9887, o is byte?, false); Eval(9888, o is byte?[], false); Eval(9889, o is sbyte, false); Eval(9890, o is sbyte[], false); Eval(9891, o is sbyte?, false); Eval(9892, o is sbyte?[], false); Eval(9893, o is short, false); Eval(9894, o is short[], false); Eval(9895, o is short?, false); Eval(9896, o is short?[], false); Eval(9897, o is ushort, false); Eval(9898, o is ushort[], false); Eval(9899, o is ushort?, false); Eval(9900, o is ushort?[], false); Eval(9901, o is int, false); Eval(9902, o is int[], false); Eval(9903, o is int?, false); Eval(9904, o is int?[], false); Eval(9905, o is uint, false); Eval(9906, o is uint[], false); Eval(9907, o is uint?, false); Eval(9908, o is uint?[], false); Eval(9909, o is long, false); Eval(9910, o is long[], false); Eval(9911, o is long?, false); Eval(9912, o is long?[], false); Eval(9913, o is ulong, false); Eval(9914, o is ulong[], false); Eval(9915, o is ulong?, false); Eval(9916, o is ulong?[], false); Eval(9917, o is float, false); Eval(9918, o is float[], false); Eval(9919, o is float?, false); Eval(9920, o is float?[], false); Eval(9921, o is double, false); Eval(9922, o is double[], false); Eval(9923, o is double?, false); Eval(9924, o is double?[], false); Eval(9925, o is decimal, false); Eval(9926, o is decimal[], false); Eval(9927, o is decimal?, false); Eval(9928, o is decimal?[], false); Eval(9929, o is IntPtr, false); Eval(9930, o is IntPtr[], false); Eval(9931, o is IntPtr?, false); Eval(9932, o is IntPtr?[], false); Eval(9933, o is UIntPtr, false); Eval(9934, o is UIntPtr[], false); Eval(9935, o is UIntPtr?, false); Eval(9936, o is UIntPtr?[], false); Eval(9937, o is Guid, false); Eval(9938, o is Guid[], false); Eval(9939, o is Guid?, false); Eval(9940, o is Guid?[], false); Eval(9941, o is GCHandle, false); Eval(9942, o is GCHandle[], false); Eval(9943, o is GCHandle?, false); Eval(9944, o is GCHandle?[], false); Eval(9945, o is object, false); Eval(9946, o is object[], false); Eval(9947, o is string, false); Eval(9948, o is string[], false); Eval(9949, o is ValueType, false); Eval(9950, o is ValueType[], false); Eval(9951, o is Array, false); Eval(9952, o is Array[], false); Eval(9953, o is Enum, false); Eval(9954, o is Enum[], false); Eval(9955, o is Delegate, false); Eval(9956, o is Delegate[], false); Eval(9957, o is MulticastDelegate, false); Eval(9958, o is MulticastDelegate[], false); Eval(9959, o is IEmpty, false); Eval(9960, o is IEmpty[], false); Eval(9961, o is INotEmpty, false); Eval(9962, o is INotEmpty[], false); Eval(9963, o is IEmptyGen<int>, false); Eval(9964, o is IEmptyGen<int>[], false); Eval(9965, o is INotEmptyGen<int>, false); Eval(9966, o is INotEmptyGen<int>[], false); Eval(9967, o is SimpleDelegate, false); Eval(9968, o is SimpleDelegate[], false); Eval(9969, o is GenericDelegate<int>, false); Eval(9970, o is GenericDelegate<int>[], false); Eval(9971, o is EmptyClass, false); Eval(9972, o is EmptyClass[], false); Eval(9973, o is NotEmptyClass, false); Eval(9974, o is NotEmptyClass[], false); Eval(9975, o is EmptyClassGen<int>, false); Eval(9976, o is EmptyClassGen<int>[], false); Eval(9977, o is NotEmptyClassGen<Guid>, false); Eval(9978, o is NotEmptyClassGen<Guid>[], false); Eval(9979, o is NotEmptyClassConstrainedGen<object>, false); Eval(9980, o is NotEmptyClassConstrainedGen<object>[], false); Eval(9981, o is NestedClass, false); Eval(9982, o is NestedClass[], false); Eval(9983, o is NestedClassGen<Decimal>, false); Eval(9984, o is NestedClassGen<Decimal>[], false); Eval(9985, o is ImplementOneInterfaceC, false); Eval(9986, o is ImplementOneInterfaceC[], false); Eval(9987, o is ImplementTwoInterfaceC, false); Eval(9988, o is ImplementTwoInterfaceC[], false); Eval(9989, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(9990, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(9991, o is ImplementTwoInterfaceGenC<int>, false); Eval(9992, o is ImplementTwoInterfaceGenC<int>[], false); Eval(9993, o is ImplementAllInterfaceC<int>, false); Eval(9994, o is ImplementAllInterfaceC<int>[], false); Eval(9995, o is SealedClass, false); Eval(9996, o is SealedClass[], false); } } // end of test case 0017 private static void TestCase0018() { { ByteE v = default(ByteE); ValueType o = v; Eval(9997, o is EmptyStruct, false); Eval(9998, o is EmptyStruct[], false); Eval(9999, o is EmptyStruct?, false); Eval(10000, o is EmptyStruct?[], false); Eval(10001, o is NotEmptyStruct, false); Eval(10002, o is NotEmptyStruct[], false); Eval(10003, o is NotEmptyStruct?, false); Eval(10004, o is NotEmptyStruct?[], false); Eval(10005, o is EmptyStructGen<int>, false); Eval(10006, o is EmptyStructGen<int>[], false); Eval(10007, o is EmptyStructGen<int>?, false); Eval(10008, o is EmptyStructGen<int>?[], false); Eval(10009, o is NotEmptyStructGen<Guid>, false); Eval(10010, o is NotEmptyStructGen<Guid>[], false); Eval(10011, o is NotEmptyStructGen<Guid>?, false); Eval(10012, o is NotEmptyStructGen<Guid>?[], false); Eval(10013, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10014, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10015, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10016, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10017, o is NestedStruct, false); Eval(10018, o is NestedStruct[], false); Eval(10019, o is NestedStruct?, false); Eval(10020, o is NestedStruct?[], false); Eval(10021, o is NestedStructGen<Decimal>, false); Eval(10022, o is NestedStructGen<Decimal>[], false); Eval(10023, o is NestedStructGen<Decimal>?, false); Eval(10024, o is NestedStructGen<Decimal>?[], false); Eval(10025, o is ExplicitFieldOffsetStruct, false); Eval(10026, o is ExplicitFieldOffsetStruct[], false); Eval(10027, o is ExplicitFieldOffsetStruct?, false); Eval(10028, o is ExplicitFieldOffsetStruct?[], false); Eval(10037, o is MarshalAsStruct, false); Eval(10038, o is MarshalAsStruct[], false); Eval(10039, o is MarshalAsStruct?, false); Eval(10040, o is MarshalAsStruct?[], false); Eval(10041, o is ImplementOneInterface, false); Eval(10042, o is ImplementOneInterface[], false); Eval(10043, o is ImplementOneInterface?, false); Eval(10044, o is ImplementOneInterface?[], false); Eval(10045, o is ImplementTwoInterface, false); Eval(10046, o is ImplementTwoInterface[], false); Eval(10047, o is ImplementTwoInterface?, false); Eval(10048, o is ImplementTwoInterface?[], false); Eval(10049, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10050, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10051, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10052, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10053, o is ImplementTwoInterfaceGen<int>, false); Eval(10054, o is ImplementTwoInterfaceGen<int>[], false); Eval(10055, o is ImplementTwoInterfaceGen<int>?, false); Eval(10056, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10057, o is ImplementAllInterface<int>, false); Eval(10058, o is ImplementAllInterface<int>[], false); Eval(10059, o is ImplementAllInterface<int>?, false); Eval(10060, o is ImplementAllInterface<int>?[], false); Eval(10061, o is IntE, false); Eval(10062, o is IntE[], false); Eval(10063, o is IntE?, false); Eval(10064, o is IntE?[], false); Eval(10065, o is ByteE, true); Eval(10066, o is ByteE[], false); Eval(10067, o is ByteE?, true); Eval(10068, o is ByteE?[], false); Eval(10069, o is LongE, false); Eval(10070, o is LongE[], false); Eval(10071, o is LongE?, false); Eval(10072, o is LongE?[], false); Eval(10073, o is char, false); Eval(10074, o is char[], false); Eval(10075, o is char?, false); Eval(10076, o is char?[], false); Eval(10077, o is bool, false); Eval(10078, o is bool[], false); Eval(10079, o is bool?, false); Eval(10080, o is bool?[], false); Eval(10081, o is byte, false); Eval(10082, o is byte[], false); Eval(10083, o is byte?, false); Eval(10084, o is byte?[], false); Eval(10085, o is sbyte, false); Eval(10086, o is sbyte[], false); Eval(10087, o is sbyte?, false); Eval(10088, o is sbyte?[], false); Eval(10089, o is short, false); Eval(10090, o is short[], false); Eval(10091, o is short?, false); Eval(10092, o is short?[], false); Eval(10093, o is ushort, false); Eval(10094, o is ushort[], false); Eval(10095, o is ushort?, false); Eval(10096, o is ushort?[], false); Eval(10097, o is int, false); Eval(10098, o is int[], false); Eval(10099, o is int?, false); Eval(10100, o is int?[], false); Eval(10101, o is uint, false); Eval(10102, o is uint[], false); Eval(10103, o is uint?, false); Eval(10104, o is uint?[], false); Eval(10105, o is long, false); Eval(10106, o is long[], false); Eval(10107, o is long?, false); Eval(10108, o is long?[], false); Eval(10109, o is ulong, false); Eval(10110, o is ulong[], false); Eval(10111, o is ulong?, false); Eval(10112, o is ulong?[], false); Eval(10113, o is float, false); Eval(10114, o is float[], false); Eval(10115, o is float?, false); Eval(10116, o is float?[], false); Eval(10117, o is double, false); Eval(10118, o is double[], false); Eval(10119, o is double?, false); Eval(10120, o is double?[], false); Eval(10121, o is decimal, false); Eval(10122, o is decimal[], false); Eval(10123, o is decimal?, false); Eval(10124, o is decimal?[], false); Eval(10125, o is IntPtr, false); Eval(10126, o is IntPtr[], false); Eval(10127, o is IntPtr?, false); Eval(10128, o is IntPtr?[], false); Eval(10129, o is UIntPtr, false); Eval(10130, o is UIntPtr[], false); Eval(10131, o is UIntPtr?, false); Eval(10132, o is UIntPtr?[], false); Eval(10133, o is Guid, false); Eval(10134, o is Guid[], false); Eval(10135, o is Guid?, false); Eval(10136, o is Guid?[], false); Eval(10137, o is GCHandle, false); Eval(10138, o is GCHandle[], false); Eval(10139, o is GCHandle?, false); Eval(10140, o is GCHandle?[], false); Eval(10141, o is object, true); Eval(10142, o is object[], false); Eval(10143, o is string, false); Eval(10144, o is string[], false); Eval(10145, o is ValueType, true); Eval(10146, o is ValueType[], false); Eval(10147, o is Array, false); Eval(10148, o is Array[], false); Eval(10149, o is Enum, true); Eval(10150, o is Enum[], false); Eval(10151, o is Delegate, false); Eval(10152, o is Delegate[], false); Eval(10153, o is MulticastDelegate, false); Eval(10154, o is MulticastDelegate[], false); Eval(10155, o is IEmpty, false); Eval(10156, o is IEmpty[], false); Eval(10157, o is INotEmpty, false); Eval(10158, o is INotEmpty[], false); Eval(10159, o is IEmptyGen<int>, false); Eval(10160, o is IEmptyGen<int>[], false); Eval(10161, o is INotEmptyGen<int>, false); Eval(10162, o is INotEmptyGen<int>[], false); Eval(10163, o is SimpleDelegate, false); Eval(10164, o is SimpleDelegate[], false); Eval(10165, o is GenericDelegate<int>, false); Eval(10166, o is GenericDelegate<int>[], false); Eval(10167, o is EmptyClass, false); Eval(10168, o is EmptyClass[], false); Eval(10169, o is NotEmptyClass, false); Eval(10170, o is NotEmptyClass[], false); Eval(10171, o is EmptyClassGen<int>, false); Eval(10172, o is EmptyClassGen<int>[], false); Eval(10173, o is NotEmptyClassGen<Guid>, false); Eval(10174, o is NotEmptyClassGen<Guid>[], false); Eval(10175, o is NotEmptyClassConstrainedGen<object>, false); Eval(10176, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10177, o is NestedClass, false); Eval(10178, o is NestedClass[], false); Eval(10179, o is NestedClassGen<Decimal>, false); Eval(10180, o is NestedClassGen<Decimal>[], false); Eval(10181, o is ImplementOneInterfaceC, false); Eval(10182, o is ImplementOneInterfaceC[], false); Eval(10183, o is ImplementTwoInterfaceC, false); Eval(10184, o is ImplementTwoInterfaceC[], false); Eval(10185, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10186, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10187, o is ImplementTwoInterfaceGenC<int>, false); Eval(10188, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10189, o is ImplementAllInterfaceC<int>, false); Eval(10190, o is ImplementAllInterfaceC<int>[], false); Eval(10191, o is SealedClass, false); Eval(10192, o is SealedClass[], false); } { ByteE? v = default(ByteE); ValueType o = v; Eval(10193, o is EmptyStruct, false); Eval(10194, o is EmptyStruct[], false); Eval(10195, o is EmptyStruct?, false); Eval(10196, o is EmptyStruct?[], false); Eval(10197, o is NotEmptyStruct, false); Eval(10198, o is NotEmptyStruct[], false); Eval(10199, o is NotEmptyStruct?, false); Eval(10200, o is NotEmptyStruct?[], false); Eval(10201, o is EmptyStructGen<int>, false); Eval(10202, o is EmptyStructGen<int>[], false); Eval(10203, o is EmptyStructGen<int>?, false); Eval(10204, o is EmptyStructGen<int>?[], false); Eval(10205, o is NotEmptyStructGen<Guid>, false); Eval(10206, o is NotEmptyStructGen<Guid>[], false); Eval(10207, o is NotEmptyStructGen<Guid>?, false); Eval(10208, o is NotEmptyStructGen<Guid>?[], false); Eval(10209, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10210, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10211, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10212, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10213, o is NestedStruct, false); Eval(10214, o is NestedStruct[], false); Eval(10215, o is NestedStruct?, false); Eval(10216, o is NestedStruct?[], false); Eval(10217, o is NestedStructGen<Decimal>, false); Eval(10218, o is NestedStructGen<Decimal>[], false); Eval(10219, o is NestedStructGen<Decimal>?, false); Eval(10220, o is NestedStructGen<Decimal>?[], false); Eval(10221, o is ExplicitFieldOffsetStruct, false); Eval(10222, o is ExplicitFieldOffsetStruct[], false); Eval(10223, o is ExplicitFieldOffsetStruct?, false); Eval(10224, o is ExplicitFieldOffsetStruct?[], false); Eval(10233, o is MarshalAsStruct, false); Eval(10234, o is MarshalAsStruct[], false); Eval(10235, o is MarshalAsStruct?, false); Eval(10236, o is MarshalAsStruct?[], false); Eval(10237, o is ImplementOneInterface, false); Eval(10238, o is ImplementOneInterface[], false); Eval(10239, o is ImplementOneInterface?, false); Eval(10240, o is ImplementOneInterface?[], false); Eval(10241, o is ImplementTwoInterface, false); Eval(10242, o is ImplementTwoInterface[], false); Eval(10243, o is ImplementTwoInterface?, false); Eval(10244, o is ImplementTwoInterface?[], false); Eval(10245, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10246, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10247, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10248, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10249, o is ImplementTwoInterfaceGen<int>, false); Eval(10250, o is ImplementTwoInterfaceGen<int>[], false); Eval(10251, o is ImplementTwoInterfaceGen<int>?, false); Eval(10252, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10253, o is ImplementAllInterface<int>, false); Eval(10254, o is ImplementAllInterface<int>[], false); Eval(10255, o is ImplementAllInterface<int>?, false); Eval(10256, o is ImplementAllInterface<int>?[], false); Eval(10257, o is IntE, false); Eval(10258, o is IntE[], false); Eval(10259, o is IntE?, false); Eval(10260, o is IntE?[], false); Eval(10261, o is ByteE, true); Eval(10262, o is ByteE[], false); Eval(10263, o is ByteE?, true); Eval(10264, o is ByteE?[], false); Eval(10265, o is LongE, false); Eval(10266, o is LongE[], false); Eval(10267, o is LongE?, false); Eval(10268, o is LongE?[], false); Eval(10269, o is char, false); Eval(10270, o is char[], false); Eval(10271, o is char?, false); Eval(10272, o is char?[], false); Eval(10273, o is bool, false); Eval(10274, o is bool[], false); Eval(10275, o is bool?, false); Eval(10276, o is bool?[], false); Eval(10277, o is byte, false); Eval(10278, o is byte[], false); Eval(10279, o is byte?, false); Eval(10280, o is byte?[], false); Eval(10281, o is sbyte, false); Eval(10282, o is sbyte[], false); Eval(10283, o is sbyte?, false); Eval(10284, o is sbyte?[], false); Eval(10285, o is short, false); Eval(10286, o is short[], false); Eval(10287, o is short?, false); Eval(10288, o is short?[], false); Eval(10289, o is ushort, false); Eval(10290, o is ushort[], false); Eval(10291, o is ushort?, false); Eval(10292, o is ushort?[], false); Eval(10293, o is int, false); Eval(10294, o is int[], false); Eval(10295, o is int?, false); Eval(10296, o is int?[], false); Eval(10297, o is uint, false); Eval(10298, o is uint[], false); Eval(10299, o is uint?, false); Eval(10300, o is uint?[], false); Eval(10301, o is long, false); Eval(10302, o is long[], false); Eval(10303, o is long?, false); Eval(10304, o is long?[], false); Eval(10305, o is ulong, false); Eval(10306, o is ulong[], false); Eval(10307, o is ulong?, false); Eval(10308, o is ulong?[], false); Eval(10309, o is float, false); Eval(10310, o is float[], false); Eval(10311, o is float?, false); Eval(10312, o is float?[], false); Eval(10313, o is double, false); Eval(10314, o is double[], false); Eval(10315, o is double?, false); Eval(10316, o is double?[], false); Eval(10317, o is decimal, false); Eval(10318, o is decimal[], false); Eval(10319, o is decimal?, false); Eval(10320, o is decimal?[], false); Eval(10321, o is IntPtr, false); Eval(10322, o is IntPtr[], false); Eval(10323, o is IntPtr?, false); Eval(10324, o is IntPtr?[], false); Eval(10325, o is UIntPtr, false); Eval(10326, o is UIntPtr[], false); Eval(10327, o is UIntPtr?, false); Eval(10328, o is UIntPtr?[], false); Eval(10329, o is Guid, false); Eval(10330, o is Guid[], false); Eval(10331, o is Guid?, false); Eval(10332, o is Guid?[], false); Eval(10333, o is GCHandle, false); Eval(10334, o is GCHandle[], false); Eval(10335, o is GCHandle?, false); Eval(10336, o is GCHandle?[], false); Eval(10337, o is object, true); Eval(10338, o is object[], false); Eval(10339, o is string, false); Eval(10340, o is string[], false); Eval(10341, o is ValueType, true); Eval(10342, o is ValueType[], false); Eval(10343, o is Array, false); Eval(10344, o is Array[], false); Eval(10345, o is Enum, true); Eval(10346, o is Enum[], false); Eval(10347, o is Delegate, false); Eval(10348, o is Delegate[], false); Eval(10349, o is MulticastDelegate, false); Eval(10350, o is MulticastDelegate[], false); Eval(10351, o is IEmpty, false); Eval(10352, o is IEmpty[], false); Eval(10353, o is INotEmpty, false); Eval(10354, o is INotEmpty[], false); Eval(10355, o is IEmptyGen<int>, false); Eval(10356, o is IEmptyGen<int>[], false); Eval(10357, o is INotEmptyGen<int>, false); Eval(10358, o is INotEmptyGen<int>[], false); Eval(10359, o is SimpleDelegate, false); Eval(10360, o is SimpleDelegate[], false); Eval(10361, o is GenericDelegate<int>, false); Eval(10362, o is GenericDelegate<int>[], false); Eval(10363, o is EmptyClass, false); Eval(10364, o is EmptyClass[], false); Eval(10365, o is NotEmptyClass, false); Eval(10366, o is NotEmptyClass[], false); Eval(10367, o is EmptyClassGen<int>, false); Eval(10368, o is EmptyClassGen<int>[], false); Eval(10369, o is NotEmptyClassGen<Guid>, false); Eval(10370, o is NotEmptyClassGen<Guid>[], false); Eval(10371, o is NotEmptyClassConstrainedGen<object>, false); Eval(10372, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10373, o is NestedClass, false); Eval(10374, o is NestedClass[], false); Eval(10375, o is NestedClassGen<Decimal>, false); Eval(10376, o is NestedClassGen<Decimal>[], false); Eval(10377, o is ImplementOneInterfaceC, false); Eval(10378, o is ImplementOneInterfaceC[], false); Eval(10379, o is ImplementTwoInterfaceC, false); Eval(10380, o is ImplementTwoInterfaceC[], false); Eval(10381, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10382, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10383, o is ImplementTwoInterfaceGenC<int>, false); Eval(10384, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10385, o is ImplementAllInterfaceC<int>, false); Eval(10386, o is ImplementAllInterfaceC<int>[], false); Eval(10387, o is SealedClass, false); Eval(10388, o is SealedClass[], false); } { ByteE? v = default(ByteE?); ValueType o = v; Eval(10389, o is EmptyStruct, false); Eval(10390, o is EmptyStruct[], false); Eval(10391, o is EmptyStruct?, false); Eval(10392, o is EmptyStruct?[], false); Eval(10393, o is NotEmptyStruct, false); Eval(10394, o is NotEmptyStruct[], false); Eval(10395, o is NotEmptyStruct?, false); Eval(10396, o is NotEmptyStruct?[], false); Eval(10397, o is EmptyStructGen<int>, false); Eval(10398, o is EmptyStructGen<int>[], false); Eval(10399, o is EmptyStructGen<int>?, false); Eval(10400, o is EmptyStructGen<int>?[], false); Eval(10401, o is NotEmptyStructGen<Guid>, false); Eval(10402, o is NotEmptyStructGen<Guid>[], false); Eval(10403, o is NotEmptyStructGen<Guid>?, false); Eval(10404, o is NotEmptyStructGen<Guid>?[], false); Eval(10405, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10406, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10407, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10408, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10409, o is NestedStruct, false); Eval(10410, o is NestedStruct[], false); Eval(10411, o is NestedStruct?, false); Eval(10412, o is NestedStruct?[], false); Eval(10413, o is NestedStructGen<Decimal>, false); Eval(10414, o is NestedStructGen<Decimal>[], false); Eval(10415, o is NestedStructGen<Decimal>?, false); Eval(10416, o is NestedStructGen<Decimal>?[], false); Eval(10417, o is ExplicitFieldOffsetStruct, false); Eval(10418, o is ExplicitFieldOffsetStruct[], false); Eval(10419, o is ExplicitFieldOffsetStruct?, false); Eval(10420, o is ExplicitFieldOffsetStruct?[], false); Eval(10429, o is MarshalAsStruct, false); Eval(10430, o is MarshalAsStruct[], false); Eval(10431, o is MarshalAsStruct?, false); Eval(10432, o is MarshalAsStruct?[], false); Eval(10433, o is ImplementOneInterface, false); Eval(10434, o is ImplementOneInterface[], false); Eval(10435, o is ImplementOneInterface?, false); Eval(10436, o is ImplementOneInterface?[], false); Eval(10437, o is ImplementTwoInterface, false); Eval(10438, o is ImplementTwoInterface[], false); Eval(10439, o is ImplementTwoInterface?, false); Eval(10440, o is ImplementTwoInterface?[], false); Eval(10441, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10442, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10443, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10444, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10445, o is ImplementTwoInterfaceGen<int>, false); Eval(10446, o is ImplementTwoInterfaceGen<int>[], false); Eval(10447, o is ImplementTwoInterfaceGen<int>?, false); Eval(10448, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10449, o is ImplementAllInterface<int>, false); Eval(10450, o is ImplementAllInterface<int>[], false); Eval(10451, o is ImplementAllInterface<int>?, false); Eval(10452, o is ImplementAllInterface<int>?[], false); Eval(10453, o is IntE, false); Eval(10454, o is IntE[], false); Eval(10455, o is IntE?, false); Eval(10456, o is IntE?[], false); Eval(10457, o is ByteE, false); Eval(10458, o is ByteE[], false); Eval(10459, o is ByteE?, false); Eval(10460, o is ByteE?[], false); Eval(10461, o is LongE, false); Eval(10462, o is LongE[], false); Eval(10463, o is LongE?, false); Eval(10464, o is LongE?[], false); Eval(10465, o is char, false); Eval(10466, o is char[], false); Eval(10467, o is char?, false); Eval(10468, o is char?[], false); Eval(10469, o is bool, false); Eval(10470, o is bool[], false); Eval(10471, o is bool?, false); Eval(10472, o is bool?[], false); Eval(10473, o is byte, false); Eval(10474, o is byte[], false); Eval(10475, o is byte?, false); Eval(10476, o is byte?[], false); Eval(10477, o is sbyte, false); Eval(10478, o is sbyte[], false); Eval(10479, o is sbyte?, false); Eval(10480, o is sbyte?[], false); Eval(10481, o is short, false); Eval(10482, o is short[], false); Eval(10483, o is short?, false); Eval(10484, o is short?[], false); Eval(10485, o is ushort, false); Eval(10486, o is ushort[], false); Eval(10487, o is ushort?, false); Eval(10488, o is ushort?[], false); Eval(10489, o is int, false); Eval(10490, o is int[], false); Eval(10491, o is int?, false); Eval(10492, o is int?[], false); Eval(10493, o is uint, false); Eval(10494, o is uint[], false); Eval(10495, o is uint?, false); Eval(10496, o is uint?[], false); Eval(10497, o is long, false); Eval(10498, o is long[], false); Eval(10499, o is long?, false); Eval(10500, o is long?[], false); Eval(10501, o is ulong, false); Eval(10502, o is ulong[], false); Eval(10503, o is ulong?, false); Eval(10504, o is ulong?[], false); Eval(10505, o is float, false); Eval(10506, o is float[], false); Eval(10507, o is float?, false); Eval(10508, o is float?[], false); Eval(10509, o is double, false); Eval(10510, o is double[], false); Eval(10511, o is double?, false); Eval(10512, o is double?[], false); Eval(10513, o is decimal, false); Eval(10514, o is decimal[], false); Eval(10515, o is decimal?, false); Eval(10516, o is decimal?[], false); Eval(10517, o is IntPtr, false); Eval(10518, o is IntPtr[], false); Eval(10519, o is IntPtr?, false); Eval(10520, o is IntPtr?[], false); Eval(10521, o is UIntPtr, false); Eval(10522, o is UIntPtr[], false); Eval(10523, o is UIntPtr?, false); Eval(10524, o is UIntPtr?[], false); Eval(10525, o is Guid, false); Eval(10526, o is Guid[], false); Eval(10527, o is Guid?, false); Eval(10528, o is Guid?[], false); Eval(10529, o is GCHandle, false); Eval(10530, o is GCHandle[], false); Eval(10531, o is GCHandle?, false); Eval(10532, o is GCHandle?[], false); Eval(10533, o is object, false); Eval(10534, o is object[], false); Eval(10535, o is string, false); Eval(10536, o is string[], false); Eval(10537, o is ValueType, false); Eval(10538, o is ValueType[], false); Eval(10539, o is Array, false); Eval(10540, o is Array[], false); Eval(10541, o is Enum, false); Eval(10542, o is Enum[], false); Eval(10543, o is Delegate, false); Eval(10544, o is Delegate[], false); Eval(10545, o is MulticastDelegate, false); Eval(10546, o is MulticastDelegate[], false); Eval(10547, o is IEmpty, false); Eval(10548, o is IEmpty[], false); Eval(10549, o is INotEmpty, false); Eval(10550, o is INotEmpty[], false); Eval(10551, o is IEmptyGen<int>, false); Eval(10552, o is IEmptyGen<int>[], false); Eval(10553, o is INotEmptyGen<int>, false); Eval(10554, o is INotEmptyGen<int>[], false); Eval(10555, o is SimpleDelegate, false); Eval(10556, o is SimpleDelegate[], false); Eval(10557, o is GenericDelegate<int>, false); Eval(10558, o is GenericDelegate<int>[], false); Eval(10559, o is EmptyClass, false); Eval(10560, o is EmptyClass[], false); Eval(10561, o is NotEmptyClass, false); Eval(10562, o is NotEmptyClass[], false); Eval(10563, o is EmptyClassGen<int>, false); Eval(10564, o is EmptyClassGen<int>[], false); Eval(10565, o is NotEmptyClassGen<Guid>, false); Eval(10566, o is NotEmptyClassGen<Guid>[], false); Eval(10567, o is NotEmptyClassConstrainedGen<object>, false); Eval(10568, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10569, o is NestedClass, false); Eval(10570, o is NestedClass[], false); Eval(10571, o is NestedClassGen<Decimal>, false); Eval(10572, o is NestedClassGen<Decimal>[], false); Eval(10573, o is ImplementOneInterfaceC, false); Eval(10574, o is ImplementOneInterfaceC[], false); Eval(10575, o is ImplementTwoInterfaceC, false); Eval(10576, o is ImplementTwoInterfaceC[], false); Eval(10577, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10578, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10579, o is ImplementTwoInterfaceGenC<int>, false); Eval(10580, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10581, o is ImplementAllInterfaceC<int>, false); Eval(10582, o is ImplementAllInterfaceC<int>[], false); Eval(10583, o is SealedClass, false); Eval(10584, o is SealedClass[], false); } } // end of test case 0018 private static void TestCase0019() { { LongE v = default(LongE); ValueType o = v; Eval(10585, o is EmptyStruct, false); Eval(10586, o is EmptyStruct[], false); Eval(10587, o is EmptyStruct?, false); Eval(10588, o is EmptyStruct?[], false); Eval(10589, o is NotEmptyStruct, false); Eval(10590, o is NotEmptyStruct[], false); Eval(10591, o is NotEmptyStruct?, false); Eval(10592, o is NotEmptyStruct?[], false); Eval(10593, o is EmptyStructGen<int>, false); Eval(10594, o is EmptyStructGen<int>[], false); Eval(10595, o is EmptyStructGen<int>?, false); Eval(10596, o is EmptyStructGen<int>?[], false); Eval(10597, o is NotEmptyStructGen<Guid>, false); Eval(10598, o is NotEmptyStructGen<Guid>[], false); Eval(10599, o is NotEmptyStructGen<Guid>?, false); Eval(10600, o is NotEmptyStructGen<Guid>?[], false); Eval(10601, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10602, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10603, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10604, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10605, o is NestedStruct, false); Eval(10606, o is NestedStruct[], false); Eval(10607, o is NestedStruct?, false); Eval(10608, o is NestedStruct?[], false); Eval(10609, o is NestedStructGen<Decimal>, false); Eval(10610, o is NestedStructGen<Decimal>[], false); Eval(10611, o is NestedStructGen<Decimal>?, false); Eval(10612, o is NestedStructGen<Decimal>?[], false); Eval(10613, o is ExplicitFieldOffsetStruct, false); Eval(10614, o is ExplicitFieldOffsetStruct[], false); Eval(10615, o is ExplicitFieldOffsetStruct?, false); Eval(10616, o is ExplicitFieldOffsetStruct?[], false); Eval(10625, o is MarshalAsStruct, false); Eval(10626, o is MarshalAsStruct[], false); Eval(10627, o is MarshalAsStruct?, false); Eval(10628, o is MarshalAsStruct?[], false); Eval(10629, o is ImplementOneInterface, false); Eval(10630, o is ImplementOneInterface[], false); Eval(10631, o is ImplementOneInterface?, false); Eval(10632, o is ImplementOneInterface?[], false); Eval(10633, o is ImplementTwoInterface, false); Eval(10634, o is ImplementTwoInterface[], false); Eval(10635, o is ImplementTwoInterface?, false); Eval(10636, o is ImplementTwoInterface?[], false); Eval(10637, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10638, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10639, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10640, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10641, o is ImplementTwoInterfaceGen<int>, false); Eval(10642, o is ImplementTwoInterfaceGen<int>[], false); Eval(10643, o is ImplementTwoInterfaceGen<int>?, false); Eval(10644, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10645, o is ImplementAllInterface<int>, false); Eval(10646, o is ImplementAllInterface<int>[], false); Eval(10647, o is ImplementAllInterface<int>?, false); Eval(10648, o is ImplementAllInterface<int>?[], false); Eval(10649, o is IntE, false); Eval(10650, o is IntE[], false); Eval(10651, o is IntE?, false); Eval(10652, o is IntE?[], false); Eval(10653, o is ByteE, false); Eval(10654, o is ByteE[], false); Eval(10655, o is ByteE?, false); Eval(10656, o is ByteE?[], false); Eval(10657, o is LongE, true); Eval(10658, o is LongE[], false); Eval(10659, o is LongE?, true); Eval(10660, o is LongE?[], false); Eval(10661, o is char, false); Eval(10662, o is char[], false); Eval(10663, o is char?, false); Eval(10664, o is char?[], false); Eval(10665, o is bool, false); Eval(10666, o is bool[], false); Eval(10667, o is bool?, false); Eval(10668, o is bool?[], false); Eval(10669, o is byte, false); Eval(10670, o is byte[], false); Eval(10671, o is byte?, false); Eval(10672, o is byte?[], false); Eval(10673, o is sbyte, false); Eval(10674, o is sbyte[], false); Eval(10675, o is sbyte?, false); Eval(10676, o is sbyte?[], false); Eval(10677, o is short, false); Eval(10678, o is short[], false); Eval(10679, o is short?, false); Eval(10680, o is short?[], false); Eval(10681, o is ushort, false); Eval(10682, o is ushort[], false); Eval(10683, o is ushort?, false); Eval(10684, o is ushort?[], false); Eval(10685, o is int, false); Eval(10686, o is int[], false); Eval(10687, o is int?, false); Eval(10688, o is int?[], false); Eval(10689, o is uint, false); Eval(10690, o is uint[], false); Eval(10691, o is uint?, false); Eval(10692, o is uint?[], false); Eval(10693, o is long, false); Eval(10694, o is long[], false); Eval(10695, o is long?, false); Eval(10696, o is long?[], false); Eval(10697, o is ulong, false); Eval(10698, o is ulong[], false); Eval(10699, o is ulong?, false); Eval(10700, o is ulong?[], false); Eval(10701, o is float, false); Eval(10702, o is float[], false); Eval(10703, o is float?, false); Eval(10704, o is float?[], false); Eval(10705, o is double, false); Eval(10706, o is double[], false); Eval(10707, o is double?, false); Eval(10708, o is double?[], false); Eval(10709, o is decimal, false); Eval(10710, o is decimal[], false); Eval(10711, o is decimal?, false); Eval(10712, o is decimal?[], false); Eval(10713, o is IntPtr, false); Eval(10714, o is IntPtr[], false); Eval(10715, o is IntPtr?, false); Eval(10716, o is IntPtr?[], false); Eval(10717, o is UIntPtr, false); Eval(10718, o is UIntPtr[], false); Eval(10719, o is UIntPtr?, false); Eval(10720, o is UIntPtr?[], false); Eval(10721, o is Guid, false); Eval(10722, o is Guid[], false); Eval(10723, o is Guid?, false); Eval(10724, o is Guid?[], false); Eval(10725, o is GCHandle, false); Eval(10726, o is GCHandle[], false); Eval(10727, o is GCHandle?, false); Eval(10728, o is GCHandle?[], false); Eval(10729, o is object, true); Eval(10730, o is object[], false); Eval(10731, o is string, false); Eval(10732, o is string[], false); Eval(10733, o is ValueType, true); Eval(10734, o is ValueType[], false); Eval(10735, o is Array, false); Eval(10736, o is Array[], false); Eval(10737, o is Enum, true); Eval(10738, o is Enum[], false); Eval(10739, o is Delegate, false); Eval(10740, o is Delegate[], false); Eval(10741, o is MulticastDelegate, false); Eval(10742, o is MulticastDelegate[], false); Eval(10743, o is IEmpty, false); Eval(10744, o is IEmpty[], false); Eval(10745, o is INotEmpty, false); Eval(10746, o is INotEmpty[], false); Eval(10747, o is IEmptyGen<int>, false); Eval(10748, o is IEmptyGen<int>[], false); Eval(10749, o is INotEmptyGen<int>, false); Eval(10750, o is INotEmptyGen<int>[], false); Eval(10751, o is SimpleDelegate, false); Eval(10752, o is SimpleDelegate[], false); Eval(10753, o is GenericDelegate<int>, false); Eval(10754, o is GenericDelegate<int>[], false); Eval(10755, o is EmptyClass, false); Eval(10756, o is EmptyClass[], false); Eval(10757, o is NotEmptyClass, false); Eval(10758, o is NotEmptyClass[], false); Eval(10759, o is EmptyClassGen<int>, false); Eval(10760, o is EmptyClassGen<int>[], false); Eval(10761, o is NotEmptyClassGen<Guid>, false); Eval(10762, o is NotEmptyClassGen<Guid>[], false); Eval(10763, o is NotEmptyClassConstrainedGen<object>, false); Eval(10764, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10765, o is NestedClass, false); Eval(10766, o is NestedClass[], false); Eval(10767, o is NestedClassGen<Decimal>, false); Eval(10768, o is NestedClassGen<Decimal>[], false); Eval(10769, o is ImplementOneInterfaceC, false); Eval(10770, o is ImplementOneInterfaceC[], false); Eval(10771, o is ImplementTwoInterfaceC, false); Eval(10772, o is ImplementTwoInterfaceC[], false); Eval(10773, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10774, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10775, o is ImplementTwoInterfaceGenC<int>, false); Eval(10776, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10777, o is ImplementAllInterfaceC<int>, false); Eval(10778, o is ImplementAllInterfaceC<int>[], false); Eval(10779, o is SealedClass, false); Eval(10780, o is SealedClass[], false); } { LongE? v = default(LongE); ValueType o = v; Eval(10781, o is EmptyStruct, false); Eval(10782, o is EmptyStruct[], false); Eval(10783, o is EmptyStruct?, false); Eval(10784, o is EmptyStruct?[], false); Eval(10785, o is NotEmptyStruct, false); Eval(10786, o is NotEmptyStruct[], false); Eval(10787, o is NotEmptyStruct?, false); Eval(10788, o is NotEmptyStruct?[], false); Eval(10789, o is EmptyStructGen<int>, false); Eval(10790, o is EmptyStructGen<int>[], false); Eval(10791, o is EmptyStructGen<int>?, false); Eval(10792, o is EmptyStructGen<int>?[], false); Eval(10793, o is NotEmptyStructGen<Guid>, false); Eval(10794, o is NotEmptyStructGen<Guid>[], false); Eval(10795, o is NotEmptyStructGen<Guid>?, false); Eval(10796, o is NotEmptyStructGen<Guid>?[], false); Eval(10797, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10798, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10799, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10800, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10801, o is NestedStruct, false); Eval(10802, o is NestedStruct[], false); Eval(10803, o is NestedStruct?, false); Eval(10804, o is NestedStruct?[], false); Eval(10805, o is NestedStructGen<Decimal>, false); Eval(10806, o is NestedStructGen<Decimal>[], false); Eval(10807, o is NestedStructGen<Decimal>?, false); Eval(10808, o is NestedStructGen<Decimal>?[], false); Eval(10809, o is ExplicitFieldOffsetStruct, false); Eval(10810, o is ExplicitFieldOffsetStruct[], false); Eval(10811, o is ExplicitFieldOffsetStruct?, false); Eval(10812, o is ExplicitFieldOffsetStruct?[], false); Eval(10821, o is MarshalAsStruct, false); Eval(10822, o is MarshalAsStruct[], false); Eval(10823, o is MarshalAsStruct?, false); Eval(10824, o is MarshalAsStruct?[], false); Eval(10825, o is ImplementOneInterface, false); Eval(10826, o is ImplementOneInterface[], false); Eval(10827, o is ImplementOneInterface?, false); Eval(10828, o is ImplementOneInterface?[], false); Eval(10829, o is ImplementTwoInterface, false); Eval(10830, o is ImplementTwoInterface[], false); Eval(10831, o is ImplementTwoInterface?, false); Eval(10832, o is ImplementTwoInterface?[], false); Eval(10833, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(10834, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(10835, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(10836, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(10837, o is ImplementTwoInterfaceGen<int>, false); Eval(10838, o is ImplementTwoInterfaceGen<int>[], false); Eval(10839, o is ImplementTwoInterfaceGen<int>?, false); Eval(10840, o is ImplementTwoInterfaceGen<int>?[], false); Eval(10841, o is ImplementAllInterface<int>, false); Eval(10842, o is ImplementAllInterface<int>[], false); Eval(10843, o is ImplementAllInterface<int>?, false); Eval(10844, o is ImplementAllInterface<int>?[], false); Eval(10845, o is IntE, false); Eval(10846, o is IntE[], false); Eval(10847, o is IntE?, false); Eval(10848, o is IntE?[], false); Eval(10849, o is ByteE, false); Eval(10850, o is ByteE[], false); Eval(10851, o is ByteE?, false); Eval(10852, o is ByteE?[], false); Eval(10853, o is LongE, true); Eval(10854, o is LongE[], false); Eval(10855, o is LongE?, true); Eval(10856, o is LongE?[], false); Eval(10857, o is char, false); Eval(10858, o is char[], false); Eval(10859, o is char?, false); Eval(10860, o is char?[], false); Eval(10861, o is bool, false); Eval(10862, o is bool[], false); Eval(10863, o is bool?, false); Eval(10864, o is bool?[], false); Eval(10865, o is byte, false); Eval(10866, o is byte[], false); Eval(10867, o is byte?, false); Eval(10868, o is byte?[], false); Eval(10869, o is sbyte, false); Eval(10870, o is sbyte[], false); Eval(10871, o is sbyte?, false); Eval(10872, o is sbyte?[], false); Eval(10873, o is short, false); Eval(10874, o is short[], false); Eval(10875, o is short?, false); Eval(10876, o is short?[], false); Eval(10877, o is ushort, false); Eval(10878, o is ushort[], false); Eval(10879, o is ushort?, false); Eval(10880, o is ushort?[], false); Eval(10881, o is int, false); Eval(10882, o is int[], false); Eval(10883, o is int?, false); Eval(10884, o is int?[], false); Eval(10885, o is uint, false); Eval(10886, o is uint[], false); Eval(10887, o is uint?, false); Eval(10888, o is uint?[], false); Eval(10889, o is long, false); Eval(10890, o is long[], false); Eval(10891, o is long?, false); Eval(10892, o is long?[], false); Eval(10893, o is ulong, false); Eval(10894, o is ulong[], false); Eval(10895, o is ulong?, false); Eval(10896, o is ulong?[], false); Eval(10897, o is float, false); Eval(10898, o is float[], false); Eval(10899, o is float?, false); Eval(10900, o is float?[], false); Eval(10901, o is double, false); Eval(10902, o is double[], false); Eval(10903, o is double?, false); Eval(10904, o is double?[], false); Eval(10905, o is decimal, false); Eval(10906, o is decimal[], false); Eval(10907, o is decimal?, false); Eval(10908, o is decimal?[], false); Eval(10909, o is IntPtr, false); Eval(10910, o is IntPtr[], false); Eval(10911, o is IntPtr?, false); Eval(10912, o is IntPtr?[], false); Eval(10913, o is UIntPtr, false); Eval(10914, o is UIntPtr[], false); Eval(10915, o is UIntPtr?, false); Eval(10916, o is UIntPtr?[], false); Eval(10917, o is Guid, false); Eval(10918, o is Guid[], false); Eval(10919, o is Guid?, false); Eval(10920, o is Guid?[], false); Eval(10921, o is GCHandle, false); Eval(10922, o is GCHandle[], false); Eval(10923, o is GCHandle?, false); Eval(10924, o is GCHandle?[], false); Eval(10925, o is object, true); Eval(10926, o is object[], false); Eval(10927, o is string, false); Eval(10928, o is string[], false); Eval(10929, o is ValueType, true); Eval(10930, o is ValueType[], false); Eval(10931, o is Array, false); Eval(10932, o is Array[], false); Eval(10933, o is Enum, true); Eval(10934, o is Enum[], false); Eval(10935, o is Delegate, false); Eval(10936, o is Delegate[], false); Eval(10937, o is MulticastDelegate, false); Eval(10938, o is MulticastDelegate[], false); Eval(10939, o is IEmpty, false); Eval(10940, o is IEmpty[], false); Eval(10941, o is INotEmpty, false); Eval(10942, o is INotEmpty[], false); Eval(10943, o is IEmptyGen<int>, false); Eval(10944, o is IEmptyGen<int>[], false); Eval(10945, o is INotEmptyGen<int>, false); Eval(10946, o is INotEmptyGen<int>[], false); Eval(10947, o is SimpleDelegate, false); Eval(10948, o is SimpleDelegate[], false); Eval(10949, o is GenericDelegate<int>, false); Eval(10950, o is GenericDelegate<int>[], false); Eval(10951, o is EmptyClass, false); Eval(10952, o is EmptyClass[], false); Eval(10953, o is NotEmptyClass, false); Eval(10954, o is NotEmptyClass[], false); Eval(10955, o is EmptyClassGen<int>, false); Eval(10956, o is EmptyClassGen<int>[], false); Eval(10957, o is NotEmptyClassGen<Guid>, false); Eval(10958, o is NotEmptyClassGen<Guid>[], false); Eval(10959, o is NotEmptyClassConstrainedGen<object>, false); Eval(10960, o is NotEmptyClassConstrainedGen<object>[], false); Eval(10961, o is NestedClass, false); Eval(10962, o is NestedClass[], false); Eval(10963, o is NestedClassGen<Decimal>, false); Eval(10964, o is NestedClassGen<Decimal>[], false); Eval(10965, o is ImplementOneInterfaceC, false); Eval(10966, o is ImplementOneInterfaceC[], false); Eval(10967, o is ImplementTwoInterfaceC, false); Eval(10968, o is ImplementTwoInterfaceC[], false); Eval(10969, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(10970, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(10971, o is ImplementTwoInterfaceGenC<int>, false); Eval(10972, o is ImplementTwoInterfaceGenC<int>[], false); Eval(10973, o is ImplementAllInterfaceC<int>, false); Eval(10974, o is ImplementAllInterfaceC<int>[], false); Eval(10975, o is SealedClass, false); Eval(10976, o is SealedClass[], false); } { LongE? v = default(LongE?); ValueType o = v; Eval(10977, o is EmptyStruct, false); Eval(10978, o is EmptyStruct[], false); Eval(10979, o is EmptyStruct?, false); Eval(10980, o is EmptyStruct?[], false); Eval(10981, o is NotEmptyStruct, false); Eval(10982, o is NotEmptyStruct[], false); Eval(10983, o is NotEmptyStruct?, false); Eval(10984, o is NotEmptyStruct?[], false); Eval(10985, o is EmptyStructGen<int>, false); Eval(10986, o is EmptyStructGen<int>[], false); Eval(10987, o is EmptyStructGen<int>?, false); Eval(10988, o is EmptyStructGen<int>?[], false); Eval(10989, o is NotEmptyStructGen<Guid>, false); Eval(10990, o is NotEmptyStructGen<Guid>[], false); Eval(10991, o is NotEmptyStructGen<Guid>?, false); Eval(10992, o is NotEmptyStructGen<Guid>?[], false); Eval(10993, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(10994, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(10995, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(10996, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(10997, o is NestedStruct, false); Eval(10998, o is NestedStruct[], false); Eval(10999, o is NestedStruct?, false); Eval(11000, o is NestedStruct?[], false); Eval(11001, o is NestedStructGen<Decimal>, false); Eval(11002, o is NestedStructGen<Decimal>[], false); Eval(11003, o is NestedStructGen<Decimal>?, false); Eval(11004, o is NestedStructGen<Decimal>?[], false); Eval(11005, o is ExplicitFieldOffsetStruct, false); Eval(11006, o is ExplicitFieldOffsetStruct[], false); Eval(11007, o is ExplicitFieldOffsetStruct?, false); Eval(11008, o is ExplicitFieldOffsetStruct?[], false); Eval(11017, o is MarshalAsStruct, false); Eval(11018, o is MarshalAsStruct[], false); Eval(11019, o is MarshalAsStruct?, false); Eval(11020, o is MarshalAsStruct?[], false); Eval(11021, o is ImplementOneInterface, false); Eval(11022, o is ImplementOneInterface[], false); Eval(11023, o is ImplementOneInterface?, false); Eval(11024, o is ImplementOneInterface?[], false); Eval(11025, o is ImplementTwoInterface, false); Eval(11026, o is ImplementTwoInterface[], false); Eval(11027, o is ImplementTwoInterface?, false); Eval(11028, o is ImplementTwoInterface?[], false); Eval(11029, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11030, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11031, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11032, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11033, o is ImplementTwoInterfaceGen<int>, false); Eval(11034, o is ImplementTwoInterfaceGen<int>[], false); Eval(11035, o is ImplementTwoInterfaceGen<int>?, false); Eval(11036, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11037, o is ImplementAllInterface<int>, false); Eval(11038, o is ImplementAllInterface<int>[], false); Eval(11039, o is ImplementAllInterface<int>?, false); Eval(11040, o is ImplementAllInterface<int>?[], false); Eval(11041, o is IntE, false); Eval(11042, o is IntE[], false); Eval(11043, o is IntE?, false); Eval(11044, o is IntE?[], false); Eval(11045, o is ByteE, false); Eval(11046, o is ByteE[], false); Eval(11047, o is ByteE?, false); Eval(11048, o is ByteE?[], false); Eval(11049, o is LongE, false); Eval(11050, o is LongE[], false); Eval(11051, o is LongE?, false); Eval(11052, o is LongE?[], false); Eval(11053, o is char, false); Eval(11054, o is char[], false); Eval(11055, o is char?, false); Eval(11056, o is char?[], false); Eval(11057, o is bool, false); Eval(11058, o is bool[], false); Eval(11059, o is bool?, false); Eval(11060, o is bool?[], false); Eval(11061, o is byte, false); Eval(11062, o is byte[], false); Eval(11063, o is byte?, false); Eval(11064, o is byte?[], false); Eval(11065, o is sbyte, false); Eval(11066, o is sbyte[], false); Eval(11067, o is sbyte?, false); Eval(11068, o is sbyte?[], false); Eval(11069, o is short, false); Eval(11070, o is short[], false); Eval(11071, o is short?, false); Eval(11072, o is short?[], false); Eval(11073, o is ushort, false); Eval(11074, o is ushort[], false); Eval(11075, o is ushort?, false); Eval(11076, o is ushort?[], false); Eval(11077, o is int, false); Eval(11078, o is int[], false); Eval(11079, o is int?, false); Eval(11080, o is int?[], false); Eval(11081, o is uint, false); Eval(11082, o is uint[], false); Eval(11083, o is uint?, false); Eval(11084, o is uint?[], false); Eval(11085, o is long, false); Eval(11086, o is long[], false); Eval(11087, o is long?, false); Eval(11088, o is long?[], false); Eval(11089, o is ulong, false); Eval(11090, o is ulong[], false); Eval(11091, o is ulong?, false); Eval(11092, o is ulong?[], false); Eval(11093, o is float, false); Eval(11094, o is float[], false); Eval(11095, o is float?, false); Eval(11096, o is float?[], false); Eval(11097, o is double, false); Eval(11098, o is double[], false); Eval(11099, o is double?, false); Eval(11100, o is double?[], false); Eval(11101, o is decimal, false); Eval(11102, o is decimal[], false); Eval(11103, o is decimal?, false); Eval(11104, o is decimal?[], false); Eval(11105, o is IntPtr, false); Eval(11106, o is IntPtr[], false); Eval(11107, o is IntPtr?, false); Eval(11108, o is IntPtr?[], false); Eval(11109, o is UIntPtr, false); Eval(11110, o is UIntPtr[], false); Eval(11111, o is UIntPtr?, false); Eval(11112, o is UIntPtr?[], false); Eval(11113, o is Guid, false); Eval(11114, o is Guid[], false); Eval(11115, o is Guid?, false); Eval(11116, o is Guid?[], false); Eval(11117, o is GCHandle, false); Eval(11118, o is GCHandle[], false); Eval(11119, o is GCHandle?, false); Eval(11120, o is GCHandle?[], false); Eval(11121, o is object, false); Eval(11122, o is object[], false); Eval(11123, o is string, false); Eval(11124, o is string[], false); Eval(11125, o is ValueType, false); Eval(11126, o is ValueType[], false); Eval(11127, o is Array, false); Eval(11128, o is Array[], false); Eval(11129, o is Enum, false); Eval(11130, o is Enum[], false); Eval(11131, o is Delegate, false); Eval(11132, o is Delegate[], false); Eval(11133, o is MulticastDelegate, false); Eval(11134, o is MulticastDelegate[], false); Eval(11135, o is IEmpty, false); Eval(11136, o is IEmpty[], false); Eval(11137, o is INotEmpty, false); Eval(11138, o is INotEmpty[], false); Eval(11139, o is IEmptyGen<int>, false); Eval(11140, o is IEmptyGen<int>[], false); Eval(11141, o is INotEmptyGen<int>, false); Eval(11142, o is INotEmptyGen<int>[], false); Eval(11143, o is SimpleDelegate, false); Eval(11144, o is SimpleDelegate[], false); Eval(11145, o is GenericDelegate<int>, false); Eval(11146, o is GenericDelegate<int>[], false); Eval(11147, o is EmptyClass, false); Eval(11148, o is EmptyClass[], false); Eval(11149, o is NotEmptyClass, false); Eval(11150, o is NotEmptyClass[], false); Eval(11151, o is EmptyClassGen<int>, false); Eval(11152, o is EmptyClassGen<int>[], false); Eval(11153, o is NotEmptyClassGen<Guid>, false); Eval(11154, o is NotEmptyClassGen<Guid>[], false); Eval(11155, o is NotEmptyClassConstrainedGen<object>, false); Eval(11156, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11157, o is NestedClass, false); Eval(11158, o is NestedClass[], false); Eval(11159, o is NestedClassGen<Decimal>, false); Eval(11160, o is NestedClassGen<Decimal>[], false); Eval(11161, o is ImplementOneInterfaceC, false); Eval(11162, o is ImplementOneInterfaceC[], false); Eval(11163, o is ImplementTwoInterfaceC, false); Eval(11164, o is ImplementTwoInterfaceC[], false); Eval(11165, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11166, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11167, o is ImplementTwoInterfaceGenC<int>, false); Eval(11168, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11169, o is ImplementAllInterfaceC<int>, false); Eval(11170, o is ImplementAllInterfaceC<int>[], false); Eval(11171, o is SealedClass, false); Eval(11172, o is SealedClass[], false); } } // end of test case 0019 private static void TestCase0020() { { char v = default(char); ValueType o = v; Eval(11173, o is EmptyStruct, false); Eval(11174, o is EmptyStruct[], false); Eval(11175, o is EmptyStruct?, false); Eval(11176, o is EmptyStruct?[], false); Eval(11177, o is NotEmptyStruct, false); Eval(11178, o is NotEmptyStruct[], false); Eval(11179, o is NotEmptyStruct?, false); Eval(11180, o is NotEmptyStruct?[], false); Eval(11181, o is EmptyStructGen<int>, false); Eval(11182, o is EmptyStructGen<int>[], false); Eval(11183, o is EmptyStructGen<int>?, false); Eval(11184, o is EmptyStructGen<int>?[], false); Eval(11185, o is NotEmptyStructGen<Guid>, false); Eval(11186, o is NotEmptyStructGen<Guid>[], false); Eval(11187, o is NotEmptyStructGen<Guid>?, false); Eval(11188, o is NotEmptyStructGen<Guid>?[], false); Eval(11189, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11190, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11191, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11192, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11193, o is NestedStruct, false); Eval(11194, o is NestedStruct[], false); Eval(11195, o is NestedStruct?, false); Eval(11196, o is NestedStruct?[], false); Eval(11197, o is NestedStructGen<Decimal>, false); Eval(11198, o is NestedStructGen<Decimal>[], false); Eval(11199, o is NestedStructGen<Decimal>?, false); Eval(11200, o is NestedStructGen<Decimal>?[], false); Eval(11201, o is ExplicitFieldOffsetStruct, false); Eval(11202, o is ExplicitFieldOffsetStruct[], false); Eval(11203, o is ExplicitFieldOffsetStruct?, false); Eval(11204, o is ExplicitFieldOffsetStruct?[], false); Eval(11213, o is MarshalAsStruct, false); Eval(11214, o is MarshalAsStruct[], false); Eval(11215, o is MarshalAsStruct?, false); Eval(11216, o is MarshalAsStruct?[], false); Eval(11217, o is ImplementOneInterface, false); Eval(11218, o is ImplementOneInterface[], false); Eval(11219, o is ImplementOneInterface?, false); Eval(11220, o is ImplementOneInterface?[], false); Eval(11221, o is ImplementTwoInterface, false); Eval(11222, o is ImplementTwoInterface[], false); Eval(11223, o is ImplementTwoInterface?, false); Eval(11224, o is ImplementTwoInterface?[], false); Eval(11225, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11226, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11227, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11228, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11229, o is ImplementTwoInterfaceGen<int>, false); Eval(11230, o is ImplementTwoInterfaceGen<int>[], false); Eval(11231, o is ImplementTwoInterfaceGen<int>?, false); Eval(11232, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11233, o is ImplementAllInterface<int>, false); Eval(11234, o is ImplementAllInterface<int>[], false); Eval(11235, o is ImplementAllInterface<int>?, false); Eval(11236, o is ImplementAllInterface<int>?[], false); Eval(11237, o is IntE, false); Eval(11238, o is IntE[], false); Eval(11239, o is IntE?, false); Eval(11240, o is IntE?[], false); Eval(11241, o is ByteE, false); Eval(11242, o is ByteE[], false); Eval(11243, o is ByteE?, false); Eval(11244, o is ByteE?[], false); Eval(11245, o is LongE, false); Eval(11246, o is LongE[], false); Eval(11247, o is LongE?, false); Eval(11248, o is LongE?[], false); Eval(11249, o is char, true); Eval(11250, o is char[], false); Eval(11251, o is char?, true); Eval(11252, o is char?[], false); Eval(11253, o is bool, false); Eval(11254, o is bool[], false); Eval(11255, o is bool?, false); Eval(11256, o is bool?[], false); Eval(11257, o is byte, false); Eval(11258, o is byte[], false); Eval(11259, o is byte?, false); Eval(11260, o is byte?[], false); Eval(11261, o is sbyte, false); Eval(11262, o is sbyte[], false); Eval(11263, o is sbyte?, false); Eval(11264, o is sbyte?[], false); Eval(11265, o is short, false); Eval(11266, o is short[], false); Eval(11267, o is short?, false); Eval(11268, o is short?[], false); Eval(11269, o is ushort, false); Eval(11270, o is ushort[], false); Eval(11271, o is ushort?, false); Eval(11272, o is ushort?[], false); Eval(11273, o is int, false); Eval(11274, o is int[], false); Eval(11275, o is int?, false); Eval(11276, o is int?[], false); Eval(11277, o is uint, false); Eval(11278, o is uint[], false); Eval(11279, o is uint?, false); Eval(11280, o is uint?[], false); Eval(11281, o is long, false); Eval(11282, o is long[], false); Eval(11283, o is long?, false); Eval(11284, o is long?[], false); Eval(11285, o is ulong, false); Eval(11286, o is ulong[], false); Eval(11287, o is ulong?, false); Eval(11288, o is ulong?[], false); Eval(11289, o is float, false); Eval(11290, o is float[], false); Eval(11291, o is float?, false); Eval(11292, o is float?[], false); Eval(11293, o is double, false); Eval(11294, o is double[], false); Eval(11295, o is double?, false); Eval(11296, o is double?[], false); Eval(11297, o is decimal, false); Eval(11298, o is decimal[], false); Eval(11299, o is decimal?, false); Eval(11300, o is decimal?[], false); Eval(11301, o is IntPtr, false); Eval(11302, o is IntPtr[], false); Eval(11303, o is IntPtr?, false); Eval(11304, o is IntPtr?[], false); Eval(11305, o is UIntPtr, false); Eval(11306, o is UIntPtr[], false); Eval(11307, o is UIntPtr?, false); Eval(11308, o is UIntPtr?[], false); Eval(11309, o is Guid, false); Eval(11310, o is Guid[], false); Eval(11311, o is Guid?, false); Eval(11312, o is Guid?[], false); Eval(11313, o is GCHandle, false); Eval(11314, o is GCHandle[], false); Eval(11315, o is GCHandle?, false); Eval(11316, o is GCHandle?[], false); Eval(11317, o is object, true); Eval(11318, o is object[], false); Eval(11319, o is string, false); Eval(11320, o is string[], false); Eval(11321, o is ValueType, true); Eval(11322, o is ValueType[], false); Eval(11323, o is Array, false); Eval(11324, o is Array[], false); Eval(11325, o is Enum, false); Eval(11326, o is Enum[], false); Eval(11327, o is Delegate, false); Eval(11328, o is Delegate[], false); Eval(11329, o is MulticastDelegate, false); Eval(11330, o is MulticastDelegate[], false); Eval(11331, o is IEmpty, false); Eval(11332, o is IEmpty[], false); Eval(11333, o is INotEmpty, false); Eval(11334, o is INotEmpty[], false); Eval(11335, o is IEmptyGen<int>, false); Eval(11336, o is IEmptyGen<int>[], false); Eval(11337, o is INotEmptyGen<int>, false); Eval(11338, o is INotEmptyGen<int>[], false); Eval(11339, o is SimpleDelegate, false); Eval(11340, o is SimpleDelegate[], false); Eval(11341, o is GenericDelegate<int>, false); Eval(11342, o is GenericDelegate<int>[], false); Eval(11343, o is EmptyClass, false); Eval(11344, o is EmptyClass[], false); Eval(11345, o is NotEmptyClass, false); Eval(11346, o is NotEmptyClass[], false); Eval(11347, o is EmptyClassGen<int>, false); Eval(11348, o is EmptyClassGen<int>[], false); Eval(11349, o is NotEmptyClassGen<Guid>, false); Eval(11350, o is NotEmptyClassGen<Guid>[], false); Eval(11351, o is NotEmptyClassConstrainedGen<object>, false); Eval(11352, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11353, o is NestedClass, false); Eval(11354, o is NestedClass[], false); Eval(11355, o is NestedClassGen<Decimal>, false); Eval(11356, o is NestedClassGen<Decimal>[], false); Eval(11357, o is ImplementOneInterfaceC, false); Eval(11358, o is ImplementOneInterfaceC[], false); Eval(11359, o is ImplementTwoInterfaceC, false); Eval(11360, o is ImplementTwoInterfaceC[], false); Eval(11361, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11362, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11363, o is ImplementTwoInterfaceGenC<int>, false); Eval(11364, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11365, o is ImplementAllInterfaceC<int>, false); Eval(11366, o is ImplementAllInterfaceC<int>[], false); Eval(11367, o is SealedClass, false); Eval(11368, o is SealedClass[], false); } { char? v = default(char); ValueType o = v; Eval(11369, o is EmptyStruct, false); Eval(11370, o is EmptyStruct[], false); Eval(11371, o is EmptyStruct?, false); Eval(11372, o is EmptyStruct?[], false); Eval(11373, o is NotEmptyStruct, false); Eval(11374, o is NotEmptyStruct[], false); Eval(11375, o is NotEmptyStruct?, false); Eval(11376, o is NotEmptyStruct?[], false); Eval(11377, o is EmptyStructGen<int>, false); Eval(11378, o is EmptyStructGen<int>[], false); Eval(11379, o is EmptyStructGen<int>?, false); Eval(11380, o is EmptyStructGen<int>?[], false); Eval(11381, o is NotEmptyStructGen<Guid>, false); Eval(11382, o is NotEmptyStructGen<Guid>[], false); Eval(11383, o is NotEmptyStructGen<Guid>?, false); Eval(11384, o is NotEmptyStructGen<Guid>?[], false); Eval(11385, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11386, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11387, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11388, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11389, o is NestedStruct, false); Eval(11390, o is NestedStruct[], false); Eval(11391, o is NestedStruct?, false); Eval(11392, o is NestedStruct?[], false); Eval(11393, o is NestedStructGen<Decimal>, false); Eval(11394, o is NestedStructGen<Decimal>[], false); Eval(11395, o is NestedStructGen<Decimal>?, false); Eval(11396, o is NestedStructGen<Decimal>?[], false); Eval(11397, o is ExplicitFieldOffsetStruct, false); Eval(11398, o is ExplicitFieldOffsetStruct[], false); Eval(11399, o is ExplicitFieldOffsetStruct?, false); Eval(11400, o is ExplicitFieldOffsetStruct?[], false); Eval(11409, o is MarshalAsStruct, false); Eval(11410, o is MarshalAsStruct[], false); Eval(11411, o is MarshalAsStruct?, false); Eval(11412, o is MarshalAsStruct?[], false); Eval(11413, o is ImplementOneInterface, false); Eval(11414, o is ImplementOneInterface[], false); Eval(11415, o is ImplementOneInterface?, false); Eval(11416, o is ImplementOneInterface?[], false); Eval(11417, o is ImplementTwoInterface, false); Eval(11418, o is ImplementTwoInterface[], false); Eval(11419, o is ImplementTwoInterface?, false); Eval(11420, o is ImplementTwoInterface?[], false); Eval(11421, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11422, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11423, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11424, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11425, o is ImplementTwoInterfaceGen<int>, false); Eval(11426, o is ImplementTwoInterfaceGen<int>[], false); Eval(11427, o is ImplementTwoInterfaceGen<int>?, false); Eval(11428, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11429, o is ImplementAllInterface<int>, false); Eval(11430, o is ImplementAllInterface<int>[], false); Eval(11431, o is ImplementAllInterface<int>?, false); Eval(11432, o is ImplementAllInterface<int>?[], false); Eval(11433, o is IntE, false); Eval(11434, o is IntE[], false); Eval(11435, o is IntE?, false); Eval(11436, o is IntE?[], false); Eval(11437, o is ByteE, false); Eval(11438, o is ByteE[], false); Eval(11439, o is ByteE?, false); Eval(11440, o is ByteE?[], false); Eval(11441, o is LongE, false); Eval(11442, o is LongE[], false); Eval(11443, o is LongE?, false); Eval(11444, o is LongE?[], false); Eval(11445, o is char, true); Eval(11446, o is char[], false); Eval(11447, o is char?, true); Eval(11448, o is char?[], false); Eval(11449, o is bool, false); Eval(11450, o is bool[], false); Eval(11451, o is bool?, false); Eval(11452, o is bool?[], false); Eval(11453, o is byte, false); Eval(11454, o is byte[], false); Eval(11455, o is byte?, false); Eval(11456, o is byte?[], false); Eval(11457, o is sbyte, false); Eval(11458, o is sbyte[], false); Eval(11459, o is sbyte?, false); Eval(11460, o is sbyte?[], false); Eval(11461, o is short, false); Eval(11462, o is short[], false); Eval(11463, o is short?, false); Eval(11464, o is short?[], false); Eval(11465, o is ushort, false); Eval(11466, o is ushort[], false); Eval(11467, o is ushort?, false); Eval(11468, o is ushort?[], false); Eval(11469, o is int, false); Eval(11470, o is int[], false); Eval(11471, o is int?, false); Eval(11472, o is int?[], false); Eval(11473, o is uint, false); Eval(11474, o is uint[], false); Eval(11475, o is uint?, false); Eval(11476, o is uint?[], false); Eval(11477, o is long, false); Eval(11478, o is long[], false); Eval(11479, o is long?, false); Eval(11480, o is long?[], false); Eval(11481, o is ulong, false); Eval(11482, o is ulong[], false); Eval(11483, o is ulong?, false); Eval(11484, o is ulong?[], false); Eval(11485, o is float, false); Eval(11486, o is float[], false); Eval(11487, o is float?, false); Eval(11488, o is float?[], false); Eval(11489, o is double, false); Eval(11490, o is double[], false); Eval(11491, o is double?, false); Eval(11492, o is double?[], false); Eval(11493, o is decimal, false); Eval(11494, o is decimal[], false); Eval(11495, o is decimal?, false); Eval(11496, o is decimal?[], false); Eval(11497, o is IntPtr, false); Eval(11498, o is IntPtr[], false); Eval(11499, o is IntPtr?, false); Eval(11500, o is IntPtr?[], false); Eval(11501, o is UIntPtr, false); Eval(11502, o is UIntPtr[], false); Eval(11503, o is UIntPtr?, false); Eval(11504, o is UIntPtr?[], false); Eval(11505, o is Guid, false); Eval(11506, o is Guid[], false); Eval(11507, o is Guid?, false); Eval(11508, o is Guid?[], false); Eval(11509, o is GCHandle, false); Eval(11510, o is GCHandle[], false); Eval(11511, o is GCHandle?, false); Eval(11512, o is GCHandle?[], false); Eval(11513, o is object, true); Eval(11514, o is object[], false); Eval(11515, o is string, false); Eval(11516, o is string[], false); Eval(11517, o is ValueType, true); Eval(11518, o is ValueType[], false); Eval(11519, o is Array, false); Eval(11520, o is Array[], false); Eval(11521, o is Enum, false); Eval(11522, o is Enum[], false); Eval(11523, o is Delegate, false); Eval(11524, o is Delegate[], false); Eval(11525, o is MulticastDelegate, false); Eval(11526, o is MulticastDelegate[], false); Eval(11527, o is IEmpty, false); Eval(11528, o is IEmpty[], false); Eval(11529, o is INotEmpty, false); Eval(11530, o is INotEmpty[], false); Eval(11531, o is IEmptyGen<int>, false); Eval(11532, o is IEmptyGen<int>[], false); Eval(11533, o is INotEmptyGen<int>, false); Eval(11534, o is INotEmptyGen<int>[], false); Eval(11535, o is SimpleDelegate, false); Eval(11536, o is SimpleDelegate[], false); Eval(11537, o is GenericDelegate<int>, false); Eval(11538, o is GenericDelegate<int>[], false); Eval(11539, o is EmptyClass, false); Eval(11540, o is EmptyClass[], false); Eval(11541, o is NotEmptyClass, false); Eval(11542, o is NotEmptyClass[], false); Eval(11543, o is EmptyClassGen<int>, false); Eval(11544, o is EmptyClassGen<int>[], false); Eval(11545, o is NotEmptyClassGen<Guid>, false); Eval(11546, o is NotEmptyClassGen<Guid>[], false); Eval(11547, o is NotEmptyClassConstrainedGen<object>, false); Eval(11548, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11549, o is NestedClass, false); Eval(11550, o is NestedClass[], false); Eval(11551, o is NestedClassGen<Decimal>, false); Eval(11552, o is NestedClassGen<Decimal>[], false); Eval(11553, o is ImplementOneInterfaceC, false); Eval(11554, o is ImplementOneInterfaceC[], false); Eval(11555, o is ImplementTwoInterfaceC, false); Eval(11556, o is ImplementTwoInterfaceC[], false); Eval(11557, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11558, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11559, o is ImplementTwoInterfaceGenC<int>, false); Eval(11560, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11561, o is ImplementAllInterfaceC<int>, false); Eval(11562, o is ImplementAllInterfaceC<int>[], false); Eval(11563, o is SealedClass, false); Eval(11564, o is SealedClass[], false); } { char? v = default(char?); ValueType o = v; Eval(11565, o is EmptyStruct, false); Eval(11566, o is EmptyStruct[], false); Eval(11567, o is EmptyStruct?, false); Eval(11568, o is EmptyStruct?[], false); Eval(11569, o is NotEmptyStruct, false); Eval(11570, o is NotEmptyStruct[], false); Eval(11571, o is NotEmptyStruct?, false); Eval(11572, o is NotEmptyStruct?[], false); Eval(11573, o is EmptyStructGen<int>, false); Eval(11574, o is EmptyStructGen<int>[], false); Eval(11575, o is EmptyStructGen<int>?, false); Eval(11576, o is EmptyStructGen<int>?[], false); Eval(11577, o is NotEmptyStructGen<Guid>, false); Eval(11578, o is NotEmptyStructGen<Guid>[], false); Eval(11579, o is NotEmptyStructGen<Guid>?, false); Eval(11580, o is NotEmptyStructGen<Guid>?[], false); Eval(11581, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11582, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11583, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11584, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11585, o is NestedStruct, false); Eval(11586, o is NestedStruct[], false); Eval(11587, o is NestedStruct?, false); Eval(11588, o is NestedStruct?[], false); Eval(11589, o is NestedStructGen<Decimal>, false); Eval(11590, o is NestedStructGen<Decimal>[], false); Eval(11591, o is NestedStructGen<Decimal>?, false); Eval(11592, o is NestedStructGen<Decimal>?[], false); Eval(11593, o is ExplicitFieldOffsetStruct, false); Eval(11594, o is ExplicitFieldOffsetStruct[], false); Eval(11595, o is ExplicitFieldOffsetStruct?, false); Eval(11596, o is ExplicitFieldOffsetStruct?[], false); Eval(11605, o is MarshalAsStruct, false); Eval(11606, o is MarshalAsStruct[], false); Eval(11607, o is MarshalAsStruct?, false); Eval(11608, o is MarshalAsStruct?[], false); Eval(11609, o is ImplementOneInterface, false); Eval(11610, o is ImplementOneInterface[], false); Eval(11611, o is ImplementOneInterface?, false); Eval(11612, o is ImplementOneInterface?[], false); Eval(11613, o is ImplementTwoInterface, false); Eval(11614, o is ImplementTwoInterface[], false); Eval(11615, o is ImplementTwoInterface?, false); Eval(11616, o is ImplementTwoInterface?[], false); Eval(11617, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11618, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11619, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11620, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11621, o is ImplementTwoInterfaceGen<int>, false); Eval(11622, o is ImplementTwoInterfaceGen<int>[], false); Eval(11623, o is ImplementTwoInterfaceGen<int>?, false); Eval(11624, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11625, o is ImplementAllInterface<int>, false); Eval(11626, o is ImplementAllInterface<int>[], false); Eval(11627, o is ImplementAllInterface<int>?, false); Eval(11628, o is ImplementAllInterface<int>?[], false); Eval(11629, o is IntE, false); Eval(11630, o is IntE[], false); Eval(11631, o is IntE?, false); Eval(11632, o is IntE?[], false); Eval(11633, o is ByteE, false); Eval(11634, o is ByteE[], false); Eval(11635, o is ByteE?, false); Eval(11636, o is ByteE?[], false); Eval(11637, o is LongE, false); Eval(11638, o is LongE[], false); Eval(11639, o is LongE?, false); Eval(11640, o is LongE?[], false); Eval(11641, o is char, false); Eval(11642, o is char[], false); Eval(11643, o is char?, false); Eval(11644, o is char?[], false); Eval(11645, o is bool, false); Eval(11646, o is bool[], false); Eval(11647, o is bool?, false); Eval(11648, o is bool?[], false); Eval(11649, o is byte, false); Eval(11650, o is byte[], false); Eval(11651, o is byte?, false); Eval(11652, o is byte?[], false); Eval(11653, o is sbyte, false); Eval(11654, o is sbyte[], false); Eval(11655, o is sbyte?, false); Eval(11656, o is sbyte?[], false); Eval(11657, o is short, false); Eval(11658, o is short[], false); Eval(11659, o is short?, false); Eval(11660, o is short?[], false); Eval(11661, o is ushort, false); Eval(11662, o is ushort[], false); Eval(11663, o is ushort?, false); Eval(11664, o is ushort?[], false); Eval(11665, o is int, false); Eval(11666, o is int[], false); Eval(11667, o is int?, false); Eval(11668, o is int?[], false); Eval(11669, o is uint, false); Eval(11670, o is uint[], false); Eval(11671, o is uint?, false); Eval(11672, o is uint?[], false); Eval(11673, o is long, false); Eval(11674, o is long[], false); Eval(11675, o is long?, false); Eval(11676, o is long?[], false); Eval(11677, o is ulong, false); Eval(11678, o is ulong[], false); Eval(11679, o is ulong?, false); Eval(11680, o is ulong?[], false); Eval(11681, o is float, false); Eval(11682, o is float[], false); Eval(11683, o is float?, false); Eval(11684, o is float?[], false); Eval(11685, o is double, false); Eval(11686, o is double[], false); Eval(11687, o is double?, false); Eval(11688, o is double?[], false); Eval(11689, o is decimal, false); Eval(11690, o is decimal[], false); Eval(11691, o is decimal?, false); Eval(11692, o is decimal?[], false); Eval(11693, o is IntPtr, false); Eval(11694, o is IntPtr[], false); Eval(11695, o is IntPtr?, false); Eval(11696, o is IntPtr?[], false); Eval(11697, o is UIntPtr, false); Eval(11698, o is UIntPtr[], false); Eval(11699, o is UIntPtr?, false); Eval(11700, o is UIntPtr?[], false); Eval(11701, o is Guid, false); Eval(11702, o is Guid[], false); Eval(11703, o is Guid?, false); Eval(11704, o is Guid?[], false); Eval(11705, o is GCHandle, false); Eval(11706, o is GCHandle[], false); Eval(11707, o is GCHandle?, false); Eval(11708, o is GCHandle?[], false); Eval(11709, o is object, false); Eval(11710, o is object[], false); Eval(11711, o is string, false); Eval(11712, o is string[], false); Eval(11713, o is ValueType, false); Eval(11714, o is ValueType[], false); Eval(11715, o is Array, false); Eval(11716, o is Array[], false); Eval(11717, o is Enum, false); Eval(11718, o is Enum[], false); Eval(11719, o is Delegate, false); Eval(11720, o is Delegate[], false); Eval(11721, o is MulticastDelegate, false); Eval(11722, o is MulticastDelegate[], false); Eval(11723, o is IEmpty, false); Eval(11724, o is IEmpty[], false); Eval(11725, o is INotEmpty, false); Eval(11726, o is INotEmpty[], false); Eval(11727, o is IEmptyGen<int>, false); Eval(11728, o is IEmptyGen<int>[], false); Eval(11729, o is INotEmptyGen<int>, false); Eval(11730, o is INotEmptyGen<int>[], false); Eval(11731, o is SimpleDelegate, false); Eval(11732, o is SimpleDelegate[], false); Eval(11733, o is GenericDelegate<int>, false); Eval(11734, o is GenericDelegate<int>[], false); Eval(11735, o is EmptyClass, false); Eval(11736, o is EmptyClass[], false); Eval(11737, o is NotEmptyClass, false); Eval(11738, o is NotEmptyClass[], false); Eval(11739, o is EmptyClassGen<int>, false); Eval(11740, o is EmptyClassGen<int>[], false); Eval(11741, o is NotEmptyClassGen<Guid>, false); Eval(11742, o is NotEmptyClassGen<Guid>[], false); Eval(11743, o is NotEmptyClassConstrainedGen<object>, false); Eval(11744, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11745, o is NestedClass, false); Eval(11746, o is NestedClass[], false); Eval(11747, o is NestedClassGen<Decimal>, false); Eval(11748, o is NestedClassGen<Decimal>[], false); Eval(11749, o is ImplementOneInterfaceC, false); Eval(11750, o is ImplementOneInterfaceC[], false); Eval(11751, o is ImplementTwoInterfaceC, false); Eval(11752, o is ImplementTwoInterfaceC[], false); Eval(11753, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11754, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11755, o is ImplementTwoInterfaceGenC<int>, false); Eval(11756, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11757, o is ImplementAllInterfaceC<int>, false); Eval(11758, o is ImplementAllInterfaceC<int>[], false); Eval(11759, o is SealedClass, false); Eval(11760, o is SealedClass[], false); } } // end of test case 0020 private static void TestCase0021() { { bool v = default(bool); ValueType o = v; Eval(11761, o is EmptyStruct, false); Eval(11762, o is EmptyStruct[], false); Eval(11763, o is EmptyStruct?, false); Eval(11764, o is EmptyStruct?[], false); Eval(11765, o is NotEmptyStruct, false); Eval(11766, o is NotEmptyStruct[], false); Eval(11767, o is NotEmptyStruct?, false); Eval(11768, o is NotEmptyStruct?[], false); Eval(11769, o is EmptyStructGen<int>, false); Eval(11770, o is EmptyStructGen<int>[], false); Eval(11771, o is EmptyStructGen<int>?, false); Eval(11772, o is EmptyStructGen<int>?[], false); Eval(11773, o is NotEmptyStructGen<Guid>, false); Eval(11774, o is NotEmptyStructGen<Guid>[], false); Eval(11775, o is NotEmptyStructGen<Guid>?, false); Eval(11776, o is NotEmptyStructGen<Guid>?[], false); Eval(11777, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11778, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11779, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11780, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11781, o is NestedStruct, false); Eval(11782, o is NestedStruct[], false); Eval(11783, o is NestedStruct?, false); Eval(11784, o is NestedStruct?[], false); Eval(11785, o is NestedStructGen<Decimal>, false); Eval(11786, o is NestedStructGen<Decimal>[], false); Eval(11787, o is NestedStructGen<Decimal>?, false); Eval(11788, o is NestedStructGen<Decimal>?[], false); Eval(11789, o is ExplicitFieldOffsetStruct, false); Eval(11790, o is ExplicitFieldOffsetStruct[], false); Eval(11791, o is ExplicitFieldOffsetStruct?, false); Eval(11792, o is ExplicitFieldOffsetStruct?[], false); Eval(11801, o is MarshalAsStruct, false); Eval(11802, o is MarshalAsStruct[], false); Eval(11803, o is MarshalAsStruct?, false); Eval(11804, o is MarshalAsStruct?[], false); Eval(11805, o is ImplementOneInterface, false); Eval(11806, o is ImplementOneInterface[], false); Eval(11807, o is ImplementOneInterface?, false); Eval(11808, o is ImplementOneInterface?[], false); Eval(11809, o is ImplementTwoInterface, false); Eval(11810, o is ImplementTwoInterface[], false); Eval(11811, o is ImplementTwoInterface?, false); Eval(11812, o is ImplementTwoInterface?[], false); Eval(11813, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(11814, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(11815, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(11816, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(11817, o is ImplementTwoInterfaceGen<int>, false); Eval(11818, o is ImplementTwoInterfaceGen<int>[], false); Eval(11819, o is ImplementTwoInterfaceGen<int>?, false); Eval(11820, o is ImplementTwoInterfaceGen<int>?[], false); Eval(11821, o is ImplementAllInterface<int>, false); Eval(11822, o is ImplementAllInterface<int>[], false); Eval(11823, o is ImplementAllInterface<int>?, false); Eval(11824, o is ImplementAllInterface<int>?[], false); Eval(11825, o is IntE, false); Eval(11826, o is IntE[], false); Eval(11827, o is IntE?, false); Eval(11828, o is IntE?[], false); Eval(11829, o is ByteE, false); Eval(11830, o is ByteE[], false); Eval(11831, o is ByteE?, false); Eval(11832, o is ByteE?[], false); Eval(11833, o is LongE, false); Eval(11834, o is LongE[], false); Eval(11835, o is LongE?, false); Eval(11836, o is LongE?[], false); Eval(11837, o is char, false); Eval(11838, o is char[], false); Eval(11839, o is char?, false); Eval(11840, o is char?[], false); Eval(11841, o is bool, true); Eval(11842, o is bool[], false); Eval(11843, o is bool?, true); Eval(11844, o is bool?[], false); Eval(11845, o is byte, false); Eval(11846, o is byte[], false); Eval(11847, o is byte?, false); Eval(11848, o is byte?[], false); Eval(11849, o is sbyte, false); Eval(11850, o is sbyte[], false); Eval(11851, o is sbyte?, false); Eval(11852, o is sbyte?[], false); Eval(11853, o is short, false); Eval(11854, o is short[], false); Eval(11855, o is short?, false); Eval(11856, o is short?[], false); Eval(11857, o is ushort, false); Eval(11858, o is ushort[], false); Eval(11859, o is ushort?, false); Eval(11860, o is ushort?[], false); Eval(11861, o is int, false); Eval(11862, o is int[], false); Eval(11863, o is int?, false); Eval(11864, o is int?[], false); Eval(11865, o is uint, false); Eval(11866, o is uint[], false); Eval(11867, o is uint?, false); Eval(11868, o is uint?[], false); Eval(11869, o is long, false); Eval(11870, o is long[], false); Eval(11871, o is long?, false); Eval(11872, o is long?[], false); Eval(11873, o is ulong, false); Eval(11874, o is ulong[], false); Eval(11875, o is ulong?, false); Eval(11876, o is ulong?[], false); Eval(11877, o is float, false); Eval(11878, o is float[], false); Eval(11879, o is float?, false); Eval(11880, o is float?[], false); Eval(11881, o is double, false); Eval(11882, o is double[], false); Eval(11883, o is double?, false); Eval(11884, o is double?[], false); Eval(11885, o is decimal, false); Eval(11886, o is decimal[], false); Eval(11887, o is decimal?, false); Eval(11888, o is decimal?[], false); Eval(11889, o is IntPtr, false); Eval(11890, o is IntPtr[], false); Eval(11891, o is IntPtr?, false); Eval(11892, o is IntPtr?[], false); Eval(11893, o is UIntPtr, false); Eval(11894, o is UIntPtr[], false); Eval(11895, o is UIntPtr?, false); Eval(11896, o is UIntPtr?[], false); Eval(11897, o is Guid, false); Eval(11898, o is Guid[], false); Eval(11899, o is Guid?, false); Eval(11900, o is Guid?[], false); Eval(11901, o is GCHandle, false); Eval(11902, o is GCHandle[], false); Eval(11903, o is GCHandle?, false); Eval(11904, o is GCHandle?[], false); Eval(11905, o is object, true); Eval(11906, o is object[], false); Eval(11907, o is string, false); Eval(11908, o is string[], false); Eval(11909, o is ValueType, true); Eval(11910, o is ValueType[], false); Eval(11911, o is Array, false); Eval(11912, o is Array[], false); Eval(11913, o is Enum, false); Eval(11914, o is Enum[], false); Eval(11915, o is Delegate, false); Eval(11916, o is Delegate[], false); Eval(11917, o is MulticastDelegate, false); Eval(11918, o is MulticastDelegate[], false); Eval(11919, o is IEmpty, false); Eval(11920, o is IEmpty[], false); Eval(11921, o is INotEmpty, false); Eval(11922, o is INotEmpty[], false); Eval(11923, o is IEmptyGen<int>, false); Eval(11924, o is IEmptyGen<int>[], false); Eval(11925, o is INotEmptyGen<int>, false); Eval(11926, o is INotEmptyGen<int>[], false); Eval(11927, o is SimpleDelegate, false); Eval(11928, o is SimpleDelegate[], false); Eval(11929, o is GenericDelegate<int>, false); Eval(11930, o is GenericDelegate<int>[], false); Eval(11931, o is EmptyClass, false); Eval(11932, o is EmptyClass[], false); Eval(11933, o is NotEmptyClass, false); Eval(11934, o is NotEmptyClass[], false); Eval(11935, o is EmptyClassGen<int>, false); Eval(11936, o is EmptyClassGen<int>[], false); Eval(11937, o is NotEmptyClassGen<Guid>, false); Eval(11938, o is NotEmptyClassGen<Guid>[], false); Eval(11939, o is NotEmptyClassConstrainedGen<object>, false); Eval(11940, o is NotEmptyClassConstrainedGen<object>[], false); Eval(11941, o is NestedClass, false); Eval(11942, o is NestedClass[], false); Eval(11943, o is NestedClassGen<Decimal>, false); Eval(11944, o is NestedClassGen<Decimal>[], false); Eval(11945, o is ImplementOneInterfaceC, false); Eval(11946, o is ImplementOneInterfaceC[], false); Eval(11947, o is ImplementTwoInterfaceC, false); Eval(11948, o is ImplementTwoInterfaceC[], false); Eval(11949, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(11950, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(11951, o is ImplementTwoInterfaceGenC<int>, false); Eval(11952, o is ImplementTwoInterfaceGenC<int>[], false); Eval(11953, o is ImplementAllInterfaceC<int>, false); Eval(11954, o is ImplementAllInterfaceC<int>[], false); Eval(11955, o is SealedClass, false); Eval(11956, o is SealedClass[], false); } { bool? v = default(bool); ValueType o = v; Eval(11957, o is EmptyStruct, false); Eval(11958, o is EmptyStruct[], false); Eval(11959, o is EmptyStruct?, false); Eval(11960, o is EmptyStruct?[], false); Eval(11961, o is NotEmptyStruct, false); Eval(11962, o is NotEmptyStruct[], false); Eval(11963, o is NotEmptyStruct?, false); Eval(11964, o is NotEmptyStruct?[], false); Eval(11965, o is EmptyStructGen<int>, false); Eval(11966, o is EmptyStructGen<int>[], false); Eval(11967, o is EmptyStructGen<int>?, false); Eval(11968, o is EmptyStructGen<int>?[], false); Eval(11969, o is NotEmptyStructGen<Guid>, false); Eval(11970, o is NotEmptyStructGen<Guid>[], false); Eval(11971, o is NotEmptyStructGen<Guid>?, false); Eval(11972, o is NotEmptyStructGen<Guid>?[], false); Eval(11973, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(11974, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(11975, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(11976, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(11977, o is NestedStruct, false); Eval(11978, o is NestedStruct[], false); Eval(11979, o is NestedStruct?, false); Eval(11980, o is NestedStruct?[], false); Eval(11981, o is NestedStructGen<Decimal>, false); Eval(11982, o is NestedStructGen<Decimal>[], false); Eval(11983, o is NestedStructGen<Decimal>?, false); Eval(11984, o is NestedStructGen<Decimal>?[], false); Eval(11985, o is ExplicitFieldOffsetStruct, false); Eval(11986, o is ExplicitFieldOffsetStruct[], false); Eval(11987, o is ExplicitFieldOffsetStruct?, false); Eval(11988, o is ExplicitFieldOffsetStruct?[], false); Eval(11997, o is MarshalAsStruct, false); Eval(11998, o is MarshalAsStruct[], false); Eval(11999, o is MarshalAsStruct?, false); Eval(12000, o is MarshalAsStruct?[], false); Eval(12001, o is ImplementOneInterface, false); Eval(12002, o is ImplementOneInterface[], false); Eval(12003, o is ImplementOneInterface?, false); Eval(12004, o is ImplementOneInterface?[], false); Eval(12005, o is ImplementTwoInterface, false); Eval(12006, o is ImplementTwoInterface[], false); Eval(12007, o is ImplementTwoInterface?, false); Eval(12008, o is ImplementTwoInterface?[], false); Eval(12009, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12010, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12011, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12012, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12013, o is ImplementTwoInterfaceGen<int>, false); Eval(12014, o is ImplementTwoInterfaceGen<int>[], false); Eval(12015, o is ImplementTwoInterfaceGen<int>?, false); Eval(12016, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12017, o is ImplementAllInterface<int>, false); Eval(12018, o is ImplementAllInterface<int>[], false); Eval(12019, o is ImplementAllInterface<int>?, false); Eval(12020, o is ImplementAllInterface<int>?[], false); Eval(12021, o is IntE, false); Eval(12022, o is IntE[], false); Eval(12023, o is IntE?, false); Eval(12024, o is IntE?[], false); Eval(12025, o is ByteE, false); Eval(12026, o is ByteE[], false); Eval(12027, o is ByteE?, false); Eval(12028, o is ByteE?[], false); Eval(12029, o is LongE, false); Eval(12030, o is LongE[], false); Eval(12031, o is LongE?, false); Eval(12032, o is LongE?[], false); Eval(12033, o is char, false); Eval(12034, o is char[], false); Eval(12035, o is char?, false); Eval(12036, o is char?[], false); Eval(12037, o is bool, true); Eval(12038, o is bool[], false); Eval(12039, o is bool?, true); Eval(12040, o is bool?[], false); Eval(12041, o is byte, false); Eval(12042, o is byte[], false); Eval(12043, o is byte?, false); Eval(12044, o is byte?[], false); Eval(12045, o is sbyte, false); Eval(12046, o is sbyte[], false); Eval(12047, o is sbyte?, false); Eval(12048, o is sbyte?[], false); Eval(12049, o is short, false); Eval(12050, o is short[], false); Eval(12051, o is short?, false); Eval(12052, o is short?[], false); Eval(12053, o is ushort, false); Eval(12054, o is ushort[], false); Eval(12055, o is ushort?, false); Eval(12056, o is ushort?[], false); Eval(12057, o is int, false); Eval(12058, o is int[], false); Eval(12059, o is int?, false); Eval(12060, o is int?[], false); Eval(12061, o is uint, false); Eval(12062, o is uint[], false); Eval(12063, o is uint?, false); Eval(12064, o is uint?[], false); Eval(12065, o is long, false); Eval(12066, o is long[], false); Eval(12067, o is long?, false); Eval(12068, o is long?[], false); Eval(12069, o is ulong, false); Eval(12070, o is ulong[], false); Eval(12071, o is ulong?, false); Eval(12072, o is ulong?[], false); Eval(12073, o is float, false); Eval(12074, o is float[], false); Eval(12075, o is float?, false); Eval(12076, o is float?[], false); Eval(12077, o is double, false); Eval(12078, o is double[], false); Eval(12079, o is double?, false); Eval(12080, o is double?[], false); Eval(12081, o is decimal, false); Eval(12082, o is decimal[], false); Eval(12083, o is decimal?, false); Eval(12084, o is decimal?[], false); Eval(12085, o is IntPtr, false); Eval(12086, o is IntPtr[], false); Eval(12087, o is IntPtr?, false); Eval(12088, o is IntPtr?[], false); Eval(12089, o is UIntPtr, false); Eval(12090, o is UIntPtr[], false); Eval(12091, o is UIntPtr?, false); Eval(12092, o is UIntPtr?[], false); Eval(12093, o is Guid, false); Eval(12094, o is Guid[], false); Eval(12095, o is Guid?, false); Eval(12096, o is Guid?[], false); Eval(12097, o is GCHandle, false); Eval(12098, o is GCHandle[], false); Eval(12099, o is GCHandle?, false); Eval(12100, o is GCHandle?[], false); Eval(12101, o is object, true); Eval(12102, o is object[], false); Eval(12103, o is string, false); Eval(12104, o is string[], false); Eval(12105, o is ValueType, true); Eval(12106, o is ValueType[], false); Eval(12107, o is Array, false); Eval(12108, o is Array[], false); Eval(12109, o is Enum, false); Eval(12110, o is Enum[], false); Eval(12111, o is Delegate, false); Eval(12112, o is Delegate[], false); Eval(12113, o is MulticastDelegate, false); Eval(12114, o is MulticastDelegate[], false); Eval(12115, o is IEmpty, false); Eval(12116, o is IEmpty[], false); Eval(12117, o is INotEmpty, false); Eval(12118, o is INotEmpty[], false); Eval(12119, o is IEmptyGen<int>, false); Eval(12120, o is IEmptyGen<int>[], false); Eval(12121, o is INotEmptyGen<int>, false); Eval(12122, o is INotEmptyGen<int>[], false); Eval(12123, o is SimpleDelegate, false); Eval(12124, o is SimpleDelegate[], false); Eval(12125, o is GenericDelegate<int>, false); Eval(12126, o is GenericDelegate<int>[], false); Eval(12127, o is EmptyClass, false); Eval(12128, o is EmptyClass[], false); Eval(12129, o is NotEmptyClass, false); Eval(12130, o is NotEmptyClass[], false); Eval(12131, o is EmptyClassGen<int>, false); Eval(12132, o is EmptyClassGen<int>[], false); Eval(12133, o is NotEmptyClassGen<Guid>, false); Eval(12134, o is NotEmptyClassGen<Guid>[], false); Eval(12135, o is NotEmptyClassConstrainedGen<object>, false); Eval(12136, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12137, o is NestedClass, false); Eval(12138, o is NestedClass[], false); Eval(12139, o is NestedClassGen<Decimal>, false); Eval(12140, o is NestedClassGen<Decimal>[], false); Eval(12141, o is ImplementOneInterfaceC, false); Eval(12142, o is ImplementOneInterfaceC[], false); Eval(12143, o is ImplementTwoInterfaceC, false); Eval(12144, o is ImplementTwoInterfaceC[], false); Eval(12145, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12146, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12147, o is ImplementTwoInterfaceGenC<int>, false); Eval(12148, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12149, o is ImplementAllInterfaceC<int>, false); Eval(12150, o is ImplementAllInterfaceC<int>[], false); Eval(12151, o is SealedClass, false); Eval(12152, o is SealedClass[], false); } { bool? v = default(bool?); ValueType o = v; Eval(12153, o is EmptyStruct, false); Eval(12154, o is EmptyStruct[], false); Eval(12155, o is EmptyStruct?, false); Eval(12156, o is EmptyStruct?[], false); Eval(12157, o is NotEmptyStruct, false); Eval(12158, o is NotEmptyStruct[], false); Eval(12159, o is NotEmptyStruct?, false); Eval(12160, o is NotEmptyStruct?[], false); Eval(12161, o is EmptyStructGen<int>, false); Eval(12162, o is EmptyStructGen<int>[], false); Eval(12163, o is EmptyStructGen<int>?, false); Eval(12164, o is EmptyStructGen<int>?[], false); Eval(12165, o is NotEmptyStructGen<Guid>, false); Eval(12166, o is NotEmptyStructGen<Guid>[], false); Eval(12167, o is NotEmptyStructGen<Guid>?, false); Eval(12168, o is NotEmptyStructGen<Guid>?[], false); Eval(12169, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12170, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12171, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12172, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12173, o is NestedStruct, false); Eval(12174, o is NestedStruct[], false); Eval(12175, o is NestedStruct?, false); Eval(12176, o is NestedStruct?[], false); Eval(12177, o is NestedStructGen<Decimal>, false); Eval(12178, o is NestedStructGen<Decimal>[], false); Eval(12179, o is NestedStructGen<Decimal>?, false); Eval(12180, o is NestedStructGen<Decimal>?[], false); Eval(12181, o is ExplicitFieldOffsetStruct, false); Eval(12182, o is ExplicitFieldOffsetStruct[], false); Eval(12183, o is ExplicitFieldOffsetStruct?, false); Eval(12184, o is ExplicitFieldOffsetStruct?[], false); Eval(12193, o is MarshalAsStruct, false); Eval(12194, o is MarshalAsStruct[], false); Eval(12195, o is MarshalAsStruct?, false); Eval(12196, o is MarshalAsStruct?[], false); Eval(12197, o is ImplementOneInterface, false); Eval(12198, o is ImplementOneInterface[], false); Eval(12199, o is ImplementOneInterface?, false); Eval(12200, o is ImplementOneInterface?[], false); Eval(12201, o is ImplementTwoInterface, false); Eval(12202, o is ImplementTwoInterface[], false); Eval(12203, o is ImplementTwoInterface?, false); Eval(12204, o is ImplementTwoInterface?[], false); Eval(12205, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12206, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12207, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12208, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12209, o is ImplementTwoInterfaceGen<int>, false); Eval(12210, o is ImplementTwoInterfaceGen<int>[], false); Eval(12211, o is ImplementTwoInterfaceGen<int>?, false); Eval(12212, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12213, o is ImplementAllInterface<int>, false); Eval(12214, o is ImplementAllInterface<int>[], false); Eval(12215, o is ImplementAllInterface<int>?, false); Eval(12216, o is ImplementAllInterface<int>?[], false); Eval(12217, o is IntE, false); Eval(12218, o is IntE[], false); Eval(12219, o is IntE?, false); Eval(12220, o is IntE?[], false); Eval(12221, o is ByteE, false); Eval(12222, o is ByteE[], false); Eval(12223, o is ByteE?, false); Eval(12224, o is ByteE?[], false); Eval(12225, o is LongE, false); Eval(12226, o is LongE[], false); Eval(12227, o is LongE?, false); Eval(12228, o is LongE?[], false); Eval(12229, o is char, false); Eval(12230, o is char[], false); Eval(12231, o is char?, false); Eval(12232, o is char?[], false); Eval(12233, o is bool, false); Eval(12234, o is bool[], false); Eval(12235, o is bool?, false); Eval(12236, o is bool?[], false); Eval(12237, o is byte, false); Eval(12238, o is byte[], false); Eval(12239, o is byte?, false); Eval(12240, o is byte?[], false); Eval(12241, o is sbyte, false); Eval(12242, o is sbyte[], false); Eval(12243, o is sbyte?, false); Eval(12244, o is sbyte?[], false); Eval(12245, o is short, false); Eval(12246, o is short[], false); Eval(12247, o is short?, false); Eval(12248, o is short?[], false); Eval(12249, o is ushort, false); Eval(12250, o is ushort[], false); Eval(12251, o is ushort?, false); Eval(12252, o is ushort?[], false); Eval(12253, o is int, false); Eval(12254, o is int[], false); Eval(12255, o is int?, false); Eval(12256, o is int?[], false); Eval(12257, o is uint, false); Eval(12258, o is uint[], false); Eval(12259, o is uint?, false); Eval(12260, o is uint?[], false); Eval(12261, o is long, false); Eval(12262, o is long[], false); Eval(12263, o is long?, false); Eval(12264, o is long?[], false); Eval(12265, o is ulong, false); Eval(12266, o is ulong[], false); Eval(12267, o is ulong?, false); Eval(12268, o is ulong?[], false); Eval(12269, o is float, false); Eval(12270, o is float[], false); Eval(12271, o is float?, false); Eval(12272, o is float?[], false); Eval(12273, o is double, false); Eval(12274, o is double[], false); Eval(12275, o is double?, false); Eval(12276, o is double?[], false); Eval(12277, o is decimal, false); Eval(12278, o is decimal[], false); Eval(12279, o is decimal?, false); Eval(12280, o is decimal?[], false); Eval(12281, o is IntPtr, false); Eval(12282, o is IntPtr[], false); Eval(12283, o is IntPtr?, false); Eval(12284, o is IntPtr?[], false); Eval(12285, o is UIntPtr, false); Eval(12286, o is UIntPtr[], false); Eval(12287, o is UIntPtr?, false); Eval(12288, o is UIntPtr?[], false); Eval(12289, o is Guid, false); Eval(12290, o is Guid[], false); Eval(12291, o is Guid?, false); Eval(12292, o is Guid?[], false); Eval(12293, o is GCHandle, false); Eval(12294, o is GCHandle[], false); Eval(12295, o is GCHandle?, false); Eval(12296, o is GCHandle?[], false); Eval(12297, o is object, false); Eval(12298, o is object[], false); Eval(12299, o is string, false); Eval(12300, o is string[], false); Eval(12301, o is ValueType, false); Eval(12302, o is ValueType[], false); Eval(12303, o is Array, false); Eval(12304, o is Array[], false); Eval(12305, o is Enum, false); Eval(12306, o is Enum[], false); Eval(12307, o is Delegate, false); Eval(12308, o is Delegate[], false); Eval(12309, o is MulticastDelegate, false); Eval(12310, o is MulticastDelegate[], false); Eval(12311, o is IEmpty, false); Eval(12312, o is IEmpty[], false); Eval(12313, o is INotEmpty, false); Eval(12314, o is INotEmpty[], false); Eval(12315, o is IEmptyGen<int>, false); Eval(12316, o is IEmptyGen<int>[], false); Eval(12317, o is INotEmptyGen<int>, false); Eval(12318, o is INotEmptyGen<int>[], false); Eval(12319, o is SimpleDelegate, false); Eval(12320, o is SimpleDelegate[], false); Eval(12321, o is GenericDelegate<int>, false); Eval(12322, o is GenericDelegate<int>[], false); Eval(12323, o is EmptyClass, false); Eval(12324, o is EmptyClass[], false); Eval(12325, o is NotEmptyClass, false); Eval(12326, o is NotEmptyClass[], false); Eval(12327, o is EmptyClassGen<int>, false); Eval(12328, o is EmptyClassGen<int>[], false); Eval(12329, o is NotEmptyClassGen<Guid>, false); Eval(12330, o is NotEmptyClassGen<Guid>[], false); Eval(12331, o is NotEmptyClassConstrainedGen<object>, false); Eval(12332, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12333, o is NestedClass, false); Eval(12334, o is NestedClass[], false); Eval(12335, o is NestedClassGen<Decimal>, false); Eval(12336, o is NestedClassGen<Decimal>[], false); Eval(12337, o is ImplementOneInterfaceC, false); Eval(12338, o is ImplementOneInterfaceC[], false); Eval(12339, o is ImplementTwoInterfaceC, false); Eval(12340, o is ImplementTwoInterfaceC[], false); Eval(12341, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12342, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12343, o is ImplementTwoInterfaceGenC<int>, false); Eval(12344, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12345, o is ImplementAllInterfaceC<int>, false); Eval(12346, o is ImplementAllInterfaceC<int>[], false); Eval(12347, o is SealedClass, false); Eval(12348, o is SealedClass[], false); } } // end of test case 0021 private static void TestCase0022() { { byte v = default(byte); ValueType o = v; Eval(12349, o is EmptyStruct, false); Eval(12350, o is EmptyStruct[], false); Eval(12351, o is EmptyStruct?, false); Eval(12352, o is EmptyStruct?[], false); Eval(12353, o is NotEmptyStruct, false); Eval(12354, o is NotEmptyStruct[], false); Eval(12355, o is NotEmptyStruct?, false); Eval(12356, o is NotEmptyStruct?[], false); Eval(12357, o is EmptyStructGen<int>, false); Eval(12358, o is EmptyStructGen<int>[], false); Eval(12359, o is EmptyStructGen<int>?, false); Eval(12360, o is EmptyStructGen<int>?[], false); Eval(12361, o is NotEmptyStructGen<Guid>, false); Eval(12362, o is NotEmptyStructGen<Guid>[], false); Eval(12363, o is NotEmptyStructGen<Guid>?, false); Eval(12364, o is NotEmptyStructGen<Guid>?[], false); Eval(12365, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12366, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12367, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12368, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12369, o is NestedStruct, false); Eval(12370, o is NestedStruct[], false); Eval(12371, o is NestedStruct?, false); Eval(12372, o is NestedStruct?[], false); Eval(12373, o is NestedStructGen<Decimal>, false); Eval(12374, o is NestedStructGen<Decimal>[], false); Eval(12375, o is NestedStructGen<Decimal>?, false); Eval(12376, o is NestedStructGen<Decimal>?[], false); Eval(12377, o is ExplicitFieldOffsetStruct, false); Eval(12378, o is ExplicitFieldOffsetStruct[], false); Eval(12379, o is ExplicitFieldOffsetStruct?, false); Eval(12380, o is ExplicitFieldOffsetStruct?[], false); Eval(12389, o is MarshalAsStruct, false); Eval(12390, o is MarshalAsStruct[], false); Eval(12391, o is MarshalAsStruct?, false); Eval(12392, o is MarshalAsStruct?[], false); Eval(12393, o is ImplementOneInterface, false); Eval(12394, o is ImplementOneInterface[], false); Eval(12395, o is ImplementOneInterface?, false); Eval(12396, o is ImplementOneInterface?[], false); Eval(12397, o is ImplementTwoInterface, false); Eval(12398, o is ImplementTwoInterface[], false); Eval(12399, o is ImplementTwoInterface?, false); Eval(12400, o is ImplementTwoInterface?[], false); Eval(12401, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12402, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12403, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12404, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12405, o is ImplementTwoInterfaceGen<int>, false); Eval(12406, o is ImplementTwoInterfaceGen<int>[], false); Eval(12407, o is ImplementTwoInterfaceGen<int>?, false); Eval(12408, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12409, o is ImplementAllInterface<int>, false); Eval(12410, o is ImplementAllInterface<int>[], false); Eval(12411, o is ImplementAllInterface<int>?, false); Eval(12412, o is ImplementAllInterface<int>?[], false); Eval(12413, o is IntE, false); Eval(12414, o is IntE[], false); Eval(12415, o is IntE?, false); Eval(12416, o is IntE?[], false); Eval(12417, o is ByteE, false); Eval(12418, o is ByteE[], false); Eval(12419, o is ByteE?, false); Eval(12420, o is ByteE?[], false); Eval(12421, o is LongE, false); Eval(12422, o is LongE[], false); Eval(12423, o is LongE?, false); Eval(12424, o is LongE?[], false); Eval(12425, o is char, false); Eval(12426, o is char[], false); Eval(12427, o is char?, false); Eval(12428, o is char?[], false); Eval(12429, o is bool, false); Eval(12430, o is bool[], false); Eval(12431, o is bool?, false); Eval(12432, o is bool?[], false); Eval(12433, o is byte, true); Eval(12434, o is byte[], false); Eval(12435, o is byte?, true); Eval(12436, o is byte?[], false); Eval(12437, o is sbyte, false); Eval(12438, o is sbyte[], false); Eval(12439, o is sbyte?, false); Eval(12440, o is sbyte?[], false); Eval(12441, o is short, false); Eval(12442, o is short[], false); Eval(12443, o is short?, false); Eval(12444, o is short?[], false); Eval(12445, o is ushort, false); Eval(12446, o is ushort[], false); Eval(12447, o is ushort?, false); Eval(12448, o is ushort?[], false); Eval(12449, o is int, false); Eval(12450, o is int[], false); Eval(12451, o is int?, false); Eval(12452, o is int?[], false); Eval(12453, o is uint, false); Eval(12454, o is uint[], false); Eval(12455, o is uint?, false); Eval(12456, o is uint?[], false); Eval(12457, o is long, false); Eval(12458, o is long[], false); Eval(12459, o is long?, false); Eval(12460, o is long?[], false); Eval(12461, o is ulong, false); Eval(12462, o is ulong[], false); Eval(12463, o is ulong?, false); Eval(12464, o is ulong?[], false); Eval(12465, o is float, false); Eval(12466, o is float[], false); Eval(12467, o is float?, false); Eval(12468, o is float?[], false); Eval(12469, o is double, false); Eval(12470, o is double[], false); Eval(12471, o is double?, false); Eval(12472, o is double?[], false); Eval(12473, o is decimal, false); Eval(12474, o is decimal[], false); Eval(12475, o is decimal?, false); Eval(12476, o is decimal?[], false); Eval(12477, o is IntPtr, false); Eval(12478, o is IntPtr[], false); Eval(12479, o is IntPtr?, false); Eval(12480, o is IntPtr?[], false); Eval(12481, o is UIntPtr, false); Eval(12482, o is UIntPtr[], false); Eval(12483, o is UIntPtr?, false); Eval(12484, o is UIntPtr?[], false); Eval(12485, o is Guid, false); Eval(12486, o is Guid[], false); Eval(12487, o is Guid?, false); Eval(12488, o is Guid?[], false); Eval(12489, o is GCHandle, false); Eval(12490, o is GCHandle[], false); Eval(12491, o is GCHandle?, false); Eval(12492, o is GCHandle?[], false); Eval(12493, o is object, true); Eval(12494, o is object[], false); Eval(12495, o is string, false); Eval(12496, o is string[], false); Eval(12497, o is ValueType, true); Eval(12498, o is ValueType[], false); Eval(12499, o is Array, false); Eval(12500, o is Array[], false); Eval(12501, o is Enum, false); Eval(12502, o is Enum[], false); Eval(12503, o is Delegate, false); Eval(12504, o is Delegate[], false); Eval(12505, o is MulticastDelegate, false); Eval(12506, o is MulticastDelegate[], false); Eval(12507, o is IEmpty, false); Eval(12508, o is IEmpty[], false); Eval(12509, o is INotEmpty, false); Eval(12510, o is INotEmpty[], false); Eval(12511, o is IEmptyGen<int>, false); Eval(12512, o is IEmptyGen<int>[], false); Eval(12513, o is INotEmptyGen<int>, false); Eval(12514, o is INotEmptyGen<int>[], false); Eval(12515, o is SimpleDelegate, false); Eval(12516, o is SimpleDelegate[], false); Eval(12517, o is GenericDelegate<int>, false); Eval(12518, o is GenericDelegate<int>[], false); Eval(12519, o is EmptyClass, false); Eval(12520, o is EmptyClass[], false); Eval(12521, o is NotEmptyClass, false); Eval(12522, o is NotEmptyClass[], false); Eval(12523, o is EmptyClassGen<int>, false); Eval(12524, o is EmptyClassGen<int>[], false); Eval(12525, o is NotEmptyClassGen<Guid>, false); Eval(12526, o is NotEmptyClassGen<Guid>[], false); Eval(12527, o is NotEmptyClassConstrainedGen<object>, false); Eval(12528, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12529, o is NestedClass, false); Eval(12530, o is NestedClass[], false); Eval(12531, o is NestedClassGen<Decimal>, false); Eval(12532, o is NestedClassGen<Decimal>[], false); Eval(12533, o is ImplementOneInterfaceC, false); Eval(12534, o is ImplementOneInterfaceC[], false); Eval(12535, o is ImplementTwoInterfaceC, false); Eval(12536, o is ImplementTwoInterfaceC[], false); Eval(12537, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12538, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12539, o is ImplementTwoInterfaceGenC<int>, false); Eval(12540, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12541, o is ImplementAllInterfaceC<int>, false); Eval(12542, o is ImplementAllInterfaceC<int>[], false); Eval(12543, o is SealedClass, false); Eval(12544, o is SealedClass[], false); } { byte? v = default(byte); ValueType o = v; Eval(12545, o is EmptyStruct, false); Eval(12546, o is EmptyStruct[], false); Eval(12547, o is EmptyStruct?, false); Eval(12548, o is EmptyStruct?[], false); Eval(12549, o is NotEmptyStruct, false); Eval(12550, o is NotEmptyStruct[], false); Eval(12551, o is NotEmptyStruct?, false); Eval(12552, o is NotEmptyStruct?[], false); Eval(12553, o is EmptyStructGen<int>, false); Eval(12554, o is EmptyStructGen<int>[], false); Eval(12555, o is EmptyStructGen<int>?, false); Eval(12556, o is EmptyStructGen<int>?[], false); Eval(12557, o is NotEmptyStructGen<Guid>, false); Eval(12558, o is NotEmptyStructGen<Guid>[], false); Eval(12559, o is NotEmptyStructGen<Guid>?, false); Eval(12560, o is NotEmptyStructGen<Guid>?[], false); Eval(12561, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12562, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12563, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12564, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12565, o is NestedStruct, false); Eval(12566, o is NestedStruct[], false); Eval(12567, o is NestedStruct?, false); Eval(12568, o is NestedStruct?[], false); Eval(12569, o is NestedStructGen<Decimal>, false); Eval(12570, o is NestedStructGen<Decimal>[], false); Eval(12571, o is NestedStructGen<Decimal>?, false); Eval(12572, o is NestedStructGen<Decimal>?[], false); Eval(12573, o is ExplicitFieldOffsetStruct, false); Eval(12574, o is ExplicitFieldOffsetStruct[], false); Eval(12575, o is ExplicitFieldOffsetStruct?, false); Eval(12576, o is ExplicitFieldOffsetStruct?[], false); Eval(12585, o is MarshalAsStruct, false); Eval(12586, o is MarshalAsStruct[], false); Eval(12587, o is MarshalAsStruct?, false); Eval(12588, o is MarshalAsStruct?[], false); Eval(12589, o is ImplementOneInterface, false); Eval(12590, o is ImplementOneInterface[], false); Eval(12591, o is ImplementOneInterface?, false); Eval(12592, o is ImplementOneInterface?[], false); Eval(12593, o is ImplementTwoInterface, false); Eval(12594, o is ImplementTwoInterface[], false); Eval(12595, o is ImplementTwoInterface?, false); Eval(12596, o is ImplementTwoInterface?[], false); Eval(12597, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12598, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12599, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12600, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12601, o is ImplementTwoInterfaceGen<int>, false); Eval(12602, o is ImplementTwoInterfaceGen<int>[], false); Eval(12603, o is ImplementTwoInterfaceGen<int>?, false); Eval(12604, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12605, o is ImplementAllInterface<int>, false); Eval(12606, o is ImplementAllInterface<int>[], false); Eval(12607, o is ImplementAllInterface<int>?, false); Eval(12608, o is ImplementAllInterface<int>?[], false); Eval(12609, o is IntE, false); Eval(12610, o is IntE[], false); Eval(12611, o is IntE?, false); Eval(12612, o is IntE?[], false); Eval(12613, o is ByteE, false); Eval(12614, o is ByteE[], false); Eval(12615, o is ByteE?, false); Eval(12616, o is ByteE?[], false); Eval(12617, o is LongE, false); Eval(12618, o is LongE[], false); Eval(12619, o is LongE?, false); Eval(12620, o is LongE?[], false); Eval(12621, o is char, false); Eval(12622, o is char[], false); Eval(12623, o is char?, false); Eval(12624, o is char?[], false); Eval(12625, o is bool, false); Eval(12626, o is bool[], false); Eval(12627, o is bool?, false); Eval(12628, o is bool?[], false); Eval(12629, o is byte, true); Eval(12630, o is byte[], false); Eval(12631, o is byte?, true); Eval(12632, o is byte?[], false); Eval(12633, o is sbyte, false); Eval(12634, o is sbyte[], false); Eval(12635, o is sbyte?, false); Eval(12636, o is sbyte?[], false); Eval(12637, o is short, false); Eval(12638, o is short[], false); Eval(12639, o is short?, false); Eval(12640, o is short?[], false); Eval(12641, o is ushort, false); Eval(12642, o is ushort[], false); Eval(12643, o is ushort?, false); Eval(12644, o is ushort?[], false); Eval(12645, o is int, false); Eval(12646, o is int[], false); Eval(12647, o is int?, false); Eval(12648, o is int?[], false); Eval(12649, o is uint, false); Eval(12650, o is uint[], false); Eval(12651, o is uint?, false); Eval(12652, o is uint?[], false); Eval(12653, o is long, false); Eval(12654, o is long[], false); Eval(12655, o is long?, false); Eval(12656, o is long?[], false); Eval(12657, o is ulong, false); Eval(12658, o is ulong[], false); Eval(12659, o is ulong?, false); Eval(12660, o is ulong?[], false); Eval(12661, o is float, false); Eval(12662, o is float[], false); Eval(12663, o is float?, false); Eval(12664, o is float?[], false); Eval(12665, o is double, false); Eval(12666, o is double[], false); Eval(12667, o is double?, false); Eval(12668, o is double?[], false); Eval(12669, o is decimal, false); Eval(12670, o is decimal[], false); Eval(12671, o is decimal?, false); Eval(12672, o is decimal?[], false); Eval(12673, o is IntPtr, false); Eval(12674, o is IntPtr[], false); Eval(12675, o is IntPtr?, false); Eval(12676, o is IntPtr?[], false); Eval(12677, o is UIntPtr, false); Eval(12678, o is UIntPtr[], false); Eval(12679, o is UIntPtr?, false); Eval(12680, o is UIntPtr?[], false); Eval(12681, o is Guid, false); Eval(12682, o is Guid[], false); Eval(12683, o is Guid?, false); Eval(12684, o is Guid?[], false); Eval(12685, o is GCHandle, false); Eval(12686, o is GCHandle[], false); Eval(12687, o is GCHandle?, false); Eval(12688, o is GCHandle?[], false); Eval(12689, o is object, true); Eval(12690, o is object[], false); Eval(12691, o is string, false); Eval(12692, o is string[], false); Eval(12693, o is ValueType, true); Eval(12694, o is ValueType[], false); Eval(12695, o is Array, false); Eval(12696, o is Array[], false); Eval(12697, o is Enum, false); Eval(12698, o is Enum[], false); Eval(12699, o is Delegate, false); Eval(12700, o is Delegate[], false); Eval(12701, o is MulticastDelegate, false); Eval(12702, o is MulticastDelegate[], false); Eval(12703, o is IEmpty, false); Eval(12704, o is IEmpty[], false); Eval(12705, o is INotEmpty, false); Eval(12706, o is INotEmpty[], false); Eval(12707, o is IEmptyGen<int>, false); Eval(12708, o is IEmptyGen<int>[], false); Eval(12709, o is INotEmptyGen<int>, false); Eval(12710, o is INotEmptyGen<int>[], false); Eval(12711, o is SimpleDelegate, false); Eval(12712, o is SimpleDelegate[], false); Eval(12713, o is GenericDelegate<int>, false); Eval(12714, o is GenericDelegate<int>[], false); Eval(12715, o is EmptyClass, false); Eval(12716, o is EmptyClass[], false); Eval(12717, o is NotEmptyClass, false); Eval(12718, o is NotEmptyClass[], false); Eval(12719, o is EmptyClassGen<int>, false); Eval(12720, o is EmptyClassGen<int>[], false); Eval(12721, o is NotEmptyClassGen<Guid>, false); Eval(12722, o is NotEmptyClassGen<Guid>[], false); Eval(12723, o is NotEmptyClassConstrainedGen<object>, false); Eval(12724, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12725, o is NestedClass, false); Eval(12726, o is NestedClass[], false); Eval(12727, o is NestedClassGen<Decimal>, false); Eval(12728, o is NestedClassGen<Decimal>[], false); Eval(12729, o is ImplementOneInterfaceC, false); Eval(12730, o is ImplementOneInterfaceC[], false); Eval(12731, o is ImplementTwoInterfaceC, false); Eval(12732, o is ImplementTwoInterfaceC[], false); Eval(12733, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12734, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12735, o is ImplementTwoInterfaceGenC<int>, false); Eval(12736, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12737, o is ImplementAllInterfaceC<int>, false); Eval(12738, o is ImplementAllInterfaceC<int>[], false); Eval(12739, o is SealedClass, false); Eval(12740, o is SealedClass[], false); } { byte? v = default(byte?); ValueType o = v; Eval(12741, o is EmptyStruct, false); Eval(12742, o is EmptyStruct[], false); Eval(12743, o is EmptyStruct?, false); Eval(12744, o is EmptyStruct?[], false); Eval(12745, o is NotEmptyStruct, false); Eval(12746, o is NotEmptyStruct[], false); Eval(12747, o is NotEmptyStruct?, false); Eval(12748, o is NotEmptyStruct?[], false); Eval(12749, o is EmptyStructGen<int>, false); Eval(12750, o is EmptyStructGen<int>[], false); Eval(12751, o is EmptyStructGen<int>?, false); Eval(12752, o is EmptyStructGen<int>?[], false); Eval(12753, o is NotEmptyStructGen<Guid>, false); Eval(12754, o is NotEmptyStructGen<Guid>[], false); Eval(12755, o is NotEmptyStructGen<Guid>?, false); Eval(12756, o is NotEmptyStructGen<Guid>?[], false); Eval(12757, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12758, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12759, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12760, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12761, o is NestedStruct, false); Eval(12762, o is NestedStruct[], false); Eval(12763, o is NestedStruct?, false); Eval(12764, o is NestedStruct?[], false); Eval(12765, o is NestedStructGen<Decimal>, false); Eval(12766, o is NestedStructGen<Decimal>[], false); Eval(12767, o is NestedStructGen<Decimal>?, false); Eval(12768, o is NestedStructGen<Decimal>?[], false); Eval(12769, o is ExplicitFieldOffsetStruct, false); Eval(12770, o is ExplicitFieldOffsetStruct[], false); Eval(12771, o is ExplicitFieldOffsetStruct?, false); Eval(12772, o is ExplicitFieldOffsetStruct?[], false); Eval(12781, o is MarshalAsStruct, false); Eval(12782, o is MarshalAsStruct[], false); Eval(12783, o is MarshalAsStruct?, false); Eval(12784, o is MarshalAsStruct?[], false); Eval(12785, o is ImplementOneInterface, false); Eval(12786, o is ImplementOneInterface[], false); Eval(12787, o is ImplementOneInterface?, false); Eval(12788, o is ImplementOneInterface?[], false); Eval(12789, o is ImplementTwoInterface, false); Eval(12790, o is ImplementTwoInterface[], false); Eval(12791, o is ImplementTwoInterface?, false); Eval(12792, o is ImplementTwoInterface?[], false); Eval(12793, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12794, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12795, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12796, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12797, o is ImplementTwoInterfaceGen<int>, false); Eval(12798, o is ImplementTwoInterfaceGen<int>[], false); Eval(12799, o is ImplementTwoInterfaceGen<int>?, false); Eval(12800, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12801, o is ImplementAllInterface<int>, false); Eval(12802, o is ImplementAllInterface<int>[], false); Eval(12803, o is ImplementAllInterface<int>?, false); Eval(12804, o is ImplementAllInterface<int>?[], false); Eval(12805, o is IntE, false); Eval(12806, o is IntE[], false); Eval(12807, o is IntE?, false); Eval(12808, o is IntE?[], false); Eval(12809, o is ByteE, false); Eval(12810, o is ByteE[], false); Eval(12811, o is ByteE?, false); Eval(12812, o is ByteE?[], false); Eval(12813, o is LongE, false); Eval(12814, o is LongE[], false); Eval(12815, o is LongE?, false); Eval(12816, o is LongE?[], false); Eval(12817, o is char, false); Eval(12818, o is char[], false); Eval(12819, o is char?, false); Eval(12820, o is char?[], false); Eval(12821, o is bool, false); Eval(12822, o is bool[], false); Eval(12823, o is bool?, false); Eval(12824, o is bool?[], false); Eval(12825, o is byte, false); Eval(12826, o is byte[], false); Eval(12827, o is byte?, false); Eval(12828, o is byte?[], false); Eval(12829, o is sbyte, false); Eval(12830, o is sbyte[], false); Eval(12831, o is sbyte?, false); Eval(12832, o is sbyte?[], false); Eval(12833, o is short, false); Eval(12834, o is short[], false); Eval(12835, o is short?, false); Eval(12836, o is short?[], false); Eval(12837, o is ushort, false); Eval(12838, o is ushort[], false); Eval(12839, o is ushort?, false); Eval(12840, o is ushort?[], false); Eval(12841, o is int, false); Eval(12842, o is int[], false); Eval(12843, o is int?, false); Eval(12844, o is int?[], false); Eval(12845, o is uint, false); Eval(12846, o is uint[], false); Eval(12847, o is uint?, false); Eval(12848, o is uint?[], false); Eval(12849, o is long, false); Eval(12850, o is long[], false); Eval(12851, o is long?, false); Eval(12852, o is long?[], false); Eval(12853, o is ulong, false); Eval(12854, o is ulong[], false); Eval(12855, o is ulong?, false); Eval(12856, o is ulong?[], false); Eval(12857, o is float, false); Eval(12858, o is float[], false); Eval(12859, o is float?, false); Eval(12860, o is float?[], false); Eval(12861, o is double, false); Eval(12862, o is double[], false); Eval(12863, o is double?, false); Eval(12864, o is double?[], false); Eval(12865, o is decimal, false); Eval(12866, o is decimal[], false); Eval(12867, o is decimal?, false); Eval(12868, o is decimal?[], false); Eval(12869, o is IntPtr, false); Eval(12870, o is IntPtr[], false); Eval(12871, o is IntPtr?, false); Eval(12872, o is IntPtr?[], false); Eval(12873, o is UIntPtr, false); Eval(12874, o is UIntPtr[], false); Eval(12875, o is UIntPtr?, false); Eval(12876, o is UIntPtr?[], false); Eval(12877, o is Guid, false); Eval(12878, o is Guid[], false); Eval(12879, o is Guid?, false); Eval(12880, o is Guid?[], false); Eval(12881, o is GCHandle, false); Eval(12882, o is GCHandle[], false); Eval(12883, o is GCHandle?, false); Eval(12884, o is GCHandle?[], false); Eval(12885, o is object, false); Eval(12886, o is object[], false); Eval(12887, o is string, false); Eval(12888, o is string[], false); Eval(12889, o is ValueType, false); Eval(12890, o is ValueType[], false); Eval(12891, o is Array, false); Eval(12892, o is Array[], false); Eval(12893, o is Enum, false); Eval(12894, o is Enum[], false); Eval(12895, o is Delegate, false); Eval(12896, o is Delegate[], false); Eval(12897, o is MulticastDelegate, false); Eval(12898, o is MulticastDelegate[], false); Eval(12899, o is IEmpty, false); Eval(12900, o is IEmpty[], false); Eval(12901, o is INotEmpty, false); Eval(12902, o is INotEmpty[], false); Eval(12903, o is IEmptyGen<int>, false); Eval(12904, o is IEmptyGen<int>[], false); Eval(12905, o is INotEmptyGen<int>, false); Eval(12906, o is INotEmptyGen<int>[], false); Eval(12907, o is SimpleDelegate, false); Eval(12908, o is SimpleDelegate[], false); Eval(12909, o is GenericDelegate<int>, false); Eval(12910, o is GenericDelegate<int>[], false); Eval(12911, o is EmptyClass, false); Eval(12912, o is EmptyClass[], false); Eval(12913, o is NotEmptyClass, false); Eval(12914, o is NotEmptyClass[], false); Eval(12915, o is EmptyClassGen<int>, false); Eval(12916, o is EmptyClassGen<int>[], false); Eval(12917, o is NotEmptyClassGen<Guid>, false); Eval(12918, o is NotEmptyClassGen<Guid>[], false); Eval(12919, o is NotEmptyClassConstrainedGen<object>, false); Eval(12920, o is NotEmptyClassConstrainedGen<object>[], false); Eval(12921, o is NestedClass, false); Eval(12922, o is NestedClass[], false); Eval(12923, o is NestedClassGen<Decimal>, false); Eval(12924, o is NestedClassGen<Decimal>[], false); Eval(12925, o is ImplementOneInterfaceC, false); Eval(12926, o is ImplementOneInterfaceC[], false); Eval(12927, o is ImplementTwoInterfaceC, false); Eval(12928, o is ImplementTwoInterfaceC[], false); Eval(12929, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(12930, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(12931, o is ImplementTwoInterfaceGenC<int>, false); Eval(12932, o is ImplementTwoInterfaceGenC<int>[], false); Eval(12933, o is ImplementAllInterfaceC<int>, false); Eval(12934, o is ImplementAllInterfaceC<int>[], false); Eval(12935, o is SealedClass, false); Eval(12936, o is SealedClass[], false); } } // end of test case 0022 private static void TestCase0023() { { sbyte v = default(sbyte); ValueType o = v; Eval(12937, o is EmptyStruct, false); Eval(12938, o is EmptyStruct[], false); Eval(12939, o is EmptyStruct?, false); Eval(12940, o is EmptyStruct?[], false); Eval(12941, o is NotEmptyStruct, false); Eval(12942, o is NotEmptyStruct[], false); Eval(12943, o is NotEmptyStruct?, false); Eval(12944, o is NotEmptyStruct?[], false); Eval(12945, o is EmptyStructGen<int>, false); Eval(12946, o is EmptyStructGen<int>[], false); Eval(12947, o is EmptyStructGen<int>?, false); Eval(12948, o is EmptyStructGen<int>?[], false); Eval(12949, o is NotEmptyStructGen<Guid>, false); Eval(12950, o is NotEmptyStructGen<Guid>[], false); Eval(12951, o is NotEmptyStructGen<Guid>?, false); Eval(12952, o is NotEmptyStructGen<Guid>?[], false); Eval(12953, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(12954, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(12955, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(12956, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(12957, o is NestedStruct, false); Eval(12958, o is NestedStruct[], false); Eval(12959, o is NestedStruct?, false); Eval(12960, o is NestedStruct?[], false); Eval(12961, o is NestedStructGen<Decimal>, false); Eval(12962, o is NestedStructGen<Decimal>[], false); Eval(12963, o is NestedStructGen<Decimal>?, false); Eval(12964, o is NestedStructGen<Decimal>?[], false); Eval(12965, o is ExplicitFieldOffsetStruct, false); Eval(12966, o is ExplicitFieldOffsetStruct[], false); Eval(12967, o is ExplicitFieldOffsetStruct?, false); Eval(12968, o is ExplicitFieldOffsetStruct?[], false); Eval(12977, o is MarshalAsStruct, false); Eval(12978, o is MarshalAsStruct[], false); Eval(12979, o is MarshalAsStruct?, false); Eval(12980, o is MarshalAsStruct?[], false); Eval(12981, o is ImplementOneInterface, false); Eval(12982, o is ImplementOneInterface[], false); Eval(12983, o is ImplementOneInterface?, false); Eval(12984, o is ImplementOneInterface?[], false); Eval(12985, o is ImplementTwoInterface, false); Eval(12986, o is ImplementTwoInterface[], false); Eval(12987, o is ImplementTwoInterface?, false); Eval(12988, o is ImplementTwoInterface?[], false); Eval(12989, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(12990, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(12991, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(12992, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(12993, o is ImplementTwoInterfaceGen<int>, false); Eval(12994, o is ImplementTwoInterfaceGen<int>[], false); Eval(12995, o is ImplementTwoInterfaceGen<int>?, false); Eval(12996, o is ImplementTwoInterfaceGen<int>?[], false); Eval(12997, o is ImplementAllInterface<int>, false); Eval(12998, o is ImplementAllInterface<int>[], false); Eval(12999, o is ImplementAllInterface<int>?, false); Eval(13000, o is ImplementAllInterface<int>?[], false); Eval(13001, o is IntE, false); Eval(13002, o is IntE[], false); Eval(13003, o is IntE?, false); Eval(13004, o is IntE?[], false); Eval(13005, o is ByteE, false); Eval(13006, o is ByteE[], false); Eval(13007, o is ByteE?, false); Eval(13008, o is ByteE?[], false); Eval(13009, o is LongE, false); Eval(13010, o is LongE[], false); Eval(13011, o is LongE?, false); Eval(13012, o is LongE?[], false); Eval(13013, o is char, false); Eval(13014, o is char[], false); Eval(13015, o is char?, false); Eval(13016, o is char?[], false); Eval(13017, o is bool, false); Eval(13018, o is bool[], false); Eval(13019, o is bool?, false); Eval(13020, o is bool?[], false); Eval(13021, o is byte, false); Eval(13022, o is byte[], false); Eval(13023, o is byte?, false); Eval(13024, o is byte?[], false); Eval(13025, o is sbyte, true); Eval(13026, o is sbyte[], false); Eval(13027, o is sbyte?, true); Eval(13028, o is sbyte?[], false); Eval(13029, o is short, false); Eval(13030, o is short[], false); Eval(13031, o is short?, false); Eval(13032, o is short?[], false); Eval(13033, o is ushort, false); Eval(13034, o is ushort[], false); Eval(13035, o is ushort?, false); Eval(13036, o is ushort?[], false); Eval(13037, o is int, false); Eval(13038, o is int[], false); Eval(13039, o is int?, false); Eval(13040, o is int?[], false); Eval(13041, o is uint, false); Eval(13042, o is uint[], false); Eval(13043, o is uint?, false); Eval(13044, o is uint?[], false); Eval(13045, o is long, false); Eval(13046, o is long[], false); Eval(13047, o is long?, false); Eval(13048, o is long?[], false); Eval(13049, o is ulong, false); Eval(13050, o is ulong[], false); Eval(13051, o is ulong?, false); Eval(13052, o is ulong?[], false); Eval(13053, o is float, false); Eval(13054, o is float[], false); Eval(13055, o is float?, false); Eval(13056, o is float?[], false); Eval(13057, o is double, false); Eval(13058, o is double[], false); Eval(13059, o is double?, false); Eval(13060, o is double?[], false); Eval(13061, o is decimal, false); Eval(13062, o is decimal[], false); Eval(13063, o is decimal?, false); Eval(13064, o is decimal?[], false); Eval(13065, o is IntPtr, false); Eval(13066, o is IntPtr[], false); Eval(13067, o is IntPtr?, false); Eval(13068, o is IntPtr?[], false); Eval(13069, o is UIntPtr, false); Eval(13070, o is UIntPtr[], false); Eval(13071, o is UIntPtr?, false); Eval(13072, o is UIntPtr?[], false); Eval(13073, o is Guid, false); Eval(13074, o is Guid[], false); Eval(13075, o is Guid?, false); Eval(13076, o is Guid?[], false); Eval(13077, o is GCHandle, false); Eval(13078, o is GCHandle[], false); Eval(13079, o is GCHandle?, false); Eval(13080, o is GCHandle?[], false); Eval(13081, o is object, true); Eval(13082, o is object[], false); Eval(13083, o is string, false); Eval(13084, o is string[], false); Eval(13085, o is ValueType, true); Eval(13086, o is ValueType[], false); Eval(13087, o is Array, false); Eval(13088, o is Array[], false); Eval(13089, o is Enum, false); Eval(13090, o is Enum[], false); Eval(13091, o is Delegate, false); Eval(13092, o is Delegate[], false); Eval(13093, o is MulticastDelegate, false); Eval(13094, o is MulticastDelegate[], false); Eval(13095, o is IEmpty, false); Eval(13096, o is IEmpty[], false); Eval(13097, o is INotEmpty, false); Eval(13098, o is INotEmpty[], false); Eval(13099, o is IEmptyGen<int>, false); Eval(13100, o is IEmptyGen<int>[], false); Eval(13101, o is INotEmptyGen<int>, false); Eval(13102, o is INotEmptyGen<int>[], false); Eval(13103, o is SimpleDelegate, false); Eval(13104, o is SimpleDelegate[], false); Eval(13105, o is GenericDelegate<int>, false); Eval(13106, o is GenericDelegate<int>[], false); Eval(13107, o is EmptyClass, false); Eval(13108, o is EmptyClass[], false); Eval(13109, o is NotEmptyClass, false); Eval(13110, o is NotEmptyClass[], false); Eval(13111, o is EmptyClassGen<int>, false); Eval(13112, o is EmptyClassGen<int>[], false); Eval(13113, o is NotEmptyClassGen<Guid>, false); Eval(13114, o is NotEmptyClassGen<Guid>[], false); Eval(13115, o is NotEmptyClassConstrainedGen<object>, false); Eval(13116, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13117, o is NestedClass, false); Eval(13118, o is NestedClass[], false); Eval(13119, o is NestedClassGen<Decimal>, false); Eval(13120, o is NestedClassGen<Decimal>[], false); Eval(13121, o is ImplementOneInterfaceC, false); Eval(13122, o is ImplementOneInterfaceC[], false); Eval(13123, o is ImplementTwoInterfaceC, false); Eval(13124, o is ImplementTwoInterfaceC[], false); Eval(13125, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13126, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13127, o is ImplementTwoInterfaceGenC<int>, false); Eval(13128, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13129, o is ImplementAllInterfaceC<int>, false); Eval(13130, o is ImplementAllInterfaceC<int>[], false); Eval(13131, o is SealedClass, false); Eval(13132, o is SealedClass[], false); } { sbyte? v = default(sbyte); ValueType o = v; Eval(13133, o is EmptyStruct, false); Eval(13134, o is EmptyStruct[], false); Eval(13135, o is EmptyStruct?, false); Eval(13136, o is EmptyStruct?[], false); Eval(13137, o is NotEmptyStruct, false); Eval(13138, o is NotEmptyStruct[], false); Eval(13139, o is NotEmptyStruct?, false); Eval(13140, o is NotEmptyStruct?[], false); Eval(13141, o is EmptyStructGen<int>, false); Eval(13142, o is EmptyStructGen<int>[], false); Eval(13143, o is EmptyStructGen<int>?, false); Eval(13144, o is EmptyStructGen<int>?[], false); Eval(13145, o is NotEmptyStructGen<Guid>, false); Eval(13146, o is NotEmptyStructGen<Guid>[], false); Eval(13147, o is NotEmptyStructGen<Guid>?, false); Eval(13148, o is NotEmptyStructGen<Guid>?[], false); Eval(13149, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13150, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13151, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13152, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13153, o is NestedStruct, false); Eval(13154, o is NestedStruct[], false); Eval(13155, o is NestedStruct?, false); Eval(13156, o is NestedStruct?[], false); Eval(13157, o is NestedStructGen<Decimal>, false); Eval(13158, o is NestedStructGen<Decimal>[], false); Eval(13159, o is NestedStructGen<Decimal>?, false); Eval(13160, o is NestedStructGen<Decimal>?[], false); Eval(13161, o is ExplicitFieldOffsetStruct, false); Eval(13162, o is ExplicitFieldOffsetStruct[], false); Eval(13163, o is ExplicitFieldOffsetStruct?, false); Eval(13164, o is ExplicitFieldOffsetStruct?[], false); Eval(13173, o is MarshalAsStruct, false); Eval(13174, o is MarshalAsStruct[], false); Eval(13175, o is MarshalAsStruct?, false); Eval(13176, o is MarshalAsStruct?[], false); Eval(13177, o is ImplementOneInterface, false); Eval(13178, o is ImplementOneInterface[], false); Eval(13179, o is ImplementOneInterface?, false); Eval(13180, o is ImplementOneInterface?[], false); Eval(13181, o is ImplementTwoInterface, false); Eval(13182, o is ImplementTwoInterface[], false); Eval(13183, o is ImplementTwoInterface?, false); Eval(13184, o is ImplementTwoInterface?[], false); Eval(13185, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13186, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13187, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13188, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13189, o is ImplementTwoInterfaceGen<int>, false); Eval(13190, o is ImplementTwoInterfaceGen<int>[], false); Eval(13191, o is ImplementTwoInterfaceGen<int>?, false); Eval(13192, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13193, o is ImplementAllInterface<int>, false); Eval(13194, o is ImplementAllInterface<int>[], false); Eval(13195, o is ImplementAllInterface<int>?, false); Eval(13196, o is ImplementAllInterface<int>?[], false); Eval(13197, o is IntE, false); Eval(13198, o is IntE[], false); Eval(13199, o is IntE?, false); Eval(13200, o is IntE?[], false); Eval(13201, o is ByteE, false); Eval(13202, o is ByteE[], false); Eval(13203, o is ByteE?, false); Eval(13204, o is ByteE?[], false); Eval(13205, o is LongE, false); Eval(13206, o is LongE[], false); Eval(13207, o is LongE?, false); Eval(13208, o is LongE?[], false); Eval(13209, o is char, false); Eval(13210, o is char[], false); Eval(13211, o is char?, false); Eval(13212, o is char?[], false); Eval(13213, o is bool, false); Eval(13214, o is bool[], false); Eval(13215, o is bool?, false); Eval(13216, o is bool?[], false); Eval(13217, o is byte, false); Eval(13218, o is byte[], false); Eval(13219, o is byte?, false); Eval(13220, o is byte?[], false); Eval(13221, o is sbyte, true); Eval(13222, o is sbyte[], false); Eval(13223, o is sbyte?, true); Eval(13224, o is sbyte?[], false); Eval(13225, o is short, false); Eval(13226, o is short[], false); Eval(13227, o is short?, false); Eval(13228, o is short?[], false); Eval(13229, o is ushort, false); Eval(13230, o is ushort[], false); Eval(13231, o is ushort?, false); Eval(13232, o is ushort?[], false); Eval(13233, o is int, false); Eval(13234, o is int[], false); Eval(13235, o is int?, false); Eval(13236, o is int?[], false); Eval(13237, o is uint, false); Eval(13238, o is uint[], false); Eval(13239, o is uint?, false); Eval(13240, o is uint?[], false); Eval(13241, o is long, false); Eval(13242, o is long[], false); Eval(13243, o is long?, false); Eval(13244, o is long?[], false); Eval(13245, o is ulong, false); Eval(13246, o is ulong[], false); Eval(13247, o is ulong?, false); Eval(13248, o is ulong?[], false); Eval(13249, o is float, false); Eval(13250, o is float[], false); Eval(13251, o is float?, false); Eval(13252, o is float?[], false); Eval(13253, o is double, false); Eval(13254, o is double[], false); Eval(13255, o is double?, false); Eval(13256, o is double?[], false); Eval(13257, o is decimal, false); Eval(13258, o is decimal[], false); Eval(13259, o is decimal?, false); Eval(13260, o is decimal?[], false); Eval(13261, o is IntPtr, false); Eval(13262, o is IntPtr[], false); Eval(13263, o is IntPtr?, false); Eval(13264, o is IntPtr?[], false); Eval(13265, o is UIntPtr, false); Eval(13266, o is UIntPtr[], false); Eval(13267, o is UIntPtr?, false); Eval(13268, o is UIntPtr?[], false); Eval(13269, o is Guid, false); Eval(13270, o is Guid[], false); Eval(13271, o is Guid?, false); Eval(13272, o is Guid?[], false); Eval(13273, o is GCHandle, false); Eval(13274, o is GCHandle[], false); Eval(13275, o is GCHandle?, false); Eval(13276, o is GCHandle?[], false); Eval(13277, o is object, true); Eval(13278, o is object[], false); Eval(13279, o is string, false); Eval(13280, o is string[], false); Eval(13281, o is ValueType, true); Eval(13282, o is ValueType[], false); Eval(13283, o is Array, false); Eval(13284, o is Array[], false); Eval(13285, o is Enum, false); Eval(13286, o is Enum[], false); Eval(13287, o is Delegate, false); Eval(13288, o is Delegate[], false); Eval(13289, o is MulticastDelegate, false); Eval(13290, o is MulticastDelegate[], false); Eval(13291, o is IEmpty, false); Eval(13292, o is IEmpty[], false); Eval(13293, o is INotEmpty, false); Eval(13294, o is INotEmpty[], false); Eval(13295, o is IEmptyGen<int>, false); Eval(13296, o is IEmptyGen<int>[], false); Eval(13297, o is INotEmptyGen<int>, false); Eval(13298, o is INotEmptyGen<int>[], false); Eval(13299, o is SimpleDelegate, false); Eval(13300, o is SimpleDelegate[], false); Eval(13301, o is GenericDelegate<int>, false); Eval(13302, o is GenericDelegate<int>[], false); Eval(13303, o is EmptyClass, false); Eval(13304, o is EmptyClass[], false); Eval(13305, o is NotEmptyClass, false); Eval(13306, o is NotEmptyClass[], false); Eval(13307, o is EmptyClassGen<int>, false); Eval(13308, o is EmptyClassGen<int>[], false); Eval(13309, o is NotEmptyClassGen<Guid>, false); Eval(13310, o is NotEmptyClassGen<Guid>[], false); Eval(13311, o is NotEmptyClassConstrainedGen<object>, false); Eval(13312, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13313, o is NestedClass, false); Eval(13314, o is NestedClass[], false); Eval(13315, o is NestedClassGen<Decimal>, false); Eval(13316, o is NestedClassGen<Decimal>[], false); Eval(13317, o is ImplementOneInterfaceC, false); Eval(13318, o is ImplementOneInterfaceC[], false); Eval(13319, o is ImplementTwoInterfaceC, false); Eval(13320, o is ImplementTwoInterfaceC[], false); Eval(13321, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13322, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13323, o is ImplementTwoInterfaceGenC<int>, false); Eval(13324, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13325, o is ImplementAllInterfaceC<int>, false); Eval(13326, o is ImplementAllInterfaceC<int>[], false); Eval(13327, o is SealedClass, false); Eval(13328, o is SealedClass[], false); } { sbyte? v = default(sbyte?); ValueType o = v; Eval(13329, o is EmptyStruct, false); Eval(13330, o is EmptyStruct[], false); Eval(13331, o is EmptyStruct?, false); Eval(13332, o is EmptyStruct?[], false); Eval(13333, o is NotEmptyStruct, false); Eval(13334, o is NotEmptyStruct[], false); Eval(13335, o is NotEmptyStruct?, false); Eval(13336, o is NotEmptyStruct?[], false); Eval(13337, o is EmptyStructGen<int>, false); Eval(13338, o is EmptyStructGen<int>[], false); Eval(13339, o is EmptyStructGen<int>?, false); Eval(13340, o is EmptyStructGen<int>?[], false); Eval(13341, o is NotEmptyStructGen<Guid>, false); Eval(13342, o is NotEmptyStructGen<Guid>[], false); Eval(13343, o is NotEmptyStructGen<Guid>?, false); Eval(13344, o is NotEmptyStructGen<Guid>?[], false); Eval(13345, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13346, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13347, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13348, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13349, o is NestedStruct, false); Eval(13350, o is NestedStruct[], false); Eval(13351, o is NestedStruct?, false); Eval(13352, o is NestedStruct?[], false); Eval(13353, o is NestedStructGen<Decimal>, false); Eval(13354, o is NestedStructGen<Decimal>[], false); Eval(13355, o is NestedStructGen<Decimal>?, false); Eval(13356, o is NestedStructGen<Decimal>?[], false); Eval(13357, o is ExplicitFieldOffsetStruct, false); Eval(13358, o is ExplicitFieldOffsetStruct[], false); Eval(13359, o is ExplicitFieldOffsetStruct?, false); Eval(13360, o is ExplicitFieldOffsetStruct?[], false); Eval(13369, o is MarshalAsStruct, false); Eval(13370, o is MarshalAsStruct[], false); Eval(13371, o is MarshalAsStruct?, false); Eval(13372, o is MarshalAsStruct?[], false); Eval(13373, o is ImplementOneInterface, false); Eval(13374, o is ImplementOneInterface[], false); Eval(13375, o is ImplementOneInterface?, false); Eval(13376, o is ImplementOneInterface?[], false); Eval(13377, o is ImplementTwoInterface, false); Eval(13378, o is ImplementTwoInterface[], false); Eval(13379, o is ImplementTwoInterface?, false); Eval(13380, o is ImplementTwoInterface?[], false); Eval(13381, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13382, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13383, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13384, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13385, o is ImplementTwoInterfaceGen<int>, false); Eval(13386, o is ImplementTwoInterfaceGen<int>[], false); Eval(13387, o is ImplementTwoInterfaceGen<int>?, false); Eval(13388, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13389, o is ImplementAllInterface<int>, false); Eval(13390, o is ImplementAllInterface<int>[], false); Eval(13391, o is ImplementAllInterface<int>?, false); Eval(13392, o is ImplementAllInterface<int>?[], false); Eval(13393, o is IntE, false); Eval(13394, o is IntE[], false); Eval(13395, o is IntE?, false); Eval(13396, o is IntE?[], false); Eval(13397, o is ByteE, false); Eval(13398, o is ByteE[], false); Eval(13399, o is ByteE?, false); Eval(13400, o is ByteE?[], false); Eval(13401, o is LongE, false); Eval(13402, o is LongE[], false); Eval(13403, o is LongE?, false); Eval(13404, o is LongE?[], false); Eval(13405, o is char, false); Eval(13406, o is char[], false); Eval(13407, o is char?, false); Eval(13408, o is char?[], false); Eval(13409, o is bool, false); Eval(13410, o is bool[], false); Eval(13411, o is bool?, false); Eval(13412, o is bool?[], false); Eval(13413, o is byte, false); Eval(13414, o is byte[], false); Eval(13415, o is byte?, false); Eval(13416, o is byte?[], false); Eval(13417, o is sbyte, false); Eval(13418, o is sbyte[], false); Eval(13419, o is sbyte?, false); Eval(13420, o is sbyte?[], false); Eval(13421, o is short, false); Eval(13422, o is short[], false); Eval(13423, o is short?, false); Eval(13424, o is short?[], false); Eval(13425, o is ushort, false); Eval(13426, o is ushort[], false); Eval(13427, o is ushort?, false); Eval(13428, o is ushort?[], false); Eval(13429, o is int, false); Eval(13430, o is int[], false); Eval(13431, o is int?, false); Eval(13432, o is int?[], false); Eval(13433, o is uint, false); Eval(13434, o is uint[], false); Eval(13435, o is uint?, false); Eval(13436, o is uint?[], false); Eval(13437, o is long, false); Eval(13438, o is long[], false); Eval(13439, o is long?, false); Eval(13440, o is long?[], false); Eval(13441, o is ulong, false); Eval(13442, o is ulong[], false); Eval(13443, o is ulong?, false); Eval(13444, o is ulong?[], false); Eval(13445, o is float, false); Eval(13446, o is float[], false); Eval(13447, o is float?, false); Eval(13448, o is float?[], false); Eval(13449, o is double, false); Eval(13450, o is double[], false); Eval(13451, o is double?, false); Eval(13452, o is double?[], false); Eval(13453, o is decimal, false); Eval(13454, o is decimal[], false); Eval(13455, o is decimal?, false); Eval(13456, o is decimal?[], false); Eval(13457, o is IntPtr, false); Eval(13458, o is IntPtr[], false); Eval(13459, o is IntPtr?, false); Eval(13460, o is IntPtr?[], false); Eval(13461, o is UIntPtr, false); Eval(13462, o is UIntPtr[], false); Eval(13463, o is UIntPtr?, false); Eval(13464, o is UIntPtr?[], false); Eval(13465, o is Guid, false); Eval(13466, o is Guid[], false); Eval(13467, o is Guid?, false); Eval(13468, o is Guid?[], false); Eval(13469, o is GCHandle, false); Eval(13470, o is GCHandle[], false); Eval(13471, o is GCHandle?, false); Eval(13472, o is GCHandle?[], false); Eval(13473, o is object, false); Eval(13474, o is object[], false); Eval(13475, o is string, false); Eval(13476, o is string[], false); Eval(13477, o is ValueType, false); Eval(13478, o is ValueType[], false); Eval(13479, o is Array, false); Eval(13480, o is Array[], false); Eval(13481, o is Enum, false); Eval(13482, o is Enum[], false); Eval(13483, o is Delegate, false); Eval(13484, o is Delegate[], false); Eval(13485, o is MulticastDelegate, false); Eval(13486, o is MulticastDelegate[], false); Eval(13487, o is IEmpty, false); Eval(13488, o is IEmpty[], false); Eval(13489, o is INotEmpty, false); Eval(13490, o is INotEmpty[], false); Eval(13491, o is IEmptyGen<int>, false); Eval(13492, o is IEmptyGen<int>[], false); Eval(13493, o is INotEmptyGen<int>, false); Eval(13494, o is INotEmptyGen<int>[], false); Eval(13495, o is SimpleDelegate, false); Eval(13496, o is SimpleDelegate[], false); Eval(13497, o is GenericDelegate<int>, false); Eval(13498, o is GenericDelegate<int>[], false); Eval(13499, o is EmptyClass, false); Eval(13500, o is EmptyClass[], false); Eval(13501, o is NotEmptyClass, false); Eval(13502, o is NotEmptyClass[], false); Eval(13503, o is EmptyClassGen<int>, false); Eval(13504, o is EmptyClassGen<int>[], false); Eval(13505, o is NotEmptyClassGen<Guid>, false); Eval(13506, o is NotEmptyClassGen<Guid>[], false); Eval(13507, o is NotEmptyClassConstrainedGen<object>, false); Eval(13508, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13509, o is NestedClass, false); Eval(13510, o is NestedClass[], false); Eval(13511, o is NestedClassGen<Decimal>, false); Eval(13512, o is NestedClassGen<Decimal>[], false); Eval(13513, o is ImplementOneInterfaceC, false); Eval(13514, o is ImplementOneInterfaceC[], false); Eval(13515, o is ImplementTwoInterfaceC, false); Eval(13516, o is ImplementTwoInterfaceC[], false); Eval(13517, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13518, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13519, o is ImplementTwoInterfaceGenC<int>, false); Eval(13520, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13521, o is ImplementAllInterfaceC<int>, false); Eval(13522, o is ImplementAllInterfaceC<int>[], false); Eval(13523, o is SealedClass, false); Eval(13524, o is SealedClass[], false); } } // end of test case 0023 private static void TestCase0024() { { short v = default(short); ValueType o = v; Eval(13525, o is EmptyStruct, false); Eval(13526, o is EmptyStruct[], false); Eval(13527, o is EmptyStruct?, false); Eval(13528, o is EmptyStruct?[], false); Eval(13529, o is NotEmptyStruct, false); Eval(13530, o is NotEmptyStruct[], false); Eval(13531, o is NotEmptyStruct?, false); Eval(13532, o is NotEmptyStruct?[], false); Eval(13533, o is EmptyStructGen<int>, false); Eval(13534, o is EmptyStructGen<int>[], false); Eval(13535, o is EmptyStructGen<int>?, false); Eval(13536, o is EmptyStructGen<int>?[], false); Eval(13537, o is NotEmptyStructGen<Guid>, false); Eval(13538, o is NotEmptyStructGen<Guid>[], false); Eval(13539, o is NotEmptyStructGen<Guid>?, false); Eval(13540, o is NotEmptyStructGen<Guid>?[], false); Eval(13541, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13542, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13543, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13544, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13545, o is NestedStruct, false); Eval(13546, o is NestedStruct[], false); Eval(13547, o is NestedStruct?, false); Eval(13548, o is NestedStruct?[], false); Eval(13549, o is NestedStructGen<Decimal>, false); Eval(13550, o is NestedStructGen<Decimal>[], false); Eval(13551, o is NestedStructGen<Decimal>?, false); Eval(13552, o is NestedStructGen<Decimal>?[], false); Eval(13553, o is ExplicitFieldOffsetStruct, false); Eval(13554, o is ExplicitFieldOffsetStruct[], false); Eval(13555, o is ExplicitFieldOffsetStruct?, false); Eval(13556, o is ExplicitFieldOffsetStruct?[], false); Eval(13565, o is MarshalAsStruct, false); Eval(13566, o is MarshalAsStruct[], false); Eval(13567, o is MarshalAsStruct?, false); Eval(13568, o is MarshalAsStruct?[], false); Eval(13569, o is ImplementOneInterface, false); Eval(13570, o is ImplementOneInterface[], false); Eval(13571, o is ImplementOneInterface?, false); Eval(13572, o is ImplementOneInterface?[], false); Eval(13573, o is ImplementTwoInterface, false); Eval(13574, o is ImplementTwoInterface[], false); Eval(13575, o is ImplementTwoInterface?, false); Eval(13576, o is ImplementTwoInterface?[], false); Eval(13577, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13578, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13579, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13580, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13581, o is ImplementTwoInterfaceGen<int>, false); Eval(13582, o is ImplementTwoInterfaceGen<int>[], false); Eval(13583, o is ImplementTwoInterfaceGen<int>?, false); Eval(13584, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13585, o is ImplementAllInterface<int>, false); Eval(13586, o is ImplementAllInterface<int>[], false); Eval(13587, o is ImplementAllInterface<int>?, false); Eval(13588, o is ImplementAllInterface<int>?[], false); Eval(13589, o is IntE, false); Eval(13590, o is IntE[], false); Eval(13591, o is IntE?, false); Eval(13592, o is IntE?[], false); Eval(13593, o is ByteE, false); Eval(13594, o is ByteE[], false); Eval(13595, o is ByteE?, false); Eval(13596, o is ByteE?[], false); Eval(13597, o is LongE, false); Eval(13598, o is LongE[], false); Eval(13599, o is LongE?, false); Eval(13600, o is LongE?[], false); Eval(13601, o is char, false); Eval(13602, o is char[], false); Eval(13603, o is char?, false); Eval(13604, o is char?[], false); Eval(13605, o is bool, false); Eval(13606, o is bool[], false); Eval(13607, o is bool?, false); Eval(13608, o is bool?[], false); Eval(13609, o is byte, false); Eval(13610, o is byte[], false); Eval(13611, o is byte?, false); Eval(13612, o is byte?[], false); Eval(13613, o is sbyte, false); Eval(13614, o is sbyte[], false); Eval(13615, o is sbyte?, false); Eval(13616, o is sbyte?[], false); Eval(13617, o is short, true); Eval(13618, o is short[], false); Eval(13619, o is short?, true); Eval(13620, o is short?[], false); Eval(13621, o is ushort, false); Eval(13622, o is ushort[], false); Eval(13623, o is ushort?, false); Eval(13624, o is ushort?[], false); Eval(13625, o is int, false); Eval(13626, o is int[], false); Eval(13627, o is int?, false); Eval(13628, o is int?[], false); Eval(13629, o is uint, false); Eval(13630, o is uint[], false); Eval(13631, o is uint?, false); Eval(13632, o is uint?[], false); Eval(13633, o is long, false); Eval(13634, o is long[], false); Eval(13635, o is long?, false); Eval(13636, o is long?[], false); Eval(13637, o is ulong, false); Eval(13638, o is ulong[], false); Eval(13639, o is ulong?, false); Eval(13640, o is ulong?[], false); Eval(13641, o is float, false); Eval(13642, o is float[], false); Eval(13643, o is float?, false); Eval(13644, o is float?[], false); Eval(13645, o is double, false); Eval(13646, o is double[], false); Eval(13647, o is double?, false); Eval(13648, o is double?[], false); Eval(13649, o is decimal, false); Eval(13650, o is decimal[], false); Eval(13651, o is decimal?, false); Eval(13652, o is decimal?[], false); Eval(13653, o is IntPtr, false); Eval(13654, o is IntPtr[], false); Eval(13655, o is IntPtr?, false); Eval(13656, o is IntPtr?[], false); Eval(13657, o is UIntPtr, false); Eval(13658, o is UIntPtr[], false); Eval(13659, o is UIntPtr?, false); Eval(13660, o is UIntPtr?[], false); Eval(13661, o is Guid, false); Eval(13662, o is Guid[], false); Eval(13663, o is Guid?, false); Eval(13664, o is Guid?[], false); Eval(13665, o is GCHandle, false); Eval(13666, o is GCHandle[], false); Eval(13667, o is GCHandle?, false); Eval(13668, o is GCHandle?[], false); Eval(13669, o is object, true); Eval(13670, o is object[], false); Eval(13671, o is string, false); Eval(13672, o is string[], false); Eval(13673, o is ValueType, true); Eval(13674, o is ValueType[], false); Eval(13675, o is Array, false); Eval(13676, o is Array[], false); Eval(13677, o is Enum, false); Eval(13678, o is Enum[], false); Eval(13679, o is Delegate, false); Eval(13680, o is Delegate[], false); Eval(13681, o is MulticastDelegate, false); Eval(13682, o is MulticastDelegate[], false); Eval(13683, o is IEmpty, false); Eval(13684, o is IEmpty[], false); Eval(13685, o is INotEmpty, false); Eval(13686, o is INotEmpty[], false); Eval(13687, o is IEmptyGen<int>, false); Eval(13688, o is IEmptyGen<int>[], false); Eval(13689, o is INotEmptyGen<int>, false); Eval(13690, o is INotEmptyGen<int>[], false); Eval(13691, o is SimpleDelegate, false); Eval(13692, o is SimpleDelegate[], false); Eval(13693, o is GenericDelegate<int>, false); Eval(13694, o is GenericDelegate<int>[], false); Eval(13695, o is EmptyClass, false); Eval(13696, o is EmptyClass[], false); Eval(13697, o is NotEmptyClass, false); Eval(13698, o is NotEmptyClass[], false); Eval(13699, o is EmptyClassGen<int>, false); Eval(13700, o is EmptyClassGen<int>[], false); Eval(13701, o is NotEmptyClassGen<Guid>, false); Eval(13702, o is NotEmptyClassGen<Guid>[], false); Eval(13703, o is NotEmptyClassConstrainedGen<object>, false); Eval(13704, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13705, o is NestedClass, false); Eval(13706, o is NestedClass[], false); Eval(13707, o is NestedClassGen<Decimal>, false); Eval(13708, o is NestedClassGen<Decimal>[], false); Eval(13709, o is ImplementOneInterfaceC, false); Eval(13710, o is ImplementOneInterfaceC[], false); Eval(13711, o is ImplementTwoInterfaceC, false); Eval(13712, o is ImplementTwoInterfaceC[], false); Eval(13713, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13714, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13715, o is ImplementTwoInterfaceGenC<int>, false); Eval(13716, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13717, o is ImplementAllInterfaceC<int>, false); Eval(13718, o is ImplementAllInterfaceC<int>[], false); Eval(13719, o is SealedClass, false); Eval(13720, o is SealedClass[], false); } { short? v = default(short); ValueType o = v; Eval(13721, o is EmptyStruct, false); Eval(13722, o is EmptyStruct[], false); Eval(13723, o is EmptyStruct?, false); Eval(13724, o is EmptyStruct?[], false); Eval(13725, o is NotEmptyStruct, false); Eval(13726, o is NotEmptyStruct[], false); Eval(13727, o is NotEmptyStruct?, false); Eval(13728, o is NotEmptyStruct?[], false); Eval(13729, o is EmptyStructGen<int>, false); Eval(13730, o is EmptyStructGen<int>[], false); Eval(13731, o is EmptyStructGen<int>?, false); Eval(13732, o is EmptyStructGen<int>?[], false); Eval(13733, o is NotEmptyStructGen<Guid>, false); Eval(13734, o is NotEmptyStructGen<Guid>[], false); Eval(13735, o is NotEmptyStructGen<Guid>?, false); Eval(13736, o is NotEmptyStructGen<Guid>?[], false); Eval(13737, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13738, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13739, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13740, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13741, o is NestedStruct, false); Eval(13742, o is NestedStruct[], false); Eval(13743, o is NestedStruct?, false); Eval(13744, o is NestedStruct?[], false); Eval(13745, o is NestedStructGen<Decimal>, false); Eval(13746, o is NestedStructGen<Decimal>[], false); Eval(13747, o is NestedStructGen<Decimal>?, false); Eval(13748, o is NestedStructGen<Decimal>?[], false); Eval(13749, o is ExplicitFieldOffsetStruct, false); Eval(13750, o is ExplicitFieldOffsetStruct[], false); Eval(13751, o is ExplicitFieldOffsetStruct?, false); Eval(13752, o is ExplicitFieldOffsetStruct?[], false); Eval(13761, o is MarshalAsStruct, false); Eval(13762, o is MarshalAsStruct[], false); Eval(13763, o is MarshalAsStruct?, false); Eval(13764, o is MarshalAsStruct?[], false); Eval(13765, o is ImplementOneInterface, false); Eval(13766, o is ImplementOneInterface[], false); Eval(13767, o is ImplementOneInterface?, false); Eval(13768, o is ImplementOneInterface?[], false); Eval(13769, o is ImplementTwoInterface, false); Eval(13770, o is ImplementTwoInterface[], false); Eval(13771, o is ImplementTwoInterface?, false); Eval(13772, o is ImplementTwoInterface?[], false); Eval(13773, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13774, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13775, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13776, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13777, o is ImplementTwoInterfaceGen<int>, false); Eval(13778, o is ImplementTwoInterfaceGen<int>[], false); Eval(13779, o is ImplementTwoInterfaceGen<int>?, false); Eval(13780, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13781, o is ImplementAllInterface<int>, false); Eval(13782, o is ImplementAllInterface<int>[], false); Eval(13783, o is ImplementAllInterface<int>?, false); Eval(13784, o is ImplementAllInterface<int>?[], false); Eval(13785, o is IntE, false); Eval(13786, o is IntE[], false); Eval(13787, o is IntE?, false); Eval(13788, o is IntE?[], false); Eval(13789, o is ByteE, false); Eval(13790, o is ByteE[], false); Eval(13791, o is ByteE?, false); Eval(13792, o is ByteE?[], false); Eval(13793, o is LongE, false); Eval(13794, o is LongE[], false); Eval(13795, o is LongE?, false); Eval(13796, o is LongE?[], false); Eval(13797, o is char, false); Eval(13798, o is char[], false); Eval(13799, o is char?, false); Eval(13800, o is char?[], false); Eval(13801, o is bool, false); Eval(13802, o is bool[], false); Eval(13803, o is bool?, false); Eval(13804, o is bool?[], false); Eval(13805, o is byte, false); Eval(13806, o is byte[], false); Eval(13807, o is byte?, false); Eval(13808, o is byte?[], false); Eval(13809, o is sbyte, false); Eval(13810, o is sbyte[], false); Eval(13811, o is sbyte?, false); Eval(13812, o is sbyte?[], false); Eval(13813, o is short, true); Eval(13814, o is short[], false); Eval(13815, o is short?, true); Eval(13816, o is short?[], false); Eval(13817, o is ushort, false); Eval(13818, o is ushort[], false); Eval(13819, o is ushort?, false); Eval(13820, o is ushort?[], false); Eval(13821, o is int, false); Eval(13822, o is int[], false); Eval(13823, o is int?, false); Eval(13824, o is int?[], false); Eval(13825, o is uint, false); Eval(13826, o is uint[], false); Eval(13827, o is uint?, false); Eval(13828, o is uint?[], false); Eval(13829, o is long, false); Eval(13830, o is long[], false); Eval(13831, o is long?, false); Eval(13832, o is long?[], false); Eval(13833, o is ulong, false); Eval(13834, o is ulong[], false); Eval(13835, o is ulong?, false); Eval(13836, o is ulong?[], false); Eval(13837, o is float, false); Eval(13838, o is float[], false); Eval(13839, o is float?, false); Eval(13840, o is float?[], false); Eval(13841, o is double, false); Eval(13842, o is double[], false); Eval(13843, o is double?, false); Eval(13844, o is double?[], false); Eval(13845, o is decimal, false); Eval(13846, o is decimal[], false); Eval(13847, o is decimal?, false); Eval(13848, o is decimal?[], false); Eval(13849, o is IntPtr, false); Eval(13850, o is IntPtr[], false); Eval(13851, o is IntPtr?, false); Eval(13852, o is IntPtr?[], false); Eval(13853, o is UIntPtr, false); Eval(13854, o is UIntPtr[], false); Eval(13855, o is UIntPtr?, false); Eval(13856, o is UIntPtr?[], false); Eval(13857, o is Guid, false); Eval(13858, o is Guid[], false); Eval(13859, o is Guid?, false); Eval(13860, o is Guid?[], false); Eval(13861, o is GCHandle, false); Eval(13862, o is GCHandle[], false); Eval(13863, o is GCHandle?, false); Eval(13864, o is GCHandle?[], false); Eval(13865, o is object, true); Eval(13866, o is object[], false); Eval(13867, o is string, false); Eval(13868, o is string[], false); Eval(13869, o is ValueType, true); Eval(13870, o is ValueType[], false); Eval(13871, o is Array, false); Eval(13872, o is Array[], false); Eval(13873, o is Enum, false); Eval(13874, o is Enum[], false); Eval(13875, o is Delegate, false); Eval(13876, o is Delegate[], false); Eval(13877, o is MulticastDelegate, false); Eval(13878, o is MulticastDelegate[], false); Eval(13879, o is IEmpty, false); Eval(13880, o is IEmpty[], false); Eval(13881, o is INotEmpty, false); Eval(13882, o is INotEmpty[], false); Eval(13883, o is IEmptyGen<int>, false); Eval(13884, o is IEmptyGen<int>[], false); Eval(13885, o is INotEmptyGen<int>, false); Eval(13886, o is INotEmptyGen<int>[], false); Eval(13887, o is SimpleDelegate, false); Eval(13888, o is SimpleDelegate[], false); Eval(13889, o is GenericDelegate<int>, false); Eval(13890, o is GenericDelegate<int>[], false); Eval(13891, o is EmptyClass, false); Eval(13892, o is EmptyClass[], false); Eval(13893, o is NotEmptyClass, false); Eval(13894, o is NotEmptyClass[], false); Eval(13895, o is EmptyClassGen<int>, false); Eval(13896, o is EmptyClassGen<int>[], false); Eval(13897, o is NotEmptyClassGen<Guid>, false); Eval(13898, o is NotEmptyClassGen<Guid>[], false); Eval(13899, o is NotEmptyClassConstrainedGen<object>, false); Eval(13900, o is NotEmptyClassConstrainedGen<object>[], false); Eval(13901, o is NestedClass, false); Eval(13902, o is NestedClass[], false); Eval(13903, o is NestedClassGen<Decimal>, false); Eval(13904, o is NestedClassGen<Decimal>[], false); Eval(13905, o is ImplementOneInterfaceC, false); Eval(13906, o is ImplementOneInterfaceC[], false); Eval(13907, o is ImplementTwoInterfaceC, false); Eval(13908, o is ImplementTwoInterfaceC[], false); Eval(13909, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(13910, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(13911, o is ImplementTwoInterfaceGenC<int>, false); Eval(13912, o is ImplementTwoInterfaceGenC<int>[], false); Eval(13913, o is ImplementAllInterfaceC<int>, false); Eval(13914, o is ImplementAllInterfaceC<int>[], false); Eval(13915, o is SealedClass, false); Eval(13916, o is SealedClass[], false); } { short? v = default(short?); ValueType o = v; Eval(13917, o is EmptyStruct, false); Eval(13918, o is EmptyStruct[], false); Eval(13919, o is EmptyStruct?, false); Eval(13920, o is EmptyStruct?[], false); Eval(13921, o is NotEmptyStruct, false); Eval(13922, o is NotEmptyStruct[], false); Eval(13923, o is NotEmptyStruct?, false); Eval(13924, o is NotEmptyStruct?[], false); Eval(13925, o is EmptyStructGen<int>, false); Eval(13926, o is EmptyStructGen<int>[], false); Eval(13927, o is EmptyStructGen<int>?, false); Eval(13928, o is EmptyStructGen<int>?[], false); Eval(13929, o is NotEmptyStructGen<Guid>, false); Eval(13930, o is NotEmptyStructGen<Guid>[], false); Eval(13931, o is NotEmptyStructGen<Guid>?, false); Eval(13932, o is NotEmptyStructGen<Guid>?[], false); Eval(13933, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(13934, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(13935, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(13936, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(13937, o is NestedStruct, false); Eval(13938, o is NestedStruct[], false); Eval(13939, o is NestedStruct?, false); Eval(13940, o is NestedStruct?[], false); Eval(13941, o is NestedStructGen<Decimal>, false); Eval(13942, o is NestedStructGen<Decimal>[], false); Eval(13943, o is NestedStructGen<Decimal>?, false); Eval(13944, o is NestedStructGen<Decimal>?[], false); Eval(13945, o is ExplicitFieldOffsetStruct, false); Eval(13946, o is ExplicitFieldOffsetStruct[], false); Eval(13947, o is ExplicitFieldOffsetStruct?, false); Eval(13948, o is ExplicitFieldOffsetStruct?[], false); Eval(13957, o is MarshalAsStruct, false); Eval(13958, o is MarshalAsStruct[], false); Eval(13959, o is MarshalAsStruct?, false); Eval(13960, o is MarshalAsStruct?[], false); Eval(13961, o is ImplementOneInterface, false); Eval(13962, o is ImplementOneInterface[], false); Eval(13963, o is ImplementOneInterface?, false); Eval(13964, o is ImplementOneInterface?[], false); Eval(13965, o is ImplementTwoInterface, false); Eval(13966, o is ImplementTwoInterface[], false); Eval(13967, o is ImplementTwoInterface?, false); Eval(13968, o is ImplementTwoInterface?[], false); Eval(13969, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(13970, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(13971, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(13972, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(13973, o is ImplementTwoInterfaceGen<int>, false); Eval(13974, o is ImplementTwoInterfaceGen<int>[], false); Eval(13975, o is ImplementTwoInterfaceGen<int>?, false); Eval(13976, o is ImplementTwoInterfaceGen<int>?[], false); Eval(13977, o is ImplementAllInterface<int>, false); Eval(13978, o is ImplementAllInterface<int>[], false); Eval(13979, o is ImplementAllInterface<int>?, false); Eval(13980, o is ImplementAllInterface<int>?[], false); Eval(13981, o is IntE, false); Eval(13982, o is IntE[], false); Eval(13983, o is IntE?, false); Eval(13984, o is IntE?[], false); Eval(13985, o is ByteE, false); Eval(13986, o is ByteE[], false); Eval(13987, o is ByteE?, false); Eval(13988, o is ByteE?[], false); Eval(13989, o is LongE, false); Eval(13990, o is LongE[], false); Eval(13991, o is LongE?, false); Eval(13992, o is LongE?[], false); Eval(13993, o is char, false); Eval(13994, o is char[], false); Eval(13995, o is char?, false); Eval(13996, o is char?[], false); Eval(13997, o is bool, false); Eval(13998, o is bool[], false); Eval(13999, o is bool?, false); Eval(14000, o is bool?[], false); Eval(14001, o is byte, false); Eval(14002, o is byte[], false); Eval(14003, o is byte?, false); Eval(14004, o is byte?[], false); Eval(14005, o is sbyte, false); Eval(14006, o is sbyte[], false); Eval(14007, o is sbyte?, false); Eval(14008, o is sbyte?[], false); Eval(14009, o is short, false); Eval(14010, o is short[], false); Eval(14011, o is short?, false); Eval(14012, o is short?[], false); Eval(14013, o is ushort, false); Eval(14014, o is ushort[], false); Eval(14015, o is ushort?, false); Eval(14016, o is ushort?[], false); Eval(14017, o is int, false); Eval(14018, o is int[], false); Eval(14019, o is int?, false); Eval(14020, o is int?[], false); Eval(14021, o is uint, false); Eval(14022, o is uint[], false); Eval(14023, o is uint?, false); Eval(14024, o is uint?[], false); Eval(14025, o is long, false); Eval(14026, o is long[], false); Eval(14027, o is long?, false); Eval(14028, o is long?[], false); Eval(14029, o is ulong, false); Eval(14030, o is ulong[], false); Eval(14031, o is ulong?, false); Eval(14032, o is ulong?[], false); Eval(14033, o is float, false); Eval(14034, o is float[], false); Eval(14035, o is float?, false); Eval(14036, o is float?[], false); Eval(14037, o is double, false); Eval(14038, o is double[], false); Eval(14039, o is double?, false); Eval(14040, o is double?[], false); Eval(14041, o is decimal, false); Eval(14042, o is decimal[], false); Eval(14043, o is decimal?, false); Eval(14044, o is decimal?[], false); Eval(14045, o is IntPtr, false); Eval(14046, o is IntPtr[], false); Eval(14047, o is IntPtr?, false); Eval(14048, o is IntPtr?[], false); Eval(14049, o is UIntPtr, false); Eval(14050, o is UIntPtr[], false); Eval(14051, o is UIntPtr?, false); Eval(14052, o is UIntPtr?[], false); Eval(14053, o is Guid, false); Eval(14054, o is Guid[], false); Eval(14055, o is Guid?, false); Eval(14056, o is Guid?[], false); Eval(14057, o is GCHandle, false); Eval(14058, o is GCHandle[], false); Eval(14059, o is GCHandle?, false); Eval(14060, o is GCHandle?[], false); Eval(14061, o is object, false); Eval(14062, o is object[], false); Eval(14063, o is string, false); Eval(14064, o is string[], false); Eval(14065, o is ValueType, false); Eval(14066, o is ValueType[], false); Eval(14067, o is Array, false); Eval(14068, o is Array[], false); Eval(14069, o is Enum, false); Eval(14070, o is Enum[], false); Eval(14071, o is Delegate, false); Eval(14072, o is Delegate[], false); Eval(14073, o is MulticastDelegate, false); Eval(14074, o is MulticastDelegate[], false); Eval(14075, o is IEmpty, false); Eval(14076, o is IEmpty[], false); Eval(14077, o is INotEmpty, false); Eval(14078, o is INotEmpty[], false); Eval(14079, o is IEmptyGen<int>, false); Eval(14080, o is IEmptyGen<int>[], false); Eval(14081, o is INotEmptyGen<int>, false); Eval(14082, o is INotEmptyGen<int>[], false); Eval(14083, o is SimpleDelegate, false); Eval(14084, o is SimpleDelegate[], false); Eval(14085, o is GenericDelegate<int>, false); Eval(14086, o is GenericDelegate<int>[], false); Eval(14087, o is EmptyClass, false); Eval(14088, o is EmptyClass[], false); Eval(14089, o is NotEmptyClass, false); Eval(14090, o is NotEmptyClass[], false); Eval(14091, o is EmptyClassGen<int>, false); Eval(14092, o is EmptyClassGen<int>[], false); Eval(14093, o is NotEmptyClassGen<Guid>, false); Eval(14094, o is NotEmptyClassGen<Guid>[], false); Eval(14095, o is NotEmptyClassConstrainedGen<object>, false); Eval(14096, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14097, o is NestedClass, false); Eval(14098, o is NestedClass[], false); Eval(14099, o is NestedClassGen<Decimal>, false); Eval(14100, o is NestedClassGen<Decimal>[], false); Eval(14101, o is ImplementOneInterfaceC, false); Eval(14102, o is ImplementOneInterfaceC[], false); Eval(14103, o is ImplementTwoInterfaceC, false); Eval(14104, o is ImplementTwoInterfaceC[], false); Eval(14105, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14106, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14107, o is ImplementTwoInterfaceGenC<int>, false); Eval(14108, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14109, o is ImplementAllInterfaceC<int>, false); Eval(14110, o is ImplementAllInterfaceC<int>[], false); Eval(14111, o is SealedClass, false); Eval(14112, o is SealedClass[], false); } } // end of test case 0024 private static void TestCase0025() { { ushort v = default(ushort); ValueType o = v; Eval(14113, o is EmptyStruct, false); Eval(14114, o is EmptyStruct[], false); Eval(14115, o is EmptyStruct?, false); Eval(14116, o is EmptyStruct?[], false); Eval(14117, o is NotEmptyStruct, false); Eval(14118, o is NotEmptyStruct[], false); Eval(14119, o is NotEmptyStruct?, false); Eval(14120, o is NotEmptyStruct?[], false); Eval(14121, o is EmptyStructGen<int>, false); Eval(14122, o is EmptyStructGen<int>[], false); Eval(14123, o is EmptyStructGen<int>?, false); Eval(14124, o is EmptyStructGen<int>?[], false); Eval(14125, o is NotEmptyStructGen<Guid>, false); Eval(14126, o is NotEmptyStructGen<Guid>[], false); Eval(14127, o is NotEmptyStructGen<Guid>?, false); Eval(14128, o is NotEmptyStructGen<Guid>?[], false); Eval(14129, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14130, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14131, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14132, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14133, o is NestedStruct, false); Eval(14134, o is NestedStruct[], false); Eval(14135, o is NestedStruct?, false); Eval(14136, o is NestedStruct?[], false); Eval(14137, o is NestedStructGen<Decimal>, false); Eval(14138, o is NestedStructGen<Decimal>[], false); Eval(14139, o is NestedStructGen<Decimal>?, false); Eval(14140, o is NestedStructGen<Decimal>?[], false); Eval(14141, o is ExplicitFieldOffsetStruct, false); Eval(14142, o is ExplicitFieldOffsetStruct[], false); Eval(14143, o is ExplicitFieldOffsetStruct?, false); Eval(14144, o is ExplicitFieldOffsetStruct?[], false); Eval(14153, o is MarshalAsStruct, false); Eval(14154, o is MarshalAsStruct[], false); Eval(14155, o is MarshalAsStruct?, false); Eval(14156, o is MarshalAsStruct?[], false); Eval(14157, o is ImplementOneInterface, false); Eval(14158, o is ImplementOneInterface[], false); Eval(14159, o is ImplementOneInterface?, false); Eval(14160, o is ImplementOneInterface?[], false); Eval(14161, o is ImplementTwoInterface, false); Eval(14162, o is ImplementTwoInterface[], false); Eval(14163, o is ImplementTwoInterface?, false); Eval(14164, o is ImplementTwoInterface?[], false); Eval(14165, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14166, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14167, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14168, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14169, o is ImplementTwoInterfaceGen<int>, false); Eval(14170, o is ImplementTwoInterfaceGen<int>[], false); Eval(14171, o is ImplementTwoInterfaceGen<int>?, false); Eval(14172, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14173, o is ImplementAllInterface<int>, false); Eval(14174, o is ImplementAllInterface<int>[], false); Eval(14175, o is ImplementAllInterface<int>?, false); Eval(14176, o is ImplementAllInterface<int>?[], false); Eval(14177, o is IntE, false); Eval(14178, o is IntE[], false); Eval(14179, o is IntE?, false); Eval(14180, o is IntE?[], false); Eval(14181, o is ByteE, false); Eval(14182, o is ByteE[], false); Eval(14183, o is ByteE?, false); Eval(14184, o is ByteE?[], false); Eval(14185, o is LongE, false); Eval(14186, o is LongE[], false); Eval(14187, o is LongE?, false); Eval(14188, o is LongE?[], false); Eval(14189, o is char, false); Eval(14190, o is char[], false); Eval(14191, o is char?, false); Eval(14192, o is char?[], false); Eval(14193, o is bool, false); Eval(14194, o is bool[], false); Eval(14195, o is bool?, false); Eval(14196, o is bool?[], false); Eval(14197, o is byte, false); Eval(14198, o is byte[], false); Eval(14199, o is byte?, false); Eval(14200, o is byte?[], false); Eval(14201, o is sbyte, false); Eval(14202, o is sbyte[], false); Eval(14203, o is sbyte?, false); Eval(14204, o is sbyte?[], false); Eval(14205, o is short, false); Eval(14206, o is short[], false); Eval(14207, o is short?, false); Eval(14208, o is short?[], false); Eval(14209, o is ushort, true); Eval(14210, o is ushort[], false); Eval(14211, o is ushort?, true); Eval(14212, o is ushort?[], false); Eval(14213, o is int, false); Eval(14214, o is int[], false); Eval(14215, o is int?, false); Eval(14216, o is int?[], false); Eval(14217, o is uint, false); Eval(14218, o is uint[], false); Eval(14219, o is uint?, false); Eval(14220, o is uint?[], false); Eval(14221, o is long, false); Eval(14222, o is long[], false); Eval(14223, o is long?, false); Eval(14224, o is long?[], false); Eval(14225, o is ulong, false); Eval(14226, o is ulong[], false); Eval(14227, o is ulong?, false); Eval(14228, o is ulong?[], false); Eval(14229, o is float, false); Eval(14230, o is float[], false); Eval(14231, o is float?, false); Eval(14232, o is float?[], false); Eval(14233, o is double, false); Eval(14234, o is double[], false); Eval(14235, o is double?, false); Eval(14236, o is double?[], false); Eval(14237, o is decimal, false); Eval(14238, o is decimal[], false); Eval(14239, o is decimal?, false); Eval(14240, o is decimal?[], false); Eval(14241, o is IntPtr, false); Eval(14242, o is IntPtr[], false); Eval(14243, o is IntPtr?, false); Eval(14244, o is IntPtr?[], false); Eval(14245, o is UIntPtr, false); Eval(14246, o is UIntPtr[], false); Eval(14247, o is UIntPtr?, false); Eval(14248, o is UIntPtr?[], false); Eval(14249, o is Guid, false); Eval(14250, o is Guid[], false); Eval(14251, o is Guid?, false); Eval(14252, o is Guid?[], false); Eval(14253, o is GCHandle, false); Eval(14254, o is GCHandle[], false); Eval(14255, o is GCHandle?, false); Eval(14256, o is GCHandle?[], false); Eval(14257, o is object, true); Eval(14258, o is object[], false); Eval(14259, o is string, false); Eval(14260, o is string[], false); Eval(14261, o is ValueType, true); Eval(14262, o is ValueType[], false); Eval(14263, o is Array, false); Eval(14264, o is Array[], false); Eval(14265, o is Enum, false); Eval(14266, o is Enum[], false); Eval(14267, o is Delegate, false); Eval(14268, o is Delegate[], false); Eval(14269, o is MulticastDelegate, false); Eval(14270, o is MulticastDelegate[], false); Eval(14271, o is IEmpty, false); Eval(14272, o is IEmpty[], false); Eval(14273, o is INotEmpty, false); Eval(14274, o is INotEmpty[], false); Eval(14275, o is IEmptyGen<int>, false); Eval(14276, o is IEmptyGen<int>[], false); Eval(14277, o is INotEmptyGen<int>, false); Eval(14278, o is INotEmptyGen<int>[], false); Eval(14279, o is SimpleDelegate, false); Eval(14280, o is SimpleDelegate[], false); Eval(14281, o is GenericDelegate<int>, false); Eval(14282, o is GenericDelegate<int>[], false); Eval(14283, o is EmptyClass, false); Eval(14284, o is EmptyClass[], false); Eval(14285, o is NotEmptyClass, false); Eval(14286, o is NotEmptyClass[], false); Eval(14287, o is EmptyClassGen<int>, false); Eval(14288, o is EmptyClassGen<int>[], false); Eval(14289, o is NotEmptyClassGen<Guid>, false); Eval(14290, o is NotEmptyClassGen<Guid>[], false); Eval(14291, o is NotEmptyClassConstrainedGen<object>, false); Eval(14292, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14293, o is NestedClass, false); Eval(14294, o is NestedClass[], false); Eval(14295, o is NestedClassGen<Decimal>, false); Eval(14296, o is NestedClassGen<Decimal>[], false); Eval(14297, o is ImplementOneInterfaceC, false); Eval(14298, o is ImplementOneInterfaceC[], false); Eval(14299, o is ImplementTwoInterfaceC, false); Eval(14300, o is ImplementTwoInterfaceC[], false); Eval(14301, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14302, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14303, o is ImplementTwoInterfaceGenC<int>, false); Eval(14304, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14305, o is ImplementAllInterfaceC<int>, false); Eval(14306, o is ImplementAllInterfaceC<int>[], false); Eval(14307, o is SealedClass, false); Eval(14308, o is SealedClass[], false); } { ushort? v = default(ushort); ValueType o = v; Eval(14309, o is EmptyStruct, false); Eval(14310, o is EmptyStruct[], false); Eval(14311, o is EmptyStruct?, false); Eval(14312, o is EmptyStruct?[], false); Eval(14313, o is NotEmptyStruct, false); Eval(14314, o is NotEmptyStruct[], false); Eval(14315, o is NotEmptyStruct?, false); Eval(14316, o is NotEmptyStruct?[], false); Eval(14317, o is EmptyStructGen<int>, false); Eval(14318, o is EmptyStructGen<int>[], false); Eval(14319, o is EmptyStructGen<int>?, false); Eval(14320, o is EmptyStructGen<int>?[], false); Eval(14321, o is NotEmptyStructGen<Guid>, false); Eval(14322, o is NotEmptyStructGen<Guid>[], false); Eval(14323, o is NotEmptyStructGen<Guid>?, false); Eval(14324, o is NotEmptyStructGen<Guid>?[], false); Eval(14325, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14326, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14327, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14328, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14329, o is NestedStruct, false); Eval(14330, o is NestedStruct[], false); Eval(14331, o is NestedStruct?, false); Eval(14332, o is NestedStruct?[], false); Eval(14333, o is NestedStructGen<Decimal>, false); Eval(14334, o is NestedStructGen<Decimal>[], false); Eval(14335, o is NestedStructGen<Decimal>?, false); Eval(14336, o is NestedStructGen<Decimal>?[], false); Eval(14337, o is ExplicitFieldOffsetStruct, false); Eval(14338, o is ExplicitFieldOffsetStruct[], false); Eval(14339, o is ExplicitFieldOffsetStruct?, false); Eval(14340, o is ExplicitFieldOffsetStruct?[], false); Eval(14349, o is MarshalAsStruct, false); Eval(14350, o is MarshalAsStruct[], false); Eval(14351, o is MarshalAsStruct?, false); Eval(14352, o is MarshalAsStruct?[], false); Eval(14353, o is ImplementOneInterface, false); Eval(14354, o is ImplementOneInterface[], false); Eval(14355, o is ImplementOneInterface?, false); Eval(14356, o is ImplementOneInterface?[], false); Eval(14357, o is ImplementTwoInterface, false); Eval(14358, o is ImplementTwoInterface[], false); Eval(14359, o is ImplementTwoInterface?, false); Eval(14360, o is ImplementTwoInterface?[], false); Eval(14361, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14362, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14363, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14364, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14365, o is ImplementTwoInterfaceGen<int>, false); Eval(14366, o is ImplementTwoInterfaceGen<int>[], false); Eval(14367, o is ImplementTwoInterfaceGen<int>?, false); Eval(14368, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14369, o is ImplementAllInterface<int>, false); Eval(14370, o is ImplementAllInterface<int>[], false); Eval(14371, o is ImplementAllInterface<int>?, false); Eval(14372, o is ImplementAllInterface<int>?[], false); Eval(14373, o is IntE, false); Eval(14374, o is IntE[], false); Eval(14375, o is IntE?, false); Eval(14376, o is IntE?[], false); Eval(14377, o is ByteE, false); Eval(14378, o is ByteE[], false); Eval(14379, o is ByteE?, false); Eval(14380, o is ByteE?[], false); Eval(14381, o is LongE, false); Eval(14382, o is LongE[], false); Eval(14383, o is LongE?, false); Eval(14384, o is LongE?[], false); Eval(14385, o is char, false); Eval(14386, o is char[], false); Eval(14387, o is char?, false); Eval(14388, o is char?[], false); Eval(14389, o is bool, false); Eval(14390, o is bool[], false); Eval(14391, o is bool?, false); Eval(14392, o is bool?[], false); Eval(14393, o is byte, false); Eval(14394, o is byte[], false); Eval(14395, o is byte?, false); Eval(14396, o is byte?[], false); Eval(14397, o is sbyte, false); Eval(14398, o is sbyte[], false); Eval(14399, o is sbyte?, false); Eval(14400, o is sbyte?[], false); Eval(14401, o is short, false); Eval(14402, o is short[], false); Eval(14403, o is short?, false); Eval(14404, o is short?[], false); Eval(14405, o is ushort, true); Eval(14406, o is ushort[], false); Eval(14407, o is ushort?, true); Eval(14408, o is ushort?[], false); Eval(14409, o is int, false); Eval(14410, o is int[], false); Eval(14411, o is int?, false); Eval(14412, o is int?[], false); Eval(14413, o is uint, false); Eval(14414, o is uint[], false); Eval(14415, o is uint?, false); Eval(14416, o is uint?[], false); Eval(14417, o is long, false); Eval(14418, o is long[], false); Eval(14419, o is long?, false); Eval(14420, o is long?[], false); Eval(14421, o is ulong, false); Eval(14422, o is ulong[], false); Eval(14423, o is ulong?, false); Eval(14424, o is ulong?[], false); Eval(14425, o is float, false); Eval(14426, o is float[], false); Eval(14427, o is float?, false); Eval(14428, o is float?[], false); Eval(14429, o is double, false); Eval(14430, o is double[], false); Eval(14431, o is double?, false); Eval(14432, o is double?[], false); Eval(14433, o is decimal, false); Eval(14434, o is decimal[], false); Eval(14435, o is decimal?, false); Eval(14436, o is decimal?[], false); Eval(14437, o is IntPtr, false); Eval(14438, o is IntPtr[], false); Eval(14439, o is IntPtr?, false); Eval(14440, o is IntPtr?[], false); Eval(14441, o is UIntPtr, false); Eval(14442, o is UIntPtr[], false); Eval(14443, o is UIntPtr?, false); Eval(14444, o is UIntPtr?[], false); Eval(14445, o is Guid, false); Eval(14446, o is Guid[], false); Eval(14447, o is Guid?, false); Eval(14448, o is Guid?[], false); Eval(14449, o is GCHandle, false); Eval(14450, o is GCHandle[], false); Eval(14451, o is GCHandle?, false); Eval(14452, o is GCHandle?[], false); Eval(14453, o is object, true); Eval(14454, o is object[], false); Eval(14455, o is string, false); Eval(14456, o is string[], false); Eval(14457, o is ValueType, true); Eval(14458, o is ValueType[], false); Eval(14459, o is Array, false); Eval(14460, o is Array[], false); Eval(14461, o is Enum, false); Eval(14462, o is Enum[], false); Eval(14463, o is Delegate, false); Eval(14464, o is Delegate[], false); Eval(14465, o is MulticastDelegate, false); Eval(14466, o is MulticastDelegate[], false); Eval(14467, o is IEmpty, false); Eval(14468, o is IEmpty[], false); Eval(14469, o is INotEmpty, false); Eval(14470, o is INotEmpty[], false); Eval(14471, o is IEmptyGen<int>, false); Eval(14472, o is IEmptyGen<int>[], false); Eval(14473, o is INotEmptyGen<int>, false); Eval(14474, o is INotEmptyGen<int>[], false); Eval(14475, o is SimpleDelegate, false); Eval(14476, o is SimpleDelegate[], false); Eval(14477, o is GenericDelegate<int>, false); Eval(14478, o is GenericDelegate<int>[], false); Eval(14479, o is EmptyClass, false); Eval(14480, o is EmptyClass[], false); Eval(14481, o is NotEmptyClass, false); Eval(14482, o is NotEmptyClass[], false); Eval(14483, o is EmptyClassGen<int>, false); Eval(14484, o is EmptyClassGen<int>[], false); Eval(14485, o is NotEmptyClassGen<Guid>, false); Eval(14486, o is NotEmptyClassGen<Guid>[], false); Eval(14487, o is NotEmptyClassConstrainedGen<object>, false); Eval(14488, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14489, o is NestedClass, false); Eval(14490, o is NestedClass[], false); Eval(14491, o is NestedClassGen<Decimal>, false); Eval(14492, o is NestedClassGen<Decimal>[], false); Eval(14493, o is ImplementOneInterfaceC, false); Eval(14494, o is ImplementOneInterfaceC[], false); Eval(14495, o is ImplementTwoInterfaceC, false); Eval(14496, o is ImplementTwoInterfaceC[], false); Eval(14497, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14498, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14499, o is ImplementTwoInterfaceGenC<int>, false); Eval(14500, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14501, o is ImplementAllInterfaceC<int>, false); Eval(14502, o is ImplementAllInterfaceC<int>[], false); Eval(14503, o is SealedClass, false); Eval(14504, o is SealedClass[], false); } { ushort? v = default(ushort?); ValueType o = v; Eval(14505, o is EmptyStruct, false); Eval(14506, o is EmptyStruct[], false); Eval(14507, o is EmptyStruct?, false); Eval(14508, o is EmptyStruct?[], false); Eval(14509, o is NotEmptyStruct, false); Eval(14510, o is NotEmptyStruct[], false); Eval(14511, o is NotEmptyStruct?, false); Eval(14512, o is NotEmptyStruct?[], false); Eval(14513, o is EmptyStructGen<int>, false); Eval(14514, o is EmptyStructGen<int>[], false); Eval(14515, o is EmptyStructGen<int>?, false); Eval(14516, o is EmptyStructGen<int>?[], false); Eval(14517, o is NotEmptyStructGen<Guid>, false); Eval(14518, o is NotEmptyStructGen<Guid>[], false); Eval(14519, o is NotEmptyStructGen<Guid>?, false); Eval(14520, o is NotEmptyStructGen<Guid>?[], false); Eval(14521, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14522, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14523, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14524, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14525, o is NestedStruct, false); Eval(14526, o is NestedStruct[], false); Eval(14527, o is NestedStruct?, false); Eval(14528, o is NestedStruct?[], false); Eval(14529, o is NestedStructGen<Decimal>, false); Eval(14530, o is NestedStructGen<Decimal>[], false); Eval(14531, o is NestedStructGen<Decimal>?, false); Eval(14532, o is NestedStructGen<Decimal>?[], false); Eval(14533, o is ExplicitFieldOffsetStruct, false); Eval(14534, o is ExplicitFieldOffsetStruct[], false); Eval(14535, o is ExplicitFieldOffsetStruct?, false); Eval(14536, o is ExplicitFieldOffsetStruct?[], false); Eval(14545, o is MarshalAsStruct, false); Eval(14546, o is MarshalAsStruct[], false); Eval(14547, o is MarshalAsStruct?, false); Eval(14548, o is MarshalAsStruct?[], false); Eval(14549, o is ImplementOneInterface, false); Eval(14550, o is ImplementOneInterface[], false); Eval(14551, o is ImplementOneInterface?, false); Eval(14552, o is ImplementOneInterface?[], false); Eval(14553, o is ImplementTwoInterface, false); Eval(14554, o is ImplementTwoInterface[], false); Eval(14555, o is ImplementTwoInterface?, false); Eval(14556, o is ImplementTwoInterface?[], false); Eval(14557, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14558, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14559, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14560, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14561, o is ImplementTwoInterfaceGen<int>, false); Eval(14562, o is ImplementTwoInterfaceGen<int>[], false); Eval(14563, o is ImplementTwoInterfaceGen<int>?, false); Eval(14564, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14565, o is ImplementAllInterface<int>, false); Eval(14566, o is ImplementAllInterface<int>[], false); Eval(14567, o is ImplementAllInterface<int>?, false); Eval(14568, o is ImplementAllInterface<int>?[], false); Eval(14569, o is IntE, false); Eval(14570, o is IntE[], false); Eval(14571, o is IntE?, false); Eval(14572, o is IntE?[], false); Eval(14573, o is ByteE, false); Eval(14574, o is ByteE[], false); Eval(14575, o is ByteE?, false); Eval(14576, o is ByteE?[], false); Eval(14577, o is LongE, false); Eval(14578, o is LongE[], false); Eval(14579, o is LongE?, false); Eval(14580, o is LongE?[], false); Eval(14581, o is char, false); Eval(14582, o is char[], false); Eval(14583, o is char?, false); Eval(14584, o is char?[], false); Eval(14585, o is bool, false); Eval(14586, o is bool[], false); Eval(14587, o is bool?, false); Eval(14588, o is bool?[], false); Eval(14589, o is byte, false); Eval(14590, o is byte[], false); Eval(14591, o is byte?, false); Eval(14592, o is byte?[], false); Eval(14593, o is sbyte, false); Eval(14594, o is sbyte[], false); Eval(14595, o is sbyte?, false); Eval(14596, o is sbyte?[], false); Eval(14597, o is short, false); Eval(14598, o is short[], false); Eval(14599, o is short?, false); Eval(14600, o is short?[], false); Eval(14601, o is ushort, false); Eval(14602, o is ushort[], false); Eval(14603, o is ushort?, false); Eval(14604, o is ushort?[], false); Eval(14605, o is int, false); Eval(14606, o is int[], false); Eval(14607, o is int?, false); Eval(14608, o is int?[], false); Eval(14609, o is uint, false); Eval(14610, o is uint[], false); Eval(14611, o is uint?, false); Eval(14612, o is uint?[], false); Eval(14613, o is long, false); Eval(14614, o is long[], false); Eval(14615, o is long?, false); Eval(14616, o is long?[], false); Eval(14617, o is ulong, false); Eval(14618, o is ulong[], false); Eval(14619, o is ulong?, false); Eval(14620, o is ulong?[], false); Eval(14621, o is float, false); Eval(14622, o is float[], false); Eval(14623, o is float?, false); Eval(14624, o is float?[], false); Eval(14625, o is double, false); Eval(14626, o is double[], false); Eval(14627, o is double?, false); Eval(14628, o is double?[], false); Eval(14629, o is decimal, false); Eval(14630, o is decimal[], false); Eval(14631, o is decimal?, false); Eval(14632, o is decimal?[], false); Eval(14633, o is IntPtr, false); Eval(14634, o is IntPtr[], false); Eval(14635, o is IntPtr?, false); Eval(14636, o is IntPtr?[], false); Eval(14637, o is UIntPtr, false); Eval(14638, o is UIntPtr[], false); Eval(14639, o is UIntPtr?, false); Eval(14640, o is UIntPtr?[], false); Eval(14641, o is Guid, false); Eval(14642, o is Guid[], false); Eval(14643, o is Guid?, false); Eval(14644, o is Guid?[], false); Eval(14645, o is GCHandle, false); Eval(14646, o is GCHandle[], false); Eval(14647, o is GCHandle?, false); Eval(14648, o is GCHandle?[], false); Eval(14649, o is object, false); Eval(14650, o is object[], false); Eval(14651, o is string, false); Eval(14652, o is string[], false); Eval(14653, o is ValueType, false); Eval(14654, o is ValueType[], false); Eval(14655, o is Array, false); Eval(14656, o is Array[], false); Eval(14657, o is Enum, false); Eval(14658, o is Enum[], false); Eval(14659, o is Delegate, false); Eval(14660, o is Delegate[], false); Eval(14661, o is MulticastDelegate, false); Eval(14662, o is MulticastDelegate[], false); Eval(14663, o is IEmpty, false); Eval(14664, o is IEmpty[], false); Eval(14665, o is INotEmpty, false); Eval(14666, o is INotEmpty[], false); Eval(14667, o is IEmptyGen<int>, false); Eval(14668, o is IEmptyGen<int>[], false); Eval(14669, o is INotEmptyGen<int>, false); Eval(14670, o is INotEmptyGen<int>[], false); Eval(14671, o is SimpleDelegate, false); Eval(14672, o is SimpleDelegate[], false); Eval(14673, o is GenericDelegate<int>, false); Eval(14674, o is GenericDelegate<int>[], false); Eval(14675, o is EmptyClass, false); Eval(14676, o is EmptyClass[], false); Eval(14677, o is NotEmptyClass, false); Eval(14678, o is NotEmptyClass[], false); Eval(14679, o is EmptyClassGen<int>, false); Eval(14680, o is EmptyClassGen<int>[], false); Eval(14681, o is NotEmptyClassGen<Guid>, false); Eval(14682, o is NotEmptyClassGen<Guid>[], false); Eval(14683, o is NotEmptyClassConstrainedGen<object>, false); Eval(14684, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14685, o is NestedClass, false); Eval(14686, o is NestedClass[], false); Eval(14687, o is NestedClassGen<Decimal>, false); Eval(14688, o is NestedClassGen<Decimal>[], false); Eval(14689, o is ImplementOneInterfaceC, false); Eval(14690, o is ImplementOneInterfaceC[], false); Eval(14691, o is ImplementTwoInterfaceC, false); Eval(14692, o is ImplementTwoInterfaceC[], false); Eval(14693, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14694, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14695, o is ImplementTwoInterfaceGenC<int>, false); Eval(14696, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14697, o is ImplementAllInterfaceC<int>, false); Eval(14698, o is ImplementAllInterfaceC<int>[], false); Eval(14699, o is SealedClass, false); Eval(14700, o is SealedClass[], false); } } // end of test case 0025 private static void TestCase0026() { { int v = default(int); ValueType o = v; Eval(14701, o is EmptyStruct, false); Eval(14702, o is EmptyStruct[], false); Eval(14703, o is EmptyStruct?, false); Eval(14704, o is EmptyStruct?[], false); Eval(14705, o is NotEmptyStruct, false); Eval(14706, o is NotEmptyStruct[], false); Eval(14707, o is NotEmptyStruct?, false); Eval(14708, o is NotEmptyStruct?[], false); Eval(14709, o is EmptyStructGen<int>, false); Eval(14710, o is EmptyStructGen<int>[], false); Eval(14711, o is EmptyStructGen<int>?, false); Eval(14712, o is EmptyStructGen<int>?[], false); Eval(14713, o is NotEmptyStructGen<Guid>, false); Eval(14714, o is NotEmptyStructGen<Guid>[], false); Eval(14715, o is NotEmptyStructGen<Guid>?, false); Eval(14716, o is NotEmptyStructGen<Guid>?[], false); Eval(14717, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14718, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14719, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14720, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14721, o is NestedStruct, false); Eval(14722, o is NestedStruct[], false); Eval(14723, o is NestedStruct?, false); Eval(14724, o is NestedStruct?[], false); Eval(14725, o is NestedStructGen<Decimal>, false); Eval(14726, o is NestedStructGen<Decimal>[], false); Eval(14727, o is NestedStructGen<Decimal>?, false); Eval(14728, o is NestedStructGen<Decimal>?[], false); Eval(14729, o is ExplicitFieldOffsetStruct, false); Eval(14730, o is ExplicitFieldOffsetStruct[], false); Eval(14731, o is ExplicitFieldOffsetStruct?, false); Eval(14732, o is ExplicitFieldOffsetStruct?[], false); Eval(14741, o is MarshalAsStruct, false); Eval(14742, o is MarshalAsStruct[], false); Eval(14743, o is MarshalAsStruct?, false); Eval(14744, o is MarshalAsStruct?[], false); Eval(14745, o is ImplementOneInterface, false); Eval(14746, o is ImplementOneInterface[], false); Eval(14747, o is ImplementOneInterface?, false); Eval(14748, o is ImplementOneInterface?[], false); Eval(14749, o is ImplementTwoInterface, false); Eval(14750, o is ImplementTwoInterface[], false); Eval(14751, o is ImplementTwoInterface?, false); Eval(14752, o is ImplementTwoInterface?[], false); Eval(14753, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14754, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14755, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14756, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14757, o is ImplementTwoInterfaceGen<int>, false); Eval(14758, o is ImplementTwoInterfaceGen<int>[], false); Eval(14759, o is ImplementTwoInterfaceGen<int>?, false); Eval(14760, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14761, o is ImplementAllInterface<int>, false); Eval(14762, o is ImplementAllInterface<int>[], false); Eval(14763, o is ImplementAllInterface<int>?, false); Eval(14764, o is ImplementAllInterface<int>?[], false); Eval(14765, o is IntE, false); Eval(14766, o is IntE[], false); Eval(14767, o is IntE?, false); Eval(14768, o is IntE?[], false); Eval(14769, o is ByteE, false); Eval(14770, o is ByteE[], false); Eval(14771, o is ByteE?, false); Eval(14772, o is ByteE?[], false); Eval(14773, o is LongE, false); Eval(14774, o is LongE[], false); Eval(14775, o is LongE?, false); Eval(14776, o is LongE?[], false); Eval(14777, o is char, false); Eval(14778, o is char[], false); Eval(14779, o is char?, false); Eval(14780, o is char?[], false); Eval(14781, o is bool, false); Eval(14782, o is bool[], false); Eval(14783, o is bool?, false); Eval(14784, o is bool?[], false); Eval(14785, o is byte, false); Eval(14786, o is byte[], false); Eval(14787, o is byte?, false); Eval(14788, o is byte?[], false); Eval(14789, o is sbyte, false); Eval(14790, o is sbyte[], false); Eval(14791, o is sbyte?, false); Eval(14792, o is sbyte?[], false); Eval(14793, o is short, false); Eval(14794, o is short[], false); Eval(14795, o is short?, false); Eval(14796, o is short?[], false); Eval(14797, o is ushort, false); Eval(14798, o is ushort[], false); Eval(14799, o is ushort?, false); Eval(14800, o is ushort?[], false); Eval(14801, o is int, true); Eval(14802, o is int[], false); Eval(14803, o is int?, true); Eval(14804, o is int?[], false); Eval(14805, o is uint, false); Eval(14806, o is uint[], false); Eval(14807, o is uint?, false); Eval(14808, o is uint?[], false); Eval(14809, o is long, false); Eval(14810, o is long[], false); Eval(14811, o is long?, false); Eval(14812, o is long?[], false); Eval(14813, o is ulong, false); Eval(14814, o is ulong[], false); Eval(14815, o is ulong?, false); Eval(14816, o is ulong?[], false); Eval(14817, o is float, false); Eval(14818, o is float[], false); Eval(14819, o is float?, false); Eval(14820, o is float?[], false); Eval(14821, o is double, false); Eval(14822, o is double[], false); Eval(14823, o is double?, false); Eval(14824, o is double?[], false); Eval(14825, o is decimal, false); Eval(14826, o is decimal[], false); Eval(14827, o is decimal?, false); Eval(14828, o is decimal?[], false); Eval(14829, o is IntPtr, false); Eval(14830, o is IntPtr[], false); Eval(14831, o is IntPtr?, false); Eval(14832, o is IntPtr?[], false); Eval(14833, o is UIntPtr, false); Eval(14834, o is UIntPtr[], false); Eval(14835, o is UIntPtr?, false); Eval(14836, o is UIntPtr?[], false); Eval(14837, o is Guid, false); Eval(14838, o is Guid[], false); Eval(14839, o is Guid?, false); Eval(14840, o is Guid?[], false); Eval(14841, o is GCHandle, false); Eval(14842, o is GCHandle[], false); Eval(14843, o is GCHandle?, false); Eval(14844, o is GCHandle?[], false); Eval(14845, o is object, true); Eval(14846, o is object[], false); Eval(14847, o is string, false); Eval(14848, o is string[], false); Eval(14849, o is ValueType, true); Eval(14850, o is ValueType[], false); Eval(14851, o is Array, false); Eval(14852, o is Array[], false); Eval(14853, o is Enum, false); Eval(14854, o is Enum[], false); Eval(14855, o is Delegate, false); Eval(14856, o is Delegate[], false); Eval(14857, o is MulticastDelegate, false); Eval(14858, o is MulticastDelegate[], false); Eval(14859, o is IEmpty, false); Eval(14860, o is IEmpty[], false); Eval(14861, o is INotEmpty, false); Eval(14862, o is INotEmpty[], false); Eval(14863, o is IEmptyGen<int>, false); Eval(14864, o is IEmptyGen<int>[], false); Eval(14865, o is INotEmptyGen<int>, false); Eval(14866, o is INotEmptyGen<int>[], false); Eval(14867, o is SimpleDelegate, false); Eval(14868, o is SimpleDelegate[], false); Eval(14869, o is GenericDelegate<int>, false); Eval(14870, o is GenericDelegate<int>[], false); Eval(14871, o is EmptyClass, false); Eval(14872, o is EmptyClass[], false); Eval(14873, o is NotEmptyClass, false); Eval(14874, o is NotEmptyClass[], false); Eval(14875, o is EmptyClassGen<int>, false); Eval(14876, o is EmptyClassGen<int>[], false); Eval(14877, o is NotEmptyClassGen<Guid>, false); Eval(14878, o is NotEmptyClassGen<Guid>[], false); Eval(14879, o is NotEmptyClassConstrainedGen<object>, false); Eval(14880, o is NotEmptyClassConstrainedGen<object>[], false); Eval(14881, o is NestedClass, false); Eval(14882, o is NestedClass[], false); Eval(14883, o is NestedClassGen<Decimal>, false); Eval(14884, o is NestedClassGen<Decimal>[], false); Eval(14885, o is ImplementOneInterfaceC, false); Eval(14886, o is ImplementOneInterfaceC[], false); Eval(14887, o is ImplementTwoInterfaceC, false); Eval(14888, o is ImplementTwoInterfaceC[], false); Eval(14889, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(14890, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(14891, o is ImplementTwoInterfaceGenC<int>, false); Eval(14892, o is ImplementTwoInterfaceGenC<int>[], false); Eval(14893, o is ImplementAllInterfaceC<int>, false); Eval(14894, o is ImplementAllInterfaceC<int>[], false); Eval(14895, o is SealedClass, false); Eval(14896, o is SealedClass[], false); } { int? v = default(int); ValueType o = v; Eval(14897, o is EmptyStruct, false); Eval(14898, o is EmptyStruct[], false); Eval(14899, o is EmptyStruct?, false); Eval(14900, o is EmptyStruct?[], false); Eval(14901, o is NotEmptyStruct, false); Eval(14902, o is NotEmptyStruct[], false); Eval(14903, o is NotEmptyStruct?, false); Eval(14904, o is NotEmptyStruct?[], false); Eval(14905, o is EmptyStructGen<int>, false); Eval(14906, o is EmptyStructGen<int>[], false); Eval(14907, o is EmptyStructGen<int>?, false); Eval(14908, o is EmptyStructGen<int>?[], false); Eval(14909, o is NotEmptyStructGen<Guid>, false); Eval(14910, o is NotEmptyStructGen<Guid>[], false); Eval(14911, o is NotEmptyStructGen<Guid>?, false); Eval(14912, o is NotEmptyStructGen<Guid>?[], false); Eval(14913, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(14914, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(14915, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(14916, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(14917, o is NestedStruct, false); Eval(14918, o is NestedStruct[], false); Eval(14919, o is NestedStruct?, false); Eval(14920, o is NestedStruct?[], false); Eval(14921, o is NestedStructGen<Decimal>, false); Eval(14922, o is NestedStructGen<Decimal>[], false); Eval(14923, o is NestedStructGen<Decimal>?, false); Eval(14924, o is NestedStructGen<Decimal>?[], false); Eval(14925, o is ExplicitFieldOffsetStruct, false); Eval(14926, o is ExplicitFieldOffsetStruct[], false); Eval(14927, o is ExplicitFieldOffsetStruct?, false); Eval(14928, o is ExplicitFieldOffsetStruct?[], false); Eval(14937, o is MarshalAsStruct, false); Eval(14938, o is MarshalAsStruct[], false); Eval(14939, o is MarshalAsStruct?, false); Eval(14940, o is MarshalAsStruct?[], false); Eval(14941, o is ImplementOneInterface, false); Eval(14942, o is ImplementOneInterface[], false); Eval(14943, o is ImplementOneInterface?, false); Eval(14944, o is ImplementOneInterface?[], false); Eval(14945, o is ImplementTwoInterface, false); Eval(14946, o is ImplementTwoInterface[], false); Eval(14947, o is ImplementTwoInterface?, false); Eval(14948, o is ImplementTwoInterface?[], false); Eval(14949, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(14950, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(14951, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(14952, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(14953, o is ImplementTwoInterfaceGen<int>, false); Eval(14954, o is ImplementTwoInterfaceGen<int>[], false); Eval(14955, o is ImplementTwoInterfaceGen<int>?, false); Eval(14956, o is ImplementTwoInterfaceGen<int>?[], false); Eval(14957, o is ImplementAllInterface<int>, false); Eval(14958, o is ImplementAllInterface<int>[], false); Eval(14959, o is ImplementAllInterface<int>?, false); Eval(14960, o is ImplementAllInterface<int>?[], false); Eval(14961, o is IntE, false); Eval(14962, o is IntE[], false); Eval(14963, o is IntE?, false); Eval(14964, o is IntE?[], false); Eval(14965, o is ByteE, false); Eval(14966, o is ByteE[], false); Eval(14967, o is ByteE?, false); Eval(14968, o is ByteE?[], false); Eval(14969, o is LongE, false); Eval(14970, o is LongE[], false); Eval(14971, o is LongE?, false); Eval(14972, o is LongE?[], false); Eval(14973, o is char, false); Eval(14974, o is char[], false); Eval(14975, o is char?, false); Eval(14976, o is char?[], false); Eval(14977, o is bool, false); Eval(14978, o is bool[], false); Eval(14979, o is bool?, false); Eval(14980, o is bool?[], false); Eval(14981, o is byte, false); Eval(14982, o is byte[], false); Eval(14983, o is byte?, false); Eval(14984, o is byte?[], false); Eval(14985, o is sbyte, false); Eval(14986, o is sbyte[], false); Eval(14987, o is sbyte?, false); Eval(14988, o is sbyte?[], false); Eval(14989, o is short, false); Eval(14990, o is short[], false); Eval(14991, o is short?, false); Eval(14992, o is short?[], false); Eval(14993, o is ushort, false); Eval(14994, o is ushort[], false); Eval(14995, o is ushort?, false); Eval(14996, o is ushort?[], false); Eval(14997, o is int, true); Eval(14998, o is int[], false); Eval(14999, o is int?, true); Eval(15000, o is int?[], false); Eval(15001, o is uint, false); Eval(15002, o is uint[], false); Eval(15003, o is uint?, false); Eval(15004, o is uint?[], false); Eval(15005, o is long, false); Eval(15006, o is long[], false); Eval(15007, o is long?, false); Eval(15008, o is long?[], false); Eval(15009, o is ulong, false); Eval(15010, o is ulong[], false); Eval(15011, o is ulong?, false); Eval(15012, o is ulong?[], false); Eval(15013, o is float, false); Eval(15014, o is float[], false); Eval(15015, o is float?, false); Eval(15016, o is float?[], false); Eval(15017, o is double, false); Eval(15018, o is double[], false); Eval(15019, o is double?, false); Eval(15020, o is double?[], false); Eval(15021, o is decimal, false); Eval(15022, o is decimal[], false); Eval(15023, o is decimal?, false); Eval(15024, o is decimal?[], false); Eval(15025, o is IntPtr, false); Eval(15026, o is IntPtr[], false); Eval(15027, o is IntPtr?, false); Eval(15028, o is IntPtr?[], false); Eval(15029, o is UIntPtr, false); Eval(15030, o is UIntPtr[], false); Eval(15031, o is UIntPtr?, false); Eval(15032, o is UIntPtr?[], false); Eval(15033, o is Guid, false); Eval(15034, o is Guid[], false); Eval(15035, o is Guid?, false); Eval(15036, o is Guid?[], false); Eval(15037, o is GCHandle, false); Eval(15038, o is GCHandle[], false); Eval(15039, o is GCHandle?, false); Eval(15040, o is GCHandle?[], false); Eval(15041, o is object, true); Eval(15042, o is object[], false); Eval(15043, o is string, false); Eval(15044, o is string[], false); Eval(15045, o is ValueType, true); Eval(15046, o is ValueType[], false); Eval(15047, o is Array, false); Eval(15048, o is Array[], false); Eval(15049, o is Enum, false); Eval(15050, o is Enum[], false); Eval(15051, o is Delegate, false); Eval(15052, o is Delegate[], false); Eval(15053, o is MulticastDelegate, false); Eval(15054, o is MulticastDelegate[], false); Eval(15055, o is IEmpty, false); Eval(15056, o is IEmpty[], false); Eval(15057, o is INotEmpty, false); Eval(15058, o is INotEmpty[], false); Eval(15059, o is IEmptyGen<int>, false); Eval(15060, o is IEmptyGen<int>[], false); Eval(15061, o is INotEmptyGen<int>, false); Eval(15062, o is INotEmptyGen<int>[], false); Eval(15063, o is SimpleDelegate, false); Eval(15064, o is SimpleDelegate[], false); Eval(15065, o is GenericDelegate<int>, false); Eval(15066, o is GenericDelegate<int>[], false); Eval(15067, o is EmptyClass, false); Eval(15068, o is EmptyClass[], false); Eval(15069, o is NotEmptyClass, false); Eval(15070, o is NotEmptyClass[], false); Eval(15071, o is EmptyClassGen<int>, false); Eval(15072, o is EmptyClassGen<int>[], false); Eval(15073, o is NotEmptyClassGen<Guid>, false); Eval(15074, o is NotEmptyClassGen<Guid>[], false); Eval(15075, o is NotEmptyClassConstrainedGen<object>, false); Eval(15076, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15077, o is NestedClass, false); Eval(15078, o is NestedClass[], false); Eval(15079, o is NestedClassGen<Decimal>, false); Eval(15080, o is NestedClassGen<Decimal>[], false); Eval(15081, o is ImplementOneInterfaceC, false); Eval(15082, o is ImplementOneInterfaceC[], false); Eval(15083, o is ImplementTwoInterfaceC, false); Eval(15084, o is ImplementTwoInterfaceC[], false); Eval(15085, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15086, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15087, o is ImplementTwoInterfaceGenC<int>, false); Eval(15088, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15089, o is ImplementAllInterfaceC<int>, false); Eval(15090, o is ImplementAllInterfaceC<int>[], false); Eval(15091, o is SealedClass, false); Eval(15092, o is SealedClass[], false); } { int? v = default(int?); ValueType o = v; Eval(15093, o is EmptyStruct, false); Eval(15094, o is EmptyStruct[], false); Eval(15095, o is EmptyStruct?, false); Eval(15096, o is EmptyStruct?[], false); Eval(15097, o is NotEmptyStruct, false); Eval(15098, o is NotEmptyStruct[], false); Eval(15099, o is NotEmptyStruct?, false); Eval(15100, o is NotEmptyStruct?[], false); Eval(15101, o is EmptyStructGen<int>, false); Eval(15102, o is EmptyStructGen<int>[], false); Eval(15103, o is EmptyStructGen<int>?, false); Eval(15104, o is EmptyStructGen<int>?[], false); Eval(15105, o is NotEmptyStructGen<Guid>, false); Eval(15106, o is NotEmptyStructGen<Guid>[], false); Eval(15107, o is NotEmptyStructGen<Guid>?, false); Eval(15108, o is NotEmptyStructGen<Guid>?[], false); Eval(15109, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15110, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15111, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15112, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15113, o is NestedStruct, false); Eval(15114, o is NestedStruct[], false); Eval(15115, o is NestedStruct?, false); Eval(15116, o is NestedStruct?[], false); Eval(15117, o is NestedStructGen<Decimal>, false); Eval(15118, o is NestedStructGen<Decimal>[], false); Eval(15119, o is NestedStructGen<Decimal>?, false); Eval(15120, o is NestedStructGen<Decimal>?[], false); Eval(15121, o is ExplicitFieldOffsetStruct, false); Eval(15122, o is ExplicitFieldOffsetStruct[], false); Eval(15123, o is ExplicitFieldOffsetStruct?, false); Eval(15124, o is ExplicitFieldOffsetStruct?[], false); Eval(15133, o is MarshalAsStruct, false); Eval(15134, o is MarshalAsStruct[], false); Eval(15135, o is MarshalAsStruct?, false); Eval(15136, o is MarshalAsStruct?[], false); Eval(15137, o is ImplementOneInterface, false); Eval(15138, o is ImplementOneInterface[], false); Eval(15139, o is ImplementOneInterface?, false); Eval(15140, o is ImplementOneInterface?[], false); Eval(15141, o is ImplementTwoInterface, false); Eval(15142, o is ImplementTwoInterface[], false); Eval(15143, o is ImplementTwoInterface?, false); Eval(15144, o is ImplementTwoInterface?[], false); Eval(15145, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15146, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15147, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15148, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15149, o is ImplementTwoInterfaceGen<int>, false); Eval(15150, o is ImplementTwoInterfaceGen<int>[], false); Eval(15151, o is ImplementTwoInterfaceGen<int>?, false); Eval(15152, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15153, o is ImplementAllInterface<int>, false); Eval(15154, o is ImplementAllInterface<int>[], false); Eval(15155, o is ImplementAllInterface<int>?, false); Eval(15156, o is ImplementAllInterface<int>?[], false); Eval(15157, o is IntE, false); Eval(15158, o is IntE[], false); Eval(15159, o is IntE?, false); Eval(15160, o is IntE?[], false); Eval(15161, o is ByteE, false); Eval(15162, o is ByteE[], false); Eval(15163, o is ByteE?, false); Eval(15164, o is ByteE?[], false); Eval(15165, o is LongE, false); Eval(15166, o is LongE[], false); Eval(15167, o is LongE?, false); Eval(15168, o is LongE?[], false); Eval(15169, o is char, false); Eval(15170, o is char[], false); Eval(15171, o is char?, false); Eval(15172, o is char?[], false); Eval(15173, o is bool, false); Eval(15174, o is bool[], false); Eval(15175, o is bool?, false); Eval(15176, o is bool?[], false); Eval(15177, o is byte, false); Eval(15178, o is byte[], false); Eval(15179, o is byte?, false); Eval(15180, o is byte?[], false); Eval(15181, o is sbyte, false); Eval(15182, o is sbyte[], false); Eval(15183, o is sbyte?, false); Eval(15184, o is sbyte?[], false); Eval(15185, o is short, false); Eval(15186, o is short[], false); Eval(15187, o is short?, false); Eval(15188, o is short?[], false); Eval(15189, o is ushort, false); Eval(15190, o is ushort[], false); Eval(15191, o is ushort?, false); Eval(15192, o is ushort?[], false); Eval(15193, o is int, false); Eval(15194, o is int[], false); Eval(15195, o is int?, false); Eval(15196, o is int?[], false); Eval(15197, o is uint, false); Eval(15198, o is uint[], false); Eval(15199, o is uint?, false); Eval(15200, o is uint?[], false); Eval(15201, o is long, false); Eval(15202, o is long[], false); Eval(15203, o is long?, false); Eval(15204, o is long?[], false); Eval(15205, o is ulong, false); Eval(15206, o is ulong[], false); Eval(15207, o is ulong?, false); Eval(15208, o is ulong?[], false); Eval(15209, o is float, false); Eval(15210, o is float[], false); Eval(15211, o is float?, false); Eval(15212, o is float?[], false); Eval(15213, o is double, false); Eval(15214, o is double[], false); Eval(15215, o is double?, false); Eval(15216, o is double?[], false); Eval(15217, o is decimal, false); Eval(15218, o is decimal[], false); Eval(15219, o is decimal?, false); Eval(15220, o is decimal?[], false); Eval(15221, o is IntPtr, false); Eval(15222, o is IntPtr[], false); Eval(15223, o is IntPtr?, false); Eval(15224, o is IntPtr?[], false); Eval(15225, o is UIntPtr, false); Eval(15226, o is UIntPtr[], false); Eval(15227, o is UIntPtr?, false); Eval(15228, o is UIntPtr?[], false); Eval(15229, o is Guid, false); Eval(15230, o is Guid[], false); Eval(15231, o is Guid?, false); Eval(15232, o is Guid?[], false); Eval(15233, o is GCHandle, false); Eval(15234, o is GCHandle[], false); Eval(15235, o is GCHandle?, false); Eval(15236, o is GCHandle?[], false); Eval(15237, o is object, false); Eval(15238, o is object[], false); Eval(15239, o is string, false); Eval(15240, o is string[], false); Eval(15241, o is ValueType, false); Eval(15242, o is ValueType[], false); Eval(15243, o is Array, false); Eval(15244, o is Array[], false); Eval(15245, o is Enum, false); Eval(15246, o is Enum[], false); Eval(15247, o is Delegate, false); Eval(15248, o is Delegate[], false); Eval(15249, o is MulticastDelegate, false); Eval(15250, o is MulticastDelegate[], false); Eval(15251, o is IEmpty, false); Eval(15252, o is IEmpty[], false); Eval(15253, o is INotEmpty, false); Eval(15254, o is INotEmpty[], false); Eval(15255, o is IEmptyGen<int>, false); Eval(15256, o is IEmptyGen<int>[], false); Eval(15257, o is INotEmptyGen<int>, false); Eval(15258, o is INotEmptyGen<int>[], false); Eval(15259, o is SimpleDelegate, false); Eval(15260, o is SimpleDelegate[], false); Eval(15261, o is GenericDelegate<int>, false); Eval(15262, o is GenericDelegate<int>[], false); Eval(15263, o is EmptyClass, false); Eval(15264, o is EmptyClass[], false); Eval(15265, o is NotEmptyClass, false); Eval(15266, o is NotEmptyClass[], false); Eval(15267, o is EmptyClassGen<int>, false); Eval(15268, o is EmptyClassGen<int>[], false); Eval(15269, o is NotEmptyClassGen<Guid>, false); Eval(15270, o is NotEmptyClassGen<Guid>[], false); Eval(15271, o is NotEmptyClassConstrainedGen<object>, false); Eval(15272, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15273, o is NestedClass, false); Eval(15274, o is NestedClass[], false); Eval(15275, o is NestedClassGen<Decimal>, false); Eval(15276, o is NestedClassGen<Decimal>[], false); Eval(15277, o is ImplementOneInterfaceC, false); Eval(15278, o is ImplementOneInterfaceC[], false); Eval(15279, o is ImplementTwoInterfaceC, false); Eval(15280, o is ImplementTwoInterfaceC[], false); Eval(15281, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15282, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15283, o is ImplementTwoInterfaceGenC<int>, false); Eval(15284, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15285, o is ImplementAllInterfaceC<int>, false); Eval(15286, o is ImplementAllInterfaceC<int>[], false); Eval(15287, o is SealedClass, false); Eval(15288, o is SealedClass[], false); } } // end of test case 0026 private static void TestCase0027() { { uint v = default(uint); ValueType o = v; Eval(15289, o is EmptyStruct, false); Eval(15290, o is EmptyStruct[], false); Eval(15291, o is EmptyStruct?, false); Eval(15292, o is EmptyStruct?[], false); Eval(15293, o is NotEmptyStruct, false); Eval(15294, o is NotEmptyStruct[], false); Eval(15295, o is NotEmptyStruct?, false); Eval(15296, o is NotEmptyStruct?[], false); Eval(15297, o is EmptyStructGen<int>, false); Eval(15298, o is EmptyStructGen<int>[], false); Eval(15299, o is EmptyStructGen<int>?, false); Eval(15300, o is EmptyStructGen<int>?[], false); Eval(15301, o is NotEmptyStructGen<Guid>, false); Eval(15302, o is NotEmptyStructGen<Guid>[], false); Eval(15303, o is NotEmptyStructGen<Guid>?, false); Eval(15304, o is NotEmptyStructGen<Guid>?[], false); Eval(15305, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15306, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15307, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15308, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15309, o is NestedStruct, false); Eval(15310, o is NestedStruct[], false); Eval(15311, o is NestedStruct?, false); Eval(15312, o is NestedStruct?[], false); Eval(15313, o is NestedStructGen<Decimal>, false); Eval(15314, o is NestedStructGen<Decimal>[], false); Eval(15315, o is NestedStructGen<Decimal>?, false); Eval(15316, o is NestedStructGen<Decimal>?[], false); Eval(15317, o is ExplicitFieldOffsetStruct, false); Eval(15318, o is ExplicitFieldOffsetStruct[], false); Eval(15319, o is ExplicitFieldOffsetStruct?, false); Eval(15320, o is ExplicitFieldOffsetStruct?[], false); Eval(15329, o is MarshalAsStruct, false); Eval(15330, o is MarshalAsStruct[], false); Eval(15331, o is MarshalAsStruct?, false); Eval(15332, o is MarshalAsStruct?[], false); Eval(15333, o is ImplementOneInterface, false); Eval(15334, o is ImplementOneInterface[], false); Eval(15335, o is ImplementOneInterface?, false); Eval(15336, o is ImplementOneInterface?[], false); Eval(15337, o is ImplementTwoInterface, false); Eval(15338, o is ImplementTwoInterface[], false); Eval(15339, o is ImplementTwoInterface?, false); Eval(15340, o is ImplementTwoInterface?[], false); Eval(15341, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15342, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15343, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15344, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15345, o is ImplementTwoInterfaceGen<int>, false); Eval(15346, o is ImplementTwoInterfaceGen<int>[], false); Eval(15347, o is ImplementTwoInterfaceGen<int>?, false); Eval(15348, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15349, o is ImplementAllInterface<int>, false); Eval(15350, o is ImplementAllInterface<int>[], false); Eval(15351, o is ImplementAllInterface<int>?, false); Eval(15352, o is ImplementAllInterface<int>?[], false); Eval(15353, o is IntE, false); Eval(15354, o is IntE[], false); Eval(15355, o is IntE?, false); Eval(15356, o is IntE?[], false); Eval(15357, o is ByteE, false); Eval(15358, o is ByteE[], false); Eval(15359, o is ByteE?, false); Eval(15360, o is ByteE?[], false); Eval(15361, o is LongE, false); Eval(15362, o is LongE[], false); Eval(15363, o is LongE?, false); Eval(15364, o is LongE?[], false); Eval(15365, o is char, false); Eval(15366, o is char[], false); Eval(15367, o is char?, false); Eval(15368, o is char?[], false); Eval(15369, o is bool, false); Eval(15370, o is bool[], false); Eval(15371, o is bool?, false); Eval(15372, o is bool?[], false); Eval(15373, o is byte, false); Eval(15374, o is byte[], false); Eval(15375, o is byte?, false); Eval(15376, o is byte?[], false); Eval(15377, o is sbyte, false); Eval(15378, o is sbyte[], false); Eval(15379, o is sbyte?, false); Eval(15380, o is sbyte?[], false); Eval(15381, o is short, false); Eval(15382, o is short[], false); Eval(15383, o is short?, false); Eval(15384, o is short?[], false); Eval(15385, o is ushort, false); Eval(15386, o is ushort[], false); Eval(15387, o is ushort?, false); Eval(15388, o is ushort?[], false); Eval(15389, o is int, false); Eval(15390, o is int[], false); Eval(15391, o is int?, false); Eval(15392, o is int?[], false); Eval(15393, o is uint, true); Eval(15394, o is uint[], false); Eval(15395, o is uint?, true); Eval(15396, o is uint?[], false); Eval(15397, o is long, false); Eval(15398, o is long[], false); Eval(15399, o is long?, false); Eval(15400, o is long?[], false); Eval(15401, o is ulong, false); Eval(15402, o is ulong[], false); Eval(15403, o is ulong?, false); Eval(15404, o is ulong?[], false); Eval(15405, o is float, false); Eval(15406, o is float[], false); Eval(15407, o is float?, false); Eval(15408, o is float?[], false); Eval(15409, o is double, false); Eval(15410, o is double[], false); Eval(15411, o is double?, false); Eval(15412, o is double?[], false); Eval(15413, o is decimal, false); Eval(15414, o is decimal[], false); Eval(15415, o is decimal?, false); Eval(15416, o is decimal?[], false); Eval(15417, o is IntPtr, false); Eval(15418, o is IntPtr[], false); Eval(15419, o is IntPtr?, false); Eval(15420, o is IntPtr?[], false); Eval(15421, o is UIntPtr, false); Eval(15422, o is UIntPtr[], false); Eval(15423, o is UIntPtr?, false); Eval(15424, o is UIntPtr?[], false); Eval(15425, o is Guid, false); Eval(15426, o is Guid[], false); Eval(15427, o is Guid?, false); Eval(15428, o is Guid?[], false); Eval(15429, o is GCHandle, false); Eval(15430, o is GCHandle[], false); Eval(15431, o is GCHandle?, false); Eval(15432, o is GCHandle?[], false); Eval(15433, o is object, true); Eval(15434, o is object[], false); Eval(15435, o is string, false); Eval(15436, o is string[], false); Eval(15437, o is ValueType, true); Eval(15438, o is ValueType[], false); Eval(15439, o is Array, false); Eval(15440, o is Array[], false); Eval(15441, o is Enum, false); Eval(15442, o is Enum[], false); Eval(15443, o is Delegate, false); Eval(15444, o is Delegate[], false); Eval(15445, o is MulticastDelegate, false); Eval(15446, o is MulticastDelegate[], false); Eval(15447, o is IEmpty, false); Eval(15448, o is IEmpty[], false); Eval(15449, o is INotEmpty, false); Eval(15450, o is INotEmpty[], false); Eval(15451, o is IEmptyGen<int>, false); Eval(15452, o is IEmptyGen<int>[], false); Eval(15453, o is INotEmptyGen<int>, false); Eval(15454, o is INotEmptyGen<int>[], false); Eval(15455, o is SimpleDelegate, false); Eval(15456, o is SimpleDelegate[], false); Eval(15457, o is GenericDelegate<int>, false); Eval(15458, o is GenericDelegate<int>[], false); Eval(15459, o is EmptyClass, false); Eval(15460, o is EmptyClass[], false); Eval(15461, o is NotEmptyClass, false); Eval(15462, o is NotEmptyClass[], false); Eval(15463, o is EmptyClassGen<int>, false); Eval(15464, o is EmptyClassGen<int>[], false); Eval(15465, o is NotEmptyClassGen<Guid>, false); Eval(15466, o is NotEmptyClassGen<Guid>[], false); Eval(15467, o is NotEmptyClassConstrainedGen<object>, false); Eval(15468, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15469, o is NestedClass, false); Eval(15470, o is NestedClass[], false); Eval(15471, o is NestedClassGen<Decimal>, false); Eval(15472, o is NestedClassGen<Decimal>[], false); Eval(15473, o is ImplementOneInterfaceC, false); Eval(15474, o is ImplementOneInterfaceC[], false); Eval(15475, o is ImplementTwoInterfaceC, false); Eval(15476, o is ImplementTwoInterfaceC[], false); Eval(15477, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15478, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15479, o is ImplementTwoInterfaceGenC<int>, false); Eval(15480, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15481, o is ImplementAllInterfaceC<int>, false); Eval(15482, o is ImplementAllInterfaceC<int>[], false); Eval(15483, o is SealedClass, false); Eval(15484, o is SealedClass[], false); } { uint? v = default(uint); ValueType o = v; Eval(15485, o is EmptyStruct, false); Eval(15486, o is EmptyStruct[], false); Eval(15487, o is EmptyStruct?, false); Eval(15488, o is EmptyStruct?[], false); Eval(15489, o is NotEmptyStruct, false); Eval(15490, o is NotEmptyStruct[], false); Eval(15491, o is NotEmptyStruct?, false); Eval(15492, o is NotEmptyStruct?[], false); Eval(15493, o is EmptyStructGen<int>, false); Eval(15494, o is EmptyStructGen<int>[], false); Eval(15495, o is EmptyStructGen<int>?, false); Eval(15496, o is EmptyStructGen<int>?[], false); Eval(15497, o is NotEmptyStructGen<Guid>, false); Eval(15498, o is NotEmptyStructGen<Guid>[], false); Eval(15499, o is NotEmptyStructGen<Guid>?, false); Eval(15500, o is NotEmptyStructGen<Guid>?[], false); Eval(15501, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15502, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15503, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15504, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15505, o is NestedStruct, false); Eval(15506, o is NestedStruct[], false); Eval(15507, o is NestedStruct?, false); Eval(15508, o is NestedStruct?[], false); Eval(15509, o is NestedStructGen<Decimal>, false); Eval(15510, o is NestedStructGen<Decimal>[], false); Eval(15511, o is NestedStructGen<Decimal>?, false); Eval(15512, o is NestedStructGen<Decimal>?[], false); Eval(15513, o is ExplicitFieldOffsetStruct, false); Eval(15514, o is ExplicitFieldOffsetStruct[], false); Eval(15515, o is ExplicitFieldOffsetStruct?, false); Eval(15516, o is ExplicitFieldOffsetStruct?[], false); Eval(15525, o is MarshalAsStruct, false); Eval(15526, o is MarshalAsStruct[], false); Eval(15527, o is MarshalAsStruct?, false); Eval(15528, o is MarshalAsStruct?[], false); Eval(15529, o is ImplementOneInterface, false); Eval(15530, o is ImplementOneInterface[], false); Eval(15531, o is ImplementOneInterface?, false); Eval(15532, o is ImplementOneInterface?[], false); Eval(15533, o is ImplementTwoInterface, false); Eval(15534, o is ImplementTwoInterface[], false); Eval(15535, o is ImplementTwoInterface?, false); Eval(15536, o is ImplementTwoInterface?[], false); Eval(15537, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15538, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15539, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15540, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15541, o is ImplementTwoInterfaceGen<int>, false); Eval(15542, o is ImplementTwoInterfaceGen<int>[], false); Eval(15543, o is ImplementTwoInterfaceGen<int>?, false); Eval(15544, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15545, o is ImplementAllInterface<int>, false); Eval(15546, o is ImplementAllInterface<int>[], false); Eval(15547, o is ImplementAllInterface<int>?, false); Eval(15548, o is ImplementAllInterface<int>?[], false); Eval(15549, o is IntE, false); Eval(15550, o is IntE[], false); Eval(15551, o is IntE?, false); Eval(15552, o is IntE?[], false); Eval(15553, o is ByteE, false); Eval(15554, o is ByteE[], false); Eval(15555, o is ByteE?, false); Eval(15556, o is ByteE?[], false); Eval(15557, o is LongE, false); Eval(15558, o is LongE[], false); Eval(15559, o is LongE?, false); Eval(15560, o is LongE?[], false); Eval(15561, o is char, false); Eval(15562, o is char[], false); Eval(15563, o is char?, false); Eval(15564, o is char?[], false); Eval(15565, o is bool, false); Eval(15566, o is bool[], false); Eval(15567, o is bool?, false); Eval(15568, o is bool?[], false); Eval(15569, o is byte, false); Eval(15570, o is byte[], false); Eval(15571, o is byte?, false); Eval(15572, o is byte?[], false); Eval(15573, o is sbyte, false); Eval(15574, o is sbyte[], false); Eval(15575, o is sbyte?, false); Eval(15576, o is sbyte?[], false); Eval(15577, o is short, false); Eval(15578, o is short[], false); Eval(15579, o is short?, false); Eval(15580, o is short?[], false); Eval(15581, o is ushort, false); Eval(15582, o is ushort[], false); Eval(15583, o is ushort?, false); Eval(15584, o is ushort?[], false); Eval(15585, o is int, false); Eval(15586, o is int[], false); Eval(15587, o is int?, false); Eval(15588, o is int?[], false); Eval(15589, o is uint, true); Eval(15590, o is uint[], false); Eval(15591, o is uint?, true); Eval(15592, o is uint?[], false); Eval(15593, o is long, false); Eval(15594, o is long[], false); Eval(15595, o is long?, false); Eval(15596, o is long?[], false); Eval(15597, o is ulong, false); Eval(15598, o is ulong[], false); Eval(15599, o is ulong?, false); Eval(15600, o is ulong?[], false); Eval(15601, o is float, false); Eval(15602, o is float[], false); Eval(15603, o is float?, false); Eval(15604, o is float?[], false); Eval(15605, o is double, false); Eval(15606, o is double[], false); Eval(15607, o is double?, false); Eval(15608, o is double?[], false); Eval(15609, o is decimal, false); Eval(15610, o is decimal[], false); Eval(15611, o is decimal?, false); Eval(15612, o is decimal?[], false); Eval(15613, o is IntPtr, false); Eval(15614, o is IntPtr[], false); Eval(15615, o is IntPtr?, false); Eval(15616, o is IntPtr?[], false); Eval(15617, o is UIntPtr, false); Eval(15618, o is UIntPtr[], false); Eval(15619, o is UIntPtr?, false); Eval(15620, o is UIntPtr?[], false); Eval(15621, o is Guid, false); Eval(15622, o is Guid[], false); Eval(15623, o is Guid?, false); Eval(15624, o is Guid?[], false); Eval(15625, o is GCHandle, false); Eval(15626, o is GCHandle[], false); Eval(15627, o is GCHandle?, false); Eval(15628, o is GCHandle?[], false); Eval(15629, o is object, true); Eval(15630, o is object[], false); Eval(15631, o is string, false); Eval(15632, o is string[], false); Eval(15633, o is ValueType, true); Eval(15634, o is ValueType[], false); Eval(15635, o is Array, false); Eval(15636, o is Array[], false); Eval(15637, o is Enum, false); Eval(15638, o is Enum[], false); Eval(15639, o is Delegate, false); Eval(15640, o is Delegate[], false); Eval(15641, o is MulticastDelegate, false); Eval(15642, o is MulticastDelegate[], false); Eval(15643, o is IEmpty, false); Eval(15644, o is IEmpty[], false); Eval(15645, o is INotEmpty, false); Eval(15646, o is INotEmpty[], false); Eval(15647, o is IEmptyGen<int>, false); Eval(15648, o is IEmptyGen<int>[], false); Eval(15649, o is INotEmptyGen<int>, false); Eval(15650, o is INotEmptyGen<int>[], false); Eval(15651, o is SimpleDelegate, false); Eval(15652, o is SimpleDelegate[], false); Eval(15653, o is GenericDelegate<int>, false); Eval(15654, o is GenericDelegate<int>[], false); Eval(15655, o is EmptyClass, false); Eval(15656, o is EmptyClass[], false); Eval(15657, o is NotEmptyClass, false); Eval(15658, o is NotEmptyClass[], false); Eval(15659, o is EmptyClassGen<int>, false); Eval(15660, o is EmptyClassGen<int>[], false); Eval(15661, o is NotEmptyClassGen<Guid>, false); Eval(15662, o is NotEmptyClassGen<Guid>[], false); Eval(15663, o is NotEmptyClassConstrainedGen<object>, false); Eval(15664, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15665, o is NestedClass, false); Eval(15666, o is NestedClass[], false); Eval(15667, o is NestedClassGen<Decimal>, false); Eval(15668, o is NestedClassGen<Decimal>[], false); Eval(15669, o is ImplementOneInterfaceC, false); Eval(15670, o is ImplementOneInterfaceC[], false); Eval(15671, o is ImplementTwoInterfaceC, false); Eval(15672, o is ImplementTwoInterfaceC[], false); Eval(15673, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15674, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15675, o is ImplementTwoInterfaceGenC<int>, false); Eval(15676, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15677, o is ImplementAllInterfaceC<int>, false); Eval(15678, o is ImplementAllInterfaceC<int>[], false); Eval(15679, o is SealedClass, false); Eval(15680, o is SealedClass[], false); } { uint? v = default(uint?); ValueType o = v; Eval(15681, o is EmptyStruct, false); Eval(15682, o is EmptyStruct[], false); Eval(15683, o is EmptyStruct?, false); Eval(15684, o is EmptyStruct?[], false); Eval(15685, o is NotEmptyStruct, false); Eval(15686, o is NotEmptyStruct[], false); Eval(15687, o is NotEmptyStruct?, false); Eval(15688, o is NotEmptyStruct?[], false); Eval(15689, o is EmptyStructGen<int>, false); Eval(15690, o is EmptyStructGen<int>[], false); Eval(15691, o is EmptyStructGen<int>?, false); Eval(15692, o is EmptyStructGen<int>?[], false); Eval(15693, o is NotEmptyStructGen<Guid>, false); Eval(15694, o is NotEmptyStructGen<Guid>[], false); Eval(15695, o is NotEmptyStructGen<Guid>?, false); Eval(15696, o is NotEmptyStructGen<Guid>?[], false); Eval(15697, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15698, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15699, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15700, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15701, o is NestedStruct, false); Eval(15702, o is NestedStruct[], false); Eval(15703, o is NestedStruct?, false); Eval(15704, o is NestedStruct?[], false); Eval(15705, o is NestedStructGen<Decimal>, false); Eval(15706, o is NestedStructGen<Decimal>[], false); Eval(15707, o is NestedStructGen<Decimal>?, false); Eval(15708, o is NestedStructGen<Decimal>?[], false); Eval(15709, o is ExplicitFieldOffsetStruct, false); Eval(15710, o is ExplicitFieldOffsetStruct[], false); Eval(15711, o is ExplicitFieldOffsetStruct?, false); Eval(15712, o is ExplicitFieldOffsetStruct?[], false); Eval(15721, o is MarshalAsStruct, false); Eval(15722, o is MarshalAsStruct[], false); Eval(15723, o is MarshalAsStruct?, false); Eval(15724, o is MarshalAsStruct?[], false); Eval(15725, o is ImplementOneInterface, false); Eval(15726, o is ImplementOneInterface[], false); Eval(15727, o is ImplementOneInterface?, false); Eval(15728, o is ImplementOneInterface?[], false); Eval(15729, o is ImplementTwoInterface, false); Eval(15730, o is ImplementTwoInterface[], false); Eval(15731, o is ImplementTwoInterface?, false); Eval(15732, o is ImplementTwoInterface?[], false); Eval(15733, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15734, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15735, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15736, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15737, o is ImplementTwoInterfaceGen<int>, false); Eval(15738, o is ImplementTwoInterfaceGen<int>[], false); Eval(15739, o is ImplementTwoInterfaceGen<int>?, false); Eval(15740, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15741, o is ImplementAllInterface<int>, false); Eval(15742, o is ImplementAllInterface<int>[], false); Eval(15743, o is ImplementAllInterface<int>?, false); Eval(15744, o is ImplementAllInterface<int>?[], false); Eval(15745, o is IntE, false); Eval(15746, o is IntE[], false); Eval(15747, o is IntE?, false); Eval(15748, o is IntE?[], false); Eval(15749, o is ByteE, false); Eval(15750, o is ByteE[], false); Eval(15751, o is ByteE?, false); Eval(15752, o is ByteE?[], false); Eval(15753, o is LongE, false); Eval(15754, o is LongE[], false); Eval(15755, o is LongE?, false); Eval(15756, o is LongE?[], false); Eval(15757, o is char, false); Eval(15758, o is char[], false); Eval(15759, o is char?, false); Eval(15760, o is char?[], false); Eval(15761, o is bool, false); Eval(15762, o is bool[], false); Eval(15763, o is bool?, false); Eval(15764, o is bool?[], false); Eval(15765, o is byte, false); Eval(15766, o is byte[], false); Eval(15767, o is byte?, false); Eval(15768, o is byte?[], false); Eval(15769, o is sbyte, false); Eval(15770, o is sbyte[], false); Eval(15771, o is sbyte?, false); Eval(15772, o is sbyte?[], false); Eval(15773, o is short, false); Eval(15774, o is short[], false); Eval(15775, o is short?, false); Eval(15776, o is short?[], false); Eval(15777, o is ushort, false); Eval(15778, o is ushort[], false); Eval(15779, o is ushort?, false); Eval(15780, o is ushort?[], false); Eval(15781, o is int, false); Eval(15782, o is int[], false); Eval(15783, o is int?, false); Eval(15784, o is int?[], false); Eval(15785, o is uint, false); Eval(15786, o is uint[], false); Eval(15787, o is uint?, false); Eval(15788, o is uint?[], false); Eval(15789, o is long, false); Eval(15790, o is long[], false); Eval(15791, o is long?, false); Eval(15792, o is long?[], false); Eval(15793, o is ulong, false); Eval(15794, o is ulong[], false); Eval(15795, o is ulong?, false); Eval(15796, o is ulong?[], false); Eval(15797, o is float, false); Eval(15798, o is float[], false); Eval(15799, o is float?, false); Eval(15800, o is float?[], false); Eval(15801, o is double, false); Eval(15802, o is double[], false); Eval(15803, o is double?, false); Eval(15804, o is double?[], false); Eval(15805, o is decimal, false); Eval(15806, o is decimal[], false); Eval(15807, o is decimal?, false); Eval(15808, o is decimal?[], false); Eval(15809, o is IntPtr, false); Eval(15810, o is IntPtr[], false); Eval(15811, o is IntPtr?, false); Eval(15812, o is IntPtr?[], false); Eval(15813, o is UIntPtr, false); Eval(15814, o is UIntPtr[], false); Eval(15815, o is UIntPtr?, false); Eval(15816, o is UIntPtr?[], false); Eval(15817, o is Guid, false); Eval(15818, o is Guid[], false); Eval(15819, o is Guid?, false); Eval(15820, o is Guid?[], false); Eval(15821, o is GCHandle, false); Eval(15822, o is GCHandle[], false); Eval(15823, o is GCHandle?, false); Eval(15824, o is GCHandle?[], false); Eval(15825, o is object, false); Eval(15826, o is object[], false); Eval(15827, o is string, false); Eval(15828, o is string[], false); Eval(15829, o is ValueType, false); Eval(15830, o is ValueType[], false); Eval(15831, o is Array, false); Eval(15832, o is Array[], false); Eval(15833, o is Enum, false); Eval(15834, o is Enum[], false); Eval(15835, o is Delegate, false); Eval(15836, o is Delegate[], false); Eval(15837, o is MulticastDelegate, false); Eval(15838, o is MulticastDelegate[], false); Eval(15839, o is IEmpty, false); Eval(15840, o is IEmpty[], false); Eval(15841, o is INotEmpty, false); Eval(15842, o is INotEmpty[], false); Eval(15843, o is IEmptyGen<int>, false); Eval(15844, o is IEmptyGen<int>[], false); Eval(15845, o is INotEmptyGen<int>, false); Eval(15846, o is INotEmptyGen<int>[], false); Eval(15847, o is SimpleDelegate, false); Eval(15848, o is SimpleDelegate[], false); Eval(15849, o is GenericDelegate<int>, false); Eval(15850, o is GenericDelegate<int>[], false); Eval(15851, o is EmptyClass, false); Eval(15852, o is EmptyClass[], false); Eval(15853, o is NotEmptyClass, false); Eval(15854, o is NotEmptyClass[], false); Eval(15855, o is EmptyClassGen<int>, false); Eval(15856, o is EmptyClassGen<int>[], false); Eval(15857, o is NotEmptyClassGen<Guid>, false); Eval(15858, o is NotEmptyClassGen<Guid>[], false); Eval(15859, o is NotEmptyClassConstrainedGen<object>, false); Eval(15860, o is NotEmptyClassConstrainedGen<object>[], false); Eval(15861, o is NestedClass, false); Eval(15862, o is NestedClass[], false); Eval(15863, o is NestedClassGen<Decimal>, false); Eval(15864, o is NestedClassGen<Decimal>[], false); Eval(15865, o is ImplementOneInterfaceC, false); Eval(15866, o is ImplementOneInterfaceC[], false); Eval(15867, o is ImplementTwoInterfaceC, false); Eval(15868, o is ImplementTwoInterfaceC[], false); Eval(15869, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(15870, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(15871, o is ImplementTwoInterfaceGenC<int>, false); Eval(15872, o is ImplementTwoInterfaceGenC<int>[], false); Eval(15873, o is ImplementAllInterfaceC<int>, false); Eval(15874, o is ImplementAllInterfaceC<int>[], false); Eval(15875, o is SealedClass, false); Eval(15876, o is SealedClass[], false); } } // end of test case 0027 private static void TestCase0028() { { long v = default(long); ValueType o = v; Eval(15877, o is EmptyStruct, false); Eval(15878, o is EmptyStruct[], false); Eval(15879, o is EmptyStruct?, false); Eval(15880, o is EmptyStruct?[], false); Eval(15881, o is NotEmptyStruct, false); Eval(15882, o is NotEmptyStruct[], false); Eval(15883, o is NotEmptyStruct?, false); Eval(15884, o is NotEmptyStruct?[], false); Eval(15885, o is EmptyStructGen<int>, false); Eval(15886, o is EmptyStructGen<int>[], false); Eval(15887, o is EmptyStructGen<int>?, false); Eval(15888, o is EmptyStructGen<int>?[], false); Eval(15889, o is NotEmptyStructGen<Guid>, false); Eval(15890, o is NotEmptyStructGen<Guid>[], false); Eval(15891, o is NotEmptyStructGen<Guid>?, false); Eval(15892, o is NotEmptyStructGen<Guid>?[], false); Eval(15893, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(15894, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(15895, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(15896, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(15897, o is NestedStruct, false); Eval(15898, o is NestedStruct[], false); Eval(15899, o is NestedStruct?, false); Eval(15900, o is NestedStruct?[], false); Eval(15901, o is NestedStructGen<Decimal>, false); Eval(15902, o is NestedStructGen<Decimal>[], false); Eval(15903, o is NestedStructGen<Decimal>?, false); Eval(15904, o is NestedStructGen<Decimal>?[], false); Eval(15905, o is ExplicitFieldOffsetStruct, false); Eval(15906, o is ExplicitFieldOffsetStruct[], false); Eval(15907, o is ExplicitFieldOffsetStruct?, false); Eval(15908, o is ExplicitFieldOffsetStruct?[], false); Eval(15917, o is MarshalAsStruct, false); Eval(15918, o is MarshalAsStruct[], false); Eval(15919, o is MarshalAsStruct?, false); Eval(15920, o is MarshalAsStruct?[], false); Eval(15921, o is ImplementOneInterface, false); Eval(15922, o is ImplementOneInterface[], false); Eval(15923, o is ImplementOneInterface?, false); Eval(15924, o is ImplementOneInterface?[], false); Eval(15925, o is ImplementTwoInterface, false); Eval(15926, o is ImplementTwoInterface[], false); Eval(15927, o is ImplementTwoInterface?, false); Eval(15928, o is ImplementTwoInterface?[], false); Eval(15929, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(15930, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(15931, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(15932, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(15933, o is ImplementTwoInterfaceGen<int>, false); Eval(15934, o is ImplementTwoInterfaceGen<int>[], false); Eval(15935, o is ImplementTwoInterfaceGen<int>?, false); Eval(15936, o is ImplementTwoInterfaceGen<int>?[], false); Eval(15937, o is ImplementAllInterface<int>, false); Eval(15938, o is ImplementAllInterface<int>[], false); Eval(15939, o is ImplementAllInterface<int>?, false); Eval(15940, o is ImplementAllInterface<int>?[], false); Eval(15941, o is IntE, false); Eval(15942, o is IntE[], false); Eval(15943, o is IntE?, false); Eval(15944, o is IntE?[], false); Eval(15945, o is ByteE, false); Eval(15946, o is ByteE[], false); Eval(15947, o is ByteE?, false); Eval(15948, o is ByteE?[], false); Eval(15949, o is LongE, false); Eval(15950, o is LongE[], false); Eval(15951, o is LongE?, false); Eval(15952, o is LongE?[], false); Eval(15953, o is char, false); Eval(15954, o is char[], false); Eval(15955, o is char?, false); Eval(15956, o is char?[], false); Eval(15957, o is bool, false); Eval(15958, o is bool[], false); Eval(15959, o is bool?, false); Eval(15960, o is bool?[], false); Eval(15961, o is byte, false); Eval(15962, o is byte[], false); Eval(15963, o is byte?, false); Eval(15964, o is byte?[], false); Eval(15965, o is sbyte, false); Eval(15966, o is sbyte[], false); Eval(15967, o is sbyte?, false); Eval(15968, o is sbyte?[], false); Eval(15969, o is short, false); Eval(15970, o is short[], false); Eval(15971, o is short?, false); Eval(15972, o is short?[], false); Eval(15973, o is ushort, false); Eval(15974, o is ushort[], false); Eval(15975, o is ushort?, false); Eval(15976, o is ushort?[], false); Eval(15977, o is int, false); Eval(15978, o is int[], false); Eval(15979, o is int?, false); Eval(15980, o is int?[], false); Eval(15981, o is uint, false); Eval(15982, o is uint[], false); Eval(15983, o is uint?, false); Eval(15984, o is uint?[], false); Eval(15985, o is long, true); Eval(15986, o is long[], false); Eval(15987, o is long?, true); Eval(15988, o is long?[], false); Eval(15989, o is ulong, false); Eval(15990, o is ulong[], false); Eval(15991, o is ulong?, false); Eval(15992, o is ulong?[], false); Eval(15993, o is float, false); Eval(15994, o is float[], false); Eval(15995, o is float?, false); Eval(15996, o is float?[], false); Eval(15997, o is double, false); Eval(15998, o is double[], false); Eval(15999, o is double?, false); Eval(16000, o is double?[], false); Eval(16001, o is decimal, false); Eval(16002, o is decimal[], false); Eval(16003, o is decimal?, false); Eval(16004, o is decimal?[], false); Eval(16005, o is IntPtr, false); Eval(16006, o is IntPtr[], false); Eval(16007, o is IntPtr?, false); Eval(16008, o is IntPtr?[], false); Eval(16009, o is UIntPtr, false); Eval(16010, o is UIntPtr[], false); Eval(16011, o is UIntPtr?, false); Eval(16012, o is UIntPtr?[], false); Eval(16013, o is Guid, false); Eval(16014, o is Guid[], false); Eval(16015, o is Guid?, false); Eval(16016, o is Guid?[], false); Eval(16017, o is GCHandle, false); Eval(16018, o is GCHandle[], false); Eval(16019, o is GCHandle?, false); Eval(16020, o is GCHandle?[], false); Eval(16021, o is object, true); Eval(16022, o is object[], false); Eval(16023, o is string, false); Eval(16024, o is string[], false); Eval(16025, o is ValueType, true); Eval(16026, o is ValueType[], false); Eval(16027, o is Array, false); Eval(16028, o is Array[], false); Eval(16029, o is Enum, false); Eval(16030, o is Enum[], false); Eval(16031, o is Delegate, false); Eval(16032, o is Delegate[], false); Eval(16033, o is MulticastDelegate, false); Eval(16034, o is MulticastDelegate[], false); Eval(16035, o is IEmpty, false); Eval(16036, o is IEmpty[], false); Eval(16037, o is INotEmpty, false); Eval(16038, o is INotEmpty[], false); Eval(16039, o is IEmptyGen<int>, false); Eval(16040, o is IEmptyGen<int>[], false); Eval(16041, o is INotEmptyGen<int>, false); Eval(16042, o is INotEmptyGen<int>[], false); Eval(16043, o is SimpleDelegate, false); Eval(16044, o is SimpleDelegate[], false); Eval(16045, o is GenericDelegate<int>, false); Eval(16046, o is GenericDelegate<int>[], false); Eval(16047, o is EmptyClass, false); Eval(16048, o is EmptyClass[], false); Eval(16049, o is NotEmptyClass, false); Eval(16050, o is NotEmptyClass[], false); Eval(16051, o is EmptyClassGen<int>, false); Eval(16052, o is EmptyClassGen<int>[], false); Eval(16053, o is NotEmptyClassGen<Guid>, false); Eval(16054, o is NotEmptyClassGen<Guid>[], false); Eval(16055, o is NotEmptyClassConstrainedGen<object>, false); Eval(16056, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16057, o is NestedClass, false); Eval(16058, o is NestedClass[], false); Eval(16059, o is NestedClassGen<Decimal>, false); Eval(16060, o is NestedClassGen<Decimal>[], false); Eval(16061, o is ImplementOneInterfaceC, false); Eval(16062, o is ImplementOneInterfaceC[], false); Eval(16063, o is ImplementTwoInterfaceC, false); Eval(16064, o is ImplementTwoInterfaceC[], false); Eval(16065, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16066, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16067, o is ImplementTwoInterfaceGenC<int>, false); Eval(16068, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16069, o is ImplementAllInterfaceC<int>, false); Eval(16070, o is ImplementAllInterfaceC<int>[], false); Eval(16071, o is SealedClass, false); Eval(16072, o is SealedClass[], false); } { long? v = default(long); ValueType o = v; Eval(16073, o is EmptyStruct, false); Eval(16074, o is EmptyStruct[], false); Eval(16075, o is EmptyStruct?, false); Eval(16076, o is EmptyStruct?[], false); Eval(16077, o is NotEmptyStruct, false); Eval(16078, o is NotEmptyStruct[], false); Eval(16079, o is NotEmptyStruct?, false); Eval(16080, o is NotEmptyStruct?[], false); Eval(16081, o is EmptyStructGen<int>, false); Eval(16082, o is EmptyStructGen<int>[], false); Eval(16083, o is EmptyStructGen<int>?, false); Eval(16084, o is EmptyStructGen<int>?[], false); Eval(16085, o is NotEmptyStructGen<Guid>, false); Eval(16086, o is NotEmptyStructGen<Guid>[], false); Eval(16087, o is NotEmptyStructGen<Guid>?, false); Eval(16088, o is NotEmptyStructGen<Guid>?[], false); Eval(16089, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16090, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16091, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16092, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16093, o is NestedStruct, false); Eval(16094, o is NestedStruct[], false); Eval(16095, o is NestedStruct?, false); Eval(16096, o is NestedStruct?[], false); Eval(16097, o is NestedStructGen<Decimal>, false); Eval(16098, o is NestedStructGen<Decimal>[], false); Eval(16099, o is NestedStructGen<Decimal>?, false); Eval(16100, o is NestedStructGen<Decimal>?[], false); Eval(16101, o is ExplicitFieldOffsetStruct, false); Eval(16102, o is ExplicitFieldOffsetStruct[], false); Eval(16103, o is ExplicitFieldOffsetStruct?, false); Eval(16104, o is ExplicitFieldOffsetStruct?[], false); Eval(16113, o is MarshalAsStruct, false); Eval(16114, o is MarshalAsStruct[], false); Eval(16115, o is MarshalAsStruct?, false); Eval(16116, o is MarshalAsStruct?[], false); Eval(16117, o is ImplementOneInterface, false); Eval(16118, o is ImplementOneInterface[], false); Eval(16119, o is ImplementOneInterface?, false); Eval(16120, o is ImplementOneInterface?[], false); Eval(16121, o is ImplementTwoInterface, false); Eval(16122, o is ImplementTwoInterface[], false); Eval(16123, o is ImplementTwoInterface?, false); Eval(16124, o is ImplementTwoInterface?[], false); Eval(16125, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16126, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16127, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16128, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16129, o is ImplementTwoInterfaceGen<int>, false); Eval(16130, o is ImplementTwoInterfaceGen<int>[], false); Eval(16131, o is ImplementTwoInterfaceGen<int>?, false); Eval(16132, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16133, o is ImplementAllInterface<int>, false); Eval(16134, o is ImplementAllInterface<int>[], false); Eval(16135, o is ImplementAllInterface<int>?, false); Eval(16136, o is ImplementAllInterface<int>?[], false); Eval(16137, o is IntE, false); Eval(16138, o is IntE[], false); Eval(16139, o is IntE?, false); Eval(16140, o is IntE?[], false); Eval(16141, o is ByteE, false); Eval(16142, o is ByteE[], false); Eval(16143, o is ByteE?, false); Eval(16144, o is ByteE?[], false); Eval(16145, o is LongE, false); Eval(16146, o is LongE[], false); Eval(16147, o is LongE?, false); Eval(16148, o is LongE?[], false); Eval(16149, o is char, false); Eval(16150, o is char[], false); Eval(16151, o is char?, false); Eval(16152, o is char?[], false); Eval(16153, o is bool, false); Eval(16154, o is bool[], false); Eval(16155, o is bool?, false); Eval(16156, o is bool?[], false); Eval(16157, o is byte, false); Eval(16158, o is byte[], false); Eval(16159, o is byte?, false); Eval(16160, o is byte?[], false); Eval(16161, o is sbyte, false); Eval(16162, o is sbyte[], false); Eval(16163, o is sbyte?, false); Eval(16164, o is sbyte?[], false); Eval(16165, o is short, false); Eval(16166, o is short[], false); Eval(16167, o is short?, false); Eval(16168, o is short?[], false); Eval(16169, o is ushort, false); Eval(16170, o is ushort[], false); Eval(16171, o is ushort?, false); Eval(16172, o is ushort?[], false); Eval(16173, o is int, false); Eval(16174, o is int[], false); Eval(16175, o is int?, false); Eval(16176, o is int?[], false); Eval(16177, o is uint, false); Eval(16178, o is uint[], false); Eval(16179, o is uint?, false); Eval(16180, o is uint?[], false); Eval(16181, o is long, true); Eval(16182, o is long[], false); Eval(16183, o is long?, true); Eval(16184, o is long?[], false); Eval(16185, o is ulong, false); Eval(16186, o is ulong[], false); Eval(16187, o is ulong?, false); Eval(16188, o is ulong?[], false); Eval(16189, o is float, false); Eval(16190, o is float[], false); Eval(16191, o is float?, false); Eval(16192, o is float?[], false); Eval(16193, o is double, false); Eval(16194, o is double[], false); Eval(16195, o is double?, false); Eval(16196, o is double?[], false); Eval(16197, o is decimal, false); Eval(16198, o is decimal[], false); Eval(16199, o is decimal?, false); Eval(16200, o is decimal?[], false); Eval(16201, o is IntPtr, false); Eval(16202, o is IntPtr[], false); Eval(16203, o is IntPtr?, false); Eval(16204, o is IntPtr?[], false); Eval(16205, o is UIntPtr, false); Eval(16206, o is UIntPtr[], false); Eval(16207, o is UIntPtr?, false); Eval(16208, o is UIntPtr?[], false); Eval(16209, o is Guid, false); Eval(16210, o is Guid[], false); Eval(16211, o is Guid?, false); Eval(16212, o is Guid?[], false); Eval(16213, o is GCHandle, false); Eval(16214, o is GCHandle[], false); Eval(16215, o is GCHandle?, false); Eval(16216, o is GCHandle?[], false); Eval(16217, o is object, true); Eval(16218, o is object[], false); Eval(16219, o is string, false); Eval(16220, o is string[], false); Eval(16221, o is ValueType, true); Eval(16222, o is ValueType[], false); Eval(16223, o is Array, false); Eval(16224, o is Array[], false); Eval(16225, o is Enum, false); Eval(16226, o is Enum[], false); Eval(16227, o is Delegate, false); Eval(16228, o is Delegate[], false); Eval(16229, o is MulticastDelegate, false); Eval(16230, o is MulticastDelegate[], false); Eval(16231, o is IEmpty, false); Eval(16232, o is IEmpty[], false); Eval(16233, o is INotEmpty, false); Eval(16234, o is INotEmpty[], false); Eval(16235, o is IEmptyGen<int>, false); Eval(16236, o is IEmptyGen<int>[], false); Eval(16237, o is INotEmptyGen<int>, false); Eval(16238, o is INotEmptyGen<int>[], false); Eval(16239, o is SimpleDelegate, false); Eval(16240, o is SimpleDelegate[], false); Eval(16241, o is GenericDelegate<int>, false); Eval(16242, o is GenericDelegate<int>[], false); Eval(16243, o is EmptyClass, false); Eval(16244, o is EmptyClass[], false); Eval(16245, o is NotEmptyClass, false); Eval(16246, o is NotEmptyClass[], false); Eval(16247, o is EmptyClassGen<int>, false); Eval(16248, o is EmptyClassGen<int>[], false); Eval(16249, o is NotEmptyClassGen<Guid>, false); Eval(16250, o is NotEmptyClassGen<Guid>[], false); Eval(16251, o is NotEmptyClassConstrainedGen<object>, false); Eval(16252, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16253, o is NestedClass, false); Eval(16254, o is NestedClass[], false); Eval(16255, o is NestedClassGen<Decimal>, false); Eval(16256, o is NestedClassGen<Decimal>[], false); Eval(16257, o is ImplementOneInterfaceC, false); Eval(16258, o is ImplementOneInterfaceC[], false); Eval(16259, o is ImplementTwoInterfaceC, false); Eval(16260, o is ImplementTwoInterfaceC[], false); Eval(16261, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16262, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16263, o is ImplementTwoInterfaceGenC<int>, false); Eval(16264, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16265, o is ImplementAllInterfaceC<int>, false); Eval(16266, o is ImplementAllInterfaceC<int>[], false); Eval(16267, o is SealedClass, false); Eval(16268, o is SealedClass[], false); } { long? v = default(long?); ValueType o = v; Eval(16269, o is EmptyStruct, false); Eval(16270, o is EmptyStruct[], false); Eval(16271, o is EmptyStruct?, false); Eval(16272, o is EmptyStruct?[], false); Eval(16273, o is NotEmptyStruct, false); Eval(16274, o is NotEmptyStruct[], false); Eval(16275, o is NotEmptyStruct?, false); Eval(16276, o is NotEmptyStruct?[], false); Eval(16277, o is EmptyStructGen<int>, false); Eval(16278, o is EmptyStructGen<int>[], false); Eval(16279, o is EmptyStructGen<int>?, false); Eval(16280, o is EmptyStructGen<int>?[], false); Eval(16281, o is NotEmptyStructGen<Guid>, false); Eval(16282, o is NotEmptyStructGen<Guid>[], false); Eval(16283, o is NotEmptyStructGen<Guid>?, false); Eval(16284, o is NotEmptyStructGen<Guid>?[], false); Eval(16285, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16286, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16287, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16288, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16289, o is NestedStruct, false); Eval(16290, o is NestedStruct[], false); Eval(16291, o is NestedStruct?, false); Eval(16292, o is NestedStruct?[], false); Eval(16293, o is NestedStructGen<Decimal>, false); Eval(16294, o is NestedStructGen<Decimal>[], false); Eval(16295, o is NestedStructGen<Decimal>?, false); Eval(16296, o is NestedStructGen<Decimal>?[], false); Eval(16297, o is ExplicitFieldOffsetStruct, false); Eval(16298, o is ExplicitFieldOffsetStruct[], false); Eval(16299, o is ExplicitFieldOffsetStruct?, false); Eval(16300, o is ExplicitFieldOffsetStruct?[], false); Eval(16309, o is MarshalAsStruct, false); Eval(16310, o is MarshalAsStruct[], false); Eval(16311, o is MarshalAsStruct?, false); Eval(16312, o is MarshalAsStruct?[], false); Eval(16313, o is ImplementOneInterface, false); Eval(16314, o is ImplementOneInterface[], false); Eval(16315, o is ImplementOneInterface?, false); Eval(16316, o is ImplementOneInterface?[], false); Eval(16317, o is ImplementTwoInterface, false); Eval(16318, o is ImplementTwoInterface[], false); Eval(16319, o is ImplementTwoInterface?, false); Eval(16320, o is ImplementTwoInterface?[], false); Eval(16321, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16322, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16323, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16324, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16325, o is ImplementTwoInterfaceGen<int>, false); Eval(16326, o is ImplementTwoInterfaceGen<int>[], false); Eval(16327, o is ImplementTwoInterfaceGen<int>?, false); Eval(16328, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16329, o is ImplementAllInterface<int>, false); Eval(16330, o is ImplementAllInterface<int>[], false); Eval(16331, o is ImplementAllInterface<int>?, false); Eval(16332, o is ImplementAllInterface<int>?[], false); Eval(16333, o is IntE, false); Eval(16334, o is IntE[], false); Eval(16335, o is IntE?, false); Eval(16336, o is IntE?[], false); Eval(16337, o is ByteE, false); Eval(16338, o is ByteE[], false); Eval(16339, o is ByteE?, false); Eval(16340, o is ByteE?[], false); Eval(16341, o is LongE, false); Eval(16342, o is LongE[], false); Eval(16343, o is LongE?, false); Eval(16344, o is LongE?[], false); Eval(16345, o is char, false); Eval(16346, o is char[], false); Eval(16347, o is char?, false); Eval(16348, o is char?[], false); Eval(16349, o is bool, false); Eval(16350, o is bool[], false); Eval(16351, o is bool?, false); Eval(16352, o is bool?[], false); Eval(16353, o is byte, false); Eval(16354, o is byte[], false); Eval(16355, o is byte?, false); Eval(16356, o is byte?[], false); Eval(16357, o is sbyte, false); Eval(16358, o is sbyte[], false); Eval(16359, o is sbyte?, false); Eval(16360, o is sbyte?[], false); Eval(16361, o is short, false); Eval(16362, o is short[], false); Eval(16363, o is short?, false); Eval(16364, o is short?[], false); Eval(16365, o is ushort, false); Eval(16366, o is ushort[], false); Eval(16367, o is ushort?, false); Eval(16368, o is ushort?[], false); Eval(16369, o is int, false); Eval(16370, o is int[], false); Eval(16371, o is int?, false); Eval(16372, o is int?[], false); Eval(16373, o is uint, false); Eval(16374, o is uint[], false); Eval(16375, o is uint?, false); Eval(16376, o is uint?[], false); Eval(16377, o is long, false); Eval(16378, o is long[], false); Eval(16379, o is long?, false); Eval(16380, o is long?[], false); Eval(16381, o is ulong, false); Eval(16382, o is ulong[], false); Eval(16383, o is ulong?, false); Eval(16384, o is ulong?[], false); Eval(16385, o is float, false); Eval(16386, o is float[], false); Eval(16387, o is float?, false); Eval(16388, o is float?[], false); Eval(16389, o is double, false); Eval(16390, o is double[], false); Eval(16391, o is double?, false); Eval(16392, o is double?[], false); Eval(16393, o is decimal, false); Eval(16394, o is decimal[], false); Eval(16395, o is decimal?, false); Eval(16396, o is decimal?[], false); Eval(16397, o is IntPtr, false); Eval(16398, o is IntPtr[], false); Eval(16399, o is IntPtr?, false); Eval(16400, o is IntPtr?[], false); Eval(16401, o is UIntPtr, false); Eval(16402, o is UIntPtr[], false); Eval(16403, o is UIntPtr?, false); Eval(16404, o is UIntPtr?[], false); Eval(16405, o is Guid, false); Eval(16406, o is Guid[], false); Eval(16407, o is Guid?, false); Eval(16408, o is Guid?[], false); Eval(16409, o is GCHandle, false); Eval(16410, o is GCHandle[], false); Eval(16411, o is GCHandle?, false); Eval(16412, o is GCHandle?[], false); Eval(16413, o is object, false); Eval(16414, o is object[], false); Eval(16415, o is string, false); Eval(16416, o is string[], false); Eval(16417, o is ValueType, false); Eval(16418, o is ValueType[], false); Eval(16419, o is Array, false); Eval(16420, o is Array[], false); Eval(16421, o is Enum, false); Eval(16422, o is Enum[], false); Eval(16423, o is Delegate, false); Eval(16424, o is Delegate[], false); Eval(16425, o is MulticastDelegate, false); Eval(16426, o is MulticastDelegate[], false); Eval(16427, o is IEmpty, false); Eval(16428, o is IEmpty[], false); Eval(16429, o is INotEmpty, false); Eval(16430, o is INotEmpty[], false); Eval(16431, o is IEmptyGen<int>, false); Eval(16432, o is IEmptyGen<int>[], false); Eval(16433, o is INotEmptyGen<int>, false); Eval(16434, o is INotEmptyGen<int>[], false); Eval(16435, o is SimpleDelegate, false); Eval(16436, o is SimpleDelegate[], false); Eval(16437, o is GenericDelegate<int>, false); Eval(16438, o is GenericDelegate<int>[], false); Eval(16439, o is EmptyClass, false); Eval(16440, o is EmptyClass[], false); Eval(16441, o is NotEmptyClass, false); Eval(16442, o is NotEmptyClass[], false); Eval(16443, o is EmptyClassGen<int>, false); Eval(16444, o is EmptyClassGen<int>[], false); Eval(16445, o is NotEmptyClassGen<Guid>, false); Eval(16446, o is NotEmptyClassGen<Guid>[], false); Eval(16447, o is NotEmptyClassConstrainedGen<object>, false); Eval(16448, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16449, o is NestedClass, false); Eval(16450, o is NestedClass[], false); Eval(16451, o is NestedClassGen<Decimal>, false); Eval(16452, o is NestedClassGen<Decimal>[], false); Eval(16453, o is ImplementOneInterfaceC, false); Eval(16454, o is ImplementOneInterfaceC[], false); Eval(16455, o is ImplementTwoInterfaceC, false); Eval(16456, o is ImplementTwoInterfaceC[], false); Eval(16457, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16458, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16459, o is ImplementTwoInterfaceGenC<int>, false); Eval(16460, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16461, o is ImplementAllInterfaceC<int>, false); Eval(16462, o is ImplementAllInterfaceC<int>[], false); Eval(16463, o is SealedClass, false); Eval(16464, o is SealedClass[], false); } } // end of test case 0028 private static void TestCase0029() { { ulong v = default(ulong); ValueType o = v; Eval(16465, o is EmptyStruct, false); Eval(16466, o is EmptyStruct[], false); Eval(16467, o is EmptyStruct?, false); Eval(16468, o is EmptyStruct?[], false); Eval(16469, o is NotEmptyStruct, false); Eval(16470, o is NotEmptyStruct[], false); Eval(16471, o is NotEmptyStruct?, false); Eval(16472, o is NotEmptyStruct?[], false); Eval(16473, o is EmptyStructGen<int>, false); Eval(16474, o is EmptyStructGen<int>[], false); Eval(16475, o is EmptyStructGen<int>?, false); Eval(16476, o is EmptyStructGen<int>?[], false); Eval(16477, o is NotEmptyStructGen<Guid>, false); Eval(16478, o is NotEmptyStructGen<Guid>[], false); Eval(16479, o is NotEmptyStructGen<Guid>?, false); Eval(16480, o is NotEmptyStructGen<Guid>?[], false); Eval(16481, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16482, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16483, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16484, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16485, o is NestedStruct, false); Eval(16486, o is NestedStruct[], false); Eval(16487, o is NestedStruct?, false); Eval(16488, o is NestedStruct?[], false); Eval(16489, o is NestedStructGen<Decimal>, false); Eval(16490, o is NestedStructGen<Decimal>[], false); Eval(16491, o is NestedStructGen<Decimal>?, false); Eval(16492, o is NestedStructGen<Decimal>?[], false); Eval(16493, o is ExplicitFieldOffsetStruct, false); Eval(16494, o is ExplicitFieldOffsetStruct[], false); Eval(16495, o is ExplicitFieldOffsetStruct?, false); Eval(16496, o is ExplicitFieldOffsetStruct?[], false); Eval(16505, o is MarshalAsStruct, false); Eval(16506, o is MarshalAsStruct[], false); Eval(16507, o is MarshalAsStruct?, false); Eval(16508, o is MarshalAsStruct?[], false); Eval(16509, o is ImplementOneInterface, false); Eval(16510, o is ImplementOneInterface[], false); Eval(16511, o is ImplementOneInterface?, false); Eval(16512, o is ImplementOneInterface?[], false); Eval(16513, o is ImplementTwoInterface, false); Eval(16514, o is ImplementTwoInterface[], false); Eval(16515, o is ImplementTwoInterface?, false); Eval(16516, o is ImplementTwoInterface?[], false); Eval(16517, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16518, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16519, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16520, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16521, o is ImplementTwoInterfaceGen<int>, false); Eval(16522, o is ImplementTwoInterfaceGen<int>[], false); Eval(16523, o is ImplementTwoInterfaceGen<int>?, false); Eval(16524, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16525, o is ImplementAllInterface<int>, false); Eval(16526, o is ImplementAllInterface<int>[], false); Eval(16527, o is ImplementAllInterface<int>?, false); Eval(16528, o is ImplementAllInterface<int>?[], false); Eval(16529, o is IntE, false); Eval(16530, o is IntE[], false); Eval(16531, o is IntE?, false); Eval(16532, o is IntE?[], false); Eval(16533, o is ByteE, false); Eval(16534, o is ByteE[], false); Eval(16535, o is ByteE?, false); Eval(16536, o is ByteE?[], false); Eval(16537, o is LongE, false); Eval(16538, o is LongE[], false); Eval(16539, o is LongE?, false); Eval(16540, o is LongE?[], false); Eval(16541, o is char, false); Eval(16542, o is char[], false); Eval(16543, o is char?, false); Eval(16544, o is char?[], false); Eval(16545, o is bool, false); Eval(16546, o is bool[], false); Eval(16547, o is bool?, false); Eval(16548, o is bool?[], false); Eval(16549, o is byte, false); Eval(16550, o is byte[], false); Eval(16551, o is byte?, false); Eval(16552, o is byte?[], false); Eval(16553, o is sbyte, false); Eval(16554, o is sbyte[], false); Eval(16555, o is sbyte?, false); Eval(16556, o is sbyte?[], false); Eval(16557, o is short, false); Eval(16558, o is short[], false); Eval(16559, o is short?, false); Eval(16560, o is short?[], false); Eval(16561, o is ushort, false); Eval(16562, o is ushort[], false); Eval(16563, o is ushort?, false); Eval(16564, o is ushort?[], false); Eval(16565, o is int, false); Eval(16566, o is int[], false); Eval(16567, o is int?, false); Eval(16568, o is int?[], false); Eval(16569, o is uint, false); Eval(16570, o is uint[], false); Eval(16571, o is uint?, false); Eval(16572, o is uint?[], false); Eval(16573, o is long, false); Eval(16574, o is long[], false); Eval(16575, o is long?, false); Eval(16576, o is long?[], false); Eval(16577, o is ulong, true); Eval(16578, o is ulong[], false); Eval(16579, o is ulong?, true); Eval(16580, o is ulong?[], false); Eval(16581, o is float, false); Eval(16582, o is float[], false); Eval(16583, o is float?, false); Eval(16584, o is float?[], false); Eval(16585, o is double, false); Eval(16586, o is double[], false); Eval(16587, o is double?, false); Eval(16588, o is double?[], false); Eval(16589, o is decimal, false); Eval(16590, o is decimal[], false); Eval(16591, o is decimal?, false); Eval(16592, o is decimal?[], false); Eval(16593, o is IntPtr, false); Eval(16594, o is IntPtr[], false); Eval(16595, o is IntPtr?, false); Eval(16596, o is IntPtr?[], false); Eval(16597, o is UIntPtr, false); Eval(16598, o is UIntPtr[], false); Eval(16599, o is UIntPtr?, false); Eval(16600, o is UIntPtr?[], false); Eval(16601, o is Guid, false); Eval(16602, o is Guid[], false); Eval(16603, o is Guid?, false); Eval(16604, o is Guid?[], false); Eval(16605, o is GCHandle, false); Eval(16606, o is GCHandle[], false); Eval(16607, o is GCHandle?, false); Eval(16608, o is GCHandle?[], false); Eval(16609, o is object, true); Eval(16610, o is object[], false); Eval(16611, o is string, false); Eval(16612, o is string[], false); Eval(16613, o is ValueType, true); Eval(16614, o is ValueType[], false); Eval(16615, o is Array, false); Eval(16616, o is Array[], false); Eval(16617, o is Enum, false); Eval(16618, o is Enum[], false); Eval(16619, o is Delegate, false); Eval(16620, o is Delegate[], false); Eval(16621, o is MulticastDelegate, false); Eval(16622, o is MulticastDelegate[], false); Eval(16623, o is IEmpty, false); Eval(16624, o is IEmpty[], false); Eval(16625, o is INotEmpty, false); Eval(16626, o is INotEmpty[], false); Eval(16627, o is IEmptyGen<int>, false); Eval(16628, o is IEmptyGen<int>[], false); Eval(16629, o is INotEmptyGen<int>, false); Eval(16630, o is INotEmptyGen<int>[], false); Eval(16631, o is SimpleDelegate, false); Eval(16632, o is SimpleDelegate[], false); Eval(16633, o is GenericDelegate<int>, false); Eval(16634, o is GenericDelegate<int>[], false); Eval(16635, o is EmptyClass, false); Eval(16636, o is EmptyClass[], false); Eval(16637, o is NotEmptyClass, false); Eval(16638, o is NotEmptyClass[], false); Eval(16639, o is EmptyClassGen<int>, false); Eval(16640, o is EmptyClassGen<int>[], false); Eval(16641, o is NotEmptyClassGen<Guid>, false); Eval(16642, o is NotEmptyClassGen<Guid>[], false); Eval(16643, o is NotEmptyClassConstrainedGen<object>, false); Eval(16644, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16645, o is NestedClass, false); Eval(16646, o is NestedClass[], false); Eval(16647, o is NestedClassGen<Decimal>, false); Eval(16648, o is NestedClassGen<Decimal>[], false); Eval(16649, o is ImplementOneInterfaceC, false); Eval(16650, o is ImplementOneInterfaceC[], false); Eval(16651, o is ImplementTwoInterfaceC, false); Eval(16652, o is ImplementTwoInterfaceC[], false); Eval(16653, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16654, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16655, o is ImplementTwoInterfaceGenC<int>, false); Eval(16656, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16657, o is ImplementAllInterfaceC<int>, false); Eval(16658, o is ImplementAllInterfaceC<int>[], false); Eval(16659, o is SealedClass, false); Eval(16660, o is SealedClass[], false); } { ulong? v = default(ulong); ValueType o = v; Eval(16661, o is EmptyStruct, false); Eval(16662, o is EmptyStruct[], false); Eval(16663, o is EmptyStruct?, false); Eval(16664, o is EmptyStruct?[], false); Eval(16665, o is NotEmptyStruct, false); Eval(16666, o is NotEmptyStruct[], false); Eval(16667, o is NotEmptyStruct?, false); Eval(16668, o is NotEmptyStruct?[], false); Eval(16669, o is EmptyStructGen<int>, false); Eval(16670, o is EmptyStructGen<int>[], false); Eval(16671, o is EmptyStructGen<int>?, false); Eval(16672, o is EmptyStructGen<int>?[], false); Eval(16673, o is NotEmptyStructGen<Guid>, false); Eval(16674, o is NotEmptyStructGen<Guid>[], false); Eval(16675, o is NotEmptyStructGen<Guid>?, false); Eval(16676, o is NotEmptyStructGen<Guid>?[], false); Eval(16677, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16678, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16679, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16680, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16681, o is NestedStruct, false); Eval(16682, o is NestedStruct[], false); Eval(16683, o is NestedStruct?, false); Eval(16684, o is NestedStruct?[], false); Eval(16685, o is NestedStructGen<Decimal>, false); Eval(16686, o is NestedStructGen<Decimal>[], false); Eval(16687, o is NestedStructGen<Decimal>?, false); Eval(16688, o is NestedStructGen<Decimal>?[], false); Eval(16689, o is ExplicitFieldOffsetStruct, false); Eval(16690, o is ExplicitFieldOffsetStruct[], false); Eval(16691, o is ExplicitFieldOffsetStruct?, false); Eval(16692, o is ExplicitFieldOffsetStruct?[], false); Eval(16701, o is MarshalAsStruct, false); Eval(16702, o is MarshalAsStruct[], false); Eval(16703, o is MarshalAsStruct?, false); Eval(16704, o is MarshalAsStruct?[], false); Eval(16705, o is ImplementOneInterface, false); Eval(16706, o is ImplementOneInterface[], false); Eval(16707, o is ImplementOneInterface?, false); Eval(16708, o is ImplementOneInterface?[], false); Eval(16709, o is ImplementTwoInterface, false); Eval(16710, o is ImplementTwoInterface[], false); Eval(16711, o is ImplementTwoInterface?, false); Eval(16712, o is ImplementTwoInterface?[], false); Eval(16713, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16714, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16715, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16716, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16717, o is ImplementTwoInterfaceGen<int>, false); Eval(16718, o is ImplementTwoInterfaceGen<int>[], false); Eval(16719, o is ImplementTwoInterfaceGen<int>?, false); Eval(16720, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16721, o is ImplementAllInterface<int>, false); Eval(16722, o is ImplementAllInterface<int>[], false); Eval(16723, o is ImplementAllInterface<int>?, false); Eval(16724, o is ImplementAllInterface<int>?[], false); Eval(16725, o is IntE, false); Eval(16726, o is IntE[], false); Eval(16727, o is IntE?, false); Eval(16728, o is IntE?[], false); Eval(16729, o is ByteE, false); Eval(16730, o is ByteE[], false); Eval(16731, o is ByteE?, false); Eval(16732, o is ByteE?[], false); Eval(16733, o is LongE, false); Eval(16734, o is LongE[], false); Eval(16735, o is LongE?, false); Eval(16736, o is LongE?[], false); Eval(16737, o is char, false); Eval(16738, o is char[], false); Eval(16739, o is char?, false); Eval(16740, o is char?[], false); Eval(16741, o is bool, false); Eval(16742, o is bool[], false); Eval(16743, o is bool?, false); Eval(16744, o is bool?[], false); Eval(16745, o is byte, false); Eval(16746, o is byte[], false); Eval(16747, o is byte?, false); Eval(16748, o is byte?[], false); Eval(16749, o is sbyte, false); Eval(16750, o is sbyte[], false); Eval(16751, o is sbyte?, false); Eval(16752, o is sbyte?[], false); Eval(16753, o is short, false); Eval(16754, o is short[], false); Eval(16755, o is short?, false); Eval(16756, o is short?[], false); Eval(16757, o is ushort, false); Eval(16758, o is ushort[], false); Eval(16759, o is ushort?, false); Eval(16760, o is ushort?[], false); Eval(16761, o is int, false); Eval(16762, o is int[], false); Eval(16763, o is int?, false); Eval(16764, o is int?[], false); Eval(16765, o is uint, false); Eval(16766, o is uint[], false); Eval(16767, o is uint?, false); Eval(16768, o is uint?[], false); Eval(16769, o is long, false); Eval(16770, o is long[], false); Eval(16771, o is long?, false); Eval(16772, o is long?[], false); Eval(16773, o is ulong, true); Eval(16774, o is ulong[], false); Eval(16775, o is ulong?, true); Eval(16776, o is ulong?[], false); Eval(16777, o is float, false); Eval(16778, o is float[], false); Eval(16779, o is float?, false); Eval(16780, o is float?[], false); Eval(16781, o is double, false); Eval(16782, o is double[], false); Eval(16783, o is double?, false); Eval(16784, o is double?[], false); Eval(16785, o is decimal, false); Eval(16786, o is decimal[], false); Eval(16787, o is decimal?, false); Eval(16788, o is decimal?[], false); Eval(16789, o is IntPtr, false); Eval(16790, o is IntPtr[], false); Eval(16791, o is IntPtr?, false); Eval(16792, o is IntPtr?[], false); Eval(16793, o is UIntPtr, false); Eval(16794, o is UIntPtr[], false); Eval(16795, o is UIntPtr?, false); Eval(16796, o is UIntPtr?[], false); Eval(16797, o is Guid, false); Eval(16798, o is Guid[], false); Eval(16799, o is Guid?, false); Eval(16800, o is Guid?[], false); Eval(16801, o is GCHandle, false); Eval(16802, o is GCHandle[], false); Eval(16803, o is GCHandle?, false); Eval(16804, o is GCHandle?[], false); Eval(16805, o is object, true); Eval(16806, o is object[], false); Eval(16807, o is string, false); Eval(16808, o is string[], false); Eval(16809, o is ValueType, true); Eval(16810, o is ValueType[], false); Eval(16811, o is Array, false); Eval(16812, o is Array[], false); Eval(16813, o is Enum, false); Eval(16814, o is Enum[], false); Eval(16815, o is Delegate, false); Eval(16816, o is Delegate[], false); Eval(16817, o is MulticastDelegate, false); Eval(16818, o is MulticastDelegate[], false); Eval(16819, o is IEmpty, false); Eval(16820, o is IEmpty[], false); Eval(16821, o is INotEmpty, false); Eval(16822, o is INotEmpty[], false); Eval(16823, o is IEmptyGen<int>, false); Eval(16824, o is IEmptyGen<int>[], false); Eval(16825, o is INotEmptyGen<int>, false); Eval(16826, o is INotEmptyGen<int>[], false); Eval(16827, o is SimpleDelegate, false); Eval(16828, o is SimpleDelegate[], false); Eval(16829, o is GenericDelegate<int>, false); Eval(16830, o is GenericDelegate<int>[], false); Eval(16831, o is EmptyClass, false); Eval(16832, o is EmptyClass[], false); Eval(16833, o is NotEmptyClass, false); Eval(16834, o is NotEmptyClass[], false); Eval(16835, o is EmptyClassGen<int>, false); Eval(16836, o is EmptyClassGen<int>[], false); Eval(16837, o is NotEmptyClassGen<Guid>, false); Eval(16838, o is NotEmptyClassGen<Guid>[], false); Eval(16839, o is NotEmptyClassConstrainedGen<object>, false); Eval(16840, o is NotEmptyClassConstrainedGen<object>[], false); Eval(16841, o is NestedClass, false); Eval(16842, o is NestedClass[], false); Eval(16843, o is NestedClassGen<Decimal>, false); Eval(16844, o is NestedClassGen<Decimal>[], false); Eval(16845, o is ImplementOneInterfaceC, false); Eval(16846, o is ImplementOneInterfaceC[], false); Eval(16847, o is ImplementTwoInterfaceC, false); Eval(16848, o is ImplementTwoInterfaceC[], false); Eval(16849, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(16850, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(16851, o is ImplementTwoInterfaceGenC<int>, false); Eval(16852, o is ImplementTwoInterfaceGenC<int>[], false); Eval(16853, o is ImplementAllInterfaceC<int>, false); Eval(16854, o is ImplementAllInterfaceC<int>[], false); Eval(16855, o is SealedClass, false); Eval(16856, o is SealedClass[], false); } { ulong? v = default(ulong?); ValueType o = v; Eval(16857, o is EmptyStruct, false); Eval(16858, o is EmptyStruct[], false); Eval(16859, o is EmptyStruct?, false); Eval(16860, o is EmptyStruct?[], false); Eval(16861, o is NotEmptyStruct, false); Eval(16862, o is NotEmptyStruct[], false); Eval(16863, o is NotEmptyStruct?, false); Eval(16864, o is NotEmptyStruct?[], false); Eval(16865, o is EmptyStructGen<int>, false); Eval(16866, o is EmptyStructGen<int>[], false); Eval(16867, o is EmptyStructGen<int>?, false); Eval(16868, o is EmptyStructGen<int>?[], false); Eval(16869, o is NotEmptyStructGen<Guid>, false); Eval(16870, o is NotEmptyStructGen<Guid>[], false); Eval(16871, o is NotEmptyStructGen<Guid>?, false); Eval(16872, o is NotEmptyStructGen<Guid>?[], false); Eval(16873, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(16874, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(16875, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(16876, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(16877, o is NestedStruct, false); Eval(16878, o is NestedStruct[], false); Eval(16879, o is NestedStruct?, false); Eval(16880, o is NestedStruct?[], false); Eval(16881, o is NestedStructGen<Decimal>, false); Eval(16882, o is NestedStructGen<Decimal>[], false); Eval(16883, o is NestedStructGen<Decimal>?, false); Eval(16884, o is NestedStructGen<Decimal>?[], false); Eval(16885, o is ExplicitFieldOffsetStruct, false); Eval(16886, o is ExplicitFieldOffsetStruct[], false); Eval(16887, o is ExplicitFieldOffsetStruct?, false); Eval(16888, o is ExplicitFieldOffsetStruct?[], false); Eval(16897, o is MarshalAsStruct, false); Eval(16898, o is MarshalAsStruct[], false); Eval(16899, o is MarshalAsStruct?, false); Eval(16900, o is MarshalAsStruct?[], false); Eval(16901, o is ImplementOneInterface, false); Eval(16902, o is ImplementOneInterface[], false); Eval(16903, o is ImplementOneInterface?, false); Eval(16904, o is ImplementOneInterface?[], false); Eval(16905, o is ImplementTwoInterface, false); Eval(16906, o is ImplementTwoInterface[], false); Eval(16907, o is ImplementTwoInterface?, false); Eval(16908, o is ImplementTwoInterface?[], false); Eval(16909, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(16910, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(16911, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(16912, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(16913, o is ImplementTwoInterfaceGen<int>, false); Eval(16914, o is ImplementTwoInterfaceGen<int>[], false); Eval(16915, o is ImplementTwoInterfaceGen<int>?, false); Eval(16916, o is ImplementTwoInterfaceGen<int>?[], false); Eval(16917, o is ImplementAllInterface<int>, false); Eval(16918, o is ImplementAllInterface<int>[], false); Eval(16919, o is ImplementAllInterface<int>?, false); Eval(16920, o is ImplementAllInterface<int>?[], false); Eval(16921, o is IntE, false); Eval(16922, o is IntE[], false); Eval(16923, o is IntE?, false); Eval(16924, o is IntE?[], false); Eval(16925, o is ByteE, false); Eval(16926, o is ByteE[], false); Eval(16927, o is ByteE?, false); Eval(16928, o is ByteE?[], false); Eval(16929, o is LongE, false); Eval(16930, o is LongE[], false); Eval(16931, o is LongE?, false); Eval(16932, o is LongE?[], false); Eval(16933, o is char, false); Eval(16934, o is char[], false); Eval(16935, o is char?, false); Eval(16936, o is char?[], false); Eval(16937, o is bool, false); Eval(16938, o is bool[], false); Eval(16939, o is bool?, false); Eval(16940, o is bool?[], false); Eval(16941, o is byte, false); Eval(16942, o is byte[], false); Eval(16943, o is byte?, false); Eval(16944, o is byte?[], false); Eval(16945, o is sbyte, false); Eval(16946, o is sbyte[], false); Eval(16947, o is sbyte?, false); Eval(16948, o is sbyte?[], false); Eval(16949, o is short, false); Eval(16950, o is short[], false); Eval(16951, o is short?, false); Eval(16952, o is short?[], false); Eval(16953, o is ushort, false); Eval(16954, o is ushort[], false); Eval(16955, o is ushort?, false); Eval(16956, o is ushort?[], false); Eval(16957, o is int, false); Eval(16958, o is int[], false); Eval(16959, o is int?, false); Eval(16960, o is int?[], false); Eval(16961, o is uint, false); Eval(16962, o is uint[], false); Eval(16963, o is uint?, false); Eval(16964, o is uint?[], false); Eval(16965, o is long, false); Eval(16966, o is long[], false); Eval(16967, o is long?, false); Eval(16968, o is long?[], false); Eval(16969, o is ulong, false); Eval(16970, o is ulong[], false); Eval(16971, o is ulong?, false); Eval(16972, o is ulong?[], false); Eval(16973, o is float, false); Eval(16974, o is float[], false); Eval(16975, o is float?, false); Eval(16976, o is float?[], false); Eval(16977, o is double, false); Eval(16978, o is double[], false); Eval(16979, o is double?, false); Eval(16980, o is double?[], false); Eval(16981, o is decimal, false); Eval(16982, o is decimal[], false); Eval(16983, o is decimal?, false); Eval(16984, o is decimal?[], false); Eval(16985, o is IntPtr, false); Eval(16986, o is IntPtr[], false); Eval(16987, o is IntPtr?, false); Eval(16988, o is IntPtr?[], false); Eval(16989, o is UIntPtr, false); Eval(16990, o is UIntPtr[], false); Eval(16991, o is UIntPtr?, false); Eval(16992, o is UIntPtr?[], false); Eval(16993, o is Guid, false); Eval(16994, o is Guid[], false); Eval(16995, o is Guid?, false); Eval(16996, o is Guid?[], false); Eval(16997, o is GCHandle, false); Eval(16998, o is GCHandle[], false); Eval(16999, o is GCHandle?, false); Eval(17000, o is GCHandle?[], false); Eval(17001, o is object, false); Eval(17002, o is object[], false); Eval(17003, o is string, false); Eval(17004, o is string[], false); Eval(17005, o is ValueType, false); Eval(17006, o is ValueType[], false); Eval(17007, o is Array, false); Eval(17008, o is Array[], false); Eval(17009, o is Enum, false); Eval(17010, o is Enum[], false); Eval(17011, o is Delegate, false); Eval(17012, o is Delegate[], false); Eval(17013, o is MulticastDelegate, false); Eval(17014, o is MulticastDelegate[], false); Eval(17015, o is IEmpty, false); Eval(17016, o is IEmpty[], false); Eval(17017, o is INotEmpty, false); Eval(17018, o is INotEmpty[], false); Eval(17019, o is IEmptyGen<int>, false); Eval(17020, o is IEmptyGen<int>[], false); Eval(17021, o is INotEmptyGen<int>, false); Eval(17022, o is INotEmptyGen<int>[], false); Eval(17023, o is SimpleDelegate, false); Eval(17024, o is SimpleDelegate[], false); Eval(17025, o is GenericDelegate<int>, false); Eval(17026, o is GenericDelegate<int>[], false); Eval(17027, o is EmptyClass, false); Eval(17028, o is EmptyClass[], false); Eval(17029, o is NotEmptyClass, false); Eval(17030, o is NotEmptyClass[], false); Eval(17031, o is EmptyClassGen<int>, false); Eval(17032, o is EmptyClassGen<int>[], false); Eval(17033, o is NotEmptyClassGen<Guid>, false); Eval(17034, o is NotEmptyClassGen<Guid>[], false); Eval(17035, o is NotEmptyClassConstrainedGen<object>, false); Eval(17036, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17037, o is NestedClass, false); Eval(17038, o is NestedClass[], false); Eval(17039, o is NestedClassGen<Decimal>, false); Eval(17040, o is NestedClassGen<Decimal>[], false); Eval(17041, o is ImplementOneInterfaceC, false); Eval(17042, o is ImplementOneInterfaceC[], false); Eval(17043, o is ImplementTwoInterfaceC, false); Eval(17044, o is ImplementTwoInterfaceC[], false); Eval(17045, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17046, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17047, o is ImplementTwoInterfaceGenC<int>, false); Eval(17048, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17049, o is ImplementAllInterfaceC<int>, false); Eval(17050, o is ImplementAllInterfaceC<int>[], false); Eval(17051, o is SealedClass, false); Eval(17052, o is SealedClass[], false); } } // end of test case 0029 private static void TestCase0030() { { float v = default(float); ValueType o = v; Eval(17053, o is EmptyStruct, false); Eval(17054, o is EmptyStruct[], false); Eval(17055, o is EmptyStruct?, false); Eval(17056, o is EmptyStruct?[], false); Eval(17057, o is NotEmptyStruct, false); Eval(17058, o is NotEmptyStruct[], false); Eval(17059, o is NotEmptyStruct?, false); Eval(17060, o is NotEmptyStruct?[], false); Eval(17061, o is EmptyStructGen<int>, false); Eval(17062, o is EmptyStructGen<int>[], false); Eval(17063, o is EmptyStructGen<int>?, false); Eval(17064, o is EmptyStructGen<int>?[], false); Eval(17065, o is NotEmptyStructGen<Guid>, false); Eval(17066, o is NotEmptyStructGen<Guid>[], false); Eval(17067, o is NotEmptyStructGen<Guid>?, false); Eval(17068, o is NotEmptyStructGen<Guid>?[], false); Eval(17069, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17070, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17071, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17072, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17073, o is NestedStruct, false); Eval(17074, o is NestedStruct[], false); Eval(17075, o is NestedStruct?, false); Eval(17076, o is NestedStruct?[], false); Eval(17077, o is NestedStructGen<Decimal>, false); Eval(17078, o is NestedStructGen<Decimal>[], false); Eval(17079, o is NestedStructGen<Decimal>?, false); Eval(17080, o is NestedStructGen<Decimal>?[], false); Eval(17081, o is ExplicitFieldOffsetStruct, false); Eval(17082, o is ExplicitFieldOffsetStruct[], false); Eval(17083, o is ExplicitFieldOffsetStruct?, false); Eval(17084, o is ExplicitFieldOffsetStruct?[], false); Eval(17093, o is MarshalAsStruct, false); Eval(17094, o is MarshalAsStruct[], false); Eval(17095, o is MarshalAsStruct?, false); Eval(17096, o is MarshalAsStruct?[], false); Eval(17097, o is ImplementOneInterface, false); Eval(17098, o is ImplementOneInterface[], false); Eval(17099, o is ImplementOneInterface?, false); Eval(17100, o is ImplementOneInterface?[], false); Eval(17101, o is ImplementTwoInterface, false); Eval(17102, o is ImplementTwoInterface[], false); Eval(17103, o is ImplementTwoInterface?, false); Eval(17104, o is ImplementTwoInterface?[], false); Eval(17105, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17106, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17107, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17108, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17109, o is ImplementTwoInterfaceGen<int>, false); Eval(17110, o is ImplementTwoInterfaceGen<int>[], false); Eval(17111, o is ImplementTwoInterfaceGen<int>?, false); Eval(17112, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17113, o is ImplementAllInterface<int>, false); Eval(17114, o is ImplementAllInterface<int>[], false); Eval(17115, o is ImplementAllInterface<int>?, false); Eval(17116, o is ImplementAllInterface<int>?[], false); Eval(17117, o is IntE, false); Eval(17118, o is IntE[], false); Eval(17119, o is IntE?, false); Eval(17120, o is IntE?[], false); Eval(17121, o is ByteE, false); Eval(17122, o is ByteE[], false); Eval(17123, o is ByteE?, false); Eval(17124, o is ByteE?[], false); Eval(17125, o is LongE, false); Eval(17126, o is LongE[], false); Eval(17127, o is LongE?, false); Eval(17128, o is LongE?[], false); Eval(17129, o is char, false); Eval(17130, o is char[], false); Eval(17131, o is char?, false); Eval(17132, o is char?[], false); Eval(17133, o is bool, false); Eval(17134, o is bool[], false); Eval(17135, o is bool?, false); Eval(17136, o is bool?[], false); Eval(17137, o is byte, false); Eval(17138, o is byte[], false); Eval(17139, o is byte?, false); Eval(17140, o is byte?[], false); Eval(17141, o is sbyte, false); Eval(17142, o is sbyte[], false); Eval(17143, o is sbyte?, false); Eval(17144, o is sbyte?[], false); Eval(17145, o is short, false); Eval(17146, o is short[], false); Eval(17147, o is short?, false); Eval(17148, o is short?[], false); Eval(17149, o is ushort, false); Eval(17150, o is ushort[], false); Eval(17151, o is ushort?, false); Eval(17152, o is ushort?[], false); Eval(17153, o is int, false); Eval(17154, o is int[], false); Eval(17155, o is int?, false); Eval(17156, o is int?[], false); Eval(17157, o is uint, false); Eval(17158, o is uint[], false); Eval(17159, o is uint?, false); Eval(17160, o is uint?[], false); Eval(17161, o is long, false); Eval(17162, o is long[], false); Eval(17163, o is long?, false); Eval(17164, o is long?[], false); Eval(17165, o is ulong, false); Eval(17166, o is ulong[], false); Eval(17167, o is ulong?, false); Eval(17168, o is ulong?[], false); Eval(17169, o is float, true); Eval(17170, o is float[], false); Eval(17171, o is float?, true); Eval(17172, o is float?[], false); Eval(17173, o is double, false); Eval(17174, o is double[], false); Eval(17175, o is double?, false); Eval(17176, o is double?[], false); Eval(17177, o is decimal, false); Eval(17178, o is decimal[], false); Eval(17179, o is decimal?, false); Eval(17180, o is decimal?[], false); Eval(17181, o is IntPtr, false); Eval(17182, o is IntPtr[], false); Eval(17183, o is IntPtr?, false); Eval(17184, o is IntPtr?[], false); Eval(17185, o is UIntPtr, false); Eval(17186, o is UIntPtr[], false); Eval(17187, o is UIntPtr?, false); Eval(17188, o is UIntPtr?[], false); Eval(17189, o is Guid, false); Eval(17190, o is Guid[], false); Eval(17191, o is Guid?, false); Eval(17192, o is Guid?[], false); Eval(17193, o is GCHandle, false); Eval(17194, o is GCHandle[], false); Eval(17195, o is GCHandle?, false); Eval(17196, o is GCHandle?[], false); Eval(17197, o is object, true); Eval(17198, o is object[], false); Eval(17199, o is string, false); Eval(17200, o is string[], false); Eval(17201, o is ValueType, true); Eval(17202, o is ValueType[], false); Eval(17203, o is Array, false); Eval(17204, o is Array[], false); Eval(17205, o is Enum, false); Eval(17206, o is Enum[], false); Eval(17207, o is Delegate, false); Eval(17208, o is Delegate[], false); Eval(17209, o is MulticastDelegate, false); Eval(17210, o is MulticastDelegate[], false); Eval(17211, o is IEmpty, false); Eval(17212, o is IEmpty[], false); Eval(17213, o is INotEmpty, false); Eval(17214, o is INotEmpty[], false); Eval(17215, o is IEmptyGen<int>, false); Eval(17216, o is IEmptyGen<int>[], false); Eval(17217, o is INotEmptyGen<int>, false); Eval(17218, o is INotEmptyGen<int>[], false); Eval(17219, o is SimpleDelegate, false); Eval(17220, o is SimpleDelegate[], false); Eval(17221, o is GenericDelegate<int>, false); Eval(17222, o is GenericDelegate<int>[], false); Eval(17223, o is EmptyClass, false); Eval(17224, o is EmptyClass[], false); Eval(17225, o is NotEmptyClass, false); Eval(17226, o is NotEmptyClass[], false); Eval(17227, o is EmptyClassGen<int>, false); Eval(17228, o is EmptyClassGen<int>[], false); Eval(17229, o is NotEmptyClassGen<Guid>, false); Eval(17230, o is NotEmptyClassGen<Guid>[], false); Eval(17231, o is NotEmptyClassConstrainedGen<object>, false); Eval(17232, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17233, o is NestedClass, false); Eval(17234, o is NestedClass[], false); Eval(17235, o is NestedClassGen<Decimal>, false); Eval(17236, o is NestedClassGen<Decimal>[], false); Eval(17237, o is ImplementOneInterfaceC, false); Eval(17238, o is ImplementOneInterfaceC[], false); Eval(17239, o is ImplementTwoInterfaceC, false); Eval(17240, o is ImplementTwoInterfaceC[], false); Eval(17241, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17242, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17243, o is ImplementTwoInterfaceGenC<int>, false); Eval(17244, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17245, o is ImplementAllInterfaceC<int>, false); Eval(17246, o is ImplementAllInterfaceC<int>[], false); Eval(17247, o is SealedClass, false); Eval(17248, o is SealedClass[], false); } { float? v = default(float); ValueType o = v; Eval(17249, o is EmptyStruct, false); Eval(17250, o is EmptyStruct[], false); Eval(17251, o is EmptyStruct?, false); Eval(17252, o is EmptyStruct?[], false); Eval(17253, o is NotEmptyStruct, false); Eval(17254, o is NotEmptyStruct[], false); Eval(17255, o is NotEmptyStruct?, false); Eval(17256, o is NotEmptyStruct?[], false); Eval(17257, o is EmptyStructGen<int>, false); Eval(17258, o is EmptyStructGen<int>[], false); Eval(17259, o is EmptyStructGen<int>?, false); Eval(17260, o is EmptyStructGen<int>?[], false); Eval(17261, o is NotEmptyStructGen<Guid>, false); Eval(17262, o is NotEmptyStructGen<Guid>[], false); Eval(17263, o is NotEmptyStructGen<Guid>?, false); Eval(17264, o is NotEmptyStructGen<Guid>?[], false); Eval(17265, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17266, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17267, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17268, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17269, o is NestedStruct, false); Eval(17270, o is NestedStruct[], false); Eval(17271, o is NestedStruct?, false); Eval(17272, o is NestedStruct?[], false); Eval(17273, o is NestedStructGen<Decimal>, false); Eval(17274, o is NestedStructGen<Decimal>[], false); Eval(17275, o is NestedStructGen<Decimal>?, false); Eval(17276, o is NestedStructGen<Decimal>?[], false); Eval(17277, o is ExplicitFieldOffsetStruct, false); Eval(17278, o is ExplicitFieldOffsetStruct[], false); Eval(17279, o is ExplicitFieldOffsetStruct?, false); Eval(17280, o is ExplicitFieldOffsetStruct?[], false); Eval(17289, o is MarshalAsStruct, false); Eval(17290, o is MarshalAsStruct[], false); Eval(17291, o is MarshalAsStruct?, false); Eval(17292, o is MarshalAsStruct?[], false); Eval(17293, o is ImplementOneInterface, false); Eval(17294, o is ImplementOneInterface[], false); Eval(17295, o is ImplementOneInterface?, false); Eval(17296, o is ImplementOneInterface?[], false); Eval(17297, o is ImplementTwoInterface, false); Eval(17298, o is ImplementTwoInterface[], false); Eval(17299, o is ImplementTwoInterface?, false); Eval(17300, o is ImplementTwoInterface?[], false); Eval(17301, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17302, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17303, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17304, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17305, o is ImplementTwoInterfaceGen<int>, false); Eval(17306, o is ImplementTwoInterfaceGen<int>[], false); Eval(17307, o is ImplementTwoInterfaceGen<int>?, false); Eval(17308, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17309, o is ImplementAllInterface<int>, false); Eval(17310, o is ImplementAllInterface<int>[], false); Eval(17311, o is ImplementAllInterface<int>?, false); Eval(17312, o is ImplementAllInterface<int>?[], false); Eval(17313, o is IntE, false); Eval(17314, o is IntE[], false); Eval(17315, o is IntE?, false); Eval(17316, o is IntE?[], false); Eval(17317, o is ByteE, false); Eval(17318, o is ByteE[], false); Eval(17319, o is ByteE?, false); Eval(17320, o is ByteE?[], false); Eval(17321, o is LongE, false); Eval(17322, o is LongE[], false); Eval(17323, o is LongE?, false); Eval(17324, o is LongE?[], false); Eval(17325, o is char, false); Eval(17326, o is char[], false); Eval(17327, o is char?, false); Eval(17328, o is char?[], false); Eval(17329, o is bool, false); Eval(17330, o is bool[], false); Eval(17331, o is bool?, false); Eval(17332, o is bool?[], false); Eval(17333, o is byte, false); Eval(17334, o is byte[], false); Eval(17335, o is byte?, false); Eval(17336, o is byte?[], false); Eval(17337, o is sbyte, false); Eval(17338, o is sbyte[], false); Eval(17339, o is sbyte?, false); Eval(17340, o is sbyte?[], false); Eval(17341, o is short, false); Eval(17342, o is short[], false); Eval(17343, o is short?, false); Eval(17344, o is short?[], false); Eval(17345, o is ushort, false); Eval(17346, o is ushort[], false); Eval(17347, o is ushort?, false); Eval(17348, o is ushort?[], false); Eval(17349, o is int, false); Eval(17350, o is int[], false); Eval(17351, o is int?, false); Eval(17352, o is int?[], false); Eval(17353, o is uint, false); Eval(17354, o is uint[], false); Eval(17355, o is uint?, false); Eval(17356, o is uint?[], false); Eval(17357, o is long, false); Eval(17358, o is long[], false); Eval(17359, o is long?, false); Eval(17360, o is long?[], false); Eval(17361, o is ulong, false); Eval(17362, o is ulong[], false); Eval(17363, o is ulong?, false); Eval(17364, o is ulong?[], false); Eval(17365, o is float, true); Eval(17366, o is float[], false); Eval(17367, o is float?, true); Eval(17368, o is float?[], false); Eval(17369, o is double, false); Eval(17370, o is double[], false); Eval(17371, o is double?, false); Eval(17372, o is double?[], false); Eval(17373, o is decimal, false); Eval(17374, o is decimal[], false); Eval(17375, o is decimal?, false); Eval(17376, o is decimal?[], false); Eval(17377, o is IntPtr, false); Eval(17378, o is IntPtr[], false); Eval(17379, o is IntPtr?, false); Eval(17380, o is IntPtr?[], false); Eval(17381, o is UIntPtr, false); Eval(17382, o is UIntPtr[], false); Eval(17383, o is UIntPtr?, false); Eval(17384, o is UIntPtr?[], false); Eval(17385, o is Guid, false); Eval(17386, o is Guid[], false); Eval(17387, o is Guid?, false); Eval(17388, o is Guid?[], false); Eval(17389, o is GCHandle, false); Eval(17390, o is GCHandle[], false); Eval(17391, o is GCHandle?, false); Eval(17392, o is GCHandle?[], false); Eval(17393, o is object, true); Eval(17394, o is object[], false); Eval(17395, o is string, false); Eval(17396, o is string[], false); Eval(17397, o is ValueType, true); Eval(17398, o is ValueType[], false); Eval(17399, o is Array, false); Eval(17400, o is Array[], false); Eval(17401, o is Enum, false); Eval(17402, o is Enum[], false); Eval(17403, o is Delegate, false); Eval(17404, o is Delegate[], false); Eval(17405, o is MulticastDelegate, false); Eval(17406, o is MulticastDelegate[], false); Eval(17407, o is IEmpty, false); Eval(17408, o is IEmpty[], false); Eval(17409, o is INotEmpty, false); Eval(17410, o is INotEmpty[], false); Eval(17411, o is IEmptyGen<int>, false); Eval(17412, o is IEmptyGen<int>[], false); Eval(17413, o is INotEmptyGen<int>, false); Eval(17414, o is INotEmptyGen<int>[], false); Eval(17415, o is SimpleDelegate, false); Eval(17416, o is SimpleDelegate[], false); Eval(17417, o is GenericDelegate<int>, false); Eval(17418, o is GenericDelegate<int>[], false); Eval(17419, o is EmptyClass, false); Eval(17420, o is EmptyClass[], false); Eval(17421, o is NotEmptyClass, false); Eval(17422, o is NotEmptyClass[], false); Eval(17423, o is EmptyClassGen<int>, false); Eval(17424, o is EmptyClassGen<int>[], false); Eval(17425, o is NotEmptyClassGen<Guid>, false); Eval(17426, o is NotEmptyClassGen<Guid>[], false); Eval(17427, o is NotEmptyClassConstrainedGen<object>, false); Eval(17428, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17429, o is NestedClass, false); Eval(17430, o is NestedClass[], false); Eval(17431, o is NestedClassGen<Decimal>, false); Eval(17432, o is NestedClassGen<Decimal>[], false); Eval(17433, o is ImplementOneInterfaceC, false); Eval(17434, o is ImplementOneInterfaceC[], false); Eval(17435, o is ImplementTwoInterfaceC, false); Eval(17436, o is ImplementTwoInterfaceC[], false); Eval(17437, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17438, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17439, o is ImplementTwoInterfaceGenC<int>, false); Eval(17440, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17441, o is ImplementAllInterfaceC<int>, false); Eval(17442, o is ImplementAllInterfaceC<int>[], false); Eval(17443, o is SealedClass, false); Eval(17444, o is SealedClass[], false); } { float? v = default(float?); ValueType o = v; Eval(17445, o is EmptyStruct, false); Eval(17446, o is EmptyStruct[], false); Eval(17447, o is EmptyStruct?, false); Eval(17448, o is EmptyStruct?[], false); Eval(17449, o is NotEmptyStruct, false); Eval(17450, o is NotEmptyStruct[], false); Eval(17451, o is NotEmptyStruct?, false); Eval(17452, o is NotEmptyStruct?[], false); Eval(17453, o is EmptyStructGen<int>, false); Eval(17454, o is EmptyStructGen<int>[], false); Eval(17455, o is EmptyStructGen<int>?, false); Eval(17456, o is EmptyStructGen<int>?[], false); Eval(17457, o is NotEmptyStructGen<Guid>, false); Eval(17458, o is NotEmptyStructGen<Guid>[], false); Eval(17459, o is NotEmptyStructGen<Guid>?, false); Eval(17460, o is NotEmptyStructGen<Guid>?[], false); Eval(17461, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17462, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17463, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17464, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17465, o is NestedStruct, false); Eval(17466, o is NestedStruct[], false); Eval(17467, o is NestedStruct?, false); Eval(17468, o is NestedStruct?[], false); Eval(17469, o is NestedStructGen<Decimal>, false); Eval(17470, o is NestedStructGen<Decimal>[], false); Eval(17471, o is NestedStructGen<Decimal>?, false); Eval(17472, o is NestedStructGen<Decimal>?[], false); Eval(17473, o is ExplicitFieldOffsetStruct, false); Eval(17474, o is ExplicitFieldOffsetStruct[], false); Eval(17475, o is ExplicitFieldOffsetStruct?, false); Eval(17476, o is ExplicitFieldOffsetStruct?[], false); Eval(17485, o is MarshalAsStruct, false); Eval(17486, o is MarshalAsStruct[], false); Eval(17487, o is MarshalAsStruct?, false); Eval(17488, o is MarshalAsStruct?[], false); Eval(17489, o is ImplementOneInterface, false); Eval(17490, o is ImplementOneInterface[], false); Eval(17491, o is ImplementOneInterface?, false); Eval(17492, o is ImplementOneInterface?[], false); Eval(17493, o is ImplementTwoInterface, false); Eval(17494, o is ImplementTwoInterface[], false); Eval(17495, o is ImplementTwoInterface?, false); Eval(17496, o is ImplementTwoInterface?[], false); Eval(17497, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17498, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17499, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17500, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17501, o is ImplementTwoInterfaceGen<int>, false); Eval(17502, o is ImplementTwoInterfaceGen<int>[], false); Eval(17503, o is ImplementTwoInterfaceGen<int>?, false); Eval(17504, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17505, o is ImplementAllInterface<int>, false); Eval(17506, o is ImplementAllInterface<int>[], false); Eval(17507, o is ImplementAllInterface<int>?, false); Eval(17508, o is ImplementAllInterface<int>?[], false); Eval(17509, o is IntE, false); Eval(17510, o is IntE[], false); Eval(17511, o is IntE?, false); Eval(17512, o is IntE?[], false); Eval(17513, o is ByteE, false); Eval(17514, o is ByteE[], false); Eval(17515, o is ByteE?, false); Eval(17516, o is ByteE?[], false); Eval(17517, o is LongE, false); Eval(17518, o is LongE[], false); Eval(17519, o is LongE?, false); Eval(17520, o is LongE?[], false); Eval(17521, o is char, false); Eval(17522, o is char[], false); Eval(17523, o is char?, false); Eval(17524, o is char?[], false); Eval(17525, o is bool, false); Eval(17526, o is bool[], false); Eval(17527, o is bool?, false); Eval(17528, o is bool?[], false); Eval(17529, o is byte, false); Eval(17530, o is byte[], false); Eval(17531, o is byte?, false); Eval(17532, o is byte?[], false); Eval(17533, o is sbyte, false); Eval(17534, o is sbyte[], false); Eval(17535, o is sbyte?, false); Eval(17536, o is sbyte?[], false); Eval(17537, o is short, false); Eval(17538, o is short[], false); Eval(17539, o is short?, false); Eval(17540, o is short?[], false); Eval(17541, o is ushort, false); Eval(17542, o is ushort[], false); Eval(17543, o is ushort?, false); Eval(17544, o is ushort?[], false); Eval(17545, o is int, false); Eval(17546, o is int[], false); Eval(17547, o is int?, false); Eval(17548, o is int?[], false); Eval(17549, o is uint, false); Eval(17550, o is uint[], false); Eval(17551, o is uint?, false); Eval(17552, o is uint?[], false); Eval(17553, o is long, false); Eval(17554, o is long[], false); Eval(17555, o is long?, false); Eval(17556, o is long?[], false); Eval(17557, o is ulong, false); Eval(17558, o is ulong[], false); Eval(17559, o is ulong?, false); Eval(17560, o is ulong?[], false); Eval(17561, o is float, false); Eval(17562, o is float[], false); Eval(17563, o is float?, false); Eval(17564, o is float?[], false); Eval(17565, o is double, false); Eval(17566, o is double[], false); Eval(17567, o is double?, false); Eval(17568, o is double?[], false); Eval(17569, o is decimal, false); Eval(17570, o is decimal[], false); Eval(17571, o is decimal?, false); Eval(17572, o is decimal?[], false); Eval(17573, o is IntPtr, false); Eval(17574, o is IntPtr[], false); Eval(17575, o is IntPtr?, false); Eval(17576, o is IntPtr?[], false); Eval(17577, o is UIntPtr, false); Eval(17578, o is UIntPtr[], false); Eval(17579, o is UIntPtr?, false); Eval(17580, o is UIntPtr?[], false); Eval(17581, o is Guid, false); Eval(17582, o is Guid[], false); Eval(17583, o is Guid?, false); Eval(17584, o is Guid?[], false); Eval(17585, o is GCHandle, false); Eval(17586, o is GCHandle[], false); Eval(17587, o is GCHandle?, false); Eval(17588, o is GCHandle?[], false); Eval(17589, o is object, false); Eval(17590, o is object[], false); Eval(17591, o is string, false); Eval(17592, o is string[], false); Eval(17593, o is ValueType, false); Eval(17594, o is ValueType[], false); Eval(17595, o is Array, false); Eval(17596, o is Array[], false); Eval(17597, o is Enum, false); Eval(17598, o is Enum[], false); Eval(17599, o is Delegate, false); Eval(17600, o is Delegate[], false); Eval(17601, o is MulticastDelegate, false); Eval(17602, o is MulticastDelegate[], false); Eval(17603, o is IEmpty, false); Eval(17604, o is IEmpty[], false); Eval(17605, o is INotEmpty, false); Eval(17606, o is INotEmpty[], false); Eval(17607, o is IEmptyGen<int>, false); Eval(17608, o is IEmptyGen<int>[], false); Eval(17609, o is INotEmptyGen<int>, false); Eval(17610, o is INotEmptyGen<int>[], false); Eval(17611, o is SimpleDelegate, false); Eval(17612, o is SimpleDelegate[], false); Eval(17613, o is GenericDelegate<int>, false); Eval(17614, o is GenericDelegate<int>[], false); Eval(17615, o is EmptyClass, false); Eval(17616, o is EmptyClass[], false); Eval(17617, o is NotEmptyClass, false); Eval(17618, o is NotEmptyClass[], false); Eval(17619, o is EmptyClassGen<int>, false); Eval(17620, o is EmptyClassGen<int>[], false); Eval(17621, o is NotEmptyClassGen<Guid>, false); Eval(17622, o is NotEmptyClassGen<Guid>[], false); Eval(17623, o is NotEmptyClassConstrainedGen<object>, false); Eval(17624, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17625, o is NestedClass, false); Eval(17626, o is NestedClass[], false); Eval(17627, o is NestedClassGen<Decimal>, false); Eval(17628, o is NestedClassGen<Decimal>[], false); Eval(17629, o is ImplementOneInterfaceC, false); Eval(17630, o is ImplementOneInterfaceC[], false); Eval(17631, o is ImplementTwoInterfaceC, false); Eval(17632, o is ImplementTwoInterfaceC[], false); Eval(17633, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17634, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17635, o is ImplementTwoInterfaceGenC<int>, false); Eval(17636, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17637, o is ImplementAllInterfaceC<int>, false); Eval(17638, o is ImplementAllInterfaceC<int>[], false); Eval(17639, o is SealedClass, false); Eval(17640, o is SealedClass[], false); } } // end of test case 0030 private static void TestCase0031() { { double v = default(double); ValueType o = v; Eval(17641, o is EmptyStruct, false); Eval(17642, o is EmptyStruct[], false); Eval(17643, o is EmptyStruct?, false); Eval(17644, o is EmptyStruct?[], false); Eval(17645, o is NotEmptyStruct, false); Eval(17646, o is NotEmptyStruct[], false); Eval(17647, o is NotEmptyStruct?, false); Eval(17648, o is NotEmptyStruct?[], false); Eval(17649, o is EmptyStructGen<int>, false); Eval(17650, o is EmptyStructGen<int>[], false); Eval(17651, o is EmptyStructGen<int>?, false); Eval(17652, o is EmptyStructGen<int>?[], false); Eval(17653, o is NotEmptyStructGen<Guid>, false); Eval(17654, o is NotEmptyStructGen<Guid>[], false); Eval(17655, o is NotEmptyStructGen<Guid>?, false); Eval(17656, o is NotEmptyStructGen<Guid>?[], false); Eval(17657, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17658, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17659, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17660, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17661, o is NestedStruct, false); Eval(17662, o is NestedStruct[], false); Eval(17663, o is NestedStruct?, false); Eval(17664, o is NestedStruct?[], false); Eval(17665, o is NestedStructGen<Decimal>, false); Eval(17666, o is NestedStructGen<Decimal>[], false); Eval(17667, o is NestedStructGen<Decimal>?, false); Eval(17668, o is NestedStructGen<Decimal>?[], false); Eval(17669, o is ExplicitFieldOffsetStruct, false); Eval(17670, o is ExplicitFieldOffsetStruct[], false); Eval(17671, o is ExplicitFieldOffsetStruct?, false); Eval(17672, o is ExplicitFieldOffsetStruct?[], false); Eval(17681, o is MarshalAsStruct, false); Eval(17682, o is MarshalAsStruct[], false); Eval(17683, o is MarshalAsStruct?, false); Eval(17684, o is MarshalAsStruct?[], false); Eval(17685, o is ImplementOneInterface, false); Eval(17686, o is ImplementOneInterface[], false); Eval(17687, o is ImplementOneInterface?, false); Eval(17688, o is ImplementOneInterface?[], false); Eval(17689, o is ImplementTwoInterface, false); Eval(17690, o is ImplementTwoInterface[], false); Eval(17691, o is ImplementTwoInterface?, false); Eval(17692, o is ImplementTwoInterface?[], false); Eval(17693, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17694, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17695, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17696, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17697, o is ImplementTwoInterfaceGen<int>, false); Eval(17698, o is ImplementTwoInterfaceGen<int>[], false); Eval(17699, o is ImplementTwoInterfaceGen<int>?, false); Eval(17700, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17701, o is ImplementAllInterface<int>, false); Eval(17702, o is ImplementAllInterface<int>[], false); Eval(17703, o is ImplementAllInterface<int>?, false); Eval(17704, o is ImplementAllInterface<int>?[], false); Eval(17705, o is IntE, false); Eval(17706, o is IntE[], false); Eval(17707, o is IntE?, false); Eval(17708, o is IntE?[], false); Eval(17709, o is ByteE, false); Eval(17710, o is ByteE[], false); Eval(17711, o is ByteE?, false); Eval(17712, o is ByteE?[], false); Eval(17713, o is LongE, false); Eval(17714, o is LongE[], false); Eval(17715, o is LongE?, false); Eval(17716, o is LongE?[], false); Eval(17717, o is char, false); Eval(17718, o is char[], false); Eval(17719, o is char?, false); Eval(17720, o is char?[], false); Eval(17721, o is bool, false); Eval(17722, o is bool[], false); Eval(17723, o is bool?, false); Eval(17724, o is bool?[], false); Eval(17725, o is byte, false); Eval(17726, o is byte[], false); Eval(17727, o is byte?, false); Eval(17728, o is byte?[], false); Eval(17729, o is sbyte, false); Eval(17730, o is sbyte[], false); Eval(17731, o is sbyte?, false); Eval(17732, o is sbyte?[], false); Eval(17733, o is short, false); Eval(17734, o is short[], false); Eval(17735, o is short?, false); Eval(17736, o is short?[], false); Eval(17737, o is ushort, false); Eval(17738, o is ushort[], false); Eval(17739, o is ushort?, false); Eval(17740, o is ushort?[], false); Eval(17741, o is int, false); Eval(17742, o is int[], false); Eval(17743, o is int?, false); Eval(17744, o is int?[], false); Eval(17745, o is uint, false); Eval(17746, o is uint[], false); Eval(17747, o is uint?, false); Eval(17748, o is uint?[], false); Eval(17749, o is long, false); Eval(17750, o is long[], false); Eval(17751, o is long?, false); Eval(17752, o is long?[], false); Eval(17753, o is ulong, false); Eval(17754, o is ulong[], false); Eval(17755, o is ulong?, false); Eval(17756, o is ulong?[], false); Eval(17757, o is float, false); Eval(17758, o is float[], false); Eval(17759, o is float?, false); Eval(17760, o is float?[], false); Eval(17761, o is double, true); Eval(17762, o is double[], false); Eval(17763, o is double?, true); Eval(17764, o is double?[], false); Eval(17765, o is decimal, false); Eval(17766, o is decimal[], false); Eval(17767, o is decimal?, false); Eval(17768, o is decimal?[], false); Eval(17769, o is IntPtr, false); Eval(17770, o is IntPtr[], false); Eval(17771, o is IntPtr?, false); Eval(17772, o is IntPtr?[], false); Eval(17773, o is UIntPtr, false); Eval(17774, o is UIntPtr[], false); Eval(17775, o is UIntPtr?, false); Eval(17776, o is UIntPtr?[], false); Eval(17777, o is Guid, false); Eval(17778, o is Guid[], false); Eval(17779, o is Guid?, false); Eval(17780, o is Guid?[], false); Eval(17781, o is GCHandle, false); Eval(17782, o is GCHandle[], false); Eval(17783, o is GCHandle?, false); Eval(17784, o is GCHandle?[], false); Eval(17785, o is object, true); Eval(17786, o is object[], false); Eval(17787, o is string, false); Eval(17788, o is string[], false); Eval(17789, o is ValueType, true); Eval(17790, o is ValueType[], false); Eval(17791, o is Array, false); Eval(17792, o is Array[], false); Eval(17793, o is Enum, false); Eval(17794, o is Enum[], false); Eval(17795, o is Delegate, false); Eval(17796, o is Delegate[], false); Eval(17797, o is MulticastDelegate, false); Eval(17798, o is MulticastDelegate[], false); Eval(17799, o is IEmpty, false); Eval(17800, o is IEmpty[], false); Eval(17801, o is INotEmpty, false); Eval(17802, o is INotEmpty[], false); Eval(17803, o is IEmptyGen<int>, false); Eval(17804, o is IEmptyGen<int>[], false); Eval(17805, o is INotEmptyGen<int>, false); Eval(17806, o is INotEmptyGen<int>[], false); Eval(17807, o is SimpleDelegate, false); Eval(17808, o is SimpleDelegate[], false); Eval(17809, o is GenericDelegate<int>, false); Eval(17810, o is GenericDelegate<int>[], false); Eval(17811, o is EmptyClass, false); Eval(17812, o is EmptyClass[], false); Eval(17813, o is NotEmptyClass, false); Eval(17814, o is NotEmptyClass[], false); Eval(17815, o is EmptyClassGen<int>, false); Eval(17816, o is EmptyClassGen<int>[], false); Eval(17817, o is NotEmptyClassGen<Guid>, false); Eval(17818, o is NotEmptyClassGen<Guid>[], false); Eval(17819, o is NotEmptyClassConstrainedGen<object>, false); Eval(17820, o is NotEmptyClassConstrainedGen<object>[], false); Eval(17821, o is NestedClass, false); Eval(17822, o is NestedClass[], false); Eval(17823, o is NestedClassGen<Decimal>, false); Eval(17824, o is NestedClassGen<Decimal>[], false); Eval(17825, o is ImplementOneInterfaceC, false); Eval(17826, o is ImplementOneInterfaceC[], false); Eval(17827, o is ImplementTwoInterfaceC, false); Eval(17828, o is ImplementTwoInterfaceC[], false); Eval(17829, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(17830, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(17831, o is ImplementTwoInterfaceGenC<int>, false); Eval(17832, o is ImplementTwoInterfaceGenC<int>[], false); Eval(17833, o is ImplementAllInterfaceC<int>, false); Eval(17834, o is ImplementAllInterfaceC<int>[], false); Eval(17835, o is SealedClass, false); Eval(17836, o is SealedClass[], false); } { double? v = default(double); ValueType o = v; Eval(17837, o is EmptyStruct, false); Eval(17838, o is EmptyStruct[], false); Eval(17839, o is EmptyStruct?, false); Eval(17840, o is EmptyStruct?[], false); Eval(17841, o is NotEmptyStruct, false); Eval(17842, o is NotEmptyStruct[], false); Eval(17843, o is NotEmptyStruct?, false); Eval(17844, o is NotEmptyStruct?[], false); Eval(17845, o is EmptyStructGen<int>, false); Eval(17846, o is EmptyStructGen<int>[], false); Eval(17847, o is EmptyStructGen<int>?, false); Eval(17848, o is EmptyStructGen<int>?[], false); Eval(17849, o is NotEmptyStructGen<Guid>, false); Eval(17850, o is NotEmptyStructGen<Guid>[], false); Eval(17851, o is NotEmptyStructGen<Guid>?, false); Eval(17852, o is NotEmptyStructGen<Guid>?[], false); Eval(17853, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(17854, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(17855, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(17856, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(17857, o is NestedStruct, false); Eval(17858, o is NestedStruct[], false); Eval(17859, o is NestedStruct?, false); Eval(17860, o is NestedStruct?[], false); Eval(17861, o is NestedStructGen<Decimal>, false); Eval(17862, o is NestedStructGen<Decimal>[], false); Eval(17863, o is NestedStructGen<Decimal>?, false); Eval(17864, o is NestedStructGen<Decimal>?[], false); Eval(17865, o is ExplicitFieldOffsetStruct, false); Eval(17866, o is ExplicitFieldOffsetStruct[], false); Eval(17867, o is ExplicitFieldOffsetStruct?, false); Eval(17868, o is ExplicitFieldOffsetStruct?[], false); Eval(17877, o is MarshalAsStruct, false); Eval(17878, o is MarshalAsStruct[], false); Eval(17879, o is MarshalAsStruct?, false); Eval(17880, o is MarshalAsStruct?[], false); Eval(17881, o is ImplementOneInterface, false); Eval(17882, o is ImplementOneInterface[], false); Eval(17883, o is ImplementOneInterface?, false); Eval(17884, o is ImplementOneInterface?[], false); Eval(17885, o is ImplementTwoInterface, false); Eval(17886, o is ImplementTwoInterface[], false); Eval(17887, o is ImplementTwoInterface?, false); Eval(17888, o is ImplementTwoInterface?[], false); Eval(17889, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(17890, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(17891, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(17892, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(17893, o is ImplementTwoInterfaceGen<int>, false); Eval(17894, o is ImplementTwoInterfaceGen<int>[], false); Eval(17895, o is ImplementTwoInterfaceGen<int>?, false); Eval(17896, o is ImplementTwoInterfaceGen<int>?[], false); Eval(17897, o is ImplementAllInterface<int>, false); Eval(17898, o is ImplementAllInterface<int>[], false); Eval(17899, o is ImplementAllInterface<int>?, false); Eval(17900, o is ImplementAllInterface<int>?[], false); Eval(17901, o is IntE, false); Eval(17902, o is IntE[], false); Eval(17903, o is IntE?, false); Eval(17904, o is IntE?[], false); Eval(17905, o is ByteE, false); Eval(17906, o is ByteE[], false); Eval(17907, o is ByteE?, false); Eval(17908, o is ByteE?[], false); Eval(17909, o is LongE, false); Eval(17910, o is LongE[], false); Eval(17911, o is LongE?, false); Eval(17912, o is LongE?[], false); Eval(17913, o is char, false); Eval(17914, o is char[], false); Eval(17915, o is char?, false); Eval(17916, o is char?[], false); Eval(17917, o is bool, false); Eval(17918, o is bool[], false); Eval(17919, o is bool?, false); Eval(17920, o is bool?[], false); Eval(17921, o is byte, false); Eval(17922, o is byte[], false); Eval(17923, o is byte?, false); Eval(17924, o is byte?[], false); Eval(17925, o is sbyte, false); Eval(17926, o is sbyte[], false); Eval(17927, o is sbyte?, false); Eval(17928, o is sbyte?[], false); Eval(17929, o is short, false); Eval(17930, o is short[], false); Eval(17931, o is short?, false); Eval(17932, o is short?[], false); Eval(17933, o is ushort, false); Eval(17934, o is ushort[], false); Eval(17935, o is ushort?, false); Eval(17936, o is ushort?[], false); Eval(17937, o is int, false); Eval(17938, o is int[], false); Eval(17939, o is int?, false); Eval(17940, o is int?[], false); Eval(17941, o is uint, false); Eval(17942, o is uint[], false); Eval(17943, o is uint?, false); Eval(17944, o is uint?[], false); Eval(17945, o is long, false); Eval(17946, o is long[], false); Eval(17947, o is long?, false); Eval(17948, o is long?[], false); Eval(17949, o is ulong, false); Eval(17950, o is ulong[], false); Eval(17951, o is ulong?, false); Eval(17952, o is ulong?[], false); Eval(17953, o is float, false); Eval(17954, o is float[], false); Eval(17955, o is float?, false); Eval(17956, o is float?[], false); Eval(17957, o is double, true); Eval(17958, o is double[], false); Eval(17959, o is double?, true); Eval(17960, o is double?[], false); Eval(17961, o is decimal, false); Eval(17962, o is decimal[], false); Eval(17963, o is decimal?, false); Eval(17964, o is decimal?[], false); Eval(17965, o is IntPtr, false); Eval(17966, o is IntPtr[], false); Eval(17967, o is IntPtr?, false); Eval(17968, o is IntPtr?[], false); Eval(17969, o is UIntPtr, false); Eval(17970, o is UIntPtr[], false); Eval(17971, o is UIntPtr?, false); Eval(17972, o is UIntPtr?[], false); Eval(17973, o is Guid, false); Eval(17974, o is Guid[], false); Eval(17975, o is Guid?, false); Eval(17976, o is Guid?[], false); Eval(17977, o is GCHandle, false); Eval(17978, o is GCHandle[], false); Eval(17979, o is GCHandle?, false); Eval(17980, o is GCHandle?[], false); Eval(17981, o is object, true); Eval(17982, o is object[], false); Eval(17983, o is string, false); Eval(17984, o is string[], false); Eval(17985, o is ValueType, true); Eval(17986, o is ValueType[], false); Eval(17987, o is Array, false); Eval(17988, o is Array[], false); Eval(17989, o is Enum, false); Eval(17990, o is Enum[], false); Eval(17991, o is Delegate, false); Eval(17992, o is Delegate[], false); Eval(17993, o is MulticastDelegate, false); Eval(17994, o is MulticastDelegate[], false); Eval(17995, o is IEmpty, false); Eval(17996, o is IEmpty[], false); Eval(17997, o is INotEmpty, false); Eval(17998, o is INotEmpty[], false); Eval(17999, o is IEmptyGen<int>, false); Eval(18000, o is IEmptyGen<int>[], false); Eval(18001, o is INotEmptyGen<int>, false); Eval(18002, o is INotEmptyGen<int>[], false); Eval(18003, o is SimpleDelegate, false); Eval(18004, o is SimpleDelegate[], false); Eval(18005, o is GenericDelegate<int>, false); Eval(18006, o is GenericDelegate<int>[], false); Eval(18007, o is EmptyClass, false); Eval(18008, o is EmptyClass[], false); Eval(18009, o is NotEmptyClass, false); Eval(18010, o is NotEmptyClass[], false); Eval(18011, o is EmptyClassGen<int>, false); Eval(18012, o is EmptyClassGen<int>[], false); Eval(18013, o is NotEmptyClassGen<Guid>, false); Eval(18014, o is NotEmptyClassGen<Guid>[], false); Eval(18015, o is NotEmptyClassConstrainedGen<object>, false); Eval(18016, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18017, o is NestedClass, false); Eval(18018, o is NestedClass[], false); Eval(18019, o is NestedClassGen<Decimal>, false); Eval(18020, o is NestedClassGen<Decimal>[], false); Eval(18021, o is ImplementOneInterfaceC, false); Eval(18022, o is ImplementOneInterfaceC[], false); Eval(18023, o is ImplementTwoInterfaceC, false); Eval(18024, o is ImplementTwoInterfaceC[], false); Eval(18025, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18026, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18027, o is ImplementTwoInterfaceGenC<int>, false); Eval(18028, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18029, o is ImplementAllInterfaceC<int>, false); Eval(18030, o is ImplementAllInterfaceC<int>[], false); Eval(18031, o is SealedClass, false); Eval(18032, o is SealedClass[], false); } { double? v = default(double?); ValueType o = v; Eval(18033, o is EmptyStruct, false); Eval(18034, o is EmptyStruct[], false); Eval(18035, o is EmptyStruct?, false); Eval(18036, o is EmptyStruct?[], false); Eval(18037, o is NotEmptyStruct, false); Eval(18038, o is NotEmptyStruct[], false); Eval(18039, o is NotEmptyStruct?, false); Eval(18040, o is NotEmptyStruct?[], false); Eval(18041, o is EmptyStructGen<int>, false); Eval(18042, o is EmptyStructGen<int>[], false); Eval(18043, o is EmptyStructGen<int>?, false); Eval(18044, o is EmptyStructGen<int>?[], false); Eval(18045, o is NotEmptyStructGen<Guid>, false); Eval(18046, o is NotEmptyStructGen<Guid>[], false); Eval(18047, o is NotEmptyStructGen<Guid>?, false); Eval(18048, o is NotEmptyStructGen<Guid>?[], false); Eval(18049, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18050, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18051, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18052, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18053, o is NestedStruct, false); Eval(18054, o is NestedStruct[], false); Eval(18055, o is NestedStruct?, false); Eval(18056, o is NestedStruct?[], false); Eval(18057, o is NestedStructGen<Decimal>, false); Eval(18058, o is NestedStructGen<Decimal>[], false); Eval(18059, o is NestedStructGen<Decimal>?, false); Eval(18060, o is NestedStructGen<Decimal>?[], false); Eval(18061, o is ExplicitFieldOffsetStruct, false); Eval(18062, o is ExplicitFieldOffsetStruct[], false); Eval(18063, o is ExplicitFieldOffsetStruct?, false); Eval(18064, o is ExplicitFieldOffsetStruct?[], false); Eval(18073, o is MarshalAsStruct, false); Eval(18074, o is MarshalAsStruct[], false); Eval(18075, o is MarshalAsStruct?, false); Eval(18076, o is MarshalAsStruct?[], false); Eval(18077, o is ImplementOneInterface, false); Eval(18078, o is ImplementOneInterface[], false); Eval(18079, o is ImplementOneInterface?, false); Eval(18080, o is ImplementOneInterface?[], false); Eval(18081, o is ImplementTwoInterface, false); Eval(18082, o is ImplementTwoInterface[], false); Eval(18083, o is ImplementTwoInterface?, false); Eval(18084, o is ImplementTwoInterface?[], false); Eval(18085, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18086, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18087, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18088, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18089, o is ImplementTwoInterfaceGen<int>, false); Eval(18090, o is ImplementTwoInterfaceGen<int>[], false); Eval(18091, o is ImplementTwoInterfaceGen<int>?, false); Eval(18092, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18093, o is ImplementAllInterface<int>, false); Eval(18094, o is ImplementAllInterface<int>[], false); Eval(18095, o is ImplementAllInterface<int>?, false); Eval(18096, o is ImplementAllInterface<int>?[], false); Eval(18097, o is IntE, false); Eval(18098, o is IntE[], false); Eval(18099, o is IntE?, false); Eval(18100, o is IntE?[], false); Eval(18101, o is ByteE, false); Eval(18102, o is ByteE[], false); Eval(18103, o is ByteE?, false); Eval(18104, o is ByteE?[], false); Eval(18105, o is LongE, false); Eval(18106, o is LongE[], false); Eval(18107, o is LongE?, false); Eval(18108, o is LongE?[], false); Eval(18109, o is char, false); Eval(18110, o is char[], false); Eval(18111, o is char?, false); Eval(18112, o is char?[], false); Eval(18113, o is bool, false); Eval(18114, o is bool[], false); Eval(18115, o is bool?, false); Eval(18116, o is bool?[], false); Eval(18117, o is byte, false); Eval(18118, o is byte[], false); Eval(18119, o is byte?, false); Eval(18120, o is byte?[], false); Eval(18121, o is sbyte, false); Eval(18122, o is sbyte[], false); Eval(18123, o is sbyte?, false); Eval(18124, o is sbyte?[], false); Eval(18125, o is short, false); Eval(18126, o is short[], false); Eval(18127, o is short?, false); Eval(18128, o is short?[], false); Eval(18129, o is ushort, false); Eval(18130, o is ushort[], false); Eval(18131, o is ushort?, false); Eval(18132, o is ushort?[], false); Eval(18133, o is int, false); Eval(18134, o is int[], false); Eval(18135, o is int?, false); Eval(18136, o is int?[], false); Eval(18137, o is uint, false); Eval(18138, o is uint[], false); Eval(18139, o is uint?, false); Eval(18140, o is uint?[], false); Eval(18141, o is long, false); Eval(18142, o is long[], false); Eval(18143, o is long?, false); Eval(18144, o is long?[], false); Eval(18145, o is ulong, false); Eval(18146, o is ulong[], false); Eval(18147, o is ulong?, false); Eval(18148, o is ulong?[], false); Eval(18149, o is float, false); Eval(18150, o is float[], false); Eval(18151, o is float?, false); Eval(18152, o is float?[], false); Eval(18153, o is double, false); Eval(18154, o is double[], false); Eval(18155, o is double?, false); Eval(18156, o is double?[], false); Eval(18157, o is decimal, false); Eval(18158, o is decimal[], false); Eval(18159, o is decimal?, false); Eval(18160, o is decimal?[], false); Eval(18161, o is IntPtr, false); Eval(18162, o is IntPtr[], false); Eval(18163, o is IntPtr?, false); Eval(18164, o is IntPtr?[], false); Eval(18165, o is UIntPtr, false); Eval(18166, o is UIntPtr[], false); Eval(18167, o is UIntPtr?, false); Eval(18168, o is UIntPtr?[], false); Eval(18169, o is Guid, false); Eval(18170, o is Guid[], false); Eval(18171, o is Guid?, false); Eval(18172, o is Guid?[], false); Eval(18173, o is GCHandle, false); Eval(18174, o is GCHandle[], false); Eval(18175, o is GCHandle?, false); Eval(18176, o is GCHandle?[], false); Eval(18177, o is object, false); Eval(18178, o is object[], false); Eval(18179, o is string, false); Eval(18180, o is string[], false); Eval(18181, o is ValueType, false); Eval(18182, o is ValueType[], false); Eval(18183, o is Array, false); Eval(18184, o is Array[], false); Eval(18185, o is Enum, false); Eval(18186, o is Enum[], false); Eval(18187, o is Delegate, false); Eval(18188, o is Delegate[], false); Eval(18189, o is MulticastDelegate, false); Eval(18190, o is MulticastDelegate[], false); Eval(18191, o is IEmpty, false); Eval(18192, o is IEmpty[], false); Eval(18193, o is INotEmpty, false); Eval(18194, o is INotEmpty[], false); Eval(18195, o is IEmptyGen<int>, false); Eval(18196, o is IEmptyGen<int>[], false); Eval(18197, o is INotEmptyGen<int>, false); Eval(18198, o is INotEmptyGen<int>[], false); Eval(18199, o is SimpleDelegate, false); Eval(18200, o is SimpleDelegate[], false); Eval(18201, o is GenericDelegate<int>, false); Eval(18202, o is GenericDelegate<int>[], false); Eval(18203, o is EmptyClass, false); Eval(18204, o is EmptyClass[], false); Eval(18205, o is NotEmptyClass, false); Eval(18206, o is NotEmptyClass[], false); Eval(18207, o is EmptyClassGen<int>, false); Eval(18208, o is EmptyClassGen<int>[], false); Eval(18209, o is NotEmptyClassGen<Guid>, false); Eval(18210, o is NotEmptyClassGen<Guid>[], false); Eval(18211, o is NotEmptyClassConstrainedGen<object>, false); Eval(18212, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18213, o is NestedClass, false); Eval(18214, o is NestedClass[], false); Eval(18215, o is NestedClassGen<Decimal>, false); Eval(18216, o is NestedClassGen<Decimal>[], false); Eval(18217, o is ImplementOneInterfaceC, false); Eval(18218, o is ImplementOneInterfaceC[], false); Eval(18219, o is ImplementTwoInterfaceC, false); Eval(18220, o is ImplementTwoInterfaceC[], false); Eval(18221, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18222, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18223, o is ImplementTwoInterfaceGenC<int>, false); Eval(18224, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18225, o is ImplementAllInterfaceC<int>, false); Eval(18226, o is ImplementAllInterfaceC<int>[], false); Eval(18227, o is SealedClass, false); Eval(18228, o is SealedClass[], false); } } // end of test case 0031 private static void TestCase0032() { { decimal v = default(decimal); ValueType o = v; Eval(18229, o is EmptyStruct, false); Eval(18230, o is EmptyStruct[], false); Eval(18231, o is EmptyStruct?, false); Eval(18232, o is EmptyStruct?[], false); Eval(18233, o is NotEmptyStruct, false); Eval(18234, o is NotEmptyStruct[], false); Eval(18235, o is NotEmptyStruct?, false); Eval(18236, o is NotEmptyStruct?[], false); Eval(18237, o is EmptyStructGen<int>, false); Eval(18238, o is EmptyStructGen<int>[], false); Eval(18239, o is EmptyStructGen<int>?, false); Eval(18240, o is EmptyStructGen<int>?[], false); Eval(18241, o is NotEmptyStructGen<Guid>, false); Eval(18242, o is NotEmptyStructGen<Guid>[], false); Eval(18243, o is NotEmptyStructGen<Guid>?, false); Eval(18244, o is NotEmptyStructGen<Guid>?[], false); Eval(18245, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18246, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18247, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18248, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18249, o is NestedStruct, false); Eval(18250, o is NestedStruct[], false); Eval(18251, o is NestedStruct?, false); Eval(18252, o is NestedStruct?[], false); Eval(18253, o is NestedStructGen<Decimal>, false); Eval(18254, o is NestedStructGen<Decimal>[], false); Eval(18255, o is NestedStructGen<Decimal>?, false); Eval(18256, o is NestedStructGen<Decimal>?[], false); Eval(18257, o is ExplicitFieldOffsetStruct, false); Eval(18258, o is ExplicitFieldOffsetStruct[], false); Eval(18259, o is ExplicitFieldOffsetStruct?, false); Eval(18260, o is ExplicitFieldOffsetStruct?[], false); Eval(18269, o is MarshalAsStruct, false); Eval(18270, o is MarshalAsStruct[], false); Eval(18271, o is MarshalAsStruct?, false); Eval(18272, o is MarshalAsStruct?[], false); Eval(18273, o is ImplementOneInterface, false); Eval(18274, o is ImplementOneInterface[], false); Eval(18275, o is ImplementOneInterface?, false); Eval(18276, o is ImplementOneInterface?[], false); Eval(18277, o is ImplementTwoInterface, false); Eval(18278, o is ImplementTwoInterface[], false); Eval(18279, o is ImplementTwoInterface?, false); Eval(18280, o is ImplementTwoInterface?[], false); Eval(18281, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18282, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18283, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18284, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18285, o is ImplementTwoInterfaceGen<int>, false); Eval(18286, o is ImplementTwoInterfaceGen<int>[], false); Eval(18287, o is ImplementTwoInterfaceGen<int>?, false); Eval(18288, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18289, o is ImplementAllInterface<int>, false); Eval(18290, o is ImplementAllInterface<int>[], false); Eval(18291, o is ImplementAllInterface<int>?, false); Eval(18292, o is ImplementAllInterface<int>?[], false); Eval(18293, o is IntE, false); Eval(18294, o is IntE[], false); Eval(18295, o is IntE?, false); Eval(18296, o is IntE?[], false); Eval(18297, o is ByteE, false); Eval(18298, o is ByteE[], false); Eval(18299, o is ByteE?, false); Eval(18300, o is ByteE?[], false); Eval(18301, o is LongE, false); Eval(18302, o is LongE[], false); Eval(18303, o is LongE?, false); Eval(18304, o is LongE?[], false); Eval(18305, o is char, false); Eval(18306, o is char[], false); Eval(18307, o is char?, false); Eval(18308, o is char?[], false); Eval(18309, o is bool, false); Eval(18310, o is bool[], false); Eval(18311, o is bool?, false); Eval(18312, o is bool?[], false); Eval(18313, o is byte, false); Eval(18314, o is byte[], false); Eval(18315, o is byte?, false); Eval(18316, o is byte?[], false); Eval(18317, o is sbyte, false); Eval(18318, o is sbyte[], false); Eval(18319, o is sbyte?, false); Eval(18320, o is sbyte?[], false); Eval(18321, o is short, false); Eval(18322, o is short[], false); Eval(18323, o is short?, false); Eval(18324, o is short?[], false); Eval(18325, o is ushort, false); Eval(18326, o is ushort[], false); Eval(18327, o is ushort?, false); Eval(18328, o is ushort?[], false); Eval(18329, o is int, false); Eval(18330, o is int[], false); Eval(18331, o is int?, false); Eval(18332, o is int?[], false); Eval(18333, o is uint, false); Eval(18334, o is uint[], false); Eval(18335, o is uint?, false); Eval(18336, o is uint?[], false); Eval(18337, o is long, false); Eval(18338, o is long[], false); Eval(18339, o is long?, false); Eval(18340, o is long?[], false); Eval(18341, o is ulong, false); Eval(18342, o is ulong[], false); Eval(18343, o is ulong?, false); Eval(18344, o is ulong?[], false); Eval(18345, o is float, false); Eval(18346, o is float[], false); Eval(18347, o is float?, false); Eval(18348, o is float?[], false); Eval(18349, o is double, false); Eval(18350, o is double[], false); Eval(18351, o is double?, false); Eval(18352, o is double?[], false); Eval(18353, o is decimal, true); Eval(18354, o is decimal[], false); Eval(18355, o is decimal?, true); Eval(18356, o is decimal?[], false); Eval(18357, o is IntPtr, false); Eval(18358, o is IntPtr[], false); Eval(18359, o is IntPtr?, false); Eval(18360, o is IntPtr?[], false); Eval(18361, o is UIntPtr, false); Eval(18362, o is UIntPtr[], false); Eval(18363, o is UIntPtr?, false); Eval(18364, o is UIntPtr?[], false); Eval(18365, o is Guid, false); Eval(18366, o is Guid[], false); Eval(18367, o is Guid?, false); Eval(18368, o is Guid?[], false); Eval(18369, o is GCHandle, false); Eval(18370, o is GCHandle[], false); Eval(18371, o is GCHandle?, false); Eval(18372, o is GCHandle?[], false); Eval(18373, o is object, true); Eval(18374, o is object[], false); Eval(18375, o is string, false); Eval(18376, o is string[], false); Eval(18377, o is ValueType, true); Eval(18378, o is ValueType[], false); Eval(18379, o is Array, false); Eval(18380, o is Array[], false); Eval(18381, o is Enum, false); Eval(18382, o is Enum[], false); Eval(18383, o is Delegate, false); Eval(18384, o is Delegate[], false); Eval(18385, o is MulticastDelegate, false); Eval(18386, o is MulticastDelegate[], false); Eval(18387, o is IEmpty, false); Eval(18388, o is IEmpty[], false); Eval(18389, o is INotEmpty, false); Eval(18390, o is INotEmpty[], false); Eval(18391, o is IEmptyGen<int>, false); Eval(18392, o is IEmptyGen<int>[], false); Eval(18393, o is INotEmptyGen<int>, false); Eval(18394, o is INotEmptyGen<int>[], false); Eval(18395, o is SimpleDelegate, false); Eval(18396, o is SimpleDelegate[], false); Eval(18397, o is GenericDelegate<int>, false); Eval(18398, o is GenericDelegate<int>[], false); Eval(18399, o is EmptyClass, false); Eval(18400, o is EmptyClass[], false); Eval(18401, o is NotEmptyClass, false); Eval(18402, o is NotEmptyClass[], false); Eval(18403, o is EmptyClassGen<int>, false); Eval(18404, o is EmptyClassGen<int>[], false); Eval(18405, o is NotEmptyClassGen<Guid>, false); Eval(18406, o is NotEmptyClassGen<Guid>[], false); Eval(18407, o is NotEmptyClassConstrainedGen<object>, false); Eval(18408, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18409, o is NestedClass, false); Eval(18410, o is NestedClass[], false); Eval(18411, o is NestedClassGen<Decimal>, false); Eval(18412, o is NestedClassGen<Decimal>[], false); Eval(18413, o is ImplementOneInterfaceC, false); Eval(18414, o is ImplementOneInterfaceC[], false); Eval(18415, o is ImplementTwoInterfaceC, false); Eval(18416, o is ImplementTwoInterfaceC[], false); Eval(18417, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18418, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18419, o is ImplementTwoInterfaceGenC<int>, false); Eval(18420, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18421, o is ImplementAllInterfaceC<int>, false); Eval(18422, o is ImplementAllInterfaceC<int>[], false); Eval(18423, o is SealedClass, false); Eval(18424, o is SealedClass[], false); } { decimal? v = default(decimal); ValueType o = v; Eval(18425, o is EmptyStruct, false); Eval(18426, o is EmptyStruct[], false); Eval(18427, o is EmptyStruct?, false); Eval(18428, o is EmptyStruct?[], false); Eval(18429, o is NotEmptyStruct, false); Eval(18430, o is NotEmptyStruct[], false); Eval(18431, o is NotEmptyStruct?, false); Eval(18432, o is NotEmptyStruct?[], false); Eval(18433, o is EmptyStructGen<int>, false); Eval(18434, o is EmptyStructGen<int>[], false); Eval(18435, o is EmptyStructGen<int>?, false); Eval(18436, o is EmptyStructGen<int>?[], false); Eval(18437, o is NotEmptyStructGen<Guid>, false); Eval(18438, o is NotEmptyStructGen<Guid>[], false); Eval(18439, o is NotEmptyStructGen<Guid>?, false); Eval(18440, o is NotEmptyStructGen<Guid>?[], false); Eval(18441, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18442, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18443, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18444, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18445, o is NestedStruct, false); Eval(18446, o is NestedStruct[], false); Eval(18447, o is NestedStruct?, false); Eval(18448, o is NestedStruct?[], false); Eval(18449, o is NestedStructGen<Decimal>, false); Eval(18450, o is NestedStructGen<Decimal>[], false); Eval(18451, o is NestedStructGen<Decimal>?, false); Eval(18452, o is NestedStructGen<Decimal>?[], false); Eval(18453, o is ExplicitFieldOffsetStruct, false); Eval(18454, o is ExplicitFieldOffsetStruct[], false); Eval(18455, o is ExplicitFieldOffsetStruct?, false); Eval(18456, o is ExplicitFieldOffsetStruct?[], false); Eval(18465, o is MarshalAsStruct, false); Eval(18466, o is MarshalAsStruct[], false); Eval(18467, o is MarshalAsStruct?, false); Eval(18468, o is MarshalAsStruct?[], false); Eval(18469, o is ImplementOneInterface, false); Eval(18470, o is ImplementOneInterface[], false); Eval(18471, o is ImplementOneInterface?, false); Eval(18472, o is ImplementOneInterface?[], false); Eval(18473, o is ImplementTwoInterface, false); Eval(18474, o is ImplementTwoInterface[], false); Eval(18475, o is ImplementTwoInterface?, false); Eval(18476, o is ImplementTwoInterface?[], false); Eval(18477, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18478, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18479, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18480, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18481, o is ImplementTwoInterfaceGen<int>, false); Eval(18482, o is ImplementTwoInterfaceGen<int>[], false); Eval(18483, o is ImplementTwoInterfaceGen<int>?, false); Eval(18484, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18485, o is ImplementAllInterface<int>, false); Eval(18486, o is ImplementAllInterface<int>[], false); Eval(18487, o is ImplementAllInterface<int>?, false); Eval(18488, o is ImplementAllInterface<int>?[], false); Eval(18489, o is IntE, false); Eval(18490, o is IntE[], false); Eval(18491, o is IntE?, false); Eval(18492, o is IntE?[], false); Eval(18493, o is ByteE, false); Eval(18494, o is ByteE[], false); Eval(18495, o is ByteE?, false); Eval(18496, o is ByteE?[], false); Eval(18497, o is LongE, false); Eval(18498, o is LongE[], false); Eval(18499, o is LongE?, false); Eval(18500, o is LongE?[], false); Eval(18501, o is char, false); Eval(18502, o is char[], false); Eval(18503, o is char?, false); Eval(18504, o is char?[], false); Eval(18505, o is bool, false); Eval(18506, o is bool[], false); Eval(18507, o is bool?, false); Eval(18508, o is bool?[], false); Eval(18509, o is byte, false); Eval(18510, o is byte[], false); Eval(18511, o is byte?, false); Eval(18512, o is byte?[], false); Eval(18513, o is sbyte, false); Eval(18514, o is sbyte[], false); Eval(18515, o is sbyte?, false); Eval(18516, o is sbyte?[], false); Eval(18517, o is short, false); Eval(18518, o is short[], false); Eval(18519, o is short?, false); Eval(18520, o is short?[], false); Eval(18521, o is ushort, false); Eval(18522, o is ushort[], false); Eval(18523, o is ushort?, false); Eval(18524, o is ushort?[], false); Eval(18525, o is int, false); Eval(18526, o is int[], false); Eval(18527, o is int?, false); Eval(18528, o is int?[], false); Eval(18529, o is uint, false); Eval(18530, o is uint[], false); Eval(18531, o is uint?, false); Eval(18532, o is uint?[], false); Eval(18533, o is long, false); Eval(18534, o is long[], false); Eval(18535, o is long?, false); Eval(18536, o is long?[], false); Eval(18537, o is ulong, false); Eval(18538, o is ulong[], false); Eval(18539, o is ulong?, false); Eval(18540, o is ulong?[], false); Eval(18541, o is float, false); Eval(18542, o is float[], false); Eval(18543, o is float?, false); Eval(18544, o is float?[], false); Eval(18545, o is double, false); Eval(18546, o is double[], false); Eval(18547, o is double?, false); Eval(18548, o is double?[], false); Eval(18549, o is decimal, true); Eval(18550, o is decimal[], false); Eval(18551, o is decimal?, true); Eval(18552, o is decimal?[], false); Eval(18553, o is IntPtr, false); Eval(18554, o is IntPtr[], false); Eval(18555, o is IntPtr?, false); Eval(18556, o is IntPtr?[], false); Eval(18557, o is UIntPtr, false); Eval(18558, o is UIntPtr[], false); Eval(18559, o is UIntPtr?, false); Eval(18560, o is UIntPtr?[], false); Eval(18561, o is Guid, false); Eval(18562, o is Guid[], false); Eval(18563, o is Guid?, false); Eval(18564, o is Guid?[], false); Eval(18565, o is GCHandle, false); Eval(18566, o is GCHandle[], false); Eval(18567, o is GCHandle?, false); Eval(18568, o is GCHandle?[], false); Eval(18569, o is object, true); Eval(18570, o is object[], false); Eval(18571, o is string, false); Eval(18572, o is string[], false); Eval(18573, o is ValueType, true); Eval(18574, o is ValueType[], false); Eval(18575, o is Array, false); Eval(18576, o is Array[], false); Eval(18577, o is Enum, false); Eval(18578, o is Enum[], false); Eval(18579, o is Delegate, false); Eval(18580, o is Delegate[], false); Eval(18581, o is MulticastDelegate, false); Eval(18582, o is MulticastDelegate[], false); Eval(18583, o is IEmpty, false); Eval(18584, o is IEmpty[], false); Eval(18585, o is INotEmpty, false); Eval(18586, o is INotEmpty[], false); Eval(18587, o is IEmptyGen<int>, false); Eval(18588, o is IEmptyGen<int>[], false); Eval(18589, o is INotEmptyGen<int>, false); Eval(18590, o is INotEmptyGen<int>[], false); Eval(18591, o is SimpleDelegate, false); Eval(18592, o is SimpleDelegate[], false); Eval(18593, o is GenericDelegate<int>, false); Eval(18594, o is GenericDelegate<int>[], false); Eval(18595, o is EmptyClass, false); Eval(18596, o is EmptyClass[], false); Eval(18597, o is NotEmptyClass, false); Eval(18598, o is NotEmptyClass[], false); Eval(18599, o is EmptyClassGen<int>, false); Eval(18600, o is EmptyClassGen<int>[], false); Eval(18601, o is NotEmptyClassGen<Guid>, false); Eval(18602, o is NotEmptyClassGen<Guid>[], false); Eval(18603, o is NotEmptyClassConstrainedGen<object>, false); Eval(18604, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18605, o is NestedClass, false); Eval(18606, o is NestedClass[], false); Eval(18607, o is NestedClassGen<Decimal>, false); Eval(18608, o is NestedClassGen<Decimal>[], false); Eval(18609, o is ImplementOneInterfaceC, false); Eval(18610, o is ImplementOneInterfaceC[], false); Eval(18611, o is ImplementTwoInterfaceC, false); Eval(18612, o is ImplementTwoInterfaceC[], false); Eval(18613, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18614, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18615, o is ImplementTwoInterfaceGenC<int>, false); Eval(18616, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18617, o is ImplementAllInterfaceC<int>, false); Eval(18618, o is ImplementAllInterfaceC<int>[], false); Eval(18619, o is SealedClass, false); Eval(18620, o is SealedClass[], false); } { decimal? v = default(decimal?); ValueType o = v; Eval(18621, o is EmptyStruct, false); Eval(18622, o is EmptyStruct[], false); Eval(18623, o is EmptyStruct?, false); Eval(18624, o is EmptyStruct?[], false); Eval(18625, o is NotEmptyStruct, false); Eval(18626, o is NotEmptyStruct[], false); Eval(18627, o is NotEmptyStruct?, false); Eval(18628, o is NotEmptyStruct?[], false); Eval(18629, o is EmptyStructGen<int>, false); Eval(18630, o is EmptyStructGen<int>[], false); Eval(18631, o is EmptyStructGen<int>?, false); Eval(18632, o is EmptyStructGen<int>?[], false); Eval(18633, o is NotEmptyStructGen<Guid>, false); Eval(18634, o is NotEmptyStructGen<Guid>[], false); Eval(18635, o is NotEmptyStructGen<Guid>?, false); Eval(18636, o is NotEmptyStructGen<Guid>?[], false); Eval(18637, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18638, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18639, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18640, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18641, o is NestedStruct, false); Eval(18642, o is NestedStruct[], false); Eval(18643, o is NestedStruct?, false); Eval(18644, o is NestedStruct?[], false); Eval(18645, o is NestedStructGen<Decimal>, false); Eval(18646, o is NestedStructGen<Decimal>[], false); Eval(18647, o is NestedStructGen<Decimal>?, false); Eval(18648, o is NestedStructGen<Decimal>?[], false); Eval(18649, o is ExplicitFieldOffsetStruct, false); Eval(18650, o is ExplicitFieldOffsetStruct[], false); Eval(18651, o is ExplicitFieldOffsetStruct?, false); Eval(18652, o is ExplicitFieldOffsetStruct?[], false); Eval(18661, o is MarshalAsStruct, false); Eval(18662, o is MarshalAsStruct[], false); Eval(18663, o is MarshalAsStruct?, false); Eval(18664, o is MarshalAsStruct?[], false); Eval(18665, o is ImplementOneInterface, false); Eval(18666, o is ImplementOneInterface[], false); Eval(18667, o is ImplementOneInterface?, false); Eval(18668, o is ImplementOneInterface?[], false); Eval(18669, o is ImplementTwoInterface, false); Eval(18670, o is ImplementTwoInterface[], false); Eval(18671, o is ImplementTwoInterface?, false); Eval(18672, o is ImplementTwoInterface?[], false); Eval(18673, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18674, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18675, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18676, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18677, o is ImplementTwoInterfaceGen<int>, false); Eval(18678, o is ImplementTwoInterfaceGen<int>[], false); Eval(18679, o is ImplementTwoInterfaceGen<int>?, false); Eval(18680, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18681, o is ImplementAllInterface<int>, false); Eval(18682, o is ImplementAllInterface<int>[], false); Eval(18683, o is ImplementAllInterface<int>?, false); Eval(18684, o is ImplementAllInterface<int>?[], false); Eval(18685, o is IntE, false); Eval(18686, o is IntE[], false); Eval(18687, o is IntE?, false); Eval(18688, o is IntE?[], false); Eval(18689, o is ByteE, false); Eval(18690, o is ByteE[], false); Eval(18691, o is ByteE?, false); Eval(18692, o is ByteE?[], false); Eval(18693, o is LongE, false); Eval(18694, o is LongE[], false); Eval(18695, o is LongE?, false); Eval(18696, o is LongE?[], false); Eval(18697, o is char, false); Eval(18698, o is char[], false); Eval(18699, o is char?, false); Eval(18700, o is char?[], false); Eval(18701, o is bool, false); Eval(18702, o is bool[], false); Eval(18703, o is bool?, false); Eval(18704, o is bool?[], false); Eval(18705, o is byte, false); Eval(18706, o is byte[], false); Eval(18707, o is byte?, false); Eval(18708, o is byte?[], false); Eval(18709, o is sbyte, false); Eval(18710, o is sbyte[], false); Eval(18711, o is sbyte?, false); Eval(18712, o is sbyte?[], false); Eval(18713, o is short, false); Eval(18714, o is short[], false); Eval(18715, o is short?, false); Eval(18716, o is short?[], false); Eval(18717, o is ushort, false); Eval(18718, o is ushort[], false); Eval(18719, o is ushort?, false); Eval(18720, o is ushort?[], false); Eval(18721, o is int, false); Eval(18722, o is int[], false); Eval(18723, o is int?, false); Eval(18724, o is int?[], false); Eval(18725, o is uint, false); Eval(18726, o is uint[], false); Eval(18727, o is uint?, false); Eval(18728, o is uint?[], false); Eval(18729, o is long, false); Eval(18730, o is long[], false); Eval(18731, o is long?, false); Eval(18732, o is long?[], false); Eval(18733, o is ulong, false); Eval(18734, o is ulong[], false); Eval(18735, o is ulong?, false); Eval(18736, o is ulong?[], false); Eval(18737, o is float, false); Eval(18738, o is float[], false); Eval(18739, o is float?, false); Eval(18740, o is float?[], false); Eval(18741, o is double, false); Eval(18742, o is double[], false); Eval(18743, o is double?, false); Eval(18744, o is double?[], false); Eval(18745, o is decimal, false); Eval(18746, o is decimal[], false); Eval(18747, o is decimal?, false); Eval(18748, o is decimal?[], false); Eval(18749, o is IntPtr, false); Eval(18750, o is IntPtr[], false); Eval(18751, o is IntPtr?, false); Eval(18752, o is IntPtr?[], false); Eval(18753, o is UIntPtr, false); Eval(18754, o is UIntPtr[], false); Eval(18755, o is UIntPtr?, false); Eval(18756, o is UIntPtr?[], false); Eval(18757, o is Guid, false); Eval(18758, o is Guid[], false); Eval(18759, o is Guid?, false); Eval(18760, o is Guid?[], false); Eval(18761, o is GCHandle, false); Eval(18762, o is GCHandle[], false); Eval(18763, o is GCHandle?, false); Eval(18764, o is GCHandle?[], false); Eval(18765, o is object, false); Eval(18766, o is object[], false); Eval(18767, o is string, false); Eval(18768, o is string[], false); Eval(18769, o is ValueType, false); Eval(18770, o is ValueType[], false); Eval(18771, o is Array, false); Eval(18772, o is Array[], false); Eval(18773, o is Enum, false); Eval(18774, o is Enum[], false); Eval(18775, o is Delegate, false); Eval(18776, o is Delegate[], false); Eval(18777, o is MulticastDelegate, false); Eval(18778, o is MulticastDelegate[], false); Eval(18779, o is IEmpty, false); Eval(18780, o is IEmpty[], false); Eval(18781, o is INotEmpty, false); Eval(18782, o is INotEmpty[], false); Eval(18783, o is IEmptyGen<int>, false); Eval(18784, o is IEmptyGen<int>[], false); Eval(18785, o is INotEmptyGen<int>, false); Eval(18786, o is INotEmptyGen<int>[], false); Eval(18787, o is SimpleDelegate, false); Eval(18788, o is SimpleDelegate[], false); Eval(18789, o is GenericDelegate<int>, false); Eval(18790, o is GenericDelegate<int>[], false); Eval(18791, o is EmptyClass, false); Eval(18792, o is EmptyClass[], false); Eval(18793, o is NotEmptyClass, false); Eval(18794, o is NotEmptyClass[], false); Eval(18795, o is EmptyClassGen<int>, false); Eval(18796, o is EmptyClassGen<int>[], false); Eval(18797, o is NotEmptyClassGen<Guid>, false); Eval(18798, o is NotEmptyClassGen<Guid>[], false); Eval(18799, o is NotEmptyClassConstrainedGen<object>, false); Eval(18800, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18801, o is NestedClass, false); Eval(18802, o is NestedClass[], false); Eval(18803, o is NestedClassGen<Decimal>, false); Eval(18804, o is NestedClassGen<Decimal>[], false); Eval(18805, o is ImplementOneInterfaceC, false); Eval(18806, o is ImplementOneInterfaceC[], false); Eval(18807, o is ImplementTwoInterfaceC, false); Eval(18808, o is ImplementTwoInterfaceC[], false); Eval(18809, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(18810, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(18811, o is ImplementTwoInterfaceGenC<int>, false); Eval(18812, o is ImplementTwoInterfaceGenC<int>[], false); Eval(18813, o is ImplementAllInterfaceC<int>, false); Eval(18814, o is ImplementAllInterfaceC<int>[], false); Eval(18815, o is SealedClass, false); Eval(18816, o is SealedClass[], false); } } // end of test case 0032 private static void TestCase0033() { { IntPtr v = default(IntPtr); ValueType o = v; Eval(18817, o is EmptyStruct, false); Eval(18818, o is EmptyStruct[], false); Eval(18819, o is EmptyStruct?, false); Eval(18820, o is EmptyStruct?[], false); Eval(18821, o is NotEmptyStruct, false); Eval(18822, o is NotEmptyStruct[], false); Eval(18823, o is NotEmptyStruct?, false); Eval(18824, o is NotEmptyStruct?[], false); Eval(18825, o is EmptyStructGen<int>, false); Eval(18826, o is EmptyStructGen<int>[], false); Eval(18827, o is EmptyStructGen<int>?, false); Eval(18828, o is EmptyStructGen<int>?[], false); Eval(18829, o is NotEmptyStructGen<Guid>, false); Eval(18830, o is NotEmptyStructGen<Guid>[], false); Eval(18831, o is NotEmptyStructGen<Guid>?, false); Eval(18832, o is NotEmptyStructGen<Guid>?[], false); Eval(18833, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(18834, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(18835, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(18836, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(18837, o is NestedStruct, false); Eval(18838, o is NestedStruct[], false); Eval(18839, o is NestedStruct?, false); Eval(18840, o is NestedStruct?[], false); Eval(18841, o is NestedStructGen<Decimal>, false); Eval(18842, o is NestedStructGen<Decimal>[], false); Eval(18843, o is NestedStructGen<Decimal>?, false); Eval(18844, o is NestedStructGen<Decimal>?[], false); Eval(18845, o is ExplicitFieldOffsetStruct, false); Eval(18846, o is ExplicitFieldOffsetStruct[], false); Eval(18847, o is ExplicitFieldOffsetStruct?, false); Eval(18848, o is ExplicitFieldOffsetStruct?[], false); Eval(18857, o is MarshalAsStruct, false); Eval(18858, o is MarshalAsStruct[], false); Eval(18859, o is MarshalAsStruct?, false); Eval(18860, o is MarshalAsStruct?[], false); Eval(18861, o is ImplementOneInterface, false); Eval(18862, o is ImplementOneInterface[], false); Eval(18863, o is ImplementOneInterface?, false); Eval(18864, o is ImplementOneInterface?[], false); Eval(18865, o is ImplementTwoInterface, false); Eval(18866, o is ImplementTwoInterface[], false); Eval(18867, o is ImplementTwoInterface?, false); Eval(18868, o is ImplementTwoInterface?[], false); Eval(18869, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(18870, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(18871, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(18872, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(18873, o is ImplementTwoInterfaceGen<int>, false); Eval(18874, o is ImplementTwoInterfaceGen<int>[], false); Eval(18875, o is ImplementTwoInterfaceGen<int>?, false); Eval(18876, o is ImplementTwoInterfaceGen<int>?[], false); Eval(18877, o is ImplementAllInterface<int>, false); Eval(18878, o is ImplementAllInterface<int>[], false); Eval(18879, o is ImplementAllInterface<int>?, false); Eval(18880, o is ImplementAllInterface<int>?[], false); Eval(18881, o is IntE, false); Eval(18882, o is IntE[], false); Eval(18883, o is IntE?, false); Eval(18884, o is IntE?[], false); Eval(18885, o is ByteE, false); Eval(18886, o is ByteE[], false); Eval(18887, o is ByteE?, false); Eval(18888, o is ByteE?[], false); Eval(18889, o is LongE, false); Eval(18890, o is LongE[], false); Eval(18891, o is LongE?, false); Eval(18892, o is LongE?[], false); Eval(18893, o is char, false); Eval(18894, o is char[], false); Eval(18895, o is char?, false); Eval(18896, o is char?[], false); Eval(18897, o is bool, false); Eval(18898, o is bool[], false); Eval(18899, o is bool?, false); Eval(18900, o is bool?[], false); Eval(18901, o is byte, false); Eval(18902, o is byte[], false); Eval(18903, o is byte?, false); Eval(18904, o is byte?[], false); Eval(18905, o is sbyte, false); Eval(18906, o is sbyte[], false); Eval(18907, o is sbyte?, false); Eval(18908, o is sbyte?[], false); Eval(18909, o is short, false); Eval(18910, o is short[], false); Eval(18911, o is short?, false); Eval(18912, o is short?[], false); Eval(18913, o is ushort, false); Eval(18914, o is ushort[], false); Eval(18915, o is ushort?, false); Eval(18916, o is ushort?[], false); Eval(18917, o is int, false); Eval(18918, o is int[], false); Eval(18919, o is int?, false); Eval(18920, o is int?[], false); Eval(18921, o is uint, false); Eval(18922, o is uint[], false); Eval(18923, o is uint?, false); Eval(18924, o is uint?[], false); Eval(18925, o is long, false); Eval(18926, o is long[], false); Eval(18927, o is long?, false); Eval(18928, o is long?[], false); Eval(18929, o is ulong, false); Eval(18930, o is ulong[], false); Eval(18931, o is ulong?, false); Eval(18932, o is ulong?[], false); Eval(18933, o is float, false); Eval(18934, o is float[], false); Eval(18935, o is float?, false); Eval(18936, o is float?[], false); Eval(18937, o is double, false); Eval(18938, o is double[], false); Eval(18939, o is double?, false); Eval(18940, o is double?[], false); Eval(18941, o is decimal, false); Eval(18942, o is decimal[], false); Eval(18943, o is decimal?, false); Eval(18944, o is decimal?[], false); Eval(18945, o is IntPtr, true); Eval(18946, o is IntPtr[], false); Eval(18947, o is IntPtr?, true); Eval(18948, o is IntPtr?[], false); Eval(18949, o is UIntPtr, false); Eval(18950, o is UIntPtr[], false); Eval(18951, o is UIntPtr?, false); Eval(18952, o is UIntPtr?[], false); Eval(18953, o is Guid, false); Eval(18954, o is Guid[], false); Eval(18955, o is Guid?, false); Eval(18956, o is Guid?[], false); Eval(18957, o is GCHandle, false); Eval(18958, o is GCHandle[], false); Eval(18959, o is GCHandle?, false); Eval(18960, o is GCHandle?[], false); Eval(18961, o is object, true); Eval(18962, o is object[], false); Eval(18963, o is string, false); Eval(18964, o is string[], false); Eval(18965, o is ValueType, true); Eval(18966, o is ValueType[], false); Eval(18967, o is Array, false); Eval(18968, o is Array[], false); Eval(18969, o is Enum, false); Eval(18970, o is Enum[], false); Eval(18971, o is Delegate, false); Eval(18972, o is Delegate[], false); Eval(18973, o is MulticastDelegate, false); Eval(18974, o is MulticastDelegate[], false); Eval(18975, o is IEmpty, false); Eval(18976, o is IEmpty[], false); Eval(18977, o is INotEmpty, false); Eval(18978, o is INotEmpty[], false); Eval(18979, o is IEmptyGen<int>, false); Eval(18980, o is IEmptyGen<int>[], false); Eval(18981, o is INotEmptyGen<int>, false); Eval(18982, o is INotEmptyGen<int>[], false); Eval(18983, o is SimpleDelegate, false); Eval(18984, o is SimpleDelegate[], false); Eval(18985, o is GenericDelegate<int>, false); Eval(18986, o is GenericDelegate<int>[], false); Eval(18987, o is EmptyClass, false); Eval(18988, o is EmptyClass[], false); Eval(18989, o is NotEmptyClass, false); Eval(18990, o is NotEmptyClass[], false); Eval(18991, o is EmptyClassGen<int>, false); Eval(18992, o is EmptyClassGen<int>[], false); Eval(18993, o is NotEmptyClassGen<Guid>, false); Eval(18994, o is NotEmptyClassGen<Guid>[], false); Eval(18995, o is NotEmptyClassConstrainedGen<object>, false); Eval(18996, o is NotEmptyClassConstrainedGen<object>[], false); Eval(18997, o is NestedClass, false); Eval(18998, o is NestedClass[], false); Eval(18999, o is NestedClassGen<Decimal>, false); Eval(19000, o is NestedClassGen<Decimal>[], false); Eval(19001, o is ImplementOneInterfaceC, false); Eval(19002, o is ImplementOneInterfaceC[], false); Eval(19003, o is ImplementTwoInterfaceC, false); Eval(19004, o is ImplementTwoInterfaceC[], false); Eval(19005, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19006, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19007, o is ImplementTwoInterfaceGenC<int>, false); Eval(19008, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19009, o is ImplementAllInterfaceC<int>, false); Eval(19010, o is ImplementAllInterfaceC<int>[], false); Eval(19011, o is SealedClass, false); Eval(19012, o is SealedClass[], false); } { IntPtr? v = default(IntPtr); ValueType o = v; Eval(19013, o is EmptyStruct, false); Eval(19014, o is EmptyStruct[], false); Eval(19015, o is EmptyStruct?, false); Eval(19016, o is EmptyStruct?[], false); Eval(19017, o is NotEmptyStruct, false); Eval(19018, o is NotEmptyStruct[], false); Eval(19019, o is NotEmptyStruct?, false); Eval(19020, o is NotEmptyStruct?[], false); Eval(19021, o is EmptyStructGen<int>, false); Eval(19022, o is EmptyStructGen<int>[], false); Eval(19023, o is EmptyStructGen<int>?, false); Eval(19024, o is EmptyStructGen<int>?[], false); Eval(19025, o is NotEmptyStructGen<Guid>, false); Eval(19026, o is NotEmptyStructGen<Guid>[], false); Eval(19027, o is NotEmptyStructGen<Guid>?, false); Eval(19028, o is NotEmptyStructGen<Guid>?[], false); Eval(19029, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19030, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19031, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19032, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19033, o is NestedStruct, false); Eval(19034, o is NestedStruct[], false); Eval(19035, o is NestedStruct?, false); Eval(19036, o is NestedStruct?[], false); Eval(19037, o is NestedStructGen<Decimal>, false); Eval(19038, o is NestedStructGen<Decimal>[], false); Eval(19039, o is NestedStructGen<Decimal>?, false); Eval(19040, o is NestedStructGen<Decimal>?[], false); Eval(19041, o is ExplicitFieldOffsetStruct, false); Eval(19042, o is ExplicitFieldOffsetStruct[], false); Eval(19043, o is ExplicitFieldOffsetStruct?, false); Eval(19044, o is ExplicitFieldOffsetStruct?[], false); Eval(19053, o is MarshalAsStruct, false); Eval(19054, o is MarshalAsStruct[], false); Eval(19055, o is MarshalAsStruct?, false); Eval(19056, o is MarshalAsStruct?[], false); Eval(19057, o is ImplementOneInterface, false); Eval(19058, o is ImplementOneInterface[], false); Eval(19059, o is ImplementOneInterface?, false); Eval(19060, o is ImplementOneInterface?[], false); Eval(19061, o is ImplementTwoInterface, false); Eval(19062, o is ImplementTwoInterface[], false); Eval(19063, o is ImplementTwoInterface?, false); Eval(19064, o is ImplementTwoInterface?[], false); Eval(19065, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19066, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19067, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19068, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19069, o is ImplementTwoInterfaceGen<int>, false); Eval(19070, o is ImplementTwoInterfaceGen<int>[], false); Eval(19071, o is ImplementTwoInterfaceGen<int>?, false); Eval(19072, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19073, o is ImplementAllInterface<int>, false); Eval(19074, o is ImplementAllInterface<int>[], false); Eval(19075, o is ImplementAllInterface<int>?, false); Eval(19076, o is ImplementAllInterface<int>?[], false); Eval(19077, o is IntE, false); Eval(19078, o is IntE[], false); Eval(19079, o is IntE?, false); Eval(19080, o is IntE?[], false); Eval(19081, o is ByteE, false); Eval(19082, o is ByteE[], false); Eval(19083, o is ByteE?, false); Eval(19084, o is ByteE?[], false); Eval(19085, o is LongE, false); Eval(19086, o is LongE[], false); Eval(19087, o is LongE?, false); Eval(19088, o is LongE?[], false); Eval(19089, o is char, false); Eval(19090, o is char[], false); Eval(19091, o is char?, false); Eval(19092, o is char?[], false); Eval(19093, o is bool, false); Eval(19094, o is bool[], false); Eval(19095, o is bool?, false); Eval(19096, o is bool?[], false); Eval(19097, o is byte, false); Eval(19098, o is byte[], false); Eval(19099, o is byte?, false); Eval(19100, o is byte?[], false); Eval(19101, o is sbyte, false); Eval(19102, o is sbyte[], false); Eval(19103, o is sbyte?, false); Eval(19104, o is sbyte?[], false); Eval(19105, o is short, false); Eval(19106, o is short[], false); Eval(19107, o is short?, false); Eval(19108, o is short?[], false); Eval(19109, o is ushort, false); Eval(19110, o is ushort[], false); Eval(19111, o is ushort?, false); Eval(19112, o is ushort?[], false); Eval(19113, o is int, false); Eval(19114, o is int[], false); Eval(19115, o is int?, false); Eval(19116, o is int?[], false); Eval(19117, o is uint, false); Eval(19118, o is uint[], false); Eval(19119, o is uint?, false); Eval(19120, o is uint?[], false); Eval(19121, o is long, false); Eval(19122, o is long[], false); Eval(19123, o is long?, false); Eval(19124, o is long?[], false); Eval(19125, o is ulong, false); Eval(19126, o is ulong[], false); Eval(19127, o is ulong?, false); Eval(19128, o is ulong?[], false); Eval(19129, o is float, false); Eval(19130, o is float[], false); Eval(19131, o is float?, false); Eval(19132, o is float?[], false); Eval(19133, o is double, false); Eval(19134, o is double[], false); Eval(19135, o is double?, false); Eval(19136, o is double?[], false); Eval(19137, o is decimal, false); Eval(19138, o is decimal[], false); Eval(19139, o is decimal?, false); Eval(19140, o is decimal?[], false); Eval(19141, o is IntPtr, true); Eval(19142, o is IntPtr[], false); Eval(19143, o is IntPtr?, true); Eval(19144, o is IntPtr?[], false); Eval(19145, o is UIntPtr, false); Eval(19146, o is UIntPtr[], false); Eval(19147, o is UIntPtr?, false); Eval(19148, o is UIntPtr?[], false); Eval(19149, o is Guid, false); Eval(19150, o is Guid[], false); Eval(19151, o is Guid?, false); Eval(19152, o is Guid?[], false); Eval(19153, o is GCHandle, false); Eval(19154, o is GCHandle[], false); Eval(19155, o is GCHandle?, false); Eval(19156, o is GCHandle?[], false); Eval(19157, o is object, true); Eval(19158, o is object[], false); Eval(19159, o is string, false); Eval(19160, o is string[], false); Eval(19161, o is ValueType, true); Eval(19162, o is ValueType[], false); Eval(19163, o is Array, false); Eval(19164, o is Array[], false); Eval(19165, o is Enum, false); Eval(19166, o is Enum[], false); Eval(19167, o is Delegate, false); Eval(19168, o is Delegate[], false); Eval(19169, o is MulticastDelegate, false); Eval(19170, o is MulticastDelegate[], false); Eval(19171, o is IEmpty, false); Eval(19172, o is IEmpty[], false); Eval(19173, o is INotEmpty, false); Eval(19174, o is INotEmpty[], false); Eval(19175, o is IEmptyGen<int>, false); Eval(19176, o is IEmptyGen<int>[], false); Eval(19177, o is INotEmptyGen<int>, false); Eval(19178, o is INotEmptyGen<int>[], false); Eval(19179, o is SimpleDelegate, false); Eval(19180, o is SimpleDelegate[], false); Eval(19181, o is GenericDelegate<int>, false); Eval(19182, o is GenericDelegate<int>[], false); Eval(19183, o is EmptyClass, false); Eval(19184, o is EmptyClass[], false); Eval(19185, o is NotEmptyClass, false); Eval(19186, o is NotEmptyClass[], false); Eval(19187, o is EmptyClassGen<int>, false); Eval(19188, o is EmptyClassGen<int>[], false); Eval(19189, o is NotEmptyClassGen<Guid>, false); Eval(19190, o is NotEmptyClassGen<Guid>[], false); Eval(19191, o is NotEmptyClassConstrainedGen<object>, false); Eval(19192, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19193, o is NestedClass, false); Eval(19194, o is NestedClass[], false); Eval(19195, o is NestedClassGen<Decimal>, false); Eval(19196, o is NestedClassGen<Decimal>[], false); Eval(19197, o is ImplementOneInterfaceC, false); Eval(19198, o is ImplementOneInterfaceC[], false); Eval(19199, o is ImplementTwoInterfaceC, false); Eval(19200, o is ImplementTwoInterfaceC[], false); Eval(19201, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19202, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19203, o is ImplementTwoInterfaceGenC<int>, false); Eval(19204, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19205, o is ImplementAllInterfaceC<int>, false); Eval(19206, o is ImplementAllInterfaceC<int>[], false); Eval(19207, o is SealedClass, false); Eval(19208, o is SealedClass[], false); } { IntPtr? v = default(IntPtr?); ValueType o = v; Eval(19209, o is EmptyStruct, false); Eval(19210, o is EmptyStruct[], false); Eval(19211, o is EmptyStruct?, false); Eval(19212, o is EmptyStruct?[], false); Eval(19213, o is NotEmptyStruct, false); Eval(19214, o is NotEmptyStruct[], false); Eval(19215, o is NotEmptyStruct?, false); Eval(19216, o is NotEmptyStruct?[], false); Eval(19217, o is EmptyStructGen<int>, false); Eval(19218, o is EmptyStructGen<int>[], false); Eval(19219, o is EmptyStructGen<int>?, false); Eval(19220, o is EmptyStructGen<int>?[], false); Eval(19221, o is NotEmptyStructGen<Guid>, false); Eval(19222, o is NotEmptyStructGen<Guid>[], false); Eval(19223, o is NotEmptyStructGen<Guid>?, false); Eval(19224, o is NotEmptyStructGen<Guid>?[], false); Eval(19225, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19226, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19227, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19228, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19229, o is NestedStruct, false); Eval(19230, o is NestedStruct[], false); Eval(19231, o is NestedStruct?, false); Eval(19232, o is NestedStruct?[], false); Eval(19233, o is NestedStructGen<Decimal>, false); Eval(19234, o is NestedStructGen<Decimal>[], false); Eval(19235, o is NestedStructGen<Decimal>?, false); Eval(19236, o is NestedStructGen<Decimal>?[], false); Eval(19237, o is ExplicitFieldOffsetStruct, false); Eval(19238, o is ExplicitFieldOffsetStruct[], false); Eval(19239, o is ExplicitFieldOffsetStruct?, false); Eval(19240, o is ExplicitFieldOffsetStruct?[], false); Eval(19249, o is MarshalAsStruct, false); Eval(19250, o is MarshalAsStruct[], false); Eval(19251, o is MarshalAsStruct?, false); Eval(19252, o is MarshalAsStruct?[], false); Eval(19253, o is ImplementOneInterface, false); Eval(19254, o is ImplementOneInterface[], false); Eval(19255, o is ImplementOneInterface?, false); Eval(19256, o is ImplementOneInterface?[], false); Eval(19257, o is ImplementTwoInterface, false); Eval(19258, o is ImplementTwoInterface[], false); Eval(19259, o is ImplementTwoInterface?, false); Eval(19260, o is ImplementTwoInterface?[], false); Eval(19261, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19262, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19263, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19264, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19265, o is ImplementTwoInterfaceGen<int>, false); Eval(19266, o is ImplementTwoInterfaceGen<int>[], false); Eval(19267, o is ImplementTwoInterfaceGen<int>?, false); Eval(19268, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19269, o is ImplementAllInterface<int>, false); Eval(19270, o is ImplementAllInterface<int>[], false); Eval(19271, o is ImplementAllInterface<int>?, false); Eval(19272, o is ImplementAllInterface<int>?[], false); Eval(19273, o is IntE, false); Eval(19274, o is IntE[], false); Eval(19275, o is IntE?, false); Eval(19276, o is IntE?[], false); Eval(19277, o is ByteE, false); Eval(19278, o is ByteE[], false); Eval(19279, o is ByteE?, false); Eval(19280, o is ByteE?[], false); Eval(19281, o is LongE, false); Eval(19282, o is LongE[], false); Eval(19283, o is LongE?, false); Eval(19284, o is LongE?[], false); Eval(19285, o is char, false); Eval(19286, o is char[], false); Eval(19287, o is char?, false); Eval(19288, o is char?[], false); Eval(19289, o is bool, false); Eval(19290, o is bool[], false); Eval(19291, o is bool?, false); Eval(19292, o is bool?[], false); Eval(19293, o is byte, false); Eval(19294, o is byte[], false); Eval(19295, o is byte?, false); Eval(19296, o is byte?[], false); Eval(19297, o is sbyte, false); Eval(19298, o is sbyte[], false); Eval(19299, o is sbyte?, false); Eval(19300, o is sbyte?[], false); Eval(19301, o is short, false); Eval(19302, o is short[], false); Eval(19303, o is short?, false); Eval(19304, o is short?[], false); Eval(19305, o is ushort, false); Eval(19306, o is ushort[], false); Eval(19307, o is ushort?, false); Eval(19308, o is ushort?[], false); Eval(19309, o is int, false); Eval(19310, o is int[], false); Eval(19311, o is int?, false); Eval(19312, o is int?[], false); Eval(19313, o is uint, false); Eval(19314, o is uint[], false); Eval(19315, o is uint?, false); Eval(19316, o is uint?[], false); Eval(19317, o is long, false); Eval(19318, o is long[], false); Eval(19319, o is long?, false); Eval(19320, o is long?[], false); Eval(19321, o is ulong, false); Eval(19322, o is ulong[], false); Eval(19323, o is ulong?, false); Eval(19324, o is ulong?[], false); Eval(19325, o is float, false); Eval(19326, o is float[], false); Eval(19327, o is float?, false); Eval(19328, o is float?[], false); Eval(19329, o is double, false); Eval(19330, o is double[], false); Eval(19331, o is double?, false); Eval(19332, o is double?[], false); Eval(19333, o is decimal, false); Eval(19334, o is decimal[], false); Eval(19335, o is decimal?, false); Eval(19336, o is decimal?[], false); Eval(19337, o is IntPtr, false); Eval(19338, o is IntPtr[], false); Eval(19339, o is IntPtr?, false); Eval(19340, o is IntPtr?[], false); Eval(19341, o is UIntPtr, false); Eval(19342, o is UIntPtr[], false); Eval(19343, o is UIntPtr?, false); Eval(19344, o is UIntPtr?[], false); Eval(19345, o is Guid, false); Eval(19346, o is Guid[], false); Eval(19347, o is Guid?, false); Eval(19348, o is Guid?[], false); Eval(19349, o is GCHandle, false); Eval(19350, o is GCHandle[], false); Eval(19351, o is GCHandle?, false); Eval(19352, o is GCHandle?[], false); Eval(19353, o is object, false); Eval(19354, o is object[], false); Eval(19355, o is string, false); Eval(19356, o is string[], false); Eval(19357, o is ValueType, false); Eval(19358, o is ValueType[], false); Eval(19359, o is Array, false); Eval(19360, o is Array[], false); Eval(19361, o is Enum, false); Eval(19362, o is Enum[], false); Eval(19363, o is Delegate, false); Eval(19364, o is Delegate[], false); Eval(19365, o is MulticastDelegate, false); Eval(19366, o is MulticastDelegate[], false); Eval(19367, o is IEmpty, false); Eval(19368, o is IEmpty[], false); Eval(19369, o is INotEmpty, false); Eval(19370, o is INotEmpty[], false); Eval(19371, o is IEmptyGen<int>, false); Eval(19372, o is IEmptyGen<int>[], false); Eval(19373, o is INotEmptyGen<int>, false); Eval(19374, o is INotEmptyGen<int>[], false); Eval(19375, o is SimpleDelegate, false); Eval(19376, o is SimpleDelegate[], false); Eval(19377, o is GenericDelegate<int>, false); Eval(19378, o is GenericDelegate<int>[], false); Eval(19379, o is EmptyClass, false); Eval(19380, o is EmptyClass[], false); Eval(19381, o is NotEmptyClass, false); Eval(19382, o is NotEmptyClass[], false); Eval(19383, o is EmptyClassGen<int>, false); Eval(19384, o is EmptyClassGen<int>[], false); Eval(19385, o is NotEmptyClassGen<Guid>, false); Eval(19386, o is NotEmptyClassGen<Guid>[], false); Eval(19387, o is NotEmptyClassConstrainedGen<object>, false); Eval(19388, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19389, o is NestedClass, false); Eval(19390, o is NestedClass[], false); Eval(19391, o is NestedClassGen<Decimal>, false); Eval(19392, o is NestedClassGen<Decimal>[], false); Eval(19393, o is ImplementOneInterfaceC, false); Eval(19394, o is ImplementOneInterfaceC[], false); Eval(19395, o is ImplementTwoInterfaceC, false); Eval(19396, o is ImplementTwoInterfaceC[], false); Eval(19397, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19398, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19399, o is ImplementTwoInterfaceGenC<int>, false); Eval(19400, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19401, o is ImplementAllInterfaceC<int>, false); Eval(19402, o is ImplementAllInterfaceC<int>[], false); Eval(19403, o is SealedClass, false); Eval(19404, o is SealedClass[], false); } } // end of test case 0033 private static void TestCase0034() { { UIntPtr v = default(UIntPtr); ValueType o = v; Eval(19405, o is EmptyStruct, false); Eval(19406, o is EmptyStruct[], false); Eval(19407, o is EmptyStruct?, false); Eval(19408, o is EmptyStruct?[], false); Eval(19409, o is NotEmptyStruct, false); Eval(19410, o is NotEmptyStruct[], false); Eval(19411, o is NotEmptyStruct?, false); Eval(19412, o is NotEmptyStruct?[], false); Eval(19413, o is EmptyStructGen<int>, false); Eval(19414, o is EmptyStructGen<int>[], false); Eval(19415, o is EmptyStructGen<int>?, false); Eval(19416, o is EmptyStructGen<int>?[], false); Eval(19417, o is NotEmptyStructGen<Guid>, false); Eval(19418, o is NotEmptyStructGen<Guid>[], false); Eval(19419, o is NotEmptyStructGen<Guid>?, false); Eval(19420, o is NotEmptyStructGen<Guid>?[], false); Eval(19421, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19422, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19423, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19424, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19425, o is NestedStruct, false); Eval(19426, o is NestedStruct[], false); Eval(19427, o is NestedStruct?, false); Eval(19428, o is NestedStruct?[], false); Eval(19429, o is NestedStructGen<Decimal>, false); Eval(19430, o is NestedStructGen<Decimal>[], false); Eval(19431, o is NestedStructGen<Decimal>?, false); Eval(19432, o is NestedStructGen<Decimal>?[], false); Eval(19433, o is ExplicitFieldOffsetStruct, false); Eval(19434, o is ExplicitFieldOffsetStruct[], false); Eval(19435, o is ExplicitFieldOffsetStruct?, false); Eval(19436, o is ExplicitFieldOffsetStruct?[], false); Eval(19445, o is MarshalAsStruct, false); Eval(19446, o is MarshalAsStruct[], false); Eval(19447, o is MarshalAsStruct?, false); Eval(19448, o is MarshalAsStruct?[], false); Eval(19449, o is ImplementOneInterface, false); Eval(19450, o is ImplementOneInterface[], false); Eval(19451, o is ImplementOneInterface?, false); Eval(19452, o is ImplementOneInterface?[], false); Eval(19453, o is ImplementTwoInterface, false); Eval(19454, o is ImplementTwoInterface[], false); Eval(19455, o is ImplementTwoInterface?, false); Eval(19456, o is ImplementTwoInterface?[], false); Eval(19457, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19458, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19459, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19460, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19461, o is ImplementTwoInterfaceGen<int>, false); Eval(19462, o is ImplementTwoInterfaceGen<int>[], false); Eval(19463, o is ImplementTwoInterfaceGen<int>?, false); Eval(19464, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19465, o is ImplementAllInterface<int>, false); Eval(19466, o is ImplementAllInterface<int>[], false); Eval(19467, o is ImplementAllInterface<int>?, false); Eval(19468, o is ImplementAllInterface<int>?[], false); Eval(19469, o is IntE, false); Eval(19470, o is IntE[], false); Eval(19471, o is IntE?, false); Eval(19472, o is IntE?[], false); Eval(19473, o is ByteE, false); Eval(19474, o is ByteE[], false); Eval(19475, o is ByteE?, false); Eval(19476, o is ByteE?[], false); Eval(19477, o is LongE, false); Eval(19478, o is LongE[], false); Eval(19479, o is LongE?, false); Eval(19480, o is LongE?[], false); Eval(19481, o is char, false); Eval(19482, o is char[], false); Eval(19483, o is char?, false); Eval(19484, o is char?[], false); Eval(19485, o is bool, false); Eval(19486, o is bool[], false); Eval(19487, o is bool?, false); Eval(19488, o is bool?[], false); Eval(19489, o is byte, false); Eval(19490, o is byte[], false); Eval(19491, o is byte?, false); Eval(19492, o is byte?[], false); Eval(19493, o is sbyte, false); Eval(19494, o is sbyte[], false); Eval(19495, o is sbyte?, false); Eval(19496, o is sbyte?[], false); Eval(19497, o is short, false); Eval(19498, o is short[], false); Eval(19499, o is short?, false); Eval(19500, o is short?[], false); Eval(19501, o is ushort, false); Eval(19502, o is ushort[], false); Eval(19503, o is ushort?, false); Eval(19504, o is ushort?[], false); Eval(19505, o is int, false); Eval(19506, o is int[], false); Eval(19507, o is int?, false); Eval(19508, o is int?[], false); Eval(19509, o is uint, false); Eval(19510, o is uint[], false); Eval(19511, o is uint?, false); Eval(19512, o is uint?[], false); Eval(19513, o is long, false); Eval(19514, o is long[], false); Eval(19515, o is long?, false); Eval(19516, o is long?[], false); Eval(19517, o is ulong, false); Eval(19518, o is ulong[], false); Eval(19519, o is ulong?, false); Eval(19520, o is ulong?[], false); Eval(19521, o is float, false); Eval(19522, o is float[], false); Eval(19523, o is float?, false); Eval(19524, o is float?[], false); Eval(19525, o is double, false); Eval(19526, o is double[], false); Eval(19527, o is double?, false); Eval(19528, o is double?[], false); Eval(19529, o is decimal, false); Eval(19530, o is decimal[], false); Eval(19531, o is decimal?, false); Eval(19532, o is decimal?[], false); Eval(19533, o is IntPtr, false); Eval(19534, o is IntPtr[], false); Eval(19535, o is IntPtr?, false); Eval(19536, o is IntPtr?[], false); Eval(19537, o is UIntPtr, true); Eval(19538, o is UIntPtr[], false); Eval(19539, o is UIntPtr?, true); Eval(19540, o is UIntPtr?[], false); Eval(19541, o is Guid, false); Eval(19542, o is Guid[], false); Eval(19543, o is Guid?, false); Eval(19544, o is Guid?[], false); Eval(19545, o is GCHandle, false); Eval(19546, o is GCHandle[], false); Eval(19547, o is GCHandle?, false); Eval(19548, o is GCHandle?[], false); Eval(19549, o is object, true); Eval(19550, o is object[], false); Eval(19551, o is string, false); Eval(19552, o is string[], false); Eval(19553, o is ValueType, true); Eval(19554, o is ValueType[], false); Eval(19555, o is Array, false); Eval(19556, o is Array[], false); Eval(19557, o is Enum, false); Eval(19558, o is Enum[], false); Eval(19559, o is Delegate, false); Eval(19560, o is Delegate[], false); Eval(19561, o is MulticastDelegate, false); Eval(19562, o is MulticastDelegate[], false); Eval(19563, o is IEmpty, false); Eval(19564, o is IEmpty[], false); Eval(19565, o is INotEmpty, false); Eval(19566, o is INotEmpty[], false); Eval(19567, o is IEmptyGen<int>, false); Eval(19568, o is IEmptyGen<int>[], false); Eval(19569, o is INotEmptyGen<int>, false); Eval(19570, o is INotEmptyGen<int>[], false); Eval(19571, o is SimpleDelegate, false); Eval(19572, o is SimpleDelegate[], false); Eval(19573, o is GenericDelegate<int>, false); Eval(19574, o is GenericDelegate<int>[], false); Eval(19575, o is EmptyClass, false); Eval(19576, o is EmptyClass[], false); Eval(19577, o is NotEmptyClass, false); Eval(19578, o is NotEmptyClass[], false); Eval(19579, o is EmptyClassGen<int>, false); Eval(19580, o is EmptyClassGen<int>[], false); Eval(19581, o is NotEmptyClassGen<Guid>, false); Eval(19582, o is NotEmptyClassGen<Guid>[], false); Eval(19583, o is NotEmptyClassConstrainedGen<object>, false); Eval(19584, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19585, o is NestedClass, false); Eval(19586, o is NestedClass[], false); Eval(19587, o is NestedClassGen<Decimal>, false); Eval(19588, o is NestedClassGen<Decimal>[], false); Eval(19589, o is ImplementOneInterfaceC, false); Eval(19590, o is ImplementOneInterfaceC[], false); Eval(19591, o is ImplementTwoInterfaceC, false); Eval(19592, o is ImplementTwoInterfaceC[], false); Eval(19593, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19594, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19595, o is ImplementTwoInterfaceGenC<int>, false); Eval(19596, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19597, o is ImplementAllInterfaceC<int>, false); Eval(19598, o is ImplementAllInterfaceC<int>[], false); Eval(19599, o is SealedClass, false); Eval(19600, o is SealedClass[], false); } { UIntPtr? v = default(UIntPtr); ValueType o = v; Eval(19601, o is EmptyStruct, false); Eval(19602, o is EmptyStruct[], false); Eval(19603, o is EmptyStruct?, false); Eval(19604, o is EmptyStruct?[], false); Eval(19605, o is NotEmptyStruct, false); Eval(19606, o is NotEmptyStruct[], false); Eval(19607, o is NotEmptyStruct?, false); Eval(19608, o is NotEmptyStruct?[], false); Eval(19609, o is EmptyStructGen<int>, false); Eval(19610, o is EmptyStructGen<int>[], false); Eval(19611, o is EmptyStructGen<int>?, false); Eval(19612, o is EmptyStructGen<int>?[], false); Eval(19613, o is NotEmptyStructGen<Guid>, false); Eval(19614, o is NotEmptyStructGen<Guid>[], false); Eval(19615, o is NotEmptyStructGen<Guid>?, false); Eval(19616, o is NotEmptyStructGen<Guid>?[], false); Eval(19617, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19618, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19619, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19620, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19621, o is NestedStruct, false); Eval(19622, o is NestedStruct[], false); Eval(19623, o is NestedStruct?, false); Eval(19624, o is NestedStruct?[], false); Eval(19625, o is NestedStructGen<Decimal>, false); Eval(19626, o is NestedStructGen<Decimal>[], false); Eval(19627, o is NestedStructGen<Decimal>?, false); Eval(19628, o is NestedStructGen<Decimal>?[], false); Eval(19629, o is ExplicitFieldOffsetStruct, false); Eval(19630, o is ExplicitFieldOffsetStruct[], false); Eval(19631, o is ExplicitFieldOffsetStruct?, false); Eval(19632, o is ExplicitFieldOffsetStruct?[], false); Eval(19641, o is MarshalAsStruct, false); Eval(19642, o is MarshalAsStruct[], false); Eval(19643, o is MarshalAsStruct?, false); Eval(19644, o is MarshalAsStruct?[], false); Eval(19645, o is ImplementOneInterface, false); Eval(19646, o is ImplementOneInterface[], false); Eval(19647, o is ImplementOneInterface?, false); Eval(19648, o is ImplementOneInterface?[], false); Eval(19649, o is ImplementTwoInterface, false); Eval(19650, o is ImplementTwoInterface[], false); Eval(19651, o is ImplementTwoInterface?, false); Eval(19652, o is ImplementTwoInterface?[], false); Eval(19653, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19654, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19655, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19656, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19657, o is ImplementTwoInterfaceGen<int>, false); Eval(19658, o is ImplementTwoInterfaceGen<int>[], false); Eval(19659, o is ImplementTwoInterfaceGen<int>?, false); Eval(19660, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19661, o is ImplementAllInterface<int>, false); Eval(19662, o is ImplementAllInterface<int>[], false); Eval(19663, o is ImplementAllInterface<int>?, false); Eval(19664, o is ImplementAllInterface<int>?[], false); Eval(19665, o is IntE, false); Eval(19666, o is IntE[], false); Eval(19667, o is IntE?, false); Eval(19668, o is IntE?[], false); Eval(19669, o is ByteE, false); Eval(19670, o is ByteE[], false); Eval(19671, o is ByteE?, false); Eval(19672, o is ByteE?[], false); Eval(19673, o is LongE, false); Eval(19674, o is LongE[], false); Eval(19675, o is LongE?, false); Eval(19676, o is LongE?[], false); Eval(19677, o is char, false); Eval(19678, o is char[], false); Eval(19679, o is char?, false); Eval(19680, o is char?[], false); Eval(19681, o is bool, false); Eval(19682, o is bool[], false); Eval(19683, o is bool?, false); Eval(19684, o is bool?[], false); Eval(19685, o is byte, false); Eval(19686, o is byte[], false); Eval(19687, o is byte?, false); Eval(19688, o is byte?[], false); Eval(19689, o is sbyte, false); Eval(19690, o is sbyte[], false); Eval(19691, o is sbyte?, false); Eval(19692, o is sbyte?[], false); Eval(19693, o is short, false); Eval(19694, o is short[], false); Eval(19695, o is short?, false); Eval(19696, o is short?[], false); Eval(19697, o is ushort, false); Eval(19698, o is ushort[], false); Eval(19699, o is ushort?, false); Eval(19700, o is ushort?[], false); Eval(19701, o is int, false); Eval(19702, o is int[], false); Eval(19703, o is int?, false); Eval(19704, o is int?[], false); Eval(19705, o is uint, false); Eval(19706, o is uint[], false); Eval(19707, o is uint?, false); Eval(19708, o is uint?[], false); Eval(19709, o is long, false); Eval(19710, o is long[], false); Eval(19711, o is long?, false); Eval(19712, o is long?[], false); Eval(19713, o is ulong, false); Eval(19714, o is ulong[], false); Eval(19715, o is ulong?, false); Eval(19716, o is ulong?[], false); Eval(19717, o is float, false); Eval(19718, o is float[], false); Eval(19719, o is float?, false); Eval(19720, o is float?[], false); Eval(19721, o is double, false); Eval(19722, o is double[], false); Eval(19723, o is double?, false); Eval(19724, o is double?[], false); Eval(19725, o is decimal, false); Eval(19726, o is decimal[], false); Eval(19727, o is decimal?, false); Eval(19728, o is decimal?[], false); Eval(19729, o is IntPtr, false); Eval(19730, o is IntPtr[], false); Eval(19731, o is IntPtr?, false); Eval(19732, o is IntPtr?[], false); Eval(19733, o is UIntPtr, true); Eval(19734, o is UIntPtr[], false); Eval(19735, o is UIntPtr?, true); Eval(19736, o is UIntPtr?[], false); Eval(19737, o is Guid, false); Eval(19738, o is Guid[], false); Eval(19739, o is Guid?, false); Eval(19740, o is Guid?[], false); Eval(19741, o is GCHandle, false); Eval(19742, o is GCHandle[], false); Eval(19743, o is GCHandle?, false); Eval(19744, o is GCHandle?[], false); Eval(19745, o is object, true); Eval(19746, o is object[], false); Eval(19747, o is string, false); Eval(19748, o is string[], false); Eval(19749, o is ValueType, true); Eval(19750, o is ValueType[], false); Eval(19751, o is Array, false); Eval(19752, o is Array[], false); Eval(19753, o is Enum, false); Eval(19754, o is Enum[], false); Eval(19755, o is Delegate, false); Eval(19756, o is Delegate[], false); Eval(19757, o is MulticastDelegate, false); Eval(19758, o is MulticastDelegate[], false); Eval(19759, o is IEmpty, false); Eval(19760, o is IEmpty[], false); Eval(19761, o is INotEmpty, false); Eval(19762, o is INotEmpty[], false); Eval(19763, o is IEmptyGen<int>, false); Eval(19764, o is IEmptyGen<int>[], false); Eval(19765, o is INotEmptyGen<int>, false); Eval(19766, o is INotEmptyGen<int>[], false); Eval(19767, o is SimpleDelegate, false); Eval(19768, o is SimpleDelegate[], false); Eval(19769, o is GenericDelegate<int>, false); Eval(19770, o is GenericDelegate<int>[], false); Eval(19771, o is EmptyClass, false); Eval(19772, o is EmptyClass[], false); Eval(19773, o is NotEmptyClass, false); Eval(19774, o is NotEmptyClass[], false); Eval(19775, o is EmptyClassGen<int>, false); Eval(19776, o is EmptyClassGen<int>[], false); Eval(19777, o is NotEmptyClassGen<Guid>, false); Eval(19778, o is NotEmptyClassGen<Guid>[], false); Eval(19779, o is NotEmptyClassConstrainedGen<object>, false); Eval(19780, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19781, o is NestedClass, false); Eval(19782, o is NestedClass[], false); Eval(19783, o is NestedClassGen<Decimal>, false); Eval(19784, o is NestedClassGen<Decimal>[], false); Eval(19785, o is ImplementOneInterfaceC, false); Eval(19786, o is ImplementOneInterfaceC[], false); Eval(19787, o is ImplementTwoInterfaceC, false); Eval(19788, o is ImplementTwoInterfaceC[], false); Eval(19789, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19790, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19791, o is ImplementTwoInterfaceGenC<int>, false); Eval(19792, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19793, o is ImplementAllInterfaceC<int>, false); Eval(19794, o is ImplementAllInterfaceC<int>[], false); Eval(19795, o is SealedClass, false); Eval(19796, o is SealedClass[], false); } { UIntPtr? v = default(UIntPtr?); ValueType o = v; Eval(19797, o is EmptyStruct, false); Eval(19798, o is EmptyStruct[], false); Eval(19799, o is EmptyStruct?, false); Eval(19800, o is EmptyStruct?[], false); Eval(19801, o is NotEmptyStruct, false); Eval(19802, o is NotEmptyStruct[], false); Eval(19803, o is NotEmptyStruct?, false); Eval(19804, o is NotEmptyStruct?[], false); Eval(19805, o is EmptyStructGen<int>, false); Eval(19806, o is EmptyStructGen<int>[], false); Eval(19807, o is EmptyStructGen<int>?, false); Eval(19808, o is EmptyStructGen<int>?[], false); Eval(19809, o is NotEmptyStructGen<Guid>, false); Eval(19810, o is NotEmptyStructGen<Guid>[], false); Eval(19811, o is NotEmptyStructGen<Guid>?, false); Eval(19812, o is NotEmptyStructGen<Guid>?[], false); Eval(19813, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(19814, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(19815, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(19816, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(19817, o is NestedStruct, false); Eval(19818, o is NestedStruct[], false); Eval(19819, o is NestedStruct?, false); Eval(19820, o is NestedStruct?[], false); Eval(19821, o is NestedStructGen<Decimal>, false); Eval(19822, o is NestedStructGen<Decimal>[], false); Eval(19823, o is NestedStructGen<Decimal>?, false); Eval(19824, o is NestedStructGen<Decimal>?[], false); Eval(19825, o is ExplicitFieldOffsetStruct, false); Eval(19826, o is ExplicitFieldOffsetStruct[], false); Eval(19827, o is ExplicitFieldOffsetStruct?, false); Eval(19828, o is ExplicitFieldOffsetStruct?[], false); Eval(19837, o is MarshalAsStruct, false); Eval(19838, o is MarshalAsStruct[], false); Eval(19839, o is MarshalAsStruct?, false); Eval(19840, o is MarshalAsStruct?[], false); Eval(19841, o is ImplementOneInterface, false); Eval(19842, o is ImplementOneInterface[], false); Eval(19843, o is ImplementOneInterface?, false); Eval(19844, o is ImplementOneInterface?[], false); Eval(19845, o is ImplementTwoInterface, false); Eval(19846, o is ImplementTwoInterface[], false); Eval(19847, o is ImplementTwoInterface?, false); Eval(19848, o is ImplementTwoInterface?[], false); Eval(19849, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(19850, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(19851, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(19852, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(19853, o is ImplementTwoInterfaceGen<int>, false); Eval(19854, o is ImplementTwoInterfaceGen<int>[], false); Eval(19855, o is ImplementTwoInterfaceGen<int>?, false); Eval(19856, o is ImplementTwoInterfaceGen<int>?[], false); Eval(19857, o is ImplementAllInterface<int>, false); Eval(19858, o is ImplementAllInterface<int>[], false); Eval(19859, o is ImplementAllInterface<int>?, false); Eval(19860, o is ImplementAllInterface<int>?[], false); Eval(19861, o is IntE, false); Eval(19862, o is IntE[], false); Eval(19863, o is IntE?, false); Eval(19864, o is IntE?[], false); Eval(19865, o is ByteE, false); Eval(19866, o is ByteE[], false); Eval(19867, o is ByteE?, false); Eval(19868, o is ByteE?[], false); Eval(19869, o is LongE, false); Eval(19870, o is LongE[], false); Eval(19871, o is LongE?, false); Eval(19872, o is LongE?[], false); Eval(19873, o is char, false); Eval(19874, o is char[], false); Eval(19875, o is char?, false); Eval(19876, o is char?[], false); Eval(19877, o is bool, false); Eval(19878, o is bool[], false); Eval(19879, o is bool?, false); Eval(19880, o is bool?[], false); Eval(19881, o is byte, false); Eval(19882, o is byte[], false); Eval(19883, o is byte?, false); Eval(19884, o is byte?[], false); Eval(19885, o is sbyte, false); Eval(19886, o is sbyte[], false); Eval(19887, o is sbyte?, false); Eval(19888, o is sbyte?[], false); Eval(19889, o is short, false); Eval(19890, o is short[], false); Eval(19891, o is short?, false); Eval(19892, o is short?[], false); Eval(19893, o is ushort, false); Eval(19894, o is ushort[], false); Eval(19895, o is ushort?, false); Eval(19896, o is ushort?[], false); Eval(19897, o is int, false); Eval(19898, o is int[], false); Eval(19899, o is int?, false); Eval(19900, o is int?[], false); Eval(19901, o is uint, false); Eval(19902, o is uint[], false); Eval(19903, o is uint?, false); Eval(19904, o is uint?[], false); Eval(19905, o is long, false); Eval(19906, o is long[], false); Eval(19907, o is long?, false); Eval(19908, o is long?[], false); Eval(19909, o is ulong, false); Eval(19910, o is ulong[], false); Eval(19911, o is ulong?, false); Eval(19912, o is ulong?[], false); Eval(19913, o is float, false); Eval(19914, o is float[], false); Eval(19915, o is float?, false); Eval(19916, o is float?[], false); Eval(19917, o is double, false); Eval(19918, o is double[], false); Eval(19919, o is double?, false); Eval(19920, o is double?[], false); Eval(19921, o is decimal, false); Eval(19922, o is decimal[], false); Eval(19923, o is decimal?, false); Eval(19924, o is decimal?[], false); Eval(19925, o is IntPtr, false); Eval(19926, o is IntPtr[], false); Eval(19927, o is IntPtr?, false); Eval(19928, o is IntPtr?[], false); Eval(19929, o is UIntPtr, false); Eval(19930, o is UIntPtr[], false); Eval(19931, o is UIntPtr?, false); Eval(19932, o is UIntPtr?[], false); Eval(19933, o is Guid, false); Eval(19934, o is Guid[], false); Eval(19935, o is Guid?, false); Eval(19936, o is Guid?[], false); Eval(19937, o is GCHandle, false); Eval(19938, o is GCHandle[], false); Eval(19939, o is GCHandle?, false); Eval(19940, o is GCHandle?[], false); Eval(19941, o is object, false); Eval(19942, o is object[], false); Eval(19943, o is string, false); Eval(19944, o is string[], false); Eval(19945, o is ValueType, false); Eval(19946, o is ValueType[], false); Eval(19947, o is Array, false); Eval(19948, o is Array[], false); Eval(19949, o is Enum, false); Eval(19950, o is Enum[], false); Eval(19951, o is Delegate, false); Eval(19952, o is Delegate[], false); Eval(19953, o is MulticastDelegate, false); Eval(19954, o is MulticastDelegate[], false); Eval(19955, o is IEmpty, false); Eval(19956, o is IEmpty[], false); Eval(19957, o is INotEmpty, false); Eval(19958, o is INotEmpty[], false); Eval(19959, o is IEmptyGen<int>, false); Eval(19960, o is IEmptyGen<int>[], false); Eval(19961, o is INotEmptyGen<int>, false); Eval(19962, o is INotEmptyGen<int>[], false); Eval(19963, o is SimpleDelegate, false); Eval(19964, o is SimpleDelegate[], false); Eval(19965, o is GenericDelegate<int>, false); Eval(19966, o is GenericDelegate<int>[], false); Eval(19967, o is EmptyClass, false); Eval(19968, o is EmptyClass[], false); Eval(19969, o is NotEmptyClass, false); Eval(19970, o is NotEmptyClass[], false); Eval(19971, o is EmptyClassGen<int>, false); Eval(19972, o is EmptyClassGen<int>[], false); Eval(19973, o is NotEmptyClassGen<Guid>, false); Eval(19974, o is NotEmptyClassGen<Guid>[], false); Eval(19975, o is NotEmptyClassConstrainedGen<object>, false); Eval(19976, o is NotEmptyClassConstrainedGen<object>[], false); Eval(19977, o is NestedClass, false); Eval(19978, o is NestedClass[], false); Eval(19979, o is NestedClassGen<Decimal>, false); Eval(19980, o is NestedClassGen<Decimal>[], false); Eval(19981, o is ImplementOneInterfaceC, false); Eval(19982, o is ImplementOneInterfaceC[], false); Eval(19983, o is ImplementTwoInterfaceC, false); Eval(19984, o is ImplementTwoInterfaceC[], false); Eval(19985, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(19986, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(19987, o is ImplementTwoInterfaceGenC<int>, false); Eval(19988, o is ImplementTwoInterfaceGenC<int>[], false); Eval(19989, o is ImplementAllInterfaceC<int>, false); Eval(19990, o is ImplementAllInterfaceC<int>[], false); Eval(19991, o is SealedClass, false); Eval(19992, o is SealedClass[], false); } } // end of test case 0034 private static void TestCase0035() { { Guid v = default(Guid); ValueType o = v; Eval(19993, o is EmptyStruct, false); Eval(19994, o is EmptyStruct[], false); Eval(19995, o is EmptyStruct?, false); Eval(19996, o is EmptyStruct?[], false); Eval(19997, o is NotEmptyStruct, false); Eval(19998, o is NotEmptyStruct[], false); Eval(19999, o is NotEmptyStruct?, false); Eval(20000, o is NotEmptyStruct?[], false); Eval(20001, o is EmptyStructGen<int>, false); Eval(20002, o is EmptyStructGen<int>[], false); Eval(20003, o is EmptyStructGen<int>?, false); Eval(20004, o is EmptyStructGen<int>?[], false); Eval(20005, o is NotEmptyStructGen<Guid>, false); Eval(20006, o is NotEmptyStructGen<Guid>[], false); Eval(20007, o is NotEmptyStructGen<Guid>?, false); Eval(20008, o is NotEmptyStructGen<Guid>?[], false); Eval(20009, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20010, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20011, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20012, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20013, o is NestedStruct, false); Eval(20014, o is NestedStruct[], false); Eval(20015, o is NestedStruct?, false); Eval(20016, o is NestedStruct?[], false); Eval(20017, o is NestedStructGen<Decimal>, false); Eval(20018, o is NestedStructGen<Decimal>[], false); Eval(20019, o is NestedStructGen<Decimal>?, false); Eval(20020, o is NestedStructGen<Decimal>?[], false); Eval(20021, o is ExplicitFieldOffsetStruct, false); Eval(20022, o is ExplicitFieldOffsetStruct[], false); Eval(20023, o is ExplicitFieldOffsetStruct?, false); Eval(20024, o is ExplicitFieldOffsetStruct?[], false); Eval(20033, o is MarshalAsStruct, false); Eval(20034, o is MarshalAsStruct[], false); Eval(20035, o is MarshalAsStruct?, false); Eval(20036, o is MarshalAsStruct?[], false); Eval(20037, o is ImplementOneInterface, false); Eval(20038, o is ImplementOneInterface[], false); Eval(20039, o is ImplementOneInterface?, false); Eval(20040, o is ImplementOneInterface?[], false); Eval(20041, o is ImplementTwoInterface, false); Eval(20042, o is ImplementTwoInterface[], false); Eval(20043, o is ImplementTwoInterface?, false); Eval(20044, o is ImplementTwoInterface?[], false); Eval(20045, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20046, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20047, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20048, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20049, o is ImplementTwoInterfaceGen<int>, false); Eval(20050, o is ImplementTwoInterfaceGen<int>[], false); Eval(20051, o is ImplementTwoInterfaceGen<int>?, false); Eval(20052, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20053, o is ImplementAllInterface<int>, false); Eval(20054, o is ImplementAllInterface<int>[], false); Eval(20055, o is ImplementAllInterface<int>?, false); Eval(20056, o is ImplementAllInterface<int>?[], false); Eval(20057, o is IntE, false); Eval(20058, o is IntE[], false); Eval(20059, o is IntE?, false); Eval(20060, o is IntE?[], false); Eval(20061, o is ByteE, false); Eval(20062, o is ByteE[], false); Eval(20063, o is ByteE?, false); Eval(20064, o is ByteE?[], false); Eval(20065, o is LongE, false); Eval(20066, o is LongE[], false); Eval(20067, o is LongE?, false); Eval(20068, o is LongE?[], false); Eval(20069, o is char, false); Eval(20070, o is char[], false); Eval(20071, o is char?, false); Eval(20072, o is char?[], false); Eval(20073, o is bool, false); Eval(20074, o is bool[], false); Eval(20075, o is bool?, false); Eval(20076, o is bool?[], false); Eval(20077, o is byte, false); Eval(20078, o is byte[], false); Eval(20079, o is byte?, false); Eval(20080, o is byte?[], false); Eval(20081, o is sbyte, false); Eval(20082, o is sbyte[], false); Eval(20083, o is sbyte?, false); Eval(20084, o is sbyte?[], false); Eval(20085, o is short, false); Eval(20086, o is short[], false); Eval(20087, o is short?, false); Eval(20088, o is short?[], false); Eval(20089, o is ushort, false); Eval(20090, o is ushort[], false); Eval(20091, o is ushort?, false); Eval(20092, o is ushort?[], false); Eval(20093, o is int, false); Eval(20094, o is int[], false); Eval(20095, o is int?, false); Eval(20096, o is int?[], false); Eval(20097, o is uint, false); Eval(20098, o is uint[], false); Eval(20099, o is uint?, false); Eval(20100, o is uint?[], false); Eval(20101, o is long, false); Eval(20102, o is long[], false); Eval(20103, o is long?, false); Eval(20104, o is long?[], false); Eval(20105, o is ulong, false); Eval(20106, o is ulong[], false); Eval(20107, o is ulong?, false); Eval(20108, o is ulong?[], false); Eval(20109, o is float, false); Eval(20110, o is float[], false); Eval(20111, o is float?, false); Eval(20112, o is float?[], false); Eval(20113, o is double, false); Eval(20114, o is double[], false); Eval(20115, o is double?, false); Eval(20116, o is double?[], false); Eval(20117, o is decimal, false); Eval(20118, o is decimal[], false); Eval(20119, o is decimal?, false); Eval(20120, o is decimal?[], false); Eval(20121, o is IntPtr, false); Eval(20122, o is IntPtr[], false); Eval(20123, o is IntPtr?, false); Eval(20124, o is IntPtr?[], false); Eval(20125, o is UIntPtr, false); Eval(20126, o is UIntPtr[], false); Eval(20127, o is UIntPtr?, false); Eval(20128, o is UIntPtr?[], false); Eval(20129, o is Guid, true); Eval(20130, o is Guid[], false); Eval(20131, o is Guid?, true); Eval(20132, o is Guid?[], false); Eval(20133, o is GCHandle, false); Eval(20134, o is GCHandle[], false); Eval(20135, o is GCHandle?, false); Eval(20136, o is GCHandle?[], false); Eval(20137, o is object, true); Eval(20138, o is object[], false); Eval(20139, o is string, false); Eval(20140, o is string[], false); Eval(20141, o is ValueType, true); Eval(20142, o is ValueType[], false); Eval(20143, o is Array, false); Eval(20144, o is Array[], false); Eval(20145, o is Enum, false); Eval(20146, o is Enum[], false); Eval(20147, o is Delegate, false); Eval(20148, o is Delegate[], false); Eval(20149, o is MulticastDelegate, false); Eval(20150, o is MulticastDelegate[], false); Eval(20151, o is IEmpty, false); Eval(20152, o is IEmpty[], false); Eval(20153, o is INotEmpty, false); Eval(20154, o is INotEmpty[], false); Eval(20155, o is IEmptyGen<int>, false); Eval(20156, o is IEmptyGen<int>[], false); Eval(20157, o is INotEmptyGen<int>, false); Eval(20158, o is INotEmptyGen<int>[], false); Eval(20159, o is SimpleDelegate, false); Eval(20160, o is SimpleDelegate[], false); Eval(20161, o is GenericDelegate<int>, false); Eval(20162, o is GenericDelegate<int>[], false); Eval(20163, o is EmptyClass, false); Eval(20164, o is EmptyClass[], false); Eval(20165, o is NotEmptyClass, false); Eval(20166, o is NotEmptyClass[], false); Eval(20167, o is EmptyClassGen<int>, false); Eval(20168, o is EmptyClassGen<int>[], false); Eval(20169, o is NotEmptyClassGen<Guid>, false); Eval(20170, o is NotEmptyClassGen<Guid>[], false); Eval(20171, o is NotEmptyClassConstrainedGen<object>, false); Eval(20172, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20173, o is NestedClass, false); Eval(20174, o is NestedClass[], false); Eval(20175, o is NestedClassGen<Decimal>, false); Eval(20176, o is NestedClassGen<Decimal>[], false); Eval(20177, o is ImplementOneInterfaceC, false); Eval(20178, o is ImplementOneInterfaceC[], false); Eval(20179, o is ImplementTwoInterfaceC, false); Eval(20180, o is ImplementTwoInterfaceC[], false); Eval(20181, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20182, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20183, o is ImplementTwoInterfaceGenC<int>, false); Eval(20184, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20185, o is ImplementAllInterfaceC<int>, false); Eval(20186, o is ImplementAllInterfaceC<int>[], false); Eval(20187, o is SealedClass, false); Eval(20188, o is SealedClass[], false); } { Guid? v = default(Guid); ValueType o = v; Eval(20189, o is EmptyStruct, false); Eval(20190, o is EmptyStruct[], false); Eval(20191, o is EmptyStruct?, false); Eval(20192, o is EmptyStruct?[], false); Eval(20193, o is NotEmptyStruct, false); Eval(20194, o is NotEmptyStruct[], false); Eval(20195, o is NotEmptyStruct?, false); Eval(20196, o is NotEmptyStruct?[], false); Eval(20197, o is EmptyStructGen<int>, false); Eval(20198, o is EmptyStructGen<int>[], false); Eval(20199, o is EmptyStructGen<int>?, false); Eval(20200, o is EmptyStructGen<int>?[], false); Eval(20201, o is NotEmptyStructGen<Guid>, false); Eval(20202, o is NotEmptyStructGen<Guid>[], false); Eval(20203, o is NotEmptyStructGen<Guid>?, false); Eval(20204, o is NotEmptyStructGen<Guid>?[], false); Eval(20205, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20206, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20207, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20208, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20209, o is NestedStruct, false); Eval(20210, o is NestedStruct[], false); Eval(20211, o is NestedStruct?, false); Eval(20212, o is NestedStruct?[], false); Eval(20213, o is NestedStructGen<Decimal>, false); Eval(20214, o is NestedStructGen<Decimal>[], false); Eval(20215, o is NestedStructGen<Decimal>?, false); Eval(20216, o is NestedStructGen<Decimal>?[], false); Eval(20217, o is ExplicitFieldOffsetStruct, false); Eval(20218, o is ExplicitFieldOffsetStruct[], false); Eval(20219, o is ExplicitFieldOffsetStruct?, false); Eval(20220, o is ExplicitFieldOffsetStruct?[], false); Eval(20229, o is MarshalAsStruct, false); Eval(20230, o is MarshalAsStruct[], false); Eval(20231, o is MarshalAsStruct?, false); Eval(20232, o is MarshalAsStruct?[], false); Eval(20233, o is ImplementOneInterface, false); Eval(20234, o is ImplementOneInterface[], false); Eval(20235, o is ImplementOneInterface?, false); Eval(20236, o is ImplementOneInterface?[], false); Eval(20237, o is ImplementTwoInterface, false); Eval(20238, o is ImplementTwoInterface[], false); Eval(20239, o is ImplementTwoInterface?, false); Eval(20240, o is ImplementTwoInterface?[], false); Eval(20241, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20242, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20243, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20244, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20245, o is ImplementTwoInterfaceGen<int>, false); Eval(20246, o is ImplementTwoInterfaceGen<int>[], false); Eval(20247, o is ImplementTwoInterfaceGen<int>?, false); Eval(20248, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20249, o is ImplementAllInterface<int>, false); Eval(20250, o is ImplementAllInterface<int>[], false); Eval(20251, o is ImplementAllInterface<int>?, false); Eval(20252, o is ImplementAllInterface<int>?[], false); Eval(20253, o is IntE, false); Eval(20254, o is IntE[], false); Eval(20255, o is IntE?, false); Eval(20256, o is IntE?[], false); Eval(20257, o is ByteE, false); Eval(20258, o is ByteE[], false); Eval(20259, o is ByteE?, false); Eval(20260, o is ByteE?[], false); Eval(20261, o is LongE, false); Eval(20262, o is LongE[], false); Eval(20263, o is LongE?, false); Eval(20264, o is LongE?[], false); Eval(20265, o is char, false); Eval(20266, o is char[], false); Eval(20267, o is char?, false); Eval(20268, o is char?[], false); Eval(20269, o is bool, false); Eval(20270, o is bool[], false); Eval(20271, o is bool?, false); Eval(20272, o is bool?[], false); Eval(20273, o is byte, false); Eval(20274, o is byte[], false); Eval(20275, o is byte?, false); Eval(20276, o is byte?[], false); Eval(20277, o is sbyte, false); Eval(20278, o is sbyte[], false); Eval(20279, o is sbyte?, false); Eval(20280, o is sbyte?[], false); Eval(20281, o is short, false); Eval(20282, o is short[], false); Eval(20283, o is short?, false); Eval(20284, o is short?[], false); Eval(20285, o is ushort, false); Eval(20286, o is ushort[], false); Eval(20287, o is ushort?, false); Eval(20288, o is ushort?[], false); Eval(20289, o is int, false); Eval(20290, o is int[], false); Eval(20291, o is int?, false); Eval(20292, o is int?[], false); Eval(20293, o is uint, false); Eval(20294, o is uint[], false); Eval(20295, o is uint?, false); Eval(20296, o is uint?[], false); Eval(20297, o is long, false); Eval(20298, o is long[], false); Eval(20299, o is long?, false); Eval(20300, o is long?[], false); Eval(20301, o is ulong, false); Eval(20302, o is ulong[], false); Eval(20303, o is ulong?, false); Eval(20304, o is ulong?[], false); Eval(20305, o is float, false); Eval(20306, o is float[], false); Eval(20307, o is float?, false); Eval(20308, o is float?[], false); Eval(20309, o is double, false); Eval(20310, o is double[], false); Eval(20311, o is double?, false); Eval(20312, o is double?[], false); Eval(20313, o is decimal, false); Eval(20314, o is decimal[], false); Eval(20315, o is decimal?, false); Eval(20316, o is decimal?[], false); Eval(20317, o is IntPtr, false); Eval(20318, o is IntPtr[], false); Eval(20319, o is IntPtr?, false); Eval(20320, o is IntPtr?[], false); Eval(20321, o is UIntPtr, false); Eval(20322, o is UIntPtr[], false); Eval(20323, o is UIntPtr?, false); Eval(20324, o is UIntPtr?[], false); Eval(20325, o is Guid, true); Eval(20326, o is Guid[], false); Eval(20327, o is Guid?, true); Eval(20328, o is Guid?[], false); Eval(20329, o is GCHandle, false); Eval(20330, o is GCHandle[], false); Eval(20331, o is GCHandle?, false); Eval(20332, o is GCHandle?[], false); Eval(20333, o is object, true); Eval(20334, o is object[], false); Eval(20335, o is string, false); Eval(20336, o is string[], false); Eval(20337, o is ValueType, true); Eval(20338, o is ValueType[], false); Eval(20339, o is Array, false); Eval(20340, o is Array[], false); Eval(20341, o is Enum, false); Eval(20342, o is Enum[], false); Eval(20343, o is Delegate, false); Eval(20344, o is Delegate[], false); Eval(20345, o is MulticastDelegate, false); Eval(20346, o is MulticastDelegate[], false); Eval(20347, o is IEmpty, false); Eval(20348, o is IEmpty[], false); Eval(20349, o is INotEmpty, false); Eval(20350, o is INotEmpty[], false); Eval(20351, o is IEmptyGen<int>, false); Eval(20352, o is IEmptyGen<int>[], false); Eval(20353, o is INotEmptyGen<int>, false); Eval(20354, o is INotEmptyGen<int>[], false); Eval(20355, o is SimpleDelegate, false); Eval(20356, o is SimpleDelegate[], false); Eval(20357, o is GenericDelegate<int>, false); Eval(20358, o is GenericDelegate<int>[], false); Eval(20359, o is EmptyClass, false); Eval(20360, o is EmptyClass[], false); Eval(20361, o is NotEmptyClass, false); Eval(20362, o is NotEmptyClass[], false); Eval(20363, o is EmptyClassGen<int>, false); Eval(20364, o is EmptyClassGen<int>[], false); Eval(20365, o is NotEmptyClassGen<Guid>, false); Eval(20366, o is NotEmptyClassGen<Guid>[], false); Eval(20367, o is NotEmptyClassConstrainedGen<object>, false); Eval(20368, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20369, o is NestedClass, false); Eval(20370, o is NestedClass[], false); Eval(20371, o is NestedClassGen<Decimal>, false); Eval(20372, o is NestedClassGen<Decimal>[], false); Eval(20373, o is ImplementOneInterfaceC, false); Eval(20374, o is ImplementOneInterfaceC[], false); Eval(20375, o is ImplementTwoInterfaceC, false); Eval(20376, o is ImplementTwoInterfaceC[], false); Eval(20377, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20378, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20379, o is ImplementTwoInterfaceGenC<int>, false); Eval(20380, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20381, o is ImplementAllInterfaceC<int>, false); Eval(20382, o is ImplementAllInterfaceC<int>[], false); Eval(20383, o is SealedClass, false); Eval(20384, o is SealedClass[], false); } { Guid? v = default(Guid?); ValueType o = v; Eval(20385, o is EmptyStruct, false); Eval(20386, o is EmptyStruct[], false); Eval(20387, o is EmptyStruct?, false); Eval(20388, o is EmptyStruct?[], false); Eval(20389, o is NotEmptyStruct, false); Eval(20390, o is NotEmptyStruct[], false); Eval(20391, o is NotEmptyStruct?, false); Eval(20392, o is NotEmptyStruct?[], false); Eval(20393, o is EmptyStructGen<int>, false); Eval(20394, o is EmptyStructGen<int>[], false); Eval(20395, o is EmptyStructGen<int>?, false); Eval(20396, o is EmptyStructGen<int>?[], false); Eval(20397, o is NotEmptyStructGen<Guid>, false); Eval(20398, o is NotEmptyStructGen<Guid>[], false); Eval(20399, o is NotEmptyStructGen<Guid>?, false); Eval(20400, o is NotEmptyStructGen<Guid>?[], false); Eval(20401, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20402, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20403, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20404, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20405, o is NestedStruct, false); Eval(20406, o is NestedStruct[], false); Eval(20407, o is NestedStruct?, false); Eval(20408, o is NestedStruct?[], false); Eval(20409, o is NestedStructGen<Decimal>, false); Eval(20410, o is NestedStructGen<Decimal>[], false); Eval(20411, o is NestedStructGen<Decimal>?, false); Eval(20412, o is NestedStructGen<Decimal>?[], false); Eval(20413, o is ExplicitFieldOffsetStruct, false); Eval(20414, o is ExplicitFieldOffsetStruct[], false); Eval(20415, o is ExplicitFieldOffsetStruct?, false); Eval(20416, o is ExplicitFieldOffsetStruct?[], false); Eval(20425, o is MarshalAsStruct, false); Eval(20426, o is MarshalAsStruct[], false); Eval(20427, o is MarshalAsStruct?, false); Eval(20428, o is MarshalAsStruct?[], false); Eval(20429, o is ImplementOneInterface, false); Eval(20430, o is ImplementOneInterface[], false); Eval(20431, o is ImplementOneInterface?, false); Eval(20432, o is ImplementOneInterface?[], false); Eval(20433, o is ImplementTwoInterface, false); Eval(20434, o is ImplementTwoInterface[], false); Eval(20435, o is ImplementTwoInterface?, false); Eval(20436, o is ImplementTwoInterface?[], false); Eval(20437, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20438, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20439, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20440, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20441, o is ImplementTwoInterfaceGen<int>, false); Eval(20442, o is ImplementTwoInterfaceGen<int>[], false); Eval(20443, o is ImplementTwoInterfaceGen<int>?, false); Eval(20444, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20445, o is ImplementAllInterface<int>, false); Eval(20446, o is ImplementAllInterface<int>[], false); Eval(20447, o is ImplementAllInterface<int>?, false); Eval(20448, o is ImplementAllInterface<int>?[], false); Eval(20449, o is IntE, false); Eval(20450, o is IntE[], false); Eval(20451, o is IntE?, false); Eval(20452, o is IntE?[], false); Eval(20453, o is ByteE, false); Eval(20454, o is ByteE[], false); Eval(20455, o is ByteE?, false); Eval(20456, o is ByteE?[], false); Eval(20457, o is LongE, false); Eval(20458, o is LongE[], false); Eval(20459, o is LongE?, false); Eval(20460, o is LongE?[], false); Eval(20461, o is char, false); Eval(20462, o is char[], false); Eval(20463, o is char?, false); Eval(20464, o is char?[], false); Eval(20465, o is bool, false); Eval(20466, o is bool[], false); Eval(20467, o is bool?, false); Eval(20468, o is bool?[], false); Eval(20469, o is byte, false); Eval(20470, o is byte[], false); Eval(20471, o is byte?, false); Eval(20472, o is byte?[], false); Eval(20473, o is sbyte, false); Eval(20474, o is sbyte[], false); Eval(20475, o is sbyte?, false); Eval(20476, o is sbyte?[], false); Eval(20477, o is short, false); Eval(20478, o is short[], false); Eval(20479, o is short?, false); Eval(20480, o is short?[], false); Eval(20481, o is ushort, false); Eval(20482, o is ushort[], false); Eval(20483, o is ushort?, false); Eval(20484, o is ushort?[], false); Eval(20485, o is int, false); Eval(20486, o is int[], false); Eval(20487, o is int?, false); Eval(20488, o is int?[], false); Eval(20489, o is uint, false); Eval(20490, o is uint[], false); Eval(20491, o is uint?, false); Eval(20492, o is uint?[], false); Eval(20493, o is long, false); Eval(20494, o is long[], false); Eval(20495, o is long?, false); Eval(20496, o is long?[], false); Eval(20497, o is ulong, false); Eval(20498, o is ulong[], false); Eval(20499, o is ulong?, false); Eval(20500, o is ulong?[], false); Eval(20501, o is float, false); Eval(20502, o is float[], false); Eval(20503, o is float?, false); Eval(20504, o is float?[], false); Eval(20505, o is double, false); Eval(20506, o is double[], false); Eval(20507, o is double?, false); Eval(20508, o is double?[], false); Eval(20509, o is decimal, false); Eval(20510, o is decimal[], false); Eval(20511, o is decimal?, false); Eval(20512, o is decimal?[], false); Eval(20513, o is IntPtr, false); Eval(20514, o is IntPtr[], false); Eval(20515, o is IntPtr?, false); Eval(20516, o is IntPtr?[], false); Eval(20517, o is UIntPtr, false); Eval(20518, o is UIntPtr[], false); Eval(20519, o is UIntPtr?, false); Eval(20520, o is UIntPtr?[], false); Eval(20521, o is Guid, false); Eval(20522, o is Guid[], false); Eval(20523, o is Guid?, false); Eval(20524, o is Guid?[], false); Eval(20525, o is GCHandle, false); Eval(20526, o is GCHandle[], false); Eval(20527, o is GCHandle?, false); Eval(20528, o is GCHandle?[], false); Eval(20529, o is object, false); Eval(20530, o is object[], false); Eval(20531, o is string, false); Eval(20532, o is string[], false); Eval(20533, o is ValueType, false); Eval(20534, o is ValueType[], false); Eval(20535, o is Array, false); Eval(20536, o is Array[], false); Eval(20537, o is Enum, false); Eval(20538, o is Enum[], false); Eval(20539, o is Delegate, false); Eval(20540, o is Delegate[], false); Eval(20541, o is MulticastDelegate, false); Eval(20542, o is MulticastDelegate[], false); Eval(20543, o is IEmpty, false); Eval(20544, o is IEmpty[], false); Eval(20545, o is INotEmpty, false); Eval(20546, o is INotEmpty[], false); Eval(20547, o is IEmptyGen<int>, false); Eval(20548, o is IEmptyGen<int>[], false); Eval(20549, o is INotEmptyGen<int>, false); Eval(20550, o is INotEmptyGen<int>[], false); Eval(20551, o is SimpleDelegate, false); Eval(20552, o is SimpleDelegate[], false); Eval(20553, o is GenericDelegate<int>, false); Eval(20554, o is GenericDelegate<int>[], false); Eval(20555, o is EmptyClass, false); Eval(20556, o is EmptyClass[], false); Eval(20557, o is NotEmptyClass, false); Eval(20558, o is NotEmptyClass[], false); Eval(20559, o is EmptyClassGen<int>, false); Eval(20560, o is EmptyClassGen<int>[], false); Eval(20561, o is NotEmptyClassGen<Guid>, false); Eval(20562, o is NotEmptyClassGen<Guid>[], false); Eval(20563, o is NotEmptyClassConstrainedGen<object>, false); Eval(20564, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20565, o is NestedClass, false); Eval(20566, o is NestedClass[], false); Eval(20567, o is NestedClassGen<Decimal>, false); Eval(20568, o is NestedClassGen<Decimal>[], false); Eval(20569, o is ImplementOneInterfaceC, false); Eval(20570, o is ImplementOneInterfaceC[], false); Eval(20571, o is ImplementTwoInterfaceC, false); Eval(20572, o is ImplementTwoInterfaceC[], false); Eval(20573, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20574, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20575, o is ImplementTwoInterfaceGenC<int>, false); Eval(20576, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20577, o is ImplementAllInterfaceC<int>, false); Eval(20578, o is ImplementAllInterfaceC<int>[], false); Eval(20579, o is SealedClass, false); Eval(20580, o is SealedClass[], false); } } // end of test case 0035 private static void TestCase0036() { { GCHandle v = default(GCHandle); ValueType o = v; Eval(20581, o is EmptyStruct, false); Eval(20582, o is EmptyStruct[], false); Eval(20583, o is EmptyStruct?, false); Eval(20584, o is EmptyStruct?[], false); Eval(20585, o is NotEmptyStruct, false); Eval(20586, o is NotEmptyStruct[], false); Eval(20587, o is NotEmptyStruct?, false); Eval(20588, o is NotEmptyStruct?[], false); Eval(20589, o is EmptyStructGen<int>, false); Eval(20590, o is EmptyStructGen<int>[], false); Eval(20591, o is EmptyStructGen<int>?, false); Eval(20592, o is EmptyStructGen<int>?[], false); Eval(20593, o is NotEmptyStructGen<Guid>, false); Eval(20594, o is NotEmptyStructGen<Guid>[], false); Eval(20595, o is NotEmptyStructGen<Guid>?, false); Eval(20596, o is NotEmptyStructGen<Guid>?[], false); Eval(20597, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20598, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20599, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20600, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20601, o is NestedStruct, false); Eval(20602, o is NestedStruct[], false); Eval(20603, o is NestedStruct?, false); Eval(20604, o is NestedStruct?[], false); Eval(20605, o is NestedStructGen<Decimal>, false); Eval(20606, o is NestedStructGen<Decimal>[], false); Eval(20607, o is NestedStructGen<Decimal>?, false); Eval(20608, o is NestedStructGen<Decimal>?[], false); Eval(20609, o is ExplicitFieldOffsetStruct, false); Eval(20610, o is ExplicitFieldOffsetStruct[], false); Eval(20611, o is ExplicitFieldOffsetStruct?, false); Eval(20612, o is ExplicitFieldOffsetStruct?[], false); Eval(20621, o is MarshalAsStruct, false); Eval(20622, o is MarshalAsStruct[], false); Eval(20623, o is MarshalAsStruct?, false); Eval(20624, o is MarshalAsStruct?[], false); Eval(20625, o is ImplementOneInterface, false); Eval(20626, o is ImplementOneInterface[], false); Eval(20627, o is ImplementOneInterface?, false); Eval(20628, o is ImplementOneInterface?[], false); Eval(20629, o is ImplementTwoInterface, false); Eval(20630, o is ImplementTwoInterface[], false); Eval(20631, o is ImplementTwoInterface?, false); Eval(20632, o is ImplementTwoInterface?[], false); Eval(20633, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20634, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20635, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20636, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20637, o is ImplementTwoInterfaceGen<int>, false); Eval(20638, o is ImplementTwoInterfaceGen<int>[], false); Eval(20639, o is ImplementTwoInterfaceGen<int>?, false); Eval(20640, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20641, o is ImplementAllInterface<int>, false); Eval(20642, o is ImplementAllInterface<int>[], false); Eval(20643, o is ImplementAllInterface<int>?, false); Eval(20644, o is ImplementAllInterface<int>?[], false); Eval(20645, o is IntE, false); Eval(20646, o is IntE[], false); Eval(20647, o is IntE?, false); Eval(20648, o is IntE?[], false); Eval(20649, o is ByteE, false); Eval(20650, o is ByteE[], false); Eval(20651, o is ByteE?, false); Eval(20652, o is ByteE?[], false); Eval(20653, o is LongE, false); Eval(20654, o is LongE[], false); Eval(20655, o is LongE?, false); Eval(20656, o is LongE?[], false); Eval(20657, o is char, false); Eval(20658, o is char[], false); Eval(20659, o is char?, false); Eval(20660, o is char?[], false); Eval(20661, o is bool, false); Eval(20662, o is bool[], false); Eval(20663, o is bool?, false); Eval(20664, o is bool?[], false); Eval(20665, o is byte, false); Eval(20666, o is byte[], false); Eval(20667, o is byte?, false); Eval(20668, o is byte?[], false); Eval(20669, o is sbyte, false); Eval(20670, o is sbyte[], false); Eval(20671, o is sbyte?, false); Eval(20672, o is sbyte?[], false); Eval(20673, o is short, false); Eval(20674, o is short[], false); Eval(20675, o is short?, false); Eval(20676, o is short?[], false); Eval(20677, o is ushort, false); Eval(20678, o is ushort[], false); Eval(20679, o is ushort?, false); Eval(20680, o is ushort?[], false); Eval(20681, o is int, false); Eval(20682, o is int[], false); Eval(20683, o is int?, false); Eval(20684, o is int?[], false); Eval(20685, o is uint, false); Eval(20686, o is uint[], false); Eval(20687, o is uint?, false); Eval(20688, o is uint?[], false); Eval(20689, o is long, false); Eval(20690, o is long[], false); Eval(20691, o is long?, false); Eval(20692, o is long?[], false); Eval(20693, o is ulong, false); Eval(20694, o is ulong[], false); Eval(20695, o is ulong?, false); Eval(20696, o is ulong?[], false); Eval(20697, o is float, false); Eval(20698, o is float[], false); Eval(20699, o is float?, false); Eval(20700, o is float?[], false); Eval(20701, o is double, false); Eval(20702, o is double[], false); Eval(20703, o is double?, false); Eval(20704, o is double?[], false); Eval(20705, o is decimal, false); Eval(20706, o is decimal[], false); Eval(20707, o is decimal?, false); Eval(20708, o is decimal?[], false); Eval(20709, o is IntPtr, false); Eval(20710, o is IntPtr[], false); Eval(20711, o is IntPtr?, false); Eval(20712, o is IntPtr?[], false); Eval(20713, o is UIntPtr, false); Eval(20714, o is UIntPtr[], false); Eval(20715, o is UIntPtr?, false); Eval(20716, o is UIntPtr?[], false); Eval(20717, o is Guid, false); Eval(20718, o is Guid[], false); Eval(20719, o is Guid?, false); Eval(20720, o is Guid?[], false); Eval(20721, o is GCHandle, true); Eval(20722, o is GCHandle[], false); Eval(20723, o is GCHandle?, true); Eval(20724, o is GCHandle?[], false); Eval(20725, o is object, true); Eval(20726, o is object[], false); Eval(20727, o is string, false); Eval(20728, o is string[], false); Eval(20729, o is ValueType, true); Eval(20730, o is ValueType[], false); Eval(20731, o is Array, false); Eval(20732, o is Array[], false); Eval(20733, o is Enum, false); Eval(20734, o is Enum[], false); Eval(20735, o is Delegate, false); Eval(20736, o is Delegate[], false); Eval(20737, o is MulticastDelegate, false); Eval(20738, o is MulticastDelegate[], false); Eval(20739, o is IEmpty, false); Eval(20740, o is IEmpty[], false); Eval(20741, o is INotEmpty, false); Eval(20742, o is INotEmpty[], false); Eval(20743, o is IEmptyGen<int>, false); Eval(20744, o is IEmptyGen<int>[], false); Eval(20745, o is INotEmptyGen<int>, false); Eval(20746, o is INotEmptyGen<int>[], false); Eval(20747, o is SimpleDelegate, false); Eval(20748, o is SimpleDelegate[], false); Eval(20749, o is GenericDelegate<int>, false); Eval(20750, o is GenericDelegate<int>[], false); Eval(20751, o is EmptyClass, false); Eval(20752, o is EmptyClass[], false); Eval(20753, o is NotEmptyClass, false); Eval(20754, o is NotEmptyClass[], false); Eval(20755, o is EmptyClassGen<int>, false); Eval(20756, o is EmptyClassGen<int>[], false); Eval(20757, o is NotEmptyClassGen<Guid>, false); Eval(20758, o is NotEmptyClassGen<Guid>[], false); Eval(20759, o is NotEmptyClassConstrainedGen<object>, false); Eval(20760, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20761, o is NestedClass, false); Eval(20762, o is NestedClass[], false); Eval(20763, o is NestedClassGen<Decimal>, false); Eval(20764, o is NestedClassGen<Decimal>[], false); Eval(20765, o is ImplementOneInterfaceC, false); Eval(20766, o is ImplementOneInterfaceC[], false); Eval(20767, o is ImplementTwoInterfaceC, false); Eval(20768, o is ImplementTwoInterfaceC[], false); Eval(20769, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20770, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20771, o is ImplementTwoInterfaceGenC<int>, false); Eval(20772, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20773, o is ImplementAllInterfaceC<int>, false); Eval(20774, o is ImplementAllInterfaceC<int>[], false); Eval(20775, o is SealedClass, false); Eval(20776, o is SealedClass[], false); } { GCHandle? v = default(GCHandle); ValueType o = v; Eval(20777, o is EmptyStruct, false); Eval(20778, o is EmptyStruct[], false); Eval(20779, o is EmptyStruct?, false); Eval(20780, o is EmptyStruct?[], false); Eval(20781, o is NotEmptyStruct, false); Eval(20782, o is NotEmptyStruct[], false); Eval(20783, o is NotEmptyStruct?, false); Eval(20784, o is NotEmptyStruct?[], false); Eval(20785, o is EmptyStructGen<int>, false); Eval(20786, o is EmptyStructGen<int>[], false); Eval(20787, o is EmptyStructGen<int>?, false); Eval(20788, o is EmptyStructGen<int>?[], false); Eval(20789, o is NotEmptyStructGen<Guid>, false); Eval(20790, o is NotEmptyStructGen<Guid>[], false); Eval(20791, o is NotEmptyStructGen<Guid>?, false); Eval(20792, o is NotEmptyStructGen<Guid>?[], false); Eval(20793, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20794, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20795, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20796, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20797, o is NestedStruct, false); Eval(20798, o is NestedStruct[], false); Eval(20799, o is NestedStruct?, false); Eval(20800, o is NestedStruct?[], false); Eval(20801, o is NestedStructGen<Decimal>, false); Eval(20802, o is NestedStructGen<Decimal>[], false); Eval(20803, o is NestedStructGen<Decimal>?, false); Eval(20804, o is NestedStructGen<Decimal>?[], false); Eval(20805, o is ExplicitFieldOffsetStruct, false); Eval(20806, o is ExplicitFieldOffsetStruct[], false); Eval(20807, o is ExplicitFieldOffsetStruct?, false); Eval(20808, o is ExplicitFieldOffsetStruct?[], false); Eval(20817, o is MarshalAsStruct, false); Eval(20818, o is MarshalAsStruct[], false); Eval(20819, o is MarshalAsStruct?, false); Eval(20820, o is MarshalAsStruct?[], false); Eval(20821, o is ImplementOneInterface, false); Eval(20822, o is ImplementOneInterface[], false); Eval(20823, o is ImplementOneInterface?, false); Eval(20824, o is ImplementOneInterface?[], false); Eval(20825, o is ImplementTwoInterface, false); Eval(20826, o is ImplementTwoInterface[], false); Eval(20827, o is ImplementTwoInterface?, false); Eval(20828, o is ImplementTwoInterface?[], false); Eval(20829, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(20830, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(20831, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(20832, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(20833, o is ImplementTwoInterfaceGen<int>, false); Eval(20834, o is ImplementTwoInterfaceGen<int>[], false); Eval(20835, o is ImplementTwoInterfaceGen<int>?, false); Eval(20836, o is ImplementTwoInterfaceGen<int>?[], false); Eval(20837, o is ImplementAllInterface<int>, false); Eval(20838, o is ImplementAllInterface<int>[], false); Eval(20839, o is ImplementAllInterface<int>?, false); Eval(20840, o is ImplementAllInterface<int>?[], false); Eval(20841, o is IntE, false); Eval(20842, o is IntE[], false); Eval(20843, o is IntE?, false); Eval(20844, o is IntE?[], false); Eval(20845, o is ByteE, false); Eval(20846, o is ByteE[], false); Eval(20847, o is ByteE?, false); Eval(20848, o is ByteE?[], false); Eval(20849, o is LongE, false); Eval(20850, o is LongE[], false); Eval(20851, o is LongE?, false); Eval(20852, o is LongE?[], false); Eval(20853, o is char, false); Eval(20854, o is char[], false); Eval(20855, o is char?, false); Eval(20856, o is char?[], false); Eval(20857, o is bool, false); Eval(20858, o is bool[], false); Eval(20859, o is bool?, false); Eval(20860, o is bool?[], false); Eval(20861, o is byte, false); Eval(20862, o is byte[], false); Eval(20863, o is byte?, false); Eval(20864, o is byte?[], false); Eval(20865, o is sbyte, false); Eval(20866, o is sbyte[], false); Eval(20867, o is sbyte?, false); Eval(20868, o is sbyte?[], false); Eval(20869, o is short, false); Eval(20870, o is short[], false); Eval(20871, o is short?, false); Eval(20872, o is short?[], false); Eval(20873, o is ushort, false); Eval(20874, o is ushort[], false); Eval(20875, o is ushort?, false); Eval(20876, o is ushort?[], false); Eval(20877, o is int, false); Eval(20878, o is int[], false); Eval(20879, o is int?, false); Eval(20880, o is int?[], false); Eval(20881, o is uint, false); Eval(20882, o is uint[], false); Eval(20883, o is uint?, false); Eval(20884, o is uint?[], false); Eval(20885, o is long, false); Eval(20886, o is long[], false); Eval(20887, o is long?, false); Eval(20888, o is long?[], false); Eval(20889, o is ulong, false); Eval(20890, o is ulong[], false); Eval(20891, o is ulong?, false); Eval(20892, o is ulong?[], false); Eval(20893, o is float, false); Eval(20894, o is float[], false); Eval(20895, o is float?, false); Eval(20896, o is float?[], false); Eval(20897, o is double, false); Eval(20898, o is double[], false); Eval(20899, o is double?, false); Eval(20900, o is double?[], false); Eval(20901, o is decimal, false); Eval(20902, o is decimal[], false); Eval(20903, o is decimal?, false); Eval(20904, o is decimal?[], false); Eval(20905, o is IntPtr, false); Eval(20906, o is IntPtr[], false); Eval(20907, o is IntPtr?, false); Eval(20908, o is IntPtr?[], false); Eval(20909, o is UIntPtr, false); Eval(20910, o is UIntPtr[], false); Eval(20911, o is UIntPtr?, false); Eval(20912, o is UIntPtr?[], false); Eval(20913, o is Guid, false); Eval(20914, o is Guid[], false); Eval(20915, o is Guid?, false); Eval(20916, o is Guid?[], false); Eval(20917, o is GCHandle, true); Eval(20918, o is GCHandle[], false); Eval(20919, o is GCHandle?, true); Eval(20920, o is GCHandle?[], false); Eval(20921, o is object, true); Eval(20922, o is object[], false); Eval(20923, o is string, false); Eval(20924, o is string[], false); Eval(20925, o is ValueType, true); Eval(20926, o is ValueType[], false); Eval(20927, o is Array, false); Eval(20928, o is Array[], false); Eval(20929, o is Enum, false); Eval(20930, o is Enum[], false); Eval(20931, o is Delegate, false); Eval(20932, o is Delegate[], false); Eval(20933, o is MulticastDelegate, false); Eval(20934, o is MulticastDelegate[], false); Eval(20935, o is IEmpty, false); Eval(20936, o is IEmpty[], false); Eval(20937, o is INotEmpty, false); Eval(20938, o is INotEmpty[], false); Eval(20939, o is IEmptyGen<int>, false); Eval(20940, o is IEmptyGen<int>[], false); Eval(20941, o is INotEmptyGen<int>, false); Eval(20942, o is INotEmptyGen<int>[], false); Eval(20943, o is SimpleDelegate, false); Eval(20944, o is SimpleDelegate[], false); Eval(20945, o is GenericDelegate<int>, false); Eval(20946, o is GenericDelegate<int>[], false); Eval(20947, o is EmptyClass, false); Eval(20948, o is EmptyClass[], false); Eval(20949, o is NotEmptyClass, false); Eval(20950, o is NotEmptyClass[], false); Eval(20951, o is EmptyClassGen<int>, false); Eval(20952, o is EmptyClassGen<int>[], false); Eval(20953, o is NotEmptyClassGen<Guid>, false); Eval(20954, o is NotEmptyClassGen<Guid>[], false); Eval(20955, o is NotEmptyClassConstrainedGen<object>, false); Eval(20956, o is NotEmptyClassConstrainedGen<object>[], false); Eval(20957, o is NestedClass, false); Eval(20958, o is NestedClass[], false); Eval(20959, o is NestedClassGen<Decimal>, false); Eval(20960, o is NestedClassGen<Decimal>[], false); Eval(20961, o is ImplementOneInterfaceC, false); Eval(20962, o is ImplementOneInterfaceC[], false); Eval(20963, o is ImplementTwoInterfaceC, false); Eval(20964, o is ImplementTwoInterfaceC[], false); Eval(20965, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(20966, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(20967, o is ImplementTwoInterfaceGenC<int>, false); Eval(20968, o is ImplementTwoInterfaceGenC<int>[], false); Eval(20969, o is ImplementAllInterfaceC<int>, false); Eval(20970, o is ImplementAllInterfaceC<int>[], false); Eval(20971, o is SealedClass, false); Eval(20972, o is SealedClass[], false); } { GCHandle? v = default(GCHandle?); ValueType o = v; Eval(20973, o is EmptyStruct, false); Eval(20974, o is EmptyStruct[], false); Eval(20975, o is EmptyStruct?, false); Eval(20976, o is EmptyStruct?[], false); Eval(20977, o is NotEmptyStruct, false); Eval(20978, o is NotEmptyStruct[], false); Eval(20979, o is NotEmptyStruct?, false); Eval(20980, o is NotEmptyStruct?[], false); Eval(20981, o is EmptyStructGen<int>, false); Eval(20982, o is EmptyStructGen<int>[], false); Eval(20983, o is EmptyStructGen<int>?, false); Eval(20984, o is EmptyStructGen<int>?[], false); Eval(20985, o is NotEmptyStructGen<Guid>, false); Eval(20986, o is NotEmptyStructGen<Guid>[], false); Eval(20987, o is NotEmptyStructGen<Guid>?, false); Eval(20988, o is NotEmptyStructGen<Guid>?[], false); Eval(20989, o is NotEmptyStructConstrainedGen<IntPtr>, false); Eval(20990, o is NotEmptyStructConstrainedGen<IntPtr>[], false); Eval(20991, o is NotEmptyStructConstrainedGen<IntPtr>?, false); Eval(20992, o is NotEmptyStructConstrainedGen<IntPtr>?[], false); Eval(20993, o is NestedStruct, false); Eval(20994, o is NestedStruct[], false); Eval(20995, o is NestedStruct?, false); Eval(20996, o is NestedStruct?[], false); Eval(20997, o is NestedStructGen<Decimal>, false); Eval(20998, o is NestedStructGen<Decimal>[], false); Eval(20999, o is NestedStructGen<Decimal>?, false); Eval(21000, o is NestedStructGen<Decimal>?[], false); Eval(21001, o is ExplicitFieldOffsetStruct, false); Eval(21002, o is ExplicitFieldOffsetStruct[], false); Eval(21003, o is ExplicitFieldOffsetStruct?, false); Eval(21004, o is ExplicitFieldOffsetStruct?[], false); Eval(21013, o is MarshalAsStruct, false); Eval(21014, o is MarshalAsStruct[], false); Eval(21015, o is MarshalAsStruct?, false); Eval(21016, o is MarshalAsStruct?[], false); Eval(21017, o is ImplementOneInterface, false); Eval(21018, o is ImplementOneInterface[], false); Eval(21019, o is ImplementOneInterface?, false); Eval(21020, o is ImplementOneInterface?[], false); Eval(21021, o is ImplementTwoInterface, false); Eval(21022, o is ImplementTwoInterface[], false); Eval(21023, o is ImplementTwoInterface?, false); Eval(21024, o is ImplementTwoInterface?[], false); Eval(21025, o is ImplementOneInterfaceGen<EmptyStructGen<int>>, false); Eval(21026, o is ImplementOneInterfaceGen<EmptyStructGen<int>>[], false); Eval(21027, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?, false); Eval(21028, o is ImplementOneInterfaceGen<EmptyStructGen<int>>?[], false); Eval(21029, o is ImplementTwoInterfaceGen<int>, false); Eval(21030, o is ImplementTwoInterfaceGen<int>[], false); Eval(21031, o is ImplementTwoInterfaceGen<int>?, false); Eval(21032, o is ImplementTwoInterfaceGen<int>?[], false); Eval(21033, o is ImplementAllInterface<int>, false); Eval(21034, o is ImplementAllInterface<int>[], false); Eval(21035, o is ImplementAllInterface<int>?, false); Eval(21036, o is ImplementAllInterface<int>?[], false); Eval(21037, o is IntE, false); Eval(21038, o is IntE[], false); Eval(21039, o is IntE?, false); Eval(21040, o is IntE?[], false); Eval(21041, o is ByteE, false); Eval(21042, o is ByteE[], false); Eval(21043, o is ByteE?, false); Eval(21044, o is ByteE?[], false); Eval(21045, o is LongE, false); Eval(21046, o is LongE[], false); Eval(21047, o is LongE?, false); Eval(21048, o is LongE?[], false); Eval(21049, o is char, false); Eval(21050, o is char[], false); Eval(21051, o is char?, false); Eval(21052, o is char?[], false); Eval(21053, o is bool, false); Eval(21054, o is bool[], false); Eval(21055, o is bool?, false); Eval(21056, o is bool?[], false); Eval(21057, o is byte, false); Eval(21058, o is byte[], false); Eval(21059, o is byte?, false); Eval(21060, o is byte?[], false); Eval(21061, o is sbyte, false); Eval(21062, o is sbyte[], false); Eval(21063, o is sbyte?, false); Eval(21064, o is sbyte?[], false); Eval(21065, o is short, false); Eval(21066, o is short[], false); Eval(21067, o is short?, false); Eval(21068, o is short?[], false); Eval(21069, o is ushort, false); Eval(21070, o is ushort[], false); Eval(21071, o is ushort?, false); Eval(21072, o is ushort?[], false); Eval(21073, o is int, false); Eval(21074, o is int[], false); Eval(21075, o is int?, false); Eval(21076, o is int?[], false); Eval(21077, o is uint, false); Eval(21078, o is uint[], false); Eval(21079, o is uint?, false); Eval(21080, o is uint?[], false); Eval(21081, o is long, false); Eval(21082, o is long[], false); Eval(21083, o is long?, false); Eval(21084, o is long?[], false); Eval(21085, o is ulong, false); Eval(21086, o is ulong[], false); Eval(21087, o is ulong?, false); Eval(21088, o is ulong?[], false); Eval(21089, o is float, false); Eval(21090, o is float[], false); Eval(21091, o is float?, false); Eval(21092, o is float?[], false); Eval(21093, o is double, false); Eval(21094, o is double[], false); Eval(21095, o is double?, false); Eval(21096, o is double?[], false); Eval(21097, o is decimal, false); Eval(21098, o is decimal[], false); Eval(21099, o is decimal?, false); Eval(21100, o is decimal?[], false); Eval(21101, o is IntPtr, false); Eval(21102, o is IntPtr[], false); Eval(21103, o is IntPtr?, false); Eval(21104, o is IntPtr?[], false); Eval(21105, o is UIntPtr, false); Eval(21106, o is UIntPtr[], false); Eval(21107, o is UIntPtr?, false); Eval(21108, o is UIntPtr?[], false); Eval(21109, o is Guid, false); Eval(21110, o is Guid[], false); Eval(21111, o is Guid?, false); Eval(21112, o is Guid?[], false); Eval(21113, o is GCHandle, false); Eval(21114, o is GCHandle[], false); Eval(21115, o is GCHandle?, false); Eval(21116, o is GCHandle?[], false); Eval(21117, o is object, false); Eval(21118, o is object[], false); Eval(21119, o is string, false); Eval(21120, o is string[], false); Eval(21121, o is ValueType, false); Eval(21122, o is ValueType[], false); Eval(21123, o is Array, false); Eval(21124, o is Array[], false); Eval(21125, o is Enum, false); Eval(21126, o is Enum[], false); Eval(21127, o is Delegate, false); Eval(21128, o is Delegate[], false); Eval(21129, o is MulticastDelegate, false); Eval(21130, o is MulticastDelegate[], false); Eval(21131, o is IEmpty, false); Eval(21132, o is IEmpty[], false); Eval(21133, o is INotEmpty, false); Eval(21134, o is INotEmpty[], false); Eval(21135, o is IEmptyGen<int>, false); Eval(21136, o is IEmptyGen<int>[], false); Eval(21137, o is INotEmptyGen<int>, false); Eval(21138, o is INotEmptyGen<int>[], false); Eval(21139, o is SimpleDelegate, false); Eval(21140, o is SimpleDelegate[], false); Eval(21141, o is GenericDelegate<int>, false); Eval(21142, o is GenericDelegate<int>[], false); Eval(21143, o is EmptyClass, false); Eval(21144, o is EmptyClass[], false); Eval(21145, o is NotEmptyClass, false); Eval(21146, o is NotEmptyClass[], false); Eval(21147, o is EmptyClassGen<int>, false); Eval(21148, o is EmptyClassGen<int>[], false); Eval(21149, o is NotEmptyClassGen<Guid>, false); Eval(21150, o is NotEmptyClassGen<Guid>[], false); Eval(21151, o is NotEmptyClassConstrainedGen<object>, false); Eval(21152, o is NotEmptyClassConstrainedGen<object>[], false); Eval(21153, o is NestedClass, false); Eval(21154, o is NestedClass[], false); Eval(21155, o is NestedClassGen<Decimal>, false); Eval(21156, o is NestedClassGen<Decimal>[], false); Eval(21157, o is ImplementOneInterfaceC, false); Eval(21158, o is ImplementOneInterfaceC[], false); Eval(21159, o is ImplementTwoInterfaceC, false); Eval(21160, o is ImplementTwoInterfaceC[], false); Eval(21161, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>, false); Eval(21162, o is ImplementOneInterfaceGenC<EmptyStructGen<int>>[], false); Eval(21163, o is ImplementTwoInterfaceGenC<int>, false); Eval(21164, o is ImplementTwoInterfaceGenC<int>[], false); Eval(21165, o is ImplementAllInterfaceC<int>, false); Eval(21166, o is ImplementAllInterfaceC<int>[], false); Eval(21167, o is SealedClass, false); Eval(21168, o is SealedClass[], false); } } // end of test case 0036 private static int Main() { try { TestCase0001(); TestCase0002(); TestCase0003(); TestCase0004(); TestCase0005(); TestCase0006(); TestCase0007(); TestCase0008(); TestCase0011(); TestCase0012(); TestCase0013(); TestCase0014(); TestCase0015(); TestCase0016(); TestCase0017(); TestCase0018(); TestCase0019(); TestCase0020(); TestCase0021(); TestCase0022(); TestCase0023(); TestCase0024(); TestCase0025(); TestCase0026(); TestCase0027(); TestCase0028(); TestCase0029(); TestCase0030(); TestCase0031(); TestCase0032(); TestCase0033(); TestCase0034(); TestCase0035(); TestCase0036(); } catch (Exception e) { System.Console.WriteLine(e.Message); Console.WriteLine("Test FAILED"); return 666; } Console.WriteLine("Test SUCCESS"); return 100; } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/System.Runtime/tests/TrimmingTests/VerifyResourcesGetTrimmedTest.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 Program { static int Main(string[] args) { try { throw new AggregateException(); } catch (Exception e) { // When the Trimmer receives the feature switch to use resource keys then exception // messages shouldn't return the exception message resource, but instead the resource // key. This test is passing in the feature switch so we make sure that the resources // got trimmed correctly. if (e.Message == "AggregateException_ctor_DefaultMessage") { return 100; } else { 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 Program { static int Main(string[] args) { try { throw new AggregateException(); } catch (Exception e) { // When the Trimmer receives the feature switch to use resource keys then exception // messages shouldn't return the exception message resource, but instead the resource // key. This test is passing in the feature switch so we make sure that the resources // got trimmed correctly. if (e.Message == "AggregateException_ctor_DefaultMessage") { return 100; } else { return -1; } } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/System.Private.CoreLib/src/System/Buffers/Text/Utf8Parser/Utf8Parser.Integer.Unsigned.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.Buffers.Text { public static partial class Utf8Parser { /// <summary> /// Parses a Byte at the start of a Utf8 string. /// </summary> /// <param name="source">The Utf8 string to parse</param> /// <param name="value">Receives the parsed value</param> /// <param name="bytesConsumed">On a successful parse, receives the length in bytes of the substring that was parsed </param> /// <param name="standardFormat">Expected format of the Utf8 string</param> /// <returns> /// true for success. "bytesConsumed" contains the length in bytes of the substring that was parsed. /// false if the string was not syntactically valid or an overflow or underflow occurred. "bytesConsumed" is set to 0. /// </returns> /// <remarks> /// Formats supported: /// G/g (default) /// D/d 32767 /// N/n 32,767 /// X/x 7fff /// </remarks> /// <exceptions> /// <cref>System.FormatException</cref> if the format is not valid for this data type. /// </exceptions> public static bool TryParse(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed, char standardFormat = default) { FastPath: if (standardFormat == default) { return TryParseByteD(source, out value, out bytesConsumed); } // There's small but measurable overhead when entering the switch block below. // We optimize for the default case by hoisting it above the switch block. switch (standardFormat | 0x20) // convert to lowercase { case 'g': case 'd': standardFormat = default; goto FastPath; case 'n': return TryParseByteN(source, out value, out bytesConsumed); case 'x': return TryParseByteX(source, out value, out bytesConsumed); default: return ParserHelpers.TryParseThrowFormatException(source, out value, out bytesConsumed); } } /// <summary> /// Parses a UInt16 at the start of a Utf8 string. /// </summary> /// <param name="source">The Utf8 string to parse</param> /// <param name="value">Receives the parsed value</param> /// <param name="bytesConsumed">On a successful parse, receives the length in bytes of the substring that was parsed </param> /// <param name="standardFormat">Expected format of the Utf8 string</param> /// <returns> /// true for success. "bytesConsumed" contains the length in bytes of the substring that was parsed. /// false if the string was not syntactically valid or an overflow or underflow occurred. "bytesConsumed" is set to 0. /// </returns> /// <remarks> /// Formats supported: /// G/g (default) /// D/d 32767 /// N/n 32,767 /// X/x 7fff /// </remarks> /// <exceptions> /// <cref>System.FormatException</cref> if the format is not valid for this data type. /// </exceptions> [CLSCompliant(false)] public static bool TryParse(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed, char standardFormat = default) { FastPath: if (standardFormat == default) { return TryParseUInt16D(source, out value, out bytesConsumed); } // There's small but measurable overhead when entering the switch block below. // We optimize for the default case by hoisting it above the switch block. switch (standardFormat | 0x20) // convert to lowercase { case 'g': case 'd': standardFormat = default; goto FastPath; case 'n': return TryParseUInt16N(source, out value, out bytesConsumed); case 'x': return TryParseUInt16X(source, out value, out bytesConsumed); default: return ParserHelpers.TryParseThrowFormatException(source, out value, out bytesConsumed); } } /// <summary> /// Parses a UInt32 at the start of a Utf8 string. /// </summary> /// <param name="source">The Utf8 string to parse</param> /// <param name="value">Receives the parsed value</param> /// <param name="bytesConsumed">On a successful parse, receives the length in bytes of the substring that was parsed </param> /// <param name="standardFormat">Expected format of the Utf8 string</param> /// <returns> /// true for success. "bytesConsumed" contains the length in bytes of the substring that was parsed. /// false if the string was not syntactically valid or an overflow or underflow occurred. "bytesConsumed" is set to 0. /// </returns> /// <remarks> /// Formats supported: /// G/g (default) /// D/d 32767 /// N/n 32,767 /// X/x 7fff /// </remarks> /// <exceptions> /// <cref>System.FormatException</cref> if the format is not valid for this data type. /// </exceptions> [CLSCompliant(false)] public static bool TryParse(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed, char standardFormat = default) { FastPath: if (standardFormat == default) { return TryParseUInt32D(source, out value, out bytesConsumed); } // There's small but measurable overhead when entering the switch block below. // We optimize for the default case by hoisting it above the switch block. switch (standardFormat | 0x20) // convert to lowercase { case 'g': case 'd': standardFormat = default; goto FastPath; case 'n': return TryParseUInt32N(source, out value, out bytesConsumed); case 'x': return TryParseUInt32X(source, out value, out bytesConsumed); default: return ParserHelpers.TryParseThrowFormatException(source, out value, out bytesConsumed); } } /// <summary> /// Parses a UInt64 at the start of a Utf8 string. /// </summary> /// <param name="source">The Utf8 string to parse</param> /// <param name="value">Receives the parsed value</param> /// <param name="bytesConsumed">On a successful parse, receives the length in bytes of the substring that was parsed </param> /// <param name="standardFormat">Expected format of the Utf8 string</param> /// <returns> /// true for success. "bytesConsumed" contains the length in bytes of the substring that was parsed. /// false if the string was not syntactically valid or an overflow or underflow occurred. "bytesConsumed" is set to 0. /// </returns> /// <remarks> /// Formats supported: /// G/g (default) /// D/d 32767 /// N/n 32,767 /// X/x 7fff /// </remarks> /// <exceptions> /// <cref>System.FormatException</cref> if the format is not valid for this data type. /// </exceptions> [CLSCompliant(false)] public static bool TryParse(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed, char standardFormat = default) { FastPath: if (standardFormat == default) { return TryParseUInt64D(source, out value, out bytesConsumed); } // There's small but measurable overhead when entering the switch block below. // We optimize for the default case by hoisting it above the switch block. switch (standardFormat | 0x20) // convert to lowercase { case 'g': case 'd': standardFormat = default; goto FastPath; case 'n': return TryParseUInt64N(source, out value, out bytesConsumed); case 'x': return TryParseUInt64X(source, out value, out bytesConsumed); default: return ParserHelpers.TryParseThrowFormatException(source, out value, out bytesConsumed); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Buffers.Text { public static partial class Utf8Parser { /// <summary> /// Parses a Byte at the start of a Utf8 string. /// </summary> /// <param name="source">The Utf8 string to parse</param> /// <param name="value">Receives the parsed value</param> /// <param name="bytesConsumed">On a successful parse, receives the length in bytes of the substring that was parsed </param> /// <param name="standardFormat">Expected format of the Utf8 string</param> /// <returns> /// true for success. "bytesConsumed" contains the length in bytes of the substring that was parsed. /// false if the string was not syntactically valid or an overflow or underflow occurred. "bytesConsumed" is set to 0. /// </returns> /// <remarks> /// Formats supported: /// G/g (default) /// D/d 32767 /// N/n 32,767 /// X/x 7fff /// </remarks> /// <exceptions> /// <cref>System.FormatException</cref> if the format is not valid for this data type. /// </exceptions> public static bool TryParse(ReadOnlySpan<byte> source, out byte value, out int bytesConsumed, char standardFormat = default) { FastPath: if (standardFormat == default) { return TryParseByteD(source, out value, out bytesConsumed); } // There's small but measurable overhead when entering the switch block below. // We optimize for the default case by hoisting it above the switch block. switch (standardFormat | 0x20) // convert to lowercase { case 'g': case 'd': standardFormat = default; goto FastPath; case 'n': return TryParseByteN(source, out value, out bytesConsumed); case 'x': return TryParseByteX(source, out value, out bytesConsumed); default: return ParserHelpers.TryParseThrowFormatException(source, out value, out bytesConsumed); } } /// <summary> /// Parses a UInt16 at the start of a Utf8 string. /// </summary> /// <param name="source">The Utf8 string to parse</param> /// <param name="value">Receives the parsed value</param> /// <param name="bytesConsumed">On a successful parse, receives the length in bytes of the substring that was parsed </param> /// <param name="standardFormat">Expected format of the Utf8 string</param> /// <returns> /// true for success. "bytesConsumed" contains the length in bytes of the substring that was parsed. /// false if the string was not syntactically valid or an overflow or underflow occurred. "bytesConsumed" is set to 0. /// </returns> /// <remarks> /// Formats supported: /// G/g (default) /// D/d 32767 /// N/n 32,767 /// X/x 7fff /// </remarks> /// <exceptions> /// <cref>System.FormatException</cref> if the format is not valid for this data type. /// </exceptions> [CLSCompliant(false)] public static bool TryParse(ReadOnlySpan<byte> source, out ushort value, out int bytesConsumed, char standardFormat = default) { FastPath: if (standardFormat == default) { return TryParseUInt16D(source, out value, out bytesConsumed); } // There's small but measurable overhead when entering the switch block below. // We optimize for the default case by hoisting it above the switch block. switch (standardFormat | 0x20) // convert to lowercase { case 'g': case 'd': standardFormat = default; goto FastPath; case 'n': return TryParseUInt16N(source, out value, out bytesConsumed); case 'x': return TryParseUInt16X(source, out value, out bytesConsumed); default: return ParserHelpers.TryParseThrowFormatException(source, out value, out bytesConsumed); } } /// <summary> /// Parses a UInt32 at the start of a Utf8 string. /// </summary> /// <param name="source">The Utf8 string to parse</param> /// <param name="value">Receives the parsed value</param> /// <param name="bytesConsumed">On a successful parse, receives the length in bytes of the substring that was parsed </param> /// <param name="standardFormat">Expected format of the Utf8 string</param> /// <returns> /// true for success. "bytesConsumed" contains the length in bytes of the substring that was parsed. /// false if the string was not syntactically valid or an overflow or underflow occurred. "bytesConsumed" is set to 0. /// </returns> /// <remarks> /// Formats supported: /// G/g (default) /// D/d 32767 /// N/n 32,767 /// X/x 7fff /// </remarks> /// <exceptions> /// <cref>System.FormatException</cref> if the format is not valid for this data type. /// </exceptions> [CLSCompliant(false)] public static bool TryParse(ReadOnlySpan<byte> source, out uint value, out int bytesConsumed, char standardFormat = default) { FastPath: if (standardFormat == default) { return TryParseUInt32D(source, out value, out bytesConsumed); } // There's small but measurable overhead when entering the switch block below. // We optimize for the default case by hoisting it above the switch block. switch (standardFormat | 0x20) // convert to lowercase { case 'g': case 'd': standardFormat = default; goto FastPath; case 'n': return TryParseUInt32N(source, out value, out bytesConsumed); case 'x': return TryParseUInt32X(source, out value, out bytesConsumed); default: return ParserHelpers.TryParseThrowFormatException(source, out value, out bytesConsumed); } } /// <summary> /// Parses a UInt64 at the start of a Utf8 string. /// </summary> /// <param name="source">The Utf8 string to parse</param> /// <param name="value">Receives the parsed value</param> /// <param name="bytesConsumed">On a successful parse, receives the length in bytes of the substring that was parsed </param> /// <param name="standardFormat">Expected format of the Utf8 string</param> /// <returns> /// true for success. "bytesConsumed" contains the length in bytes of the substring that was parsed. /// false if the string was not syntactically valid or an overflow or underflow occurred. "bytesConsumed" is set to 0. /// </returns> /// <remarks> /// Formats supported: /// G/g (default) /// D/d 32767 /// N/n 32,767 /// X/x 7fff /// </remarks> /// <exceptions> /// <cref>System.FormatException</cref> if the format is not valid for this data type. /// </exceptions> [CLSCompliant(false)] public static bool TryParse(ReadOnlySpan<byte> source, out ulong value, out int bytesConsumed, char standardFormat = default) { FastPath: if (standardFormat == default) { return TryParseUInt64D(source, out value, out bytesConsumed); } // There's small but measurable overhead when entering the switch block below. // We optimize for the default case by hoisting it above the switch block. switch (standardFormat | 0x20) // convert to lowercase { case 'g': case 'd': standardFormat = default; goto FastPath; case 'n': return TryParseUInt64N(source, out value, out bytesConsumed); case 'x': return TryParseUInt64X(source, out value, out bytesConsumed); default: return ParserHelpers.TryParseThrowFormatException(source, out value, out bytesConsumed); } } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/Common/src/Microsoft/Win32/SafeHandles/SafeDsaHandle.Unix.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.Security; using System.Runtime.InteropServices; namespace Microsoft.Win32.SafeHandles { internal sealed class SafeDsaHandle : SafeHandle { public SafeDsaHandle() : base(IntPtr.Zero, ownsHandle: true) { } protected override bool ReleaseHandle() { Interop.Crypto.DsaDestroy(handle); SetHandle(IntPtr.Zero); return true; } public override bool IsInvalid { get { return handle == IntPtr.Zero; } } internal static SafeDsaHandle DuplicateHandle(IntPtr handle) { Debug.Assert(handle != IntPtr.Zero); // Reliability: Allocate the SafeHandle before calling Dsa_up_ref so // that we don't lose a tracked reference in low-memory situations. SafeDsaHandle safeHandle = new SafeDsaHandle(); if (!Interop.Crypto.DsaUpRef(handle)) { throw Interop.Crypto.CreateOpenSslCryptographicException(); } 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.Security; using System.Runtime.InteropServices; namespace Microsoft.Win32.SafeHandles { internal sealed class SafeDsaHandle : SafeHandle { public SafeDsaHandle() : base(IntPtr.Zero, ownsHandle: true) { } protected override bool ReleaseHandle() { Interop.Crypto.DsaDestroy(handle); SetHandle(IntPtr.Zero); return true; } public override bool IsInvalid { get { return handle == IntPtr.Zero; } } internal static SafeDsaHandle DuplicateHandle(IntPtr handle) { Debug.Assert(handle != IntPtr.Zero); // Reliability: Allocate the SafeHandle before calling Dsa_up_ref so // that we don't lose a tracked reference in low-memory situations. SafeDsaHandle safeHandle = new SafeDsaHandle(); if (!Interop.Crypto.DsaUpRef(handle)) { throw Interop.Crypto.CreateOpenSslCryptographicException(); } safeHandle.SetHandle(handle); return safeHandle; } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/Microsoft.Extensions.Logging/tests/Common/LoggerFactoryTest.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.Text; using System.Diagnostics; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; using Moq; using Xunit; namespace Microsoft.Extensions.Logging.Test { public class LoggerFactoryTest { [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] public void AddProvider_ThrowsAfterDisposed() { var factory = new LoggerFactory(); factory.Dispose(); Assert.Throws<ObjectDisposedException>(() => ((ILoggerFactory) factory).AddProvider(CreateProvider())); } [Fact] public void AddProvider_ThrowsIfProviderIsNull() { var factory = new LoggerFactory(); Assert.Throws<ArgumentNullException>(() => ((ILoggerFactory)factory).AddProvider(null)); } [Fact] public void CreateLogger_ThrowsAfterDisposed() { var factory = new LoggerFactory(); factory.Dispose(); Assert.Throws<ObjectDisposedException>(() => factory.CreateLogger("d")); } private class TestLoggerFactory : LoggerFactory { public bool Disposed => CheckDisposed(); } [Fact] public void Dispose_MultipleCallsNoop() { var factory = new TestLoggerFactory(); factory.Dispose(); Assert.True(factory.Disposed); factory.Dispose(); } // Moq heavily utilizes RefEmit, which does not work on most aot workloads [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] public void Dispose_ProvidersAreDisposed() { // Arrange var factory = new LoggerFactory(); var disposableProvider1 = CreateProvider(); var disposableProvider2 = CreateProvider(); factory.AddProvider(disposableProvider1); factory.AddProvider(disposableProvider2); // Act factory.Dispose(); // Assert Mock.Get<IDisposable>(disposableProvider1) .Verify(p => p.Dispose(), Times.Once()); Mock.Get<IDisposable>(disposableProvider2) .Verify(p => p.Dispose(), Times.Once()); } private static ILoggerProvider CreateProvider() { var disposableProvider = new Mock<ILoggerProvider>(); disposableProvider.As<IDisposable>() .Setup(p => p.Dispose()); return disposableProvider.Object; } // Moq heavily utilizes RefEmit, which does not work on most aot workloads [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] public void Dispose_ThrowException_SwallowsException() { // Arrange var factory = new LoggerFactory(); var throwingProvider = new Mock<ILoggerProvider>(); throwingProvider.As<IDisposable>() .Setup(p => p.Dispose()) .Throws<Exception>(); factory.AddProvider(throwingProvider.Object); // Act factory.Dispose(); // Assert throwingProvider.As<IDisposable>() .Verify(p => p.Dispose(), Times.Once()); } private static string GetActivityLogString(ActivityTrackingOptions options) { Activity activity = Activity.Current; if (activity == null) { return string.Empty; } StringBuilder sb = new StringBuilder(); if ((options & ActivityTrackingOptions.SpanId) != 0) { sb.Append($"SpanId:{activity.GetSpanId()}"); } if ((options & ActivityTrackingOptions.TraceId) != 0) { sb.Append(sb.Length > 0 ? $", TraceId:{activity.GetTraceId()}" : $"TraceId:{activity.GetTraceId()}"); } if ((options & ActivityTrackingOptions.ParentId) != 0) { sb.Append(sb.Length > 0 ? $", ParentId:{activity.GetParentId()}" : $"ParentId:{activity.GetParentId()}"); } if ((options & ActivityTrackingOptions.TraceState) != 0) { sb.Append(sb.Length > 0 ? $", TraceState:{activity.TraceStateString}" : $"TraceState:{activity.TraceStateString}"); } if ((options & ActivityTrackingOptions.TraceFlags) != 0) { sb.Append(sb.Length > 0 ? $", TraceFlags:{activity.ActivityTraceFlags}" : $"TraceFlags:{activity.ActivityTraceFlags}"); } return sb.ToString(); } [Theory] [InlineData(ActivityTrackingOptions.SpanId)] [InlineData(ActivityTrackingOptions.TraceId)] [InlineData(ActivityTrackingOptions.ParentId)] [InlineData(ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.ParentId)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] public void TestActivityIds(ActivityTrackingOptions options) { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = options) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.AddBaggage("baggageTestKey1", "baggageTestValue"); activity.AddTag("tagTestKey", "tagTestValue"); activity.Start(); string activity1String = GetActivityLogString(options); string activity2String; using (logger.BeginScope("Scope 1")) { logger.LogInformation("Message 1"); Activity b = new Activity("ScopeActivity"); b.Start(); activity2String = GetActivityLogString(options); using (logger.BeginScope("Scope 2")) { logger.LogInformation("Message 2"); } b.Stop(); } activity.Stop(); Assert.Equal(activity1String, loggerProvider.LogText[1]); Assert.Equal(activity2String, loggerProvider.LogText[4]); Assert.Equal(7, loggerProvider.LogText.Count); // Ensure that Baggage and Tags aren't added. } [Fact] public void TestInvalidActivityTrackingOptions() { Assert.Throws<ArgumentException>(() => LoggerFactory.Create(builder => { builder.Configure(o => o.ActivityTrackingOptions = (ActivityTrackingOptions) 0xFF00);}) ); } [Fact] public void TestActivityTrackingOptions_ShouldAddBaggageItemsAsNewScope_WhenBaggageOptionIsSet() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.Baggage) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.AddBaggage("testKey1", null); activity.AddBaggage("testKey2", string.Empty); activity.AddBaggage("testKey3", "testValue"); activity.Start(); logger.LogInformation("Message1"); activity.Stop(); foreach (string s in loggerProvider.LogText) { System.Console.WriteLine(s); } Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal("testKey3:testValue, testKey2:, testKey1:", loggerProvider.LogText[2]); } [Fact] public void TestActivityTrackingOptions_ShouldAddTagsAsNewScope_WhenTagsOptionIsSet() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.TraceId | ActivityTrackingOptions.Tags) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.AddTag("testKey1", null); activity.AddTag("testKey2", string.Empty); activity.AddTag("testKey3", "testValue"); activity.AddTag("testKey4", new Dummy()); activity.Start(); logger.LogInformation("Message1"); activity.Stop(); Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal("testKey1:, testKey2:, testKey3:testValue, testKey4:DummyToString", loggerProvider.LogText[2]); } [Fact] public void TestActivityTrackingOptions_ShouldAddTagsAndBaggageAsOneScopeAndTraceIdAsOtherScope_WhenTagsBaggageAndTraceIdOptionAreSet() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.TraceId | ActivityTrackingOptions.Baggage | ActivityTrackingOptions.Tags) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.AddTag("testTagKey1", "testTagValue"); activity.AddBaggage("testBaggageKey1", "testBaggageValue"); activity.Start(); logger.LogInformation("Message1"); string traceIdActivityLogString = GetActivityLogString(ActivityTrackingOptions.TraceId); activity.Stop(); Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal(traceIdActivityLogString, loggerProvider.LogText[1]); Assert.Equal("testTagKey1:testTagValue", loggerProvider.LogText[2]); Assert.Equal("testBaggageKey1:testBaggageValue", loggerProvider.LogText[3]); } [Fact] public void TestActivityTrackingOptions_ShouldAddNewTagAndBaggageItemsAtRuntime_WhenTagsAndBaggageOptionAreSetAndWithNestedScopes() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.Baggage | ActivityTrackingOptions.Tags) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.Start(); // Add baggage and tag items before the first log entry. activity.AddTag("MyTagKey1", "1"); activity.AddBaggage("MyBaggageKey1", "1"); // Log a message, this should create any cached objects. logger.LogInformation("Message1"); // Start the first scope, add some more items and log. using (logger.BeginScope("Scope1")) { activity.AddTag("MyTagKey2", "2"); activity.AddBaggage("MyBaggageKey2", "2"); logger.LogInformation("Message2"); // Add two additional scopes and also replace some tag and baggage items. using (logger.BeginScope("Scope2")) { activity.AddTag("MyTagKey3", "3"); activity.AddBaggage("MyBaggageKey3", "3"); using (logger.BeginScope("Scope3")) { activity.SetTag("MyTagKey3", "4"); activity.SetBaggage("MyBaggageKey3", "4"); logger.LogInformation("Message3"); } } // Along with this message we expect all baggage and tags items // as well as the Scope1 but not the Scope2 and Scope3. logger.LogInformation("Message4"); activity.Stop(); } Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal("MyTagKey1:1", loggerProvider.LogText[2]); Assert.Equal("MyBaggageKey1:1", loggerProvider.LogText[3]); Assert.Equal("Message2", loggerProvider.LogText[4]); Assert.Equal("MyTagKey1:1, MyTagKey2:2", loggerProvider.LogText[6]); Assert.Equal("MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[7]); Assert.Equal("Scope1", loggerProvider.LogText[8]); Assert.Equal("Message3", loggerProvider.LogText[9]); Assert.Equal("MyTagKey1:1, MyTagKey2:2, MyTagKey3:4", loggerProvider.LogText[11]); Assert.Equal("MyBaggageKey3:4, MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[12]); Assert.Equal("Scope1", loggerProvider.LogText[13]); Assert.Equal("Scope2", loggerProvider.LogText[14]); Assert.Equal("Scope3", loggerProvider.LogText[15]); Assert.Equal("Message4", loggerProvider.LogText[16]); Assert.Equal("MyTagKey1:1, MyTagKey2:2, MyTagKey3:4", loggerProvider.LogText[18]); Assert.Equal("MyBaggageKey3:4, MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[19]); Assert.Equal("Scope1", loggerProvider.LogText[20]); } [Fact] public void TestActivityTrackingOptions_ShouldNotAddAdditionalScope_WhenTagsBaggageOptionAreSetButTagsAndBaggageAreEmpty() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.TraceId | ActivityTrackingOptions.Baggage | ActivityTrackingOptions.Tags) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.Start(); logger.LogInformation("Message1"); string traceIdActivityLogString = GetActivityLogString(ActivityTrackingOptions.TraceId); activity.Stop(); Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal(traceIdActivityLogString, loggerProvider.LogText[1]); Assert.Equal(2, loggerProvider.LogText.Count); // Ensure that the additional scopes for tags and baggage aren't added. } [Fact] public void CallsSetScopeProvider_OnSupportedProviders() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = new LoggerFactory(new [] { loggerProvider }); var logger = loggerFactory.CreateLogger("Logger"); using (logger.BeginScope("Scope")) { using (logger.BeginScope("Scope2")) { logger.LogInformation("Message"); } } logger.LogInformation("Message2"); Assert.Equal(loggerProvider.LogText, new[] { "Message", "Scope", "Scope2", "Message2", }); Assert.NotNull(loggerProvider.ScopeProvider); Assert.Equal(0, loggerProvider.BeginScopeCalledTimes); } [Fact] public void BeginScope_ReturnsExternalSourceTokenDirectly() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = new LoggerFactory(new [] { loggerProvider }); var logger = loggerFactory.CreateLogger("Logger"); var scope = logger.BeginScope("Scope"); Assert.StartsWith(loggerProvider.ScopeProvider.GetType().FullName, scope.GetType().FullName); } [Fact] public void BeginScope_ReturnsInternalSourceTokenDirectly() { var loggerProvider = new InternalScopeLoggerProvider(); var loggerFactory = new LoggerFactory(new[] { loggerProvider }); var logger = loggerFactory.CreateLogger("Logger"); var scope = logger.BeginScope("Scope"); Assert.Contains("LoggerExternalScopeProvider+Scope", scope.GetType().FullName); } [Fact] public void BeginScope_ReturnsCompositeToken_ForMultipleLoggers() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerProvider2 = new InternalScopeLoggerProvider(); var loggerFactory = new LoggerFactory(new ILoggerProvider[] { loggerProvider, loggerProvider2}); var logger = loggerFactory.CreateLogger("Logger"); using (logger.BeginScope("Scope")) { using (logger.BeginScope("Scope2")) { logger.LogInformation("Message"); } } logger.LogInformation("Message2"); Assert.Equal(loggerProvider.LogText, new[] { "Message", "Scope", "Scope2", "Message2", }); Assert.Equal(loggerProvider2.LogText, new[] { "Message", "Scope", "Scope2", "Message2", }); } // Moq heavily utilizes RefEmit, which does not work on most aot workloads [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] public void CreateDisposeDisposesInnerServiceProvider() { var disposed = false; var provider = new Mock<ILoggerProvider>(); provider.Setup(p => p.Dispose()).Callback(() => disposed = true); var factory = LoggerFactory.Create(builder => builder.Services.AddSingleton(_=> provider.Object)); factory.Dispose(); Assert.True(disposed); } private class InternalScopeLoggerProvider : ILoggerProvider, ILogger { private IExternalScopeProvider _scopeProvider = new LoggerExternalScopeProvider(); public List<string> LogText { get; set; } = new List<string>(); public void Dispose() { } public ILogger CreateLogger(string categoryName) { return this; } public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter) { LogText.Add(formatter(state, exception)); _scopeProvider.ForEachScope((scope, builder) => builder.Add(scope.ToString()), LogText); } public bool IsEnabled(LogLevel logLevel) { return true; } public IDisposable BeginScope<TState>(TState state) { return _scopeProvider.Push(state); } } private class ExternalScopeLoggerProvider : ILoggerProvider, ISupportExternalScope, ILogger { public void SetScopeProvider(IExternalScopeProvider scopeProvider) { ScopeProvider = scopeProvider; } public IExternalScopeProvider ScopeProvider { get; set; } public int BeginScopeCalledTimes { get; set; } public List<string> LogText { get; set; } = new List<string>(); public void Dispose() { } public ILogger CreateLogger(string categoryName) { return this; } public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter) { LogText.Add(formatter(state, exception)); // Notice that other ILoggers maybe not call "ToString()" on the scope but enumerate it and this isn't covered by this implementation. // E.g. the SimpleConsoleFormatter calls "ToString()" like it's done here but the "JsonConsoleFormatter" enumerates a scope // if the Scope is of type IEnumerable<KeyValuePair<string, object>>. ScopeProvider.ForEachScope((scope, builder) => builder.Add(scope.ToString()), LogText); } public bool IsEnabled(LogLevel logLevel) { return true; } public IDisposable BeginScope<TState>(TState state) { BeginScopeCalledTimes++; return null; } } private class Dummy { public override string ToString() { return "DummyToString"; } } } internal static class ActivityExtensions { public static string GetSpanId(this Activity activity) { return activity.IdFormat switch { ActivityIdFormat.Hierarchical => activity.Id, ActivityIdFormat.W3C => activity.SpanId.ToHexString(), _ => null, } ?? string.Empty; } public static string GetTraceId(this Activity activity) { return activity.IdFormat switch { ActivityIdFormat.Hierarchical => activity.RootId, ActivityIdFormat.W3C => activity.TraceId.ToHexString(), _ => null, } ?? string.Empty; } public static string GetParentId(this Activity activity) { return activity.IdFormat switch { ActivityIdFormat.Hierarchical => activity.ParentId, ActivityIdFormat.W3C => activity.ParentSpanId.ToHexString(), _ => null, } ?? string.Empty; } } }
// 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.Text; using System.Diagnostics; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; using Moq; using Xunit; namespace Microsoft.Extensions.Logging.Test { public class LoggerFactoryTest { [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] public void AddProvider_ThrowsAfterDisposed() { var factory = new LoggerFactory(); factory.Dispose(); Assert.Throws<ObjectDisposedException>(() => ((ILoggerFactory) factory).AddProvider(CreateProvider())); } [Fact] public void AddProvider_ThrowsIfProviderIsNull() { var factory = new LoggerFactory(); Assert.Throws<ArgumentNullException>(() => ((ILoggerFactory)factory).AddProvider(null)); } [Fact] public void CreateLogger_ThrowsAfterDisposed() { var factory = new LoggerFactory(); factory.Dispose(); Assert.Throws<ObjectDisposedException>(() => factory.CreateLogger("d")); } private class TestLoggerFactory : LoggerFactory { public bool Disposed => CheckDisposed(); } [Fact] public void Dispose_MultipleCallsNoop() { var factory = new TestLoggerFactory(); factory.Dispose(); Assert.True(factory.Disposed); factory.Dispose(); } // Moq heavily utilizes RefEmit, which does not work on most aot workloads [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] public void Dispose_ProvidersAreDisposed() { // Arrange var factory = new LoggerFactory(); var disposableProvider1 = CreateProvider(); var disposableProvider2 = CreateProvider(); factory.AddProvider(disposableProvider1); factory.AddProvider(disposableProvider2); // Act factory.Dispose(); // Assert Mock.Get<IDisposable>(disposableProvider1) .Verify(p => p.Dispose(), Times.Once()); Mock.Get<IDisposable>(disposableProvider2) .Verify(p => p.Dispose(), Times.Once()); } private static ILoggerProvider CreateProvider() { var disposableProvider = new Mock<ILoggerProvider>(); disposableProvider.As<IDisposable>() .Setup(p => p.Dispose()); return disposableProvider.Object; } // Moq heavily utilizes RefEmit, which does not work on most aot workloads [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] public void Dispose_ThrowException_SwallowsException() { // Arrange var factory = new LoggerFactory(); var throwingProvider = new Mock<ILoggerProvider>(); throwingProvider.As<IDisposable>() .Setup(p => p.Dispose()) .Throws<Exception>(); factory.AddProvider(throwingProvider.Object); // Act factory.Dispose(); // Assert throwingProvider.As<IDisposable>() .Verify(p => p.Dispose(), Times.Once()); } private static string GetActivityLogString(ActivityTrackingOptions options) { Activity activity = Activity.Current; if (activity == null) { return string.Empty; } StringBuilder sb = new StringBuilder(); if ((options & ActivityTrackingOptions.SpanId) != 0) { sb.Append($"SpanId:{activity.GetSpanId()}"); } if ((options & ActivityTrackingOptions.TraceId) != 0) { sb.Append(sb.Length > 0 ? $", TraceId:{activity.GetTraceId()}" : $"TraceId:{activity.GetTraceId()}"); } if ((options & ActivityTrackingOptions.ParentId) != 0) { sb.Append(sb.Length > 0 ? $", ParentId:{activity.GetParentId()}" : $"ParentId:{activity.GetParentId()}"); } if ((options & ActivityTrackingOptions.TraceState) != 0) { sb.Append(sb.Length > 0 ? $", TraceState:{activity.TraceStateString}" : $"TraceState:{activity.TraceStateString}"); } if ((options & ActivityTrackingOptions.TraceFlags) != 0) { sb.Append(sb.Length > 0 ? $", TraceFlags:{activity.ActivityTraceFlags}" : $"TraceFlags:{activity.ActivityTraceFlags}"); } return sb.ToString(); } [Theory] [InlineData(ActivityTrackingOptions.SpanId)] [InlineData(ActivityTrackingOptions.TraceId)] [InlineData(ActivityTrackingOptions.ParentId)] [InlineData(ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.ParentId)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] [InlineData(ActivityTrackingOptions.SpanId | ActivityTrackingOptions.TraceId | ActivityTrackingOptions.ParentId | ActivityTrackingOptions.TraceState | ActivityTrackingOptions.TraceFlags)] public void TestActivityIds(ActivityTrackingOptions options) { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = options) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.AddBaggage("baggageTestKey1", "baggageTestValue"); activity.AddTag("tagTestKey", "tagTestValue"); activity.Start(); string activity1String = GetActivityLogString(options); string activity2String; using (logger.BeginScope("Scope 1")) { logger.LogInformation("Message 1"); Activity b = new Activity("ScopeActivity"); b.Start(); activity2String = GetActivityLogString(options); using (logger.BeginScope("Scope 2")) { logger.LogInformation("Message 2"); } b.Stop(); } activity.Stop(); Assert.Equal(activity1String, loggerProvider.LogText[1]); Assert.Equal(activity2String, loggerProvider.LogText[4]); Assert.Equal(7, loggerProvider.LogText.Count); // Ensure that Baggage and Tags aren't added. } [Fact] public void TestInvalidActivityTrackingOptions() { Assert.Throws<ArgumentException>(() => LoggerFactory.Create(builder => { builder.Configure(o => o.ActivityTrackingOptions = (ActivityTrackingOptions) 0xFF00);}) ); } [Fact] public void TestActivityTrackingOptions_ShouldAddBaggageItemsAsNewScope_WhenBaggageOptionIsSet() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.Baggage) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.AddBaggage("testKey1", null); activity.AddBaggage("testKey2", string.Empty); activity.AddBaggage("testKey3", "testValue"); activity.Start(); logger.LogInformation("Message1"); activity.Stop(); foreach (string s in loggerProvider.LogText) { System.Console.WriteLine(s); } Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal("testKey3:testValue, testKey2:, testKey1:", loggerProvider.LogText[2]); } [Fact] public void TestActivityTrackingOptions_ShouldAddTagsAsNewScope_WhenTagsOptionIsSet() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.TraceId | ActivityTrackingOptions.Tags) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.AddTag("testKey1", null); activity.AddTag("testKey2", string.Empty); activity.AddTag("testKey3", "testValue"); activity.AddTag("testKey4", new Dummy()); activity.Start(); logger.LogInformation("Message1"); activity.Stop(); Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal("testKey1:, testKey2:, testKey3:testValue, testKey4:DummyToString", loggerProvider.LogText[2]); } [Fact] public void TestActivityTrackingOptions_ShouldAddTagsAndBaggageAsOneScopeAndTraceIdAsOtherScope_WhenTagsBaggageAndTraceIdOptionAreSet() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.TraceId | ActivityTrackingOptions.Baggage | ActivityTrackingOptions.Tags) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.AddTag("testTagKey1", "testTagValue"); activity.AddBaggage("testBaggageKey1", "testBaggageValue"); activity.Start(); logger.LogInformation("Message1"); string traceIdActivityLogString = GetActivityLogString(ActivityTrackingOptions.TraceId); activity.Stop(); Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal(traceIdActivityLogString, loggerProvider.LogText[1]); Assert.Equal("testTagKey1:testTagValue", loggerProvider.LogText[2]); Assert.Equal("testBaggageKey1:testBaggageValue", loggerProvider.LogText[3]); } [Fact] public void TestActivityTrackingOptions_ShouldAddNewTagAndBaggageItemsAtRuntime_WhenTagsAndBaggageOptionAreSetAndWithNestedScopes() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.Baggage | ActivityTrackingOptions.Tags) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.Start(); // Add baggage and tag items before the first log entry. activity.AddTag("MyTagKey1", "1"); activity.AddBaggage("MyBaggageKey1", "1"); // Log a message, this should create any cached objects. logger.LogInformation("Message1"); // Start the first scope, add some more items and log. using (logger.BeginScope("Scope1")) { activity.AddTag("MyTagKey2", "2"); activity.AddBaggage("MyBaggageKey2", "2"); logger.LogInformation("Message2"); // Add two additional scopes and also replace some tag and baggage items. using (logger.BeginScope("Scope2")) { activity.AddTag("MyTagKey3", "3"); activity.AddBaggage("MyBaggageKey3", "3"); using (logger.BeginScope("Scope3")) { activity.SetTag("MyTagKey3", "4"); activity.SetBaggage("MyBaggageKey3", "4"); logger.LogInformation("Message3"); } } // Along with this message we expect all baggage and tags items // as well as the Scope1 but not the Scope2 and Scope3. logger.LogInformation("Message4"); activity.Stop(); } Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal("MyTagKey1:1", loggerProvider.LogText[2]); Assert.Equal("MyBaggageKey1:1", loggerProvider.LogText[3]); Assert.Equal("Message2", loggerProvider.LogText[4]); Assert.Equal("MyTagKey1:1, MyTagKey2:2", loggerProvider.LogText[6]); Assert.Equal("MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[7]); Assert.Equal("Scope1", loggerProvider.LogText[8]); Assert.Equal("Message3", loggerProvider.LogText[9]); Assert.Equal("MyTagKey1:1, MyTagKey2:2, MyTagKey3:4", loggerProvider.LogText[11]); Assert.Equal("MyBaggageKey3:4, MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[12]); Assert.Equal("Scope1", loggerProvider.LogText[13]); Assert.Equal("Scope2", loggerProvider.LogText[14]); Assert.Equal("Scope3", loggerProvider.LogText[15]); Assert.Equal("Message4", loggerProvider.LogText[16]); Assert.Equal("MyTagKey1:1, MyTagKey2:2, MyTagKey3:4", loggerProvider.LogText[18]); Assert.Equal("MyBaggageKey3:4, MyBaggageKey2:2, MyBaggageKey1:1", loggerProvider.LogText[19]); Assert.Equal("Scope1", loggerProvider.LogText[20]); } [Fact] public void TestActivityTrackingOptions_ShouldNotAddAdditionalScope_WhenTagsBaggageOptionAreSetButTagsAndBaggageAreEmpty() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = LoggerFactory.Create(builder => { builder .Configure(o => o.ActivityTrackingOptions = ActivityTrackingOptions.TraceId | ActivityTrackingOptions.Baggage | ActivityTrackingOptions.Tags) .AddProvider(loggerProvider); }); var logger = loggerFactory.CreateLogger("Logger"); Activity activity = new Activity("ScopeActivity"); activity.Start(); logger.LogInformation("Message1"); string traceIdActivityLogString = GetActivityLogString(ActivityTrackingOptions.TraceId); activity.Stop(); Assert.Equal("Message1", loggerProvider.LogText[0]); Assert.Equal(traceIdActivityLogString, loggerProvider.LogText[1]); Assert.Equal(2, loggerProvider.LogText.Count); // Ensure that the additional scopes for tags and baggage aren't added. } [Fact] public void CallsSetScopeProvider_OnSupportedProviders() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = new LoggerFactory(new [] { loggerProvider }); var logger = loggerFactory.CreateLogger("Logger"); using (logger.BeginScope("Scope")) { using (logger.BeginScope("Scope2")) { logger.LogInformation("Message"); } } logger.LogInformation("Message2"); Assert.Equal(loggerProvider.LogText, new[] { "Message", "Scope", "Scope2", "Message2", }); Assert.NotNull(loggerProvider.ScopeProvider); Assert.Equal(0, loggerProvider.BeginScopeCalledTimes); } [Fact] public void BeginScope_ReturnsExternalSourceTokenDirectly() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerFactory = new LoggerFactory(new [] { loggerProvider }); var logger = loggerFactory.CreateLogger("Logger"); var scope = logger.BeginScope("Scope"); Assert.StartsWith(loggerProvider.ScopeProvider.GetType().FullName, scope.GetType().FullName); } [Fact] public void BeginScope_ReturnsInternalSourceTokenDirectly() { var loggerProvider = new InternalScopeLoggerProvider(); var loggerFactory = new LoggerFactory(new[] { loggerProvider }); var logger = loggerFactory.CreateLogger("Logger"); var scope = logger.BeginScope("Scope"); Assert.Contains("LoggerExternalScopeProvider+Scope", scope.GetType().FullName); } [Fact] public void BeginScope_ReturnsCompositeToken_ForMultipleLoggers() { var loggerProvider = new ExternalScopeLoggerProvider(); var loggerProvider2 = new InternalScopeLoggerProvider(); var loggerFactory = new LoggerFactory(new ILoggerProvider[] { loggerProvider, loggerProvider2}); var logger = loggerFactory.CreateLogger("Logger"); using (logger.BeginScope("Scope")) { using (logger.BeginScope("Scope2")) { logger.LogInformation("Message"); } } logger.LogInformation("Message2"); Assert.Equal(loggerProvider.LogText, new[] { "Message", "Scope", "Scope2", "Message2", }); Assert.Equal(loggerProvider2.LogText, new[] { "Message", "Scope", "Scope2", "Message2", }); } // Moq heavily utilizes RefEmit, which does not work on most aot workloads [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))] public void CreateDisposeDisposesInnerServiceProvider() { var disposed = false; var provider = new Mock<ILoggerProvider>(); provider.Setup(p => p.Dispose()).Callback(() => disposed = true); var factory = LoggerFactory.Create(builder => builder.Services.AddSingleton(_=> provider.Object)); factory.Dispose(); Assert.True(disposed); } private class InternalScopeLoggerProvider : ILoggerProvider, ILogger { private IExternalScopeProvider _scopeProvider = new LoggerExternalScopeProvider(); public List<string> LogText { get; set; } = new List<string>(); public void Dispose() { } public ILogger CreateLogger(string categoryName) { return this; } public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter) { LogText.Add(formatter(state, exception)); _scopeProvider.ForEachScope((scope, builder) => builder.Add(scope.ToString()), LogText); } public bool IsEnabled(LogLevel logLevel) { return true; } public IDisposable BeginScope<TState>(TState state) { return _scopeProvider.Push(state); } } private class ExternalScopeLoggerProvider : ILoggerProvider, ISupportExternalScope, ILogger { public void SetScopeProvider(IExternalScopeProvider scopeProvider) { ScopeProvider = scopeProvider; } public IExternalScopeProvider ScopeProvider { get; set; } public int BeginScopeCalledTimes { get; set; } public List<string> LogText { get; set; } = new List<string>(); public void Dispose() { } public ILogger CreateLogger(string categoryName) { return this; } public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter) { LogText.Add(formatter(state, exception)); // Notice that other ILoggers maybe not call "ToString()" on the scope but enumerate it and this isn't covered by this implementation. // E.g. the SimpleConsoleFormatter calls "ToString()" like it's done here but the "JsonConsoleFormatter" enumerates a scope // if the Scope is of type IEnumerable<KeyValuePair<string, object>>. ScopeProvider.ForEachScope((scope, builder) => builder.Add(scope.ToString()), LogText); } public bool IsEnabled(LogLevel logLevel) { return true; } public IDisposable BeginScope<TState>(TState state) { BeginScopeCalledTimes++; return null; } } private class Dummy { public override string ToString() { return "DummyToString"; } } } internal static class ActivityExtensions { public static string GetSpanId(this Activity activity) { return activity.IdFormat switch { ActivityIdFormat.Hierarchical => activity.Id, ActivityIdFormat.W3C => activity.SpanId.ToHexString(), _ => null, } ?? string.Empty; } public static string GetTraceId(this Activity activity) { return activity.IdFormat switch { ActivityIdFormat.Hierarchical => activity.RootId, ActivityIdFormat.W3C => activity.TraceId.ToHexString(), _ => null, } ?? string.Empty; } public static string GetParentId(this Activity activity) { return activity.IdFormat switch { ActivityIdFormat.Hierarchical => activity.ParentId, ActivityIdFormat.W3C => activity.ParentSpanId.ToHexString(), _ => null, } ?? string.Empty; } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/coreclr/pal/tests/palsuite/c_runtime/vfprintf/test4/test4.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test4.c ** ** Purpose: Test #4 for the vfprintf function. Tests the pointer ** specifier (%p). ** ** **==========================================================================*/ #include <palsuite.h> #include "../vfprintf.h" PALTEST(c_runtime_vfprintf_test4_paltest_vfprintf_test4, "c_runtime/vfprintf/test4/paltest_vfprintf_test4") { void *ptr = (void*) 0x123456; INT64 lptr = I64(0x1234567887654321); if (PAL_Initialize(argc, argv)) { return FAIL; } /* ** Run only on 64 bit platforms */ #if defined(HOST_64BIT) Trace("Testing for 64 Bit Platforms \n"); DoPointerTest("%p", NULL, "NULL", "0000000000000000"); DoPointerTest("%p", ptr, "pointer to 0x123456", "0000000000123456"); DoPointerTest("%17p", ptr, "pointer to 0x123456", " 0000000000123456"); DoPointerTest("%17p", ptr, "pointer to 0x123456", " 0000000000123456"); DoPointerTest("%-17p", ptr, "pointer to 0x123456", "0000000000123456 "); DoPointerTest("%+p", ptr, "pointer to 0x123456", "0000000000123456"); DoPointerTest("%#p", ptr, "pointer to 0x123456", "0X0000000000123456"); DoPointerTest("%lp", ptr, "pointer to 0x123456", "00123456"); DoPointerTest("%hp", ptr, "pointer to 0x123456", "00003456"); DoPointerTest("%Lp", ptr, "pointer to 0x123456", "00123456"); DoI64Test("%I64p", lptr, "pointer to 0x1234567887654321", "1234567887654321"); #else Trace("Testing for Non 64 Bit Platforms \n"); DoPointerTest("%p", NULL, "NULL", "00000000"); DoPointerTest("%p", ptr, "pointer to 0x123456", "00123456"); DoPointerTest("%9p", ptr, "pointer to 0x123456", " 00123456"); DoPointerTest("%09p", ptr, "pointer to 0x123456", " 00123456"); DoPointerTest("%-9p", ptr, "pointer to 0x123456", "00123456 "); DoPointerTest("%+p", ptr, "pointer to 0x123456", "00123456"); DoPointerTest("%#p", ptr, "pointer to 0x123456", "0X00123456"); DoPointerTest("%lp", ptr, "pointer to 0x123456", "00123456"); DoPointerTest("%hp", ptr, "pointer to 0x123456", "00003456"); DoPointerTest("%Lp", ptr, "pointer to 0x123456", "00123456"); DoI64Test("%I64p", lptr, "pointer to 0x1234567887654321", "1234567887654321"); #endif 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: test4.c ** ** Purpose: Test #4 for the vfprintf function. Tests the pointer ** specifier (%p). ** ** **==========================================================================*/ #include <palsuite.h> #include "../vfprintf.h" PALTEST(c_runtime_vfprintf_test4_paltest_vfprintf_test4, "c_runtime/vfprintf/test4/paltest_vfprintf_test4") { void *ptr = (void*) 0x123456; INT64 lptr = I64(0x1234567887654321); if (PAL_Initialize(argc, argv)) { return FAIL; } /* ** Run only on 64 bit platforms */ #if defined(HOST_64BIT) Trace("Testing for 64 Bit Platforms \n"); DoPointerTest("%p", NULL, "NULL", "0000000000000000"); DoPointerTest("%p", ptr, "pointer to 0x123456", "0000000000123456"); DoPointerTest("%17p", ptr, "pointer to 0x123456", " 0000000000123456"); DoPointerTest("%17p", ptr, "pointer to 0x123456", " 0000000000123456"); DoPointerTest("%-17p", ptr, "pointer to 0x123456", "0000000000123456 "); DoPointerTest("%+p", ptr, "pointer to 0x123456", "0000000000123456"); DoPointerTest("%#p", ptr, "pointer to 0x123456", "0X0000000000123456"); DoPointerTest("%lp", ptr, "pointer to 0x123456", "00123456"); DoPointerTest("%hp", ptr, "pointer to 0x123456", "00003456"); DoPointerTest("%Lp", ptr, "pointer to 0x123456", "00123456"); DoI64Test("%I64p", lptr, "pointer to 0x1234567887654321", "1234567887654321"); #else Trace("Testing for Non 64 Bit Platforms \n"); DoPointerTest("%p", NULL, "NULL", "00000000"); DoPointerTest("%p", ptr, "pointer to 0x123456", "00123456"); DoPointerTest("%9p", ptr, "pointer to 0x123456", " 00123456"); DoPointerTest("%09p", ptr, "pointer to 0x123456", " 00123456"); DoPointerTest("%-9p", ptr, "pointer to 0x123456", "00123456 "); DoPointerTest("%+p", ptr, "pointer to 0x123456", "00123456"); DoPointerTest("%#p", ptr, "pointer to 0x123456", "0X00123456"); DoPointerTest("%lp", ptr, "pointer to 0x123456", "00123456"); DoPointerTest("%hp", ptr, "pointer to 0x123456", "00003456"); DoPointerTest("%Lp", ptr, "pointer to 0x123456", "00123456"); DoI64Test("%I64p", lptr, "pointer to 0x1234567887654321", "1234567887654321"); #endif PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/Common/src/System/Net/Http/aspnetcore/Http3/QPack/HeaderField.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.Text; namespace System.Net.Http.QPack { internal readonly struct HeaderField { // https://quicwg.org/base-drafts/draft-ietf-quic-http.html#section-4.1.1.3-1 // public for internal use in aspnetcore public const int RfcOverhead = 32; public HeaderField(byte[] name, byte[] value) { Debug.Assert(name.Length > 0); Name = name; Value = value; } public byte[] Name { get; } public byte[] Value { get; } public int Length => GetLength(Name.Length, Value.Length); public static int GetLength(int nameLength, int valueLength) => nameLength + valueLength + RfcOverhead; public override string ToString() { if (Name != null) { return Encoding.ASCII.GetString(Name) + ": " + Encoding.ASCII.GetString(Value); } else { return "<empty>"; } } } }
// 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.Text; namespace System.Net.Http.QPack { internal readonly struct HeaderField { // https://quicwg.org/base-drafts/draft-ietf-quic-http.html#section-4.1.1.3-1 // public for internal use in aspnetcore public const int RfcOverhead = 32; public HeaderField(byte[] name, byte[] value) { Debug.Assert(name.Length > 0); Name = name; Value = value; } public byte[] Name { get; } public byte[] Value { get; } public int Length => GetLength(Name.Length, Value.Length); public static int GetLength(int nameLength, int valueLength) => nameLength + valueLength + RfcOverhead; public override string ToString() { if (Name != null) { return Encoding.ASCII.GetString(Name) + ": " + Encoding.ASCII.GetString(Value); } else { return "<empty>"; } } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/JIT/HardwareIntrinsics/General/Vector128/GreaterThanOrEqualAny.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; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void GreaterThanOrEqualAnyDouble() { var test = new VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble(); // 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__GreaterThanOrEqualAnyDouble { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(Double[] inArray1, Double[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Double>(); 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<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Double, 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<Double> _fld1; public Vector128<Double> _fld2; 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<Vector128<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); return testStruct; } public void RunStructFldScenario(VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble testClass) { var result = Vector128.GreaterThanOrEqualAny(_fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Double[] _data2 = new Double[Op2ElementCount]; private static Vector128<Double> _clsVar1; private static Vector128<Double> _clsVar2; private Vector128<Double> _fld1; private Vector128<Double> _fld2; private DataTable _dataTable; static VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); } public VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Vector128.GreaterThanOrEqualAny( Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var method = typeof(Vector128).GetMethod(nameof(Vector128.GreaterThanOrEqualAny), new Type[] { typeof(Vector128<Double>), typeof(Vector128<Double>) }); if (method is null) { method = typeof(Vector128).GetMethod(nameof(Vector128.GreaterThanOrEqualAny), 1, new Type[] { typeof(Vector128<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(Vector128<>).MakeGenericType(Type.MakeGenericMethodParameter(0)) }); } if (method.IsGenericMethodDefinition) { method = method.MakeGenericMethod(typeof(Double)); } var result = method.Invoke(null, new object[] { Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Vector128.GreaterThanOrEqualAny( _clsVar1, _clsVar2 ); ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr); var result = Vector128.GreaterThanOrEqualAny(op1, op2); ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble(); var result = Vector128.GreaterThanOrEqualAny(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Vector128.GreaterThanOrEqualAny(_fld1, _fld2); ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Vector128.GreaterThanOrEqualAny(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<Double> op1, Vector128<Double> op2, bool result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] inArray2 = new Double[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] inArray2 = new Double[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<Double>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(Double[] left, Double[] right, bool result, [CallerMemberName] string method = "") { bool succeeded = true; var expectedResult = false; for (var i = 0; i < Op1ElementCount; i++) { expectedResult |= (left[i] >= right[i]); } succeeded = (expectedResult == result); if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector128)}.{nameof(Vector128.GreaterThanOrEqualAny)}<Double>(Vector128<Double>, Vector128<Double>): {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 GreaterThanOrEqualAnyDouble() { var test = new VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble(); // 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__GreaterThanOrEqualAnyDouble { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(Double[] inArray1, Double[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Double>(); 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<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Double, 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<Double> _fld1; public Vector128<Double> _fld2; 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<Vector128<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref testStruct._fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); return testStruct; } public void RunStructFldScenario(VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble testClass) { var result = Vector128.GreaterThanOrEqualAny(_fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Double[] _data2 = new Double[Op2ElementCount]; private static Vector128<Double> _clsVar1; private static Vector128<Double> _clsVar2; private Vector128<Double> _fld1; private Vector128<Double> _fld2; private DataTable _dataTable; static VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _clsVar2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); } public VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Double>, byte>(ref _fld2), ref Unsafe.As<Double, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Double>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetDouble(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Vector128.GreaterThanOrEqualAny( Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var method = typeof(Vector128).GetMethod(nameof(Vector128.GreaterThanOrEqualAny), new Type[] { typeof(Vector128<Double>), typeof(Vector128<Double>) }); if (method is null) { method = typeof(Vector128).GetMethod(nameof(Vector128.GreaterThanOrEqualAny), 1, new Type[] { typeof(Vector128<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(Vector128<>).MakeGenericType(Type.MakeGenericMethodParameter(0)) }); } if (method.IsGenericMethodDefinition) { method = method.MakeGenericMethod(typeof(Double)); } var result = method.Invoke(null, new object[] { Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Vector128.GreaterThanOrEqualAny( _clsVar1, _clsVar2 ); ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<Double>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Double>>(_dataTable.inArray2Ptr); var result = Vector128.GreaterThanOrEqualAny(op1, op2); ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBooleanBinaryOpTest__GreaterThanOrEqualAnyDouble(); var result = Vector128.GreaterThanOrEqualAny(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Vector128.GreaterThanOrEqualAny(_fld1, _fld2); ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Vector128.GreaterThanOrEqualAny(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<Double> op1, Vector128<Double> op2, bool result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] inArray2 = new Double[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] inArray2 = new Double[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<Double>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(Double[] left, Double[] right, bool result, [CallerMemberName] string method = "") { bool succeeded = true; var expectedResult = false; for (var i = 0; i < Op1ElementCount; i++) { expectedResult |= (left[i] >= right[i]); } succeeded = (expectedResult == result); if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector128)}.{nameof(Vector128.GreaterThanOrEqualAny)}<Double>(Vector128<Double>, Vector128<Double>): {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
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/baseservices/threading/generics/threadstart/GThread07.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="thread07.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="thread07.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterHelper.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.CompilerServices; namespace System.Text.Json { internal static partial class JsonWriterHelper { public static void WriteIndentation(Span<byte> buffer, int indent) { Debug.Assert(indent % JsonConstants.SpacesPerIndent == 0); Debug.Assert(buffer.Length >= indent); // Based on perf tests, the break-even point where vectorized Fill is faster // than explicitly writing the space in a loop is 8. if (indent < 8) { int i = 0; while (i < indent) { buffer[i++] = JsonConstants.Space; buffer[i++] = JsonConstants.Space; } } else { buffer.Slice(0, indent).Fill(JsonConstants.Space); } } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateProperty(ReadOnlySpan<byte> propertyName) { if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize) ThrowHelper.ThrowArgumentException_PropertyNameTooLarge(propertyName.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateValue(ReadOnlySpan<byte> value) { if (value.Length > JsonConstants.MaxUnescapedTokenSize) ThrowHelper.ThrowArgumentException_ValueTooLarge(value.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateBytes(ReadOnlySpan<byte> bytes) { if (bytes.Length > JsonConstants.MaxBase64ValueTokenSize) ThrowHelper.ThrowArgumentException_ValueTooLarge(bytes.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateDouble(double value) { if (!JsonHelpers.IsFinite(value)) { ThrowHelper.ThrowArgumentException_ValueNotSupported(); } } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateSingle(float value) { if (!JsonHelpers.IsFinite(value)) { ThrowHelper.ThrowArgumentException_ValueNotSupported(); } } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateProperty(ReadOnlySpan<char> propertyName) { if (propertyName.Length > JsonConstants.MaxCharacterTokenSize) ThrowHelper.ThrowArgumentException_PropertyNameTooLarge(propertyName.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateValue(ReadOnlySpan<char> value) { if (value.Length > JsonConstants.MaxCharacterTokenSize) ThrowHelper.ThrowArgumentException_ValueTooLarge(value.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value) { if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || value.Length > JsonConstants.MaxUnescapedTokenSize) ThrowHelper.ThrowArgumentException(propertyName, value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<char> value) { if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize || value.Length > JsonConstants.MaxCharacterTokenSize) ThrowHelper.ThrowArgumentException(propertyName, value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> value) { if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize || value.Length > JsonConstants.MaxUnescapedTokenSize) ThrowHelper.ThrowArgumentException(propertyName, value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value) { if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || value.Length > JsonConstants.MaxCharacterTokenSize) ThrowHelper.ThrowArgumentException(propertyName, value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndBytes(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes) { if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || bytes.Length > JsonConstants.MaxBase64ValueTokenSize) ThrowHelper.ThrowArgumentException(propertyName, bytes); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndBytes(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> bytes) { if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize || bytes.Length > JsonConstants.MaxBase64ValueTokenSize) ThrowHelper.ThrowArgumentException(propertyName, bytes); } internal static void ValidateNumber(ReadOnlySpan<byte> utf8FormattedNumber) { // This is a simplified version of the number reader from Utf8JsonReader.TryGetNumber, // because it doesn't need to deal with "NeedsMoreData", or remembering the format. // // The Debug.Asserts in this method should change to validated ArgumentExceptions if/when // writing a formatted number becomes public API. Debug.Assert(!utf8FormattedNumber.IsEmpty); int i = 0; if (utf8FormattedNumber[i] == '-') { i++; if (utf8FormattedNumber.Length <= i) { throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); } } if (utf8FormattedNumber[i] == '0') { i++; } else { while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i])) { i++; } } if (i == utf8FormattedNumber.Length) { return; } // The non digit character inside the number byte val = utf8FormattedNumber[i]; if (val == '.') { i++; if (utf8FormattedNumber.Length <= i) { throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); } while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i])) { i++; } if (i == utf8FormattedNumber.Length) { return; } Debug.Assert(i < utf8FormattedNumber.Length); val = utf8FormattedNumber[i]; } if (val == 'e' || val == 'E') { i++; if (utf8FormattedNumber.Length <= i) { throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); } val = utf8FormattedNumber[i]; if (val == '+' || val == '-') { i++; } } else { throw new ArgumentException( SR.Format(SR.ExpectedEndOfDigitNotFound, ThrowHelper.GetPrintableString(val)), nameof(utf8FormattedNumber)); } if (utf8FormattedNumber.Length <= i) { throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); } while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i])) { i++; } if (i != utf8FormattedNumber.Length) { throw new ArgumentException( SR.Format(SR.ExpectedEndOfDigitNotFound, ThrowHelper.GetPrintableString(utf8FormattedNumber[i])), nameof(utf8FormattedNumber)); } } } }
// 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.CompilerServices; namespace System.Text.Json { internal static partial class JsonWriterHelper { public static void WriteIndentation(Span<byte> buffer, int indent) { Debug.Assert(indent % JsonConstants.SpacesPerIndent == 0); Debug.Assert(buffer.Length >= indent); // Based on perf tests, the break-even point where vectorized Fill is faster // than explicitly writing the space in a loop is 8. if (indent < 8) { int i = 0; while (i < indent) { buffer[i++] = JsonConstants.Space; buffer[i++] = JsonConstants.Space; } } else { buffer.Slice(0, indent).Fill(JsonConstants.Space); } } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateProperty(ReadOnlySpan<byte> propertyName) { if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize) ThrowHelper.ThrowArgumentException_PropertyNameTooLarge(propertyName.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateValue(ReadOnlySpan<byte> value) { if (value.Length > JsonConstants.MaxUnescapedTokenSize) ThrowHelper.ThrowArgumentException_ValueTooLarge(value.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateBytes(ReadOnlySpan<byte> bytes) { if (bytes.Length > JsonConstants.MaxBase64ValueTokenSize) ThrowHelper.ThrowArgumentException_ValueTooLarge(bytes.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateDouble(double value) { if (!JsonHelpers.IsFinite(value)) { ThrowHelper.ThrowArgumentException_ValueNotSupported(); } } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateSingle(float value) { if (!JsonHelpers.IsFinite(value)) { ThrowHelper.ThrowArgumentException_ValueNotSupported(); } } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateProperty(ReadOnlySpan<char> propertyName) { if (propertyName.Length > JsonConstants.MaxCharacterTokenSize) ThrowHelper.ThrowArgumentException_PropertyNameTooLarge(propertyName.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidateValue(ReadOnlySpan<char> value) { if (value.Length > JsonConstants.MaxCharacterTokenSize) ThrowHelper.ThrowArgumentException_ValueTooLarge(value.Length); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value) { if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || value.Length > JsonConstants.MaxUnescapedTokenSize) ThrowHelper.ThrowArgumentException(propertyName, value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<char> value) { if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize || value.Length > JsonConstants.MaxCharacterTokenSize) ThrowHelper.ThrowArgumentException(propertyName, value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndValue(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> value) { if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize || value.Length > JsonConstants.MaxUnescapedTokenSize) ThrowHelper.ThrowArgumentException(propertyName, value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndValue(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value) { if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || value.Length > JsonConstants.MaxCharacterTokenSize) ThrowHelper.ThrowArgumentException(propertyName, value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndBytes(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes) { if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || bytes.Length > JsonConstants.MaxBase64ValueTokenSize) ThrowHelper.ThrowArgumentException(propertyName, bytes); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ValidatePropertyAndBytes(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> bytes) { if (propertyName.Length > JsonConstants.MaxUnescapedTokenSize || bytes.Length > JsonConstants.MaxBase64ValueTokenSize) ThrowHelper.ThrowArgumentException(propertyName, bytes); } internal static void ValidateNumber(ReadOnlySpan<byte> utf8FormattedNumber) { // This is a simplified version of the number reader from Utf8JsonReader.TryGetNumber, // because it doesn't need to deal with "NeedsMoreData", or remembering the format. // // The Debug.Asserts in this method should change to validated ArgumentExceptions if/when // writing a formatted number becomes public API. Debug.Assert(!utf8FormattedNumber.IsEmpty); int i = 0; if (utf8FormattedNumber[i] == '-') { i++; if (utf8FormattedNumber.Length <= i) { throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); } } if (utf8FormattedNumber[i] == '0') { i++; } else { while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i])) { i++; } } if (i == utf8FormattedNumber.Length) { return; } // The non digit character inside the number byte val = utf8FormattedNumber[i]; if (val == '.') { i++; if (utf8FormattedNumber.Length <= i) { throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); } while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i])) { i++; } if (i == utf8FormattedNumber.Length) { return; } Debug.Assert(i < utf8FormattedNumber.Length); val = utf8FormattedNumber[i]; } if (val == 'e' || val == 'E') { i++; if (utf8FormattedNumber.Length <= i) { throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); } val = utf8FormattedNumber[i]; if (val == '+' || val == '-') { i++; } } else { throw new ArgumentException( SR.Format(SR.ExpectedEndOfDigitNotFound, ThrowHelper.GetPrintableString(val)), nameof(utf8FormattedNumber)); } if (utf8FormattedNumber.Length <= i) { throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); } while (i < utf8FormattedNumber.Length && JsonHelpers.IsDigit(utf8FormattedNumber[i])) { i++; } if (i != utf8FormattedNumber.Length) { throw new ArgumentException( SR.Format(SR.ExpectedEndOfDigitNotFound, ThrowHelper.GetPrintableString(utf8FormattedNumber[i])), nameof(utf8FormattedNumber)); } } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/baseservices/exceptions/unittests/CollidedUnwind.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="CollidedUnwind.cs" /> <Compile Include="trace.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="CollidedUnwind.cs" /> <Compile Include="trace.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest245/Generated245.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated245.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated245.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/baseservices/TieredCompilation/BasicTest_QuickJitForLoopsOff_R2r.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <Optimize>true</Optimize> <!-- This is an explicit crossgen test --> <AlwaysUseCrossGen2>true</AlwaysUseCrossGen2> </PropertyGroup> <ItemGroup> <Compile Include="BasicTest.cs" /> </ItemGroup> <PropertyGroup> <CLRTestBatchPreCommands><![CDATA[ $(CLRTestBatchPreCommands) set COMPlus_TC_QuickJitForLoops=0 ]]></CLRTestBatchPreCommands> <BashCLRTestPreCommands><![CDATA[ $(BashCLRTestPreCommands) export COMPlus_TC_QuickJitForLoops=0 ]]></BashCLRTestPreCommands> </PropertyGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <Optimize>true</Optimize> <!-- This is an explicit crossgen test --> <AlwaysUseCrossGen2>true</AlwaysUseCrossGen2> </PropertyGroup> <ItemGroup> <Compile Include="BasicTest.cs" /> </ItemGroup> <PropertyGroup> <CLRTestBatchPreCommands><![CDATA[ $(CLRTestBatchPreCommands) set COMPlus_TC_QuickJitForLoops=0 ]]></CLRTestBatchPreCommands> <BashCLRTestPreCommands><![CDATA[ $(BashCLRTestPreCommands) export COMPlus_TC_QuickJitForLoops=0 ]]></BashCLRTestPreCommands> </PropertyGroup> </Project>
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.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.Numerics; using Point = System.Numerics.Vector2; namespace GitHub_21854 { public class test { static int Main(string[] args) { try { var unused = new object[] { Vector<int>.Zero }; } catch (Exception e) { Console.WriteLine("FAILED with exception: " + e.Message); return -1; } 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; using System.Numerics; using Point = System.Numerics.Vector2; namespace GitHub_21854 { public class test { static int Main(string[] args) { try { var unused = new object[] { Vector<int>.Zero }; } catch (Exception e) { Console.WriteLine("FAILED with exception: " + e.Message); return -1; } return 100; } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest907/Generated907.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 Generated907 { .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_C1379`1<T0> extends class G2_C408`2<class BaseClass1,class BaseClass1> implements class IBase2`2<class BaseClass0,class BaseClass1> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G3_C1379::Method7.15856<" 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 ClassMethod4148() cil managed noinlining { ldstr "G3_C1379::ClassMethod4148.15857()" ret } .method public hidebysig newslot virtual instance string ClassMethod4149() cil managed noinlining { ldstr "G3_C1379::ClassMethod4149.15858()" ret } .method public hidebysig newslot virtual instance string 'G2_C408<class BaseClass1,class BaseClass1>.ClassMethod2168'() cil managed noinlining { .override method instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ret } .method public hidebysig newslot virtual instance string 'G2_C408<class BaseClass1,class BaseClass1>.ClassMethod2170'<M0>() cil managed noinlining { .override method instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<[1]>() ldstr "G3_C1379::ClassMethod2170.MI.15860<" 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 class G2_C408`2<class BaseClass1,class BaseClass1>::.ctor() ret } } .class public G2_C408`2<T0, T1> extends class G1_C8`2<class BaseClass0,!T0> implements class IBase1`1<!T1>, class IBase2`2<class BaseClass0,!T0> { .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G2_C408::Method4.8643()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C408::Method5.8644()" ret } .method public hidebysig newslot virtual instance string 'IBase1<T1>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<!T1>::Method5() ldstr "G2_C408::Method5.MI.8645()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C408::Method6.8646<" 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_C408::Method6.MI.8647<" 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 Method7<M0>() cil managed noinlining { ldstr "G2_C408::Method7.8648<" 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 ClassMethod2168() cil managed noinlining { ldstr "G2_C408::ClassMethod2168.8649()" ret } .method public hidebysig newslot virtual instance string ClassMethod2169() cil managed noinlining { ldstr "G2_C408::ClassMethod2169.8650()" ret } .method public hidebysig newslot virtual instance string ClassMethod2170<M0>() cil managed noinlining { ldstr "G2_C408::ClassMethod2170.8651<" 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 'G1_C8<class BaseClass0,T0>.ClassMethod1332'() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass0,!T0>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ret } .method public hidebysig newslot virtual instance string 'G1_C8<class BaseClass0,T0>.ClassMethod1333'() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass0,!T0>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G1_C8`2<class BaseClass0,!T0>::.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 Generated907 { .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_C1379.T<T0,(class G3_C1379`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 22 .locals init (string[] actualResults) ldc.i4.s 17 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1379.T<T0,(class G3_C1379`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 17 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod4148() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod4149() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1379.A<(class G3_C1379`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 22 .locals init (string[] actualResults) ldc.i4.s 17 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1379.A<(class G3_C1379`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 17 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod4148() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod4149() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`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_C1379.B<(class G3_C1379`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 22 .locals init (string[] actualResults) ldc.i4.s 17 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1379.B<(class G3_C1379`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 17 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod4148() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod4149() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`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_C408.T.T<T0,T1,(class G2_C408`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.T.T<T0,T1,(class G2_C408`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.A.T<T1,(class G2_C408`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.A.T<T1,(class G2_C408`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`2<class BaseClass0,!!T1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.A.A<(class G2_C408`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.A.A<(class G2_C408`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.A.B<(class G2_C408`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.A.B<(class G2_C408`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.B.T<T1,(class G2_C408`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.B.T<T1,(class G2_C408`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`2<class BaseClass1,!!T1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.B.A<(class G2_C408`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.B.A<(class G2_C408`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.B.B<(class G2_C408`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.B.B<(class G2_C408`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C1379`1<class BaseClass0>::.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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`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_C1379::Method7.15856<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`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_C1379`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_C1379`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_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod4149() ldstr "G3_C1379::ClassMethod4149.15858()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod4148() ldstr "G3_C1379::ClassMethod4148.15857()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method7<object>() ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2170<object>() ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1379`1<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 G3_C1379`1<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 G3_C1379`1<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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<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 G3_C1379`1<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 G3_C1379`1<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 G3_C1379`1<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 G3_C1379`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_C1379::Method7.15856<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`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_C1379`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_C1379`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_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod4149() ldstr "G3_C1379::ClassMethod4149.15858()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod4148() ldstr "G3_C1379::ClassMethod4148.15857()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method7<object>() ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2170<object>() ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C408`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 G2_C408`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 G2_C408`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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`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 G2_C408`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 G2_C408`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 G2_C408`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 G2_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`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_C408`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_C408`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_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2170<object>() ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2168() ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C408`2<class BaseClass0,class BaseClass1>::.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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`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_C408`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_C408`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_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2170<object>() ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2168() ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C408`2<class BaseClass1,class BaseClass0>::.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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2170<object>() ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2168() ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C1379`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.B<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.A.B<class G3_C1379`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 Generated907::M.IBase0<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass1,class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.T<class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.B<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.B<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G3_C1379::ClassMethod4148.15857()#G3_C1379::ClassMethod4149.15858()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.G3_C1379.T<class BaseClass0,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G3_C1379::ClassMethod4148.15857()#G3_C1379::ClassMethod4149.15858()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.G3_C1379.A<class G3_C1379`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1379`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.B<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.A.B<class G3_C1379`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 Generated907::M.IBase0<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass1,class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.B<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.B<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G3_C1379::ClassMethod4148.15857()#G3_C1379::ClassMethod4149.15858()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.G3_C1379.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G3_C1379::ClassMethod4148.15857()#G3_C1379::ClassMethod4149.15858()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.G3_C1379.B<class G3_C1379`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C408`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.A<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.A<class G2_C408`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 Generated907::M.IBase0<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.B<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.A.A<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C408`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.A<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.A<class G2_C408`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 Generated907::M.IBase0<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.B<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.A.T<class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.A.B<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.B<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C408`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.B<class G2_C408`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.B<class G2_C408`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 Generated907::M.IBase0<class G2_C408`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass1,class BaseClass0,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.T<class BaseClass0,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.A<class G2_C408`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G2_C408`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C408`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.B<class G2_C408`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.B<class G2_C408`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 Generated907::M.IBase0<class G2_C408`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass1,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.B<class G2_C408`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.B<class G2_C408`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G2_C408`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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated907::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 Generated907::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 Generated907::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_C1379`1<class BaseClass0>::.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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod4149() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod4149.15858()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod4148() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod4148.15857()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod2170<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod2169() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod2168() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method5() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method5.8644()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method4() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod1333() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod1332() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method3<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method2<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method1() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method0() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod4149() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod4149.15858()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod4148() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod4148.15857()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod2170<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod2169() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod2168() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method5() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method5.8644()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method4() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod1333() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod1332() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method3<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method2<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method1() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method0() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2170<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2169() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2168() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C408`2<class BaseClass0,class BaseClass1>::.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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2170<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2169() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2168() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1333() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1332() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C408`2<class BaseClass1,class BaseClass0>::.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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2170<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2169() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2168() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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 Generated907::MethodCallingTest() call void Generated907::ConstrainedCallsTest() call void Generated907::StructConstrainedInterfaceCallsTest() call void Generated907::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 Generated907 { .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_C1379`1<T0> extends class G2_C408`2<class BaseClass1,class BaseClass1> implements class IBase2`2<class BaseClass0,class BaseClass1> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G3_C1379::Method7.15856<" 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 ClassMethod4148() cil managed noinlining { ldstr "G3_C1379::ClassMethod4148.15857()" ret } .method public hidebysig newslot virtual instance string ClassMethod4149() cil managed noinlining { ldstr "G3_C1379::ClassMethod4149.15858()" ret } .method public hidebysig newslot virtual instance string 'G2_C408<class BaseClass1,class BaseClass1>.ClassMethod2168'() cil managed noinlining { .override method instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ret } .method public hidebysig newslot virtual instance string 'G2_C408<class BaseClass1,class BaseClass1>.ClassMethod2170'<M0>() cil managed noinlining { .override method instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<[1]>() ldstr "G3_C1379::ClassMethod2170.MI.15860<" 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 class G2_C408`2<class BaseClass1,class BaseClass1>::.ctor() ret } } .class public G2_C408`2<T0, T1> extends class G1_C8`2<class BaseClass0,!T0> implements class IBase1`1<!T1>, class IBase2`2<class BaseClass0,!T0> { .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G2_C408::Method4.8643()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C408::Method5.8644()" ret } .method public hidebysig newslot virtual instance string 'IBase1<T1>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<!T1>::Method5() ldstr "G2_C408::Method5.MI.8645()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C408::Method6.8646<" 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_C408::Method6.MI.8647<" 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 Method7<M0>() cil managed noinlining { ldstr "G2_C408::Method7.8648<" 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 ClassMethod2168() cil managed noinlining { ldstr "G2_C408::ClassMethod2168.8649()" ret } .method public hidebysig newslot virtual instance string ClassMethod2169() cil managed noinlining { ldstr "G2_C408::ClassMethod2169.8650()" ret } .method public hidebysig newslot virtual instance string ClassMethod2170<M0>() cil managed noinlining { ldstr "G2_C408::ClassMethod2170.8651<" 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 'G1_C8<class BaseClass0,T0>.ClassMethod1332'() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass0,!T0>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ret } .method public hidebysig newslot virtual instance string 'G1_C8<class BaseClass0,T0>.ClassMethod1333'() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass0,!T0>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G1_C8`2<class BaseClass0,!T0>::.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 Generated907 { .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_C1379.T<T0,(class G3_C1379`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 22 .locals init (string[] actualResults) ldc.i4.s 17 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1379.T<T0,(class G3_C1379`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 17 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod4148() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::ClassMethod4149() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1379.A<(class G3_C1379`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 22 .locals init (string[] actualResults) ldc.i4.s 17 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1379.A<(class G3_C1379`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 17 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod4148() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod4149() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`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_C1379.B<(class G3_C1379`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 22 .locals init (string[] actualResults) ldc.i4.s 17 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1379.B<(class G3_C1379`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 17 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod4148() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod4149() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1379`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_C408.T.T<T0,T1,(class G2_C408`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.T.T<T0,T1,(class G2_C408`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.A.T<T1,(class G2_C408`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.A.T<T1,(class G2_C408`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`2<class BaseClass0,!!T1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.A.A<(class G2_C408`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.A.A<(class G2_C408`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.A.B<(class G2_C408`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.A.B<(class G2_C408`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.B.T<T1,(class G2_C408`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.B.T<T1,(class G2_C408`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`2<class BaseClass1,!!T1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.B.A<(class G2_C408`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.B.A<(class G2_C408`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408.B.B<(class G2_C408`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 20 .locals init (string[] actualResults) ldc.i4.s 15 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C408.B.B<(class G2_C408`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 15 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G2_C408`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_C1379`1<class BaseClass0>::.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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>" 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 G3_C1379`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_C1379::Method7.15856<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`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_C1379`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_C1379`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_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod4149() ldstr "G3_C1379::ClassMethod4149.15858()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod4148() ldstr "G3_C1379::ClassMethod4148.15857()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method7<object>() ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2170<object>() ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass0> callvirt instance string class G3_C1379`1<class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1379`1<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 G3_C1379`1<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 G3_C1379`1<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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<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 G3_C1379`1<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 G3_C1379`1<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 G3_C1379`1<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 G3_C1379`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_C1379::Method7.15856<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`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_C1379`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_C1379`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_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod4149() ldstr "G3_C1379::ClassMethod4149.15858()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod4148() ldstr "G3_C1379::ClassMethod4148.15857()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method7<object>() ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2170<object>() ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod2168() ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1379`1<class BaseClass1> callvirt instance string class G3_C1379`1<class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C408`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 G2_C408`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 G2_C408`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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`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 G2_C408`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 G2_C408`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 G2_C408`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 G2_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`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_C408`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_C408`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_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2170<object>() ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2168() ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C408`2<class BaseClass0,class BaseClass1>::.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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`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_C408`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_C408`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_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2170<object>() ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2168() ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C408`2<class BaseClass1,class BaseClass0>::.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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2170<object>() ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2168() ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,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 G2_C408`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_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`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_C408`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_C408`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_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C408`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C1379`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.B<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.A.B<class G3_C1379`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 Generated907::M.IBase0<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass1,class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.T<class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.B<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass1,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.B<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G3_C1379`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G3_C1379::ClassMethod4148.15857()#G3_C1379::ClassMethod4149.15858()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.G3_C1379.T<class BaseClass0,class G3_C1379`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G3_C1379::ClassMethod4148.15857()#G3_C1379::ClassMethod4149.15858()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.G3_C1379.A<class G3_C1379`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1379`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.B<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.IBase2.A.B<class G3_C1379`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 Generated907::M.IBase0<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass1,class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.B<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.B<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G3_C1379`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G3_C1379::ClassMethod4148.15857()#G3_C1379::ClassMethod4149.15858()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.G3_C1379.T<class BaseClass1,class G3_C1379`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G3_C1379::ClassMethod2168.MI.15859()#G2_C408::ClassMethod2169.8650()#G3_C1379::ClassMethod2170.MI.15860<System.Object>()#G3_C1379::ClassMethod4148.15857()#G3_C1379::ClassMethod4149.15858()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G3_C1379::Method7.15856<System.Object>()#" call void Generated907::M.G3_C1379.B<class G3_C1379`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C408`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.A<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.A<class G2_C408`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 Generated907::M.IBase0<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.B<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.A.A<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G2_C408`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C408`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.A<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.A<class G2_C408`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 Generated907::M.IBase0<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.B<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.A.T<class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.A.B<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass1,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.B<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G2_C408`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G2_C408`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C408`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.B<class G2_C408`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.B<class G2_C408`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 Generated907::M.IBase0<class G2_C408`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass1,class BaseClass0,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.T<class BaseClass0,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.A<class G2_C408`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G2_C408`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G2_C408`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C408`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#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 Generated907::M.G1_C8.A.B<class G2_C408`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.IBase2.A.B<class G2_C408`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 Generated907::M.IBase0<class G2_C408`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.T.T<class BaseClass1,class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::ClassMethod1332.MI.8652()#G2_C408::ClassMethod1333.MI.8653()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C408::ClassMethod2168.8649()#G2_C408::ClassMethod2169.8650()#G2_C408::ClassMethod2170.8651<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C408::Method4.8643()#G2_C408::Method5.8644()#G2_C408::Method6.8646<System.Object>()#G2_C408::Method7.8648<System.Object>()#" call void Generated907::M.G2_C408.B.B<class G2_C408`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass1,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.B<class G2_C408`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.T<class BaseClass0,class G2_C408`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C408::Method4.8643()#G2_C408::Method5.MI.8645()#G2_C408::Method6.MI.8647<System.Object>()#" call void Generated907::M.IBase1.A<class G2_C408`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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::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 Generated907::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated907::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 Generated907::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 Generated907::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_C1379`1<class BaseClass0>::.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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<class BaseClass0>" 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 G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`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_C1379`1<class BaseClass0>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod4149() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod4149.15858()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod4148() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod4148.15857()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod2170<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod2169() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod2168() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method5() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method5.8644()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method4() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod1333() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::ClassMethod1332() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method3<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method2<object>() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method1() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass0>::Method0() calli default string(class G3_C1379`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1379`1<class BaseClass0> on type class G3_C1379`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`1<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 G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`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_C1379`1<class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod4149() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod4149.15858()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod4148() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod4148.15857()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::Method7.15856<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod2170<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod2170.MI.15860<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod2169() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod2168() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G3_C1379::ClassMethod2168.MI.15859()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method5() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method5.8644()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method4() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod1333() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::ClassMethod1332() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method3<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method2<object>() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method1() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1379`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1379`1<class BaseClass1>::Method0() calli default string(class G3_C1379`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1379`1<class BaseClass1> on type class G3_C1379`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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 G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2170<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2169() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod2168() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G2_C408`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass0>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C408`2<class BaseClass0,class BaseClass1>::.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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" 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 G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2170<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2169() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod2168() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1333() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::ClassMethod1332() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G2_C408`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass0,class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C408`2<class BaseClass1,class BaseClass0>::.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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass0>" 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 G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2170<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2169() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod2168() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G2_C408`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass0>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`2<class BaseClass1,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 G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2170<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod2170.8651<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2169() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod2169.8650()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod2168() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod2168.8649()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method7.8648<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method6.8646<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method5.8644()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod1333.MI.8653()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::ClassMethod1332.MI.8652()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C408`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C408`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C408`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C408`2<class BaseClass1,class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method4.8643()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method5.MI.8645()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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_C408`2<class BaseClass1,class BaseClass1>) ldstr "G2_C408::Method6.MI.8647<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C408`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 Generated907::MethodCallingTest() call void Generated907::ConstrainedCallsTest() call void Generated907::StructConstrainedInterfaceCallsTest() call void Generated907::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/JIT/jit64/opt/lur/lur_01.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 { } .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly test {} // The loop sould get unrolled and the else ran twice. // In the origial bug there was a fall through with the if. .class test extends [mscorlib]System.Object { .method public static int32 main() { .entrypoint .locals init (float32 V_0, float32 V_1, int32 V_2, uint32 V_3) IL_0000: ldc.r4 1.2 IL_0005: stloc V_0 //v_0=1.2 IL_0009: ldc.r4 1.5 IL_000e: stloc V_1 //v_1=1.5 IL_0012: ldc.i4 98 IL_0017: stloc V_2 //v_2=98 IL_001b: ldc.i4.2 IL_001c: stloc.s V_3 //v_3=2 IL_001e: ldloc.s V_0 IL_0020: call float32 test::fabs(float32) IL_0025: ldloc.s V_1 IL_0027: blt.un.s IL_002e // if (fabs(v_0)<= v_1) goto 2e IL_0029: ldc.i4.0 IL_002a: stloc.s V_2 IL_002c: br.s IL_0034 IL_002e: ldloc.s V_2 IL_0030: ldc.i4.1 IL_0031: add IL_0032: stloc.s V_2 //v_2+=1 IL_0034: ldloc.s V_3 IL_0036: ldc.i4.1 IL_0037: sub IL_0038: stloc.s V_3 //v_2+=-1 IL_003a: ldloc.s V_3 IL_003c: ldc.i4.0 IL_003d: bgt.un.s IL_001e //if (v_3>0) goto i1 IL_003f: ldloc V_2 IL_0043: ret } .method public static float32 fabs(float32) { ldarg 0 call float32 [mscorlib]System.Math::Abs(float32) 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 { } .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly test {} // The loop sould get unrolled and the else ran twice. // In the origial bug there was a fall through with the if. .class test extends [mscorlib]System.Object { .method public static int32 main() { .entrypoint .locals init (float32 V_0, float32 V_1, int32 V_2, uint32 V_3) IL_0000: ldc.r4 1.2 IL_0005: stloc V_0 //v_0=1.2 IL_0009: ldc.r4 1.5 IL_000e: stloc V_1 //v_1=1.5 IL_0012: ldc.i4 98 IL_0017: stloc V_2 //v_2=98 IL_001b: ldc.i4.2 IL_001c: stloc.s V_3 //v_3=2 IL_001e: ldloc.s V_0 IL_0020: call float32 test::fabs(float32) IL_0025: ldloc.s V_1 IL_0027: blt.un.s IL_002e // if (fabs(v_0)<= v_1) goto 2e IL_0029: ldc.i4.0 IL_002a: stloc.s V_2 IL_002c: br.s IL_0034 IL_002e: ldloc.s V_2 IL_0030: ldc.i4.1 IL_0031: add IL_0032: stloc.s V_2 //v_2+=1 IL_0034: ldloc.s V_3 IL_0036: ldc.i4.1 IL_0037: sub IL_0038: stloc.s V_3 //v_2+=-1 IL_003a: ldloc.s V_3 IL_003c: ldc.i4.0 IL_003d: bgt.un.s IL_001e //if (v_3>0) goto i1 IL_003f: ldloc V_2 IL_0043: ret } .method public static float32 fabs(float32) { ldarg 0 call float32 [mscorlib]System.Math::Abs(float32) ret } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/xsltc/baseline/cnt12b.xsl
<xsl:stylesheet version= '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > <xsl:template match="/"> <xsl:for-each select="//foo"> DIFFERENT <xsl:value-of select="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
<xsl:stylesheet version= '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > <xsl:template match="/"> <xsl:for-each select="//foo"> DIFFERENT <xsl:value-of select="."/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/coreclr/nativeaot/Runtime.Base/src/System/Diagnostics/Debug.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; using System.Runtime.CompilerServices; namespace System.Diagnostics { internal static class Debug { [System.Diagnostics.Conditional("DEBUG")] [MethodImpl(MethodImplOptions.NoInlining)] internal static void Assert(bool condition, string message) { if (!condition) { EH.FallbackFailFast(RhFailFastReason.InternalError, null); } } [System.Diagnostics.Conditional("DEBUG")] [MethodImpl(MethodImplOptions.NoInlining)] internal static void Assert(bool condition) { if (!condition) { EH.FallbackFailFast(RhFailFastReason.InternalError, 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.Runtime; using System.Runtime.CompilerServices; namespace System.Diagnostics { internal static class Debug { [System.Diagnostics.Conditional("DEBUG")] [MethodImpl(MethodImplOptions.NoInlining)] internal static void Assert(bool condition, string message) { if (!condition) { EH.FallbackFailFast(RhFailFastReason.InternalError, null); } } [System.Diagnostics.Conditional("DEBUG")] [MethodImpl(MethodImplOptions.NoInlining)] internal static void Assert(bool condition) { if (!condition) { EH.FallbackFailFast(RhFailFastReason.InternalError, null); } } } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/JIT/Regression/JitBlue/Runtime_64657/Runtime_64657.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; using System.Runtime.CompilerServices; public unsafe class Runtime_64657 { [DllImport("kernel32")] public static extern byte* VirtualAlloc(IntPtr lpAddress, nuint dwSize, uint flAllocationType, uint flProtect); [MethodImpl(MethodImplOptions.NoInlining)] static void Validate<T>(T* c, int x) where T : unmanaged { // this nullcheck should not read more than requested T implicitNullcheck = c[x]; } public static int Main() { if (!OperatingSystem.IsWindows()) return 100; // VirtualAlloc is only for Windows uint length = (uint)Environment.SystemPageSize; byte* ptr = VirtualAlloc(IntPtr.Zero, length, 0x1000 | 0x2000 /* reserve commit */, 0x04 /*readonly guard*/); Validate((byte*)(ptr + length - sizeof(byte)), 0); Validate((sbyte*)(ptr + length - sizeof(sbyte)), 0); Validate((bool*)(ptr + length - sizeof(bool)), 0); Validate((ushort*)(ptr + length - sizeof(ushort)), 0); Validate((short*)(ptr + length - sizeof(short)), 0); Validate((uint*)(ptr + length - sizeof(uint)), 0); Validate((int*)(ptr + length - sizeof(int)), 0); Validate((ulong*)(ptr + length - sizeof(ulong)), 0); Validate((long*)(ptr + length - sizeof(long)), 0); Validate((nint*)(ptr + length - sizeof(nint)), 0); Validate((nuint*)(ptr + length - sizeof(nuint)), 0); Validate((S1*)(ptr + length - sizeof(S1)), 0); Validate((S2*)(ptr + length - sizeof(S2)), 0); Validate((S3*)(ptr + length - sizeof(S3)), 0); Validate((S4*)(ptr + length - sizeof(S4)), 0); TestStructures(); return 100; } private static void TestStructures() { S1 s1 = new S1(); TestS1_1(ref s1); TestS1_2(ref s1); S2 s2 = new S2(); TestS2_1(ref s2); TestS2_2(ref s2); S3 s3 = new S3(); TestS3_1(ref s3); TestS3_2(ref s3); S4 s4 = new S4(); TestS4_1(ref s4); TestS4_2(ref s4); S5 s5 = new S5 { a1 = "1", a2 = "2" }; TestS5_1(ref s5); TestS5_2(ref s5); } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS1_1(ref S1 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS1_2(ref S1 s) { var _ = s.a2; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS2_1(ref S2 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS2_2(ref S2 s) { var _ = s.a2; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS3_1(ref S3 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS3_2(ref S3 s) { var _ = s.a2; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS4_1(ref S4 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS4_2(ref S4 s) { var _ = s.a2; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS5_1(ref S5 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS5_2(ref S5 s) { var _ = s.a2; } public struct S1 { public byte a1; public byte a2; } public struct S2 { public short a1; public short a2; } public struct S3 { public int a1; public int a2; } public struct S4 { public long a1; public long a2; } public struct S5 { public string a1; public string a2; } }
// 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; using System.Runtime.CompilerServices; public unsafe class Runtime_64657 { [DllImport("kernel32")] public static extern byte* VirtualAlloc(IntPtr lpAddress, nuint dwSize, uint flAllocationType, uint flProtect); [MethodImpl(MethodImplOptions.NoInlining)] static void Validate<T>(T* c, int x) where T : unmanaged { // this nullcheck should not read more than requested T implicitNullcheck = c[x]; } public static int Main() { if (!OperatingSystem.IsWindows()) return 100; // VirtualAlloc is only for Windows uint length = (uint)Environment.SystemPageSize; byte* ptr = VirtualAlloc(IntPtr.Zero, length, 0x1000 | 0x2000 /* reserve commit */, 0x04 /*readonly guard*/); Validate((byte*)(ptr + length - sizeof(byte)), 0); Validate((sbyte*)(ptr + length - sizeof(sbyte)), 0); Validate((bool*)(ptr + length - sizeof(bool)), 0); Validate((ushort*)(ptr + length - sizeof(ushort)), 0); Validate((short*)(ptr + length - sizeof(short)), 0); Validate((uint*)(ptr + length - sizeof(uint)), 0); Validate((int*)(ptr + length - sizeof(int)), 0); Validate((ulong*)(ptr + length - sizeof(ulong)), 0); Validate((long*)(ptr + length - sizeof(long)), 0); Validate((nint*)(ptr + length - sizeof(nint)), 0); Validate((nuint*)(ptr + length - sizeof(nuint)), 0); Validate((S1*)(ptr + length - sizeof(S1)), 0); Validate((S2*)(ptr + length - sizeof(S2)), 0); Validate((S3*)(ptr + length - sizeof(S3)), 0); Validate((S4*)(ptr + length - sizeof(S4)), 0); TestStructures(); return 100; } private static void TestStructures() { S1 s1 = new S1(); TestS1_1(ref s1); TestS1_2(ref s1); S2 s2 = new S2(); TestS2_1(ref s2); TestS2_2(ref s2); S3 s3 = new S3(); TestS3_1(ref s3); TestS3_2(ref s3); S4 s4 = new S4(); TestS4_1(ref s4); TestS4_2(ref s4); S5 s5 = new S5 { a1 = "1", a2 = "2" }; TestS5_1(ref s5); TestS5_2(ref s5); } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS1_1(ref S1 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS1_2(ref S1 s) { var _ = s.a2; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS2_1(ref S2 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS2_2(ref S2 s) { var _ = s.a2; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS3_1(ref S3 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS3_2(ref S3 s) { var _ = s.a2; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS4_1(ref S4 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS4_2(ref S4 s) { var _ = s.a2; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS5_1(ref S5 s) { var _ = s.a1; } [MethodImpl(MethodImplOptions.NoInlining)] static void TestS5_2(ref S5 s) { var _ = s.a2; } public struct S1 { public byte a1; public byte a2; } public struct S2 { public short a1; public short a2; } public struct S3 { public int a1; public int a2; } public struct S4 { public long a1; public long a2; } public struct S5 { public string a1; public string a2; } }
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M09.5-PDC/b28597/b28597.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).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="$(MSBuildProjectName).il" /> </ItemGroup> </Project>
-1
dotnet/runtime
66,403
Implement System.Decimal.Scale
Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
MichalPetryka
2022-03-09T19:07:55Z
2022-03-10T03:26:37Z
c2ec86b1c552ac8a1749f9f98e012f707e325660
4ba076e988db4b68bacad7450b945a4e07730025
Implement System.Decimal.Scale. Adds System.Decimal.Scale, a property that returns the scaling factor of the decimal. Closes #65074.
./src/tests/Common/scripts/kill-all.cmd
@if not defined _echo @echo off setlocal EnableDelayedExpansion :kill-process set __ProcName=%1 :: Check if __ProcName is running tasklist /fi "imagename eq %__ProcName%" |find ":" > nul :: __ProcName is running if errorlevel == 1 if errorlevel 1 ( echo Stop %__ProcName% execution. for /f "tokens=2 delims=," %%F in ('tasklist /nh /fi "imagename eq %__ProcName%" /fo csv') do taskkill /f /PID %%~F ) exit /b 0
@if not defined _echo @echo off setlocal EnableDelayedExpansion :kill-process set __ProcName=%1 :: Check if __ProcName is running tasklist /fi "imagename eq %__ProcName%" |find ":" > nul :: __ProcName is running if errorlevel == 1 if errorlevel 1 ( echo Stop %__ProcName% execution. for /f "tokens=2 delims=," %%F in ('tasklist /nh /fi "imagename eq %__ProcName%" /fo csv') do taskkill /f /PID %%~F ) exit /b 0
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/debug/daccess/gcdump_dac.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <stdafx.h> /* There is no DAC build of gcdump, so instead * build it directly into the the dac. That's what all these ugly defines * are all about. */ #ifdef __MSC_VER #pragma warning(disable:4244) // conversion from 'unsigned int' to 'unsigned short', possible loss of data #pragma warning(disable:4189) // local variable is initialized but not referenced #endif // __MSC_VER #undef assert #define assert(a) #define NOTHROW #define GC_NOTRIGGER #include <gcdecoder.cpp> #undef NOTHROW #undef GC_NOTRIGGER #if defined _DEBUG && defined TARGET_X86 #ifdef _MSC_VER // disable FPO for checked build #pragma optimize("y", off) #endif // _MSC_VER #endif #undef _ASSERTE #define _ASSERTE(a) do {} while (0) #ifdef TARGET_X86 #include <gcdump.cpp> #endif #undef LIMITED_METHOD_CONTRACT #undef WRAPPER_NO_CONTRACT #ifdef TARGET_X86 #include <i386/gcdumpx86.cpp> #else // !TARGET_X86 #undef PREGDISPLAY #include <gcdumpnonx86.cpp> #endif // !TARGET_X86 #ifdef __MSC_VER #pragma warning(default:4244) #pragma warning(default:4189) #endif // __MSC_VER
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <stdafx.h> /* There is no DAC build of gcdump, so instead * build it directly into the the dac. That's what all these ugly defines * are all about. */ #ifdef __MSC_VER #pragma warning(disable:4189) // local variable is initialized but not referenced #endif // __MSC_VER #undef assert #define assert(a) #define NOTHROW #define GC_NOTRIGGER #include <gcdecoder.cpp> #undef NOTHROW #undef GC_NOTRIGGER #if defined _DEBUG && defined TARGET_X86 #ifdef _MSC_VER // disable FPO for checked build #pragma optimize("y", off) #endif // _MSC_VER #endif #undef _ASSERTE #define _ASSERTE(a) do {} while (0) #ifdef TARGET_X86 #include <gcdump.cpp> #endif #undef LIMITED_METHOD_CONTRACT #undef WRAPPER_NO_CONTRACT #ifdef TARGET_X86 #include <i386/gcdumpx86.cpp> #else // !TARGET_X86 #undef PREGDISPLAY #include <gcdumpnonx86.cpp> #endif // !TARGET_X86 #ifdef __MSC_VER #pragma warning(default:4189) #endif // __MSC_VER
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/jit/gcencode.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX XX XX GCEncode XX XX XX XX Logic to encode the JIT method header and GC pointer tables XX XX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #pragma warning(disable : 4244) // loss of data int -> char .. #endif #include "gcinfotypes.h" #include "patchpointinfo.h" ReturnKind GCTypeToReturnKind(CorInfoGCType gcType) { switch (gcType) { case TYPE_GC_NONE: return RT_Scalar; case TYPE_GC_REF: return RT_Object; case TYPE_GC_BYREF: return RT_ByRef; default: _ASSERTE(!"TYP_GC_OTHER is unexpected"); return RT_Illegal; } } ReturnKind GCInfo::getReturnKind() { switch (compiler->info.compRetType) { case TYP_REF: return RT_Object; case TYP_BYREF: return RT_ByRef; case TYP_STRUCT: { CORINFO_CLASS_HANDLE structType = compiler->info.compMethodInfo->args.retTypeClass; var_types retType = compiler->getReturnTypeForStruct(structType, compiler->info.compCallConv); switch (retType) { case TYP_REF: return RT_Object; case TYP_BYREF: return RT_ByRef; case TYP_STRUCT: if (compiler->IsHfa(structType)) { #ifdef TARGET_X86 _ASSERTE(false && "HFAs not expected for X86"); #endif // TARGET_X86 return RT_Scalar; } else { // Multi-reg return BYTE gcPtrs[2] = {TYPE_GC_NONE, TYPE_GC_NONE}; compiler->info.compCompHnd->getClassGClayout(structType, gcPtrs); ReturnKind first = GCTypeToReturnKind((CorInfoGCType)gcPtrs[0]); ReturnKind second = GCTypeToReturnKind((CorInfoGCType)gcPtrs[1]); return GetStructReturnKind(first, second); } #ifdef TARGET_X86 case TYP_FLOAT: case TYP_DOUBLE: return RT_Float; #endif // TARGET_X86 default: return RT_Scalar; } } #ifdef TARGET_X86 case TYP_FLOAT: case TYP_DOUBLE: return RT_Float; #endif // TARGET_X86 default: return RT_Scalar; } } #if !defined(JIT32_GCENCODER) || defined(FEATURE_EH_FUNCLETS) // gcMarkFilterVarsPinned - Walk all lifetimes and make it so that anything // live in a filter is marked as pinned (often by splitting the lifetime // so that *only* the filter region is pinned). This should only be // called once (after generating all lifetimes, but before slot ids are // finalized. // // DevDiv 376329 - The VM has to double report filters and their parent frame // because they occur during the 1st pass and the parent frame doesn't go dead // until we start unwinding in the 2nd pass. // // Untracked locals will only be reported in non-filter funclets and the // parent. // Registers can't be double reported by 2 frames since they're different. // That just leaves stack variables which might be double reported. // // Technically double reporting is only a problem when the GC has to relocate a // reference. So we avoid that problem by marking all live tracked stack // variables as pinned inside the filter. Thus if they are double reported, it // won't be a problem since they won't be double relocated. // void GCInfo::gcMarkFilterVarsPinned() { assert(compiler->ehAnyFunclets()); for (EHblkDsc* const HBtab : EHClauses(compiler)) { if (HBtab->HasFilter()) { const UNATIVE_OFFSET filterBeg = compiler->ehCodeOffset(HBtab->ebdFilter); const UNATIVE_OFFSET filterEnd = compiler->ehCodeOffset(HBtab->ebdHndBeg); for (varPtrDsc* varTmp = gcVarPtrList; varTmp != nullptr; varTmp = varTmp->vpdNext) { // Get hold of the variable's flags. const unsigned lowBits = varTmp->vpdVarNum & OFFSET_MASK; // Compute the actual lifetime offsets. const unsigned begOffs = varTmp->vpdBegOfs; const unsigned endOffs = varTmp->vpdEndOfs; // Special case: skip any 0-length lifetimes. if (endOffs == begOffs) { continue; } // Skip lifetimes with no overlap with the filter if ((endOffs <= filterBeg) || (begOffs >= filterEnd)) { continue; } #ifndef JIT32_GCENCODER // Because there is no nesting within filters, nothing // should be already pinned. // For JIT32_GCENCODER, we should not do this check as gcVarPtrList are always sorted by vpdBegOfs // which means that we could see some varPtrDsc that were already pinned by previous splitting. assert((lowBits & pinned_OFFSET_FLAG) == 0); #endif // JIT32_GCENCODER if (begOffs < filterBeg) { if (endOffs > filterEnd) { // The variable lifetime is starts before AND ends after // the filter, so we need to create 2 new lifetimes: // (1) a pinned one for the filter // (2) a regular one for after the filter // and then adjust the original lifetime to end before // the filter. CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { printf("Splitting lifetime for filter: [%04X, %04X).\nOld: ", filterBeg, filterEnd); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG varPtrDsc* desc1 = new (compiler, CMK_GC) varPtrDsc; desc1->vpdVarNum = varTmp->vpdVarNum | pinned_OFFSET_FLAG; desc1->vpdBegOfs = filterBeg; desc1->vpdEndOfs = filterEnd; varPtrDsc* desc2 = new (compiler, CMK_GC) varPtrDsc; desc2->vpdVarNum = varTmp->vpdVarNum; desc2->vpdBegOfs = filterEnd; desc2->vpdEndOfs = endOffs; varTmp->vpdEndOfs = filterBeg; gcInsertVarPtrDscSplit(desc1, varTmp); gcInsertVarPtrDscSplit(desc2, varTmp); #ifdef DEBUG if (compiler->verbose) { printf("New (1 of 3): "); gcDumpVarPtrDsc(varTmp); printf("New (2 of 3): "); gcDumpVarPtrDsc(desc1); printf("New (3 of 3): "); gcDumpVarPtrDsc(desc2); } #endif // DEBUG } else { // The variable lifetime started before the filter and ends // somewhere inside it, so we only create 1 new lifetime, // and then adjust the original lifetime to end before // the filter. CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { printf("Splitting lifetime for filter.\nOld: "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG varPtrDsc* desc = new (compiler, CMK_GC) varPtrDsc; desc->vpdVarNum = varTmp->vpdVarNum | pinned_OFFSET_FLAG; desc->vpdBegOfs = filterBeg; desc->vpdEndOfs = endOffs; varTmp->vpdEndOfs = filterBeg; gcInsertVarPtrDscSplit(desc, varTmp); #ifdef DEBUG if (compiler->verbose) { printf("New (1 of 2): "); gcDumpVarPtrDsc(varTmp); printf("New (2 of 2): "); gcDumpVarPtrDsc(desc); } #endif // DEBUG } } else { if (endOffs > filterEnd) { // The variable lifetime starts inside the filter and // ends somewhere after it, so we create 1 new // lifetime for the part inside the filter and adjust // the start of the original lifetime to be the end // of the filter CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { printf("Splitting lifetime for filter.\nOld: "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG varPtrDsc* desc = new (compiler, CMK_GC) varPtrDsc; #ifndef JIT32_GCENCODER desc->vpdVarNum = varTmp->vpdVarNum | pinned_OFFSET_FLAG; desc->vpdBegOfs = begOffs; desc->vpdEndOfs = filterEnd; varTmp->vpdBegOfs = filterEnd; #else // Mark varTmp as pinned and generated use varPtrDsc(desc) as non-pinned // since gcInsertVarPtrDscSplit requires that varTmp->vpdBegOfs must precede desc->vpdBegOfs desc->vpdVarNum = varTmp->vpdVarNum; desc->vpdBegOfs = filterEnd; desc->vpdEndOfs = endOffs; varTmp->vpdVarNum = varTmp->vpdVarNum | pinned_OFFSET_FLAG; varTmp->vpdEndOfs = filterEnd; #endif gcInsertVarPtrDscSplit(desc, varTmp); #ifdef DEBUG if (compiler->verbose) { printf("New (1 of 2): "); gcDumpVarPtrDsc(desc); printf("New (2 of 2): "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG } else { // The variable lifetime is completely within the filter, // so just add the pinned flag. CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { printf("Pinning lifetime for filter.\nOld: "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG varTmp->vpdVarNum |= pinned_OFFSET_FLAG; #ifdef DEBUG if (compiler->verbose) { printf("New : "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG } } } } // HasFilter } // Foreach EH } // gcInsertVarPtrDscSplit - Insert varPtrDsc that were created by splitting lifetimes // From gcMarkFilterVarsPinned, we may have created one or two `varPtrDsc`s due to splitting lifetimes // and these newly created `varPtrDsc`s should be inserted in gcVarPtrList. // However the semantics of this call depend on the architecture. // // x86-GCInfo requires gcVarPtrList to be sorted by vpdBegOfs. // Every time inserting an entry we should keep the order of entries. // So this function searches for a proper insertion point from "begin" then "desc" gets inserted. // // For other architectures(ones that uses GCInfo{En|De}coder), we don't need any sort. // So the argument "begin" is unused and "desc" will be inserted at the front of the list. void GCInfo::gcInsertVarPtrDscSplit(varPtrDsc* desc, varPtrDsc* begin) { #ifndef JIT32_GCENCODER (void)begin; desc->vpdNext = gcVarPtrList; gcVarPtrList = desc; #else // JIT32_GCENCODER // "desc" and "begin" must not be null assert(desc != nullptr); assert(begin != nullptr); // The caller must guarantee that desc's BegOfs is equal or greater than begin's // since we will search for insertion point from "begin" assert(desc->vpdBegOfs >= begin->vpdBegOfs); varPtrDsc* varTmp = begin->vpdNext; varPtrDsc* varInsert = begin; while (varTmp != nullptr && varTmp->vpdBegOfs < desc->vpdBegOfs) { varInsert = varTmp; varTmp = varTmp->vpdNext; } // Insert point cannot be null assert(varInsert != nullptr); desc->vpdNext = varInsert->vpdNext; varInsert->vpdNext = desc; #endif // JIT32_GCENCODER } #ifdef DEBUG void GCInfo::gcDumpVarPtrDsc(varPtrDsc* desc) { const int offs = (desc->vpdVarNum & ~OFFSET_MASK); const GCtype gcType = (desc->vpdVarNum & byref_OFFSET_FLAG) ? GCT_BYREF : GCT_GCREF; const bool isPin = (desc->vpdVarNum & pinned_OFFSET_FLAG) != 0; printf("[%08X] %s%s var at [%s", dspPtr(desc), GCtypeStr(gcType), isPin ? "pinned-ptr" : "", compiler->isFramePointerUsed() ? STR_FPBASE : STR_SPBASE); if (offs < 0) { printf("-%02XH", -offs); } else if (offs > 0) { printf("+%02XH", +offs); } printf("] live from %04X to %04X\n", desc->vpdBegOfs, desc->vpdEndOfs); } #endif // DEBUG #endif // !defined(JIT32_GCENCODER) || defined(FEATURE_EH_FUNCLETS) #ifdef JIT32_GCENCODER #include "emit.h" /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ // (see jit.h) #define REGEN_SHORTCUTS 0 // To Regenerate the compressed info header shortcuts, define REGEN_SHORTCUTS // and use the following command line pipe/filter to give you the 128 // most useful encodings. // // find . -name regen.txt | xargs cat | grep InfoHdr | sort | uniq -c | sort -r | head -128 // (see jit.h) #define REGEN_CALLPAT 0 // To Regenerate the compressed info header shortcuts, define REGEN_CALLPAT // and use the following command line pipe/filter to give you the 80 // most useful encodings. // // find . -name regen.txt | xargs cat | grep CallSite | sort | uniq -c | sort -r | head -80 #if REGEN_SHORTCUTS || REGEN_CALLPAT static FILE* logFile = NULL; CRITICAL_SECTION logFileLock; #endif #if REGEN_CALLPAT static void regenLog(unsigned codeDelta, unsigned argMask, unsigned regMask, unsigned argCnt, unsigned byrefArgMask, unsigned byrefRegMask, BYTE* base, unsigned enSize) { CallPattern pat; pat.fld.argCnt = (argCnt < 0xff) ? argCnt : 0xff; pat.fld.regMask = (regMask < 0xff) ? regMask : 0xff; pat.fld.argMask = (argMask < 0xff) ? argMask : 0xff; pat.fld.codeDelta = (codeDelta < 0xff) ? codeDelta : 0xff; if (logFile == NULL) { logFile = fopen("regen.txt", "a"); InitializeCriticalSection(&logFileLock); } assert(((enSize > 0) && (enSize < 256)) && ((pat.val & 0xffffff) != 0xffffff)); EnterCriticalSection(&logFileLock); fprintf(logFile, "CallSite( 0x%08x, 0x%02x%02x, 0x", pat.val, byrefArgMask, byrefRegMask); while (enSize > 0) { fprintf(logFile, "%02x", *base++); enSize--; } fprintf(logFile, "),\n"); fflush(logFile); LeaveCriticalSection(&logFileLock); } #endif #if REGEN_SHORTCUTS static void regenLog(unsigned encoding, InfoHdr* header, InfoHdr* state) { if (logFile == NULL) { logFile = fopen("regen.txt", "a"); InitializeCriticalSection(&logFileLock); } EnterCriticalSection(&logFileLock); fprintf(logFile, "InfoHdr( %2d, %2d, %1d, %1d, %1d," " %1d, %1d, %1d, %1d, %1d," " %1d, %1d, %1d, %1d, %1d, %1d," " %1d, %1d, %1d," " %1d, %2d, %2d," " %2d, %2d, %2d, %2d, %2d, %2d), \n", state->prologSize, state->epilogSize, state->epilogCount, state->epilogAtEnd, state->ediSaved, state->esiSaved, state->ebxSaved, state->ebpSaved, state->ebpFrame, state->interruptible, state->doubleAlign, state->security, state->handlers, state->localloc, state->editNcontinue, state->varargs, state->profCallbacks, state->genericsContext, state->genericsContextIsMethodDesc, state->returnKind, state->argCount, state->frameSize, (state->untrackedCnt <= SET_UNTRACKED_MAX) ? state->untrackedCnt : HAS_UNTRACKED, (state->varPtrTableSize == 0) ? 0 : HAS_VARPTR, (state->gsCookieOffset == INVALID_GS_COOKIE_OFFSET) ? 0 : HAS_GS_COOKIE_OFFSET, (state->syncStartOffset == INVALID_SYNC_OFFSET) ? 0 : HAS_SYNC_OFFSET, (state->syncStartOffset == INVALID_SYNC_OFFSET) ? 0 : HAS_SYNC_OFFSET, (state->revPInvokeOffset == INVALID_REV_PINVOKE_OFFSET) ? 0 : HAS_REV_PINVOKE_FRAME_OFFSET); fflush(logFile); LeaveCriticalSection(&logFileLock); } #endif /***************************************************************************** * * Given the four parameters return the index into the callPatternTable[] * that is used to encoding these four items. If an exact match cannot * found then ignore the codeDelta and search the table again for a near * match. * Returns 0..79 for an exact match or * (delta<<8) | (0..79) for a near match. * A near match will be encoded using two bytes, the first byte will * skip the adjustment delta that prevented an exact match and the * rest of the delta plus the other three items are encoded in the * second byte. */ int FASTCALL lookupCallPattern(unsigned argCnt, unsigned regMask, unsigned argMask, unsigned codeDelta) { if ((argCnt <= CP_MAX_ARG_CNT) && (argMask <= CP_MAX_ARG_MASK)) { CallPattern pat; pat.fld.argCnt = argCnt; pat.fld.regMask = regMask; // EBP,EBX,ESI,EDI pat.fld.argMask = argMask; pat.fld.codeDelta = codeDelta; bool codeDeltaOK = (pat.fld.codeDelta == codeDelta); unsigned bestDelta2 = 0xff; unsigned bestPattern = 0xff; unsigned patval = pat.val; assert(sizeof(CallPattern) == sizeof(unsigned)); const unsigned* curp = &callPatternTable[0]; for (unsigned inx = 0; inx < 80; inx++, curp++) { unsigned curval = *curp; if ((patval == curval) && codeDeltaOK) return inx; if (((patval ^ curval) & 0xffffff) == 0) { unsigned delta2 = codeDelta - (curval >> 24); if (delta2 < bestDelta2) { bestDelta2 = delta2; bestPattern = inx; } } } if (bestPattern != 0xff) { return (bestDelta2 << 8) | bestPattern; } } return -1; } static bool initNeeded3(unsigned cur, unsigned tgt, unsigned max, unsigned* hint) { assert(cur != tgt); unsigned tmp = tgt; unsigned nib = 0; unsigned cnt = 0; while (tmp > max) { nib = tmp & 0x07; tmp >>= 3; if (tmp == cur) { *hint = nib; return false; } cnt++; } *hint = tmp; return true; } static bool initNeeded4(unsigned cur, unsigned tgt, unsigned max, unsigned* hint) { assert(cur != tgt); unsigned tmp = tgt; unsigned nib = 0; unsigned cnt = 0; while (tmp > max) { nib = tmp & 0x0f; tmp >>= 4; if (tmp == cur) { *hint = nib; return false; } cnt++; } *hint = tmp; return true; } static int bigEncoding3(unsigned cur, unsigned tgt, unsigned max) { assert(cur != tgt); unsigned tmp = tgt; unsigned nib = 0; unsigned cnt = 0; while (tmp > max) { nib = tmp & 0x07; tmp >>= 3; if (tmp == cur) break; cnt++; } return cnt; } static int bigEncoding4(unsigned cur, unsigned tgt, unsigned max) { assert(cur != tgt); unsigned tmp = tgt; unsigned nib = 0; unsigned cnt = 0; while (tmp > max) { nib = tmp & 0x0f; tmp >>= 4; if (tmp == cur) break; cnt++; } return cnt; } BYTE FASTCALL encodeHeaderNext(const InfoHdr& header, InfoHdr* state, BYTE& codeSet) { BYTE encoding = 0xff; codeSet = 1; // codeSet is 1 or 2, depending on whether the returned encoding // corresponds to InfoHdrAdjust, or InfoHdrAdjust2 enumerations. if (state->argCount != header.argCount) { // We have one-byte encodings for 0..8 if (header.argCount <= SET_ARGCOUNT_MAX) { state->argCount = header.argCount; encoding = SET_ARGCOUNT + header.argCount; goto DO_RETURN; } else { unsigned hint; if (initNeeded4(state->argCount, header.argCount, SET_ARGCOUNT_MAX, &hint)) { assert(hint <= SET_ARGCOUNT_MAX); state->argCount = hint; encoding = SET_ARGCOUNT + hint; goto DO_RETURN; } else { assert(hint <= 0xf); state->argCount <<= 4; state->argCount += hint; encoding = NEXT_FOUR_ARGCOUNT + hint; goto DO_RETURN; } } } if (state->frameSize != header.frameSize) { // We have one-byte encodings for 0..7 if (header.frameSize <= SET_FRAMESIZE_MAX) { state->frameSize = header.frameSize; encoding = SET_FRAMESIZE + header.frameSize; goto DO_RETURN; } else { unsigned hint; if (initNeeded4(state->frameSize, header.frameSize, SET_FRAMESIZE_MAX, &hint)) { assert(hint <= SET_FRAMESIZE_MAX); state->frameSize = hint; encoding = SET_FRAMESIZE + hint; goto DO_RETURN; } else { assert(hint <= 0xf); state->frameSize <<= 4; state->frameSize += hint; encoding = NEXT_FOUR_FRAMESIZE + hint; goto DO_RETURN; } } } if ((state->epilogCount != header.epilogCount) || (state->epilogAtEnd != header.epilogAtEnd)) { if (header.epilogCount > SET_EPILOGCNT_MAX) IMPL_LIMITATION("More than SET_EPILOGCNT_MAX epilogs"); state->epilogCount = header.epilogCount; state->epilogAtEnd = header.epilogAtEnd; encoding = SET_EPILOGCNT + header.epilogCount * 2; if (header.epilogAtEnd) encoding++; goto DO_RETURN; } if (state->varPtrTableSize != header.varPtrTableSize) { assert(state->varPtrTableSize == 0 || state->varPtrTableSize == HAS_VARPTR); if (state->varPtrTableSize == 0) { state->varPtrTableSize = HAS_VARPTR; encoding = FLIP_VAR_PTR_TABLE_SZ; goto DO_RETURN; } else if (header.varPtrTableSize == 0) { state->varPtrTableSize = 0; encoding = FLIP_VAR_PTR_TABLE_SZ; goto DO_RETURN; } } if (state->untrackedCnt != header.untrackedCnt) { assert(state->untrackedCnt <= SET_UNTRACKED_MAX || state->untrackedCnt == HAS_UNTRACKED); // We have one-byte encodings for 0..3 if (header.untrackedCnt <= SET_UNTRACKED_MAX) { state->untrackedCnt = header.untrackedCnt; encoding = SET_UNTRACKED + header.untrackedCnt; goto DO_RETURN; } else if (state->untrackedCnt != HAS_UNTRACKED) { state->untrackedCnt = HAS_UNTRACKED; encoding = FFFF_UNTRACKED_CNT; goto DO_RETURN; } } if (state->epilogSize != header.epilogSize) { // We have one-byte encodings for 0..10 if (header.epilogSize <= SET_EPILOGSIZE_MAX) { state->epilogSize = header.epilogSize; encoding = SET_EPILOGSIZE + header.epilogSize; goto DO_RETURN; } else { unsigned hint; if (initNeeded3(state->epilogSize, header.epilogSize, SET_EPILOGSIZE_MAX, &hint)) { assert(hint <= SET_EPILOGSIZE_MAX); state->epilogSize = hint; encoding = SET_EPILOGSIZE + hint; goto DO_RETURN; } else { assert(hint <= 0x7); state->epilogSize <<= 3; state->epilogSize += hint; encoding = NEXT_THREE_EPILOGSIZE + hint; goto DO_RETURN; } } } if (state->prologSize != header.prologSize) { // We have one-byte encodings for 0..16 if (header.prologSize <= SET_PROLOGSIZE_MAX) { state->prologSize = header.prologSize; encoding = SET_PROLOGSIZE + header.prologSize; goto DO_RETURN; } else { unsigned hint; assert(SET_PROLOGSIZE_MAX > 15); if (initNeeded3(state->prologSize, header.prologSize, 15, &hint)) { assert(hint <= 15); state->prologSize = hint; encoding = SET_PROLOGSIZE + hint; goto DO_RETURN; } else { assert(hint <= 0x7); state->prologSize <<= 3; state->prologSize += hint; encoding = NEXT_THREE_PROLOGSIZE + hint; goto DO_RETURN; } } } if (state->ediSaved != header.ediSaved) { state->ediSaved = header.ediSaved; encoding = FLIP_EDI_SAVED; goto DO_RETURN; } if (state->esiSaved != header.esiSaved) { state->esiSaved = header.esiSaved; encoding = FLIP_ESI_SAVED; goto DO_RETURN; } if (state->ebxSaved != header.ebxSaved) { state->ebxSaved = header.ebxSaved; encoding = FLIP_EBX_SAVED; goto DO_RETURN; } if (state->ebpSaved != header.ebpSaved) { state->ebpSaved = header.ebpSaved; encoding = FLIP_EBP_SAVED; goto DO_RETURN; } if (state->ebpFrame != header.ebpFrame) { state->ebpFrame = header.ebpFrame; encoding = FLIP_EBP_FRAME; goto DO_RETURN; } if (state->interruptible != header.interruptible) { state->interruptible = header.interruptible; encoding = FLIP_INTERRUPTIBLE; goto DO_RETURN; } #if DOUBLE_ALIGN if (state->doubleAlign != header.doubleAlign) { state->doubleAlign = header.doubleAlign; encoding = FLIP_DOUBLE_ALIGN; goto DO_RETURN; } #endif if (state->security != header.security) { state->security = header.security; encoding = FLIP_SECURITY; goto DO_RETURN; } if (state->handlers != header.handlers) { state->handlers = header.handlers; encoding = FLIP_HANDLERS; goto DO_RETURN; } if (state->localloc != header.localloc) { state->localloc = header.localloc; encoding = FLIP_LOCALLOC; goto DO_RETURN; } if (state->editNcontinue != header.editNcontinue) { state->editNcontinue = header.editNcontinue; encoding = FLIP_EDITnCONTINUE; goto DO_RETURN; } if (state->varargs != header.varargs) { state->varargs = header.varargs; encoding = FLIP_VARARGS; goto DO_RETURN; } if (state->profCallbacks != header.profCallbacks) { state->profCallbacks = header.profCallbacks; encoding = FLIP_PROF_CALLBACKS; goto DO_RETURN; } if (state->genericsContext != header.genericsContext) { state->genericsContext = header.genericsContext; encoding = FLIP_HAS_GENERICS_CONTEXT; goto DO_RETURN; } if (state->genericsContextIsMethodDesc != header.genericsContextIsMethodDesc) { state->genericsContextIsMethodDesc = header.genericsContextIsMethodDesc; encoding = FLIP_GENERICS_CONTEXT_IS_METHODDESC; goto DO_RETURN; } if (state->returnKind != header.returnKind) { state->returnKind = header.returnKind; codeSet = 2; // Two byte encoding encoding = header.returnKind; _ASSERTE(encoding < SET_RET_KIND_MAX); goto DO_RETURN; } if (state->gsCookieOffset != header.gsCookieOffset) { assert(state->gsCookieOffset == INVALID_GS_COOKIE_OFFSET || state->gsCookieOffset == HAS_GS_COOKIE_OFFSET); if (state->gsCookieOffset == INVALID_GS_COOKIE_OFFSET) { // header.gsCookieOffset is non-zero. We can set it // to zero using FLIP_HAS_GS_COOKIE state->gsCookieOffset = HAS_GS_COOKIE_OFFSET; encoding = FLIP_HAS_GS_COOKIE; goto DO_RETURN; } else if (header.gsCookieOffset == INVALID_GS_COOKIE_OFFSET) { state->gsCookieOffset = INVALID_GS_COOKIE_OFFSET; encoding = FLIP_HAS_GS_COOKIE; goto DO_RETURN; } } if (state->syncStartOffset != header.syncStartOffset) { assert(state->syncStartOffset == INVALID_SYNC_OFFSET || state->syncStartOffset == HAS_SYNC_OFFSET); if (state->syncStartOffset == INVALID_SYNC_OFFSET) { // header.syncStartOffset is non-zero. We can set it // to zero using FLIP_SYNC state->syncStartOffset = HAS_SYNC_OFFSET; encoding = FLIP_SYNC; goto DO_RETURN; } else if (header.syncStartOffset == INVALID_SYNC_OFFSET) { state->syncStartOffset = INVALID_SYNC_OFFSET; encoding = FLIP_SYNC; goto DO_RETURN; } } if (state->revPInvokeOffset != header.revPInvokeOffset) { assert(state->revPInvokeOffset == INVALID_REV_PINVOKE_OFFSET || state->revPInvokeOffset == HAS_REV_PINVOKE_FRAME_OFFSET); if (state->revPInvokeOffset == INVALID_REV_PINVOKE_OFFSET) { // header.revPInvokeOffset is non-zero. state->revPInvokeOffset = HAS_REV_PINVOKE_FRAME_OFFSET; encoding = FLIP_REV_PINVOKE_FRAME; goto DO_RETURN; } else if (header.revPInvokeOffset == INVALID_REV_PINVOKE_OFFSET) { state->revPInvokeOffset = INVALID_REV_PINVOKE_OFFSET; encoding = FLIP_REV_PINVOKE_FRAME; goto DO_RETURN; } } DO_RETURN: _ASSERTE(encoding < MORE_BYTES_TO_FOLLOW); if (!state->isHeaderMatch(header)) encoding |= MORE_BYTES_TO_FOLLOW; return encoding; } static int measureDistance(const InfoHdr& header, const InfoHdrSmall* p, int closeness) { int distance = 0; if (p->untrackedCnt != header.untrackedCnt) { if (header.untrackedCnt > 3) { if (p->untrackedCnt != HAS_UNTRACKED) distance += 1; } else { distance += 1; } if (distance >= closeness) return distance; } if (p->varPtrTableSize != header.varPtrTableSize) { if (header.varPtrTableSize != 0) { if (p->varPtrTableSize != HAS_VARPTR) distance += 1; } else { assert(p->varPtrTableSize == HAS_VARPTR); distance += 1; } if (distance >= closeness) return distance; } if (p->frameSize != header.frameSize) { distance += 1; if (distance >= closeness) return distance; // We have one-byte encodings for 0..7 if (header.frameSize > SET_FRAMESIZE_MAX) { distance += bigEncoding4(p->frameSize, header.frameSize, SET_FRAMESIZE_MAX); if (distance >= closeness) return distance; } } if (p->argCount != header.argCount) { distance += 1; if (distance >= closeness) return distance; // We have one-byte encodings for 0..8 if (header.argCount > SET_ARGCOUNT_MAX) { distance += bigEncoding4(p->argCount, header.argCount, SET_ARGCOUNT_MAX); if (distance >= closeness) return distance; } } if (p->prologSize != header.prologSize) { distance += 1; if (distance >= closeness) return distance; // We have one-byte encodings for 0..16 if (header.prologSize > SET_PROLOGSIZE_MAX) { assert(SET_PROLOGSIZE_MAX > 15); distance += bigEncoding3(p->prologSize, header.prologSize, 15); if (distance >= closeness) return distance; } } if (p->epilogSize != header.epilogSize) { distance += 1; if (distance >= closeness) return distance; // We have one-byte encodings for 0..10 if (header.epilogSize > SET_EPILOGSIZE_MAX) { distance += bigEncoding3(p->epilogSize, header.epilogSize, SET_EPILOGSIZE_MAX); if (distance >= closeness) return distance; } } if ((p->epilogCount != header.epilogCount) || (p->epilogAtEnd != header.epilogAtEnd)) { distance += 1; if (distance >= closeness) return distance; if (header.epilogCount > SET_EPILOGCNT_MAX) IMPL_LIMITATION("More than SET_EPILOGCNT_MAX epilogs"); } if (p->ediSaved != header.ediSaved) { distance += 1; if (distance >= closeness) return distance; } if (p->esiSaved != header.esiSaved) { distance += 1; if (distance >= closeness) return distance; } if (p->ebxSaved != header.ebxSaved) { distance += 1; if (distance >= closeness) return distance; } if (p->ebpSaved != header.ebpSaved) { distance += 1; if (distance >= closeness) return distance; } if (p->ebpFrame != header.ebpFrame) { distance += 1; if (distance >= closeness) return distance; } if (p->interruptible != header.interruptible) { distance += 1; if (distance >= closeness) return distance; } #if DOUBLE_ALIGN if (p->doubleAlign != header.doubleAlign) { distance += 1; if (distance >= closeness) return distance; } #endif if (p->security != header.security) { distance += 1; if (distance >= closeness) return distance; } if (p->handlers != header.handlers) { distance += 1; if (distance >= closeness) return distance; } if (p->localloc != header.localloc) { distance += 1; if (distance >= closeness) return distance; } if (p->editNcontinue != header.editNcontinue) { distance += 1; if (distance >= closeness) return distance; } if (p->varargs != header.varargs) { distance += 1; if (distance >= closeness) return distance; } if (p->profCallbacks != header.profCallbacks) { distance += 1; if (distance >= closeness) return distance; } if (p->genericsContext != header.genericsContext) { distance += 1; if (distance >= closeness) return distance; } if (p->genericsContextIsMethodDesc != header.genericsContextIsMethodDesc) { distance += 1; if (distance >= closeness) return distance; } if (p->returnKind != header.returnKind) { // Setting the ReturnKind requires two bytes of encoding. distance += 2; if (distance >= closeness) return distance; } if (header.gsCookieOffset != INVALID_GS_COOKIE_OFFSET) { distance += 1; if (distance >= closeness) return distance; } if (header.syncStartOffset != INVALID_SYNC_OFFSET) { distance += 1; if (distance >= closeness) return distance; } if (header.revPInvokeOffset != INVALID_REV_PINVOKE_OFFSET) { distance += 1; if (distance >= closeness) return distance; } return distance; } // DllMain calls gcInitEncoderLookupTable to fill in this table /* extern */ int infoHdrLookup[IH_MAX_PROLOG_SIZE + 2]; /* static */ void GCInfo::gcInitEncoderLookupTable() { const InfoHdrSmall* p = &infoHdrShortcut[0]; int lo = -1; int hi = 0; int n; for (n = 0; n < 128; n++, p++) { if (p->prologSize != lo) { if (p->prologSize < lo) { assert(p->prologSize == 0); hi = IH_MAX_PROLOG_SIZE; } else hi = p->prologSize; assert(hi <= IH_MAX_PROLOG_SIZE); while (lo < hi) infoHdrLookup[++lo] = n; if (lo == IH_MAX_PROLOG_SIZE) break; } } assert(lo == IH_MAX_PROLOG_SIZE); assert(infoHdrLookup[IH_MAX_PROLOG_SIZE] < 128); while (p->prologSize == lo) { n++; if (n >= 128) break; p++; } infoHdrLookup[++lo] = n; #ifdef DEBUG // // We do some other DEBUG only validity checks here // assert(callCommonDelta[0] < callCommonDelta[1]); assert(callCommonDelta[1] < callCommonDelta[2]); assert(callCommonDelta[2] < callCommonDelta[3]); assert(sizeof(CallPattern) == sizeof(unsigned)); unsigned maxMarks = 0; for (unsigned inx = 0; inx < 80; inx++) { CallPattern pat; pat.val = callPatternTable[inx]; assert(pat.fld.codeDelta <= CP_MAX_CODE_DELTA); if (pat.fld.codeDelta == CP_MAX_CODE_DELTA) maxMarks |= 0x01; assert(pat.fld.argCnt <= CP_MAX_ARG_CNT); if (pat.fld.argCnt == CP_MAX_ARG_CNT) maxMarks |= 0x02; assert(pat.fld.argMask <= CP_MAX_ARG_MASK); if (pat.fld.argMask == CP_MAX_ARG_MASK) maxMarks |= 0x04; } assert(maxMarks == 0x07); #endif } const int NO_CACHED_HEADER = -1; BYTE FASTCALL encodeHeaderFirst(const InfoHdr& header, InfoHdr* state, int* more, int* pCached) { // First try the cached value for an exact match, if there is one // int n = *pCached; const InfoHdrSmall* p; if (n != NO_CACHED_HEADER) { p = &infoHdrShortcut[n]; if (p->isHeaderMatch(header)) { // exact match found GetInfoHdr(n, state); *more = 0; return n; } } // Next search the table for an exact match // Only search entries that have a matching prolog size // Note: lo and hi are saved here as they specify the // range of entries that have the correct prolog size // unsigned psz = header.prologSize; int lo = 0; int hi = 0; if (psz <= IH_MAX_PROLOG_SIZE) { lo = infoHdrLookup[psz]; hi = infoHdrLookup[psz + 1]; p = &infoHdrShortcut[lo]; for (n = lo; n < hi; n++, p++) { assert(psz == p->prologSize); if (p->isHeaderMatch(header)) { // exact match found GetInfoHdr(n, state); *pCached = n; // cache the value *more = 0; return n; } } } // // no exact match in infoHdrShortcut[] // // find the nearest entry in the table // int nearest = -1; int closeness = 255; // (i.e. not very close) // // Calculate the minimum acceptable distance // if we find an entry that is at least this close // we will stop the search and use that value // int min_acceptable_distance = 1; if (header.frameSize > SET_FRAMESIZE_MAX) { ++min_acceptable_distance; if (header.frameSize > 32) ++min_acceptable_distance; } if (header.argCount > SET_ARGCOUNT_MAX) { ++min_acceptable_distance; if (header.argCount > 32) ++min_acceptable_distance; } // First try the cached value // and see if it meets the minimum acceptable distance // if (*pCached != NO_CACHED_HEADER) { p = &infoHdrShortcut[*pCached]; int distance = measureDistance(header, p, closeness); assert(distance > 0); if (distance <= min_acceptable_distance) { GetInfoHdr(*pCached, state); *more = distance; return 0x80 | *pCached; } else { closeness = distance; nearest = *pCached; } } // Then try the ones pointed to by [lo..hi), // (i.e. the ones that have the correct prolog size) // p = &infoHdrShortcut[lo]; for (n = lo; n < hi; n++, p++) { if (n == *pCached) continue; // already tried this one int distance = measureDistance(header, p, closeness); assert(distance > 0); if (distance <= min_acceptable_distance) { GetInfoHdr(n, state); *pCached = n; // Cache this value *more = distance; return 0x80 | n; } else if (distance < closeness) { closeness = distance; nearest = n; } } int last = infoHdrLookup[IH_MAX_PROLOG_SIZE + 1]; assert(last <= 128); // Then try all the rest [0..last-1] p = &infoHdrShortcut[0]; for (n = 0; n < last; n++, p++) { if (n == *pCached) continue; // already tried this one if ((n >= lo) && (n < hi)) continue; // already tried these int distance = measureDistance(header, p, closeness); assert(distance > 0); if (distance <= min_acceptable_distance) { GetInfoHdr(n, state); *pCached = n; // Cache this value *more = distance; return 0x80 | n; } else if (distance < closeness) { closeness = distance; nearest = n; } } // // If we reach here then there was no adjacent neighbor // in infoHdrShortcut[], closeness indicate how many extra // bytes we will need to encode this item. // assert((nearest >= 0) && (nearest <= 127)); GetInfoHdr(nearest, state); *pCached = nearest; // Cache this value *more = closeness; return 0x80 | nearest; } /***************************************************************************** * * Write the initial part of the method info block. This is called twice; * first to compute the size needed for the info (mask=0), the second time * to actually generate the contents of the table (mask=-1,dest!=NULL). */ size_t GCInfo::gcInfoBlockHdrSave( BYTE* dest, int mask, unsigned methodSize, unsigned prologSize, unsigned epilogSize, InfoHdr* header, int* pCached) { #ifdef DEBUG if (compiler->verbose) printf("*************** In gcInfoBlockHdrSave()\n"); #endif size_t size = 0; #if VERIFY_GC_TABLES *castto(dest, unsigned short*)++ = 0xFEEF; size += sizeof(short); #endif /* Write the method size first (using between 1 and 5 bytes) */ CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { if (mask) printf("GCINFO: methodSize = %04X\n", methodSize); if (mask) printf("GCINFO: prologSize = %04X\n", prologSize); if (mask) printf("GCINFO: epilogSize = %04X\n", epilogSize); } #endif size_t methSz = encodeUnsigned(dest, methodSize); size += methSz; dest += methSz & mask; // // New style InfoBlk Header // // Typically only uses one-byte to store everything. // if (mask == 0) { memset(header, 0, sizeof(InfoHdr)); *pCached = NO_CACHED_HEADER; } assert(FitsIn<unsigned char>(prologSize)); header->prologSize = static_cast<unsigned char>(prologSize); assert(FitsIn<unsigned char>(epilogSize)); header->epilogSize = static_cast<unsigned char>(epilogSize); header->epilogCount = compiler->GetEmitter()->emitGetEpilogCnt(); if (header->epilogCount != compiler->GetEmitter()->emitGetEpilogCnt()) IMPL_LIMITATION("emitGetEpilogCnt() does not fit in InfoHdr::epilogCount"); header->epilogAtEnd = compiler->GetEmitter()->emitHasEpilogEnd(); if (compiler->codeGen->regSet.rsRegsModified(RBM_EDI)) header->ediSaved = 1; if (compiler->codeGen->regSet.rsRegsModified(RBM_ESI)) header->esiSaved = 1; if (compiler->codeGen->regSet.rsRegsModified(RBM_EBX)) header->ebxSaved = 1; header->interruptible = compiler->codeGen->GetInterruptible(); if (!compiler->isFramePointerUsed()) { #if DOUBLE_ALIGN if (compiler->genDoubleAlign()) { header->ebpSaved = true; assert(!compiler->codeGen->regSet.rsRegsModified(RBM_EBP)); } #endif if (compiler->codeGen->regSet.rsRegsModified(RBM_EBP)) { header->ebpSaved = true; } } else { header->ebpSaved = true; header->ebpFrame = true; } #if DOUBLE_ALIGN header->doubleAlign = compiler->genDoubleAlign(); #endif header->security = false; header->handlers = compiler->ehHasCallableHandlers(); header->localloc = compiler->compLocallocUsed; header->varargs = compiler->info.compIsVarArgs; header->profCallbacks = compiler->info.compProfilerCallback; header->editNcontinue = compiler->opts.compDbgEnC; header->genericsContext = compiler->lvaReportParamTypeArg(); header->genericsContextIsMethodDesc = header->genericsContext && (compiler->info.compMethodInfo->options & (CORINFO_GENERICS_CTXT_FROM_METHODDESC)); ReturnKind returnKind = getReturnKind(); _ASSERTE(IsValidReturnKind(returnKind) && "Return Kind must be valid"); _ASSERTE(!IsStructReturnKind(returnKind) && "Struct Return Kinds Unexpected for JIT32"); _ASSERTE(((int)returnKind < (int)SET_RET_KIND_MAX) && "ReturnKind has no legal encoding"); header->returnKind = returnKind; header->gsCookieOffset = INVALID_GS_COOKIE_OFFSET; if (compiler->getNeedsGSSecurityCookie()) { assert(compiler->lvaGSSecurityCookie != BAD_VAR_NUM); int stkOffs = compiler->lvaTable[compiler->lvaGSSecurityCookie].GetStackOffset(); header->gsCookieOffset = compiler->isFramePointerUsed() ? -stkOffs : stkOffs; assert(header->gsCookieOffset != INVALID_GS_COOKIE_OFFSET); } header->syncStartOffset = INVALID_SYNC_OFFSET; header->syncEndOffset = INVALID_SYNC_OFFSET; #ifndef UNIX_X86_ABI // JIT is responsible for synchronization on funclet-based EH model that x86/Linux uses. if (compiler->info.compFlags & CORINFO_FLG_SYNCH) { assert(compiler->syncStartEmitCookie != NULL); header->syncStartOffset = compiler->GetEmitter()->emitCodeOffset(compiler->syncStartEmitCookie, 0); assert(header->syncStartOffset != INVALID_SYNC_OFFSET); assert(compiler->syncEndEmitCookie != NULL); header->syncEndOffset = compiler->GetEmitter()->emitCodeOffset(compiler->syncEndEmitCookie, 0); assert(header->syncEndOffset != INVALID_SYNC_OFFSET); assert(header->syncStartOffset < header->syncEndOffset); // synchronized methods can't have more than 1 epilog assert(header->epilogCount <= 1); } #endif header->revPInvokeOffset = INVALID_REV_PINVOKE_OFFSET; if (compiler->opts.IsReversePInvoke()) { assert(compiler->lvaReversePInvokeFrameVar != BAD_VAR_NUM); int stkOffs = compiler->lvaTable[compiler->lvaReversePInvokeFrameVar].GetStackOffset(); header->revPInvokeOffset = compiler->isFramePointerUsed() ? -stkOffs : stkOffs; assert(header->revPInvokeOffset != INVALID_REV_PINVOKE_OFFSET); } assert((compiler->compArgSize & 0x3) == 0); size_t argCount = (compiler->compArgSize - (compiler->codeGen->intRegState.rsCalleeRegArgCount * REGSIZE_BYTES)) / REGSIZE_BYTES; assert(argCount <= MAX_USHORT_SIZE_T); header->argCount = static_cast<unsigned short>(argCount); header->frameSize = compiler->compLclFrameSize / sizeof(int); if (header->frameSize != (compiler->compLclFrameSize / sizeof(int))) IMPL_LIMITATION("compLclFrameSize does not fit in InfoHdr::frameSize"); if (mask == 0) { gcCountForHeader((UNALIGNED unsigned int*)&header->untrackedCnt, (UNALIGNED unsigned int*)&header->varPtrTableSize); } // // If the high-order bit of headerEncoding is set // then additional bytes will update the InfoHdr state // until the fully state is encoded // InfoHdr state; int more = 0; BYTE headerEncoding = encodeHeaderFirst(*header, &state, &more, pCached); ++size; if (mask) { #if REGEN_SHORTCUTS regenLog(headerEncoding, header, &state); #endif *dest++ = headerEncoding; BYTE encoding = headerEncoding; BYTE codeSet = 1; while (encoding & MORE_BYTES_TO_FOLLOW) { encoding = encodeHeaderNext(*header, &state, codeSet); #if REGEN_SHORTCUTS regenLog(headerEncoding, header, &state); #endif _ASSERTE((codeSet == 1 || codeSet == 2) && "Encoding must correspond to InfoHdrAdjust or InfoHdrAdjust2"); if (codeSet == 2) { *dest++ = NEXT_OPCODE | MORE_BYTES_TO_FOLLOW; ++size; } *dest++ = encoding; ++size; } } else { size += more; } if (header->untrackedCnt > SET_UNTRACKED_MAX) { unsigned count = header->untrackedCnt; unsigned sz = encodeUnsigned(mask ? dest : NULL, count); size += sz; dest += (sz & mask); } if (header->varPtrTableSize != 0) { unsigned count = header->varPtrTableSize; unsigned sz = encodeUnsigned(mask ? dest : NULL, count); size += sz; dest += (sz & mask); } if (header->gsCookieOffset != INVALID_GS_COOKIE_OFFSET) { assert(mask == 0 || state.gsCookieOffset == HAS_GS_COOKIE_OFFSET); unsigned offset = header->gsCookieOffset; unsigned sz = encodeUnsigned(mask ? dest : NULL, offset); size += sz; dest += (sz & mask); } if (header->syncStartOffset != INVALID_SYNC_OFFSET) { assert(mask == 0 || state.syncStartOffset == HAS_SYNC_OFFSET); { unsigned offset = header->syncStartOffset; unsigned sz = encodeUnsigned(mask ? dest : NULL, offset); size += sz; dest += (sz & mask); } { unsigned offset = header->syncEndOffset; unsigned sz = encodeUnsigned(mask ? dest : NULL, offset); size += sz; dest += (sz & mask); } } if (header->revPInvokeOffset != INVALID_REV_PINVOKE_OFFSET) { assert(mask == 0 || state.revPInvokeOffset == HAS_REV_PINVOKE_FRAME_OFFSET); unsigned offset = header->revPInvokeOffset; unsigned sz = encodeUnsigned(mask ? dest : NULL, offset); size += sz; dest += (sz & mask); } if (header->epilogCount) { /* Generate table unless one epilog at the end of the method */ if (header->epilogAtEnd == 0 || header->epilogCount != 1) { #if VERIFY_GC_TABLES *castto(dest, unsigned short*)++ = 0xFACE; size += sizeof(short); #endif /* Simply write a sorted array of offsets using encodeUDelta */ gcEpilogTable = mask ? dest : NULL; gcEpilogPrevOffset = 0; size_t sz = compiler->GetEmitter()->emitGenEpilogLst(gcRecordEpilog, this); /* Add the size of the epilog table to the total size */ size += sz; dest += (sz & mask); } } #if DISPLAY_SIZES if (mask) { if (compiler->codeGen->GetInterruptible()) { genMethodICnt++; } else { genMethodNCnt++; } } #endif // DISPLAY_SIZES return size; } /***************************************************************************** * * Return the size of the pointer tracking tables. */ size_t GCInfo::gcPtrTableSize(const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset) { BYTE temp[16 + 1]; #ifdef DEBUG temp[16] = 0xAB; // Set some marker #endif /* Compute the total size of the tables */ size_t size = gcMakeRegPtrTable(temp, 0, header, codeSize, pArgTabOffset); assert(temp[16] == 0xAB); // Check that marker didnt get overwritten return size; } /***************************************************************************** * Encode the callee-saved registers into 3 bits. */ unsigned gceEncodeCalleeSavedRegs(unsigned regs) { unsigned encodedRegs = 0; if (regs & RBM_EBX) encodedRegs |= 0x04; if (regs & RBM_ESI) encodedRegs |= 0x02; if (regs & RBM_EDI) encodedRegs |= 0x01; return encodedRegs; } /***************************************************************************** * Is the next entry for a byref pointer. If so, emit the prefix for the * interruptible encoding. Check only for pushes and registers */ inline BYTE* gceByrefPrefixI(GCInfo::regPtrDsc* rpd, BYTE* dest) { // For registers, we don't need a prefix if it is going dead. assert(rpd->rpdArg || rpd->rpdCompiler.rpdDel == 0); if (!rpd->rpdArg || rpd->rpdArgType == GCInfo::rpdARG_PUSH) if (rpd->rpdGCtypeGet() == GCT_BYREF) *dest++ = 0xBF; return dest; } /*****************************************************************************/ /* These functions are needed to work around a VC5.0 compiler bug */ /* DO NOT REMOVE, unless you are sure that the free build works */ static int zeroFN() { return 0; } static int (*zeroFunc)() = zeroFN; /***************************************************************************** * Modelling of the GC ptrs pushed on the stack */ typedef unsigned pasMaskType; #define BITS_IN_pasMask (BITS_IN_BYTE * sizeof(pasMaskType)) #define HIGHEST_pasMask_BIT (((pasMaskType)0x1) << (BITS_IN_pasMask - 1)) //----------------------------------------------------------------------------- class PendingArgsStack { public: PendingArgsStack(unsigned maxDepth, Compiler* pComp); void pasPush(GCtype gcType); void pasPop(unsigned count); void pasKill(unsigned gcCount); unsigned pasCurDepth() { return pasDepth; } pasMaskType pasArgMask() { assert(pasDepth <= BITS_IN_pasMask); return pasBottomMask; } pasMaskType pasByrefArgMask() { assert(pasDepth <= BITS_IN_pasMask); return pasByrefBottomMask; } bool pasHasGCptrs(); // Use these in the case where there actually are more ptrs than pasArgMask unsigned pasEnumGCoffsCount(); #define pasENUM_START ((unsigned)-1) #define pasENUM_LAST ((unsigned)-2) #define pasENUM_END ((unsigned)-3) unsigned pasEnumGCoffs(unsigned iter, unsigned* offs); protected: unsigned pasMaxDepth; unsigned pasDepth; pasMaskType pasBottomMask; // The first 32 args pasMaskType pasByrefBottomMask; // byref qualifier for pasBottomMask BYTE* pasTopArray; // More than 32 args are represented here unsigned pasPtrsInTopArray; // How many GCptrs here }; //----------------------------------------------------------------------------- PendingArgsStack::PendingArgsStack(unsigned maxDepth, Compiler* pComp) : pasMaxDepth(maxDepth) , pasDepth(0) , pasBottomMask(0) , pasByrefBottomMask(0) , pasTopArray(NULL) , pasPtrsInTopArray(0) { /* Do we need an array as well as the mask ? */ if (pasMaxDepth > BITS_IN_pasMask) pasTopArray = pComp->getAllocator(CMK_Unknown).allocate<BYTE>(pasMaxDepth - BITS_IN_pasMask); } //----------------------------------------------------------------------------- void PendingArgsStack::pasPush(GCtype gcType) { assert(pasDepth < pasMaxDepth); if (pasDepth < BITS_IN_pasMask) { /* Shift the mask */ pasBottomMask <<= 1; pasByrefBottomMask <<= 1; if (needsGC(gcType)) { pasBottomMask |= 1; if (gcType == GCT_BYREF) pasByrefBottomMask |= 1; } } else { /* Push on array */ pasTopArray[pasDepth - BITS_IN_pasMask] = (BYTE)gcType; if (gcType) pasPtrsInTopArray++; } pasDepth++; } //----------------------------------------------------------------------------- void PendingArgsStack::pasPop(unsigned count) { assert(pasDepth >= count); /* First pop from array (if applicable) */ for (/**/; (pasDepth > BITS_IN_pasMask) && count; pasDepth--, count--) { unsigned topIndex = pasDepth - BITS_IN_pasMask - 1; GCtype topArg = (GCtype)pasTopArray[topIndex]; if (needsGC(topArg)) pasPtrsInTopArray--; } if (count == 0) return; /* Now un-shift the mask */ assert(pasPtrsInTopArray == 0); assert(count <= BITS_IN_pasMask); if (count == BITS_IN_pasMask) // (x>>32) is a nop on x86. So special-case it { pasBottomMask = pasByrefBottomMask = 0; pasDepth = 0; } else { pasBottomMask >>= count; pasByrefBottomMask >>= count; pasDepth -= count; } } //----------------------------------------------------------------------------- // Kill (but don't pop) the top 'gcCount' args void PendingArgsStack::pasKill(unsigned gcCount) { assert(gcCount != 0); /* First kill args in array (if any) */ for (unsigned curPos = pasDepth; (curPos > BITS_IN_pasMask) && gcCount; curPos--) { unsigned curIndex = curPos - BITS_IN_pasMask - 1; GCtype curArg = (GCtype)pasTopArray[curIndex]; if (needsGC(curArg)) { pasTopArray[curIndex] = GCT_NONE; pasPtrsInTopArray--; gcCount--; } } /* Now kill bits from the mask */ assert(pasPtrsInTopArray == 0); assert(gcCount <= BITS_IN_pasMask); for (unsigned bitPos = 1; gcCount; bitPos <<= 1) { assert(pasBottomMask != 0); if (pasBottomMask & bitPos) { pasBottomMask &= ~bitPos; pasByrefBottomMask &= ~bitPos; --gcCount; } else { assert(bitPos != HIGHEST_pasMask_BIT); } } } //----------------------------------------------------------------------------- // Used for the case where there are more than BITS_IN_pasMask args on stack, // but none are any pointers. May avoid reporting anything to GCinfo bool PendingArgsStack::pasHasGCptrs() { if (pasDepth <= BITS_IN_pasMask) return pasBottomMask != 0; else return pasBottomMask != 0 || pasPtrsInTopArray != 0; } //----------------------------------------------------------------------------- // Iterates over mask and array to return total count. // Use only when you are going to emit a table of the offsets unsigned PendingArgsStack::pasEnumGCoffsCount() { /* Should only be used in the worst case, when just the mask can't be used */ assert(pasDepth > BITS_IN_pasMask && pasHasGCptrs()); /* Count number of set bits in mask */ unsigned count = 0; for (pasMaskType mask = 0x1, i = 0; i < BITS_IN_pasMask; mask <<= 1, i++) { if (mask & pasBottomMask) count++; } return count + pasPtrsInTopArray; } //----------------------------------------------------------------------------- // Initalize enumeration by passing in iter=pasENUM_START. // Continue by passing in the return value as the new value of iter // End of enumeration when pasENUM_END is returned // If return value != pasENUM_END, *offs is set to the offset for GCinfo unsigned PendingArgsStack::pasEnumGCoffs(unsigned iter, unsigned* offs) { if (iter == pasENUM_LAST) return pasENUM_END; unsigned i = (iter == pasENUM_START) ? pasDepth : iter; for (/**/; i > BITS_IN_pasMask; i--) { GCtype curArg = (GCtype)pasTopArray[i - BITS_IN_pasMask - 1]; if (needsGC(curArg)) { unsigned offset; offset = (pasDepth - i) * TARGET_POINTER_SIZE; if (curArg == GCT_BYREF) offset |= byref_OFFSET_FLAG; *offs = offset; return i - 1; } } if (!pasBottomMask) return pasENUM_END; // Have we already processed some of the bits in pasBottomMask ? i = (iter == pasENUM_START || iter >= BITS_IN_pasMask) ? 0 // no : iter; // yes for (pasMaskType mask = 0x1 << i; mask; i++, mask <<= 1) { if (mask & pasBottomMask) { unsigned lvl = (pasDepth > BITS_IN_pasMask) ? (pasDepth - BITS_IN_pasMask) : 0; // How many in pasTopArray[] lvl += i; unsigned offset; offset = lvl * TARGET_POINTER_SIZE; if (mask & pasByrefBottomMask) offset |= byref_OFFSET_FLAG; *offs = offset; unsigned remMask = -int(mask << 1); return ((pasBottomMask & remMask) ? (i + 1) : pasENUM_LAST); } } assert(!"Shouldnt reach here"); return pasENUM_END; } /***************************************************************************** * * Generate the register pointer map, and return its total size in bytes. If * 'mask' is 0, we don't actually store any data in 'dest' (except for one * entry, which is never more than 10 bytes), so this can be used to merely * compute the size of the table. */ #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable : 21000) // Suppress PREFast warning about overly large function #endif size_t GCInfo::gcMakeRegPtrTable(BYTE* dest, int mask, const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset) { unsigned varNum; LclVarDsc* varDsc; size_t totalSize = 0; unsigned lastOffset; /* The mask should be all 0's or all 1's */ assert(mask == 0 || mask == -1); /* Start computing the total size of the table */ bool emitArgTabOffset = (header.varPtrTableSize != 0 || header.untrackedCnt > SET_UNTRACKED_MAX); if (mask != 0 && emitArgTabOffset) { assert(*pArgTabOffset <= MAX_UNSIGNED_SIZE_T); unsigned sz = encodeUnsigned(dest, static_cast<unsigned>(*pArgTabOffset)); dest += sz; totalSize += sz; } #if VERIFY_GC_TABLES if (mask) { *(short*)dest = (short)0xBEEF; dest += sizeof(short); } totalSize += sizeof(short); #endif /************************************************************************** * * Untracked ptr variables * ************************************************************************** */ #if DEBUG unsigned untrackedCount = 0; unsigned varPtrTableSize = 0; gcCountForHeader(&untrackedCount, &varPtrTableSize); assert(untrackedCount == header.untrackedCnt); assert(varPtrTableSize == header.varPtrTableSize); #endif // DEBUG if (header.untrackedCnt != 0) { // Write the table of untracked pointer variables. int lastoffset = 0; for (varNum = 0, varDsc = compiler->lvaTable; varNum < compiler->lvaCount; varNum++, varDsc++) { if (compiler->lvaIsFieldOfDependentlyPromotedStruct(varDsc)) { // Field local of a PROMOTION_TYPE_DEPENDENT struct must have been // reported through its parent local continue; } if (varTypeIsGC(varDsc->TypeGet())) { if (!gcIsUntrackedLocalOrNonEnregisteredArg(varNum)) { continue; } int offset = varDsc->GetStackOffset(); #if DOUBLE_ALIGN // For genDoubleAlign(), locals are addressed relative to ESP and // arguments are addressed relative to EBP. if (compiler->genDoubleAlign() && varDsc->lvIsParam && !varDsc->lvIsRegArg) offset += compiler->codeGen->genTotalFrameSize(); #endif // The lower bits of the offset encode properties of the stk ptr assert(~OFFSET_MASK % sizeof(offset) == 0); if (varDsc->TypeGet() == TYP_BYREF) { // Or in byref_OFFSET_FLAG for 'byref' pointer tracking offset |= byref_OFFSET_FLAG; } if (varDsc->lvPinned) { // Or in pinned_OFFSET_FLAG for 'pinned' pointer tracking offset |= pinned_OFFSET_FLAG; } int encodedoffset = lastoffset - offset; lastoffset = offset; if (mask == 0) totalSize += encodeSigned(NULL, encodedoffset); else { unsigned sz = encodeSigned(dest, encodedoffset); dest += sz; totalSize += sz; } } else if ((varDsc->TypeGet() == TYP_STRUCT) && varDsc->lvOnFrame && varDsc->HasGCPtr()) { ClassLayout* layout = varDsc->GetLayout(); unsigned slots = layout->GetSlotCount(); for (unsigned i = 0; i < slots; i++) { if (!layout->IsGCPtr(i)) { continue; } unsigned offset = varDsc->GetStackOffset() + i * TARGET_POINTER_SIZE; #if DOUBLE_ALIGN // For genDoubleAlign(), locals are addressed relative to ESP and // arguments are addressed relative to EBP. if (compiler->genDoubleAlign() && varDsc->lvIsParam && !varDsc->lvIsRegArg) { offset += compiler->codeGen->genTotalFrameSize(); } #endif if (layout->GetGCPtrType(i) == TYP_BYREF) { offset |= byref_OFFSET_FLAG; // indicate it is a byref GC pointer } int encodedoffset = lastoffset - offset; lastoffset = offset; if (mask == 0) { totalSize += encodeSigned(NULL, encodedoffset); } else { unsigned sz = encodeSigned(dest, encodedoffset); dest += sz; totalSize += sz; } } } } /* Count&Write spill temps that hold pointers */ assert(compiler->codeGen->regSet.tmpAllFree()); for (TempDsc* tempItem = compiler->codeGen->regSet.tmpListBeg(); tempItem != nullptr; tempItem = compiler->codeGen->regSet.tmpListNxt(tempItem)) { if (varTypeIsGC(tempItem->tdTempType())) { { int offset; offset = tempItem->tdTempOffs(); if (tempItem->tdTempType() == TYP_BYREF) { offset |= byref_OFFSET_FLAG; } int encodedoffset = lastoffset - offset; lastoffset = offset; if (mask == 0) { totalSize += encodeSigned(NULL, encodedoffset); } else { unsigned sz = encodeSigned(dest, encodedoffset); dest += sz; totalSize += sz; } } } } } #if VERIFY_GC_TABLES if (mask) { *(short*)dest = (short)0xCAFE; dest += sizeof(short); } totalSize += sizeof(short); #endif /************************************************************************** * * Generate the table of stack pointer variable lifetimes. * ************************************************************************** */ bool keepThisAlive = false; if (!compiler->info.compIsStatic) { unsigned thisArgNum = compiler->info.compThisArg; gcIsUntrackedLocalOrNonEnregisteredArg(thisArgNum, &keepThisAlive); } // First we check for the most common case - no lifetimes at all. if (header.varPtrTableSize != 0) { #if !defined(FEATURE_EH_FUNCLETS) if (keepThisAlive) { // Encoding of untracked variables does not support reporting // "this". So report it as a tracked variable with a liveness // extending over the entire method. assert(compiler->lvaTable[compiler->info.compThisArg].TypeGet() == TYP_REF); unsigned varOffs = compiler->lvaTable[compiler->info.compThisArg].GetStackOffset(); /* For negative stack offsets we must reset the low bits, * take abs and then set them back */ varOffs = abs(static_cast<int>(varOffs)); varOffs |= this_OFFSET_FLAG; size_t sz = 0; sz = encodeUnsigned(mask ? (dest + sz) : NULL, varOffs); sz += encodeUDelta(mask ? (dest + sz) : NULL, 0, 0); sz += encodeUDelta(mask ? (dest + sz) : NULL, codeSize, 0); dest += (sz & mask); totalSize += sz; } #endif // !FEATURE_EH_FUNCLETS /* We'll use a delta encoding for the lifetime offsets */ lastOffset = 0; for (varPtrDsc* varTmp = gcVarPtrList; varTmp; varTmp = varTmp->vpdNext) { unsigned varOffs; unsigned lowBits; unsigned begOffs; unsigned endOffs; assert(~OFFSET_MASK % TARGET_POINTER_SIZE == 0); /* Get hold of the variable's stack offset */ lowBits = varTmp->vpdVarNum & OFFSET_MASK; /* For negative stack offsets we must reset the low bits, * take abs and then set them back */ varOffs = abs(static_cast<int>(varTmp->vpdVarNum & ~OFFSET_MASK)); varOffs |= lowBits; /* Compute the actual lifetime offsets */ begOffs = varTmp->vpdBegOfs; endOffs = varTmp->vpdEndOfs; /* Special case: skip any 0-length lifetimes */ if (endOffs == begOffs) continue; /* Are we counting or generating? */ size_t sz = 0; sz = encodeUnsigned(mask ? (dest + sz) : NULL, varOffs); sz += encodeUDelta(mask ? (dest + sz) : NULL, begOffs, lastOffset); sz += encodeUDelta(mask ? (dest + sz) : NULL, endOffs, begOffs); dest += (sz & mask); totalSize += sz; /* The next entry will be relative to the one we just processed */ lastOffset = begOffs; } } if (pArgTabOffset != NULL) *pArgTabOffset = totalSize; #if VERIFY_GC_TABLES if (mask) { *(short*)dest = (short)0xBABE; dest += sizeof(short); } totalSize += sizeof(short); #endif if (!mask && emitArgTabOffset) { assert(*pArgTabOffset <= MAX_UNSIGNED_SIZE_T); totalSize += encodeUnsigned(NULL, static_cast<unsigned>(*pArgTabOffset)); } /************************************************************************** * * Prepare to generate the pointer register/argument map * ************************************************************************** */ lastOffset = 0; if (compiler->codeGen->GetInterruptible()) { #ifdef TARGET_X86 assert(compiler->IsFullPtrRegMapRequired()); unsigned ptrRegs = 0; regPtrDsc* genRegPtrTemp; /* Walk the list of pointer register/argument entries */ for (genRegPtrTemp = gcRegPtrList; genRegPtrTemp; genRegPtrTemp = genRegPtrTemp->rpdNext) { BYTE* base = dest; unsigned nextOffset; DWORD codeDelta; nextOffset = genRegPtrTemp->rpdOffs; /* Encoding table for methods that are fully interruptible The encoding used is as follows: ptr reg dead 00RRRDDD [RRR != 100] ptr reg live 01RRRDDD [RRR != 100] non-ptr arg push 10110DDD [SSS == 110] ptr arg push 10SSSDDD [SSS != 110] && [SSS != 111] ptr arg pop 11CCCDDD [CCC != 000] && [CCC != 110] && [CCC != 111] little skip 11000DDD [CCC == 000] bigger skip 11110BBB [CCC == 110] The values used in the above encodings are as follows: DDD code offset delta from previous entry (0-7) BBB bigger delta 000=8,001=16,010=24,...,111=64 RRR register number (EAX=000,ECX=001,EDX=010,EBX=011, EBP=101,ESI=110,EDI=111), ESP=100 is reserved SSS argument offset from base of stack. This is redundant for frameless methods as we can infer it from the previous pushes+pops. However, for EBP-methods, we only report GC pushes, and so we need SSS CCC argument count being popped (includes only ptrs for EBP methods) The following are the 'large' versions: large delta skip 10111000 [0xB8] , encodeUnsigned(delta) large ptr arg push 11111000 [0xF8] , encodeUnsigned(pushCount) large non-ptr arg push 11111001 [0xF9] , encodeUnsigned(pushCount) large ptr arg pop 11111100 [0xFC] , encodeUnsigned(popCount) large arg dead 11111101 [0xFD] , encodeUnsigned(popCount) for caller-pop args. Any GC args go dead after the call, but are still sitting on the stack this pointer prefix 10111100 [0xBC] the next encoding is a ptr live or a ptr arg push and contains the this pointer interior or by-ref 10111111 [0xBF] the next encoding is a ptr live pointer prefix or a ptr arg push and contains an interior or by-ref pointer The value 11111111 [0xFF] indicates the end of the table. */ codeDelta = nextOffset - lastOffset; assert((int)codeDelta >= 0); // If the code delta is between 8 and (64+7), // generate a 'bigger delta' encoding if ((codeDelta >= 8) && (codeDelta <= (64 + 7))) { unsigned biggerDelta = ((codeDelta - 8) & 0x38) + 8; *dest++ = 0xF0 | ((biggerDelta - 8) >> 3); lastOffset += biggerDelta; codeDelta &= 0x07; } // If the code delta is still bigger than 7, // generate a 'large code delta' encoding if (codeDelta > 7) { *dest++ = 0xB8; dest += encodeUnsigned(dest, codeDelta); codeDelta = 0; /* Remember the new 'last' offset */ lastOffset = nextOffset; } /* Is this a pointer argument or register entry? */ if (genRegPtrTemp->rpdArg) { if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_KILL) { if (codeDelta) { /* Use the small encoding: little delta skip 11000DDD [0xC0] */ assert((codeDelta & 0x7) == codeDelta); *dest++ = 0xC0 | (BYTE)codeDelta; /* Remember the new 'last' offset */ lastOffset = nextOffset; } /* Caller-pop arguments are dead after call but are still sitting on the stack */ *dest++ = 0xFD; assert(genRegPtrTemp->rpdPtrArg != 0); dest += encodeUnsigned(dest, genRegPtrTemp->rpdPtrArg); } else if (genRegPtrTemp->rpdPtrArg < 6 && genRegPtrTemp->rpdGCtypeGet()) { /* Is the argument offset/count smaller than 6 ? */ dest = gceByrefPrefixI(genRegPtrTemp, dest); if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_PUSH || (genRegPtrTemp->rpdPtrArg != 0)) { /* Use the small encoding: ptr arg push 10SSSDDD [SSS != 110] && [SSS != 111] ptr arg pop 11CCCDDD [CCC != 110] && [CCC != 111] */ bool isPop = genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP; *dest++ = 0x80 | (BYTE)codeDelta | genRegPtrTemp->rpdPtrArg << 3 | isPop << 6; /* Remember the new 'last' offset */ lastOffset = nextOffset; } else { assert(!"Check this"); } } else if (genRegPtrTemp->rpdGCtypeGet() == GCT_NONE) { /* Use the small encoding: ` non-ptr arg push 10110DDD [0xB0] (push of sizeof(int)) */ assert((codeDelta & 0x7) == codeDelta); *dest++ = 0xB0 | (BYTE)codeDelta; #ifndef UNIX_X86_ABI assert(!compiler->isFramePointerUsed()); #endif /* Remember the new 'last' offset */ lastOffset = nextOffset; } else { /* Will have to use large encoding; * first do the code delta */ if (codeDelta) { /* Use the small encoding: little delta skip 11000DDD [0xC0] */ assert((codeDelta & 0x7) == codeDelta); *dest++ = 0xC0 | (BYTE)codeDelta; } /* Now append a large argument record: large ptr arg push 11111000 [0xF8] large ptr arg pop 11111100 [0xFC] */ bool isPop = genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP; dest = gceByrefPrefixI(genRegPtrTemp, dest); *dest++ = 0xF8 | (isPop << 2); dest += encodeUnsigned(dest, genRegPtrTemp->rpdPtrArg); /* Remember the new 'last' offset */ lastOffset = nextOffset; } } else { unsigned regMask; /* Record any registers that are becoming dead */ regMask = genRegPtrTemp->rpdCompiler.rpdDel & ptrRegs; while (regMask) // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI { unsigned tmpMask; regNumber regNum; /* Get hold of the next register bit */ tmpMask = genFindLowestReg(regMask); assert(tmpMask); /* Remember the new state of this register */ ptrRegs &= ~tmpMask; /* Figure out which register the next bit corresponds to */ regNum = genRegNumFromMask(tmpMask); assert(regNum <= 7); /* Reserve ESP, regNum==4 for future use */ assert(regNum != 4); /* Generate a small encoding: ptr reg dead 00RRRDDD */ assert((codeDelta & 0x7) == codeDelta); *dest++ = 0x00 | regNum << 3 | (BYTE)codeDelta; /* Turn the bit we've just generated off and continue */ regMask -= tmpMask; // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI /* Remember the new 'last' offset */ lastOffset = nextOffset; /* Any entries that follow will be at the same offset */ codeDelta = zeroFunc(); /* DO NOT REMOVE */ } /* Record any registers that are becoming live */ regMask = genRegPtrTemp->rpdCompiler.rpdAdd & ~ptrRegs; while (regMask) // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI { unsigned tmpMask; regNumber regNum; /* Get hold of the next register bit */ tmpMask = genFindLowestReg(regMask); assert(tmpMask); /* Remember the new state of this register */ ptrRegs |= tmpMask; /* Figure out which register the next bit corresponds to */ regNum = genRegNumFromMask(tmpMask); assert(regNum <= 7); /* Generate a small encoding: ptr reg live 01RRRDDD */ dest = gceByrefPrefixI(genRegPtrTemp, dest); if (!keepThisAlive && genRegPtrTemp->rpdIsThis) { // Mark with 'this' pointer prefix *dest++ = 0xBC; // Can only have one bit set in regMask assert(regMask == tmpMask); } assert((codeDelta & 0x7) == codeDelta); *dest++ = 0x40 | (regNum << 3) | (BYTE)codeDelta; /* Turn the bit we've just generated off and continue */ regMask -= tmpMask; // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI /* Remember the new 'last' offset */ lastOffset = nextOffset; /* Any entries that follow will be at the same offset */ codeDelta = zeroFunc(); /* DO NOT REMOVE */ } } /* Keep track of the total amount of generated stuff */ totalSize += dest - base; /* Go back to the buffer start if we're not generating a table */ if (!mask) dest = base; } #endif // TARGET_X86 /* Terminate the table with 0xFF */ *dest = 0xFF; dest -= mask; totalSize++; } else if (compiler->isFramePointerUsed()) // GetInterruptible() is false { #ifdef TARGET_X86 /* Encoding table for methods with an EBP frame and that are not fully interruptible The encoding used is as follows: this pointer encodings: 01000000 this pointer in EBX 00100000 this pointer in ESI 00010000 this pointer in EDI tiny encoding: 0bsdDDDD requires code delta > 0 & delta < 16 (4-bits) requires pushed argmask == 0 where DDDD is code delta b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer small encoding: 1DDDDDDD bsdAAAAA requires code delta < 120 (7-bits) requires pushed argmask < 64 (5-bits) where DDDDDDD is code delta AAAAA is the pushed args mask b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer medium encoding 0xFD aaaaaaaa AAAAdddd bseDDDDD requires code delta < 512 (9-bits) requires pushed argmask < 2048 (12-bits) where DDDDD is the upper 5-bits of the code delta dddd is the low 4-bits of the code delta AAAA is the upper 4-bits of the pushed arg mask aaaaaaaa is the low 8-bits of the pushed arg mask b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer e indicates that register EDI is a live pointer medium encoding with interior pointers 0xF9 DDDDDDDD bsdAAAAAA iiiIIIII requires code delta < 256 (8-bits) requires pushed argmask < 64 (5-bits) where DDDDDDD is the code delta b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer AAAAA is the pushed arg mask iii indicates that EBX,EDI,ESI are interior pointers IIIII indicates that bits in the arg mask are interior pointers large encoding 0xFE [0BSD0bsd][32-bit code delta][32-bit argMask] b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer B indicates that register EBX is an interior pointer S indicates that register ESI is an interior pointer D indicates that register EDI is an interior pointer requires pushed argmask < 32-bits large encoding with interior pointers 0xFA [0BSD0bsd][32-bit code delta][32-bit argMask][32-bit interior pointer mask] b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer B indicates that register EBX is an interior pointer S indicates that register ESI is an interior pointer D indicates that register EDI is an interior pointer requires pushed argmask < 32-bits requires pushed iArgmask < 32-bits huge encoding This is the only encoding that supports a pushed argmask which is greater than 32-bits. 0xFB [0BSD0bsd][32-bit code delta] [32-bit table count][32-bit table size] [pushed ptr offsets table...] b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer B indicates that register EBX is an interior pointer S indicates that register ESI is an interior pointer D indicates that register EDI is an interior pointer the list count is the number of entries in the list the list size gives the byte-length of the list the offsets in the list are variable-length */ /* If "this" is enregistered, note it. We do this explicitly here as IsFullPtrRegMapRequired()==false, and so we don't have any regPtrDsc's. */ if (compiler->lvaKeepAliveAndReportThis() && compiler->lvaTable[compiler->info.compThisArg].lvRegister) { unsigned thisRegMask = genRegMask(compiler->lvaTable[compiler->info.compThisArg].GetRegNum()); unsigned thisPtrRegEnc = gceEncodeCalleeSavedRegs(thisRegMask) << 4; if (thisPtrRegEnc) { totalSize += 1; if (mask) *dest++ = thisPtrRegEnc; } } CallDsc* call; assert(compiler->IsFullPtrRegMapRequired() == false); /* Walk the list of pointer register/argument entries */ for (call = gcCallDescList; call; call = call->cdNext) { BYTE* base = dest; unsigned nextOffset; /* Figure out the code offset of this entry */ nextOffset = call->cdOffs; /* Compute the distance from the previous call */ DWORD codeDelta = nextOffset - lastOffset; assert((int)codeDelta >= 0); /* Remember the new 'last' offset */ lastOffset = nextOffset; /* Compute the register mask */ unsigned gcrefRegMask = 0; unsigned byrefRegMask = 0; gcrefRegMask |= gceEncodeCalleeSavedRegs(call->cdGCrefRegs); byrefRegMask |= gceEncodeCalleeSavedRegs(call->cdByrefRegs); assert((gcrefRegMask & byrefRegMask) == 0); unsigned regMask = gcrefRegMask | byrefRegMask; bool byref = (byrefRegMask | call->u1.cdByrefArgMask) != 0; /* Check for the really large argument offset case */ /* The very rare Huge encodings */ if (call->cdArgCnt) { unsigned argNum; DWORD argCnt = call->cdArgCnt; DWORD argBytes = 0; BYTE* pArgBytes = DUMMY_INIT(NULL); if (mask != 0) { *dest++ = 0xFB; *dest++ = (byrefRegMask << 4) | regMask; *(DWORD*)dest = codeDelta; dest += sizeof(DWORD); *(DWORD*)dest = argCnt; dest += sizeof(DWORD); // skip the byte-size for now. Just note where it will go pArgBytes = dest; dest += sizeof(DWORD); } for (argNum = 0; argNum < argCnt; argNum++) { unsigned eltSize; eltSize = encodeUnsigned(dest, call->cdArgTable[argNum]); argBytes += eltSize; if (mask) dest += eltSize; } if (mask == 0) { dest = base + 1 + 1 + 3 * sizeof(DWORD) + argBytes; } else { assert(dest == pArgBytes + sizeof(argBytes) + argBytes); *(DWORD*)pArgBytes = argBytes; } } /* Check if we can use a tiny encoding */ else if ((codeDelta < 16) && (codeDelta != 0) && (call->u1.cdArgMask == 0) && !byref) { *dest++ = (regMask << 4) | (BYTE)codeDelta; } /* Check if we can use the small encoding */ else if ((codeDelta < 0x79) && (call->u1.cdArgMask <= 0x1F) && !byref) { *dest++ = 0x80 | (BYTE)codeDelta; *dest++ = call->u1.cdArgMask | (regMask << 5); } /* Check if we can use the medium encoding */ else if (codeDelta <= 0x01FF && call->u1.cdArgMask <= 0x0FFF && !byref) { *dest++ = 0xFD; *dest++ = call->u1.cdArgMask; *dest++ = ((call->u1.cdArgMask >> 4) & 0xF0) | ((BYTE)codeDelta & 0x0F); *dest++ = (regMask << 5) | (BYTE)((codeDelta >> 4) & 0x1F); } /* Check if we can use the medium encoding with byrefs */ else if (codeDelta <= 0x0FF && call->u1.cdArgMask <= 0x01F) { *dest++ = 0xF9; *dest++ = (BYTE)codeDelta; *dest++ = (regMask << 5) | call->u1.cdArgMask; *dest++ = (byrefRegMask << 5) | call->u1.cdByrefArgMask; } /* We'll use the large encoding */ else if (!byref) { *dest++ = 0xFE; *dest++ = (byrefRegMask << 4) | regMask; *(DWORD*)dest = codeDelta; dest += sizeof(DWORD); *(DWORD*)dest = call->u1.cdArgMask; dest += sizeof(DWORD); } /* We'll use the large encoding with byrefs */ else { *dest++ = 0xFA; *dest++ = (byrefRegMask << 4) | regMask; *(DWORD*)dest = codeDelta; dest += sizeof(DWORD); *(DWORD*)dest = call->u1.cdArgMask; dest += sizeof(DWORD); *(DWORD*)dest = call->u1.cdByrefArgMask; dest += sizeof(DWORD); } /* Keep track of the total amount of generated stuff */ totalSize += dest - base; /* Go back to the buffer start if we're not generating a table */ if (!mask) dest = base; } #endif // TARGET_X86 /* Terminate the table with 0xFF */ *dest = 0xFF; dest -= mask; totalSize++; } else // GetInterruptible() is false and we have an EBP-less frame { assert(compiler->IsFullPtrRegMapRequired()); #ifdef TARGET_X86 regPtrDsc* genRegPtrTemp; regNumber thisRegNum = regNumber(0); PendingArgsStack pasStk(compiler->GetEmitter()->emitMaxStackDepth, compiler); /* Walk the list of pointer register/argument entries */ for (genRegPtrTemp = gcRegPtrList; genRegPtrTemp; genRegPtrTemp = genRegPtrTemp->rpdNext) { /* * Encoding table for methods without an EBP frame and * that are not fully interruptible * * The encoding used is as follows: * * push 000DDDDD ESP push one item with 5-bit delta * push 00100000 [pushCount] ESP push multiple items * reserved 0010xxxx xxxx != 0000 * reserved 0011xxxx * skip 01000000 [Delta] Skip Delta, arbitrary sized delta * skip 0100DDDD Skip small Delta, for call (DDDD != 0) * pop 01CCDDDD ESP pop CC items with 4-bit delta (CC != 00) * call 1PPPPPPP Call Pattern, P=[0..79] * call 1101pbsd DDCCCMMM Call RegMask=pbsd,ArgCnt=CCC, * ArgMask=MMM Delta=commonDelta[DD] * call 1110pbsd [ArgCnt] [ArgMask] Call ArgCnt,RegMask=pbsd,ArgMask * call 11111000 [PBSDpbsd][32-bit delta][32-bit ArgCnt] * [32-bit PndCnt][32-bit PndSize][PndOffs...] * iptr 11110000 [IPtrMask] Arbitrary Interior Pointer Mask * thisptr 111101RR This pointer is in Register RR * 00=EDI,01=ESI,10=EBX,11=EBP * reserved 111100xx xx != 00 * reserved 111110xx xx != 00 * reserved 11111xxx xxx != 000 && xxx != 111(EOT) * * The value 11111111 [0xFF] indicates the end of the table. (EOT) * * An offset (at which stack-walking is performed) without an explicit encoding * is assumed to be a trivial call-site (no GC registers, stack empty before and * after) to avoid having to encode all trivial calls. * * Note on the encoding used for interior pointers * * The iptr encoding must immediately precede a call encoding. It is used * to transform a normal GC pointer addresses into an interior pointers for * GC purposes. The mask supplied to the iptr encoding is read from the * least signicant bit to the most signicant bit. (i.e the lowest bit is * read first) * * p indicates that register EBP is a live pointer * b indicates that register EBX is a live pointer * s indicates that register ESI is a live pointer * d indicates that register EDI is a live pointer * P indicates that register EBP is an interior pointer * B indicates that register EBX is an interior pointer * S indicates that register ESI is an interior pointer * D indicates that register EDI is an interior pointer * * As an example the following sequence indicates that EDI.ESI and the * second pushed pointer in ArgMask are really interior pointers. The * pointer in ESI in a normal pointer: * * iptr 11110000 00010011 => read Interior Ptr, Interior Ptr, * Normal Ptr, Normal Ptr, Interior Ptr * * call 11010011 DDCCC011 RRRR=1011 => read EDI is a GC-pointer, * ESI is a GC-pointer. * EBP is a GC-pointer * MMM=0011 => read two GC-pointers arguments * on the stack (nested call) * * Since the call instruction mentions 5 GC-pointers we list them in * the required order: EDI, ESI, EBP, 1st-pushed pointer, 2nd-pushed pointer * * And we apply the Interior Pointer mask mmmm=10011 to the five GC-pointers * we learn that EDI and ESI are interior GC-pointers and that * the second push arg is an interior GC-pointer. */ BYTE* base = dest; bool usePopEncoding; unsigned regMask; unsigned argMask; unsigned byrefRegMask; unsigned byrefArgMask; DWORD callArgCnt; unsigned nextOffset; DWORD codeDelta; nextOffset = genRegPtrTemp->rpdOffs; /* Compute the distance from the previous call */ codeDelta = nextOffset - lastOffset; assert((int)codeDelta >= 0); #if REGEN_CALLPAT // Must initialize this flag to true when REGEN_CALLPAT is on usePopEncoding = true; unsigned origCodeDelta = codeDelta; #endif if (!keepThisAlive && genRegPtrTemp->rpdIsThis) { unsigned tmpMask = genRegPtrTemp->rpdCompiler.rpdAdd; /* tmpMask must have exactly one bit set */ assert(tmpMask && ((tmpMask & (tmpMask - 1)) == 0)); thisRegNum = genRegNumFromMask(tmpMask); switch (thisRegNum) { case 0: // EAX case 1: // ECX case 2: // EDX case 4: // ESP break; case 7: // EDI *dest++ = 0xF4; /* 11110100 This pointer is in EDI */ break; case 6: // ESI *dest++ = 0xF5; /* 11110100 This pointer is in ESI */ break; case 3: // EBX *dest++ = 0xF6; /* 11110100 This pointer is in EBX */ break; case 5: // EBP *dest++ = 0xF7; /* 11110100 This pointer is in EBP */ break; default: break; } } /* Is this a stack pointer change or call? */ if (genRegPtrTemp->rpdArg) { if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_KILL) { // kill 'rpdPtrArg' number of pointer variables in pasStk pasStk.pasKill(genRegPtrTemp->rpdPtrArg); } /* Is this a call site? */ else if (genRegPtrTemp->rpdCall) { /* This is a true call site */ /* Remember the new 'last' offset */ lastOffset = nextOffset; callArgCnt = genRegPtrTemp->rpdPtrArg; unsigned gcrefRegMask = genRegPtrTemp->rpdCallGCrefRegs; byrefRegMask = genRegPtrTemp->rpdCallByrefRegs; assert((gcrefRegMask & byrefRegMask) == 0); regMask = gcrefRegMask | byrefRegMask; /* adjust argMask for this call-site */ pasStk.pasPop(callArgCnt); /* Do we have to use the fat encoding */ if (pasStk.pasCurDepth() > BITS_IN_pasMask && pasStk.pasHasGCptrs()) { /* use fat encoding: * 11111000 [PBSDpbsd][32-bit delta][32-bit ArgCnt] * [32-bit PndCnt][32-bit PndSize][PndOffs...] */ DWORD pndCount = pasStk.pasEnumGCoffsCount(); DWORD pndSize = 0; BYTE* pPndSize = DUMMY_INIT(NULL); if (mask) { *dest++ = 0xF8; *dest++ = (byrefRegMask << 4) | regMask; *(DWORD*)dest = codeDelta; dest += sizeof(DWORD); *(DWORD*)dest = callArgCnt; dest += sizeof(DWORD); *(DWORD*)dest = pndCount; dest += sizeof(DWORD); pPndSize = dest; dest += sizeof(DWORD); // Leave space for pndSize } unsigned offs, iter; for (iter = pasStk.pasEnumGCoffs(pasENUM_START, &offs); pndCount; iter = pasStk.pasEnumGCoffs(iter, &offs), pndCount--) { unsigned eltSize = encodeUnsigned(dest, offs); pndSize += eltSize; if (mask) dest += eltSize; } assert(iter == pasENUM_END); if (mask == 0) { dest = base + 2 + 4 * sizeof(DWORD) + pndSize; } else { assert(pPndSize + sizeof(pndSize) + pndSize == dest); *(DWORD*)pPndSize = pndSize; } goto NEXT_RPD; } argMask = byrefArgMask = 0; if (pasStk.pasHasGCptrs()) { assert(pasStk.pasCurDepth() <= BITS_IN_pasMask); argMask = pasStk.pasArgMask(); byrefArgMask = pasStk.pasByrefArgMask(); } /* Shouldn't be reporting trivial call-sites */ assert(regMask || argMask || callArgCnt || pasStk.pasCurDepth()); // Emit IPtrMask if needed #define CHK_NON_INTRPT_ESP_IPtrMask \ \ if (byrefRegMask || byrefArgMask) \ { \ *dest++ = 0xF0; \ unsigned imask = (byrefArgMask << 4) | byrefRegMask; \ dest += encodeUnsigned(dest, imask); \ } /* When usePopEncoding is true: * this is not an interesting call site * because nothing is live here. */ usePopEncoding = ((callArgCnt < 4) && (regMask == 0) && (argMask == 0)); if (!usePopEncoding) { int pattern = lookupCallPattern(callArgCnt, regMask, argMask, codeDelta); if (pattern != -1) { if (pattern > 0xff) { codeDelta = pattern >> 8; pattern &= 0xff; if (codeDelta >= 16) { /* use encoding: */ /* skip 01000000 [Delta] */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta); codeDelta = 0; } else { /* use encoding: */ /* skip 0100DDDD small delta=DDDD */ *dest++ = 0x40 | (BYTE)codeDelta; } } // Emit IPtrMask if needed CHK_NON_INTRPT_ESP_IPtrMask; assert((pattern >= 0) && (pattern < 80)); *dest++ = 0x80 | pattern; goto NEXT_RPD; } /* See if we can use 2nd call encoding * 1101RRRR DDCCCMMM encoding */ if ((callArgCnt <= 7) && (argMask <= 7)) { unsigned inx; // callCommonDelta[] index unsigned maxCommonDelta = callCommonDelta[3]; if (codeDelta > maxCommonDelta) { if (codeDelta > maxCommonDelta + 15) { /* use encoding: */ /* skip 01000000 [Delta] */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta - maxCommonDelta); } else { /* use encoding: */ /* skip 0100DDDD small delta=DDDD */ *dest++ = 0x40 | (BYTE)(codeDelta - maxCommonDelta); } codeDelta = maxCommonDelta; inx = 3; goto EMIT_2ND_CALL_ENCODING; } for (inx = 0; inx < 4; inx++) { if (codeDelta == callCommonDelta[inx]) { EMIT_2ND_CALL_ENCODING: // Emit IPtrMask if needed CHK_NON_INTRPT_ESP_IPtrMask; *dest++ = 0xD0 | regMask; *dest++ = (inx << 6) | (callArgCnt << 3) | argMask; goto NEXT_RPD; } } unsigned minCommonDelta = callCommonDelta[0]; if ((codeDelta > minCommonDelta) && (codeDelta < maxCommonDelta)) { assert((minCommonDelta + 16) > maxCommonDelta); /* use encoding: */ /* skip 0100DDDD small delta=DDDD */ *dest++ = 0x40 | (BYTE)(codeDelta - minCommonDelta); codeDelta = minCommonDelta; inx = 0; goto EMIT_2ND_CALL_ENCODING; } } } if (codeDelta >= 16) { unsigned i = (usePopEncoding ? 15 : 0); /* use encoding: */ /* skip 01000000 [Delta] arbitrary sized delta */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta - i); codeDelta = i; } if ((codeDelta > 0) || usePopEncoding) { if (usePopEncoding) { /* use encoding: */ /* pop 01CCDDDD ESP pop CC items, 4-bit delta */ if (callArgCnt || codeDelta) *dest++ = (BYTE)(0x40 | (callArgCnt << 4) | codeDelta); goto NEXT_RPD; } else { /* use encoding: */ /* skip 0100DDDD small delta=DDDD */ *dest++ = 0x40 | (BYTE)codeDelta; } } // Emit IPtrMask if needed CHK_NON_INTRPT_ESP_IPtrMask; /* use encoding: */ /* call 1110RRRR [ArgCnt] [ArgMask] */ *dest++ = 0xE0 | regMask; dest += encodeUnsigned(dest, callArgCnt); dest += encodeUnsigned(dest, argMask); } else { /* This is a push or a pop site */ /* Remember the new 'last' offset */ lastOffset = nextOffset; if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP) { /* This must be a gcArgPopSingle */ assert(genRegPtrTemp->rpdPtrArg == 1); if (codeDelta >= 16) { /* use encoding: */ /* skip 01000000 [Delta] */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta - 15); codeDelta = 15; } /* use encoding: */ /* pop1 0101DDDD ESP pop one item, 4-bit delta */ *dest++ = 0x50 | (BYTE)codeDelta; /* adjust argMask for this pop */ pasStk.pasPop(1); } else { /* This is a push */ if (codeDelta >= 32) { /* use encoding: */ /* skip 01000000 [Delta] */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta - 31); codeDelta = 31; } assert(codeDelta < 32); /* use encoding: */ /* push 000DDDDD ESP push one item, 5-bit delta */ *dest++ = (BYTE)codeDelta; /* adjust argMask for this push */ pasStk.pasPush(genRegPtrTemp->rpdGCtypeGet()); } } } /* We ignore the register live/dead information, since the * rpdCallRegMask contains all the liveness information * that we need */ NEXT_RPD: totalSize += dest - base; /* Go back to the buffer start if we're not generating a table */ if (!mask) dest = base; #if REGEN_CALLPAT if ((mask == -1) && (usePopEncoding == false) && ((dest - base) > 0)) regenLog(origCodeDelta, argMask, regMask, callArgCnt, byrefArgMask, byrefRegMask, base, (dest - base)); #endif } /* Verify that we pop every arg that was pushed and that argMask is 0 */ assert(pasStk.pasCurDepth() == 0); #endif // TARGET_X86 /* Terminate the table with 0xFF */ *dest = 0xFF; dest -= mask; totalSize++; } #if VERIFY_GC_TABLES if (mask) { *(short*)dest = (short)0xBEEB; dest += sizeof(short); } totalSize += sizeof(short); #endif #if MEASURE_PTRTAB_SIZE if (mask) s_gcTotalPtrTabSize += totalSize; #endif return totalSize; } #ifdef _PREFAST_ #pragma warning(pop) #endif /*****************************************************************************/ #if DUMP_GC_TABLES /***************************************************************************** * * Dump the contents of a GC pointer table. */ #include "gcdump.h" #if VERIFY_GC_TABLES const bool verifyGCTables = true; #else const bool verifyGCTables = false; #endif /***************************************************************************** * * Dump the info block header. */ size_t GCInfo::gcInfoBlockHdrDump(const BYTE* table, InfoHdr* header, unsigned* methodSize) { GCDump gcDump(GCINFO_VERSION); gcDump.gcPrintf = gcDump_logf; // use my printf (which logs to VM) printf("Method info block:\n"); return gcDump.DumpInfoHdr(table, header, methodSize, verifyGCTables); } /*****************************************************************************/ size_t GCInfo::gcDumpPtrTable(const BYTE* table, const InfoHdr& header, unsigned methodSize) { printf("Pointer table:\n"); GCDump gcDump(GCINFO_VERSION); gcDump.gcPrintf = gcDump_logf; // use my printf (which logs to VM) return gcDump.DumpGCTable(table, header, methodSize, verifyGCTables); } /***************************************************************************** * * Find all the live pointers in a stack frame. */ void GCInfo::gcFindPtrsInFrame(const void* infoBlock, const void* codeBlock, unsigned offs) { GCDump gcDump(GCINFO_VERSION); gcDump.gcPrintf = gcDump_logf; // use my printf (which logs to VM) gcDump.DumpPtrsInFrame((PTR_CBYTE)infoBlock, (const BYTE*)codeBlock, offs, verifyGCTables); } #endif // DUMP_GC_TABLES #else // !JIT32_GCENCODER #include "gcinfoencoder.h" // Do explicit instantiation. template class JitHashTable<RegSlotIdKey, RegSlotIdKey, GcSlotId>; template class JitHashTable<StackSlotIdKey, StackSlotIdKey, GcSlotId>; #if defined(DEBUG) || DUMP_GC_TABLES // This is a copy of GcStackSlotBaseNames from gcinfotypes.h so we can compile in to non-DEBUG builds. const char* const JitGcStackSlotBaseNames[] = {"caller.sp", "sp", "frame"}; static const char* const GcSlotFlagsNames[] = {"", "(byref) ", "(pinned) ", "(byref, pinned) ", "(untracked) ", "(byref, untracked) ", "(pinned, untracked) ", "(byref, pinned, untracked) "}; // I'm making a local wrapper class for GcInfoEncoder so that can add logging of my own (DLD). class GcInfoEncoderWithLogging { GcInfoEncoder* m_gcInfoEncoder; bool m_doLogging; public: GcInfoEncoderWithLogging(GcInfoEncoder* gcInfoEncoder, bool verbose) : m_gcInfoEncoder(gcInfoEncoder), m_doLogging(verbose INDEBUG(|| JitConfig.JitGCInfoLogging() != 0)) { } GcSlotId GetStackSlotId(INT32 spOffset, GcSlotFlags flags, GcStackSlotBase spBase = GC_CALLER_SP_REL) { GcSlotId newSlotId = m_gcInfoEncoder->GetStackSlotId(spOffset, flags, spBase); if (m_doLogging) { printf("Stack slot id for offset %d (%s0x%x) (%s) %s= %d.\n", spOffset, spOffset < 0 ? "-" : "", abs(spOffset), JitGcStackSlotBaseNames[spBase], GcSlotFlagsNames[flags & 7], newSlotId); } return newSlotId; } GcSlotId GetRegisterSlotId(UINT32 regNum, GcSlotFlags flags) { GcSlotId newSlotId = m_gcInfoEncoder->GetRegisterSlotId(regNum, flags); if (m_doLogging) { printf("Register slot id for reg %s %s= %d.\n", getRegName(regNum), GcSlotFlagsNames[flags & 7], newSlotId); } return newSlotId; } void SetSlotState(UINT32 instructionOffset, GcSlotId slotId, GcSlotState slotState) { m_gcInfoEncoder->SetSlotState(instructionOffset, slotId, slotState); if (m_doLogging) { printf("Set state of slot %d at instr offset 0x%x to %s.\n", slotId, instructionOffset, (slotState == GC_SLOT_LIVE ? "Live" : "Dead")); } } void DefineCallSites(UINT32* pCallSites, BYTE* pCallSiteSizes, UINT32 numCallSites) { m_gcInfoEncoder->DefineCallSites(pCallSites, pCallSiteSizes, numCallSites); if (m_doLogging) { printf("Defining %d call sites:\n", numCallSites); for (UINT32 k = 0; k < numCallSites; k++) { printf(" Offset 0x%x, size %d.\n", pCallSites[k], pCallSiteSizes[k]); } } } void DefineInterruptibleRange(UINT32 startInstructionOffset, UINT32 length) { m_gcInfoEncoder->DefineInterruptibleRange(startInstructionOffset, length); if (m_doLogging) { printf("Defining interruptible range: [0x%x, 0x%x).\n", startInstructionOffset, startInstructionOffset + length); } } void SetCodeLength(UINT32 length) { m_gcInfoEncoder->SetCodeLength(length); if (m_doLogging) { printf("Set code length to %d.\n", length); } } void SetReturnKind(ReturnKind returnKind) { m_gcInfoEncoder->SetReturnKind(returnKind); if (m_doLogging) { printf("Set ReturnKind to %s.\n", ReturnKindToString(returnKind)); } } void SetStackBaseRegister(UINT32 registerNumber) { m_gcInfoEncoder->SetStackBaseRegister(registerNumber); if (m_doLogging) { printf("Set stack base register to %s.\n", getRegName(registerNumber)); } } void SetPrologSize(UINT32 prologSize) { m_gcInfoEncoder->SetPrologSize(prologSize); if (m_doLogging) { printf("Set prolog size 0x%x.\n", prologSize); } } void SetGSCookieStackSlot(INT32 spOffsetGSCookie, UINT32 validRangeStart, UINT32 validRangeEnd) { m_gcInfoEncoder->SetGSCookieStackSlot(spOffsetGSCookie, validRangeStart, validRangeEnd); if (m_doLogging) { printf("Set GS Cookie stack slot to %d, valid from 0x%x to 0x%x.\n", spOffsetGSCookie, validRangeStart, validRangeEnd); } } void SetPSPSymStackSlot(INT32 spOffsetPSPSym) { m_gcInfoEncoder->SetPSPSymStackSlot(spOffsetPSPSym); if (m_doLogging) { printf("Set PSPSym stack slot to %d.\n", spOffsetPSPSym); } } void SetGenericsInstContextStackSlot(INT32 spOffsetGenericsContext, GENERIC_CONTEXTPARAM_TYPE type) { m_gcInfoEncoder->SetGenericsInstContextStackSlot(spOffsetGenericsContext, type); if (m_doLogging) { printf("Set generic instantiation context stack slot to %d, type is %s.\n", spOffsetGenericsContext, (type == GENERIC_CONTEXTPARAM_THIS ? "THIS" : (type == GENERIC_CONTEXTPARAM_MT ? "MT" : (type == GENERIC_CONTEXTPARAM_MD ? "MD" : "UNKNOWN!")))); } } void SetSecurityObjectStackSlot(INT32 spOffset) { m_gcInfoEncoder->SetSecurityObjectStackSlot(spOffset); if (m_doLogging) { printf("Set security object stack slot to %d.\n", spOffset); } } void SetIsVarArg() { m_gcInfoEncoder->SetIsVarArg(); if (m_doLogging) { printf("SetIsVarArg.\n"); } } #ifdef TARGET_AMD64 void SetWantsReportOnlyLeaf() { m_gcInfoEncoder->SetWantsReportOnlyLeaf(); if (m_doLogging) { printf("Set WantsReportOnlyLeaf.\n"); } } #elif defined(TARGET_ARMARCH) void SetHasTailCalls() { m_gcInfoEncoder->SetHasTailCalls(); if (m_doLogging) { printf("Set HasTailCalls.\n"); } } #endif // TARGET_AMD64 void SetSizeOfStackOutgoingAndScratchArea(UINT32 size) { m_gcInfoEncoder->SetSizeOfStackOutgoingAndScratchArea(size); if (m_doLogging) { printf("Set Outgoing stack arg area size to %d.\n", size); } } }; #define GCENCODER_WITH_LOGGING(withLog, realEncoder) \ GcInfoEncoderWithLogging withLog##Var(realEncoder, INDEBUG(compiler->verbose ||) compiler->opts.dspGCtbls); \ GcInfoEncoderWithLogging* withLog = &withLog##Var; #else // !(defined(DEBUG) || DUMP_GC_TABLES) #define GCENCODER_WITH_LOGGING(withLog, realEncoder) GcInfoEncoder* withLog = realEncoder; #endif // !(defined(DEBUG) || DUMP_GC_TABLES) void GCInfo::gcInfoBlockHdrSave(GcInfoEncoder* gcInfoEncoder, unsigned methodSize, unsigned prologSize) { #ifdef DEBUG if (compiler->verbose) { printf("*************** In gcInfoBlockHdrSave()\n"); } #endif GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); // Can't create tables if we've not saved code. gcInfoEncoderWithLog->SetCodeLength(methodSize); gcInfoEncoderWithLog->SetReturnKind(getReturnKind()); if (compiler->isFramePointerUsed()) { gcInfoEncoderWithLog->SetStackBaseRegister(REG_FPBASE); } if (compiler->info.compIsVarArgs) { gcInfoEncoderWithLog->SetIsVarArg(); } // No equivalents. // header->profCallbacks = compiler->info.compProfilerCallback; // header->editNcontinue = compiler->opts.compDbgEnC; // if (compiler->lvaReportParamTypeArg()) { // The predicate above is true only if there is an extra generic context parameter, not for // the case where the generic context is provided by "this." assert((SIZE_T)compiler->info.compTypeCtxtArg != BAD_VAR_NUM); GENERIC_CONTEXTPARAM_TYPE ctxtParamType = GENERIC_CONTEXTPARAM_NONE; switch (compiler->info.compMethodInfo->options & CORINFO_GENERICS_CTXT_MASK) { case CORINFO_GENERICS_CTXT_FROM_METHODDESC: ctxtParamType = GENERIC_CONTEXTPARAM_MD; break; case CORINFO_GENERICS_CTXT_FROM_METHODTABLE: ctxtParamType = GENERIC_CONTEXTPARAM_MT; break; case CORINFO_GENERICS_CTXT_FROM_THIS: // See comment above. default: // If we have a generic context parameter, then we should have // one of the two options flags handled above. assert(false); } const int offset = compiler->lvaToCallerSPRelativeOffset(compiler->lvaCachedGenericContextArgOffset(), compiler->isFramePointerUsed()); #ifdef DEBUG if (compiler->opts.IsOSR()) { // Sanity check the offset vs saved patchpoint info. // const PatchpointInfo* const ppInfo = compiler->info.compPatchpointInfo; #if defined(TARGET_AMD64) // PP info has FP relative offset, to get to caller SP we need to // subtract off 2 register slots (saved FP, saved RA). // const int osrOffset = ppInfo->GenericContextArgOffset() - 2 * REGSIZE_BYTES; assert(offset == osrOffset); #elif defined(TARGET_ARM64) // PP info has virtual offset. This is also the caller SP offset. // const int osrOffset = ppInfo->GenericContextArgOffset(); assert(offset == osrOffset); #endif } #endif gcInfoEncoderWithLog->SetGenericsInstContextStackSlot(offset, ctxtParamType); } // As discussed above, handle the case where the generics context is obtained via // the method table of "this". else if (compiler->lvaKeepAliveAndReportThis()) { assert(compiler->info.compThisArg != BAD_VAR_NUM); // OSR can report the root method's frame slot, if that method reported context. // If not, the OSR frame will have saved the needed context. // bool useRootFrameSlot = true; if (compiler->opts.IsOSR()) { const PatchpointInfo* const ppInfo = compiler->info.compPatchpointInfo; useRootFrameSlot = ppInfo->HasKeptAliveThis(); } const int offset = compiler->lvaToCallerSPRelativeOffset(compiler->lvaCachedGenericContextArgOffset(), compiler->isFramePointerUsed(), useRootFrameSlot); #ifdef DEBUG if (compiler->opts.IsOSR() && useRootFrameSlot) { // Sanity check the offset vs saved patchpoint info. // const PatchpointInfo* const ppInfo = compiler->info.compPatchpointInfo; #if defined(TARGET_AMD64) // PP info has FP relative offset, to get to caller SP we need to // subtract off 2 register slots (saved FP, saved RA). // const int osrOffset = ppInfo->KeptAliveThisOffset() - 2 * REGSIZE_BYTES; assert(offset == osrOffset); #elif defined(TARGET_ARM64) // PP info has virtual offset. This is also the caller SP offset. // const int osrOffset = ppInfo->KeptAliveThisOffset(); assert(offset == osrOffset); #endif } #endif gcInfoEncoderWithLog->SetGenericsInstContextStackSlot(offset, GENERIC_CONTEXTPARAM_THIS); } if (compiler->getNeedsGSSecurityCookie()) { assert(compiler->lvaGSSecurityCookie != BAD_VAR_NUM); // The lv offset is FP-relative, and the using code expects caller-sp relative, so translate. const int offset = compiler->lvaGetCallerSPRelativeOffset(compiler->lvaGSSecurityCookie); // The code offset ranges assume that the GS Cookie slot is initialized in the prolog, and is valid // through the remainder of the method. We will not query for the GS Cookie while we're in an epilog, // so the question of where in the epilog it becomes invalid is moot. gcInfoEncoderWithLog->SetGSCookieStackSlot(offset, prologSize, methodSize); } else if (compiler->lvaReportParamTypeArg() || compiler->lvaKeepAliveAndReportThis()) { gcInfoEncoderWithLog->SetPrologSize(prologSize); } #if defined(FEATURE_EH_FUNCLETS) if (compiler->lvaPSPSym != BAD_VAR_NUM) { #ifdef TARGET_AMD64 // The PSPSym is relative to InitialSP on X64 and CallerSP on other platforms. gcInfoEncoderWithLog->SetPSPSymStackSlot(compiler->lvaGetInitialSPRelativeOffset(compiler->lvaPSPSym)); #else // !TARGET_AMD64 gcInfoEncoderWithLog->SetPSPSymStackSlot(compiler->lvaGetCallerSPRelativeOffset(compiler->lvaPSPSym)); #endif // !TARGET_AMD64 } #ifdef TARGET_AMD64 if (compiler->ehAnyFunclets()) { // Set this to avoid double-reporting the parent frame (unlike JIT64) gcInfoEncoderWithLog->SetWantsReportOnlyLeaf(); } #endif // TARGET_AMD64 #endif // FEATURE_EH_FUNCLETS #ifdef TARGET_ARMARCH if (compiler->codeGen->GetHasTailCalls()) { gcInfoEncoderWithLog->SetHasTailCalls(); } #endif // TARGET_ARMARCH #if FEATURE_FIXED_OUT_ARGS // outgoing stack area size gcInfoEncoderWithLog->SetSizeOfStackOutgoingAndScratchArea(compiler->lvaOutgoingArgSpaceSize); #endif // FEATURE_FIXED_OUT_ARGS #if DISPLAY_SIZES if (compiler->codeGen->GetInterruptible()) { genMethodICnt++; } else { genMethodNCnt++; } #endif // DISPLAY_SIZES } #if defined(DEBUG) || DUMP_GC_TABLES #define Encoder GcInfoEncoderWithLogging #else #define Encoder GcInfoEncoder #endif // Small helper class to handle the No-GC-Interrupt callbacks // when reporting interruptible ranges. // // Encoder should be either GcInfoEncoder or GcInfoEncoderWithLogging // struct InterruptibleRangeReporter { unsigned prevStart; Encoder* gcInfoEncoderWithLog; InterruptibleRangeReporter(unsigned _prevStart, Encoder* _gcInfo) : prevStart(_prevStart), gcInfoEncoderWithLog(_gcInfo) { } // This callback is called for each insGroup marked with // IGF_NOGCINTERRUPT (currently just prologs and epilogs). // Report everything between the previous region and the current // region as interruptible. bool operator()(unsigned igFuncIdx, unsigned igOffs, unsigned igSize) { if (igOffs < prevStart) { // We're still in the main method prolog, which has already // had it's interruptible range reported. assert(igFuncIdx == 0); assert(igOffs + igSize <= prevStart); return true; } assert(igOffs >= prevStart); if (igOffs > prevStart) { gcInfoEncoderWithLog->DefineInterruptibleRange(prevStart, igOffs - prevStart); } prevStart = igOffs + igSize; return true; } }; void GCInfo::gcMakeRegPtrTable( GcInfoEncoder* gcInfoEncoder, unsigned codeSize, unsigned prologSize, MakeRegPtrMode mode, unsigned* callCntRef) { GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); const bool noTrackedGCSlots = (compiler->opts.MinOpts() && !compiler->opts.jitFlags->IsSet(JitFlags::JIT_FLAG_PREJIT) && !JitConfig.JitMinOptsTrackGCrefs()); if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { m_regSlotMap = new (compiler->getAllocator()) RegSlotMap(compiler->getAllocator()); m_stackSlotMap = new (compiler->getAllocator()) StackSlotMap(compiler->getAllocator()); } /************************************************************************** * * Untracked ptr variables * ************************************************************************** */ /* Count&Write untracked locals and non-enregistered args */ unsigned varNum; LclVarDsc* varDsc; for (varNum = 0, varDsc = compiler->lvaTable; varNum < compiler->lvaCount; varNum++, varDsc++) { if (compiler->lvaIsFieldOfDependentlyPromotedStruct(varDsc)) { // Field local of a PROMOTION_TYPE_DEPENDENT struct must have been // reported through its parent local. continue; } if (varTypeIsGC(varDsc->TypeGet())) { // Do we have an argument or local variable? if (!varDsc->lvIsParam) { // If is is pinned, it must be an untracked local. assert(!varDsc->lvPinned || !varDsc->lvTracked); if (varDsc->lvTracked || !varDsc->lvOnFrame) { continue; } } else { // Stack-passed arguments which are not enregistered // are always reported in this "untracked stack // pointers" section of the GC info even if lvTracked==true // Has this argument been fully enregistered? CLANG_FORMAT_COMMENT_ANCHOR; if (!varDsc->lvOnFrame) { // If a CEE_JMP has been used, then we need to report all the arguments // even if they are enregistered, since we will be using this value // in a JMP call. Note that this is subtle as we require that // argument offsets are always fixed up properly even if lvRegister // is set. if (!compiler->compJmpOpUsed) { continue; } } else { if (varDsc->lvIsRegArg && varDsc->lvTracked) { // If this register-passed arg is tracked, then // it has been allocated space near the other // pointer variables and we have accurate life- // time info. It will be reported with // gcVarPtrList in the "tracked-pointer" section. continue; } } } // If we haven't continued to the next variable, we should report this as an untracked local. CLANG_FORMAT_COMMENT_ANCHOR; GcSlotFlags flags = GC_SLOT_UNTRACKED; if (varDsc->TypeGet() == TYP_BYREF) { // Or in byref_OFFSET_FLAG for 'byref' pointer tracking flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } if (varDsc->lvPinned) { // Or in pinned_OFFSET_FLAG for 'pinned' pointer tracking flags = (GcSlotFlags)(flags | GC_SLOT_PINNED); } GcStackSlotBase stackSlotBase = GC_SP_REL; if (varDsc->lvFramePointerBased) { stackSlotBase = GC_FRAMEREG_REL; } if (noTrackedGCSlots) { // No need to hash/lookup untracked GC refs; just grab a new Slot Id. if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { gcInfoEncoderWithLog->GetStackSlotId(varDsc->GetStackOffset(), flags, stackSlotBase); } } else { StackSlotIdKey sskey(varDsc->GetStackOffset(), (stackSlotBase == GC_FRAMEREG_REL), flags); GcSlotId varSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(varDsc->GetStackOffset(), flags, stackSlotBase); m_stackSlotMap->Set(sskey, varSlotId); } } } } // If this is a TYP_STRUCT, handle its GC pointers. // Note that the enregisterable struct types cannot have GC pointers in them. if ((varDsc->TypeGet() == TYP_STRUCT) && varDsc->lvOnFrame && (varDsc->lvExactSize >= TARGET_POINTER_SIZE)) { ClassLayout* layout = varDsc->GetLayout(); unsigned slots = layout->GetSlotCount(); for (unsigned i = 0; i < slots; i++) { if (!layout->IsGCPtr(i)) { continue; } int offset = varDsc->GetStackOffset() + i * TARGET_POINTER_SIZE; #if DOUBLE_ALIGN // For genDoubleAlign(), locals are addressed relative to ESP and // arguments are addressed relative to EBP. if (compiler->genDoubleAlign() && varDsc->lvIsParam && !varDsc->lvIsRegArg) offset += compiler->codeGen->genTotalFrameSize(); #endif GcSlotFlags flags = GC_SLOT_UNTRACKED; if (layout->GetGCPtrType(i) == TYP_BYREF) { flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } GcStackSlotBase stackSlotBase = GC_SP_REL; if (varDsc->lvFramePointerBased) { stackSlotBase = GC_FRAMEREG_REL; } StackSlotIdKey sskey(offset, (stackSlotBase == GC_FRAMEREG_REL), flags); GcSlotId varSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(offset, flags, stackSlotBase); m_stackSlotMap->Set(sskey, varSlotId); } } } } } if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { // Count&Write spill temps that hold pointers. assert(compiler->codeGen->regSet.tmpAllFree()); for (TempDsc* tempItem = compiler->codeGen->regSet.tmpListBeg(); tempItem != nullptr; tempItem = compiler->codeGen->regSet.tmpListNxt(tempItem)) { if (varTypeIsGC(tempItem->tdTempType())) { int offset = tempItem->tdTempOffs(); GcSlotFlags flags = GC_SLOT_UNTRACKED; if (tempItem->tdTempType() == TYP_BYREF) { flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } GcStackSlotBase stackSlotBase = GC_SP_REL; if (compiler->isFramePointerUsed()) { stackSlotBase = GC_FRAMEREG_REL; } StackSlotIdKey sskey(offset, (stackSlotBase == GC_FRAMEREG_REL), flags); GcSlotId varSlotId; if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(offset, flags, stackSlotBase); m_stackSlotMap->Set(sskey, varSlotId); } } } if (compiler->lvaKeepAliveAndReportThis()) { // We need to report the cached copy as an untracked pointer assert(compiler->info.compThisArg != BAD_VAR_NUM); assert(!compiler->lvaReportParamTypeArg()); GcSlotFlags flags = GC_SLOT_UNTRACKED; if (compiler->lvaTable[compiler->info.compThisArg].TypeGet() == TYP_BYREF) { // Or in GC_SLOT_INTERIOR for 'byref' pointer tracking flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } GcStackSlotBase stackSlotBase = compiler->isFramePointerUsed() ? GC_FRAMEREG_REL : GC_SP_REL; gcInfoEncoderWithLog->GetStackSlotId(compiler->lvaCachedGenericContextArgOffset(), flags, stackSlotBase); } } // Generate the table of tracked stack pointer variable lifetimes. gcMakeVarPtrTable(gcInfoEncoder, mode); /************************************************************************** * * Prepare to generate the pointer register/argument map * ************************************************************************** */ if (compiler->codeGen->GetInterruptible()) { assert(compiler->IsFullPtrRegMapRequired()); regMaskSmall ptrRegs = 0; regPtrDsc* regStackArgFirst = nullptr; // Walk the list of pointer register/argument entries. for (regPtrDsc* genRegPtrTemp = gcRegPtrList; genRegPtrTemp != nullptr; genRegPtrTemp = genRegPtrTemp->rpdNext) { if (genRegPtrTemp->rpdArg) { if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_KILL) { // Kill all arguments for a call if ((mode == MAKE_REG_PTR_MODE_DO_WORK) && (regStackArgFirst != nullptr)) { // Record any outgoing arguments as becoming dead gcInfoRecordGCStackArgsDead(gcInfoEncoder, genRegPtrTemp->rpdOffs, regStackArgFirst, genRegPtrTemp); } regStackArgFirst = nullptr; } else if (genRegPtrTemp->rpdGCtypeGet() != GCT_NONE) { if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_PUSH || (genRegPtrTemp->rpdPtrArg != 0)) { bool isPop = genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP; assert(!isPop); gcInfoRecordGCStackArgLive(gcInfoEncoder, mode, genRegPtrTemp); if (regStackArgFirst == nullptr) { regStackArgFirst = genRegPtrTemp; } } else { // We know it's a POP. Sometimes we'll record a POP for a call, just to make sure // the call site is recorded. // This is just the negation of the condition: assert(genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP && genRegPtrTemp->rpdPtrArg == 0); // This asserts that we only get here when we're recording a call site. assert(genRegPtrTemp->rpdArg && genRegPtrTemp->rpdIsCallInstr()); // Kill all arguments for a call if ((mode == MAKE_REG_PTR_MODE_DO_WORK) && (regStackArgFirst != nullptr)) { // Record any outgoing arguments as becoming dead gcInfoRecordGCStackArgsDead(gcInfoEncoder, genRegPtrTemp->rpdOffs, regStackArgFirst, genRegPtrTemp); } regStackArgFirst = nullptr; } } } else { // Record any registers that are becoming dead. regMaskSmall regMask = genRegPtrTemp->rpdCompiler.rpdDel & ptrRegs; regMaskSmall byRefMask = 0; if (genRegPtrTemp->rpdGCtypeGet() == GCT_BYREF) { byRefMask = regMask; } gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, genRegPtrTemp->rpdOffs, regMask, GC_SLOT_DEAD, byRefMask, &ptrRegs); // Record any registers that are becoming live. regMask = genRegPtrTemp->rpdCompiler.rpdAdd & ~ptrRegs; byRefMask = 0; // As far as I (DLD, 2010) can tell, there's one GCtype for the entire genRegPtrTemp, so if // it says byref then all the registers in "regMask" contain byrefs. if (genRegPtrTemp->rpdGCtypeGet() == GCT_BYREF) { byRefMask = regMask; } gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, genRegPtrTemp->rpdOffs, regMask, GC_SLOT_LIVE, byRefMask, &ptrRegs); } } // Now we can declare the entire method body fully interruptible. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { assert(prologSize <= codeSize); // Now exempt any other region marked as IGF_NOGCINTERRUPT // Currently just prologs and epilogs. InterruptibleRangeReporter reporter(prologSize, gcInfoEncoderWithLog); compiler->GetEmitter()->emitGenNoGCLst(reporter); prologSize = reporter.prevStart; // Report any remainder if (prologSize < codeSize) { gcInfoEncoderWithLog->DefineInterruptibleRange(prologSize, codeSize - prologSize); } } } else if (compiler->isFramePointerUsed()) // GetInterruptible() is false, and we're using EBP as a frame pointer. { assert(compiler->IsFullPtrRegMapRequired() == false); // Walk the list of pointer register/argument entries. // First count them. unsigned numCallSites = 0; // Now we can allocate the information. unsigned* pCallSites = nullptr; BYTE* pCallSiteSizes = nullptr; unsigned callSiteNum = 0; if (mode == MAKE_REG_PTR_MODE_DO_WORK) { if (gcCallDescList != nullptr) { if (noTrackedGCSlots) { // We have the call count from the previous run. numCallSites = *callCntRef; // If there are no calls, tell the world and bail. if (numCallSites == 0) { gcInfoEncoderWithLog->DefineCallSites(nullptr, nullptr, 0); return; } } else { for (CallDsc* call = gcCallDescList; call != nullptr; call = call->cdNext) { numCallSites++; } } pCallSites = new (compiler, CMK_GC) unsigned[numCallSites]; pCallSiteSizes = new (compiler, CMK_GC) BYTE[numCallSites]; } } // Now consider every call. for (CallDsc* call = gcCallDescList; call != nullptr; call = call->cdNext) { // Figure out the code offset of this entry. unsigned nextOffset = call->cdOffs; // As far as I (DLD, 2010) can determine by asking around, the "call->u1.cdArgMask" // and "cdArgCnt" cases are to handle x86 situations in which a call expression is nested as an // argument to an outer call. The "natural" (evaluation-order-preserving) thing to do is to // evaluate the outer call's arguments, pushing those that are not enregistered, until you // encounter the nested call. These parts of the call description, then, describe the "pending" // pushed arguments. This situation does not exist outside of x86, where we're going to use a // fixed-size stack frame: in situations like this nested call, we would evaluate the pending // arguments to temporaries, and only "push" them (really, write them to the outgoing argument section // of the stack frame) when it's the outer call's "turn." So we can assert that these // situations never occur. assert(call->u1.cdArgMask == 0 && call->cdArgCnt == 0); // Other than that, we just have to deal with the regmasks. regMaskSmall gcrefRegMask = call->cdGCrefRegs & RBM_CALLEE_SAVED; regMaskSmall byrefRegMask = call->cdByrefRegs & RBM_CALLEE_SAVED; assert((gcrefRegMask & byrefRegMask) == 0); regMaskSmall regMask = gcrefRegMask | byrefRegMask; assert(call->cdOffs >= call->cdCallInstrSize); // call->cdOffs is actually the offset of the instruction *following* the call, so subtract // the call instruction size to get the offset of the actual call instruction... unsigned callOffset = nextOffset - call->cdCallInstrSize; if (noTrackedGCSlots && regMask == 0) { // No live GC refs in regs at the call -> don't record the call. } else { // Append an entry for the call if doing the real thing. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { pCallSites[callSiteNum] = callOffset; pCallSiteSizes[callSiteNum] = call->cdCallInstrSize; } callSiteNum++; // Record that these registers are live before the call... gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, callOffset, regMask, GC_SLOT_LIVE, byrefRegMask, nullptr); // ...and dead after. gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, nextOffset, regMask, GC_SLOT_DEAD, byrefRegMask, nullptr); } } // Make sure we've recorded the expected number of calls assert(mode != MAKE_REG_PTR_MODE_DO_WORK || numCallSites == callSiteNum); // Return the actual recorded call count to the caller *callCntRef = callSiteNum; // OK, define the call sites. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { gcInfoEncoderWithLog->DefineCallSites(pCallSites, pCallSiteSizes, numCallSites); } } else // GetInterruptible() is false and we have an EBP-less frame { assert(compiler->IsFullPtrRegMapRequired()); // Walk the list of pointer register/argument entries */ // First count them. unsigned numCallSites = 0; // Now we can allocate the information (if we're in the "DO_WORK" pass...) unsigned* pCallSites = nullptr; BYTE* pCallSiteSizes = nullptr; unsigned callSiteNum = 0; if (mode == MAKE_REG_PTR_MODE_DO_WORK) { for (regPtrDsc* genRegPtrTemp = gcRegPtrList; genRegPtrTemp != nullptr; genRegPtrTemp = genRegPtrTemp->rpdNext) { if (genRegPtrTemp->rpdArg && genRegPtrTemp->rpdIsCallInstr()) { numCallSites++; } } if (numCallSites > 0) { pCallSites = new (compiler, CMK_GC) unsigned[numCallSites]; pCallSiteSizes = new (compiler, CMK_GC) BYTE[numCallSites]; } } for (regPtrDsc* genRegPtrTemp = gcRegPtrList; genRegPtrTemp != nullptr; genRegPtrTemp = genRegPtrTemp->rpdNext) { if (genRegPtrTemp->rpdArg) { // Is this a call site? if (genRegPtrTemp->rpdIsCallInstr()) { // This is a true call site. regMaskSmall gcrefRegMask = genRegMaskFromCalleeSavedMask(genRegPtrTemp->rpdCallGCrefRegs); regMaskSmall byrefRegMask = genRegMaskFromCalleeSavedMask(genRegPtrTemp->rpdCallByrefRegs); assert((gcrefRegMask & byrefRegMask) == 0); regMaskSmall regMask = gcrefRegMask | byrefRegMask; // The "rpdOffs" is (apparently) the offset of the following instruction already. // GcInfoEncoder wants the call instruction, so subtract the width of the call instruction. assert(genRegPtrTemp->rpdOffs >= genRegPtrTemp->rpdCallInstrSize); unsigned callOffset = genRegPtrTemp->rpdOffs - genRegPtrTemp->rpdCallInstrSize; // Tell the GCInfo encoder about these registers. We say that the registers become live // before the call instruction, and dead after. gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, callOffset, regMask, GC_SLOT_LIVE, byrefRegMask, nullptr); gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, genRegPtrTemp->rpdOffs, regMask, GC_SLOT_DEAD, byrefRegMask, nullptr); // Also remember the call site. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { assert(pCallSites != nullptr && pCallSiteSizes != nullptr); pCallSites[callSiteNum] = callOffset; pCallSiteSizes[callSiteNum] = genRegPtrTemp->rpdCallInstrSize; callSiteNum++; } } else { // These are reporting outgoing stack arguments, but we don't need to report anything // for partially interruptible assert(genRegPtrTemp->rpdGCtypeGet() != GCT_NONE); assert(genRegPtrTemp->rpdArgTypeGet() == rpdARG_PUSH); } } } // The routine is fully interruptible. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { gcInfoEncoderWithLog->DefineCallSites(pCallSites, pCallSiteSizes, numCallSites); } } } void GCInfo::gcInfoRecordGCRegStateChange(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode, unsigned instrOffset, regMaskSmall regMask, GcSlotState newState, regMaskSmall byRefMask, regMaskSmall* pPtrRegs) { // Precondition: byRefMask is a subset of regMask. assert((byRefMask & ~regMask) == 0); GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); while (regMask) { // Get hold of the next register bit. regMaskTP tmpMask = genFindLowestReg(regMask); assert(tmpMask); // Remember the new state of this register. if (pPtrRegs != nullptr) { if (newState == GC_SLOT_DEAD) { *pPtrRegs &= ~tmpMask; } else { *pPtrRegs |= tmpMask; } } // Figure out which register the next bit corresponds to. regNumber regNum = genRegNumFromMask(tmpMask); /* Reserve SP future use */ assert(regNum != REG_SPBASE); GcSlotFlags regFlags = GC_SLOT_BASE; if ((tmpMask & byRefMask) != 0) { regFlags = (GcSlotFlags)(regFlags | GC_SLOT_INTERIOR); } RegSlotIdKey rskey(regNum, regFlags); GcSlotId regSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_regSlotMap->Lookup(rskey, &regSlotId)) { regSlotId = gcInfoEncoderWithLog->GetRegisterSlotId(regNum, regFlags); m_regSlotMap->Set(rskey, regSlotId); } } else { bool b = m_regSlotMap->Lookup(rskey, &regSlotId); assert(b); // Should have been added in the first pass. gcInfoEncoderWithLog->SetSlotState(instrOffset, regSlotId, newState); } // Turn the bit we've just generated off and continue. regMask -= tmpMask; // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI } } /************************************************************************** * * gcMakeVarPtrTable - Generate the table of tracked stack pointer * variable lifetimes. * * In the first pass we'll allocate slot Ids * In the second pass we actually generate the lifetimes. * ************************************************************************** */ void GCInfo::gcMakeVarPtrTable(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode) { GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); // Make sure any flags we hide in the offset are in the bits guaranteed // unused by alignment C_ASSERT((OFFSET_MASK + 1) <= sizeof(int)); #ifdef DEBUG if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { // Tracked variables can't be pinned, and the encoding takes // advantage of that by using the same bit for 'pinned' and 'this' // Since we don't track 'this', we should never see either flag here. // Check it now before we potentially add some pinned flags. for (varPtrDsc* varTmp = gcVarPtrList; varTmp != nullptr; varTmp = varTmp->vpdNext) { const unsigned flags = varTmp->vpdVarNum & OFFSET_MASK; assert((flags & pinned_OFFSET_FLAG) == 0); assert((flags & this_OFFSET_FLAG) == 0); } } #endif // DEBUG // Only need to do this once, and only if we have EH. if ((mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) && compiler->ehAnyFunclets()) { gcMarkFilterVarsPinned(); } for (varPtrDsc* varTmp = gcVarPtrList; varTmp != nullptr; varTmp = varTmp->vpdNext) { C_ASSERT((OFFSET_MASK + 1) <= sizeof(int)); // Get hold of the variable's stack offset. unsigned lowBits = varTmp->vpdVarNum & OFFSET_MASK; // For negative stack offsets we must reset the low bits int varOffs = static_cast<int>(varTmp->vpdVarNum & ~OFFSET_MASK); // Compute the actual lifetime offsets. unsigned begOffs = varTmp->vpdBegOfs; unsigned endOffs = varTmp->vpdEndOfs; // Special case: skip any 0-length lifetimes. if (endOffs == begOffs) { continue; } GcSlotFlags flags = GC_SLOT_BASE; if ((lowBits & byref_OFFSET_FLAG) != 0) { flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } if ((lowBits & pinned_OFFSET_FLAG) != 0) { flags = (GcSlotFlags)(flags | GC_SLOT_PINNED); } GcStackSlotBase stackSlotBase = GC_SP_REL; if (compiler->isFramePointerUsed()) { stackSlotBase = GC_FRAMEREG_REL; } StackSlotIdKey sskey(varOffs, (stackSlotBase == GC_FRAMEREG_REL), flags); GcSlotId varSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(varOffs, flags, stackSlotBase); m_stackSlotMap->Set(sskey, varSlotId); } } else { bool b = m_stackSlotMap->Lookup(sskey, &varSlotId); assert(b); // Should have been added in the first pass. // Live from the beginning to the end. gcInfoEncoderWithLog->SetSlotState(begOffs, varSlotId, GC_SLOT_LIVE); gcInfoEncoderWithLog->SetSlotState(endOffs, varSlotId, GC_SLOT_DEAD); } } } void GCInfo::gcInfoRecordGCStackArgLive(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode, regPtrDsc* genStackPtr) { // On non-x86 platforms, don't have pointer argument push/pop/kill declarations. // But we use the same mechanism to record writes into the outgoing argument space... assert(genStackPtr->rpdGCtypeGet() != GCT_NONE); assert(genStackPtr->rpdArg); assert(genStackPtr->rpdArgTypeGet() == rpdARG_PUSH); // We only need to report these when we're doing fuly-interruptible assert(compiler->codeGen->GetInterruptible()); GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); StackSlotIdKey sskey(genStackPtr->rpdPtrArg, false, GcSlotFlags(genStackPtr->rpdGCtypeGet() == GCT_BYREF ? GC_SLOT_INTERIOR : GC_SLOT_BASE)); GcSlotId varSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(sskey.m_offset, (GcSlotFlags)sskey.m_flags, GC_SP_REL); m_stackSlotMap->Set(sskey, varSlotId); } } else { bool b = m_stackSlotMap->Lookup(sskey, &varSlotId); assert(b); // Should have been added in the first pass. // Live until the call. gcInfoEncoderWithLog->SetSlotState(genStackPtr->rpdOffs, varSlotId, GC_SLOT_LIVE); } } void GCInfo::gcInfoRecordGCStackArgsDead(GcInfoEncoder* gcInfoEncoder, unsigned instrOffset, regPtrDsc* genStackPtrFirst, regPtrDsc* genStackPtrLast) { // After a call all of the outgoing arguments are marked as dead. // The calling loop keeps track of the first argument pushed for this call // and passes it in as genStackPtrFirst. // genStackPtrLast is the call. // Re-walk that list and mark all outgoing arguments that we're marked as live // earlier, as going dead after the call. // We only need to report these when we're doing fuly-interruptible assert(compiler->codeGen->GetInterruptible()); GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); for (regPtrDsc* genRegPtrTemp = genStackPtrFirst; genRegPtrTemp != genStackPtrLast; genRegPtrTemp = genRegPtrTemp->rpdNext) { if (!genRegPtrTemp->rpdArg) { continue; } assert(genRegPtrTemp->rpdGCtypeGet() != GCT_NONE); assert(genRegPtrTemp->rpdArgTypeGet() == rpdARG_PUSH); StackSlotIdKey sskey(genRegPtrTemp->rpdPtrArg, false, genRegPtrTemp->rpdGCtypeGet() == GCT_BYREF ? GC_SLOT_INTERIOR : GC_SLOT_BASE); GcSlotId varSlotId; bool b = m_stackSlotMap->Lookup(sskey, &varSlotId); assert(b); // Should have been added in the first pass. // Live until the call. gcInfoEncoderWithLog->SetSlotState(instrOffset, varSlotId, GC_SLOT_DEAD); } } #undef GCENCODER_WITH_LOGGING #endif // !JIT32_GCENCODER /*****************************************************************************/ /*****************************************************************************/
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX XX XX GCEncode XX XX XX XX Logic to encode the JIT method header and GC pointer tables XX XX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #endif #include "gcinfotypes.h" #include "patchpointinfo.h" ReturnKind GCTypeToReturnKind(CorInfoGCType gcType) { switch (gcType) { case TYPE_GC_NONE: return RT_Scalar; case TYPE_GC_REF: return RT_Object; case TYPE_GC_BYREF: return RT_ByRef; default: _ASSERTE(!"TYP_GC_OTHER is unexpected"); return RT_Illegal; } } ReturnKind GCInfo::getReturnKind() { switch (compiler->info.compRetType) { case TYP_REF: return RT_Object; case TYP_BYREF: return RT_ByRef; case TYP_STRUCT: { CORINFO_CLASS_HANDLE structType = compiler->info.compMethodInfo->args.retTypeClass; var_types retType = compiler->getReturnTypeForStruct(structType, compiler->info.compCallConv); switch (retType) { case TYP_REF: return RT_Object; case TYP_BYREF: return RT_ByRef; case TYP_STRUCT: if (compiler->IsHfa(structType)) { #ifdef TARGET_X86 _ASSERTE(false && "HFAs not expected for X86"); #endif // TARGET_X86 return RT_Scalar; } else { // Multi-reg return BYTE gcPtrs[2] = {TYPE_GC_NONE, TYPE_GC_NONE}; compiler->info.compCompHnd->getClassGClayout(structType, gcPtrs); ReturnKind first = GCTypeToReturnKind((CorInfoGCType)gcPtrs[0]); ReturnKind second = GCTypeToReturnKind((CorInfoGCType)gcPtrs[1]); return GetStructReturnKind(first, second); } #ifdef TARGET_X86 case TYP_FLOAT: case TYP_DOUBLE: return RT_Float; #endif // TARGET_X86 default: return RT_Scalar; } } #ifdef TARGET_X86 case TYP_FLOAT: case TYP_DOUBLE: return RT_Float; #endif // TARGET_X86 default: return RT_Scalar; } } #if !defined(JIT32_GCENCODER) || defined(FEATURE_EH_FUNCLETS) // gcMarkFilterVarsPinned - Walk all lifetimes and make it so that anything // live in a filter is marked as pinned (often by splitting the lifetime // so that *only* the filter region is pinned). This should only be // called once (after generating all lifetimes, but before slot ids are // finalized. // // DevDiv 376329 - The VM has to double report filters and their parent frame // because they occur during the 1st pass and the parent frame doesn't go dead // until we start unwinding in the 2nd pass. // // Untracked locals will only be reported in non-filter funclets and the // parent. // Registers can't be double reported by 2 frames since they're different. // That just leaves stack variables which might be double reported. // // Technically double reporting is only a problem when the GC has to relocate a // reference. So we avoid that problem by marking all live tracked stack // variables as pinned inside the filter. Thus if they are double reported, it // won't be a problem since they won't be double relocated. // void GCInfo::gcMarkFilterVarsPinned() { assert(compiler->ehAnyFunclets()); for (EHblkDsc* const HBtab : EHClauses(compiler)) { if (HBtab->HasFilter()) { const UNATIVE_OFFSET filterBeg = compiler->ehCodeOffset(HBtab->ebdFilter); const UNATIVE_OFFSET filterEnd = compiler->ehCodeOffset(HBtab->ebdHndBeg); for (varPtrDsc* varTmp = gcVarPtrList; varTmp != nullptr; varTmp = varTmp->vpdNext) { // Get hold of the variable's flags. const unsigned lowBits = varTmp->vpdVarNum & OFFSET_MASK; // Compute the actual lifetime offsets. const unsigned begOffs = varTmp->vpdBegOfs; const unsigned endOffs = varTmp->vpdEndOfs; // Special case: skip any 0-length lifetimes. if (endOffs == begOffs) { continue; } // Skip lifetimes with no overlap with the filter if ((endOffs <= filterBeg) || (begOffs >= filterEnd)) { continue; } #ifndef JIT32_GCENCODER // Because there is no nesting within filters, nothing // should be already pinned. // For JIT32_GCENCODER, we should not do this check as gcVarPtrList are always sorted by vpdBegOfs // which means that we could see some varPtrDsc that were already pinned by previous splitting. assert((lowBits & pinned_OFFSET_FLAG) == 0); #endif // JIT32_GCENCODER if (begOffs < filterBeg) { if (endOffs > filterEnd) { // The variable lifetime is starts before AND ends after // the filter, so we need to create 2 new lifetimes: // (1) a pinned one for the filter // (2) a regular one for after the filter // and then adjust the original lifetime to end before // the filter. CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { printf("Splitting lifetime for filter: [%04X, %04X).\nOld: ", filterBeg, filterEnd); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG varPtrDsc* desc1 = new (compiler, CMK_GC) varPtrDsc; desc1->vpdVarNum = varTmp->vpdVarNum | pinned_OFFSET_FLAG; desc1->vpdBegOfs = filterBeg; desc1->vpdEndOfs = filterEnd; varPtrDsc* desc2 = new (compiler, CMK_GC) varPtrDsc; desc2->vpdVarNum = varTmp->vpdVarNum; desc2->vpdBegOfs = filterEnd; desc2->vpdEndOfs = endOffs; varTmp->vpdEndOfs = filterBeg; gcInsertVarPtrDscSplit(desc1, varTmp); gcInsertVarPtrDscSplit(desc2, varTmp); #ifdef DEBUG if (compiler->verbose) { printf("New (1 of 3): "); gcDumpVarPtrDsc(varTmp); printf("New (2 of 3): "); gcDumpVarPtrDsc(desc1); printf("New (3 of 3): "); gcDumpVarPtrDsc(desc2); } #endif // DEBUG } else { // The variable lifetime started before the filter and ends // somewhere inside it, so we only create 1 new lifetime, // and then adjust the original lifetime to end before // the filter. CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { printf("Splitting lifetime for filter.\nOld: "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG varPtrDsc* desc = new (compiler, CMK_GC) varPtrDsc; desc->vpdVarNum = varTmp->vpdVarNum | pinned_OFFSET_FLAG; desc->vpdBegOfs = filterBeg; desc->vpdEndOfs = endOffs; varTmp->vpdEndOfs = filterBeg; gcInsertVarPtrDscSplit(desc, varTmp); #ifdef DEBUG if (compiler->verbose) { printf("New (1 of 2): "); gcDumpVarPtrDsc(varTmp); printf("New (2 of 2): "); gcDumpVarPtrDsc(desc); } #endif // DEBUG } } else { if (endOffs > filterEnd) { // The variable lifetime starts inside the filter and // ends somewhere after it, so we create 1 new // lifetime for the part inside the filter and adjust // the start of the original lifetime to be the end // of the filter CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { printf("Splitting lifetime for filter.\nOld: "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG varPtrDsc* desc = new (compiler, CMK_GC) varPtrDsc; #ifndef JIT32_GCENCODER desc->vpdVarNum = varTmp->vpdVarNum | pinned_OFFSET_FLAG; desc->vpdBegOfs = begOffs; desc->vpdEndOfs = filterEnd; varTmp->vpdBegOfs = filterEnd; #else // Mark varTmp as pinned and generated use varPtrDsc(desc) as non-pinned // since gcInsertVarPtrDscSplit requires that varTmp->vpdBegOfs must precede desc->vpdBegOfs desc->vpdVarNum = varTmp->vpdVarNum; desc->vpdBegOfs = filterEnd; desc->vpdEndOfs = endOffs; varTmp->vpdVarNum = varTmp->vpdVarNum | pinned_OFFSET_FLAG; varTmp->vpdEndOfs = filterEnd; #endif gcInsertVarPtrDscSplit(desc, varTmp); #ifdef DEBUG if (compiler->verbose) { printf("New (1 of 2): "); gcDumpVarPtrDsc(desc); printf("New (2 of 2): "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG } else { // The variable lifetime is completely within the filter, // so just add the pinned flag. CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { printf("Pinning lifetime for filter.\nOld: "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG varTmp->vpdVarNum |= pinned_OFFSET_FLAG; #ifdef DEBUG if (compiler->verbose) { printf("New : "); gcDumpVarPtrDsc(varTmp); } #endif // DEBUG } } } } // HasFilter } // Foreach EH } // gcInsertVarPtrDscSplit - Insert varPtrDsc that were created by splitting lifetimes // From gcMarkFilterVarsPinned, we may have created one or two `varPtrDsc`s due to splitting lifetimes // and these newly created `varPtrDsc`s should be inserted in gcVarPtrList. // However the semantics of this call depend on the architecture. // // x86-GCInfo requires gcVarPtrList to be sorted by vpdBegOfs. // Every time inserting an entry we should keep the order of entries. // So this function searches for a proper insertion point from "begin" then "desc" gets inserted. // // For other architectures(ones that uses GCInfo{En|De}coder), we don't need any sort. // So the argument "begin" is unused and "desc" will be inserted at the front of the list. void GCInfo::gcInsertVarPtrDscSplit(varPtrDsc* desc, varPtrDsc* begin) { #ifndef JIT32_GCENCODER (void)begin; desc->vpdNext = gcVarPtrList; gcVarPtrList = desc; #else // JIT32_GCENCODER // "desc" and "begin" must not be null assert(desc != nullptr); assert(begin != nullptr); // The caller must guarantee that desc's BegOfs is equal or greater than begin's // since we will search for insertion point from "begin" assert(desc->vpdBegOfs >= begin->vpdBegOfs); varPtrDsc* varTmp = begin->vpdNext; varPtrDsc* varInsert = begin; while (varTmp != nullptr && varTmp->vpdBegOfs < desc->vpdBegOfs) { varInsert = varTmp; varTmp = varTmp->vpdNext; } // Insert point cannot be null assert(varInsert != nullptr); desc->vpdNext = varInsert->vpdNext; varInsert->vpdNext = desc; #endif // JIT32_GCENCODER } #ifdef DEBUG void GCInfo::gcDumpVarPtrDsc(varPtrDsc* desc) { const int offs = (desc->vpdVarNum & ~OFFSET_MASK); const GCtype gcType = (desc->vpdVarNum & byref_OFFSET_FLAG) ? GCT_BYREF : GCT_GCREF; const bool isPin = (desc->vpdVarNum & pinned_OFFSET_FLAG) != 0; printf("[%08X] %s%s var at [%s", dspPtr(desc), GCtypeStr(gcType), isPin ? "pinned-ptr" : "", compiler->isFramePointerUsed() ? STR_FPBASE : STR_SPBASE); if (offs < 0) { printf("-%02XH", -offs); } else if (offs > 0) { printf("+%02XH", +offs); } printf("] live from %04X to %04X\n", desc->vpdBegOfs, desc->vpdEndOfs); } #endif // DEBUG #endif // !defined(JIT32_GCENCODER) || defined(FEATURE_EH_FUNCLETS) #ifdef JIT32_GCENCODER #include "emit.h" /*****************************************************************************/ /*****************************************************************************/ /*****************************************************************************/ // (see jit.h) #define REGEN_SHORTCUTS 0 // To Regenerate the compressed info header shortcuts, define REGEN_SHORTCUTS // and use the following command line pipe/filter to give you the 128 // most useful encodings. // // find . -name regen.txt | xargs cat | grep InfoHdr | sort | uniq -c | sort -r | head -128 // (see jit.h) #define REGEN_CALLPAT 0 // To Regenerate the compressed info header shortcuts, define REGEN_CALLPAT // and use the following command line pipe/filter to give you the 80 // most useful encodings. // // find . -name regen.txt | xargs cat | grep CallSite | sort | uniq -c | sort -r | head -80 #if REGEN_SHORTCUTS || REGEN_CALLPAT static FILE* logFile = NULL; CRITICAL_SECTION logFileLock; #endif #if REGEN_CALLPAT static void regenLog(unsigned codeDelta, unsigned argMask, unsigned regMask, unsigned argCnt, unsigned byrefArgMask, unsigned byrefRegMask, BYTE* base, unsigned enSize) { CallPattern pat; pat.fld.argCnt = (argCnt < 0xff) ? argCnt : 0xff; pat.fld.regMask = (regMask < 0xff) ? regMask : 0xff; pat.fld.argMask = (argMask < 0xff) ? argMask : 0xff; pat.fld.codeDelta = (codeDelta < 0xff) ? codeDelta : 0xff; if (logFile == NULL) { logFile = fopen("regen.txt", "a"); InitializeCriticalSection(&logFileLock); } assert(((enSize > 0) && (enSize < 256)) && ((pat.val & 0xffffff) != 0xffffff)); EnterCriticalSection(&logFileLock); fprintf(logFile, "CallSite( 0x%08x, 0x%02x%02x, 0x", pat.val, byrefArgMask, byrefRegMask); while (enSize > 0) { fprintf(logFile, "%02x", *base++); enSize--; } fprintf(logFile, "),\n"); fflush(logFile); LeaveCriticalSection(&logFileLock); } #endif #if REGEN_SHORTCUTS static void regenLog(unsigned encoding, InfoHdr* header, InfoHdr* state) { if (logFile == NULL) { logFile = fopen("regen.txt", "a"); InitializeCriticalSection(&logFileLock); } EnterCriticalSection(&logFileLock); fprintf(logFile, "InfoHdr( %2d, %2d, %1d, %1d, %1d," " %1d, %1d, %1d, %1d, %1d," " %1d, %1d, %1d, %1d, %1d, %1d," " %1d, %1d, %1d," " %1d, %2d, %2d," " %2d, %2d, %2d, %2d, %2d, %2d), \n", state->prologSize, state->epilogSize, state->epilogCount, state->epilogAtEnd, state->ediSaved, state->esiSaved, state->ebxSaved, state->ebpSaved, state->ebpFrame, state->interruptible, state->doubleAlign, state->security, state->handlers, state->localloc, state->editNcontinue, state->varargs, state->profCallbacks, state->genericsContext, state->genericsContextIsMethodDesc, state->returnKind, state->argCount, state->frameSize, (state->untrackedCnt <= SET_UNTRACKED_MAX) ? state->untrackedCnt : HAS_UNTRACKED, (state->varPtrTableSize == 0) ? 0 : HAS_VARPTR, (state->gsCookieOffset == INVALID_GS_COOKIE_OFFSET) ? 0 : HAS_GS_COOKIE_OFFSET, (state->syncStartOffset == INVALID_SYNC_OFFSET) ? 0 : HAS_SYNC_OFFSET, (state->syncStartOffset == INVALID_SYNC_OFFSET) ? 0 : HAS_SYNC_OFFSET, (state->revPInvokeOffset == INVALID_REV_PINVOKE_OFFSET) ? 0 : HAS_REV_PINVOKE_FRAME_OFFSET); fflush(logFile); LeaveCriticalSection(&logFileLock); } #endif /***************************************************************************** * * Given the four parameters return the index into the callPatternTable[] * that is used to encoding these four items. If an exact match cannot * found then ignore the codeDelta and search the table again for a near * match. * Returns 0..79 for an exact match or * (delta<<8) | (0..79) for a near match. * A near match will be encoded using two bytes, the first byte will * skip the adjustment delta that prevented an exact match and the * rest of the delta plus the other three items are encoded in the * second byte. */ int FASTCALL lookupCallPattern(unsigned argCnt, unsigned regMask, unsigned argMask, unsigned codeDelta) { if ((argCnt <= CP_MAX_ARG_CNT) && (argMask <= CP_MAX_ARG_MASK)) { CallPattern pat; pat.fld.argCnt = (BYTE)argCnt; pat.fld.regMask = (BYTE)regMask; // EBP,EBX,ESI,EDI pat.fld.argMask = (BYTE)argMask; pat.fld.codeDelta = (BYTE)codeDelta; bool codeDeltaOK = (pat.fld.codeDelta == codeDelta); unsigned bestDelta2 = 0xff; unsigned bestPattern = 0xff; unsigned patval = pat.val; assert(sizeof(CallPattern) == sizeof(unsigned)); const unsigned* curp = &callPatternTable[0]; for (unsigned inx = 0; inx < 80; inx++, curp++) { unsigned curval = *curp; if ((patval == curval) && codeDeltaOK) return inx; if (((patval ^ curval) & 0xffffff) == 0) { unsigned delta2 = codeDelta - (curval >> 24); if (delta2 < bestDelta2) { bestDelta2 = delta2; bestPattern = inx; } } } if (bestPattern != 0xff) { return (bestDelta2 << 8) | bestPattern; } } return -1; } static bool initNeeded3(unsigned cur, unsigned tgt, unsigned max, unsigned* hint) { assert(cur != tgt); unsigned tmp = tgt; unsigned nib = 0; unsigned cnt = 0; while (tmp > max) { nib = tmp & 0x07; tmp >>= 3; if (tmp == cur) { *hint = nib; return false; } cnt++; } *hint = tmp; return true; } static bool initNeeded4(unsigned cur, unsigned tgt, unsigned max, unsigned* hint) { assert(cur != tgt); unsigned tmp = tgt; unsigned nib = 0; unsigned cnt = 0; while (tmp > max) { nib = tmp & 0x0f; tmp >>= 4; if (tmp == cur) { *hint = nib; return false; } cnt++; } *hint = tmp; return true; } static int bigEncoding3(unsigned cur, unsigned tgt, unsigned max) { assert(cur != tgt); unsigned tmp = tgt; unsigned nib = 0; unsigned cnt = 0; while (tmp > max) { nib = tmp & 0x07; tmp >>= 3; if (tmp == cur) break; cnt++; } return cnt; } static int bigEncoding4(unsigned cur, unsigned tgt, unsigned max) { assert(cur != tgt); unsigned tmp = tgt; unsigned nib = 0; unsigned cnt = 0; while (tmp > max) { nib = tmp & 0x0f; tmp >>= 4; if (tmp == cur) break; cnt++; } return cnt; } BYTE FASTCALL encodeHeaderNext(const InfoHdr& header, InfoHdr* state, BYTE& codeSet) { BYTE encoding = 0xff; codeSet = 1; // codeSet is 1 or 2, depending on whether the returned encoding // corresponds to InfoHdrAdjust, or InfoHdrAdjust2 enumerations. if (state->argCount != header.argCount) { // We have one-byte encodings for 0..8 if (header.argCount <= SET_ARGCOUNT_MAX) { state->argCount = header.argCount; encoding = (BYTE)(SET_ARGCOUNT + header.argCount); goto DO_RETURN; } else { unsigned hint; if (initNeeded4(state->argCount, header.argCount, SET_ARGCOUNT_MAX, &hint)) { assert(hint <= SET_ARGCOUNT_MAX); state->argCount = (unsigned short)hint; encoding = (BYTE)(SET_ARGCOUNT + hint); goto DO_RETURN; } else { assert(hint <= 0xf); state->argCount <<= 4; state->argCount += ((unsigned short)hint); encoding = (BYTE)(NEXT_FOUR_ARGCOUNT + hint); goto DO_RETURN; } } } if (state->frameSize != header.frameSize) { // We have one-byte encodings for 0..7 if (header.frameSize <= SET_FRAMESIZE_MAX) { state->frameSize = header.frameSize; encoding = (BYTE)(SET_FRAMESIZE + header.frameSize); goto DO_RETURN; } else { unsigned hint; if (initNeeded4(state->frameSize, header.frameSize, SET_FRAMESIZE_MAX, &hint)) { assert(hint <= SET_FRAMESIZE_MAX); state->frameSize = hint; encoding = (BYTE)(SET_FRAMESIZE + hint); goto DO_RETURN; } else { assert(hint <= 0xf); state->frameSize <<= 4; state->frameSize += hint; encoding = (BYTE)(NEXT_FOUR_FRAMESIZE + hint); goto DO_RETURN; } } } if ((state->epilogCount != header.epilogCount) || (state->epilogAtEnd != header.epilogAtEnd)) { if (header.epilogCount > SET_EPILOGCNT_MAX) IMPL_LIMITATION("More than SET_EPILOGCNT_MAX epilogs"); state->epilogCount = header.epilogCount; state->epilogAtEnd = header.epilogAtEnd; encoding = SET_EPILOGCNT + header.epilogCount * 2; if (header.epilogAtEnd) encoding++; goto DO_RETURN; } if (state->varPtrTableSize != header.varPtrTableSize) { assert(state->varPtrTableSize == 0 || state->varPtrTableSize == HAS_VARPTR); if (state->varPtrTableSize == 0) { state->varPtrTableSize = HAS_VARPTR; encoding = FLIP_VAR_PTR_TABLE_SZ; goto DO_RETURN; } else if (header.varPtrTableSize == 0) { state->varPtrTableSize = 0; encoding = FLIP_VAR_PTR_TABLE_SZ; goto DO_RETURN; } } if (state->untrackedCnt != header.untrackedCnt) { assert(state->untrackedCnt <= SET_UNTRACKED_MAX || state->untrackedCnt == HAS_UNTRACKED); // We have one-byte encodings for 0..3 if (header.untrackedCnt <= SET_UNTRACKED_MAX) { state->untrackedCnt = header.untrackedCnt; encoding = (BYTE)(SET_UNTRACKED + header.untrackedCnt); goto DO_RETURN; } else if (state->untrackedCnt != HAS_UNTRACKED) { state->untrackedCnt = HAS_UNTRACKED; encoding = FFFF_UNTRACKED_CNT; goto DO_RETURN; } } if (state->epilogSize != header.epilogSize) { // We have one-byte encodings for 0..10 if (header.epilogSize <= SET_EPILOGSIZE_MAX) { state->epilogSize = header.epilogSize; encoding = SET_EPILOGSIZE + header.epilogSize; goto DO_RETURN; } else { unsigned hint; if (initNeeded3(state->epilogSize, header.epilogSize, SET_EPILOGSIZE_MAX, &hint)) { assert(hint <= SET_EPILOGSIZE_MAX); state->epilogSize = (BYTE)hint; encoding = (BYTE)(SET_EPILOGSIZE + hint); goto DO_RETURN; } else { assert(hint <= 0x7); state->epilogSize <<= 3; state->epilogSize += (BYTE)hint; encoding = (BYTE)(NEXT_THREE_EPILOGSIZE + hint); goto DO_RETURN; } } } if (state->prologSize != header.prologSize) { // We have one-byte encodings for 0..16 if (header.prologSize <= SET_PROLOGSIZE_MAX) { state->prologSize = header.prologSize; encoding = SET_PROLOGSIZE + header.prologSize; goto DO_RETURN; } else { unsigned hint; assert(SET_PROLOGSIZE_MAX > 15); if (initNeeded3(state->prologSize, header.prologSize, 15, &hint)) { assert(hint <= 15); state->prologSize = (BYTE)hint; encoding = (BYTE)(SET_PROLOGSIZE + hint); goto DO_RETURN; } else { assert(hint <= 0x7); state->prologSize <<= 3; state->prologSize += ((BYTE)hint); encoding = (BYTE)(NEXT_THREE_PROLOGSIZE + hint); goto DO_RETURN; } } } if (state->ediSaved != header.ediSaved) { state->ediSaved = header.ediSaved; encoding = FLIP_EDI_SAVED; goto DO_RETURN; } if (state->esiSaved != header.esiSaved) { state->esiSaved = header.esiSaved; encoding = FLIP_ESI_SAVED; goto DO_RETURN; } if (state->ebxSaved != header.ebxSaved) { state->ebxSaved = header.ebxSaved; encoding = FLIP_EBX_SAVED; goto DO_RETURN; } if (state->ebpSaved != header.ebpSaved) { state->ebpSaved = header.ebpSaved; encoding = FLIP_EBP_SAVED; goto DO_RETURN; } if (state->ebpFrame != header.ebpFrame) { state->ebpFrame = header.ebpFrame; encoding = FLIP_EBP_FRAME; goto DO_RETURN; } if (state->interruptible != header.interruptible) { state->interruptible = header.interruptible; encoding = FLIP_INTERRUPTIBLE; goto DO_RETURN; } #if DOUBLE_ALIGN if (state->doubleAlign != header.doubleAlign) { state->doubleAlign = header.doubleAlign; encoding = FLIP_DOUBLE_ALIGN; goto DO_RETURN; } #endif if (state->security != header.security) { state->security = header.security; encoding = FLIP_SECURITY; goto DO_RETURN; } if (state->handlers != header.handlers) { state->handlers = header.handlers; encoding = FLIP_HANDLERS; goto DO_RETURN; } if (state->localloc != header.localloc) { state->localloc = header.localloc; encoding = FLIP_LOCALLOC; goto DO_RETURN; } if (state->editNcontinue != header.editNcontinue) { state->editNcontinue = header.editNcontinue; encoding = FLIP_EDITnCONTINUE; goto DO_RETURN; } if (state->varargs != header.varargs) { state->varargs = header.varargs; encoding = FLIP_VARARGS; goto DO_RETURN; } if (state->profCallbacks != header.profCallbacks) { state->profCallbacks = header.profCallbacks; encoding = FLIP_PROF_CALLBACKS; goto DO_RETURN; } if (state->genericsContext != header.genericsContext) { state->genericsContext = header.genericsContext; encoding = FLIP_HAS_GENERICS_CONTEXT; goto DO_RETURN; } if (state->genericsContextIsMethodDesc != header.genericsContextIsMethodDesc) { state->genericsContextIsMethodDesc = header.genericsContextIsMethodDesc; encoding = FLIP_GENERICS_CONTEXT_IS_METHODDESC; goto DO_RETURN; } if (state->returnKind != header.returnKind) { state->returnKind = header.returnKind; codeSet = 2; // Two byte encoding encoding = header.returnKind; _ASSERTE(encoding < SET_RET_KIND_MAX); goto DO_RETURN; } if (state->gsCookieOffset != header.gsCookieOffset) { assert(state->gsCookieOffset == INVALID_GS_COOKIE_OFFSET || state->gsCookieOffset == HAS_GS_COOKIE_OFFSET); if (state->gsCookieOffset == INVALID_GS_COOKIE_OFFSET) { // header.gsCookieOffset is non-zero. We can set it // to zero using FLIP_HAS_GS_COOKIE state->gsCookieOffset = HAS_GS_COOKIE_OFFSET; encoding = FLIP_HAS_GS_COOKIE; goto DO_RETURN; } else if (header.gsCookieOffset == INVALID_GS_COOKIE_OFFSET) { state->gsCookieOffset = INVALID_GS_COOKIE_OFFSET; encoding = FLIP_HAS_GS_COOKIE; goto DO_RETURN; } } if (state->syncStartOffset != header.syncStartOffset) { assert(state->syncStartOffset == INVALID_SYNC_OFFSET || state->syncStartOffset == HAS_SYNC_OFFSET); if (state->syncStartOffset == INVALID_SYNC_OFFSET) { // header.syncStartOffset is non-zero. We can set it // to zero using FLIP_SYNC state->syncStartOffset = HAS_SYNC_OFFSET; encoding = FLIP_SYNC; goto DO_RETURN; } else if (header.syncStartOffset == INVALID_SYNC_OFFSET) { state->syncStartOffset = INVALID_SYNC_OFFSET; encoding = FLIP_SYNC; goto DO_RETURN; } } if (state->revPInvokeOffset != header.revPInvokeOffset) { assert(state->revPInvokeOffset == INVALID_REV_PINVOKE_OFFSET || state->revPInvokeOffset == HAS_REV_PINVOKE_FRAME_OFFSET); if (state->revPInvokeOffset == INVALID_REV_PINVOKE_OFFSET) { // header.revPInvokeOffset is non-zero. state->revPInvokeOffset = HAS_REV_PINVOKE_FRAME_OFFSET; encoding = FLIP_REV_PINVOKE_FRAME; goto DO_RETURN; } else if (header.revPInvokeOffset == INVALID_REV_PINVOKE_OFFSET) { state->revPInvokeOffset = INVALID_REV_PINVOKE_OFFSET; encoding = FLIP_REV_PINVOKE_FRAME; goto DO_RETURN; } } DO_RETURN: _ASSERTE(encoding < MORE_BYTES_TO_FOLLOW); if (!state->isHeaderMatch(header)) encoding |= MORE_BYTES_TO_FOLLOW; return encoding; } static int measureDistance(const InfoHdr& header, const InfoHdrSmall* p, int closeness) { int distance = 0; if (p->untrackedCnt != header.untrackedCnt) { if (header.untrackedCnt > 3) { if (p->untrackedCnt != HAS_UNTRACKED) distance += 1; } else { distance += 1; } if (distance >= closeness) return distance; } if (p->varPtrTableSize != header.varPtrTableSize) { if (header.varPtrTableSize != 0) { if (p->varPtrTableSize != HAS_VARPTR) distance += 1; } else { assert(p->varPtrTableSize == HAS_VARPTR); distance += 1; } if (distance >= closeness) return distance; } if (p->frameSize != header.frameSize) { distance += 1; if (distance >= closeness) return distance; // We have one-byte encodings for 0..7 if (header.frameSize > SET_FRAMESIZE_MAX) { distance += bigEncoding4(p->frameSize, header.frameSize, SET_FRAMESIZE_MAX); if (distance >= closeness) return distance; } } if (p->argCount != header.argCount) { distance += 1; if (distance >= closeness) return distance; // We have one-byte encodings for 0..8 if (header.argCount > SET_ARGCOUNT_MAX) { distance += bigEncoding4(p->argCount, header.argCount, SET_ARGCOUNT_MAX); if (distance >= closeness) return distance; } } if (p->prologSize != header.prologSize) { distance += 1; if (distance >= closeness) return distance; // We have one-byte encodings for 0..16 if (header.prologSize > SET_PROLOGSIZE_MAX) { assert(SET_PROLOGSIZE_MAX > 15); distance += bigEncoding3(p->prologSize, header.prologSize, 15); if (distance >= closeness) return distance; } } if (p->epilogSize != header.epilogSize) { distance += 1; if (distance >= closeness) return distance; // We have one-byte encodings for 0..10 if (header.epilogSize > SET_EPILOGSIZE_MAX) { distance += bigEncoding3(p->epilogSize, header.epilogSize, SET_EPILOGSIZE_MAX); if (distance >= closeness) return distance; } } if ((p->epilogCount != header.epilogCount) || (p->epilogAtEnd != header.epilogAtEnd)) { distance += 1; if (distance >= closeness) return distance; if (header.epilogCount > SET_EPILOGCNT_MAX) IMPL_LIMITATION("More than SET_EPILOGCNT_MAX epilogs"); } if (p->ediSaved != header.ediSaved) { distance += 1; if (distance >= closeness) return distance; } if (p->esiSaved != header.esiSaved) { distance += 1; if (distance >= closeness) return distance; } if (p->ebxSaved != header.ebxSaved) { distance += 1; if (distance >= closeness) return distance; } if (p->ebpSaved != header.ebpSaved) { distance += 1; if (distance >= closeness) return distance; } if (p->ebpFrame != header.ebpFrame) { distance += 1; if (distance >= closeness) return distance; } if (p->interruptible != header.interruptible) { distance += 1; if (distance >= closeness) return distance; } #if DOUBLE_ALIGN if (p->doubleAlign != header.doubleAlign) { distance += 1; if (distance >= closeness) return distance; } #endif if (p->security != header.security) { distance += 1; if (distance >= closeness) return distance; } if (p->handlers != header.handlers) { distance += 1; if (distance >= closeness) return distance; } if (p->localloc != header.localloc) { distance += 1; if (distance >= closeness) return distance; } if (p->editNcontinue != header.editNcontinue) { distance += 1; if (distance >= closeness) return distance; } if (p->varargs != header.varargs) { distance += 1; if (distance >= closeness) return distance; } if (p->profCallbacks != header.profCallbacks) { distance += 1; if (distance >= closeness) return distance; } if (p->genericsContext != header.genericsContext) { distance += 1; if (distance >= closeness) return distance; } if (p->genericsContextIsMethodDesc != header.genericsContextIsMethodDesc) { distance += 1; if (distance >= closeness) return distance; } if (p->returnKind != header.returnKind) { // Setting the ReturnKind requires two bytes of encoding. distance += 2; if (distance >= closeness) return distance; } if (header.gsCookieOffset != INVALID_GS_COOKIE_OFFSET) { distance += 1; if (distance >= closeness) return distance; } if (header.syncStartOffset != INVALID_SYNC_OFFSET) { distance += 1; if (distance >= closeness) return distance; } if (header.revPInvokeOffset != INVALID_REV_PINVOKE_OFFSET) { distance += 1; if (distance >= closeness) return distance; } return distance; } // DllMain calls gcInitEncoderLookupTable to fill in this table /* extern */ int infoHdrLookup[IH_MAX_PROLOG_SIZE + 2]; /* static */ void GCInfo::gcInitEncoderLookupTable() { const InfoHdrSmall* p = &infoHdrShortcut[0]; int lo = -1; int hi = 0; int n; for (n = 0; n < 128; n++, p++) { if (p->prologSize != lo) { if (p->prologSize < lo) { assert(p->prologSize == 0); hi = IH_MAX_PROLOG_SIZE; } else hi = p->prologSize; assert(hi <= IH_MAX_PROLOG_SIZE); while (lo < hi) infoHdrLookup[++lo] = n; if (lo == IH_MAX_PROLOG_SIZE) break; } } assert(lo == IH_MAX_PROLOG_SIZE); assert(infoHdrLookup[IH_MAX_PROLOG_SIZE] < 128); while (p->prologSize == lo) { n++; if (n >= 128) break; p++; } infoHdrLookup[++lo] = n; #ifdef DEBUG // // We do some other DEBUG only validity checks here // assert(callCommonDelta[0] < callCommonDelta[1]); assert(callCommonDelta[1] < callCommonDelta[2]); assert(callCommonDelta[2] < callCommonDelta[3]); assert(sizeof(CallPattern) == sizeof(unsigned)); unsigned maxMarks = 0; for (unsigned inx = 0; inx < 80; inx++) { CallPattern pat; pat.val = callPatternTable[inx]; assert(pat.fld.codeDelta <= CP_MAX_CODE_DELTA); if (pat.fld.codeDelta == CP_MAX_CODE_DELTA) maxMarks |= 0x01; assert(pat.fld.argCnt <= CP_MAX_ARG_CNT); if (pat.fld.argCnt == CP_MAX_ARG_CNT) maxMarks |= 0x02; assert(pat.fld.argMask <= CP_MAX_ARG_MASK); if (pat.fld.argMask == CP_MAX_ARG_MASK) maxMarks |= 0x04; } assert(maxMarks == 0x07); #endif } const int NO_CACHED_HEADER = -1; BYTE FASTCALL encodeHeaderFirst(const InfoHdr& header, InfoHdr* state, int* more, int* pCached) { // First try the cached value for an exact match, if there is one // int n = *pCached; const InfoHdrSmall* p; if (n != NO_CACHED_HEADER) { p = &infoHdrShortcut[n]; if (p->isHeaderMatch(header)) { // exact match found GetInfoHdr(n, state); *more = 0; return (BYTE)n; } } // Next search the table for an exact match // Only search entries that have a matching prolog size // Note: lo and hi are saved here as they specify the // range of entries that have the correct prolog size // unsigned psz = header.prologSize; int lo = 0; int hi = 0; if (psz <= IH_MAX_PROLOG_SIZE) { lo = infoHdrLookup[psz]; hi = infoHdrLookup[psz + 1]; p = &infoHdrShortcut[lo]; for (n = lo; n < hi; n++, p++) { assert(psz == p->prologSize); if (p->isHeaderMatch(header)) { // exact match found GetInfoHdr(n, state); *pCached = n; // cache the value *more = 0; return (BYTE)n; } } } // // no exact match in infoHdrShortcut[] // // find the nearest entry in the table // int nearest = -1; int closeness = 255; // (i.e. not very close) // // Calculate the minimum acceptable distance // if we find an entry that is at least this close // we will stop the search and use that value // int min_acceptable_distance = 1; if (header.frameSize > SET_FRAMESIZE_MAX) { ++min_acceptable_distance; if (header.frameSize > 32) ++min_acceptable_distance; } if (header.argCount > SET_ARGCOUNT_MAX) { ++min_acceptable_distance; if (header.argCount > 32) ++min_acceptable_distance; } // First try the cached value // and see if it meets the minimum acceptable distance // if (*pCached != NO_CACHED_HEADER) { p = &infoHdrShortcut[*pCached]; int distance = measureDistance(header, p, closeness); assert(distance > 0); if (distance <= min_acceptable_distance) { GetInfoHdr(*pCached, state); *more = distance; return (BYTE)(0x80 | *pCached); } else { closeness = distance; nearest = *pCached; } } // Then try the ones pointed to by [lo..hi), // (i.e. the ones that have the correct prolog size) // p = &infoHdrShortcut[lo]; for (n = lo; n < hi; n++, p++) { if (n == *pCached) continue; // already tried this one int distance = measureDistance(header, p, closeness); assert(distance > 0); if (distance <= min_acceptable_distance) { GetInfoHdr(n, state); *pCached = n; // Cache this value *more = distance; return (BYTE)(0x80 | n); } else if (distance < closeness) { closeness = distance; nearest = n; } } int last = infoHdrLookup[IH_MAX_PROLOG_SIZE + 1]; assert(last <= 128); // Then try all the rest [0..last-1] p = &infoHdrShortcut[0]; for (n = 0; n < last; n++, p++) { if (n == *pCached) continue; // already tried this one if ((n >= lo) && (n < hi)) continue; // already tried these int distance = measureDistance(header, p, closeness); assert(distance > 0); if (distance <= min_acceptable_distance) { GetInfoHdr(n, state); *pCached = n; // Cache this value *more = distance; return (BYTE)(0x80 | n); } else if (distance < closeness) { closeness = distance; nearest = n; } } // // If we reach here then there was no adjacent neighbor // in infoHdrShortcut[], closeness indicate how many extra // bytes we will need to encode this item. // assert((nearest >= 0) && (nearest <= 127)); GetInfoHdr(nearest, state); *pCached = nearest; // Cache this value *more = closeness; return (BYTE)(0x80 | nearest); } /***************************************************************************** * * Write the initial part of the method info block. This is called twice; * first to compute the size needed for the info (mask=0), the second time * to actually generate the contents of the table (mask=-1,dest!=NULL). */ size_t GCInfo::gcInfoBlockHdrSave( BYTE* dest, int mask, unsigned methodSize, unsigned prologSize, unsigned epilogSize, InfoHdr* header, int* pCached) { #ifdef DEBUG if (compiler->verbose) printf("*************** In gcInfoBlockHdrSave()\n"); #endif size_t size = 0; #if VERIFY_GC_TABLES *castto(dest, unsigned short*)++ = 0xFEEF; size += sizeof(short); #endif /* Write the method size first (using between 1 and 5 bytes) */ CLANG_FORMAT_COMMENT_ANCHOR; #ifdef DEBUG if (compiler->verbose) { if (mask) printf("GCINFO: methodSize = %04X\n", methodSize); if (mask) printf("GCINFO: prologSize = %04X\n", prologSize); if (mask) printf("GCINFO: epilogSize = %04X\n", epilogSize); } #endif size_t methSz = encodeUnsigned(dest, methodSize); size += methSz; dest += methSz & mask; // // New style InfoBlk Header // // Typically only uses one-byte to store everything. // if (mask == 0) { memset(header, 0, sizeof(InfoHdr)); *pCached = NO_CACHED_HEADER; } assert(FitsIn<unsigned char>(prologSize)); header->prologSize = static_cast<unsigned char>(prologSize); assert(FitsIn<unsigned char>(epilogSize)); header->epilogSize = static_cast<unsigned char>(epilogSize); header->epilogCount = compiler->GetEmitter()->emitGetEpilogCnt(); if (header->epilogCount != compiler->GetEmitter()->emitGetEpilogCnt()) IMPL_LIMITATION("emitGetEpilogCnt() does not fit in InfoHdr::epilogCount"); header->epilogAtEnd = compiler->GetEmitter()->emitHasEpilogEnd(); if (compiler->codeGen->regSet.rsRegsModified(RBM_EDI)) header->ediSaved = 1; if (compiler->codeGen->regSet.rsRegsModified(RBM_ESI)) header->esiSaved = 1; if (compiler->codeGen->regSet.rsRegsModified(RBM_EBX)) header->ebxSaved = 1; header->interruptible = compiler->codeGen->GetInterruptible(); if (!compiler->isFramePointerUsed()) { #if DOUBLE_ALIGN if (compiler->genDoubleAlign()) { header->ebpSaved = true; assert(!compiler->codeGen->regSet.rsRegsModified(RBM_EBP)); } #endif if (compiler->codeGen->regSet.rsRegsModified(RBM_EBP)) { header->ebpSaved = true; } } else { header->ebpSaved = true; header->ebpFrame = true; } #if DOUBLE_ALIGN header->doubleAlign = compiler->genDoubleAlign(); #endif header->security = false; header->handlers = compiler->ehHasCallableHandlers(); header->localloc = compiler->compLocallocUsed; header->varargs = compiler->info.compIsVarArgs; header->profCallbacks = compiler->info.compProfilerCallback; header->editNcontinue = compiler->opts.compDbgEnC; header->genericsContext = compiler->lvaReportParamTypeArg(); header->genericsContextIsMethodDesc = header->genericsContext && (compiler->info.compMethodInfo->options & (CORINFO_GENERICS_CTXT_FROM_METHODDESC)); ReturnKind returnKind = getReturnKind(); _ASSERTE(IsValidReturnKind(returnKind) && "Return Kind must be valid"); _ASSERTE(!IsStructReturnKind(returnKind) && "Struct Return Kinds Unexpected for JIT32"); _ASSERTE(((int)returnKind < (int)SET_RET_KIND_MAX) && "ReturnKind has no legal encoding"); header->returnKind = returnKind; header->gsCookieOffset = INVALID_GS_COOKIE_OFFSET; if (compiler->getNeedsGSSecurityCookie()) { assert(compiler->lvaGSSecurityCookie != BAD_VAR_NUM); int stkOffs = compiler->lvaTable[compiler->lvaGSSecurityCookie].GetStackOffset(); header->gsCookieOffset = compiler->isFramePointerUsed() ? -stkOffs : stkOffs; assert(header->gsCookieOffset != INVALID_GS_COOKIE_OFFSET); } header->syncStartOffset = INVALID_SYNC_OFFSET; header->syncEndOffset = INVALID_SYNC_OFFSET; #ifndef UNIX_X86_ABI // JIT is responsible for synchronization on funclet-based EH model that x86/Linux uses. if (compiler->info.compFlags & CORINFO_FLG_SYNCH) { assert(compiler->syncStartEmitCookie != NULL); header->syncStartOffset = compiler->GetEmitter()->emitCodeOffset(compiler->syncStartEmitCookie, 0); assert(header->syncStartOffset != INVALID_SYNC_OFFSET); assert(compiler->syncEndEmitCookie != NULL); header->syncEndOffset = compiler->GetEmitter()->emitCodeOffset(compiler->syncEndEmitCookie, 0); assert(header->syncEndOffset != INVALID_SYNC_OFFSET); assert(header->syncStartOffset < header->syncEndOffset); // synchronized methods can't have more than 1 epilog assert(header->epilogCount <= 1); } #endif header->revPInvokeOffset = INVALID_REV_PINVOKE_OFFSET; if (compiler->opts.IsReversePInvoke()) { assert(compiler->lvaReversePInvokeFrameVar != BAD_VAR_NUM); int stkOffs = compiler->lvaTable[compiler->lvaReversePInvokeFrameVar].GetStackOffset(); header->revPInvokeOffset = compiler->isFramePointerUsed() ? -stkOffs : stkOffs; assert(header->revPInvokeOffset != INVALID_REV_PINVOKE_OFFSET); } assert((compiler->compArgSize & 0x3) == 0); size_t argCount = (compiler->compArgSize - (compiler->codeGen->intRegState.rsCalleeRegArgCount * REGSIZE_BYTES)) / REGSIZE_BYTES; assert(argCount <= MAX_USHORT_SIZE_T); header->argCount = static_cast<unsigned short>(argCount); header->frameSize = compiler->compLclFrameSize / sizeof(int); if (header->frameSize != (compiler->compLclFrameSize / sizeof(int))) IMPL_LIMITATION("compLclFrameSize does not fit in InfoHdr::frameSize"); if (mask == 0) { gcCountForHeader((UNALIGNED unsigned int*)&header->untrackedCnt, (UNALIGNED unsigned int*)&header->varPtrTableSize); } // // If the high-order bit of headerEncoding is set // then additional bytes will update the InfoHdr state // until the fully state is encoded // InfoHdr state; int more = 0; BYTE headerEncoding = encodeHeaderFirst(*header, &state, &more, pCached); ++size; if (mask) { #if REGEN_SHORTCUTS regenLog(headerEncoding, header, &state); #endif *dest++ = headerEncoding; BYTE encoding = headerEncoding; BYTE codeSet = 1; while (encoding & MORE_BYTES_TO_FOLLOW) { encoding = encodeHeaderNext(*header, &state, codeSet); #if REGEN_SHORTCUTS regenLog(headerEncoding, header, &state); #endif _ASSERTE((codeSet == 1 || codeSet == 2) && "Encoding must correspond to InfoHdrAdjust or InfoHdrAdjust2"); if (codeSet == 2) { *dest++ = NEXT_OPCODE | MORE_BYTES_TO_FOLLOW; ++size; } *dest++ = encoding; ++size; } } else { size += more; } if (header->untrackedCnt > SET_UNTRACKED_MAX) { unsigned count = header->untrackedCnt; unsigned sz = encodeUnsigned(mask ? dest : NULL, count); size += sz; dest += (sz & mask); } if (header->varPtrTableSize != 0) { unsigned count = header->varPtrTableSize; unsigned sz = encodeUnsigned(mask ? dest : NULL, count); size += sz; dest += (sz & mask); } if (header->gsCookieOffset != INVALID_GS_COOKIE_OFFSET) { assert(mask == 0 || state.gsCookieOffset == HAS_GS_COOKIE_OFFSET); unsigned offset = header->gsCookieOffset; unsigned sz = encodeUnsigned(mask ? dest : NULL, offset); size += sz; dest += (sz & mask); } if (header->syncStartOffset != INVALID_SYNC_OFFSET) { assert(mask == 0 || state.syncStartOffset == HAS_SYNC_OFFSET); { unsigned offset = header->syncStartOffset; unsigned sz = encodeUnsigned(mask ? dest : NULL, offset); size += sz; dest += (sz & mask); } { unsigned offset = header->syncEndOffset; unsigned sz = encodeUnsigned(mask ? dest : NULL, offset); size += sz; dest += (sz & mask); } } if (header->revPInvokeOffset != INVALID_REV_PINVOKE_OFFSET) { assert(mask == 0 || state.revPInvokeOffset == HAS_REV_PINVOKE_FRAME_OFFSET); unsigned offset = header->revPInvokeOffset; unsigned sz = encodeUnsigned(mask ? dest : NULL, offset); size += sz; dest += (sz & mask); } if (header->epilogCount) { /* Generate table unless one epilog at the end of the method */ if (header->epilogAtEnd == 0 || header->epilogCount != 1) { #if VERIFY_GC_TABLES *castto(dest, unsigned short*)++ = 0xFACE; size += sizeof(short); #endif /* Simply write a sorted array of offsets using encodeUDelta */ gcEpilogTable = mask ? dest : NULL; gcEpilogPrevOffset = 0; size_t sz = compiler->GetEmitter()->emitGenEpilogLst(gcRecordEpilog, this); /* Add the size of the epilog table to the total size */ size += sz; dest += (sz & mask); } } #if DISPLAY_SIZES if (mask) { if (compiler->codeGen->GetInterruptible()) { genMethodICnt++; } else { genMethodNCnt++; } } #endif // DISPLAY_SIZES return size; } /***************************************************************************** * * Return the size of the pointer tracking tables. */ size_t GCInfo::gcPtrTableSize(const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset) { BYTE temp[16 + 1]; #ifdef DEBUG temp[16] = 0xAB; // Set some marker #endif /* Compute the total size of the tables */ size_t size = gcMakeRegPtrTable(temp, 0, header, codeSize, pArgTabOffset); assert(temp[16] == 0xAB); // Check that marker didnt get overwritten return size; } /***************************************************************************** * Encode the callee-saved registers into 3 bits. */ unsigned gceEncodeCalleeSavedRegs(unsigned regs) { unsigned encodedRegs = 0; if (regs & RBM_EBX) encodedRegs |= 0x04; if (regs & RBM_ESI) encodedRegs |= 0x02; if (regs & RBM_EDI) encodedRegs |= 0x01; return encodedRegs; } /***************************************************************************** * Is the next entry for a byref pointer. If so, emit the prefix for the * interruptible encoding. Check only for pushes and registers */ inline BYTE* gceByrefPrefixI(GCInfo::regPtrDsc* rpd, BYTE* dest) { // For registers, we don't need a prefix if it is going dead. assert(rpd->rpdArg || rpd->rpdCompiler.rpdDel == 0); if (!rpd->rpdArg || rpd->rpdArgType == GCInfo::rpdARG_PUSH) if (rpd->rpdGCtypeGet() == GCT_BYREF) *dest++ = 0xBF; return dest; } /*****************************************************************************/ /* These functions are needed to work around a VC5.0 compiler bug */ /* DO NOT REMOVE, unless you are sure that the free build works */ static int zeroFN() { return 0; } static int (*zeroFunc)() = zeroFN; /***************************************************************************** * Modelling of the GC ptrs pushed on the stack */ typedef unsigned pasMaskType; #define BITS_IN_pasMask (BITS_IN_BYTE * sizeof(pasMaskType)) #define HIGHEST_pasMask_BIT (((pasMaskType)0x1) << (BITS_IN_pasMask - 1)) //----------------------------------------------------------------------------- class PendingArgsStack { public: PendingArgsStack(unsigned maxDepth, Compiler* pComp); void pasPush(GCtype gcType); void pasPop(unsigned count); void pasKill(unsigned gcCount); unsigned pasCurDepth() { return pasDepth; } pasMaskType pasArgMask() { assert(pasDepth <= BITS_IN_pasMask); return pasBottomMask; } pasMaskType pasByrefArgMask() { assert(pasDepth <= BITS_IN_pasMask); return pasByrefBottomMask; } bool pasHasGCptrs(); // Use these in the case where there actually are more ptrs than pasArgMask unsigned pasEnumGCoffsCount(); #define pasENUM_START ((unsigned)-1) #define pasENUM_LAST ((unsigned)-2) #define pasENUM_END ((unsigned)-3) unsigned pasEnumGCoffs(unsigned iter, unsigned* offs); protected: unsigned pasMaxDepth; unsigned pasDepth; pasMaskType pasBottomMask; // The first 32 args pasMaskType pasByrefBottomMask; // byref qualifier for pasBottomMask BYTE* pasTopArray; // More than 32 args are represented here unsigned pasPtrsInTopArray; // How many GCptrs here }; //----------------------------------------------------------------------------- PendingArgsStack::PendingArgsStack(unsigned maxDepth, Compiler* pComp) : pasMaxDepth(maxDepth) , pasDepth(0) , pasBottomMask(0) , pasByrefBottomMask(0) , pasTopArray(NULL) , pasPtrsInTopArray(0) { /* Do we need an array as well as the mask ? */ if (pasMaxDepth > BITS_IN_pasMask) pasTopArray = pComp->getAllocator(CMK_Unknown).allocate<BYTE>(pasMaxDepth - BITS_IN_pasMask); } //----------------------------------------------------------------------------- void PendingArgsStack::pasPush(GCtype gcType) { assert(pasDepth < pasMaxDepth); if (pasDepth < BITS_IN_pasMask) { /* Shift the mask */ pasBottomMask <<= 1; pasByrefBottomMask <<= 1; if (needsGC(gcType)) { pasBottomMask |= 1; if (gcType == GCT_BYREF) pasByrefBottomMask |= 1; } } else { /* Push on array */ pasTopArray[pasDepth - BITS_IN_pasMask] = (BYTE)gcType; if (gcType) pasPtrsInTopArray++; } pasDepth++; } //----------------------------------------------------------------------------- void PendingArgsStack::pasPop(unsigned count) { assert(pasDepth >= count); /* First pop from array (if applicable) */ for (/**/; (pasDepth > BITS_IN_pasMask) && count; pasDepth--, count--) { unsigned topIndex = pasDepth - BITS_IN_pasMask - 1; GCtype topArg = (GCtype)pasTopArray[topIndex]; if (needsGC(topArg)) pasPtrsInTopArray--; } if (count == 0) return; /* Now un-shift the mask */ assert(pasPtrsInTopArray == 0); assert(count <= BITS_IN_pasMask); if (count == BITS_IN_pasMask) // (x>>32) is a nop on x86. So special-case it { pasBottomMask = pasByrefBottomMask = 0; pasDepth = 0; } else { pasBottomMask >>= count; pasByrefBottomMask >>= count; pasDepth -= count; } } //----------------------------------------------------------------------------- // Kill (but don't pop) the top 'gcCount' args void PendingArgsStack::pasKill(unsigned gcCount) { assert(gcCount != 0); /* First kill args in array (if any) */ for (unsigned curPos = pasDepth; (curPos > BITS_IN_pasMask) && gcCount; curPos--) { unsigned curIndex = curPos - BITS_IN_pasMask - 1; GCtype curArg = (GCtype)pasTopArray[curIndex]; if (needsGC(curArg)) { pasTopArray[curIndex] = GCT_NONE; pasPtrsInTopArray--; gcCount--; } } /* Now kill bits from the mask */ assert(pasPtrsInTopArray == 0); assert(gcCount <= BITS_IN_pasMask); for (unsigned bitPos = 1; gcCount; bitPos <<= 1) { assert(pasBottomMask != 0); if (pasBottomMask & bitPos) { pasBottomMask &= ~bitPos; pasByrefBottomMask &= ~bitPos; --gcCount; } else { assert(bitPos != HIGHEST_pasMask_BIT); } } } //----------------------------------------------------------------------------- // Used for the case where there are more than BITS_IN_pasMask args on stack, // but none are any pointers. May avoid reporting anything to GCinfo bool PendingArgsStack::pasHasGCptrs() { if (pasDepth <= BITS_IN_pasMask) return pasBottomMask != 0; else return pasBottomMask != 0 || pasPtrsInTopArray != 0; } //----------------------------------------------------------------------------- // Iterates over mask and array to return total count. // Use only when you are going to emit a table of the offsets unsigned PendingArgsStack::pasEnumGCoffsCount() { /* Should only be used in the worst case, when just the mask can't be used */ assert(pasDepth > BITS_IN_pasMask && pasHasGCptrs()); /* Count number of set bits in mask */ unsigned count = 0; for (pasMaskType mask = 0x1, i = 0; i < BITS_IN_pasMask; mask <<= 1, i++) { if (mask & pasBottomMask) count++; } return count + pasPtrsInTopArray; } //----------------------------------------------------------------------------- // Initalize enumeration by passing in iter=pasENUM_START. // Continue by passing in the return value as the new value of iter // End of enumeration when pasENUM_END is returned // If return value != pasENUM_END, *offs is set to the offset for GCinfo unsigned PendingArgsStack::pasEnumGCoffs(unsigned iter, unsigned* offs) { if (iter == pasENUM_LAST) return pasENUM_END; unsigned i = (iter == pasENUM_START) ? pasDepth : iter; for (/**/; i > BITS_IN_pasMask; i--) { GCtype curArg = (GCtype)pasTopArray[i - BITS_IN_pasMask - 1]; if (needsGC(curArg)) { unsigned offset; offset = (pasDepth - i) * TARGET_POINTER_SIZE; if (curArg == GCT_BYREF) offset |= byref_OFFSET_FLAG; *offs = offset; return i - 1; } } if (!pasBottomMask) return pasENUM_END; // Have we already processed some of the bits in pasBottomMask ? i = (iter == pasENUM_START || iter >= BITS_IN_pasMask) ? 0 // no : iter; // yes for (pasMaskType mask = 0x1 << i; mask; i++, mask <<= 1) { if (mask & pasBottomMask) { unsigned lvl = (pasDepth > BITS_IN_pasMask) ? (pasDepth - BITS_IN_pasMask) : 0; // How many in pasTopArray[] lvl += i; unsigned offset; offset = lvl * TARGET_POINTER_SIZE; if (mask & pasByrefBottomMask) offset |= byref_OFFSET_FLAG; *offs = offset; unsigned remMask = -int(mask << 1); return ((pasBottomMask & remMask) ? (i + 1) : pasENUM_LAST); } } assert(!"Shouldnt reach here"); return pasENUM_END; } /***************************************************************************** * * Generate the register pointer map, and return its total size in bytes. If * 'mask' is 0, we don't actually store any data in 'dest' (except for one * entry, which is never more than 10 bytes), so this can be used to merely * compute the size of the table. */ #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable : 21000) // Suppress PREFast warning about overly large function #endif size_t GCInfo::gcMakeRegPtrTable(BYTE* dest, int mask, const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset) { unsigned varNum; LclVarDsc* varDsc; size_t totalSize = 0; unsigned lastOffset; /* The mask should be all 0's or all 1's */ assert(mask == 0 || mask == -1); /* Start computing the total size of the table */ bool emitArgTabOffset = (header.varPtrTableSize != 0 || header.untrackedCnt > SET_UNTRACKED_MAX); if (mask != 0 && emitArgTabOffset) { assert(*pArgTabOffset <= MAX_UNSIGNED_SIZE_T); unsigned sz = encodeUnsigned(dest, static_cast<unsigned>(*pArgTabOffset)); dest += sz; totalSize += sz; } #if VERIFY_GC_TABLES if (mask) { *(short*)dest = (short)0xBEEF; dest += sizeof(short); } totalSize += sizeof(short); #endif /************************************************************************** * * Untracked ptr variables * ************************************************************************** */ #if DEBUG unsigned untrackedCount = 0; unsigned varPtrTableSize = 0; gcCountForHeader(&untrackedCount, &varPtrTableSize); assert(untrackedCount == header.untrackedCnt); assert(varPtrTableSize == header.varPtrTableSize); #endif // DEBUG if (header.untrackedCnt != 0) { // Write the table of untracked pointer variables. int lastoffset = 0; for (varNum = 0, varDsc = compiler->lvaTable; varNum < compiler->lvaCount; varNum++, varDsc++) { if (compiler->lvaIsFieldOfDependentlyPromotedStruct(varDsc)) { // Field local of a PROMOTION_TYPE_DEPENDENT struct must have been // reported through its parent local continue; } if (varTypeIsGC(varDsc->TypeGet())) { if (!gcIsUntrackedLocalOrNonEnregisteredArg(varNum)) { continue; } int offset = varDsc->GetStackOffset(); #if DOUBLE_ALIGN // For genDoubleAlign(), locals are addressed relative to ESP and // arguments are addressed relative to EBP. if (compiler->genDoubleAlign() && varDsc->lvIsParam && !varDsc->lvIsRegArg) offset += compiler->codeGen->genTotalFrameSize(); #endif // The lower bits of the offset encode properties of the stk ptr assert(~OFFSET_MASK % sizeof(offset) == 0); if (varDsc->TypeGet() == TYP_BYREF) { // Or in byref_OFFSET_FLAG for 'byref' pointer tracking offset |= byref_OFFSET_FLAG; } if (varDsc->lvPinned) { // Or in pinned_OFFSET_FLAG for 'pinned' pointer tracking offset |= pinned_OFFSET_FLAG; } int encodedoffset = lastoffset - offset; lastoffset = offset; if (mask == 0) totalSize += encodeSigned(NULL, encodedoffset); else { unsigned sz = encodeSigned(dest, encodedoffset); dest += sz; totalSize += sz; } } else if ((varDsc->TypeGet() == TYP_STRUCT) && varDsc->lvOnFrame && varDsc->HasGCPtr()) { ClassLayout* layout = varDsc->GetLayout(); unsigned slots = layout->GetSlotCount(); for (unsigned i = 0; i < slots; i++) { if (!layout->IsGCPtr(i)) { continue; } unsigned offset = varDsc->GetStackOffset() + i * TARGET_POINTER_SIZE; #if DOUBLE_ALIGN // For genDoubleAlign(), locals are addressed relative to ESP and // arguments are addressed relative to EBP. if (compiler->genDoubleAlign() && varDsc->lvIsParam && !varDsc->lvIsRegArg) { offset += compiler->codeGen->genTotalFrameSize(); } #endif if (layout->GetGCPtrType(i) == TYP_BYREF) { offset |= byref_OFFSET_FLAG; // indicate it is a byref GC pointer } int encodedoffset = lastoffset - offset; lastoffset = offset; if (mask == 0) { totalSize += encodeSigned(NULL, encodedoffset); } else { unsigned sz = encodeSigned(dest, encodedoffset); dest += sz; totalSize += sz; } } } } /* Count&Write spill temps that hold pointers */ assert(compiler->codeGen->regSet.tmpAllFree()); for (TempDsc* tempItem = compiler->codeGen->regSet.tmpListBeg(); tempItem != nullptr; tempItem = compiler->codeGen->regSet.tmpListNxt(tempItem)) { if (varTypeIsGC(tempItem->tdTempType())) { { int offset; offset = tempItem->tdTempOffs(); if (tempItem->tdTempType() == TYP_BYREF) { offset |= byref_OFFSET_FLAG; } int encodedoffset = lastoffset - offset; lastoffset = offset; if (mask == 0) { totalSize += encodeSigned(NULL, encodedoffset); } else { unsigned sz = encodeSigned(dest, encodedoffset); dest += sz; totalSize += sz; } } } } } #if VERIFY_GC_TABLES if (mask) { *(short*)dest = (short)0xCAFE; dest += sizeof(short); } totalSize += sizeof(short); #endif /************************************************************************** * * Generate the table of stack pointer variable lifetimes. * ************************************************************************** */ bool keepThisAlive = false; if (!compiler->info.compIsStatic) { unsigned thisArgNum = compiler->info.compThisArg; gcIsUntrackedLocalOrNonEnregisteredArg(thisArgNum, &keepThisAlive); } // First we check for the most common case - no lifetimes at all. if (header.varPtrTableSize != 0) { #if !defined(FEATURE_EH_FUNCLETS) if (keepThisAlive) { // Encoding of untracked variables does not support reporting // "this". So report it as a tracked variable with a liveness // extending over the entire method. assert(compiler->lvaTable[compiler->info.compThisArg].TypeGet() == TYP_REF); unsigned varOffs = compiler->lvaTable[compiler->info.compThisArg].GetStackOffset(); /* For negative stack offsets we must reset the low bits, * take abs and then set them back */ varOffs = abs(static_cast<int>(varOffs)); varOffs |= this_OFFSET_FLAG; size_t sz = 0; sz = encodeUnsigned(mask ? (dest + sz) : NULL, varOffs); sz += encodeUDelta(mask ? (dest + sz) : NULL, 0, 0); sz += encodeUDelta(mask ? (dest + sz) : NULL, codeSize, 0); dest += (sz & mask); totalSize += sz; } #endif // !FEATURE_EH_FUNCLETS /* We'll use a delta encoding for the lifetime offsets */ lastOffset = 0; for (varPtrDsc* varTmp = gcVarPtrList; varTmp; varTmp = varTmp->vpdNext) { unsigned varOffs; unsigned lowBits; unsigned begOffs; unsigned endOffs; assert(~OFFSET_MASK % TARGET_POINTER_SIZE == 0); /* Get hold of the variable's stack offset */ lowBits = varTmp->vpdVarNum & OFFSET_MASK; /* For negative stack offsets we must reset the low bits, * take abs and then set them back */ varOffs = abs(static_cast<int>(varTmp->vpdVarNum & ~OFFSET_MASK)); varOffs |= lowBits; /* Compute the actual lifetime offsets */ begOffs = varTmp->vpdBegOfs; endOffs = varTmp->vpdEndOfs; /* Special case: skip any 0-length lifetimes */ if (endOffs == begOffs) continue; /* Are we counting or generating? */ size_t sz = 0; sz = encodeUnsigned(mask ? (dest + sz) : NULL, varOffs); sz += encodeUDelta(mask ? (dest + sz) : NULL, begOffs, lastOffset); sz += encodeUDelta(mask ? (dest + sz) : NULL, endOffs, begOffs); dest += (sz & mask); totalSize += sz; /* The next entry will be relative to the one we just processed */ lastOffset = begOffs; } } if (pArgTabOffset != NULL) *pArgTabOffset = totalSize; #if VERIFY_GC_TABLES if (mask) { *(short*)dest = (short)0xBABE; dest += sizeof(short); } totalSize += sizeof(short); #endif if (!mask && emitArgTabOffset) { assert(*pArgTabOffset <= MAX_UNSIGNED_SIZE_T); totalSize += encodeUnsigned(NULL, static_cast<unsigned>(*pArgTabOffset)); } /************************************************************************** * * Prepare to generate the pointer register/argument map * ************************************************************************** */ lastOffset = 0; if (compiler->codeGen->GetInterruptible()) { #ifdef TARGET_X86 assert(compiler->IsFullPtrRegMapRequired()); unsigned ptrRegs = 0; regPtrDsc* genRegPtrTemp; /* Walk the list of pointer register/argument entries */ for (genRegPtrTemp = gcRegPtrList; genRegPtrTemp; genRegPtrTemp = genRegPtrTemp->rpdNext) { BYTE* base = dest; unsigned nextOffset; DWORD codeDelta; nextOffset = genRegPtrTemp->rpdOffs; /* Encoding table for methods that are fully interruptible The encoding used is as follows: ptr reg dead 00RRRDDD [RRR != 100] ptr reg live 01RRRDDD [RRR != 100] non-ptr arg push 10110DDD [SSS == 110] ptr arg push 10SSSDDD [SSS != 110] && [SSS != 111] ptr arg pop 11CCCDDD [CCC != 000] && [CCC != 110] && [CCC != 111] little skip 11000DDD [CCC == 000] bigger skip 11110BBB [CCC == 110] The values used in the above encodings are as follows: DDD code offset delta from previous entry (0-7) BBB bigger delta 000=8,001=16,010=24,...,111=64 RRR register number (EAX=000,ECX=001,EDX=010,EBX=011, EBP=101,ESI=110,EDI=111), ESP=100 is reserved SSS argument offset from base of stack. This is redundant for frameless methods as we can infer it from the previous pushes+pops. However, for EBP-methods, we only report GC pushes, and so we need SSS CCC argument count being popped (includes only ptrs for EBP methods) The following are the 'large' versions: large delta skip 10111000 [0xB8] , encodeUnsigned(delta) large ptr arg push 11111000 [0xF8] , encodeUnsigned(pushCount) large non-ptr arg push 11111001 [0xF9] , encodeUnsigned(pushCount) large ptr arg pop 11111100 [0xFC] , encodeUnsigned(popCount) large arg dead 11111101 [0xFD] , encodeUnsigned(popCount) for caller-pop args. Any GC args go dead after the call, but are still sitting on the stack this pointer prefix 10111100 [0xBC] the next encoding is a ptr live or a ptr arg push and contains the this pointer interior or by-ref 10111111 [0xBF] the next encoding is a ptr live pointer prefix or a ptr arg push and contains an interior or by-ref pointer The value 11111111 [0xFF] indicates the end of the table. */ codeDelta = nextOffset - lastOffset; assert((int)codeDelta >= 0); // If the code delta is between 8 and (64+7), // generate a 'bigger delta' encoding if ((codeDelta >= 8) && (codeDelta <= (64 + 7))) { unsigned biggerDelta = ((codeDelta - 8) & 0x38) + 8; *dest++ = (BYTE)(0xF0 | ((biggerDelta - 8) >> 3)); lastOffset += biggerDelta; codeDelta &= 0x07; } // If the code delta is still bigger than 7, // generate a 'large code delta' encoding if (codeDelta > 7) { *dest++ = 0xB8; dest += encodeUnsigned(dest, codeDelta); codeDelta = 0; /* Remember the new 'last' offset */ lastOffset = nextOffset; } /* Is this a pointer argument or register entry? */ if (genRegPtrTemp->rpdArg) { if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_KILL) { if (codeDelta) { /* Use the small encoding: little delta skip 11000DDD [0xC0] */ assert((codeDelta & 0x7) == codeDelta); *dest++ = 0xC0 | (BYTE)codeDelta; /* Remember the new 'last' offset */ lastOffset = nextOffset; } /* Caller-pop arguments are dead after call but are still sitting on the stack */ *dest++ = 0xFD; assert(genRegPtrTemp->rpdPtrArg != 0); dest += encodeUnsigned(dest, genRegPtrTemp->rpdPtrArg); } else if (genRegPtrTemp->rpdPtrArg < 6 && genRegPtrTemp->rpdGCtypeGet()) { /* Is the argument offset/count smaller than 6 ? */ dest = gceByrefPrefixI(genRegPtrTemp, dest); if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_PUSH || (genRegPtrTemp->rpdPtrArg != 0)) { /* Use the small encoding: ptr arg push 10SSSDDD [SSS != 110] && [SSS != 111] ptr arg pop 11CCCDDD [CCC != 110] && [CCC != 111] */ bool isPop = genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP; *dest++ = (BYTE)(0x80 | (BYTE)codeDelta | genRegPtrTemp->rpdPtrArg << 3 | isPop << 6); /* Remember the new 'last' offset */ lastOffset = nextOffset; } else { assert(!"Check this"); } } else if (genRegPtrTemp->rpdGCtypeGet() == GCT_NONE) { /* Use the small encoding: ` non-ptr arg push 10110DDD [0xB0] (push of sizeof(int)) */ assert((codeDelta & 0x7) == codeDelta); *dest++ = 0xB0 | (BYTE)codeDelta; #ifndef UNIX_X86_ABI assert(!compiler->isFramePointerUsed()); #endif /* Remember the new 'last' offset */ lastOffset = nextOffset; } else { /* Will have to use large encoding; * first do the code delta */ if (codeDelta) { /* Use the small encoding: little delta skip 11000DDD [0xC0] */ assert((codeDelta & 0x7) == codeDelta); *dest++ = 0xC0 | (BYTE)codeDelta; } /* Now append a large argument record: large ptr arg push 11111000 [0xF8] large ptr arg pop 11111100 [0xFC] */ bool isPop = genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP; dest = gceByrefPrefixI(genRegPtrTemp, dest); *dest++ = 0xF8 | (isPop << 2); dest += encodeUnsigned(dest, genRegPtrTemp->rpdPtrArg); /* Remember the new 'last' offset */ lastOffset = nextOffset; } } else { unsigned regMask; /* Record any registers that are becoming dead */ regMask = genRegPtrTemp->rpdCompiler.rpdDel & ptrRegs; while (regMask) // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI { unsigned tmpMask; regNumber regNum; /* Get hold of the next register bit */ tmpMask = genFindLowestReg(regMask); assert(tmpMask); /* Remember the new state of this register */ ptrRegs &= ~tmpMask; /* Figure out which register the next bit corresponds to */ regNum = genRegNumFromMask(tmpMask); assert(regNum <= 7); /* Reserve ESP, regNum==4 for future use */ assert(regNum != 4); /* Generate a small encoding: ptr reg dead 00RRRDDD */ assert((codeDelta & 0x7) == codeDelta); *dest++ = (BYTE)(0x00 | regNum << 3 | (BYTE)codeDelta); /* Turn the bit we've just generated off and continue */ regMask -= tmpMask; // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI /* Remember the new 'last' offset */ lastOffset = nextOffset; /* Any entries that follow will be at the same offset */ codeDelta = zeroFunc(); /* DO NOT REMOVE */ } /* Record any registers that are becoming live */ regMask = genRegPtrTemp->rpdCompiler.rpdAdd & ~ptrRegs; while (regMask) // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI { unsigned tmpMask; regNumber regNum; /* Get hold of the next register bit */ tmpMask = genFindLowestReg(regMask); assert(tmpMask); /* Remember the new state of this register */ ptrRegs |= tmpMask; /* Figure out which register the next bit corresponds to */ regNum = genRegNumFromMask(tmpMask); assert(regNum <= 7); /* Generate a small encoding: ptr reg live 01RRRDDD */ dest = gceByrefPrefixI(genRegPtrTemp, dest); if (!keepThisAlive && genRegPtrTemp->rpdIsThis) { // Mark with 'this' pointer prefix *dest++ = 0xBC; // Can only have one bit set in regMask assert(regMask == tmpMask); } assert((codeDelta & 0x7) == codeDelta); *dest++ = (BYTE)(0x40 | (regNum << 3) | (BYTE)codeDelta); /* Turn the bit we've just generated off and continue */ regMask -= tmpMask; // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI /* Remember the new 'last' offset */ lastOffset = nextOffset; /* Any entries that follow will be at the same offset */ codeDelta = zeroFunc(); /* DO NOT REMOVE */ } } /* Keep track of the total amount of generated stuff */ totalSize += dest - base; /* Go back to the buffer start if we're not generating a table */ if (!mask) dest = base; } #endif // TARGET_X86 /* Terminate the table with 0xFF */ *dest = 0xFF; dest -= mask; totalSize++; } else if (compiler->isFramePointerUsed()) // GetInterruptible() is false { #ifdef TARGET_X86 /* Encoding table for methods with an EBP frame and that are not fully interruptible The encoding used is as follows: this pointer encodings: 01000000 this pointer in EBX 00100000 this pointer in ESI 00010000 this pointer in EDI tiny encoding: 0bsdDDDD requires code delta > 0 & delta < 16 (4-bits) requires pushed argmask == 0 where DDDD is code delta b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer small encoding: 1DDDDDDD bsdAAAAA requires code delta < 120 (7-bits) requires pushed argmask < 64 (5-bits) where DDDDDDD is code delta AAAAA is the pushed args mask b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer medium encoding 0xFD aaaaaaaa AAAAdddd bseDDDDD requires code delta < 512 (9-bits) requires pushed argmask < 2048 (12-bits) where DDDDD is the upper 5-bits of the code delta dddd is the low 4-bits of the code delta AAAA is the upper 4-bits of the pushed arg mask aaaaaaaa is the low 8-bits of the pushed arg mask b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer e indicates that register EDI is a live pointer medium encoding with interior pointers 0xF9 DDDDDDDD bsdAAAAAA iiiIIIII requires code delta < 256 (8-bits) requires pushed argmask < 64 (5-bits) where DDDDDDD is the code delta b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer AAAAA is the pushed arg mask iii indicates that EBX,EDI,ESI are interior pointers IIIII indicates that bits in the arg mask are interior pointers large encoding 0xFE [0BSD0bsd][32-bit code delta][32-bit argMask] b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer B indicates that register EBX is an interior pointer S indicates that register ESI is an interior pointer D indicates that register EDI is an interior pointer requires pushed argmask < 32-bits large encoding with interior pointers 0xFA [0BSD0bsd][32-bit code delta][32-bit argMask][32-bit interior pointer mask] b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer B indicates that register EBX is an interior pointer S indicates that register ESI is an interior pointer D indicates that register EDI is an interior pointer requires pushed argmask < 32-bits requires pushed iArgmask < 32-bits huge encoding This is the only encoding that supports a pushed argmask which is greater than 32-bits. 0xFB [0BSD0bsd][32-bit code delta] [32-bit table count][32-bit table size] [pushed ptr offsets table...] b indicates that register EBX is a live pointer s indicates that register ESI is a live pointer d indicates that register EDI is a live pointer B indicates that register EBX is an interior pointer S indicates that register ESI is an interior pointer D indicates that register EDI is an interior pointer the list count is the number of entries in the list the list size gives the byte-length of the list the offsets in the list are variable-length */ /* If "this" is enregistered, note it. We do this explicitly here as IsFullPtrRegMapRequired()==false, and so we don't have any regPtrDsc's. */ if (compiler->lvaKeepAliveAndReportThis() && compiler->lvaTable[compiler->info.compThisArg].lvRegister) { unsigned thisRegMask = genRegMask(compiler->lvaTable[compiler->info.compThisArg].GetRegNum()); unsigned thisPtrRegEnc = gceEncodeCalleeSavedRegs(thisRegMask) << 4; if (thisPtrRegEnc) { totalSize += 1; if (mask) *dest++ = (BYTE)thisPtrRegEnc; } } CallDsc* call; assert(compiler->IsFullPtrRegMapRequired() == false); /* Walk the list of pointer register/argument entries */ for (call = gcCallDescList; call; call = call->cdNext) { BYTE* base = dest; unsigned nextOffset; /* Figure out the code offset of this entry */ nextOffset = call->cdOffs; /* Compute the distance from the previous call */ DWORD codeDelta = nextOffset - lastOffset; assert((int)codeDelta >= 0); /* Remember the new 'last' offset */ lastOffset = nextOffset; /* Compute the register mask */ unsigned gcrefRegMask = 0; unsigned byrefRegMask = 0; gcrefRegMask |= gceEncodeCalleeSavedRegs(call->cdGCrefRegs); byrefRegMask |= gceEncodeCalleeSavedRegs(call->cdByrefRegs); assert((gcrefRegMask & byrefRegMask) == 0); unsigned regMask = gcrefRegMask | byrefRegMask; bool byref = (byrefRegMask | call->u1.cdByrefArgMask) != 0; /* Check for the really large argument offset case */ /* The very rare Huge encodings */ if (call->cdArgCnt) { unsigned argNum; DWORD argCnt = call->cdArgCnt; DWORD argBytes = 0; BYTE* pArgBytes = DUMMY_INIT(NULL); if (mask != 0) { *dest++ = 0xFB; *dest++ = (BYTE)((byrefRegMask << 4) | regMask); *(DWORD*)dest = codeDelta; dest += sizeof(DWORD); *(DWORD*)dest = argCnt; dest += sizeof(DWORD); // skip the byte-size for now. Just note where it will go pArgBytes = dest; dest += sizeof(DWORD); } for (argNum = 0; argNum < argCnt; argNum++) { unsigned eltSize; eltSize = encodeUnsigned(dest, call->cdArgTable[argNum]); argBytes += eltSize; if (mask) dest += eltSize; } if (mask == 0) { dest = base + 1 + 1 + 3 * sizeof(DWORD) + argBytes; } else { assert(dest == pArgBytes + sizeof(argBytes) + argBytes); *(DWORD*)pArgBytes = argBytes; } } /* Check if we can use a tiny encoding */ else if ((codeDelta < 16) && (codeDelta != 0) && (call->u1.cdArgMask == 0) && !byref) { *dest++ = (BYTE)((regMask << 4) | (BYTE)codeDelta); } /* Check if we can use the small encoding */ else if ((codeDelta < 0x79) && (call->u1.cdArgMask <= 0x1F) && !byref) { *dest++ = 0x80 | (BYTE)codeDelta; *dest++ = (BYTE)(call->u1.cdArgMask | (regMask << 5)); } /* Check if we can use the medium encoding */ else if (codeDelta <= 0x01FF && call->u1.cdArgMask <= 0x0FFF && !byref) { *dest++ = 0xFD; *dest++ = (BYTE)call->u1.cdArgMask; *dest++ = ((call->u1.cdArgMask >> 4) & 0xF0) | ((BYTE)codeDelta & 0x0F); *dest++ = (BYTE)(regMask << 5) | (BYTE)((codeDelta >> 4) & 0x1F); } /* Check if we can use the medium encoding with byrefs */ else if (codeDelta <= 0x0FF && call->u1.cdArgMask <= 0x01F) { *dest++ = 0xF9; *dest++ = (BYTE)codeDelta; *dest++ = (BYTE)((regMask << 5) | call->u1.cdArgMask); *dest++ = (BYTE)((byrefRegMask << 5) | call->u1.cdByrefArgMask); } /* We'll use the large encoding */ else if (!byref) { *dest++ = 0xFE; *dest++ = (BYTE)((byrefRegMask << 4) | regMask); *(DWORD*)dest = codeDelta; dest += sizeof(DWORD); *(DWORD*)dest = call->u1.cdArgMask; dest += sizeof(DWORD); } /* We'll use the large encoding with byrefs */ else { *dest++ = 0xFA; *dest++ = (BYTE)((byrefRegMask << 4) | regMask); *(DWORD*)dest = codeDelta; dest += sizeof(DWORD); *(DWORD*)dest = call->u1.cdArgMask; dest += sizeof(DWORD); *(DWORD*)dest = call->u1.cdByrefArgMask; dest += sizeof(DWORD); } /* Keep track of the total amount of generated stuff */ totalSize += dest - base; /* Go back to the buffer start if we're not generating a table */ if (!mask) dest = base; } #endif // TARGET_X86 /* Terminate the table with 0xFF */ *dest = 0xFF; dest -= mask; totalSize++; } else // GetInterruptible() is false and we have an EBP-less frame { assert(compiler->IsFullPtrRegMapRequired()); #ifdef TARGET_X86 regPtrDsc* genRegPtrTemp; regNumber thisRegNum = regNumber(0); PendingArgsStack pasStk(compiler->GetEmitter()->emitMaxStackDepth, compiler); /* Walk the list of pointer register/argument entries */ for (genRegPtrTemp = gcRegPtrList; genRegPtrTemp; genRegPtrTemp = genRegPtrTemp->rpdNext) { /* * Encoding table for methods without an EBP frame and * that are not fully interruptible * * The encoding used is as follows: * * push 000DDDDD ESP push one item with 5-bit delta * push 00100000 [pushCount] ESP push multiple items * reserved 0010xxxx xxxx != 0000 * reserved 0011xxxx * skip 01000000 [Delta] Skip Delta, arbitrary sized delta * skip 0100DDDD Skip small Delta, for call (DDDD != 0) * pop 01CCDDDD ESP pop CC items with 4-bit delta (CC != 00) * call 1PPPPPPP Call Pattern, P=[0..79] * call 1101pbsd DDCCCMMM Call RegMask=pbsd,ArgCnt=CCC, * ArgMask=MMM Delta=commonDelta[DD] * call 1110pbsd [ArgCnt] [ArgMask] Call ArgCnt,RegMask=pbsd,ArgMask * call 11111000 [PBSDpbsd][32-bit delta][32-bit ArgCnt] * [32-bit PndCnt][32-bit PndSize][PndOffs...] * iptr 11110000 [IPtrMask] Arbitrary Interior Pointer Mask * thisptr 111101RR This pointer is in Register RR * 00=EDI,01=ESI,10=EBX,11=EBP * reserved 111100xx xx != 00 * reserved 111110xx xx != 00 * reserved 11111xxx xxx != 000 && xxx != 111(EOT) * * The value 11111111 [0xFF] indicates the end of the table. (EOT) * * An offset (at which stack-walking is performed) without an explicit encoding * is assumed to be a trivial call-site (no GC registers, stack empty before and * after) to avoid having to encode all trivial calls. * * Note on the encoding used for interior pointers * * The iptr encoding must immediately precede a call encoding. It is used * to transform a normal GC pointer addresses into an interior pointers for * GC purposes. The mask supplied to the iptr encoding is read from the * least signicant bit to the most signicant bit. (i.e the lowest bit is * read first) * * p indicates that register EBP is a live pointer * b indicates that register EBX is a live pointer * s indicates that register ESI is a live pointer * d indicates that register EDI is a live pointer * P indicates that register EBP is an interior pointer * B indicates that register EBX is an interior pointer * S indicates that register ESI is an interior pointer * D indicates that register EDI is an interior pointer * * As an example the following sequence indicates that EDI.ESI and the * second pushed pointer in ArgMask are really interior pointers. The * pointer in ESI in a normal pointer: * * iptr 11110000 00010011 => read Interior Ptr, Interior Ptr, * Normal Ptr, Normal Ptr, Interior Ptr * * call 11010011 DDCCC011 RRRR=1011 => read EDI is a GC-pointer, * ESI is a GC-pointer. * EBP is a GC-pointer * MMM=0011 => read two GC-pointers arguments * on the stack (nested call) * * Since the call instruction mentions 5 GC-pointers we list them in * the required order: EDI, ESI, EBP, 1st-pushed pointer, 2nd-pushed pointer * * And we apply the Interior Pointer mask mmmm=10011 to the five GC-pointers * we learn that EDI and ESI are interior GC-pointers and that * the second push arg is an interior GC-pointer. */ BYTE* base = dest; bool usePopEncoding; unsigned regMask; unsigned argMask; unsigned byrefRegMask; unsigned byrefArgMask; DWORD callArgCnt; unsigned nextOffset; DWORD codeDelta; nextOffset = genRegPtrTemp->rpdOffs; /* Compute the distance from the previous call */ codeDelta = nextOffset - lastOffset; assert((int)codeDelta >= 0); #if REGEN_CALLPAT // Must initialize this flag to true when REGEN_CALLPAT is on usePopEncoding = true; unsigned origCodeDelta = codeDelta; #endif if (!keepThisAlive && genRegPtrTemp->rpdIsThis) { unsigned tmpMask = genRegPtrTemp->rpdCompiler.rpdAdd; /* tmpMask must have exactly one bit set */ assert(tmpMask && ((tmpMask & (tmpMask - 1)) == 0)); thisRegNum = genRegNumFromMask(tmpMask); switch (thisRegNum) { case 0: // EAX case 1: // ECX case 2: // EDX case 4: // ESP break; case 7: // EDI *dest++ = 0xF4; /* 11110100 This pointer is in EDI */ break; case 6: // ESI *dest++ = 0xF5; /* 11110100 This pointer is in ESI */ break; case 3: // EBX *dest++ = 0xF6; /* 11110100 This pointer is in EBX */ break; case 5: // EBP *dest++ = 0xF7; /* 11110100 This pointer is in EBP */ break; default: break; } } /* Is this a stack pointer change or call? */ if (genRegPtrTemp->rpdArg) { if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_KILL) { // kill 'rpdPtrArg' number of pointer variables in pasStk pasStk.pasKill(genRegPtrTemp->rpdPtrArg); } /* Is this a call site? */ else if (genRegPtrTemp->rpdCall) { /* This is a true call site */ /* Remember the new 'last' offset */ lastOffset = nextOffset; callArgCnt = genRegPtrTemp->rpdPtrArg; unsigned gcrefRegMask = genRegPtrTemp->rpdCallGCrefRegs; byrefRegMask = genRegPtrTemp->rpdCallByrefRegs; assert((gcrefRegMask & byrefRegMask) == 0); regMask = gcrefRegMask | byrefRegMask; /* adjust argMask for this call-site */ pasStk.pasPop(callArgCnt); /* Do we have to use the fat encoding */ if (pasStk.pasCurDepth() > BITS_IN_pasMask && pasStk.pasHasGCptrs()) { /* use fat encoding: * 11111000 [PBSDpbsd][32-bit delta][32-bit ArgCnt] * [32-bit PndCnt][32-bit PndSize][PndOffs...] */ DWORD pndCount = pasStk.pasEnumGCoffsCount(); DWORD pndSize = 0; BYTE* pPndSize = DUMMY_INIT(NULL); if (mask) { *dest++ = 0xF8; *dest++ = (BYTE)((byrefRegMask << 4) | regMask); *(DWORD*)dest = codeDelta; dest += sizeof(DWORD); *(DWORD*)dest = callArgCnt; dest += sizeof(DWORD); *(DWORD*)dest = pndCount; dest += sizeof(DWORD); pPndSize = dest; dest += sizeof(DWORD); // Leave space for pndSize } unsigned offs, iter; for (iter = pasStk.pasEnumGCoffs(pasENUM_START, &offs); pndCount; iter = pasStk.pasEnumGCoffs(iter, &offs), pndCount--) { unsigned eltSize = encodeUnsigned(dest, offs); pndSize += eltSize; if (mask) dest += eltSize; } assert(iter == pasENUM_END); if (mask == 0) { dest = base + 2 + 4 * sizeof(DWORD) + pndSize; } else { assert(pPndSize + sizeof(pndSize) + pndSize == dest); *(DWORD*)pPndSize = pndSize; } goto NEXT_RPD; } argMask = byrefArgMask = 0; if (pasStk.pasHasGCptrs()) { assert(pasStk.pasCurDepth() <= BITS_IN_pasMask); argMask = pasStk.pasArgMask(); byrefArgMask = pasStk.pasByrefArgMask(); } /* Shouldn't be reporting trivial call-sites */ assert(regMask || argMask || callArgCnt || pasStk.pasCurDepth()); // Emit IPtrMask if needed #define CHK_NON_INTRPT_ESP_IPtrMask \ \ if (byrefRegMask || byrefArgMask) \ { \ *dest++ = 0xF0; \ unsigned imask = (byrefArgMask << 4) | byrefRegMask; \ dest += encodeUnsigned(dest, imask); \ } /* When usePopEncoding is true: * this is not an interesting call site * because nothing is live here. */ usePopEncoding = ((callArgCnt < 4) && (regMask == 0) && (argMask == 0)); if (!usePopEncoding) { int pattern = lookupCallPattern(callArgCnt, regMask, argMask, codeDelta); if (pattern != -1) { if (pattern > 0xff) { codeDelta = pattern >> 8; pattern &= 0xff; if (codeDelta >= 16) { /* use encoding: */ /* skip 01000000 [Delta] */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta); codeDelta = 0; } else { /* use encoding: */ /* skip 0100DDDD small delta=DDDD */ *dest++ = 0x40 | (BYTE)codeDelta; } } // Emit IPtrMask if needed CHK_NON_INTRPT_ESP_IPtrMask; assert((pattern >= 0) && (pattern < 80)); *dest++ = (BYTE)(0x80 | pattern); goto NEXT_RPD; } /* See if we can use 2nd call encoding * 1101RRRR DDCCCMMM encoding */ if ((callArgCnt <= 7) && (argMask <= 7)) { unsigned inx; // callCommonDelta[] index unsigned maxCommonDelta = callCommonDelta[3]; if (codeDelta > maxCommonDelta) { if (codeDelta > maxCommonDelta + 15) { /* use encoding: */ /* skip 01000000 [Delta] */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta - maxCommonDelta); } else { /* use encoding: */ /* skip 0100DDDD small delta=DDDD */ *dest++ = 0x40 | (BYTE)(codeDelta - maxCommonDelta); } codeDelta = maxCommonDelta; inx = 3; goto EMIT_2ND_CALL_ENCODING; } for (inx = 0; inx < 4; inx++) { if (codeDelta == callCommonDelta[inx]) { EMIT_2ND_CALL_ENCODING: // Emit IPtrMask if needed CHK_NON_INTRPT_ESP_IPtrMask; *dest++ = (BYTE)(0xD0 | regMask); *dest++ = (BYTE)((inx << 6) | (callArgCnt << 3) | argMask); goto NEXT_RPD; } } unsigned minCommonDelta = callCommonDelta[0]; if ((codeDelta > minCommonDelta) && (codeDelta < maxCommonDelta)) { assert((minCommonDelta + 16) > maxCommonDelta); /* use encoding: */ /* skip 0100DDDD small delta=DDDD */ *dest++ = 0x40 | (BYTE)(codeDelta - minCommonDelta); codeDelta = minCommonDelta; inx = 0; goto EMIT_2ND_CALL_ENCODING; } } } if (codeDelta >= 16) { unsigned i = (usePopEncoding ? 15 : 0); /* use encoding: */ /* skip 01000000 [Delta] arbitrary sized delta */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta - i); codeDelta = i; } if ((codeDelta > 0) || usePopEncoding) { if (usePopEncoding) { /* use encoding: */ /* pop 01CCDDDD ESP pop CC items, 4-bit delta */ if (callArgCnt || codeDelta) *dest++ = (BYTE)(0x40 | (callArgCnt << 4) | codeDelta); goto NEXT_RPD; } else { /* use encoding: */ /* skip 0100DDDD small delta=DDDD */ *dest++ = 0x40 | (BYTE)codeDelta; } } // Emit IPtrMask if needed CHK_NON_INTRPT_ESP_IPtrMask; /* use encoding: */ /* call 1110RRRR [ArgCnt] [ArgMask] */ *dest++ = (BYTE)(0xE0 | regMask); dest += encodeUnsigned(dest, callArgCnt); dest += encodeUnsigned(dest, argMask); } else { /* This is a push or a pop site */ /* Remember the new 'last' offset */ lastOffset = nextOffset; if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP) { /* This must be a gcArgPopSingle */ assert(genRegPtrTemp->rpdPtrArg == 1); if (codeDelta >= 16) { /* use encoding: */ /* skip 01000000 [Delta] */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta - 15); codeDelta = 15; } /* use encoding: */ /* pop1 0101DDDD ESP pop one item, 4-bit delta */ *dest++ = 0x50 | (BYTE)codeDelta; /* adjust argMask for this pop */ pasStk.pasPop(1); } else { /* This is a push */ if (codeDelta >= 32) { /* use encoding: */ /* skip 01000000 [Delta] */ *dest++ = 0x40; dest += encodeUnsigned(dest, codeDelta - 31); codeDelta = 31; } assert(codeDelta < 32); /* use encoding: */ /* push 000DDDDD ESP push one item, 5-bit delta */ *dest++ = (BYTE)codeDelta; /* adjust argMask for this push */ pasStk.pasPush(genRegPtrTemp->rpdGCtypeGet()); } } } /* We ignore the register live/dead information, since the * rpdCallRegMask contains all the liveness information * that we need */ NEXT_RPD: totalSize += dest - base; /* Go back to the buffer start if we're not generating a table */ if (!mask) dest = base; #if REGEN_CALLPAT if ((mask == -1) && (usePopEncoding == false) && ((dest - base) > 0)) regenLog(origCodeDelta, argMask, regMask, callArgCnt, byrefArgMask, byrefRegMask, base, (dest - base)); #endif } /* Verify that we pop every arg that was pushed and that argMask is 0 */ assert(pasStk.pasCurDepth() == 0); #endif // TARGET_X86 /* Terminate the table with 0xFF */ *dest = 0xFF; dest -= mask; totalSize++; } #if VERIFY_GC_TABLES if (mask) { *(short*)dest = (short)0xBEEB; dest += sizeof(short); } totalSize += sizeof(short); #endif #if MEASURE_PTRTAB_SIZE if (mask) s_gcTotalPtrTabSize += totalSize; #endif return totalSize; } #ifdef _PREFAST_ #pragma warning(pop) #endif /*****************************************************************************/ #if DUMP_GC_TABLES /***************************************************************************** * * Dump the contents of a GC pointer table. */ #include "gcdump.h" #if VERIFY_GC_TABLES const bool verifyGCTables = true; #else const bool verifyGCTables = false; #endif /***************************************************************************** * * Dump the info block header. */ size_t GCInfo::gcInfoBlockHdrDump(const BYTE* table, InfoHdr* header, unsigned* methodSize) { GCDump gcDump(GCINFO_VERSION); gcDump.gcPrintf = gcDump_logf; // use my printf (which logs to VM) printf("Method info block:\n"); return gcDump.DumpInfoHdr(table, header, methodSize, verifyGCTables); } /*****************************************************************************/ size_t GCInfo::gcDumpPtrTable(const BYTE* table, const InfoHdr& header, unsigned methodSize) { printf("Pointer table:\n"); GCDump gcDump(GCINFO_VERSION); gcDump.gcPrintf = gcDump_logf; // use my printf (which logs to VM) return gcDump.DumpGCTable(table, header, methodSize, verifyGCTables); } /***************************************************************************** * * Find all the live pointers in a stack frame. */ void GCInfo::gcFindPtrsInFrame(const void* infoBlock, const void* codeBlock, unsigned offs) { GCDump gcDump(GCINFO_VERSION); gcDump.gcPrintf = gcDump_logf; // use my printf (which logs to VM) gcDump.DumpPtrsInFrame((PTR_CBYTE)infoBlock, (const BYTE*)codeBlock, offs, verifyGCTables); } #endif // DUMP_GC_TABLES #else // !JIT32_GCENCODER #include "gcinfoencoder.h" // Do explicit instantiation. template class JitHashTable<RegSlotIdKey, RegSlotIdKey, GcSlotId>; template class JitHashTable<StackSlotIdKey, StackSlotIdKey, GcSlotId>; #if defined(DEBUG) || DUMP_GC_TABLES // This is a copy of GcStackSlotBaseNames from gcinfotypes.h so we can compile in to non-DEBUG builds. const char* const JitGcStackSlotBaseNames[] = {"caller.sp", "sp", "frame"}; static const char* const GcSlotFlagsNames[] = {"", "(byref) ", "(pinned) ", "(byref, pinned) ", "(untracked) ", "(byref, untracked) ", "(pinned, untracked) ", "(byref, pinned, untracked) "}; // I'm making a local wrapper class for GcInfoEncoder so that can add logging of my own (DLD). class GcInfoEncoderWithLogging { GcInfoEncoder* m_gcInfoEncoder; bool m_doLogging; public: GcInfoEncoderWithLogging(GcInfoEncoder* gcInfoEncoder, bool verbose) : m_gcInfoEncoder(gcInfoEncoder), m_doLogging(verbose INDEBUG(|| JitConfig.JitGCInfoLogging() != 0)) { } GcSlotId GetStackSlotId(INT32 spOffset, GcSlotFlags flags, GcStackSlotBase spBase = GC_CALLER_SP_REL) { GcSlotId newSlotId = m_gcInfoEncoder->GetStackSlotId(spOffset, flags, spBase); if (m_doLogging) { printf("Stack slot id for offset %d (%s0x%x) (%s) %s= %d.\n", spOffset, spOffset < 0 ? "-" : "", abs(spOffset), JitGcStackSlotBaseNames[spBase], GcSlotFlagsNames[flags & 7], newSlotId); } return newSlotId; } GcSlotId GetRegisterSlotId(UINT32 regNum, GcSlotFlags flags) { GcSlotId newSlotId = m_gcInfoEncoder->GetRegisterSlotId(regNum, flags); if (m_doLogging) { printf("Register slot id for reg %s %s= %d.\n", getRegName(regNum), GcSlotFlagsNames[flags & 7], newSlotId); } return newSlotId; } void SetSlotState(UINT32 instructionOffset, GcSlotId slotId, GcSlotState slotState) { m_gcInfoEncoder->SetSlotState(instructionOffset, slotId, slotState); if (m_doLogging) { printf("Set state of slot %d at instr offset 0x%x to %s.\n", slotId, instructionOffset, (slotState == GC_SLOT_LIVE ? "Live" : "Dead")); } } void DefineCallSites(UINT32* pCallSites, BYTE* pCallSiteSizes, UINT32 numCallSites) { m_gcInfoEncoder->DefineCallSites(pCallSites, pCallSiteSizes, numCallSites); if (m_doLogging) { printf("Defining %d call sites:\n", numCallSites); for (UINT32 k = 0; k < numCallSites; k++) { printf(" Offset 0x%x, size %d.\n", pCallSites[k], pCallSiteSizes[k]); } } } void DefineInterruptibleRange(UINT32 startInstructionOffset, UINT32 length) { m_gcInfoEncoder->DefineInterruptibleRange(startInstructionOffset, length); if (m_doLogging) { printf("Defining interruptible range: [0x%x, 0x%x).\n", startInstructionOffset, startInstructionOffset + length); } } void SetCodeLength(UINT32 length) { m_gcInfoEncoder->SetCodeLength(length); if (m_doLogging) { printf("Set code length to %d.\n", length); } } void SetReturnKind(ReturnKind returnKind) { m_gcInfoEncoder->SetReturnKind(returnKind); if (m_doLogging) { printf("Set ReturnKind to %s.\n", ReturnKindToString(returnKind)); } } void SetStackBaseRegister(UINT32 registerNumber) { m_gcInfoEncoder->SetStackBaseRegister(registerNumber); if (m_doLogging) { printf("Set stack base register to %s.\n", getRegName(registerNumber)); } } void SetPrologSize(UINT32 prologSize) { m_gcInfoEncoder->SetPrologSize(prologSize); if (m_doLogging) { printf("Set prolog size 0x%x.\n", prologSize); } } void SetGSCookieStackSlot(INT32 spOffsetGSCookie, UINT32 validRangeStart, UINT32 validRangeEnd) { m_gcInfoEncoder->SetGSCookieStackSlot(spOffsetGSCookie, validRangeStart, validRangeEnd); if (m_doLogging) { printf("Set GS Cookie stack slot to %d, valid from 0x%x to 0x%x.\n", spOffsetGSCookie, validRangeStart, validRangeEnd); } } void SetPSPSymStackSlot(INT32 spOffsetPSPSym) { m_gcInfoEncoder->SetPSPSymStackSlot(spOffsetPSPSym); if (m_doLogging) { printf("Set PSPSym stack slot to %d.\n", spOffsetPSPSym); } } void SetGenericsInstContextStackSlot(INT32 spOffsetGenericsContext, GENERIC_CONTEXTPARAM_TYPE type) { m_gcInfoEncoder->SetGenericsInstContextStackSlot(spOffsetGenericsContext, type); if (m_doLogging) { printf("Set generic instantiation context stack slot to %d, type is %s.\n", spOffsetGenericsContext, (type == GENERIC_CONTEXTPARAM_THIS ? "THIS" : (type == GENERIC_CONTEXTPARAM_MT ? "MT" : (type == GENERIC_CONTEXTPARAM_MD ? "MD" : "UNKNOWN!")))); } } void SetSecurityObjectStackSlot(INT32 spOffset) { m_gcInfoEncoder->SetSecurityObjectStackSlot(spOffset); if (m_doLogging) { printf("Set security object stack slot to %d.\n", spOffset); } } void SetIsVarArg() { m_gcInfoEncoder->SetIsVarArg(); if (m_doLogging) { printf("SetIsVarArg.\n"); } } #ifdef TARGET_AMD64 void SetWantsReportOnlyLeaf() { m_gcInfoEncoder->SetWantsReportOnlyLeaf(); if (m_doLogging) { printf("Set WantsReportOnlyLeaf.\n"); } } #elif defined(TARGET_ARMARCH) void SetHasTailCalls() { m_gcInfoEncoder->SetHasTailCalls(); if (m_doLogging) { printf("Set HasTailCalls.\n"); } } #endif // TARGET_AMD64 void SetSizeOfStackOutgoingAndScratchArea(UINT32 size) { m_gcInfoEncoder->SetSizeOfStackOutgoingAndScratchArea(size); if (m_doLogging) { printf("Set Outgoing stack arg area size to %d.\n", size); } } }; #define GCENCODER_WITH_LOGGING(withLog, realEncoder) \ GcInfoEncoderWithLogging withLog##Var(realEncoder, INDEBUG(compiler->verbose ||) compiler->opts.dspGCtbls); \ GcInfoEncoderWithLogging* withLog = &withLog##Var; #else // !(defined(DEBUG) || DUMP_GC_TABLES) #define GCENCODER_WITH_LOGGING(withLog, realEncoder) GcInfoEncoder* withLog = realEncoder; #endif // !(defined(DEBUG) || DUMP_GC_TABLES) void GCInfo::gcInfoBlockHdrSave(GcInfoEncoder* gcInfoEncoder, unsigned methodSize, unsigned prologSize) { #ifdef DEBUG if (compiler->verbose) { printf("*************** In gcInfoBlockHdrSave()\n"); } #endif GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); // Can't create tables if we've not saved code. gcInfoEncoderWithLog->SetCodeLength(methodSize); gcInfoEncoderWithLog->SetReturnKind(getReturnKind()); if (compiler->isFramePointerUsed()) { gcInfoEncoderWithLog->SetStackBaseRegister(REG_FPBASE); } if (compiler->info.compIsVarArgs) { gcInfoEncoderWithLog->SetIsVarArg(); } // No equivalents. // header->profCallbacks = compiler->info.compProfilerCallback; // header->editNcontinue = compiler->opts.compDbgEnC; // if (compiler->lvaReportParamTypeArg()) { // The predicate above is true only if there is an extra generic context parameter, not for // the case where the generic context is provided by "this." assert((SIZE_T)compiler->info.compTypeCtxtArg != BAD_VAR_NUM); GENERIC_CONTEXTPARAM_TYPE ctxtParamType = GENERIC_CONTEXTPARAM_NONE; switch (compiler->info.compMethodInfo->options & CORINFO_GENERICS_CTXT_MASK) { case CORINFO_GENERICS_CTXT_FROM_METHODDESC: ctxtParamType = GENERIC_CONTEXTPARAM_MD; break; case CORINFO_GENERICS_CTXT_FROM_METHODTABLE: ctxtParamType = GENERIC_CONTEXTPARAM_MT; break; case CORINFO_GENERICS_CTXT_FROM_THIS: // See comment above. default: // If we have a generic context parameter, then we should have // one of the two options flags handled above. assert(false); } const int offset = compiler->lvaToCallerSPRelativeOffset(compiler->lvaCachedGenericContextArgOffset(), compiler->isFramePointerUsed()); #ifdef DEBUG if (compiler->opts.IsOSR()) { // Sanity check the offset vs saved patchpoint info. // const PatchpointInfo* const ppInfo = compiler->info.compPatchpointInfo; #if defined(TARGET_AMD64) // PP info has FP relative offset, to get to caller SP we need to // subtract off 2 register slots (saved FP, saved RA). // const int osrOffset = ppInfo->GenericContextArgOffset() - 2 * REGSIZE_BYTES; assert(offset == osrOffset); #elif defined(TARGET_ARM64) // PP info has virtual offset. This is also the caller SP offset. // const int osrOffset = ppInfo->GenericContextArgOffset(); assert(offset == osrOffset); #endif } #endif gcInfoEncoderWithLog->SetGenericsInstContextStackSlot(offset, ctxtParamType); } // As discussed above, handle the case where the generics context is obtained via // the method table of "this". else if (compiler->lvaKeepAliveAndReportThis()) { assert(compiler->info.compThisArg != BAD_VAR_NUM); // OSR can report the root method's frame slot, if that method reported context. // If not, the OSR frame will have saved the needed context. // bool useRootFrameSlot = true; if (compiler->opts.IsOSR()) { const PatchpointInfo* const ppInfo = compiler->info.compPatchpointInfo; useRootFrameSlot = ppInfo->HasKeptAliveThis(); } const int offset = compiler->lvaToCallerSPRelativeOffset(compiler->lvaCachedGenericContextArgOffset(), compiler->isFramePointerUsed(), useRootFrameSlot); #ifdef DEBUG if (compiler->opts.IsOSR() && useRootFrameSlot) { // Sanity check the offset vs saved patchpoint info. // const PatchpointInfo* const ppInfo = compiler->info.compPatchpointInfo; #if defined(TARGET_AMD64) // PP info has FP relative offset, to get to caller SP we need to // subtract off 2 register slots (saved FP, saved RA). // const int osrOffset = ppInfo->KeptAliveThisOffset() - 2 * REGSIZE_BYTES; assert(offset == osrOffset); #elif defined(TARGET_ARM64) // PP info has virtual offset. This is also the caller SP offset. // const int osrOffset = ppInfo->KeptAliveThisOffset(); assert(offset == osrOffset); #endif } #endif gcInfoEncoderWithLog->SetGenericsInstContextStackSlot(offset, GENERIC_CONTEXTPARAM_THIS); } if (compiler->getNeedsGSSecurityCookie()) { assert(compiler->lvaGSSecurityCookie != BAD_VAR_NUM); // The lv offset is FP-relative, and the using code expects caller-sp relative, so translate. const int offset = compiler->lvaGetCallerSPRelativeOffset(compiler->lvaGSSecurityCookie); // The code offset ranges assume that the GS Cookie slot is initialized in the prolog, and is valid // through the remainder of the method. We will not query for the GS Cookie while we're in an epilog, // so the question of where in the epilog it becomes invalid is moot. gcInfoEncoderWithLog->SetGSCookieStackSlot(offset, prologSize, methodSize); } else if (compiler->lvaReportParamTypeArg() || compiler->lvaKeepAliveAndReportThis()) { gcInfoEncoderWithLog->SetPrologSize(prologSize); } #if defined(FEATURE_EH_FUNCLETS) if (compiler->lvaPSPSym != BAD_VAR_NUM) { #ifdef TARGET_AMD64 // The PSPSym is relative to InitialSP on X64 and CallerSP on other platforms. gcInfoEncoderWithLog->SetPSPSymStackSlot(compiler->lvaGetInitialSPRelativeOffset(compiler->lvaPSPSym)); #else // !TARGET_AMD64 gcInfoEncoderWithLog->SetPSPSymStackSlot(compiler->lvaGetCallerSPRelativeOffset(compiler->lvaPSPSym)); #endif // !TARGET_AMD64 } #ifdef TARGET_AMD64 if (compiler->ehAnyFunclets()) { // Set this to avoid double-reporting the parent frame (unlike JIT64) gcInfoEncoderWithLog->SetWantsReportOnlyLeaf(); } #endif // TARGET_AMD64 #endif // FEATURE_EH_FUNCLETS #ifdef TARGET_ARMARCH if (compiler->codeGen->GetHasTailCalls()) { gcInfoEncoderWithLog->SetHasTailCalls(); } #endif // TARGET_ARMARCH #if FEATURE_FIXED_OUT_ARGS // outgoing stack area size gcInfoEncoderWithLog->SetSizeOfStackOutgoingAndScratchArea(compiler->lvaOutgoingArgSpaceSize); #endif // FEATURE_FIXED_OUT_ARGS #if DISPLAY_SIZES if (compiler->codeGen->GetInterruptible()) { genMethodICnt++; } else { genMethodNCnt++; } #endif // DISPLAY_SIZES } #if defined(DEBUG) || DUMP_GC_TABLES #define Encoder GcInfoEncoderWithLogging #else #define Encoder GcInfoEncoder #endif // Small helper class to handle the No-GC-Interrupt callbacks // when reporting interruptible ranges. // // Encoder should be either GcInfoEncoder or GcInfoEncoderWithLogging // struct InterruptibleRangeReporter { unsigned prevStart; Encoder* gcInfoEncoderWithLog; InterruptibleRangeReporter(unsigned _prevStart, Encoder* _gcInfo) : prevStart(_prevStart), gcInfoEncoderWithLog(_gcInfo) { } // This callback is called for each insGroup marked with // IGF_NOGCINTERRUPT (currently just prologs and epilogs). // Report everything between the previous region and the current // region as interruptible. bool operator()(unsigned igFuncIdx, unsigned igOffs, unsigned igSize) { if (igOffs < prevStart) { // We're still in the main method prolog, which has already // had it's interruptible range reported. assert(igFuncIdx == 0); assert(igOffs + igSize <= prevStart); return true; } assert(igOffs >= prevStart); if (igOffs > prevStart) { gcInfoEncoderWithLog->DefineInterruptibleRange(prevStart, igOffs - prevStart); } prevStart = igOffs + igSize; return true; } }; void GCInfo::gcMakeRegPtrTable( GcInfoEncoder* gcInfoEncoder, unsigned codeSize, unsigned prologSize, MakeRegPtrMode mode, unsigned* callCntRef) { GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); const bool noTrackedGCSlots = (compiler->opts.MinOpts() && !compiler->opts.jitFlags->IsSet(JitFlags::JIT_FLAG_PREJIT) && !JitConfig.JitMinOptsTrackGCrefs()); if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { m_regSlotMap = new (compiler->getAllocator()) RegSlotMap(compiler->getAllocator()); m_stackSlotMap = new (compiler->getAllocator()) StackSlotMap(compiler->getAllocator()); } /************************************************************************** * * Untracked ptr variables * ************************************************************************** */ /* Count&Write untracked locals and non-enregistered args */ unsigned varNum; LclVarDsc* varDsc; for (varNum = 0, varDsc = compiler->lvaTable; varNum < compiler->lvaCount; varNum++, varDsc++) { if (compiler->lvaIsFieldOfDependentlyPromotedStruct(varDsc)) { // Field local of a PROMOTION_TYPE_DEPENDENT struct must have been // reported through its parent local. continue; } if (varTypeIsGC(varDsc->TypeGet())) { // Do we have an argument or local variable? if (!varDsc->lvIsParam) { // If is is pinned, it must be an untracked local. assert(!varDsc->lvPinned || !varDsc->lvTracked); if (varDsc->lvTracked || !varDsc->lvOnFrame) { continue; } } else { // Stack-passed arguments which are not enregistered // are always reported in this "untracked stack // pointers" section of the GC info even if lvTracked==true // Has this argument been fully enregistered? CLANG_FORMAT_COMMENT_ANCHOR; if (!varDsc->lvOnFrame) { // If a CEE_JMP has been used, then we need to report all the arguments // even if they are enregistered, since we will be using this value // in a JMP call. Note that this is subtle as we require that // argument offsets are always fixed up properly even if lvRegister // is set. if (!compiler->compJmpOpUsed) { continue; } } else { if (varDsc->lvIsRegArg && varDsc->lvTracked) { // If this register-passed arg is tracked, then // it has been allocated space near the other // pointer variables and we have accurate life- // time info. It will be reported with // gcVarPtrList in the "tracked-pointer" section. continue; } } } // If we haven't continued to the next variable, we should report this as an untracked local. CLANG_FORMAT_COMMENT_ANCHOR; GcSlotFlags flags = GC_SLOT_UNTRACKED; if (varDsc->TypeGet() == TYP_BYREF) { // Or in byref_OFFSET_FLAG for 'byref' pointer tracking flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } if (varDsc->lvPinned) { // Or in pinned_OFFSET_FLAG for 'pinned' pointer tracking flags = (GcSlotFlags)(flags | GC_SLOT_PINNED); } GcStackSlotBase stackSlotBase = GC_SP_REL; if (varDsc->lvFramePointerBased) { stackSlotBase = GC_FRAMEREG_REL; } if (noTrackedGCSlots) { // No need to hash/lookup untracked GC refs; just grab a new Slot Id. if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { gcInfoEncoderWithLog->GetStackSlotId(varDsc->GetStackOffset(), flags, stackSlotBase); } } else { StackSlotIdKey sskey(varDsc->GetStackOffset(), (stackSlotBase == GC_FRAMEREG_REL), flags); GcSlotId varSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(varDsc->GetStackOffset(), flags, stackSlotBase); m_stackSlotMap->Set(sskey, varSlotId); } } } } // If this is a TYP_STRUCT, handle its GC pointers. // Note that the enregisterable struct types cannot have GC pointers in them. if ((varDsc->TypeGet() == TYP_STRUCT) && varDsc->lvOnFrame && (varDsc->lvExactSize >= TARGET_POINTER_SIZE)) { ClassLayout* layout = varDsc->GetLayout(); unsigned slots = layout->GetSlotCount(); for (unsigned i = 0; i < slots; i++) { if (!layout->IsGCPtr(i)) { continue; } int offset = varDsc->GetStackOffset() + i * TARGET_POINTER_SIZE; #if DOUBLE_ALIGN // For genDoubleAlign(), locals are addressed relative to ESP and // arguments are addressed relative to EBP. if (compiler->genDoubleAlign() && varDsc->lvIsParam && !varDsc->lvIsRegArg) offset += compiler->codeGen->genTotalFrameSize(); #endif GcSlotFlags flags = GC_SLOT_UNTRACKED; if (layout->GetGCPtrType(i) == TYP_BYREF) { flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } GcStackSlotBase stackSlotBase = GC_SP_REL; if (varDsc->lvFramePointerBased) { stackSlotBase = GC_FRAMEREG_REL; } StackSlotIdKey sskey(offset, (stackSlotBase == GC_FRAMEREG_REL), flags); GcSlotId varSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(offset, flags, stackSlotBase); m_stackSlotMap->Set(sskey, varSlotId); } } } } } if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { // Count&Write spill temps that hold pointers. assert(compiler->codeGen->regSet.tmpAllFree()); for (TempDsc* tempItem = compiler->codeGen->regSet.tmpListBeg(); tempItem != nullptr; tempItem = compiler->codeGen->regSet.tmpListNxt(tempItem)) { if (varTypeIsGC(tempItem->tdTempType())) { int offset = tempItem->tdTempOffs(); GcSlotFlags flags = GC_SLOT_UNTRACKED; if (tempItem->tdTempType() == TYP_BYREF) { flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } GcStackSlotBase stackSlotBase = GC_SP_REL; if (compiler->isFramePointerUsed()) { stackSlotBase = GC_FRAMEREG_REL; } StackSlotIdKey sskey(offset, (stackSlotBase == GC_FRAMEREG_REL), flags); GcSlotId varSlotId; if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(offset, flags, stackSlotBase); m_stackSlotMap->Set(sskey, varSlotId); } } } if (compiler->lvaKeepAliveAndReportThis()) { // We need to report the cached copy as an untracked pointer assert(compiler->info.compThisArg != BAD_VAR_NUM); assert(!compiler->lvaReportParamTypeArg()); GcSlotFlags flags = GC_SLOT_UNTRACKED; if (compiler->lvaTable[compiler->info.compThisArg].TypeGet() == TYP_BYREF) { // Or in GC_SLOT_INTERIOR for 'byref' pointer tracking flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } GcStackSlotBase stackSlotBase = compiler->isFramePointerUsed() ? GC_FRAMEREG_REL : GC_SP_REL; gcInfoEncoderWithLog->GetStackSlotId(compiler->lvaCachedGenericContextArgOffset(), flags, stackSlotBase); } } // Generate the table of tracked stack pointer variable lifetimes. gcMakeVarPtrTable(gcInfoEncoder, mode); /************************************************************************** * * Prepare to generate the pointer register/argument map * ************************************************************************** */ if (compiler->codeGen->GetInterruptible()) { assert(compiler->IsFullPtrRegMapRequired()); regMaskSmall ptrRegs = 0; regPtrDsc* regStackArgFirst = nullptr; // Walk the list of pointer register/argument entries. for (regPtrDsc* genRegPtrTemp = gcRegPtrList; genRegPtrTemp != nullptr; genRegPtrTemp = genRegPtrTemp->rpdNext) { if (genRegPtrTemp->rpdArg) { if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_KILL) { // Kill all arguments for a call if ((mode == MAKE_REG_PTR_MODE_DO_WORK) && (regStackArgFirst != nullptr)) { // Record any outgoing arguments as becoming dead gcInfoRecordGCStackArgsDead(gcInfoEncoder, genRegPtrTemp->rpdOffs, regStackArgFirst, genRegPtrTemp); } regStackArgFirst = nullptr; } else if (genRegPtrTemp->rpdGCtypeGet() != GCT_NONE) { if (genRegPtrTemp->rpdArgTypeGet() == rpdARG_PUSH || (genRegPtrTemp->rpdPtrArg != 0)) { bool isPop = genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP; assert(!isPop); gcInfoRecordGCStackArgLive(gcInfoEncoder, mode, genRegPtrTemp); if (regStackArgFirst == nullptr) { regStackArgFirst = genRegPtrTemp; } } else { // We know it's a POP. Sometimes we'll record a POP for a call, just to make sure // the call site is recorded. // This is just the negation of the condition: assert(genRegPtrTemp->rpdArgTypeGet() == rpdARG_POP && genRegPtrTemp->rpdPtrArg == 0); // This asserts that we only get here when we're recording a call site. assert(genRegPtrTemp->rpdArg && genRegPtrTemp->rpdIsCallInstr()); // Kill all arguments for a call if ((mode == MAKE_REG_PTR_MODE_DO_WORK) && (regStackArgFirst != nullptr)) { // Record any outgoing arguments as becoming dead gcInfoRecordGCStackArgsDead(gcInfoEncoder, genRegPtrTemp->rpdOffs, regStackArgFirst, genRegPtrTemp); } regStackArgFirst = nullptr; } } } else { // Record any registers that are becoming dead. regMaskSmall regMask = genRegPtrTemp->rpdCompiler.rpdDel & ptrRegs; regMaskSmall byRefMask = 0; if (genRegPtrTemp->rpdGCtypeGet() == GCT_BYREF) { byRefMask = regMask; } gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, genRegPtrTemp->rpdOffs, regMask, GC_SLOT_DEAD, byRefMask, &ptrRegs); // Record any registers that are becoming live. regMask = genRegPtrTemp->rpdCompiler.rpdAdd & ~ptrRegs; byRefMask = 0; // As far as I (DLD, 2010) can tell, there's one GCtype for the entire genRegPtrTemp, so if // it says byref then all the registers in "regMask" contain byrefs. if (genRegPtrTemp->rpdGCtypeGet() == GCT_BYREF) { byRefMask = regMask; } gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, genRegPtrTemp->rpdOffs, regMask, GC_SLOT_LIVE, byRefMask, &ptrRegs); } } // Now we can declare the entire method body fully interruptible. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { assert(prologSize <= codeSize); // Now exempt any other region marked as IGF_NOGCINTERRUPT // Currently just prologs and epilogs. InterruptibleRangeReporter reporter(prologSize, gcInfoEncoderWithLog); compiler->GetEmitter()->emitGenNoGCLst(reporter); prologSize = reporter.prevStart; // Report any remainder if (prologSize < codeSize) { gcInfoEncoderWithLog->DefineInterruptibleRange(prologSize, codeSize - prologSize); } } } else if (compiler->isFramePointerUsed()) // GetInterruptible() is false, and we're using EBP as a frame pointer. { assert(compiler->IsFullPtrRegMapRequired() == false); // Walk the list of pointer register/argument entries. // First count them. unsigned numCallSites = 0; // Now we can allocate the information. unsigned* pCallSites = nullptr; BYTE* pCallSiteSizes = nullptr; unsigned callSiteNum = 0; if (mode == MAKE_REG_PTR_MODE_DO_WORK) { if (gcCallDescList != nullptr) { if (noTrackedGCSlots) { // We have the call count from the previous run. numCallSites = *callCntRef; // If there are no calls, tell the world and bail. if (numCallSites == 0) { gcInfoEncoderWithLog->DefineCallSites(nullptr, nullptr, 0); return; } } else { for (CallDsc* call = gcCallDescList; call != nullptr; call = call->cdNext) { numCallSites++; } } pCallSites = new (compiler, CMK_GC) unsigned[numCallSites]; pCallSiteSizes = new (compiler, CMK_GC) BYTE[numCallSites]; } } // Now consider every call. for (CallDsc* call = gcCallDescList; call != nullptr; call = call->cdNext) { // Figure out the code offset of this entry. unsigned nextOffset = call->cdOffs; // As far as I (DLD, 2010) can determine by asking around, the "call->u1.cdArgMask" // and "cdArgCnt" cases are to handle x86 situations in which a call expression is nested as an // argument to an outer call. The "natural" (evaluation-order-preserving) thing to do is to // evaluate the outer call's arguments, pushing those that are not enregistered, until you // encounter the nested call. These parts of the call description, then, describe the "pending" // pushed arguments. This situation does not exist outside of x86, where we're going to use a // fixed-size stack frame: in situations like this nested call, we would evaluate the pending // arguments to temporaries, and only "push" them (really, write them to the outgoing argument section // of the stack frame) when it's the outer call's "turn." So we can assert that these // situations never occur. assert(call->u1.cdArgMask == 0 && call->cdArgCnt == 0); // Other than that, we just have to deal with the regmasks. regMaskSmall gcrefRegMask = call->cdGCrefRegs & RBM_CALLEE_SAVED; regMaskSmall byrefRegMask = call->cdByrefRegs & RBM_CALLEE_SAVED; assert((gcrefRegMask & byrefRegMask) == 0); regMaskSmall regMask = gcrefRegMask | byrefRegMask; assert(call->cdOffs >= call->cdCallInstrSize); // call->cdOffs is actually the offset of the instruction *following* the call, so subtract // the call instruction size to get the offset of the actual call instruction... unsigned callOffset = nextOffset - call->cdCallInstrSize; if (noTrackedGCSlots && regMask == 0) { // No live GC refs in regs at the call -> don't record the call. } else { // Append an entry for the call if doing the real thing. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { pCallSites[callSiteNum] = callOffset; assert(call->cdCallInstrSize <= BYTE_MAX); pCallSiteSizes[callSiteNum] = (BYTE)call->cdCallInstrSize; } callSiteNum++; // Record that these registers are live before the call... gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, callOffset, regMask, GC_SLOT_LIVE, byrefRegMask, nullptr); // ...and dead after. gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, nextOffset, regMask, GC_SLOT_DEAD, byrefRegMask, nullptr); } } // Make sure we've recorded the expected number of calls assert(mode != MAKE_REG_PTR_MODE_DO_WORK || numCallSites == callSiteNum); // Return the actual recorded call count to the caller *callCntRef = callSiteNum; // OK, define the call sites. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { gcInfoEncoderWithLog->DefineCallSites(pCallSites, pCallSiteSizes, numCallSites); } } else // GetInterruptible() is false and we have an EBP-less frame { assert(compiler->IsFullPtrRegMapRequired()); // Walk the list of pointer register/argument entries */ // First count them. unsigned numCallSites = 0; // Now we can allocate the information (if we're in the "DO_WORK" pass...) unsigned* pCallSites = nullptr; BYTE* pCallSiteSizes = nullptr; unsigned callSiteNum = 0; if (mode == MAKE_REG_PTR_MODE_DO_WORK) { for (regPtrDsc* genRegPtrTemp = gcRegPtrList; genRegPtrTemp != nullptr; genRegPtrTemp = genRegPtrTemp->rpdNext) { if (genRegPtrTemp->rpdArg && genRegPtrTemp->rpdIsCallInstr()) { numCallSites++; } } if (numCallSites > 0) { pCallSites = new (compiler, CMK_GC) unsigned[numCallSites]; pCallSiteSizes = new (compiler, CMK_GC) BYTE[numCallSites]; } } for (regPtrDsc* genRegPtrTemp = gcRegPtrList; genRegPtrTemp != nullptr; genRegPtrTemp = genRegPtrTemp->rpdNext) { if (genRegPtrTemp->rpdArg) { // Is this a call site? if (genRegPtrTemp->rpdIsCallInstr()) { // This is a true call site. regMaskSmall gcrefRegMask = genRegMaskFromCalleeSavedMask(genRegPtrTemp->rpdCallGCrefRegs); regMaskSmall byrefRegMask = genRegMaskFromCalleeSavedMask(genRegPtrTemp->rpdCallByrefRegs); assert((gcrefRegMask & byrefRegMask) == 0); regMaskSmall regMask = gcrefRegMask | byrefRegMask; // The "rpdOffs" is (apparently) the offset of the following instruction already. // GcInfoEncoder wants the call instruction, so subtract the width of the call instruction. assert(genRegPtrTemp->rpdOffs >= genRegPtrTemp->rpdCallInstrSize); unsigned callOffset = genRegPtrTemp->rpdOffs - genRegPtrTemp->rpdCallInstrSize; // Tell the GCInfo encoder about these registers. We say that the registers become live // before the call instruction, and dead after. gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, callOffset, regMask, GC_SLOT_LIVE, byrefRegMask, nullptr); gcInfoRecordGCRegStateChange(gcInfoEncoder, mode, genRegPtrTemp->rpdOffs, regMask, GC_SLOT_DEAD, byrefRegMask, nullptr); // Also remember the call site. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { assert(pCallSites != nullptr && pCallSiteSizes != nullptr); pCallSites[callSiteNum] = callOffset; pCallSiteSizes[callSiteNum] = genRegPtrTemp->rpdCallInstrSize; callSiteNum++; } } else { // These are reporting outgoing stack arguments, but we don't need to report anything // for partially interruptible assert(genRegPtrTemp->rpdGCtypeGet() != GCT_NONE); assert(genRegPtrTemp->rpdArgTypeGet() == rpdARG_PUSH); } } } // The routine is fully interruptible. if (mode == MAKE_REG_PTR_MODE_DO_WORK) { gcInfoEncoderWithLog->DefineCallSites(pCallSites, pCallSiteSizes, numCallSites); } } } void GCInfo::gcInfoRecordGCRegStateChange(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode, unsigned instrOffset, regMaskSmall regMask, GcSlotState newState, regMaskSmall byRefMask, regMaskSmall* pPtrRegs) { // Precondition: byRefMask is a subset of regMask. assert((byRefMask & ~regMask) == 0); GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); while (regMask) { // Get hold of the next register bit. regMaskTP tmpMask = genFindLowestReg(regMask); assert(tmpMask); // Remember the new state of this register. if (pPtrRegs != nullptr) { if (newState == GC_SLOT_DEAD) { *pPtrRegs &= ~tmpMask; } else { *pPtrRegs |= tmpMask; } } // Figure out which register the next bit corresponds to. regNumber regNum = genRegNumFromMask(tmpMask); /* Reserve SP future use */ assert(regNum != REG_SPBASE); GcSlotFlags regFlags = GC_SLOT_BASE; if ((tmpMask & byRefMask) != 0) { regFlags = (GcSlotFlags)(regFlags | GC_SLOT_INTERIOR); } assert(regNum == (regNumberSmall)regNum); RegSlotIdKey rskey((unsigned short)regNum, regFlags); GcSlotId regSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_regSlotMap->Lookup(rskey, &regSlotId)) { regSlotId = gcInfoEncoderWithLog->GetRegisterSlotId(regNum, regFlags); m_regSlotMap->Set(rskey, regSlotId); } } else { bool b = m_regSlotMap->Lookup(rskey, &regSlotId); assert(b); // Should have been added in the first pass. gcInfoEncoderWithLog->SetSlotState(instrOffset, regSlotId, newState); } // Turn the bit we've just generated off and continue. regMask -= tmpMask; // EAX,ECX,EDX,EBX,---,EBP,ESI,EDI } } /************************************************************************** * * gcMakeVarPtrTable - Generate the table of tracked stack pointer * variable lifetimes. * * In the first pass we'll allocate slot Ids * In the second pass we actually generate the lifetimes. * ************************************************************************** */ void GCInfo::gcMakeVarPtrTable(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode) { GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); // Make sure any flags we hide in the offset are in the bits guaranteed // unused by alignment C_ASSERT((OFFSET_MASK + 1) <= sizeof(int)); #ifdef DEBUG if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { // Tracked variables can't be pinned, and the encoding takes // advantage of that by using the same bit for 'pinned' and 'this' // Since we don't track 'this', we should never see either flag here. // Check it now before we potentially add some pinned flags. for (varPtrDsc* varTmp = gcVarPtrList; varTmp != nullptr; varTmp = varTmp->vpdNext) { const unsigned flags = varTmp->vpdVarNum & OFFSET_MASK; assert((flags & pinned_OFFSET_FLAG) == 0); assert((flags & this_OFFSET_FLAG) == 0); } } #endif // DEBUG // Only need to do this once, and only if we have EH. if ((mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) && compiler->ehAnyFunclets()) { gcMarkFilterVarsPinned(); } for (varPtrDsc* varTmp = gcVarPtrList; varTmp != nullptr; varTmp = varTmp->vpdNext) { C_ASSERT((OFFSET_MASK + 1) <= sizeof(int)); // Get hold of the variable's stack offset. unsigned lowBits = varTmp->vpdVarNum & OFFSET_MASK; // For negative stack offsets we must reset the low bits int varOffs = static_cast<int>(varTmp->vpdVarNum & ~OFFSET_MASK); // Compute the actual lifetime offsets. unsigned begOffs = varTmp->vpdBegOfs; unsigned endOffs = varTmp->vpdEndOfs; // Special case: skip any 0-length lifetimes. if (endOffs == begOffs) { continue; } GcSlotFlags flags = GC_SLOT_BASE; if ((lowBits & byref_OFFSET_FLAG) != 0) { flags = (GcSlotFlags)(flags | GC_SLOT_INTERIOR); } if ((lowBits & pinned_OFFSET_FLAG) != 0) { flags = (GcSlotFlags)(flags | GC_SLOT_PINNED); } GcStackSlotBase stackSlotBase = GC_SP_REL; if (compiler->isFramePointerUsed()) { stackSlotBase = GC_FRAMEREG_REL; } StackSlotIdKey sskey(varOffs, (stackSlotBase == GC_FRAMEREG_REL), flags); GcSlotId varSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(varOffs, flags, stackSlotBase); m_stackSlotMap->Set(sskey, varSlotId); } } else { bool b = m_stackSlotMap->Lookup(sskey, &varSlotId); assert(b); // Should have been added in the first pass. // Live from the beginning to the end. gcInfoEncoderWithLog->SetSlotState(begOffs, varSlotId, GC_SLOT_LIVE); gcInfoEncoderWithLog->SetSlotState(endOffs, varSlotId, GC_SLOT_DEAD); } } } void GCInfo::gcInfoRecordGCStackArgLive(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode, regPtrDsc* genStackPtr) { // On non-x86 platforms, don't have pointer argument push/pop/kill declarations. // But we use the same mechanism to record writes into the outgoing argument space... assert(genStackPtr->rpdGCtypeGet() != GCT_NONE); assert(genStackPtr->rpdArg); assert(genStackPtr->rpdArgTypeGet() == rpdARG_PUSH); // We only need to report these when we're doing fuly-interruptible assert(compiler->codeGen->GetInterruptible()); GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); StackSlotIdKey sskey(genStackPtr->rpdPtrArg, false, GcSlotFlags(genStackPtr->rpdGCtypeGet() == GCT_BYREF ? GC_SLOT_INTERIOR : GC_SLOT_BASE)); GcSlotId varSlotId; if (mode == MAKE_REG_PTR_MODE_ASSIGN_SLOTS) { if (!m_stackSlotMap->Lookup(sskey, &varSlotId)) { varSlotId = gcInfoEncoderWithLog->GetStackSlotId(sskey.m_offset, (GcSlotFlags)sskey.m_flags, GC_SP_REL); m_stackSlotMap->Set(sskey, varSlotId); } } else { bool b = m_stackSlotMap->Lookup(sskey, &varSlotId); assert(b); // Should have been added in the first pass. // Live until the call. gcInfoEncoderWithLog->SetSlotState(genStackPtr->rpdOffs, varSlotId, GC_SLOT_LIVE); } } void GCInfo::gcInfoRecordGCStackArgsDead(GcInfoEncoder* gcInfoEncoder, unsigned instrOffset, regPtrDsc* genStackPtrFirst, regPtrDsc* genStackPtrLast) { // After a call all of the outgoing arguments are marked as dead. // The calling loop keeps track of the first argument pushed for this call // and passes it in as genStackPtrFirst. // genStackPtrLast is the call. // Re-walk that list and mark all outgoing arguments that we're marked as live // earlier, as going dead after the call. // We only need to report these when we're doing fuly-interruptible assert(compiler->codeGen->GetInterruptible()); GCENCODER_WITH_LOGGING(gcInfoEncoderWithLog, gcInfoEncoder); for (regPtrDsc* genRegPtrTemp = genStackPtrFirst; genRegPtrTemp != genStackPtrLast; genRegPtrTemp = genRegPtrTemp->rpdNext) { if (!genRegPtrTemp->rpdArg) { continue; } assert(genRegPtrTemp->rpdGCtypeGet() != GCT_NONE); assert(genRegPtrTemp->rpdArgTypeGet() == rpdARG_PUSH); StackSlotIdKey sskey(genRegPtrTemp->rpdPtrArg, false, genRegPtrTemp->rpdGCtypeGet() == GCT_BYREF ? GC_SLOT_INTERIOR : GC_SLOT_BASE); GcSlotId varSlotId; bool b = m_stackSlotMap->Lookup(sskey, &varSlotId); assert(b); // Should have been added in the first pass. // Live until the call. gcInfoEncoderWithLog->SetSlotState(instrOffset, varSlotId, GC_SLOT_DEAD); } } #undef GCENCODER_WITH_LOGGING #endif // !JIT32_GCENCODER /*****************************************************************************/ /*****************************************************************************/
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/jit/jitgcinfo.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Garbage-collector information // Keeps track of which variables hold pointers. // Generates the GC-tables #ifndef _JITGCINFO_H_ #define _JITGCINFO_H_ #include "gcinfotypes.h" #ifndef JIT32_GCENCODER #include "gcinfoencoder.h" #endif /*****************************************************************************/ #ifndef JIT32_GCENCODER // Shash typedefs struct RegSlotIdKey { unsigned short m_regNum; unsigned short m_flags; RegSlotIdKey() { } RegSlotIdKey(unsigned short regNum, unsigned short flags) : m_regNum(regNum), m_flags(flags) { } static unsigned GetHashCode(RegSlotIdKey rsk) { return (rsk.m_flags << (8 * sizeof(unsigned short))) + rsk.m_regNum; } static bool Equals(RegSlotIdKey rsk1, RegSlotIdKey rsk2) { return rsk1.m_regNum == rsk2.m_regNum && rsk1.m_flags == rsk2.m_flags; } }; struct StackSlotIdKey { int m_offset; bool m_fpRel; unsigned short m_flags; StackSlotIdKey() { } StackSlotIdKey(int offset, bool fpRel, unsigned short flags) : m_offset(offset), m_fpRel(fpRel), m_flags(flags) { } static unsigned GetHashCode(StackSlotIdKey ssk) { return (ssk.m_flags << (8 * sizeof(unsigned short))) ^ (unsigned)ssk.m_offset ^ (ssk.m_fpRel ? 0x1000000 : 0); } static bool Equals(StackSlotIdKey ssk1, StackSlotIdKey ssk2) { return ssk1.m_offset == ssk2.m_offset && ssk1.m_fpRel == ssk2.m_fpRel && ssk1.m_flags == ssk2.m_flags; } }; typedef JitHashTable<RegSlotIdKey, RegSlotIdKey, GcSlotId> RegSlotMap; typedef JitHashTable<StackSlotIdKey, StackSlotIdKey, GcSlotId> StackSlotMap; #endif typedef JitHashTable<GenTree*, JitPtrKeyFuncs<GenTree>, VARSET_TP*> NodeToVarsetPtrMap; class GCInfo { friend class CodeGen; private: Compiler* compiler; RegSet* regSet; public: GCInfo(Compiler* theCompiler); void gcResetForBB(); void gcMarkRegSetGCref(regMaskTP regMask DEBUGARG(bool forceOutput = false)); void gcMarkRegSetByref(regMaskTP regMask DEBUGARG(bool forceOutput = false)); void gcMarkRegSetNpt(regMaskTP regMask DEBUGARG(bool forceOutput = false)); void gcMarkRegPtrVal(regNumber reg, var_types type); #ifdef DEBUG void gcDspGCrefSetChanges(regMaskTP gcRegGCrefSetNew DEBUGARG(bool forceOutput = false)); void gcDspByrefSetChanges(regMaskTP gcRegByrefSetNew DEBUGARG(bool forceOutput = false)); #endif // DEBUG /*****************************************************************************/ //------------------------------------------------------------------------- // // The following keeps track of which registers currently hold pointer // values. // regMaskTP gcRegGCrefSetCur; // current regs holding GCrefs regMaskTP gcRegByrefSetCur; // current regs holding Byrefs VARSET_TP gcTrkStkPtrLcls; // set of tracked stack ptr lcls (GCref and Byref) - no args VARSET_TP gcVarPtrSetCur; // currently live part of "gcTrkStkPtrLcls" //------------------------------------------------------------------------- // // The following keeps track of the lifetimes of non-register variables that // hold pointers. // struct varPtrDsc { varPtrDsc* vpdNext; unsigned vpdVarNum; // which variable is this about? unsigned vpdBegOfs; // the offset where life starts unsigned vpdEndOfs; // the offset where life starts }; varPtrDsc* gcVarPtrList; varPtrDsc* gcVarPtrLast; void gcVarPtrSetInit(); /*****************************************************************************/ // 'pointer value' register tracking and argument pushes/pops tracking. enum rpdArgType_t { rpdARG_POP, rpdARG_PUSH, rpdARG_KILL }; struct regPtrDsc { regPtrDsc* rpdNext; // next entry in the list unsigned rpdOffs; // the offset of the instruction union // 2-16 byte union (depending on architecture) { struct // 2-16 byte structure (depending on architecture) { regMaskSmall rpdAdd; // regptr bitset being added regMaskSmall rpdDel; // regptr bitset being removed } rpdCompiler; unsigned short rpdPtrArg; // arg offset or popped arg count }; #ifndef JIT32_GCENCODER unsigned char rpdCallInstrSize; // Length of the call instruction. #endif unsigned short rpdArg : 1; // is this an argument descriptor? unsigned short rpdArgType : 2; // is this an argument push,pop, or kill? rpdArgType_t rpdArgTypeGet() { return (rpdArgType_t)rpdArgType; } unsigned short rpdGCtype : 2; // is this a pointer, after all? GCtype rpdGCtypeGet() { return (GCtype)rpdGCtype; } unsigned short rpdIsThis : 1; // is it the 'this' pointer unsigned short rpdCall : 1; // is this a true call site? unsigned short : 1; // Padding bit, so next two start on a byte boundary unsigned short rpdCallGCrefRegs : CNT_CALLEE_SAVED; // Callee-saved registers containing GC pointers. unsigned short rpdCallByrefRegs : CNT_CALLEE_SAVED; // Callee-saved registers containing byrefs. #ifndef JIT32_GCENCODER bool rpdIsCallInstr() { return rpdCall && rpdCallInstrSize != 0; } #endif }; regPtrDsc* gcRegPtrList; regPtrDsc* gcRegPtrLast; unsigned gcPtrArgCnt; #ifndef JIT32_GCENCODER enum MakeRegPtrMode { MAKE_REG_PTR_MODE_ASSIGN_SLOTS, MAKE_REG_PTR_MODE_DO_WORK }; // This method has two modes. In the "assign slots" mode, it figures out what stack locations are // used to contain GC references, and whether those locations contain byrefs or pinning references, // building up mappings from tuples of <offset X byref/pinning> to the corresponding slot id. // In the "do work" mode, we use these slot ids to actually declare live ranges to the encoder. void gcMakeVarPtrTable(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode); // At instruction offset "instrOffset," the set of registers indicated by "regMask" is becoming live or dead, // depending on whether "newState" is "GC_SLOT_DEAD" or "GC_SLOT_LIVE". The subset of registers whose corresponding // bits are set in "byRefMask" contain by-refs rather than regular GC pointers. "*pPtrRegs" is the set of // registers currently known to contain pointers. If "mode" is "ASSIGN_SLOTS", computes and records slot // ids for the registers. If "mode" is "DO_WORK", informs "gcInfoEncoder" about the state transition, // using the previously assigned slot ids, and updates "*pPtrRegs" appropriately. void gcInfoRecordGCRegStateChange(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode, unsigned instrOffset, regMaskSmall regMask, GcSlotState newState, regMaskSmall byRefMask, regMaskSmall* pPtrRegs); // regPtrDsc is also used to encode writes to the outgoing argument space (as if they were pushes) void gcInfoRecordGCStackArgLive(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode, regPtrDsc* genStackPtr); // Walk all the pushes between genStackPtrFirst (inclusive) and genStackPtrLast (exclusive) // and mark them as going dead at instrOffset void gcInfoRecordGCStackArgsDead(GcInfoEncoder* gcInfoEncoder, unsigned instrOffset, regPtrDsc* genStackPtrFirst, regPtrDsc* genStackPtrLast); #endif #if MEASURE_PTRTAB_SIZE static size_t s_gcRegPtrDscSize; static size_t s_gcTotalPtrTabSize; #endif regPtrDsc* gcRegPtrAllocDsc(); /*****************************************************************************/ //------------------------------------------------------------------------- // // If we're not generating fully interruptible code, we create a simple // linked list of call descriptors. // struct CallDsc { CallDsc* cdNext; void* cdBlock; // the code block of the call unsigned cdOffs; // the offset of the call #ifndef JIT32_GCENCODER unsigned short cdCallInstrSize; // the size of the call instruction. #endif unsigned short cdArgCnt; union { struct // used if cdArgCnt == 0 { unsigned cdArgMask; // ptr arg bitfield unsigned cdByrefArgMask; // byref qualifier for cdArgMask } u1; unsigned* cdArgTable; // used if cdArgCnt != 0 }; regMaskSmall cdGCrefRegs; regMaskSmall cdByrefRegs; }; CallDsc* gcCallDescList; CallDsc* gcCallDescLast; //------------------------------------------------------------------------- #ifdef JIT32_GCENCODER void gcCountForHeader(UNALIGNED unsigned int* pUntrackedCount, UNALIGNED unsigned int* pVarPtrTableSize); bool gcIsUntrackedLocalOrNonEnregisteredArg(unsigned varNum, bool* pThisKeptAliveIsInUntracked = nullptr); size_t gcMakeRegPtrTable(BYTE* dest, int mask, const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset); #else RegSlotMap* m_regSlotMap; StackSlotMap* m_stackSlotMap; // This method has two modes. In the "assign slots" mode, it figures out what registers and stack // locations are used to contain GC references, and whether those locations contain byrefs or pinning // references, building up mappings from tuples of <reg/offset X byref/pinning> to the corresponding // slot id (in the two member fields declared above). In the "do work" mode, we use these slot ids to // actually declare live ranges to the encoder. void gcMakeRegPtrTable(GcInfoEncoder* gcInfoEncoder, unsigned codeSize, unsigned prologSize, MakeRegPtrMode mode, unsigned* callCntRef); #endif #ifdef JIT32_GCENCODER size_t gcPtrTableSize(const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset); BYTE* gcPtrTableSave(BYTE* destPtr, const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset); #endif void gcRegPtrSetInit(); /*****************************************************************************/ // This enumeration yields the result of the analysis below, whether a store // requires a write barrier: enum WriteBarrierForm { WBF_NoBarrier, // No barrier is required WBF_BarrierUnknown, // A barrier is required, no information on checked/unchecked. WBF_BarrierChecked, // A checked barrier is required. WBF_BarrierUnchecked, // An unchecked barrier is required. WBF_NoBarrier_CheckNotHeapInDebug, // We believe that no barrier is required because the // target is not in the heap -- but in debug build use a // barrier call that verifies this property. (Because the // target not being in the heap relies on a convention that // might accidentally be violated in the future.) }; WriteBarrierForm gcIsWriteBarrierCandidate(GenTree* tgt, GenTree* assignVal); bool gcIsWriteBarrierStoreIndNode(GenTree* op); // Returns a WriteBarrierForm decision based on the form of "tgtAddr", which is assumed to be the // argument of a GT_IND LHS. WriteBarrierForm gcWriteBarrierFormFromTargetAddress(GenTree* tgtAddr); //------------------------------------------------------------------------- // // These record the info about the procedure in the info-block // CLANG_FORMAT_COMMENT_ANCHOR; #ifdef JIT32_GCENCODER private: BYTE* gcEpilogTable; unsigned gcEpilogPrevOffset; size_t gcInfoBlockHdrSave(BYTE* dest, int mask, unsigned methodSize, unsigned prologSize, unsigned epilogSize, InfoHdr* header, int* s_cached); public: static void gcInitEncoderLookupTable(); private: static size_t gcRecordEpilog(void* pCallBackData, unsigned offset); #else // JIT32_GCENCODER void gcInfoBlockHdrSave(GcInfoEncoder* gcInfoEncoder, unsigned methodSize, unsigned prologSize); #endif // JIT32_GCENCODER #if !defined(JIT32_GCENCODER) || defined(FEATURE_EH_FUNCLETS) // This method expands the tracked stack variables lifetimes so that any lifetimes within filters // are reported as pinned. void gcMarkFilterVarsPinned(); // Insert a varPtrDsc to gcVarPtrList that was generated by splitting lifetimes void gcInsertVarPtrDscSplit(varPtrDsc* desc, varPtrDsc* begin); #ifdef DEBUG void gcDumpVarPtrDsc(varPtrDsc* desc); #endif // DEBUG #endif // !defined(JIT32_GCENCODER) || defined(FEATURE_EH_FUNCLETS) #if DUMP_GC_TABLES void gcFindPtrsInFrame(const void* infoBlock, const void* codeBlock, unsigned offs); #ifdef JIT32_GCENCODER size_t gcInfoBlockHdrDump(const BYTE* table, InfoHdr* header, /* OUT */ unsigned* methodSize); /* OUT */ size_t gcDumpPtrTable(const BYTE* table, const InfoHdr& header, unsigned methodSize); #endif // JIT32_GCENCODER #endif // DUMP_GC_TABLES public: // This method updates the appropriate reg masks when a variable is moved. void gcUpdateForRegVarMove(regMaskTP srcMask, regMaskTP dstMask, LclVarDsc* varDsc); private: ReturnKind getReturnKind(); }; inline unsigned char encodeUnsigned(BYTE* dest, unsigned value) { unsigned char size = 1; unsigned tmp = value; while (tmp > 0x7F) { tmp >>= 7; assert(size < 6); // Invariant. size++; } if (dest) { // write the bytes starting at the end of dest in LSB to MSB order BYTE* p = dest + size; BYTE cont = 0; // The last byte has no continuation flag while (value > 0x7F) { *--p = cont | (value & 0x7f); value >>= 7; cont = 0x80; // Non last bytes have a continuation flag } *--p = cont | (BYTE)value; // Now write the first byte assert(p == dest); } return size; } inline unsigned char encodeUDelta(BYTE* dest, unsigned value, unsigned lastValue) { assert(value >= lastValue); return encodeUnsigned(dest, value - lastValue); } inline unsigned char encodeSigned(BYTE* dest, int val) { unsigned char size = 1; unsigned value = val; BYTE neg = 0; if (val < 0) { value = -val; neg = 0x40; } unsigned tmp = value; while (tmp > 0x3F) { tmp >>= 7; assert(size < 16); // Definitely sufficient for unsigned. Fits in an unsigned char, certainly. size++; } if (dest) { // write the bytes starting at the end of dest in LSB to MSB order BYTE* p = dest + size; BYTE cont = 0; // The last byte has no continuation flag while (value > 0x3F) { *--p = cont | (value & 0x7f); value >>= 7; cont = 0x80; // Non last bytes have a continuation flag } *--p = neg | cont | (BYTE)value; // Now write the first byte assert(p == dest); } return size; } #endif // _JITGCINFO_H_
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Garbage-collector information // Keeps track of which variables hold pointers. // Generates the GC-tables #ifndef _JITGCINFO_H_ #define _JITGCINFO_H_ #include "gcinfotypes.h" #ifndef JIT32_GCENCODER #include "gcinfoencoder.h" #endif /*****************************************************************************/ #ifndef JIT32_GCENCODER // Shash typedefs struct RegSlotIdKey { unsigned short m_regNum; unsigned short m_flags; RegSlotIdKey() { } RegSlotIdKey(unsigned short regNum, unsigned flags) : m_regNum(regNum), m_flags((unsigned short)flags) { assert(m_flags == flags); } static unsigned GetHashCode(RegSlotIdKey rsk) { return (rsk.m_flags << (8 * sizeof(unsigned short))) + rsk.m_regNum; } static bool Equals(RegSlotIdKey rsk1, RegSlotIdKey rsk2) { return rsk1.m_regNum == rsk2.m_regNum && rsk1.m_flags == rsk2.m_flags; } }; struct StackSlotIdKey { int m_offset; bool m_fpRel; unsigned short m_flags; StackSlotIdKey() { } StackSlotIdKey(int offset, bool fpRel, unsigned flags) : m_offset(offset), m_fpRel(fpRel), m_flags((unsigned short)flags) { assert(flags == m_flags); } static unsigned GetHashCode(StackSlotIdKey ssk) { return (ssk.m_flags << (8 * sizeof(unsigned short))) ^ (unsigned)ssk.m_offset ^ (ssk.m_fpRel ? 0x1000000 : 0); } static bool Equals(StackSlotIdKey ssk1, StackSlotIdKey ssk2) { return ssk1.m_offset == ssk2.m_offset && ssk1.m_fpRel == ssk2.m_fpRel && ssk1.m_flags == ssk2.m_flags; } }; typedef JitHashTable<RegSlotIdKey, RegSlotIdKey, GcSlotId> RegSlotMap; typedef JitHashTable<StackSlotIdKey, StackSlotIdKey, GcSlotId> StackSlotMap; #endif typedef JitHashTable<GenTree*, JitPtrKeyFuncs<GenTree>, VARSET_TP*> NodeToVarsetPtrMap; class GCInfo { friend class CodeGen; private: Compiler* compiler; RegSet* regSet; public: GCInfo(Compiler* theCompiler); void gcResetForBB(); void gcMarkRegSetGCref(regMaskTP regMask DEBUGARG(bool forceOutput = false)); void gcMarkRegSetByref(regMaskTP regMask DEBUGARG(bool forceOutput = false)); void gcMarkRegSetNpt(regMaskTP regMask DEBUGARG(bool forceOutput = false)); void gcMarkRegPtrVal(regNumber reg, var_types type); #ifdef DEBUG void gcDspGCrefSetChanges(regMaskTP gcRegGCrefSetNew DEBUGARG(bool forceOutput = false)); void gcDspByrefSetChanges(regMaskTP gcRegByrefSetNew DEBUGARG(bool forceOutput = false)); #endif // DEBUG /*****************************************************************************/ //------------------------------------------------------------------------- // // The following keeps track of which registers currently hold pointer // values. // regMaskTP gcRegGCrefSetCur; // current regs holding GCrefs regMaskTP gcRegByrefSetCur; // current regs holding Byrefs VARSET_TP gcTrkStkPtrLcls; // set of tracked stack ptr lcls (GCref and Byref) - no args VARSET_TP gcVarPtrSetCur; // currently live part of "gcTrkStkPtrLcls" //------------------------------------------------------------------------- // // The following keeps track of the lifetimes of non-register variables that // hold pointers. // struct varPtrDsc { varPtrDsc* vpdNext; unsigned vpdVarNum; // which variable is this about? unsigned vpdBegOfs; // the offset where life starts unsigned vpdEndOfs; // the offset where life starts }; varPtrDsc* gcVarPtrList; varPtrDsc* gcVarPtrLast; void gcVarPtrSetInit(); /*****************************************************************************/ // 'pointer value' register tracking and argument pushes/pops tracking. enum rpdArgType_t { rpdARG_POP, rpdARG_PUSH, rpdARG_KILL }; struct regPtrDsc { regPtrDsc* rpdNext; // next entry in the list unsigned rpdOffs; // the offset of the instruction union // 2-16 byte union (depending on architecture) { struct // 2-16 byte structure (depending on architecture) { regMaskSmall rpdAdd; // regptr bitset being added regMaskSmall rpdDel; // regptr bitset being removed } rpdCompiler; unsigned short rpdPtrArg; // arg offset or popped arg count }; #ifndef JIT32_GCENCODER unsigned char rpdCallInstrSize; // Length of the call instruction. #endif unsigned short rpdArg : 1; // is this an argument descriptor? unsigned short rpdArgType : 2; // is this an argument push,pop, or kill? rpdArgType_t rpdArgTypeGet() { return (rpdArgType_t)rpdArgType; } unsigned short rpdGCtype : 2; // is this a pointer, after all? GCtype rpdGCtypeGet() { return (GCtype)rpdGCtype; } unsigned short rpdIsThis : 1; // is it the 'this' pointer unsigned short rpdCall : 1; // is this a true call site? unsigned short : 1; // Padding bit, so next two start on a byte boundary unsigned short rpdCallGCrefRegs : CNT_CALLEE_SAVED; // Callee-saved registers containing GC pointers. unsigned short rpdCallByrefRegs : CNT_CALLEE_SAVED; // Callee-saved registers containing byrefs. #ifndef JIT32_GCENCODER bool rpdIsCallInstr() { return rpdCall && rpdCallInstrSize != 0; } #endif }; regPtrDsc* gcRegPtrList; regPtrDsc* gcRegPtrLast; unsigned gcPtrArgCnt; #ifndef JIT32_GCENCODER enum MakeRegPtrMode { MAKE_REG_PTR_MODE_ASSIGN_SLOTS, MAKE_REG_PTR_MODE_DO_WORK }; // This method has two modes. In the "assign slots" mode, it figures out what stack locations are // used to contain GC references, and whether those locations contain byrefs or pinning references, // building up mappings from tuples of <offset X byref/pinning> to the corresponding slot id. // In the "do work" mode, we use these slot ids to actually declare live ranges to the encoder. void gcMakeVarPtrTable(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode); // At instruction offset "instrOffset," the set of registers indicated by "regMask" is becoming live or dead, // depending on whether "newState" is "GC_SLOT_DEAD" or "GC_SLOT_LIVE". The subset of registers whose corresponding // bits are set in "byRefMask" contain by-refs rather than regular GC pointers. "*pPtrRegs" is the set of // registers currently known to contain pointers. If "mode" is "ASSIGN_SLOTS", computes and records slot // ids for the registers. If "mode" is "DO_WORK", informs "gcInfoEncoder" about the state transition, // using the previously assigned slot ids, and updates "*pPtrRegs" appropriately. void gcInfoRecordGCRegStateChange(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode, unsigned instrOffset, regMaskSmall regMask, GcSlotState newState, regMaskSmall byRefMask, regMaskSmall* pPtrRegs); // regPtrDsc is also used to encode writes to the outgoing argument space (as if they were pushes) void gcInfoRecordGCStackArgLive(GcInfoEncoder* gcInfoEncoder, MakeRegPtrMode mode, regPtrDsc* genStackPtr); // Walk all the pushes between genStackPtrFirst (inclusive) and genStackPtrLast (exclusive) // and mark them as going dead at instrOffset void gcInfoRecordGCStackArgsDead(GcInfoEncoder* gcInfoEncoder, unsigned instrOffset, regPtrDsc* genStackPtrFirst, regPtrDsc* genStackPtrLast); #endif #if MEASURE_PTRTAB_SIZE static size_t s_gcRegPtrDscSize; static size_t s_gcTotalPtrTabSize; #endif regPtrDsc* gcRegPtrAllocDsc(); /*****************************************************************************/ //------------------------------------------------------------------------- // // If we're not generating fully interruptible code, we create a simple // linked list of call descriptors. // struct CallDsc { CallDsc* cdNext; void* cdBlock; // the code block of the call unsigned cdOffs; // the offset of the call #ifndef JIT32_GCENCODER unsigned short cdCallInstrSize; // the size of the call instruction. #endif unsigned short cdArgCnt; union { struct // used if cdArgCnt == 0 { unsigned cdArgMask; // ptr arg bitfield unsigned cdByrefArgMask; // byref qualifier for cdArgMask } u1; unsigned* cdArgTable; // used if cdArgCnt != 0 }; regMaskSmall cdGCrefRegs; regMaskSmall cdByrefRegs; }; CallDsc* gcCallDescList; CallDsc* gcCallDescLast; //------------------------------------------------------------------------- #ifdef JIT32_GCENCODER void gcCountForHeader(UNALIGNED unsigned int* pUntrackedCount, UNALIGNED unsigned int* pVarPtrTableSize); bool gcIsUntrackedLocalOrNonEnregisteredArg(unsigned varNum, bool* pThisKeptAliveIsInUntracked = nullptr); size_t gcMakeRegPtrTable(BYTE* dest, int mask, const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset); #else RegSlotMap* m_regSlotMap; StackSlotMap* m_stackSlotMap; // This method has two modes. In the "assign slots" mode, it figures out what registers and stack // locations are used to contain GC references, and whether those locations contain byrefs or pinning // references, building up mappings from tuples of <reg/offset X byref/pinning> to the corresponding // slot id (in the two member fields declared above). In the "do work" mode, we use these slot ids to // actually declare live ranges to the encoder. void gcMakeRegPtrTable(GcInfoEncoder* gcInfoEncoder, unsigned codeSize, unsigned prologSize, MakeRegPtrMode mode, unsigned* callCntRef); #endif #ifdef JIT32_GCENCODER size_t gcPtrTableSize(const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset); BYTE* gcPtrTableSave(BYTE* destPtr, const InfoHdr& header, unsigned codeSize, size_t* pArgTabOffset); #endif void gcRegPtrSetInit(); /*****************************************************************************/ // This enumeration yields the result of the analysis below, whether a store // requires a write barrier: enum WriteBarrierForm { WBF_NoBarrier, // No barrier is required WBF_BarrierUnknown, // A barrier is required, no information on checked/unchecked. WBF_BarrierChecked, // A checked barrier is required. WBF_BarrierUnchecked, // An unchecked barrier is required. WBF_NoBarrier_CheckNotHeapInDebug, // We believe that no barrier is required because the // target is not in the heap -- but in debug build use a // barrier call that verifies this property. (Because the // target not being in the heap relies on a convention that // might accidentally be violated in the future.) }; WriteBarrierForm gcIsWriteBarrierCandidate(GenTree* tgt, GenTree* assignVal); bool gcIsWriteBarrierStoreIndNode(GenTree* op); // Returns a WriteBarrierForm decision based on the form of "tgtAddr", which is assumed to be the // argument of a GT_IND LHS. WriteBarrierForm gcWriteBarrierFormFromTargetAddress(GenTree* tgtAddr); //------------------------------------------------------------------------- // // These record the info about the procedure in the info-block // CLANG_FORMAT_COMMENT_ANCHOR; #ifdef JIT32_GCENCODER private: BYTE* gcEpilogTable; unsigned gcEpilogPrevOffset; size_t gcInfoBlockHdrSave(BYTE* dest, int mask, unsigned methodSize, unsigned prologSize, unsigned epilogSize, InfoHdr* header, int* s_cached); public: static void gcInitEncoderLookupTable(); private: static size_t gcRecordEpilog(void* pCallBackData, unsigned offset); #else // JIT32_GCENCODER void gcInfoBlockHdrSave(GcInfoEncoder* gcInfoEncoder, unsigned methodSize, unsigned prologSize); #endif // JIT32_GCENCODER #if !defined(JIT32_GCENCODER) || defined(FEATURE_EH_FUNCLETS) // This method expands the tracked stack variables lifetimes so that any lifetimes within filters // are reported as pinned. void gcMarkFilterVarsPinned(); // Insert a varPtrDsc to gcVarPtrList that was generated by splitting lifetimes void gcInsertVarPtrDscSplit(varPtrDsc* desc, varPtrDsc* begin); #ifdef DEBUG void gcDumpVarPtrDsc(varPtrDsc* desc); #endif // DEBUG #endif // !defined(JIT32_GCENCODER) || defined(FEATURE_EH_FUNCLETS) #if DUMP_GC_TABLES void gcFindPtrsInFrame(const void* infoBlock, const void* codeBlock, unsigned offs); #ifdef JIT32_GCENCODER size_t gcInfoBlockHdrDump(const BYTE* table, InfoHdr* header, /* OUT */ unsigned* methodSize); /* OUT */ size_t gcDumpPtrTable(const BYTE* table, const InfoHdr& header, unsigned methodSize); #endif // JIT32_GCENCODER #endif // DUMP_GC_TABLES public: // This method updates the appropriate reg masks when a variable is moved. void gcUpdateForRegVarMove(regMaskTP srcMask, regMaskTP dstMask, LclVarDsc* varDsc); private: ReturnKind getReturnKind(); }; inline unsigned char encodeUnsigned(BYTE* dest, unsigned value) { unsigned char size = 1; unsigned tmp = value; while (tmp > 0x7F) { tmp >>= 7; assert(size < 6); // Invariant. size++; } if (dest) { // write the bytes starting at the end of dest in LSB to MSB order BYTE* p = dest + size; BYTE cont = 0; // The last byte has no continuation flag while (value > 0x7F) { *--p = cont | (value & 0x7f); value >>= 7; cont = 0x80; // Non last bytes have a continuation flag } *--p = cont | (BYTE)value; // Now write the first byte assert(p == dest); } return size; } inline unsigned char encodeUDelta(BYTE* dest, unsigned value, unsigned lastValue) { assert(value >= lastValue); return encodeUnsigned(dest, value - lastValue); } inline unsigned char encodeSigned(BYTE* dest, int val) { unsigned char size = 1; unsigned value = val; BYTE neg = 0; if (val < 0) { value = -val; neg = 0x40; } unsigned tmp = value; while (tmp > 0x3F) { tmp >>= 7; assert(size < 16); // Definitely sufficient for unsigned. Fits in an unsigned char, certainly. size++; } if (dest) { // write the bytes starting at the end of dest in LSB to MSB order BYTE* p = dest + size; BYTE cont = 0; // The last byte has no continuation flag while (value > 0x3F) { *--p = cont | (value & 0x7f); value >>= 7; cont = 0x80; // Non last bytes have a continuation flag } *--p = neg | cont | (BYTE)value; // Now write the first byte assert(p == dest); } return size; } #endif // _JITGCINFO_H_
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/inc/rt/intsafe.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************** * * * intsafe.h -- This module defines helper functions to prevent * * integer overflow issues. * * * * * ******************************************************************/ #ifndef _INTSAFE_H_INCLUDED_ #define _INTSAFE_H_INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif #include <specstrings.h> // for IN, etc. #define INTSAFE_E_ARITHMETIC_OVERFLOW ((HRESULT)0x80070216L) // 0x216 = 534 = ERROR_ARITHMETIC_OVERFLOW #ifndef LOWORD #define LOWORD(l) ((WORD)(((DWORD_PTR)(l)) & 0xffff)) #endif #ifndef HIWORD #define HIWORD(l) ((WORD)(((DWORD_PTR)(l)) >> 16)) #endif #define HIDWORD(_qw) ((ULONG)((_qw) >> 32)) #define LODWORD(_qw) ((ULONG)(_qw)) #if defined(MIDL_PASS) || defined(RC_INVOKED) || defined(_M_CEE_PURE) \ || defined(_M_AMD64) || defined(__ARM_ARCH) || defined(_M_S390X) || defined(_M_LOONGARCH64) #ifndef UInt32x32To64 #define UInt32x32To64(a, b) ((unsigned __int64)((ULONG)(a)) * (unsigned __int64)((ULONG)(b))) #endif #elif defined(_M_IX86) #ifndef UInt32x32To64 #define UInt32x32To64(a, b) (unsigned __int64)((unsigned __int64)(ULONG)(a) * (ULONG)(b)) #endif #else #error Must define a target architecture. #endif #define DWORD_MAX 0xffffffffUL // // It is common for -1 to be used as an error value for various types // #define USHORT_ERROR (0xffff) #define INT_ERROR (-1) #define LONG_ERROR (-1L) #define UINT_ERROR (0xffffffff) #define ULONG_ERROR (0xffffffffUL) #ifdef _MSC_VER #define ULONGLONG_ERROR (0xffffffffffffffffui64) #define HIDWORD_MASK (0xffffffff00000000ui64) #else // _MSC_VER #define ULONGLONG_ERROR (0xffffffffffffffffULL) #define HIDWORD_MASK (0xffffffff00000000ULL) #endif // _MSC_VER #ifdef HOST_64BIT #define SIZET_ERROR ULONGLONG_ERROR #else #define SIZET_ERROR ULONG_ERROR #endif // // We make some assumptions about the sizes of various types. Let's be // explicit about those assumptions and check them. // C_ASSERT(sizeof(unsigned short) == 2); C_ASSERT(sizeof(unsigned int) == 4); C_ASSERT(sizeof(ULONG) == 4); // // INT -> signed char conversion // __inline HRESULT IntToSignedChar( IN INT iOperand, OUT signed char* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if ((iOperand >= -128) && (iOperand <= 127)) { *pch = (signed char)iOperand; hr = S_OK; } return hr; } // // INT -> UCHAR conversion // __inline HRESULT IntToUChar( IN INT iOperand, OUT UCHAR* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if ((iOperand >= 0) && (iOperand <= 255)) { *pch = (UCHAR)iOperand; hr = S_OK; } return hr; } // // LONG -> UCHAR conversion // __inline HRESULT LongToUChar( IN LONG lOperand, OUT UCHAR* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if ((lOperand >= 0) && (lOperand <= 255)) { *pch = (UCHAR)lOperand; hr = S_OK; } return hr; } // // __inline is not sufficient. __forceinline is necessary. // If the function is not inlined and you link .objs compiled with different compiler switches, // you get one or the other function arbitrarily chosen. // // INT -> CHAR conversion // __forceinline HRESULT IntToChar( IN INT iOperand, OUT CHAR* pch) { #ifdef _CHAR_UNSIGNED return IntToUChar(iOperand, (UCHAR*)pch); #else return IntToSignedChar(iOperand, (signed char*)pch); #endif } // // INT -> USHORT conversion // __inline HRESULT IntToUShort( IN INT iOperand, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if ((iOperand >= 0) && (iOperand <= USHRT_MAX)) { *pusResult = (USHORT)iOperand; hr = S_OK; } return hr; } // // INT -> UINT conversion // __inline HRESULT IntToUInt( IN INT iOperand, OUT UINT* puResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *puResult = UINT_ERROR; if (iOperand >= 0) { *puResult = (UINT)iOperand; hr = S_OK; } return hr; } // // INT -> ULONG conversion // __inline HRESULT IntToULong( IN INT iOperand, OUT ULONG* pulResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pulResult = ULONG_ERROR; if (iOperand >= 0) { *pulResult = (ULONG)iOperand; hr = S_OK; } return hr; } // // INT -> ULONGLONG conversion // __inline HRESULT IntToULongLong( IN INT iOperand, OUT ULONGLONG* pullResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pullResult = ULONG_ERROR; if (iOperand >= 0) { *pullResult = (ULONGLONG)iOperand; hr = S_OK; } return hr; } // // UINT -> signed char conversion // __inline HRESULT UIntToSignedChar( IN UINT uOperand, OUT signed char* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if (uOperand <= 127) { *pch = (signed char)uOperand; hr = S_OK; } return hr; } // // UINT -> UCHAR conversion // __inline HRESULT UIntToUChar( IN UINT uOperand, OUT UCHAR* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if (uOperand <= 255) { *pch = (UCHAR)uOperand; hr = S_OK; } return hr; } // // UINT -> BYTE conversion // #define UIntToByte UIntToUChar // // __inline is not sufficient. __forceinline is necessary. // If the function is not inlined and you link .objs compiled with different compiler switches, // you get one or the other function arbitrarily chosen. // // UINT -> CHAR conversion // __forceinline HRESULT UIntToChar( IN UINT uOperand, OUT CHAR* pch) { #ifdef _CHAR_UNSIGNED return UIntToUChar(uOperand, (UCHAR*)pch); #else return UIntToSignedChar(uOperand, (signed char*)pch); #endif // _CHAR_UNSIGNED } // // UINT -> INT conversion // __inline HRESULT UIntToInt( IN UINT uOperand, OUT INT* piResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *piResult = INT_ERROR; if (uOperand <= INT_MAX) { *piResult = (INT)uOperand; hr = S_OK; } return hr; } // // UINT -> LONG conversion // __inline HRESULT UIntToLong( IN UINT Operand, OUT LONG* Result) { if (Operand <= _I32_MAX) { *Result = (LONG)Operand; return S_OK; } else { *Result = LONG_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // UINT -> ULONG conversion // __inline HRESULT UIntToULong( IN UINT uOperand, OUT ULONG* pulResult) { *pulResult = (ULONG)uOperand; return S_OK; } // // ULONG -> UCHAR conversion // __inline HRESULT ULongToSignedChar( IN ULONG ulOperand, OUT signed char* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if (ulOperand <= 127) { *pch = (signed char)ulOperand; hr = S_OK; } return hr; } // // ULONG -> UCHAR conversion // __inline HRESULT ULongToUChar( IN ULONG ulOperand, OUT unsigned char* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if (ulOperand <= 255) { *pch = (unsigned char)ulOperand; hr = S_OK; } return hr; } // // __inline is not sufficient. __forceinline is necessary. // If the function is not inlined and you link .objs compiled with different compiler switches, // you get one or the other function arbitrarily chosen. // // ULONG -> CHAR conversion // __forceinline HRESULT ULongToChar( IN ULONG ulOperand, OUT CHAR* pch) { #ifdef _CHAR_UNSIGNED return ULongToUChar(ulOperand, (unsigned char*)pch); #else return ULongToSignedChar(ulOperand, (signed char*)pch); #endif // _CHAR_UNSIGNED } // // ULONG -> USHORT conversion // __inline HRESULT ULongToUShort( IN ULONG ulOperand, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if (ulOperand <= USHRT_MAX) { *pusResult = (USHORT)ulOperand; hr = S_OK; } return hr; } // // ULONG -> INT conversion // __inline HRESULT ULongToInt( IN ULONG ulOperand, OUT INT* piResult) { if (ulOperand <= INT_MAX) { *piResult = (INT)ulOperand; return S_OK; } else { *piResult = INT_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // ULONG -> UINT conversion // __inline HRESULT ULongToUInt( IN ULONG ulOperand, OUT UINT* puResult) { *puResult = (UINT)ulOperand; return S_OK; } // // ULONG -> LONG conversion // __inline HRESULT ULongToLong( IN ULONG Operand, OUT LONG* Result) { if (Operand <= _I32_MAX) { *Result = (LONG)Operand; return S_OK; } else { *Result = LONG_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // ULONGLONG -> INT conversion // __inline HRESULT ULongLongToInt( IN ULONGLONG ullOperand, OUT INT* piResult) { if (ullOperand <= INT_MAX) { *piResult = (INT)ullOperand; return S_OK; } else { *piResult = INT_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // ULONGLONG -> LONG conversion // __inline HRESULT ULongLongToLong( IN ULONGLONG Operand, OUT LONG* Result) { if (Operand <= _I32_MAX) { *Result = (LONG)Operand; return S_OK; } else { *Result = LONG_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // UINT -> USHORT conversion // __inline HRESULT UIntToUShort( IN UINT uOperand, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if (uOperand <= USHRT_MAX) { *pusResult = (USHORT)uOperand; hr = S_OK; } return hr; } // // ULONGLONG -> USHORT conversion // __inline HRESULT ULongLongToUShort( IN ULONGLONG ullOperand, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; USHORT usResult = USHORT_ERROR; if (ullOperand <= USHRT_MAX) { usResult = (USHORT)ullOperand; hr = S_OK; } *pusResult = usResult; return hr; } // // ULONGLONG -> ULONG conversion // __inline HRESULT ULongLongToULong( IN ULONGLONG ullOperand, OUT ULONG* pulResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pulResult = ULONG_ERROR; if (ullOperand <= _UI32_MAX) { *pulResult = (ULONG)ullOperand; hr = S_OK; } return hr; } // // UINT_PTR -> ULONG conversion // ULONG_PTR -> ULONG conversion // #ifdef HOST_64BIT #define UIntPtrToULong ULongLongToULong #define ULongPtrToULong ULongLongToULong #else __inline HRESULT UIntPtrToULong( IN UINT_PTR Operand, OUT ULONG* pResult) { *pResult = (ULONG)Operand; return S_OK; } __inline HRESULT ULongPtrToULong( IN ULONG_PTR Operand, OUT ULONG* pResult) { *pResult = (ULONG)Operand; return S_OK; } #endif // // ULONGLONG -> UINT conversion // __inline HRESULT ULongLongToUInt( IN ULONGLONG ullOperand, OUT UINT* puResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *puResult = UINT_ERROR; if (ullOperand <= UINT_MAX) { *puResult = (UINT)ullOperand; hr = S_OK; } return hr; } // // UINT_PTR -> UINT conversion // ULONG_PTR -> UINT conversion // #ifdef HOST_64BIT #define UIntPtrToUInt ULongLongToUInt #define ULongPtrToUInt ULongLongToUInt #else __inline HRESULT UIntPtrToUInt( IN UINT_PTR Operand, OUT UINT* pResult) { *pResult = (UINT)Operand; return S_OK; } __inline HRESULT ULongPtrToUInt( IN ULONG_PTR Operand, OUT UINT* pResult) { *pResult = (UINT)Operand; return S_OK; } #endif // // * -> BYTE conversion (BYTE is always unsigned char) // #define IntToByte IntToUChar #define UIntToByte UIntToUChar #define LongToByte LongToUChar #define ULongToByte ULongToUChar // // * -> WORD conversion (WORD is always unsigned short) // #define IntToWord IntToUShort #define LongToWord LongToUShort #define LongLongToWord LongLongToUShort #define UIntToWord UIntToUShort #define ULongToWord ULongToUShort #define ULongLongToWord ULongLongToUShort #define UIntPtrToWord UIntPtrToUShort #define ULongPtrToWord ULongPtrToUShort #define SizeTToWord SizeTToUShort #define SIZETToWord SIZETToUShort // // WORD -> * conversion (WORD is always unsigned short) // #define WordToUChar UShortToUChar #define WordToByte UShortToByte #define WordToChar UShortToChar #define WordToSignedChar UShortToSignedChar #define WordToInt UShortToInt #define WordToLong UShortToLong #define WordToLongLong UShortToLongLong #define WordToIntPtr UShortToIntPtr #define WordToLongPtr UShortToLongPtr // // * -> DWORD conversion (DWORD is always ULONG) // #define CharToDWord CharToULong #define SignedCharToDWord SignedCharToULong #define ShortToDWord ShortToULong #define IntToDWord IntToULong #define LongToDWord LongToULong #define LongLongToDWord LongLongToULong #define UIntToDWord UIntToULong #define ULongLongToDWord ULongLongToULong #define IntPtrToDWord IntPtrToULong #define LongPtrToDWord LongPtrToULong #define UIntPtrToDWord UIntPtrToULong #define ULongPtrToDWord ULongPtrToULong #define SizeTToDWord SizeTToULong #define SIZETToDWord SIZETToULong // // DWORD -> * conversion (DWORD is always ULONG) // #define DWordToChar ULongToChar #define DWordToUChar ULongToUChar #define DWordToByte ULongToByte #define DWordToSignedChar ULongToSignedChar #define DWordToUShort ULongToUShort #define DWordToUInt ULongToUInt #define DWordToInt ULongToInt #define DWordToLong ULongToLong #define DWordToLongLong ULongToLongLong #define DWordToIntPtr ULongToIntPtr #define DWordToLongPtr ULongToLongPtr // // * -> UINT_PTR conversion (UINT_PTR is UINT on Win32, ULONGLONG on Win64) // #ifdef HOST_64BIT #define CharToUIntPtr CharToULongLong #define SignedCharToUIntPtr SignedCharToULongLong #define ShortToUIntPtr ShortToULongLong #define IntToUIntPtr IntToULongLong #define LongToUIntPtr LongToULongLong #define LongLongToUIntPtr LongLongToULongLong #define IntPtrToUIntPtr IntPtrToULongLong #define LongPtrToUIntPtr LongPtrToULongLong #else #define CharToUIntPtr CharToUInt #define SignedCharToUIntPtr SignedCharToUInt #define ShortToUIntPtr ShortToUInt __inline HRESULT IntToUIntPtr( IN INT iOperand, OUT UINT_PTR* puResult) { return IntToUInt(iOperand, (UINT*)puResult); } #define LongToUIntPtr LongToUInt #define LongLongToUIntPtr LongLongToUInt #define IntPtrToUIntPtr IntPtrToUInt #define LongPtrToUIntPtr LongPtrToUInt #endif __inline HRESULT ULongLongToUIntPtr( IN ULONGLONG ullOperand, OUT UINT_PTR* puResult) { #ifdef HOST_64BIT *puResult = ullOperand; return S_OK; #else return ULongLongToUInt(ullOperand, (UINT*)puResult); #endif } // // UINT_PTR -> * conversion (UINT_PTR is UINT on Win32, ULONGLONG on Win64) // #ifdef HOST_64BIT #define UIntPtrToUShort ULongLongToUShort #define UIntPtrToInt ULongLongToInt #define UIntPtrToLong ULongLongToLong #define UIntPtrToLongLong ULongLongToLongLong #define UIntPtrToIntPtr ULongLongToIntPtr #define UIntPtrToLongPtr ULongLongToLongPtr #else __inline HRESULT UIntPtrToUShort( IN UINT_PTR uOperand, OUT USHORT* pusResult) { return UIntToUShort((UINT)uOperand, pusResult); } __inline HRESULT UIntPtrToInt( IN UINT_PTR uOperand, OUT INT* piResult) { return UIntToInt((UINT)uOperand, piResult); } __inline HRESULT UIntPtrToLong( IN UINT_PTR Operand, OUT LONG* Result) { return UIntToLong((UINT)Operand, Result); } #define UIntPtrToLongLong UIntToLongLong #define UIntPtrToIntPtr UIntToIntPtr #define UIntPtrToLongPtr UIntToLongPtr #endif // // * -> ULONG_PTR conversion (ULONG_PTR is ULONG on Win32, ULONGLONG on Win64) // #ifdef HOST_64BIT #define CharToULongPtr CharToULongLong #define SignedCharToULongPtr SignedCharToULongLong #define ShortToULongPtr ShortToULongLong #define IntToULongPtr IntToULongLong #define LongToULongPtr LongToULongLong #define LongLongToULongPtr LongLongToULongLong #define IntPtrToULongPtr IntPtrToULongLong #define LongPtrToULongPtr LongPtrToULongLong #else #define CharToULongPtr CharToULong #define SignedCharToULongPtr SignedCharToULong #define ShortToULongPtr ShortToULong __inline HRESULT IntToULongPtr( IN INT iOperand, OUT ULONG_PTR* pulResult) { return IntToULong(iOperand, (ULONG*)pulResult); } #define LongToULongPtr LongToULong #define LongLongToULongPtr LongLongToULong #define IntPtrToULongPtr IntPtrToULong #define LongPtrToULongPtr LongPtrToULong #endif __inline HRESULT ULongLongToULongPtr( IN ULONGLONG ullOperand, OUT ULONG_PTR* pulResult) { #ifdef HOST_64BIT *pulResult = ullOperand; return S_OK; #else return ULongLongToULong(ullOperand, (ULONG*)pulResult); #endif } // // ULONG_PTR -> * conversion (ULONG_PTR is ULONG on Win32, ULONGLONG on Win64) // #ifdef HOST_64BIT #define ULongPtrToUShort ULongLongToUShort #define ULongPtrToInt ULongLongToInt #define ULongPtrToLong ULongLongToLong #define ULongPtrToLongLong ULongLongToLongLong #define ULongPtrToIntPtr ULongLongToIntPtr #define ULongPtrToLongPtr ULongLongToLongPtr #else __inline HRESULT ULongPtrToUShort( IN ULONG_PTR ulOperand, OUT USHORT* pusResult) { return ULongToUShort((ULONG)ulOperand, pusResult); } __inline HRESULT ULongPtrToInt( IN ULONG_PTR ulOperand, OUT INT* piResult) { return ULongToInt((ULONG)ulOperand, piResult); } __inline HRESULT ULongPtrToLong( IN ULONG_PTR Operand, OUT LONG* Result) { return ULongToLong((ULONG)Operand, Result); } #define ULongPtrToLongLong ULongToLongLong #define ULongPtrToIntPtr ULongToIntPtr #define ULongPtrToLongPtr ULongToLongPtr #endif // // * -> size_t conversion (size_t is always UINT_PTR) // #define CharToSizeT CharToUIntPtr #define SignedCharToSizeT SignedCharToUIntPtr #define ShortToSizeT ShortToUIntPtr #define IntToSizeT IntToUIntPtr #define LongToSizeT LongToUIntPtr #define LongLongToSizeT LongLongToUIntPtr #define ULongLongToSizeT ULongLongToUIntPtr #define IntPtrToSizeT IntPtrToUIntPtr #define LongPtrToSizeT LongPtrToUIntPtr // // size_t -> * conversion (size_t is always UINT_PTR) // #define SizeTToUShort UIntPtrToUShort #define SizeTToUInt UIntPtrToUInt #define SizeTToULong UIntPtrToULong #define SizeTToInt UIntPtrToInt #define SizeTToLong UIntPtrToLong #define SizeTToLongLong UIntPtrToLongLong #define SizeTToIntPtr UIntPtrToIntPtr #define SizeTToLongPtr UIntPtrToLongPtr // // * -> SIZE_T conversion (SIZE_T is always ULONG_PTR) // #define CharToSIZET CharToULongPtr #define SignedCharToSIZET SignedCharToULongPtr #define ShortToSIZET ShortToULongPtr #define IntToSIZET IntToULongPtr #define LongToSIZET LongToULongPtr #define LongLongToSIZET LongLongToULongPtr #define IntPtrToSIZET IntPtrToULongPtr #define LongPtrToSIZET LongPtrToULongPtr #define ULongLongToSIZET ULongLongToULongPtr // // SIZE_T -> * conversion (SIZE_T is always ULONG_PTR) // #define SIZETToUShort ULongPtrToUShort #define SIZETToUInt ULongPtrToUInt #define SIZETToULong ULongPtrToULong #define SIZETToUIntPtr ULongPtrToUIntPtr #define SIZETToULongPtr ULongPtrToULongPtr #define SIZETToInt ULongPtrToInt #define SIZETToLong ULongPtrToLong #define SIZETToLongLong ULongPtrToLongLong #define SIZETToIntPtr ULongPtrToIntPtr #define SIZETToLongPtr ULongPtrToLongPtr // // * -> DWORD_PTR conversion (DWORD_PTR is always ULONG_PTR) // #define CharToDWordPtr CharToULongPtr #define SignedCharToDWordPtr SignedCharToULongPtr #define ShortToDWordPtr ShortToULongPtr #define IntToDWordPtr IntToULongPtr #define LongToDWordPtr LongToULongPtr #define LongLongToDWordPtr LongLongToULongPtr #define ULongLongToDWordPtr ULongLongToULongPtr #define IntPtrToDWordPtr IntPtrToULongPtr #define LongPtrToDWordPtr LongPtrToULongPtr // // DWORD_PTR -> * conversion (DWORD_PTR is always ULONG_PTR) // #define DWordPtrToUShort ULongPtrToUShort #define DWordPtrToUInt ULongPtrToUInt #define DWordPtrToULong ULongPtrToULong #define DWordPtrToDWord ULongPtrToDWord #define DWordPtrToInt ULongPtrToInt #define DWordPtrToLong ULongPtrToLong #define DWordPtrToLongLong ULongPtrToLongLong #define DWordPtrToIntPtr ULongPtrToIntPtr #define DWordPtrToLongPtr ULongPtrToLongPtr // // USHORT addition // __inline HRESULT UShortAdd( IN USHORT usAugend, IN USHORT usAddend, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if (((USHORT)(usAugend + usAddend)) >= usAugend) { *pusResult = (usAugend + usAddend); hr = S_OK; } return hr; } // // WORD addtition // #define WordAdd UShortAdd // // UINT addition // __inline HRESULT UIntAdd( IN UINT uAugend, IN UINT uAddend, OUT UINT* puResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *puResult = UINT_ERROR; if ((uAugend + uAddend) >= uAugend) { *puResult = (uAugend + uAddend); hr = S_OK; } return hr; } // // UINT_PTR addition // #define UIntPtrAdd SizeTAdd // // ULONG addition // __inline HRESULT ULongAdd( IN ULONG ulAugend, IN ULONG ulAddend, OUT ULONG* pulResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pulResult = ULONG_ERROR; if ((ulAugend + ulAddend) >= ulAugend) { *pulResult = (ulAugend + ulAddend); hr = S_OK; } return hr; } // // ULONG_PTR addition // #ifdef HOST_64BIT #define ULongPtrAdd ULongLongAdd #else __inline HRESULT ULongPtrAdd( IN ULONG_PTR ulAugend, IN ULONG_PTR ulAddend, OUT ULONG_PTR* pulResult) { return ULongAdd((ULONG)ulAugend, (ULONG)ulAddend, (ULONG*)pulResult); } #endif // HOST_64BIT // // DWORD addition // #define DWordAdd ULongAdd // // DWORD_PTR addition // #define DWordPtrAdd ULongPtrAdd // // size_t addition // __inline HRESULT SizeTAdd( IN size_t Augend, IN size_t Addend, OUT size_t* pResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pResult = SIZET_ERROR; if ((Augend + Addend) >= Augend) { *pResult = (Augend + Addend); hr = S_OK; } return hr; } // // SIZE_T addition // #define SIZETAdd ULongPtrAdd // // ULONGLONG addition // __inline HRESULT ULongLongAdd( IN ULONGLONG ullAugend, IN ULONGLONG ullAddend, OUT ULONGLONG* pullResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pullResult = ULONGLONG_ERROR; if ((ullAugend + ullAddend) >= ullAugend) { *pullResult = (ullAugend + ullAddend); hr = S_OK; } return hr; } // // USHORT subtraction // __inline HRESULT UShortSub( IN USHORT usMinuend, IN USHORT usSubtrahend, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if (usMinuend >= usSubtrahend) { *pusResult = (usMinuend - usSubtrahend); hr = S_OK; } return hr; } // // WORD subtraction // #define WordSub UShortSub // // UINT subtraction // __inline HRESULT UIntSub( IN UINT uMinuend, IN UINT uSubtrahend, OUT UINT* puResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *puResult = UINT_ERROR; if (uMinuend >= uSubtrahend) { *puResult = (uMinuend - uSubtrahend); hr = S_OK; } return hr; } // // UINT_PTR subtraction // #define UIntPtrSub SizeTSub // // ULONG subtraction // __inline HRESULT ULongSub( IN ULONG ulMinuend, IN ULONG ulSubtrahend, OUT ULONG* pulResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pulResult = ULONG_ERROR; if (ulMinuend >= ulSubtrahend) { *pulResult = (ulMinuend - ulSubtrahend); hr = S_OK; } return hr; } // // ULONG_PTR subtraction // #ifdef HOST_64BIT #define ULongPtrSub ULongLongSub #else __inline HRESULT ULongPtrSub( IN ULONG_PTR ulMinuend, IN ULONG_PTR ulSubtrahend, OUT ULONG_PTR* pulResult) { return ULongSub((ULONG)ulMinuend, (ULONG)ulSubtrahend, (ULONG*)pulResult); } #endif // HOST_64BIT // // DWORD subtraction // #define DWordSub ULongSub // // DWORD_PTR subtraction // #define DWordPtrSub ULongPtrSub // // size_t subtraction // __inline HRESULT SizeTSub( IN size_t Minuend, IN size_t Subtrahend, OUT size_t* pResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pResult = SIZET_ERROR; if (Minuend >= Subtrahend) { *pResult = (Minuend - Subtrahend); hr = S_OK; } return hr; } // // SIZE_T subtraction // #define SIZETSub ULongPtrSub // // ULONGLONG subtraction // __inline HRESULT ULongLongSub( IN ULONGLONG ullMinuend, IN ULONGLONG ullSubtrahend, OUT ULONGLONG* pullResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pullResult = ULONGLONG_ERROR; if (ullMinuend >= ullSubtrahend) { *pullResult = (ullMinuend - ullSubtrahend); hr = S_OK; } return hr; } // // USHORT multiplication // __inline HRESULT UShortMult( IN USHORT usMultiplicand, IN USHORT usMultiplier, OUT USHORT* pusResult) { ULONG ulResult = ((ULONG)usMultiplicand) * (ULONG)usMultiplier; return ULongToUShort(ulResult, pusResult); } // // WORD multiplication // #define WordMult UShortMult // // UINT multiplication // __inline HRESULT UIntMult( IN UINT uMultiplicand, IN UINT uMultiplier, OUT UINT* puResult) { ULONGLONG ull64Result = UInt32x32To64(uMultiplicand, uMultiplier); return ULongLongToUInt(ull64Result, puResult); } // // ULONG multiplication // __inline HRESULT ULongMult( IN ULONG ulMultiplicand, IN ULONG ulMultiplier, OUT ULONG* pulResult) { ULONGLONG ull64Result = UInt32x32To64(ulMultiplicand, ulMultiplier); return ULongLongToULong(ull64Result, pulResult); } // // DWORD multiplication // #define DWordMult ULongMult // // DWORD_PTR multiplication // #define DWordPtrMult ULongPtrMult #endif // _INTSAFE_H_INCLUDED_
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************** * * * intsafe.h -- This module defines helper functions to prevent * * integer overflow issues. * * * * * ******************************************************************/ #ifndef _INTSAFE_H_INCLUDED_ #define _INTSAFE_H_INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif #include <specstrings.h> // for IN, etc. #define INTSAFE_E_ARITHMETIC_OVERFLOW ((HRESULT)0x80070216L) // 0x216 = 534 = ERROR_ARITHMETIC_OVERFLOW #ifndef LOWORD #define LOWORD(l) ((WORD)(((DWORD_PTR)(l)) & 0xffff)) #endif #ifndef HIWORD #define HIWORD(l) ((WORD)(((DWORD_PTR)(l)) >> 16)) #endif #define HIDWORD(_qw) ((ULONG)((_qw) >> 32)) #define LODWORD(_qw) ((ULONG)(_qw)) #if defined(MIDL_PASS) || defined(RC_INVOKED) || defined(_M_CEE_PURE) \ || defined(_M_AMD64) || defined(__ARM_ARCH) || defined(_M_S390X) || defined(_M_LOONGARCH64) #ifndef UInt32x32To64 #define UInt32x32To64(a, b) ((unsigned __int64)((ULONG)(a)) * (unsigned __int64)((ULONG)(b))) #endif #elif defined(_M_IX86) #ifndef UInt32x32To64 #define UInt32x32To64(a, b) (unsigned __int64)((unsigned __int64)(ULONG)(a) * (ULONG)(b)) #endif #else #error Must define a target architecture. #endif // // It is common for -1 to be used as an error value for various types // #define USHORT_ERROR (0xffff) #define INT_ERROR (-1) #define LONG_ERROR (-1L) #define UINT_ERROR (0xffffffff) #define ULONG_ERROR (0xffffffffUL) #ifdef _MSC_VER #define ULONGLONG_ERROR (0xffffffffffffffffui64) #define HIDWORD_MASK (0xffffffff00000000ui64) #else // _MSC_VER #define ULONGLONG_ERROR (0xffffffffffffffffULL) #define HIDWORD_MASK (0xffffffff00000000ULL) #endif // _MSC_VER #ifdef HOST_64BIT #define SIZET_ERROR ULONGLONG_ERROR #else #define SIZET_ERROR ULONG_ERROR #endif // // We make some assumptions about the sizes of various types. Let's be // explicit about those assumptions and check them. // C_ASSERT(sizeof(unsigned short) == 2); C_ASSERT(sizeof(unsigned int) == 4); C_ASSERT(sizeof(ULONG) == 4); // // INT -> signed char conversion // __inline HRESULT IntToSignedChar( IN INT iOperand, OUT signed char* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if ((iOperand >= -128) && (iOperand <= 127)) { *pch = (signed char)iOperand; hr = S_OK; } return hr; } // // INT -> UCHAR conversion // __inline HRESULT IntToUChar( IN INT iOperand, OUT UCHAR* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if ((iOperand >= 0) && (iOperand <= 255)) { *pch = (UCHAR)iOperand; hr = S_OK; } return hr; } // // LONG -> UCHAR conversion // __inline HRESULT LongToUChar( IN LONG lOperand, OUT UCHAR* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if ((lOperand >= 0) && (lOperand <= 255)) { *pch = (UCHAR)lOperand; hr = S_OK; } return hr; } // // __inline is not sufficient. __forceinline is necessary. // If the function is not inlined and you link .objs compiled with different compiler switches, // you get one or the other function arbitrarily chosen. // // INT -> CHAR conversion // __forceinline HRESULT IntToChar( IN INT iOperand, OUT CHAR* pch) { #ifdef _CHAR_UNSIGNED return IntToUChar(iOperand, (UCHAR*)pch); #else return IntToSignedChar(iOperand, (signed char*)pch); #endif } // // INT -> USHORT conversion // __inline HRESULT IntToUShort( IN INT iOperand, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if ((iOperand >= 0) && (iOperand <= USHRT_MAX)) { *pusResult = (USHORT)iOperand; hr = S_OK; } return hr; } // // INT -> UINT conversion // __inline HRESULT IntToUInt( IN INT iOperand, OUT UINT* puResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *puResult = UINT_ERROR; if (iOperand >= 0) { *puResult = (UINT)iOperand; hr = S_OK; } return hr; } // // INT -> ULONG conversion // __inline HRESULT IntToULong( IN INT iOperand, OUT ULONG* pulResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pulResult = ULONG_ERROR; if (iOperand >= 0) { *pulResult = (ULONG)iOperand; hr = S_OK; } return hr; } // // INT -> ULONGLONG conversion // __inline HRESULT IntToULongLong( IN INT iOperand, OUT ULONGLONG* pullResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pullResult = ULONG_ERROR; if (iOperand >= 0) { *pullResult = (ULONGLONG)iOperand; hr = S_OK; } return hr; } // // UINT -> signed char conversion // __inline HRESULT UIntToSignedChar( IN UINT uOperand, OUT signed char* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if (uOperand <= 127) { *pch = (signed char)uOperand; hr = S_OK; } return hr; } // // UINT -> UCHAR conversion // __inline HRESULT UIntToUChar( IN UINT uOperand, OUT UCHAR* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if (uOperand <= 255) { *pch = (UCHAR)uOperand; hr = S_OK; } return hr; } // // UINT -> BYTE conversion // #define UIntToByte UIntToUChar // // __inline is not sufficient. __forceinline is necessary. // If the function is not inlined and you link .objs compiled with different compiler switches, // you get one or the other function arbitrarily chosen. // // UINT -> CHAR conversion // __forceinline HRESULT UIntToChar( IN UINT uOperand, OUT CHAR* pch) { #ifdef _CHAR_UNSIGNED return UIntToUChar(uOperand, (UCHAR*)pch); #else return UIntToSignedChar(uOperand, (signed char*)pch); #endif // _CHAR_UNSIGNED } // // UINT -> INT conversion // __inline HRESULT UIntToInt( IN UINT uOperand, OUT INT* piResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *piResult = INT_ERROR; if (uOperand <= INT_MAX) { *piResult = (INT)uOperand; hr = S_OK; } return hr; } // // UINT -> LONG conversion // __inline HRESULT UIntToLong( IN UINT Operand, OUT LONG* Result) { if (Operand <= _I32_MAX) { *Result = (LONG)Operand; return S_OK; } else { *Result = LONG_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // UINT -> ULONG conversion // __inline HRESULT UIntToULong( IN UINT uOperand, OUT ULONG* pulResult) { *pulResult = (ULONG)uOperand; return S_OK; } // // ULONG -> UCHAR conversion // __inline HRESULT ULongToSignedChar( IN ULONG ulOperand, OUT signed char* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if (ulOperand <= 127) { *pch = (signed char)ulOperand; hr = S_OK; } return hr; } // // ULONG -> UCHAR conversion // __inline HRESULT ULongToUChar( IN ULONG ulOperand, OUT unsigned char* pch) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pch = 0; if (ulOperand <= 255) { *pch = (unsigned char)ulOperand; hr = S_OK; } return hr; } // // __inline is not sufficient. __forceinline is necessary. // If the function is not inlined and you link .objs compiled with different compiler switches, // you get one or the other function arbitrarily chosen. // // ULONG -> CHAR conversion // __forceinline HRESULT ULongToChar( IN ULONG ulOperand, OUT CHAR* pch) { #ifdef _CHAR_UNSIGNED return ULongToUChar(ulOperand, (unsigned char*)pch); #else return ULongToSignedChar(ulOperand, (signed char*)pch); #endif // _CHAR_UNSIGNED } // // ULONG -> USHORT conversion // __inline HRESULT ULongToUShort( IN ULONG ulOperand, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if (ulOperand <= USHRT_MAX) { *pusResult = (USHORT)ulOperand; hr = S_OK; } return hr; } // // ULONG -> INT conversion // __inline HRESULT ULongToInt( IN ULONG ulOperand, OUT INT* piResult) { if (ulOperand <= INT_MAX) { *piResult = (INT)ulOperand; return S_OK; } else { *piResult = INT_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // ULONG -> UINT conversion // __inline HRESULT ULongToUInt( IN ULONG ulOperand, OUT UINT* puResult) { *puResult = (UINT)ulOperand; return S_OK; } // // ULONG -> LONG conversion // __inline HRESULT ULongToLong( IN ULONG Operand, OUT LONG* Result) { if (Operand <= _I32_MAX) { *Result = (LONG)Operand; return S_OK; } else { *Result = LONG_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // ULONGLONG -> INT conversion // __inline HRESULT ULongLongToInt( IN ULONGLONG ullOperand, OUT INT* piResult) { if (ullOperand <= INT_MAX) { *piResult = (INT)ullOperand; return S_OK; } else { *piResult = INT_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // ULONGLONG -> LONG conversion // __inline HRESULT ULongLongToLong( IN ULONGLONG Operand, OUT LONG* Result) { if (Operand <= _I32_MAX) { *Result = (LONG)Operand; return S_OK; } else { *Result = LONG_ERROR; return INTSAFE_E_ARITHMETIC_OVERFLOW; } } // // UINT -> USHORT conversion // __inline HRESULT UIntToUShort( IN UINT uOperand, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if (uOperand <= USHRT_MAX) { *pusResult = (USHORT)uOperand; hr = S_OK; } return hr; } // // ULONGLONG -> USHORT conversion // __inline HRESULT ULongLongToUShort( IN ULONGLONG ullOperand, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; USHORT usResult = USHORT_ERROR; if (ullOperand <= USHRT_MAX) { usResult = (USHORT)ullOperand; hr = S_OK; } *pusResult = usResult; return hr; } // // ULONGLONG -> ULONG conversion // __inline HRESULT ULongLongToULong( IN ULONGLONG ullOperand, OUT ULONG* pulResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pulResult = ULONG_ERROR; if (ullOperand <= _UI32_MAX) { *pulResult = (ULONG)ullOperand; hr = S_OK; } return hr; } // // UINT_PTR -> ULONG conversion // ULONG_PTR -> ULONG conversion // #ifdef HOST_64BIT #define UIntPtrToULong ULongLongToULong #define ULongPtrToULong ULongLongToULong #else __inline HRESULT UIntPtrToULong( IN UINT_PTR Operand, OUT ULONG* pResult) { *pResult = (ULONG)Operand; return S_OK; } __inline HRESULT ULongPtrToULong( IN ULONG_PTR Operand, OUT ULONG* pResult) { *pResult = (ULONG)Operand; return S_OK; } #endif // // ULONGLONG -> UINT conversion // __inline HRESULT ULongLongToUInt( IN ULONGLONG ullOperand, OUT UINT* puResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *puResult = UINT_ERROR; if (ullOperand <= UINT_MAX) { *puResult = (UINT)ullOperand; hr = S_OK; } return hr; } // // UINT_PTR -> UINT conversion // ULONG_PTR -> UINT conversion // #ifdef HOST_64BIT #define UIntPtrToUInt ULongLongToUInt #define ULongPtrToUInt ULongLongToUInt #else __inline HRESULT UIntPtrToUInt( IN UINT_PTR Operand, OUT UINT* pResult) { *pResult = (UINT)Operand; return S_OK; } __inline HRESULT ULongPtrToUInt( IN ULONG_PTR Operand, OUT UINT* pResult) { *pResult = (UINT)Operand; return S_OK; } #endif // // * -> BYTE conversion (BYTE is always unsigned char) // #define IntToByte IntToUChar #define UIntToByte UIntToUChar #define LongToByte LongToUChar #define ULongToByte ULongToUChar // // * -> WORD conversion (WORD is always unsigned short) // #define IntToWord IntToUShort #define LongToWord LongToUShort #define LongLongToWord LongLongToUShort #define UIntToWord UIntToUShort #define ULongToWord ULongToUShort #define ULongLongToWord ULongLongToUShort #define UIntPtrToWord UIntPtrToUShort #define ULongPtrToWord ULongPtrToUShort #define SizeTToWord SizeTToUShort #define SIZETToWord SIZETToUShort // // WORD -> * conversion (WORD is always unsigned short) // #define WordToUChar UShortToUChar #define WordToByte UShortToByte #define WordToChar UShortToChar #define WordToSignedChar UShortToSignedChar #define WordToInt UShortToInt #define WordToLong UShortToLong #define WordToLongLong UShortToLongLong #define WordToIntPtr UShortToIntPtr #define WordToLongPtr UShortToLongPtr // // * -> DWORD conversion (DWORD is always ULONG) // #define CharToDWord CharToULong #define SignedCharToDWord SignedCharToULong #define ShortToDWord ShortToULong #define IntToDWord IntToULong #define LongToDWord LongToULong #define LongLongToDWord LongLongToULong #define UIntToDWord UIntToULong #define ULongLongToDWord ULongLongToULong #define IntPtrToDWord IntPtrToULong #define LongPtrToDWord LongPtrToULong #define UIntPtrToDWord UIntPtrToULong #define ULongPtrToDWord ULongPtrToULong #define SizeTToDWord SizeTToULong #define SIZETToDWord SIZETToULong // // DWORD -> * conversion (DWORD is always ULONG) // #define DWordToChar ULongToChar #define DWordToUChar ULongToUChar #define DWordToByte ULongToByte #define DWordToSignedChar ULongToSignedChar #define DWordToUShort ULongToUShort #define DWordToUInt ULongToUInt #define DWordToInt ULongToInt #define DWordToLong ULongToLong #define DWordToLongLong ULongToLongLong #define DWordToIntPtr ULongToIntPtr #define DWordToLongPtr ULongToLongPtr // // * -> UINT_PTR conversion (UINT_PTR is UINT on Win32, ULONGLONG on Win64) // #ifdef HOST_64BIT #define CharToUIntPtr CharToULongLong #define SignedCharToUIntPtr SignedCharToULongLong #define ShortToUIntPtr ShortToULongLong #define IntToUIntPtr IntToULongLong #define LongToUIntPtr LongToULongLong #define LongLongToUIntPtr LongLongToULongLong #define IntPtrToUIntPtr IntPtrToULongLong #define LongPtrToUIntPtr LongPtrToULongLong #else #define CharToUIntPtr CharToUInt #define SignedCharToUIntPtr SignedCharToUInt #define ShortToUIntPtr ShortToUInt __inline HRESULT IntToUIntPtr( IN INT iOperand, OUT UINT_PTR* puResult) { return IntToUInt(iOperand, (UINT*)puResult); } #define LongToUIntPtr LongToUInt #define LongLongToUIntPtr LongLongToUInt #define IntPtrToUIntPtr IntPtrToUInt #define LongPtrToUIntPtr LongPtrToUInt #endif __inline HRESULT ULongLongToUIntPtr( IN ULONGLONG ullOperand, OUT UINT_PTR* puResult) { #ifdef HOST_64BIT *puResult = ullOperand; return S_OK; #else return ULongLongToUInt(ullOperand, (UINT*)puResult); #endif } // // UINT_PTR -> * conversion (UINT_PTR is UINT on Win32, ULONGLONG on Win64) // #ifdef HOST_64BIT #define UIntPtrToUShort ULongLongToUShort #define UIntPtrToInt ULongLongToInt #define UIntPtrToLong ULongLongToLong #define UIntPtrToLongLong ULongLongToLongLong #define UIntPtrToIntPtr ULongLongToIntPtr #define UIntPtrToLongPtr ULongLongToLongPtr #else __inline HRESULT UIntPtrToUShort( IN UINT_PTR uOperand, OUT USHORT* pusResult) { return UIntToUShort((UINT)uOperand, pusResult); } __inline HRESULT UIntPtrToInt( IN UINT_PTR uOperand, OUT INT* piResult) { return UIntToInt((UINT)uOperand, piResult); } __inline HRESULT UIntPtrToLong( IN UINT_PTR Operand, OUT LONG* Result) { return UIntToLong((UINT)Operand, Result); } #define UIntPtrToLongLong UIntToLongLong #define UIntPtrToIntPtr UIntToIntPtr #define UIntPtrToLongPtr UIntToLongPtr #endif // // * -> ULONG_PTR conversion (ULONG_PTR is ULONG on Win32, ULONGLONG on Win64) // #ifdef HOST_64BIT #define CharToULongPtr CharToULongLong #define SignedCharToULongPtr SignedCharToULongLong #define ShortToULongPtr ShortToULongLong #define IntToULongPtr IntToULongLong #define LongToULongPtr LongToULongLong #define LongLongToULongPtr LongLongToULongLong #define IntPtrToULongPtr IntPtrToULongLong #define LongPtrToULongPtr LongPtrToULongLong #else #define CharToULongPtr CharToULong #define SignedCharToULongPtr SignedCharToULong #define ShortToULongPtr ShortToULong __inline HRESULT IntToULongPtr( IN INT iOperand, OUT ULONG_PTR* pulResult) { return IntToULong(iOperand, (ULONG*)pulResult); } #define LongToULongPtr LongToULong #define LongLongToULongPtr LongLongToULong #define IntPtrToULongPtr IntPtrToULong #define LongPtrToULongPtr LongPtrToULong #endif __inline HRESULT ULongLongToULongPtr( IN ULONGLONG ullOperand, OUT ULONG_PTR* pulResult) { #ifdef HOST_64BIT *pulResult = ullOperand; return S_OK; #else return ULongLongToULong(ullOperand, (ULONG*)pulResult); #endif } // // ULONG_PTR -> * conversion (ULONG_PTR is ULONG on Win32, ULONGLONG on Win64) // #ifdef HOST_64BIT #define ULongPtrToUShort ULongLongToUShort #define ULongPtrToInt ULongLongToInt #define ULongPtrToLong ULongLongToLong #define ULongPtrToLongLong ULongLongToLongLong #define ULongPtrToIntPtr ULongLongToIntPtr #define ULongPtrToLongPtr ULongLongToLongPtr #else __inline HRESULT ULongPtrToUShort( IN ULONG_PTR ulOperand, OUT USHORT* pusResult) { return ULongToUShort((ULONG)ulOperand, pusResult); } __inline HRESULT ULongPtrToInt( IN ULONG_PTR ulOperand, OUT INT* piResult) { return ULongToInt((ULONG)ulOperand, piResult); } __inline HRESULT ULongPtrToLong( IN ULONG_PTR Operand, OUT LONG* Result) { return ULongToLong((ULONG)Operand, Result); } #define ULongPtrToLongLong ULongToLongLong #define ULongPtrToIntPtr ULongToIntPtr #define ULongPtrToLongPtr ULongToLongPtr #endif // // * -> size_t conversion (size_t is always UINT_PTR) // #define CharToSizeT CharToUIntPtr #define SignedCharToSizeT SignedCharToUIntPtr #define ShortToSizeT ShortToUIntPtr #define IntToSizeT IntToUIntPtr #define LongToSizeT LongToUIntPtr #define LongLongToSizeT LongLongToUIntPtr #define ULongLongToSizeT ULongLongToUIntPtr #define IntPtrToSizeT IntPtrToUIntPtr #define LongPtrToSizeT LongPtrToUIntPtr // // size_t -> * conversion (size_t is always UINT_PTR) // #define SizeTToUShort UIntPtrToUShort #define SizeTToUInt UIntPtrToUInt #define SizeTToULong UIntPtrToULong #define SizeTToInt UIntPtrToInt #define SizeTToLong UIntPtrToLong #define SizeTToLongLong UIntPtrToLongLong #define SizeTToIntPtr UIntPtrToIntPtr #define SizeTToLongPtr UIntPtrToLongPtr // // * -> SIZE_T conversion (SIZE_T is always ULONG_PTR) // #define CharToSIZET CharToULongPtr #define SignedCharToSIZET SignedCharToULongPtr #define ShortToSIZET ShortToULongPtr #define IntToSIZET IntToULongPtr #define LongToSIZET LongToULongPtr #define LongLongToSIZET LongLongToULongPtr #define IntPtrToSIZET IntPtrToULongPtr #define LongPtrToSIZET LongPtrToULongPtr #define ULongLongToSIZET ULongLongToULongPtr // // SIZE_T -> * conversion (SIZE_T is always ULONG_PTR) // #define SIZETToUShort ULongPtrToUShort #define SIZETToUInt ULongPtrToUInt #define SIZETToULong ULongPtrToULong #define SIZETToUIntPtr ULongPtrToUIntPtr #define SIZETToULongPtr ULongPtrToULongPtr #define SIZETToInt ULongPtrToInt #define SIZETToLong ULongPtrToLong #define SIZETToLongLong ULongPtrToLongLong #define SIZETToIntPtr ULongPtrToIntPtr #define SIZETToLongPtr ULongPtrToLongPtr // // * -> DWORD_PTR conversion (DWORD_PTR is always ULONG_PTR) // #define CharToDWordPtr CharToULongPtr #define SignedCharToDWordPtr SignedCharToULongPtr #define ShortToDWordPtr ShortToULongPtr #define IntToDWordPtr IntToULongPtr #define LongToDWordPtr LongToULongPtr #define LongLongToDWordPtr LongLongToULongPtr #define ULongLongToDWordPtr ULongLongToULongPtr #define IntPtrToDWordPtr IntPtrToULongPtr #define LongPtrToDWordPtr LongPtrToULongPtr // // DWORD_PTR -> * conversion (DWORD_PTR is always ULONG_PTR) // #define DWordPtrToUShort ULongPtrToUShort #define DWordPtrToUInt ULongPtrToUInt #define DWordPtrToULong ULongPtrToULong #define DWordPtrToDWord ULongPtrToDWord #define DWordPtrToInt ULongPtrToInt #define DWordPtrToLong ULongPtrToLong #define DWordPtrToLongLong ULongPtrToLongLong #define DWordPtrToIntPtr ULongPtrToIntPtr #define DWordPtrToLongPtr ULongPtrToLongPtr // // USHORT addition // __inline HRESULT UShortAdd( IN USHORT usAugend, IN USHORT usAddend, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if (((USHORT)(usAugend + usAddend)) >= usAugend) { *pusResult = (usAugend + usAddend); hr = S_OK; } return hr; } // // WORD addtition // #define WordAdd UShortAdd // // UINT addition // __inline HRESULT UIntAdd( IN UINT uAugend, IN UINT uAddend, OUT UINT* puResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *puResult = UINT_ERROR; if ((uAugend + uAddend) >= uAugend) { *puResult = (uAugend + uAddend); hr = S_OK; } return hr; } // // UINT_PTR addition // #define UIntPtrAdd SizeTAdd // // ULONG addition // __inline HRESULT ULongAdd( IN ULONG ulAugend, IN ULONG ulAddend, OUT ULONG* pulResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pulResult = ULONG_ERROR; if ((ulAugend + ulAddend) >= ulAugend) { *pulResult = (ulAugend + ulAddend); hr = S_OK; } return hr; } // // ULONG_PTR addition // #ifdef HOST_64BIT #define ULongPtrAdd ULongLongAdd #else __inline HRESULT ULongPtrAdd( IN ULONG_PTR ulAugend, IN ULONG_PTR ulAddend, OUT ULONG_PTR* pulResult) { return ULongAdd((ULONG)ulAugend, (ULONG)ulAddend, (ULONG*)pulResult); } #endif // HOST_64BIT // // DWORD addition // #define DWordAdd ULongAdd // // DWORD_PTR addition // #define DWordPtrAdd ULongPtrAdd // // size_t addition // __inline HRESULT SizeTAdd( IN size_t Augend, IN size_t Addend, OUT size_t* pResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pResult = SIZET_ERROR; if ((Augend + Addend) >= Augend) { *pResult = (Augend + Addend); hr = S_OK; } return hr; } // // SIZE_T addition // #define SIZETAdd ULongPtrAdd // // ULONGLONG addition // __inline HRESULT ULongLongAdd( IN ULONGLONG ullAugend, IN ULONGLONG ullAddend, OUT ULONGLONG* pullResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pullResult = ULONGLONG_ERROR; if ((ullAugend + ullAddend) >= ullAugend) { *pullResult = (ullAugend + ullAddend); hr = S_OK; } return hr; } // // USHORT subtraction // __inline HRESULT UShortSub( IN USHORT usMinuend, IN USHORT usSubtrahend, OUT USHORT* pusResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pusResult = USHORT_ERROR; if (usMinuend >= usSubtrahend) { *pusResult = (usMinuend - usSubtrahend); hr = S_OK; } return hr; } // // WORD subtraction // #define WordSub UShortSub // // UINT subtraction // __inline HRESULT UIntSub( IN UINT uMinuend, IN UINT uSubtrahend, OUT UINT* puResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *puResult = UINT_ERROR; if (uMinuend >= uSubtrahend) { *puResult = (uMinuend - uSubtrahend); hr = S_OK; } return hr; } // // UINT_PTR subtraction // #define UIntPtrSub SizeTSub // // ULONG subtraction // __inline HRESULT ULongSub( IN ULONG ulMinuend, IN ULONG ulSubtrahend, OUT ULONG* pulResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pulResult = ULONG_ERROR; if (ulMinuend >= ulSubtrahend) { *pulResult = (ulMinuend - ulSubtrahend); hr = S_OK; } return hr; } // // ULONG_PTR subtraction // #ifdef HOST_64BIT #define ULongPtrSub ULongLongSub #else __inline HRESULT ULongPtrSub( IN ULONG_PTR ulMinuend, IN ULONG_PTR ulSubtrahend, OUT ULONG_PTR* pulResult) { return ULongSub((ULONG)ulMinuend, (ULONG)ulSubtrahend, (ULONG*)pulResult); } #endif // HOST_64BIT // // DWORD subtraction // #define DWordSub ULongSub // // DWORD_PTR subtraction // #define DWordPtrSub ULongPtrSub // // size_t subtraction // __inline HRESULT SizeTSub( IN size_t Minuend, IN size_t Subtrahend, OUT size_t* pResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pResult = SIZET_ERROR; if (Minuend >= Subtrahend) { *pResult = (Minuend - Subtrahend); hr = S_OK; } return hr; } // // SIZE_T subtraction // #define SIZETSub ULongPtrSub // // ULONGLONG subtraction // __inline HRESULT ULongLongSub( IN ULONGLONG ullMinuend, IN ULONGLONG ullSubtrahend, OUT ULONGLONG* pullResult) { HRESULT hr = INTSAFE_E_ARITHMETIC_OVERFLOW; *pullResult = ULONGLONG_ERROR; if (ullMinuend >= ullSubtrahend) { *pullResult = (ullMinuend - ullSubtrahend); hr = S_OK; } return hr; } // // USHORT multiplication // __inline HRESULT UShortMult( IN USHORT usMultiplicand, IN USHORT usMultiplier, OUT USHORT* pusResult) { ULONG ulResult = ((ULONG)usMultiplicand) * (ULONG)usMultiplier; return ULongToUShort(ulResult, pusResult); } // // WORD multiplication // #define WordMult UShortMult // // UINT multiplication // __inline HRESULT UIntMult( IN UINT uMultiplicand, IN UINT uMultiplier, OUT UINT* puResult) { ULONGLONG ull64Result = UInt32x32To64(uMultiplicand, uMultiplier); return ULongLongToUInt(ull64Result, puResult); } // // ULONG multiplication // __inline HRESULT ULongMult( IN ULONG ulMultiplicand, IN ULONG ulMultiplier, OUT ULONG* pulResult) { ULONGLONG ull64Result = UInt32x32To64(ulMultiplicand, ulMultiplier); return ULongLongToULong(ull64Result, pulResult); } // // DWORD multiplication // #define DWordMult ULongMult // // DWORD_PTR multiplication // #define DWordPtrMult ULongPtrMult #endif // _INTSAFE_H_INCLUDED_
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/utilcode/stgpooli.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // StgPool.cpp // // // Pools are used to reduce the amount of data actually required in the database. // This allows for duplicate string and binary values to be folded into one // copy shared by the rest of the database. Strings are tracked in a hash // table when insert/changing data to find duplicates quickly. The strings // are then persisted consecutively in a stream in the database format. // //***************************************************************************** #include "stdafx.h" // Standard include. #include <stgpool.h> // Our interface definitions. int CStringPoolHash::Cmp( const void *pData, // A string. void *pItem) // A hash item which refers to a string. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; LPCSTR p1 = reinterpret_cast<LPCSTR>(pData); LPCSTR p2; if (FAILED(m_Pool->GetString(reinterpret_cast<STRINGHASH*>(pItem)->iOffset, &p2))) { return -1; } return (strcmp(p1, p2)); } // int CStringPoolHash::Cmp() int CBlobPoolHash::Cmp( const void *pData, // A blob. void *pItem) // A hash item which refers to a blob. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; ULONG ul1; ULONG ul2; MetaData::DataBlob data2; // Get size of first item. ul1 = CPackedLen::GetLength(pData); // Adjust size to include the length of size field. ul1 += CPackedLen::Size(ul1); // Get the second item. if (FAILED(m_Pool->GetData(reinterpret_cast<BLOBHASH*>(pItem)->iOffset, &data2))) { return -1; } // Get and adjust size of second item. ul2 = CPackedLen::GetLength(data2.GetDataPointer()); ul2 += CPackedLen::Size(ul2); if (ul1 < ul2) return (-1); else if (ul1 > ul2) return (1); return (memcmp(pData, data2.GetDataPointer(), ul1)); } // int CBlobPoolHash::Cmp() int CGuidPoolHash::Cmp(const void *pData, void *pItem) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; GUID *p2; if (FAILED(m_Pool->GetGuid(reinterpret_cast<GUIDHASH*>(pItem)->iIndex, &p2))) { return -1; } return (memcmp(pData, p2, sizeof(GUID))); } // int CGuidPoolHash::Cmp() // // // CPackedLen // // //***************************************************************************** // Parse a length, return the data, store length. //***************************************************************************** void const *CPackedLen::GetData( // Pointer to data, or 0 on error. void const *pData, // First byte of length. ULONG *pLength) // Put length here, or -1 on error. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; BYTE const *pBytes = reinterpret_cast<BYTE const*>(pData); if ((*pBytes & 0x80) == 0x00) // 0??? ???? { *pLength = (*pBytes & 0x7f); return pBytes + 1; } if ((*pBytes & 0xC0) == 0x80) // 10?? ???? { *pLength = ((*pBytes & 0x3f) << 8 | *(pBytes+1)); return pBytes + 2; } if ((*pBytes & 0xE0) == 0xC0) // 110? ???? { *pLength = ((*pBytes & 0x1f) << 24 | *(pBytes+1) << 16 | *(pBytes+2) << 8 | *(pBytes+3)); return pBytes + 4; } *pLength = (ULONG) -1; return 0; } // void const *CPackedLen::GetData() #ifndef MAX_PTR #define MAX_PTR ((BYTE*)(~(SSIZE_T)0)) #endif //***************************************************************************** // Parse a length, return the data, store length. //***************************************************************************** HRESULT CPackedLen::SafeGetLength( // S_OK, or error void const *pDataSource, // First byte of length. void const *pDataSourceEnd, // End of valid source data memory ULONG *pLength, // Length of data, if return S_OK void const **ppDataNext) // Pointer immediately following encoded length { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; if (pDataSource == NULL || pDataSourceEnd == NULL || pDataSourceEnd < pDataSource || ppDataNext == NULL || pLength == NULL || pDataSource > (MAX_PTR - 4)) { return E_INVALIDARG; } BYTE const *pBytes = reinterpret_cast<BYTE const*>(pDataSource); BYTE const *pBytesEnd = reinterpret_cast<BYTE const*>(pDataSourceEnd); size_t cbAvail = pBytesEnd - pBytes; if (cbAvail < 1) { // Fail if no source data available return COR_E_OVERFLOW; } if ((*pBytes & 0x80) == 0x00) // 0??? ???? { *pLength = (*pBytes & 0x7f); *ppDataNext = pBytes + 1; return S_OK; } if (cbAvail < 2) { // Fail if not enough source data available return COR_E_OVERFLOW; } if ((*pBytes & 0xC0) == 0x80) // 10?? ???? { *pLength = ((*pBytes & 0x3f) << 8 | *(pBytes+1)); *ppDataNext = pBytes + 2; return S_OK; } if (cbAvail < 4) { // Fail if not enough source data available return COR_E_OVERFLOW; } if ((*pBytes & 0xE0) == 0xC0) // 110? ???? { *pLength = ((*pBytes & 0x1f) << 24 | *(pBytes+1) << 16 | *(pBytes+2) << 8 | *(pBytes+3)); *ppDataNext = pBytes + 4; return S_OK;; } return COR_E_OVERFLOW; } // CPackedLen::GetLength //***************************************************************************** // Parse a length, return the data, store length. //***************************************************************************** HRESULT CPackedLen::SafeGetData( // S_OK, or error void const *pDataSource, // First byte of length. void const *pDataSourceEnd, // End of valid source data memory ULONG *pcbData, // Length of data void const **ppData) // Start of data { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; HRESULT hr = S_OK; IfFailRet(SafeGetLength(pDataSource, pDataSourceEnd, pcbData, ppData)); if (*pcbData == 0) { // Zero length value means zero data, so no range checking required. return S_OK; } BYTE const *pbData = reinterpret_cast<BYTE const*>(*ppData); if (pbData + *pcbData < pbData) { // First check for integer overflow return COR_E_OVERFLOW; } if (pDataSourceEnd < pbData + *pcbData) { // Now check for data buffer overflow return COR_E_OVERFLOW; } return S_OK; } // CPackedLen::GetLength //***************************************************************************** // Parse a length, return the data, store length. //***************************************************************************** HRESULT CPackedLen::SafeGetData( // S_OK, or error void const *pDataSource, // First byte of data ULONG cbDataSource, // Count of valid bytes in data source ULONG *pcbData, // Length of data void const **ppData) // Start of data { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; return SafeGetData(pDataSource, (void const *)((BYTE const *)pDataSource + cbDataSource), pcbData, ppData); } // CPackedLen::GetLength //***************************************************************************** // Parse a length, return the length, pointer to actual bytes. //***************************************************************************** ULONG CPackedLen::GetLength( // Length or -1 on error. void const *pData, // First byte of length. void const **ppCode) // Put pointer to bytes here, if not 0. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; BYTE const *pBytes = reinterpret_cast<BYTE const*>(pData); if ((*pBytes & 0x80) == 0x00) // 0??? ???? { if (ppCode) *ppCode = pBytes + 1; return (*pBytes & 0x7f); } if ((*pBytes & 0xC0) == 0x80) // 10?? ???? { if (ppCode) *ppCode = pBytes + 2; return ((*pBytes & 0x3f) << 8 | *(pBytes+1)); } if ((*pBytes & 0xE0) == 0xC0) // 110? ???? { if (ppCode) *ppCode = pBytes + 4; return ((*pBytes & 0x1f) << 24 | *(pBytes+1) << 16 | *(pBytes+2) << 8 | *(pBytes+3)); } return (ULONG) -1; } // ULONG CPackedLen::GetLength() //***************************************************************************** // Parse a length, return the length, size of the length. //***************************************************************************** ULONG CPackedLen::GetLength( // Length or -1 on error. void const *pData, // First byte of length. int *pSizeLen) // Put size of length here, if not 0. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; BYTE const *pBytes = reinterpret_cast<BYTE const*>(pData); if ((*pBytes & 0x80) == 0x00) // 0??? ???? { if (pSizeLen) *pSizeLen = 1; return (*pBytes & 0x7f); } if ((*pBytes & 0xC0) == 0x80) // 10?? ???? { if (pSizeLen) *pSizeLen = 2; return ((*pBytes & 0x3f) << 8 | *(pBytes+1)); } if ((*pBytes & 0xE0) == 0xC0) // 110? ???? { if (pSizeLen) *pSizeLen = 4; return ((*pBytes & 0x1f) << 24 | *(pBytes+1) << 16 | *(pBytes+2) << 8 | *(pBytes+3)); } return (ULONG) -1; } // ULONG CPackedLen::GetLength() //***************************************************************************** // Encode a length. //***************************************************************************** #ifdef _MSC_VER #pragma warning(disable:4244) // conversion from unsigned long to unsigned char #endif void* CPackedLen::PutLength( // First byte past length. void *pData, // Pack the length here. ULONG iLen) // The length. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; BYTE *pBytes = reinterpret_cast<BYTE*>(pData); if (iLen <= 0x7F) { *pBytes = iLen; return pBytes + 1; } if (iLen <= 0x3FFF) { *pBytes = (iLen >> 8) | 0x80; *(pBytes+1) = iLen & 0xFF; return pBytes + 2; } _ASSERTE(iLen <= 0x1FFFFFFF); *pBytes = (iLen >> 24) | 0xC0; *(pBytes+1) = (iLen >> 16) & 0xFF; *(pBytes+2) = (iLen >> 8) & 0xFF; *(pBytes+3) = iLen & 0xFF; return pBytes + 4; } // void* CPackedLen::PutLength() #ifdef _MSC_VER #pragma warning(default:4244) // conversion from unsigned long to unsigned char #endif
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // StgPool.cpp // // // Pools are used to reduce the amount of data actually required in the database. // This allows for duplicate string and binary values to be folded into one // copy shared by the rest of the database. Strings are tracked in a hash // table when insert/changing data to find duplicates quickly. The strings // are then persisted consecutively in a stream in the database format. // //***************************************************************************** #include "stdafx.h" // Standard include. #include <stgpool.h> // Our interface definitions. int CStringPoolHash::Cmp( const void *pData, // A string. void *pItem) // A hash item which refers to a string. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; LPCSTR p1 = reinterpret_cast<LPCSTR>(pData); LPCSTR p2; if (FAILED(m_Pool->GetString(reinterpret_cast<STRINGHASH*>(pItem)->iOffset, &p2))) { return -1; } return (strcmp(p1, p2)); } // int CStringPoolHash::Cmp() int CBlobPoolHash::Cmp( const void *pData, // A blob. void *pItem) // A hash item which refers to a blob. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; ULONG ul1; ULONG ul2; MetaData::DataBlob data2; // Get size of first item. ul1 = CPackedLen::GetLength(pData); // Adjust size to include the length of size field. ul1 += CPackedLen::Size(ul1); // Get the second item. if (FAILED(m_Pool->GetData(reinterpret_cast<BLOBHASH*>(pItem)->iOffset, &data2))) { return -1; } // Get and adjust size of second item. ul2 = CPackedLen::GetLength(data2.GetDataPointer()); ul2 += CPackedLen::Size(ul2); if (ul1 < ul2) return (-1); else if (ul1 > ul2) return (1); return (memcmp(pData, data2.GetDataPointer(), ul1)); } // int CBlobPoolHash::Cmp() int CGuidPoolHash::Cmp(const void *pData, void *pItem) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; GUID *p2; if (FAILED(m_Pool->GetGuid(reinterpret_cast<GUIDHASH*>(pItem)->iIndex, &p2))) { return -1; } return (memcmp(pData, p2, sizeof(GUID))); } // int CGuidPoolHash::Cmp() // // // CPackedLen // // //***************************************************************************** // Parse a length, return the data, store length. //***************************************************************************** void const *CPackedLen::GetData( // Pointer to data, or 0 on error. void const *pData, // First byte of length. ULONG *pLength) // Put length here, or -1 on error. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; BYTE const *pBytes = reinterpret_cast<BYTE const*>(pData); if ((*pBytes & 0x80) == 0x00) // 0??? ???? { *pLength = (*pBytes & 0x7f); return pBytes + 1; } if ((*pBytes & 0xC0) == 0x80) // 10?? ???? { *pLength = ((*pBytes & 0x3f) << 8 | *(pBytes+1)); return pBytes + 2; } if ((*pBytes & 0xE0) == 0xC0) // 110? ???? { *pLength = ((*pBytes & 0x1f) << 24 | *(pBytes+1) << 16 | *(pBytes+2) << 8 | *(pBytes+3)); return pBytes + 4; } *pLength = (ULONG) -1; return 0; } // void const *CPackedLen::GetData() #ifndef MAX_PTR #define MAX_PTR ((BYTE*)(~(SSIZE_T)0)) #endif //***************************************************************************** // Parse a length, return the data, store length. //***************************************************************************** HRESULT CPackedLen::SafeGetLength( // S_OK, or error void const *pDataSource, // First byte of length. void const *pDataSourceEnd, // End of valid source data memory ULONG *pLength, // Length of data, if return S_OK void const **ppDataNext) // Pointer immediately following encoded length { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; if (pDataSource == NULL || pDataSourceEnd == NULL || pDataSourceEnd < pDataSource || ppDataNext == NULL || pLength == NULL || pDataSource > (MAX_PTR - 4)) { return E_INVALIDARG; } BYTE const *pBytes = reinterpret_cast<BYTE const*>(pDataSource); BYTE const *pBytesEnd = reinterpret_cast<BYTE const*>(pDataSourceEnd); size_t cbAvail = pBytesEnd - pBytes; if (cbAvail < 1) { // Fail if no source data available return COR_E_OVERFLOW; } if ((*pBytes & 0x80) == 0x00) // 0??? ???? { *pLength = (*pBytes & 0x7f); *ppDataNext = pBytes + 1; return S_OK; } if (cbAvail < 2) { // Fail if not enough source data available return COR_E_OVERFLOW; } if ((*pBytes & 0xC0) == 0x80) // 10?? ???? { *pLength = ((*pBytes & 0x3f) << 8 | *(pBytes+1)); *ppDataNext = pBytes + 2; return S_OK; } if (cbAvail < 4) { // Fail if not enough source data available return COR_E_OVERFLOW; } if ((*pBytes & 0xE0) == 0xC0) // 110? ???? { *pLength = ((*pBytes & 0x1f) << 24 | *(pBytes+1) << 16 | *(pBytes+2) << 8 | *(pBytes+3)); *ppDataNext = pBytes + 4; return S_OK;; } return COR_E_OVERFLOW; } // CPackedLen::GetLength //***************************************************************************** // Parse a length, return the data, store length. //***************************************************************************** HRESULT CPackedLen::SafeGetData( // S_OK, or error void const *pDataSource, // First byte of length. void const *pDataSourceEnd, // End of valid source data memory ULONG *pcbData, // Length of data void const **ppData) // Start of data { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; HRESULT hr = S_OK; IfFailRet(SafeGetLength(pDataSource, pDataSourceEnd, pcbData, ppData)); if (*pcbData == 0) { // Zero length value means zero data, so no range checking required. return S_OK; } BYTE const *pbData = reinterpret_cast<BYTE const*>(*ppData); if (pbData + *pcbData < pbData) { // First check for integer overflow return COR_E_OVERFLOW; } if (pDataSourceEnd < pbData + *pcbData) { // Now check for data buffer overflow return COR_E_OVERFLOW; } return S_OK; } // CPackedLen::GetLength //***************************************************************************** // Parse a length, return the data, store length. //***************************************************************************** HRESULT CPackedLen::SafeGetData( // S_OK, or error void const *pDataSource, // First byte of data ULONG cbDataSource, // Count of valid bytes in data source ULONG *pcbData, // Length of data void const **ppData) // Start of data { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; return SafeGetData(pDataSource, (void const *)((BYTE const *)pDataSource + cbDataSource), pcbData, ppData); } // CPackedLen::GetLength //***************************************************************************** // Parse a length, return the length, pointer to actual bytes. //***************************************************************************** ULONG CPackedLen::GetLength( // Length or -1 on error. void const *pData, // First byte of length. void const **ppCode) // Put pointer to bytes here, if not 0. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; BYTE const *pBytes = reinterpret_cast<BYTE const*>(pData); if ((*pBytes & 0x80) == 0x00) // 0??? ???? { if (ppCode) *ppCode = pBytes + 1; return (*pBytes & 0x7f); } if ((*pBytes & 0xC0) == 0x80) // 10?? ???? { if (ppCode) *ppCode = pBytes + 2; return ((*pBytes & 0x3f) << 8 | *(pBytes+1)); } if ((*pBytes & 0xE0) == 0xC0) // 110? ???? { if (ppCode) *ppCode = pBytes + 4; return ((*pBytes & 0x1f) << 24 | *(pBytes+1) << 16 | *(pBytes+2) << 8 | *(pBytes+3)); } return (ULONG) -1; } // ULONG CPackedLen::GetLength() //***************************************************************************** // Parse a length, return the length, size of the length. //***************************************************************************** ULONG CPackedLen::GetLength( // Length or -1 on error. void const *pData, // First byte of length. int *pSizeLen) // Put size of length here, if not 0. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; BYTE const *pBytes = reinterpret_cast<BYTE const*>(pData); if ((*pBytes & 0x80) == 0x00) // 0??? ???? { if (pSizeLen) *pSizeLen = 1; return (*pBytes & 0x7f); } if ((*pBytes & 0xC0) == 0x80) // 10?? ???? { if (pSizeLen) *pSizeLen = 2; return ((*pBytes & 0x3f) << 8 | *(pBytes+1)); } if ((*pBytes & 0xE0) == 0xC0) // 110? ???? { if (pSizeLen) *pSizeLen = 4; return ((*pBytes & 0x1f) << 24 | *(pBytes+1) << 16 | *(pBytes+2) << 8 | *(pBytes+3)); } return (ULONG) -1; } // ULONG CPackedLen::GetLength() //***************************************************************************** // Encode a length. //***************************************************************************** void* CPackedLen::PutLength( // First byte past length. void *pData, // Pack the length here. ULONG iLen) // The length. { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_FORBID_FAULT; BYTE *pBytes = reinterpret_cast<BYTE*>(pData); if (iLen <= 0x7F) { *pBytes = (BYTE)iLen; return pBytes + 1; } if (iLen <= 0x3FFF) { *pBytes = (BYTE)((iLen >> 8) | 0x80); *(pBytes+1) = iLen & 0xFF; return pBytes + 2; } _ASSERTE(iLen <= 0x1FFFFFFF); *pBytes = (iLen >> 24) | 0xC0; *(pBytes+1) = (iLen >> 16) & 0xFF; *(pBytes+2) = (iLen >> 8) & 0xFF; *(pBytes+3) = iLen & 0xFF; return pBytes + 4; } // void* CPackedLen::PutLength()
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/ceeload.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =========================================================================== // File: CEELOAD.CPP // // // CEELOAD reads in the PE file format using LoadLibrary // =========================================================================== #include "common.h" #include "array.h" #include "ceeload.h" #include "hash.h" #include "vars.hpp" #include "reflectclasswriter.h" #include "method.hpp" #include "stublink.h" #include "cgensys.h" #include "excep.h" #include "dbginterface.h" #include "dllimport.h" #include "eeprofinterfaces.h" #include "encee.h" #include "jitinterface.h" #include "eeconfig.h" #include "dllimportcallback.h" #include "contractimpl.h" #include "typehash.h" #include "instmethhash.h" #include "virtualcallstub.h" #include "typestring.h" #include "stringliteralmap.h" #include <formattype.h> #include "fieldmarshaler.h" #include "sigbuilder.h" #include "metadataexports.h" #include "inlinetracking.h" #include "threads.h" #include "nativeimage.h" #ifdef FEATURE_COMINTEROP #include "runtimecallablewrapper.h" #include "comcallablewrapper.h" #endif //FEATURE_COMINTEROP #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4724) #endif // _MSC_VER #include "dacenumerablehash.inl" #ifdef _MSC_VER #pragma warning(pop) #endif // _MSC_VER #include "ecall.h" #include "../md/compiler/custattr.h" #include "typekey.h" #include "peimagelayout.inl" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4244) #endif // _MSC_VER #ifdef TARGET_64BIT #define COR_VTABLE_PTRSIZED COR_VTABLE_64BIT #define COR_VTABLE_NOT_PTRSIZED COR_VTABLE_32BIT #else // !TARGET_64BIT #define COR_VTABLE_PTRSIZED COR_VTABLE_32BIT #define COR_VTABLE_NOT_PTRSIZED COR_VTABLE_64BIT #endif // !TARGET_64BIT #define CEE_FILE_GEN_GROWTH_COLLECTIBLE 2048 #define NGEN_STATICS_ALLCLASSES_WERE_LOADED -1 BOOL Module::HasReadyToRunInlineTrackingMap() { LIMITED_METHOD_DAC_CONTRACT; #ifdef FEATURE_READYTORUN if (IsReadyToRun() && GetReadyToRunInfo()->GetInlineTrackingMap() != NULL) { return TRUE; } #endif return FALSE; } COUNT_T Module::GetReadyToRunInliners(PTR_Module inlineeOwnerMod, mdMethodDef inlineeTkn, COUNT_T inlinersSize, MethodInModule inliners[], BOOL *incompleteData) { WRAPPER_NO_CONTRACT; #ifdef FEATURE_READYTORUN if(IsReadyToRun() && GetReadyToRunInfo()->GetInlineTrackingMap() != NULL) { return GetReadyToRunInfo()->GetInlineTrackingMap()->GetInliners(inlineeOwnerMod, inlineeTkn, inlinersSize, inliners, incompleteData); } #endif return 0; } #if defined(PROFILING_SUPPORTED) && !defined(DACCESS_COMPILE) BOOL Module::HasJitInlineTrackingMap() { LIMITED_METHOD_CONTRACT; return m_pJitInlinerTrackingMap != NULL; } void Module::AddInlining(MethodDesc *inliner, MethodDesc *inlinee) { STANDARD_VM_CONTRACT; _ASSERTE(inliner != NULL && inlinee != NULL); _ASSERTE(inlinee->GetModule() == this); if (m_pJitInlinerTrackingMap != NULL) { m_pJitInlinerTrackingMap->AddInlining(inliner, inlinee); } } #endif // defined(PROFILING_SUPPORTED) && !defined(DACCESS_COMPILE) #ifndef DACCESS_COMPILE // =========================================================================== // Module // =========================================================================== //--------------------------------------------------------------------------------------------------- // This wrapper just invokes the real initialization inside a try/hook. // szName is not null only for dynamic modules //--------------------------------------------------------------------------------------------------- void Module::DoInit(AllocMemTracker *pamTracker, LPCWSTR szName) { CONTRACTL { INSTANCE_CHECK; STANDARD_VM_CHECK; } CONTRACTL_END; #ifdef PROFILING_SUPPORTED { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); GCX_COOP(); (&g_profControlBlock)->ModuleLoadStarted((ModuleID) this); END_PROFILER_CALLBACK(); } // Need TRY/HOOK instead of holder so we can get HR of exception thrown for profiler callback EX_TRY #endif { Initialize(pamTracker, szName); } #ifdef PROFILING_SUPPORTED EX_HOOK { { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); (&g_profControlBlock)->ModuleLoadFinished((ModuleID) this, GET_EXCEPTION()->GetHR()); END_PROFILER_CALLBACK(); } } EX_END_HOOK; #endif } // Set the given bit on m_dwTransientFlags. Return true if we won the race to set the bit. BOOL Module::SetTransientFlagInterlocked(DWORD dwFlag) { LIMITED_METHOD_CONTRACT; for (;;) { DWORD dwTransientFlags = m_dwTransientFlags; if ((dwTransientFlags & dwFlag) != 0) return FALSE; if ((DWORD)FastInterlockCompareExchange((LONG*)&m_dwTransientFlags, dwTransientFlags | dwFlag, dwTransientFlags) == dwTransientFlags) return TRUE; } } #if defined(PROFILING_SUPPORTED) || defined(EnC_SUPPORTED) void Module::UpdateNewlyAddedTypes() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END DWORD countTypesAfterProfilerUpdate = GetMDImport()->GetCountWithTokenKind(mdtTypeDef); DWORD countExportedTypesAfterProfilerUpdate = GetMDImport()->GetCountWithTokenKind(mdtExportedType); DWORD countCustomAttributeCount = GetMDImport()->GetCountWithTokenKind(mdtCustomAttribute); if (m_dwTypeCount == countTypesAfterProfilerUpdate && m_dwExportedTypeCount == countExportedTypesAfterProfilerUpdate && m_dwCustomAttributeCount == countCustomAttributeCount) { // The profiler added no new types, do not create the in memory hashes return; } // R2R pre-computes an export table and tries to avoid populating a class hash at runtime. However the profiler can // still add new types on the fly by calling here. If that occurs we fallback to the slower path of creating the // in memory hashtable as usual. if (GetAvailableClassHash() == NULL) { // This call will populate the hash tables with anything that is in metadata already. GetClassLoader()->LazyPopulateCaseSensitiveHashTablesDontHaveLock(); } else { // If the hash tables already exist (either R2R and we've previously populated the ) we need to manually add the types. // typeDefs rids 0 and 1 aren't included in the count, thus X typeDefs before means rid X+1 was valid and our incremental addition should start at X+2 for (DWORD typeDefRid = m_dwTypeCount + 2; typeDefRid < countTypesAfterProfilerUpdate + 2; typeDefRid++) { GetAssembly()->AddType(this, TokenFromRid(typeDefRid, mdtTypeDef)); } // exportedType rid 0 isn't included in the count, thus X exportedTypes before means rid X was valid and our incremental addition should start at X+1 for (DWORD exportedTypeDef = m_dwExportedTypeCount + 1; exportedTypeDef < countExportedTypesAfterProfilerUpdate + 1; exportedTypeDef++) { GetAssembly()->AddExportedType(TokenFromRid(exportedTypeDef, mdtExportedType)); } if ((countCustomAttributeCount != m_dwCustomAttributeCount) && IsReadyToRun()) { // Set of custom attributes has changed. Disable the cuckoo filter from ready to run, and do normal custom attribute parsing GetReadyToRunInfo()->DisableCustomAttributeFilter(); } } m_dwTypeCount = countTypesAfterProfilerUpdate; m_dwExportedTypeCount = countExportedTypesAfterProfilerUpdate; m_dwCustomAttributeCount = countCustomAttributeCount; } #endif // PROFILING_SUPPORTED || EnC_SUPPORTED #if PROFILING_SUPPORTED void Module::NotifyProfilerLoadFinished(HRESULT hr) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); MODE_ANY; } CONTRACTL_END; // Note that in general we wil reuse shared modules. So we need to make sure we only notify // the profiler once. if (SetTransientFlagInterlocked(IS_PROFILER_NOTIFIED)) { // Record how many types are already present m_dwTypeCount = GetMDImport()->GetCountWithTokenKind(mdtTypeDef); m_dwExportedTypeCount = GetMDImport()->GetCountWithTokenKind(mdtExportedType); m_dwCustomAttributeCount = GetMDImport()->GetCountWithTokenKind(mdtCustomAttribute); BOOL profilerCallbackHappened = FALSE; // Notify the profiler, this may cause metadata to be updated { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); { GCX_PREEMP(); (&g_profControlBlock)->ModuleLoadFinished((ModuleID) this, hr); if (SUCCEEDED(hr)) { (&g_profControlBlock)->ModuleAttachedToAssembly((ModuleID) this, (AssemblyID)m_pAssembly); } profilerCallbackHappened = TRUE; } END_PROFILER_CALLBACK(); } // If there are more types than before, add these new types to the // assembly if (profilerCallbackHappened) { UpdateNewlyAddedTypes(); } { BEGIN_PROFILER_CALLBACK(CORProfilerTrackAssemblyLoads()); if (IsManifest()) { GCX_COOP(); (&g_profControlBlock)->AssemblyLoadFinished((AssemblyID) m_pAssembly, hr); } END_PROFILER_CALLBACK(); } } } #endif // PROFILING_SUPPORTED void Module::NotifyEtwLoadFinished(HRESULT hr) { CONTRACTL { NOTHROW; GC_TRIGGERS; } CONTRACTL_END // we report only successful loads if (SUCCEEDED(hr) && ETW_TRACING_CATEGORY_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_DOTNET_Context, TRACE_LEVEL_INFORMATION, KEYWORDZERO)) { BOOL fSharedModule = !SetTransientFlagInterlocked(IS_ETW_NOTIFIED); ETW::LoaderLog::ModuleLoad(this, fSharedModule); } } // Module initialization occurs in two phases: the constructor phase and the Initialize phase. // // The constructor phase initializes just enough so that Destruct() can be safely called. // It cannot throw or fail. // Module::Module(Assembly *pAssembly, mdFile moduleRef, PEAssembly *pPEAssembly) { CONTRACTL { NOTHROW; GC_TRIGGERS; FORBID_FAULT; } CONTRACTL_END PREFIX_ASSUME(pAssembly != NULL); m_pAssembly = pAssembly; m_moduleRef = moduleRef; m_pPEAssembly = pPEAssembly; m_dwTransientFlags = CLASSES_FREED; // Memory allocated on LoaderHeap is zero-filled. Spot-check it here. _ASSERTE(m_pBinder == NULL); pPEAssembly->AddRef(); } void Module::InitializeForProfiling() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_PREEMPTIVE; PRECONDITION(IsReadyToRun()); } CONTRACTL_END; COUNT_T cbProfileList = 0; m_nativeImageProfiling = FALSE; #ifdef FEATURE_READYTORUN // We already setup the m_methodProfileList in the ReadyToRunInfo constructor if (m_methodProfileList != nullptr) { ReadyToRunInfo * pInfo = GetReadyToRunInfo(); PEImageLayout * pImage = pInfo->GetImage(); // Enable profiling if the ZapBBInstr value says to m_nativeImageProfiling = GetAssembly()->IsInstrumented(); } #endif } BOOL Module::IsPersistedObject(void *address) { LIMITED_METHOD_CONTRACT; return FALSE; } uint32_t Module::GetNativeMetadataAssemblyCount() { if (m_pNativeImage != NULL) { return m_pNativeImage->GetManifestAssemblyCount(); } else { return GetNativeAssemblyImport()->GetCountWithTokenKind(mdtAssemblyRef); } } void Module::SetNativeMetadataAssemblyRefInCache(DWORD rid, PTR_Assembly pAssembly) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; if (m_NativeMetadataAssemblyRefMap == NULL) { uint32_t dwMaxRid = GetNativeMetadataAssemblyCount(); _ASSERTE(dwMaxRid > 0); S_SIZE_T dwAllocSize = S_SIZE_T(sizeof(PTR_Assembly)) * S_SIZE_T(dwMaxRid); AllocMemTracker amTracker; PTR_Assembly* NativeMetadataAssemblyRefMap = (PTR_Assembly*)amTracker.Track(GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(dwAllocSize)); // Note: Memory allocated on loader heap is zero filled if (InterlockedCompareExchangeT<PTR_Assembly*>(&m_NativeMetadataAssemblyRefMap, NativeMetadataAssemblyRefMap, NULL) == NULL) amTracker.SuppressRelease(); } _ASSERTE(m_NativeMetadataAssemblyRefMap != NULL); _ASSERTE(rid <= GetNativeMetadataAssemblyCount()); VolatileStore(&m_NativeMetadataAssemblyRefMap[rid - 1], pAssembly); } // Module initialization occurs in two phases: the constructor phase and the Initialize phase. // // The Initialize() phase completes the initialization after the constructor has run. // It can throw exceptions but whether it throws or succeeds, it must leave the Module // in a state where Destruct() can be safely called. // // szName is only used by dynamic modules, see ReflectionModule::Initialize // void Module::Initialize(AllocMemTracker *pamTracker, LPCWSTR szName) { CONTRACTL { INSTANCE_CHECK; STANDARD_VM_CHECK; PRECONDITION(szName == NULL); } CONTRACTL_END; m_pSimpleName = m_pPEAssembly->GetSimpleName(); m_Crst.Init(CrstModule); m_LookupTableCrst.Init(CrstModuleLookupTable, CrstFlags(CRST_UNSAFE_ANYMODE | CRST_DEBUGGER_THREAD)); m_FixupCrst.Init(CrstModuleFixup, (CrstFlags)(CRST_HOST_BREAKABLE|CRST_REENTRANCY)); m_InstMethodHashTableCrst.Init(CrstInstMethodHashTable, CRST_REENTRANCY); m_ISymUnmanagedReaderCrst.Init(CrstISymUnmanagedReader, CRST_DEBUGGER_THREAD); m_DictionaryCrst.Init(CrstDomainLocalBlock); AllocateMaps(); m_dwTransientFlags &= ~((DWORD)CLASSES_FREED); // Set flag indicating LookupMaps are now in a consistent and destructable state #ifdef FEATURE_COLLECTIBLE_TYPES if (GetAssembly()->IsCollectible()) { FastInterlockOr(&m_dwPersistedFlags, COLLECTIBLE_MODULE); } #endif // FEATURE_COLLECTIBLE_TYPES #ifdef FEATURE_READYTORUN m_pNativeImage = NULL; if ((m_pReadyToRunInfo = ReadyToRunInfo::Initialize(this, pamTracker)) != NULL) { m_pNativeImage = m_pReadyToRunInfo->GetNativeImage(); if (m_pNativeImage != NULL) { m_NativeMetadataAssemblyRefMap = m_pNativeImage->GetManifestMetadataAssemblyRefMap(); } else { // For composite images, manifest metadata gets loaded as part of the native image COUNT_T cMeta = 0; if (GetPEAssembly()->GetPEImage()->GetNativeManifestMetadata(&cMeta) != NULL) { // Load the native assembly import GetNativeAssemblyImport(TRUE /* loadAllowed */); } } } #endif // Initialize the instance fields that we need for all Modules if (m_pAvailableClasses == NULL && !IsReadyToRun()) { m_pAvailableClasses = EEClassHashTable::Create(this, GetAssembly()->IsCollectible() ? AVAILABLE_CLASSES_HASH_BUCKETS_COLLECTIBLE : AVAILABLE_CLASSES_HASH_BUCKETS, FALSE /* bCaseInsensitive */, pamTracker); } if (m_pAvailableParamTypes == NULL) { m_pAvailableParamTypes = EETypeHashTable::Create(GetLoaderAllocator(), this, PARAMTYPES_HASH_BUCKETS, pamTracker); } if (m_pInstMethodHashTable == NULL) { m_pInstMethodHashTable = InstMethodHashTable::Create(GetLoaderAllocator(), this, PARAMMETHODS_HASH_BUCKETS, pamTracker); } if (m_pMemberRefToDescHashTable == NULL) { if (IsReflection()) { m_pMemberRefToDescHashTable = MemberRefToDescHashTable::Create(this, MEMBERREF_MAP_INITIAL_SIZE, pamTracker); } else { IMDInternalImport* pImport = GetMDImport(); // Get #MemberRefs and create memberrefToDesc hash table m_pMemberRefToDescHashTable = MemberRefToDescHashTable::Create(this, pImport->GetCountWithTokenKind(mdtMemberRef) + 1, pamTracker); } } // this will be initialized a bit later. m_ModuleID = NULL; m_ModuleIndex.m_dwIndex = (SIZE_T)-1; // These will be initialized in NotifyProfilerLoadFinished, set them to // a safe initial value now. m_dwTypeCount = 0; m_dwExportedTypeCount = 0; m_dwCustomAttributeCount = 0; // Prepare statics that are known at module load time AllocateStatics(pamTracker); if (IsReadyToRun()) { InitializeForProfiling(); } if (m_AssemblyRefByNameTable == NULL) { Module::CreateAssemblyRefByNameTable(pamTracker); } #if defined(PROFILING_SUPPORTED) && !defined(DACCESS_COMPILE) m_pJitInlinerTrackingMap = NULL; if (ReJitManager::IsReJITInlineTrackingEnabled()) { m_pJitInlinerTrackingMap = new JITInlineTrackingMap(GetLoaderAllocator()); } #endif // defined (PROFILING_SUPPORTED) &&!defined(DACCESS_COMPILE) LOG((LF_CLASSLOADER, LL_INFO10, "Loaded pModule: \"%ws\".\n", GetDebugName())); } #endif // DACCESS_COMPILE #ifndef DACCESS_COMPILE MemberRefToDescHashTable* MemberRefToDescHashTable::Create(Module *pModule, DWORD cInitialBuckets, AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(!FORBIDGC_LOADER_USE_ENABLED()); } CONTRACTL_END; LoaderHeap *pHeap = pModule->GetAssembly()->GetLowFrequencyHeap(); MemberRefToDescHashTable *pThis = (MemberRefToDescHashTable*)pamTracker->Track(pHeap->AllocMem((S_SIZE_T)sizeof(MemberRefToDescHashTable))); // The base class get initialized through chaining of constructors. We allocated the hash instance via the // loader heap instead of new so use an in-place new to call the constructors now. new (pThis) MemberRefToDescHashTable(pModule, pHeap, cInitialBuckets); return pThis; } //Inserts FieldRef MemberRefToDescHashEntry* MemberRefToDescHashTable::Insert(mdMemberRef token , FieldDesc *value) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(!FORBIDGC_LOADER_USE_ENABLED()); } CONTRACTL_END; LookupContext sAltContext; _ASSERTE((dac_cast<TADDR>(value) & IS_FIELD_MEMBER_REF) == 0); MemberRefToDescHashEntry *pEntry = (PTR_MemberRefToDescHashEntry) BaseFindFirstEntryByHash(RidFromToken(token), &sAltContext); if (pEntry != NULL) { // If memberRef is hot token in that case entry for memberref is already persisted in ngen image. So entry for it will already be present in hash table. // However its value will be null. We need to set its actual value. if(pEntry->m_value == dac_cast<TADDR>(NULL)) { pEntry->m_value = dac_cast<TADDR>(value)|IS_FIELD_MEMBER_REF; } _ASSERTE(pEntry->m_value == (dac_cast<TADDR>(value)|IS_FIELD_MEMBER_REF)); return pEntry; } // For non hot tokens insert new entry in hashtable pEntry = BaseAllocateEntry(NULL); pEntry->m_value = dac_cast<TADDR>(value)|IS_FIELD_MEMBER_REF; BaseInsertEntry(RidFromToken(token), pEntry); return pEntry; } // Insert MethodRef MemberRefToDescHashEntry* MemberRefToDescHashTable::Insert(mdMemberRef token , MethodDesc *value) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(!FORBIDGC_LOADER_USE_ENABLED()); } CONTRACTL_END; LookupContext sAltContext; MemberRefToDescHashEntry *pEntry = (PTR_MemberRefToDescHashEntry) BaseFindFirstEntryByHash(RidFromToken(token), &sAltContext); if (pEntry != NULL) { // If memberRef is hot token in that case entry for memberref is already persisted in ngen image. So entry for it will already be present in hash table. // However its value will be null. We need to set its actual value. if(pEntry->m_value == dac_cast<TADDR>(NULL)) { pEntry->m_value = dac_cast<TADDR>(value); } _ASSERTE(pEntry->m_value == dac_cast<TADDR>(value)); return pEntry; } // For non hot tokens insert new entry in hashtable pEntry = BaseAllocateEntry(NULL); pEntry->m_value = dac_cast<TADDR>(value); BaseInsertEntry(RidFromToken(token), pEntry); return pEntry; } #endif // !DACCESS_COMPILE PTR_MemberRef MemberRefToDescHashTable::GetValue(mdMemberRef token, BOOL *pfIsMethod) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; LookupContext sAltContext; MemberRefToDescHashEntry *pEntry = (PTR_MemberRefToDescHashEntry) BaseFindFirstEntryByHash(RidFromToken(token), &sAltContext); if (pEntry != NULL) { if(pEntry->m_value & IS_FIELD_MEMBER_REF) *pfIsMethod = FALSE; else *pfIsMethod = TRUE; return (PTR_MemberRef)(pEntry->m_value & (~MEMBER_REF_MAP_ALL_FLAGS)); } return NULL; } void Module::SetDebuggerInfoBits(DebuggerAssemblyControlFlags newBits) { LIMITED_METHOD_CONTRACT; SUPPORTS_DAC; _ASSERTE(((newBits << DEBUGGER_INFO_SHIFT_PRIV) & ~DEBUGGER_INFO_MASK_PRIV) == 0); m_dwTransientFlags &= ~DEBUGGER_INFO_MASK_PRIV; m_dwTransientFlags |= (newBits << DEBUGGER_INFO_SHIFT_PRIV); #ifdef DEBUGGING_SUPPORTED if (IsEditAndContinueCapable()) { BOOL setEnC = (newBits & DACF_ENC_ENABLED) != 0 || g_pConfig->ForceEnc() || (g_pConfig->DebugAssembliesModifiable() && CORDisableJITOptimizations(GetDebuggerInfoBits())); if (setEnC) { EnableEditAndContinue(); } } #endif // DEBUGGING_SUPPORTED #if defined(DACCESS_COMPILE) // Now that we've changed m_dwTransientFlags, update that in the target too. // This will fail for read-only target. // If this fails, it will throw an exception. // @dbgtodo dac write: finalize on plans for how DAC writes to the target. HRESULT hrDac; hrDac = DacWriteHostInstance(this, true); _ASSERTE(SUCCEEDED(hrDac)); // would throw if there was an error. #endif // DACCESS_COMPILE } #ifndef DACCESS_COMPILE /* static */ Module *Module::Create(Assembly *pAssembly, mdFile moduleRef, PEAssembly *pPEAssembly, AllocMemTracker *pamTracker) { CONTRACT(Module *) { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pAssembly)); PRECONDITION(CheckPointer(pPEAssembly)); POSTCONDITION(CheckPointer(RETVAL)); POSTCONDITION(RETVAL->GetPEAssembly() == pPEAssembly); } CONTRACT_END; // Hoist CONTRACT into separate routine because of EX incompatibility Module *pModule = NULL; // Create the module #ifdef EnC_SUPPORTED if (IsEditAndContinueCapable(pAssembly, pPEAssembly)) { // if file is EnCCapable, always create an EnC-module, but EnC won't necessarily be enabled. // Debugger enables this by calling SetJITCompilerFlags on LoadModule callback. void* pMemory = pamTracker->Track(pAssembly->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(EditAndContinueModule)))); pModule = new (pMemory) EditAndContinueModule(pAssembly, moduleRef, pPEAssembly); } else #endif // EnC_SUPPORTED { void* pMemory = pamTracker->Track(pAssembly->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(Module)))); pModule = new (pMemory) Module(pAssembly, moduleRef, pPEAssembly); } PREFIX_ASSUME(pModule != NULL); ModuleHolder pModuleSafe(pModule); pModuleSafe->DoInit(pamTracker, NULL); RETURN pModuleSafe.Extract(); } void Module::ApplyMetaData() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; LOG((LF_CLASSLOADER, LL_INFO100, "Module::ApplyNewMetaData %x\n", this)); HRESULT hr = S_OK; ULONG ulCount; #if defined(PROFILING_SUPPORTED) || defined(EnC_SUPPORTED) UpdateNewlyAddedTypes(); #endif // PROFILING_SUPPORTED || EnC_SUPPORTED // Ensure for TypeRef ulCount = GetMDImport()->GetCountWithTokenKind(mdtTypeRef) + 1; EnsureTypeRefCanBeStored(TokenFromRid(ulCount, mdtTypeRef)); // Ensure for AssemblyRef ulCount = GetMDImport()->GetCountWithTokenKind(mdtAssemblyRef) + 1; EnsureAssemblyRefCanBeStored(TokenFromRid(ulCount, mdtAssemblyRef)); // Ensure for MethodDef ulCount = GetMDImport()->GetCountWithTokenKind(mdtMethodDef) + 1; EnsureMethodDefCanBeStored(TokenFromRid(ulCount, mdtMethodDef)); } // // Destructor for Module // void Module::Destruct() { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_TRIGGERS; MODE_PREEMPTIVE; } CONTRACTL_END; LOG((LF_EEMEM, INFO3, "Deleting module %x\n", this)); #ifdef PROFILING_SUPPORTED { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); if (!IsBeingUnloaded()) { // Profiler is causing some peripheral class loads. Probably this just needs // to be turned into a Fault_not_fatal and moved to a specific place inside the profiler. EX_TRY { GCX_PREEMP(); (&g_profControlBlock)->ModuleUnloadStarted((ModuleID) this); } EX_CATCH { } EX_END_CATCH(SwallowAllExceptions); } END_PROFILER_CALLBACK(); } #endif // PROFILING_SUPPORTED DACNotify::DoModuleUnloadNotification(this); // Free classes in the class table FreeClassTables(); #ifdef DEBUGGING_SUPPORTED if (g_pDebugInterface) { GCX_PREEMP(); g_pDebugInterface->DestructModule(this); } #endif // DEBUGGING_SUPPORTED ReleaseISymUnmanagedReader(); // Clean up sig cookies VASigCookieBlock *pVASigCookieBlock = m_pVASigCookieBlock; while (pVASigCookieBlock) { VASigCookieBlock *pNext = pVASigCookieBlock->m_Next; delete pVASigCookieBlock; pVASigCookieBlock = pNext; } // Clean up the IL stub cache if (m_pILStubCache != NULL) { delete m_pILStubCache; } #ifdef PROFILING_SUPPORTED { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); // Profiler is causing some peripheral class loads. Probably this just needs // to be turned into a Fault_not_fatal and moved to a specific place inside the profiler. EX_TRY { GCX_PREEMP(); (&g_profControlBlock)->ModuleUnloadFinished((ModuleID) this, S_OK); } EX_CATCH { } EX_END_CATCH(SwallowAllExceptions); END_PROFILER_CALLBACK(); } #endif // PROFILING_SUPPORTED // // Warning - deleting the zap file will cause the module to be unmapped // ClearInMemorySymbolStream(); m_Crst.Destroy(); m_FixupCrst.Destroy(); m_LookupTableCrst.Destroy(); m_InstMethodHashTableCrst.Destroy(); m_ISymUnmanagedReaderCrst.Destroy(); if (m_debuggerSpecificData.m_pDynamicILCrst) { delete m_debuggerSpecificData.m_pDynamicILCrst; } if (m_debuggerSpecificData.m_pDynamicILBlobTable) { delete m_debuggerSpecificData.m_pDynamicILBlobTable; } if (m_debuggerSpecificData.m_pTemporaryILBlobTable) { delete m_debuggerSpecificData.m_pTemporaryILBlobTable; } if (m_debuggerSpecificData.m_pILOffsetMappingTable) { for (ILOffsetMappingTable::Iterator pCurElem = m_debuggerSpecificData.m_pILOffsetMappingTable->Begin(), pEndElem = m_debuggerSpecificData.m_pILOffsetMappingTable->End(); pCurElem != pEndElem; pCurElem++) { ILOffsetMappingEntry entry = *pCurElem; entry.m_mapping.Clear(); } delete m_debuggerSpecificData.m_pILOffsetMappingTable; } m_pPEAssembly->Release(); // If this module was loaded as domain-specific, then // we must free its ModuleIndex so that it can be reused FreeModuleIndex(); } bool Module::NeedsGlobalMethodTable() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; IMDInternalImport * pImport = GetMDImport(); if (pImport->IsValidToken(COR_GLOBAL_PARENT_TOKEN)) { { HENUMInternalHolder funcEnum(pImport); funcEnum.EnumGlobalFunctionsInit(); if (pImport->EnumGetCount(&funcEnum) != 0) return true; } { HENUMInternalHolder fieldEnum(pImport); fieldEnum.EnumGlobalFieldsInit(); if (pImport->EnumGetCount(&fieldEnum) != 0) return true; } } // resource module or no global statics nor global functions return false; } MethodTable *Module::GetGlobalMethodTable() { CONTRACT (MethodTable *) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL;); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; if ((m_dwPersistedFlags & COMPUTED_GLOBAL_CLASS) == 0) { MethodTable *pMT = NULL; if (NeedsGlobalMethodTable()) { pMT = ClassLoader::LoadTypeDefThrowing(this, COR_GLOBAL_PARENT_TOKEN, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef).AsMethodTable(); } FastInterlockOr(&m_dwPersistedFlags, COMPUTED_GLOBAL_CLASS); RETURN pMT; } else { RETURN LookupTypeDef(COR_GLOBAL_PARENT_TOKEN).AsMethodTable(); } } #endif // !DACCESS_COMPILE /*static*/ BOOL Module::IsEditAndContinueCapable(Assembly *pAssembly, PEAssembly *pPEAssembly) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; _ASSERTE(pAssembly != NULL && pPEAssembly != NULL); // Some modules are never EnC-capable return ! (pAssembly->GetDebuggerInfoBits() & DACF_ALLOW_JIT_OPTS || pPEAssembly->IsSystem() || pPEAssembly->IsDynamic()); } BOOL Module::IsManifest() { WRAPPER_NO_CONTRACT; return dac_cast<TADDR>(GetAssembly()->GetModule()) == dac_cast<TADDR>(this); } DomainAssembly* Module::GetDomainAssembly() { LIMITED_METHOD_DAC_CONTRACT; return dac_cast<PTR_DomainAssembly>(m_ModuleID->GetDomainAssembly()); } #ifndef DACCESS_COMPILE #include "staticallocationhelpers.inl" // Parses metadata and initializes offsets of per-class static blocks. void Module::BuildStaticsOffsets(AllocMemTracker *pamTracker) { STANDARD_VM_CONTRACT; // Trade off here. We want a slot for each type. That way we can get to 2 bits per class and // index directly and not need a mapping from ClassID to MethodTable (we will use the RID // as the mapping) IMDInternalImport *pImport = GetMDImport(); DWORD * pRegularStaticOffsets = NULL; DWORD * pThreadStaticOffsets = NULL; // Get the number of types/classes defined in this module. Add 1 to count the module itself DWORD dwNumTypes = pImport->GetCountWithTokenKind(mdtTypeDef) + 1; // +1 for module type // [0] covers regular statics, [1] covers thread statics DWORD dwGCHandles[2] = { 0, 0 }; // Organization in memory of the static block // // // | GC Statics | // | // | // | Class Data (one byte per class) | pointer to gc statics | primitive type statics | // // #ifndef CROSSBITNESS_COMPILE // The assertions must hold in every non-crossbitness scenario _ASSERTE(OFFSETOF__DomainLocalModule__m_pDataBlob_ == DomainLocalModule::OffsetOfDataBlob()); _ASSERTE(OFFSETOF__ThreadLocalModule__m_pDataBlob == ThreadLocalModule::OffsetOfDataBlob()); #endif DWORD dwNonGCBytes[2] = { DomainLocalModule::OffsetOfDataBlob() + (DWORD)(sizeof(BYTE)*dwNumTypes), ThreadLocalModule::OffsetOfDataBlob() + (DWORD)(sizeof(BYTE)*dwNumTypes) }; HENUMInternalHolder hTypeEnum(pImport); hTypeEnum.EnumAllInit(mdtTypeDef); mdTypeDef type; // Parse each type of the class while (pImport->EnumNext(&hTypeEnum, &type)) { // Set offset for this type DWORD dwIndex = RidFromToken(type) - 1; // [0] covers regular statics, [1] covers thread statics DWORD dwAlignment[2] = { 1, 1 }; DWORD dwClassNonGCBytes[2] = { 0, 0 }; DWORD dwClassGCHandles[2] = { 0, 0 }; // need to check if the type is generic and if so exclude it from iteration as we don't know the size HENUMInternalHolder hGenericEnum(pImport); hGenericEnum.EnumInit(mdtGenericParam, type); ULONG cGenericParams = pImport->EnumGetCount(&hGenericEnum); if (cGenericParams == 0) { HENUMInternalHolder hFieldEnum(pImport); hFieldEnum.EnumInit(mdtFieldDef, type); mdFieldDef field; // Parse each field of the type while (pImport->EnumNext(&hFieldEnum, &field)) { BOOL fSkip = FALSE; CorElementType ElementType = ELEMENT_TYPE_END; mdToken tkValueTypeToken = 0; int kk; // Use one set of variables for regular statics, and the other set for thread statics fSkip = GetStaticFieldElementTypeForFieldDef(this, pImport, field, &ElementType, &tkValueTypeToken, &kk); if (fSkip) continue; // We account for "regular statics" and "thread statics" separately. // Currently we are lumping RVA into "regular statics", // but we probably shouldn't. switch (ElementType) { case ELEMENT_TYPE_I1: case ELEMENT_TYPE_U1: case ELEMENT_TYPE_BOOLEAN: dwClassNonGCBytes[kk] += 1; break; case ELEMENT_TYPE_I2: case ELEMENT_TYPE_U2: case ELEMENT_TYPE_CHAR: dwAlignment[kk] = max(2, dwAlignment[kk]); dwClassNonGCBytes[kk] += 2; break; case ELEMENT_TYPE_I4: case ELEMENT_TYPE_U4: case ELEMENT_TYPE_R4: dwAlignment[kk] = max(4, dwAlignment[kk]); dwClassNonGCBytes[kk] += 4; break; case ELEMENT_TYPE_FNPTR: case ELEMENT_TYPE_PTR: case ELEMENT_TYPE_I: case ELEMENT_TYPE_U: dwAlignment[kk] = max((1 << LOG2_PTRSIZE), dwAlignment[kk]); dwClassNonGCBytes[kk] += (1 << LOG2_PTRSIZE); break; case ELEMENT_TYPE_I8: case ELEMENT_TYPE_U8: case ELEMENT_TYPE_R8: dwAlignment[kk] = max(8, dwAlignment[kk]); dwClassNonGCBytes[kk] += 8; break; case ELEMENT_TYPE_VAR: case ELEMENT_TYPE_MVAR: case ELEMENT_TYPE_STRING: case ELEMENT_TYPE_SZARRAY: case ELEMENT_TYPE_ARRAY: case ELEMENT_TYPE_CLASS: case ELEMENT_TYPE_OBJECT: dwClassGCHandles[kk] += 1; break; case ELEMENT_TYPE_VALUETYPE: // Statics for valuetypes where the valuetype is defined in this module are handled here. Other valuetype statics utilize the pessimistic model below. dwClassGCHandles[kk] += 1; break; case ELEMENT_TYPE_END: default: // The actual element type was ELEMENT_TYPE_VALUETYPE, but the as we don't want to load additional assemblies // to determine these static offsets, we've fallen back to a pessimistic model. if (tkValueTypeToken != 0) { // We'll have to be pessimistic here dwClassNonGCBytes[kk] += MAX_PRIMITIVE_FIELD_SIZE; dwAlignment[kk] = max(MAX_PRIMITIVE_FIELD_SIZE, dwAlignment[kk]); dwClassGCHandles[kk] += 1; break; } else { // field has an unexpected type ThrowHR(VER_E_FIELD_SIG); break; } } } if (pRegularStaticOffsets == NULL && (dwClassGCHandles[0] != 0 || dwClassNonGCBytes[0] != 0)) { // Lazily allocate table for offsets. We need offsets for GC and non GC areas. We add +1 to use as a sentinel. pRegularStaticOffsets = (PTR_DWORD)pamTracker->Track( GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem( (S_SIZE_T(2 * sizeof(DWORD))*(S_SIZE_T(dwNumTypes)+S_SIZE_T(1))))); for (DWORD i = 0; i < dwIndex; i++) { pRegularStaticOffsets[i * 2 ] = dwGCHandles[0]*TARGET_POINTER_SIZE; pRegularStaticOffsets[i * 2 + 1] = dwNonGCBytes[0]; } } if (pThreadStaticOffsets == NULL && (dwClassGCHandles[1] != 0 || dwClassNonGCBytes[1] != 0)) { // Lazily allocate table for offsets. We need offsets for GC and non GC areas. We add +1 to use as a sentinel. pThreadStaticOffsets = (PTR_DWORD)pamTracker->Track( GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem( (S_SIZE_T(2 * sizeof(DWORD))*(S_SIZE_T(dwNumTypes)+S_SIZE_T(1))))); for (DWORD i = 0; i < dwIndex; i++) { pThreadStaticOffsets[i * 2 ] = dwGCHandles[1]*TARGET_POINTER_SIZE; pThreadStaticOffsets[i * 2 + 1] = dwNonGCBytes[1]; } } } if (pRegularStaticOffsets != NULL) { // Align the offset of non gc statics dwNonGCBytes[0] = (DWORD) ALIGN_UP(dwNonGCBytes[0], dwAlignment[0]); // Save current offsets pRegularStaticOffsets[dwIndex*2] = dwGCHandles[0]*TARGET_POINTER_SIZE; pRegularStaticOffsets[dwIndex*2 + 1] = dwNonGCBytes[0]; // Increment for next class dwGCHandles[0] += dwClassGCHandles[0]; dwNonGCBytes[0] += dwClassNonGCBytes[0]; } if (pThreadStaticOffsets != NULL) { // Align the offset of non gc statics dwNonGCBytes[1] = (DWORD) ALIGN_UP(dwNonGCBytes[1], dwAlignment[1]); // Save current offsets pThreadStaticOffsets[dwIndex*2] = dwGCHandles[1]*TARGET_POINTER_SIZE; pThreadStaticOffsets[dwIndex*2 + 1] = dwNonGCBytes[1]; // Increment for next class dwGCHandles[1] += dwClassGCHandles[1]; dwNonGCBytes[1] += dwClassNonGCBytes[1]; } } m_maxTypeRidStaticsAllocated = dwNumTypes; if (pRegularStaticOffsets != NULL) { pRegularStaticOffsets[dwNumTypes*2] = dwGCHandles[0]*TARGET_POINTER_SIZE; pRegularStaticOffsets[dwNumTypes*2 + 1] = dwNonGCBytes[0]; } if (pThreadStaticOffsets != NULL) { pThreadStaticOffsets[dwNumTypes*2] = dwGCHandles[1]*TARGET_POINTER_SIZE; pThreadStaticOffsets[dwNumTypes*2 + 1] = dwNonGCBytes[1]; } m_pRegularStaticOffsets = pRegularStaticOffsets; m_pThreadStaticOffsets = pThreadStaticOffsets; m_dwMaxGCRegularStaticHandles = dwGCHandles[0]; m_dwMaxGCThreadStaticHandles = dwGCHandles[1]; m_dwRegularStaticsBlockSize = dwNonGCBytes[0]; m_dwThreadStaticsBlockSize = dwNonGCBytes[1]; } void Module::GetOffsetsForRegularStaticData( mdToken cl, BOOL bDynamic, DWORD dwGCStaticHandles, DWORD dwNonGCStaticBytes, DWORD * pOutStaticHandleOffset, DWORD * pOutNonGCStaticOffset) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END *pOutStaticHandleOffset = 0; *pOutNonGCStaticOffset = 0; if (!dwGCStaticHandles && !dwNonGCStaticBytes) { return; } #ifndef CROSSBITNESS_COMPILE _ASSERTE(OFFSETOF__DomainLocalModule__NormalDynamicEntry__m_pDataBlob == DomainLocalModule::DynamicEntry::GetOffsetOfDataBlob()); #endif // Statics for instantiated types are allocated dynamically per-instantiation if (bDynamic) { // Non GC statics are embedded in the Dynamic Entry. *pOutNonGCStaticOffset = OFFSETOF__DomainLocalModule__NormalDynamicEntry__m_pDataBlob; return; } if (m_pRegularStaticOffsets == NULL) { THROW_BAD_FORMAT(BFA_METADATA_CORRUPT, this); } _ASSERTE(m_pRegularStaticOffsets != (PTR_DWORD) NGEN_STATICS_ALLCLASSES_WERE_LOADED); // We allocate in the big blob. DWORD index = RidFromToken(cl) - 1; *pOutStaticHandleOffset = m_pRegularStaticOffsets[index*2]; *pOutNonGCStaticOffset = m_pRegularStaticOffsets[index*2 + 1]; #ifdef CROSSBITNESS_COMPILE *pOutNonGCStaticOffset += OFFSETOF__DomainLocalModule__m_pDataBlob_ - DomainLocalModule::OffsetOfDataBlob(); #endif // Check we didnt go out of what we predicted we would need for the class if (*pOutStaticHandleOffset + TARGET_POINTER_SIZE*dwGCStaticHandles > m_pRegularStaticOffsets[(index+1)*2] || *pOutNonGCStaticOffset + dwNonGCStaticBytes > m_pRegularStaticOffsets[(index+1)*2 + 1]) { // It's most likely that this is due to bad metadata, thus the exception. However, the // previous comments for this bit of code mentioned that this could be a corner case bug // with static field size estimation, though this is entirely unlikely since the code has // been this way for at least two releases. THROW_BAD_FORMAT(BFA_METADATA_CORRUPT, this); } } void Module::GetOffsetsForThreadStaticData( mdToken cl, BOOL bDynamic, DWORD dwGCStaticHandles, DWORD dwNonGCStaticBytes, DWORD * pOutStaticHandleOffset, DWORD * pOutNonGCStaticOffset) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END *pOutStaticHandleOffset = 0; *pOutNonGCStaticOffset = 0; if (!dwGCStaticHandles && !dwNonGCStaticBytes) { return; } #ifndef CROSSBITNESS_COMPILE _ASSERTE(OFFSETOF__ThreadLocalModule__DynamicEntry__m_pDataBlob == ThreadLocalModule::DynamicEntry::GetOffsetOfDataBlob()); #endif // Statics for instantiated types are allocated dynamically per-instantiation if (bDynamic) { // Non GC thread statics are embedded in the Dynamic Entry. *pOutNonGCStaticOffset = OFFSETOF__ThreadLocalModule__DynamicEntry__m_pDataBlob; return; } if (m_pThreadStaticOffsets == NULL) { THROW_BAD_FORMAT(BFA_METADATA_CORRUPT, this); } _ASSERTE(m_pThreadStaticOffsets != (PTR_DWORD) NGEN_STATICS_ALLCLASSES_WERE_LOADED); // We allocate in the big blob. DWORD index = RidFromToken(cl) - 1; *pOutStaticHandleOffset = m_pThreadStaticOffsets[index*2]; *pOutNonGCStaticOffset = m_pThreadStaticOffsets[index*2 + 1]; #ifdef CROSSBITNESS_COMPILE *pOutNonGCStaticOffset += OFFSETOF__ThreadLocalModule__m_pDataBlob - ThreadLocalModule::GetOffsetOfDataBlob(); #endif // Check we didnt go out of what we predicted we would need for the class if (*pOutStaticHandleOffset + TARGET_POINTER_SIZE*dwGCStaticHandles > m_pThreadStaticOffsets[(index+1)*2] || *pOutNonGCStaticOffset + dwNonGCStaticBytes > m_pThreadStaticOffsets[(index+1)*2 + 1]) { // It's most likely that this is due to bad metadata, thus the exception. However, the // previous comments for this bit of code mentioned that this could be a corner case bug // with static field size estimation, though this is entirely unlikely since the code has // been this way for at least two releases. THROW_BAD_FORMAT(BFA_METADATA_CORRUPT, this); } } // initialize Crst controlling the Dynamic IL hashtable void Module::InitializeDynamicILCrst() { Crst * pCrst = new Crst(CrstDynamicIL, CrstFlags(CRST_UNSAFE_ANYMODE | CRST_DEBUGGER_THREAD)); if (InterlockedCompareExchangeT( &m_debuggerSpecificData.m_pDynamicILCrst, pCrst, NULL) != NULL) { delete pCrst; } } // Add a (token, address) pair to the table of IL blobs for reflection/dynamics // Arguments: // Input: // token method token // blobAddress address of the start of the IL blob address, including the header // fTemporaryOverride // is this a permanent override that should go in the // DynamicILBlobTable, or a temporary one? // Output: not explicit, but if the pair was not already in the table it will be added. // Does not add duplicate tokens to the table. void Module::SetDynamicIL(mdToken token, TADDR blobAddress, BOOL fTemporaryOverride) { DynamicILBlobEntry entry = {mdToken(token), TADDR(blobAddress)}; // Lazily allocate a Crst to serialize update access to the info structure. // Carefully synchronize to ensure we don't leak a Crst in race conditions. if (m_debuggerSpecificData.m_pDynamicILCrst == NULL) { InitializeDynamicILCrst(); } CrstHolder ch(m_debuggerSpecificData.m_pDynamicILCrst); // Figure out which table to fill in PTR_DynamicILBlobTable &table(fTemporaryOverride ? m_debuggerSpecificData.m_pTemporaryILBlobTable : m_debuggerSpecificData.m_pDynamicILBlobTable); // Lazily allocate the hash table. if (table == NULL) { table = PTR_DynamicILBlobTable(new DynamicILBlobTable); } table->AddOrReplace(entry); } #endif // !DACCESS_COMPILE // Get the stored address of the IL blob for reflection/dynamics // Arguments: // Input: // token method token // fAllowTemporary also check the temporary overrides // Return Value: starting (target) address of the IL blob corresponding to the input token TADDR Module::GetDynamicIL(mdToken token, BOOL fAllowTemporary) { SUPPORTS_DAC; #ifndef DACCESS_COMPILE // The Crst to serialize update access to the info structure is lazily allocated. // If it hasn't been allocated yet, then we don't have any IL blobs (temporary or otherwise) if (m_debuggerSpecificData.m_pDynamicILCrst == NULL) { return TADDR(NULL); } CrstHolder ch(m_debuggerSpecificData.m_pDynamicILCrst); #endif // Both hash tables are lazily allocated, so if they're NULL // then we have no IL blobs if (fAllowTemporary && m_debuggerSpecificData.m_pTemporaryILBlobTable != NULL) { DynamicILBlobEntry entry = m_debuggerSpecificData.m_pTemporaryILBlobTable->Lookup(token); // Only return a value if the lookup succeeded if (!DynamicILBlobTraits::IsNull(entry)) { return entry.m_il; } } if (m_debuggerSpecificData.m_pDynamicILBlobTable == NULL) { return TADDR(NULL); } DynamicILBlobEntry entry = m_debuggerSpecificData.m_pDynamicILBlobTable->Lookup(token); // If the lookup fails, it returns the 'NULL' entry // The 'NULL' entry has m_il set to NULL, so either way we're safe return entry.m_il; } #if !defined(DACCESS_COMPILE) //--------------------------------------------------------------------------------------- // // Add instrumented IL offset mapping for the specified method. // // Arguments: // token - the MethodDef token of the method in question // mapping - the mapping information between original IL offsets and instrumented IL offsets // // Notes: // * Once added, the mapping stays valid until the Module containing the method is destructed. // * The profiler may potentially update the mapping more than once. // void Module::SetInstrumentedILOffsetMapping(mdMethodDef token, InstrumentedILOffsetMapping mapping) { ILOffsetMappingEntry entry(token, mapping); // Lazily allocate a Crst to serialize update access to the hash table. // Carefully synchronize to ensure we don't leak a Crst in race conditions. if (m_debuggerSpecificData.m_pDynamicILCrst == NULL) { InitializeDynamicILCrst(); } CrstHolder ch(m_debuggerSpecificData.m_pDynamicILCrst); // Lazily allocate the hash table. if (m_debuggerSpecificData.m_pILOffsetMappingTable == NULL) { m_debuggerSpecificData.m_pILOffsetMappingTable = PTR_ILOffsetMappingTable(new ILOffsetMappingTable); } ILOffsetMappingEntry currentEntry = m_debuggerSpecificData.m_pILOffsetMappingTable->Lookup(ILOffsetMappingTraits::GetKey(entry)); if (!ILOffsetMappingTraits::IsNull(currentEntry)) currentEntry.m_mapping.Clear(); m_debuggerSpecificData.m_pILOffsetMappingTable->AddOrReplace(entry); } #endif // DACCESS_COMPILE //--------------------------------------------------------------------------------------- // // Retrieve the instrumented IL offset mapping for the specified method. // // Arguments: // token - the MethodDef token of the method in question // // Return Value: // Return the mapping information between original IL offsets and instrumented IL offsets. // Check InstrumentedILOffsetMapping::IsNull() to see if any mapping is available. // // Notes: // * Once added, the mapping stays valid until the Module containing the method is destructed. // * The profiler may potentially update the mapping more than once. // InstrumentedILOffsetMapping Module::GetInstrumentedILOffsetMapping(mdMethodDef token) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; // Lazily allocate a Crst to serialize update access to the hash table. // If the Crst is NULL, then we couldn't possibly have added any mapping yet, so just return NULL. if (m_debuggerSpecificData.m_pDynamicILCrst == NULL) { InstrumentedILOffsetMapping emptyMapping; return emptyMapping; } CrstHolder ch(m_debuggerSpecificData.m_pDynamicILCrst); // If the hash table hasn't been created, then we couldn't possibly have added any mapping yet, // so just return NULL. if (m_debuggerSpecificData.m_pILOffsetMappingTable == NULL) { InstrumentedILOffsetMapping emptyMapping; return emptyMapping; } ILOffsetMappingEntry entry = m_debuggerSpecificData.m_pILOffsetMappingTable->Lookup(token); return entry.m_mapping; } #undef DECODE_TYPEID #undef ENCODE_TYPEID #undef IS_ENCODED_TYPEID #ifndef DACCESS_COMPILE BOOL Module::HasDefaultDllImportSearchPathsAttribute() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if(IsDefaultDllImportSearchPathsAttributeCached()) { return (m_dwPersistedFlags & DEFAULT_DLL_IMPORT_SEARCH_PATHS_STATUS) != 0 ; } BOOL attributeIsFound = FALSE; attributeIsFound = GetDefaultDllImportSearchPathsAttributeValue(this, TokenFromRid(1, mdtAssembly),&m_DefaultDllImportSearchPathsAttributeValue); if(attributeIsFound) { FastInterlockOr(&m_dwPersistedFlags, DEFAULT_DLL_IMPORT_SEARCH_PATHS_IS_CACHED | DEFAULT_DLL_IMPORT_SEARCH_PATHS_STATUS); } else { FastInterlockOr(&m_dwPersistedFlags, DEFAULT_DLL_IMPORT_SEARCH_PATHS_IS_CACHED); } return (m_dwPersistedFlags & DEFAULT_DLL_IMPORT_SEARCH_PATHS_STATUS) != 0 ; } // Returns a BOOL to indicate if we have computed whether compiler has instructed us to // wrap the non-CLS compliant exceptions or not. BOOL Module::IsRuntimeWrapExceptionsStatusComputed() { LIMITED_METHOD_CONTRACT; return (m_dwPersistedFlags & COMPUTED_WRAP_EXCEPTIONS); } BOOL Module::IsRuntimeWrapExceptions() { CONTRACTL { THROWS; if (IsRuntimeWrapExceptionsStatusComputed()) GC_NOTRIGGER; else GC_TRIGGERS; MODE_ANY; } CONTRACTL_END if (!(IsRuntimeWrapExceptionsStatusComputed())) { HRESULT hr; BOOL fRuntimeWrapExceptions = FALSE; IMDInternalImport *mdImport = GetAssembly()->GetMDImport(); mdToken token; IfFailGo(mdImport->GetAssemblyFromScope(&token)); const BYTE *pVal; ULONG cbVal; hr = mdImport->GetCustomAttributeByName(token, RUNTIMECOMPATIBILITY_TYPE, (const void**)&pVal, &cbVal); // Parse the attribute if (hr == S_OK) { CustomAttributeParser ca(pVal, cbVal); CaNamedArg namedArgs[1] = {{0}}; // First, the void constructor: IfFailGo(ParseKnownCaArgs(ca, NULL, 0)); // Then, find the named argument namedArgs[0].InitBoolField("WrapNonExceptionThrows"); IfFailGo(ParseKnownCaNamedArgs(ca, namedArgs, ARRAY_SIZE(namedArgs))); if (namedArgs[0].val.boolean) fRuntimeWrapExceptions = TRUE; } ErrExit: FastInterlockOr(&m_dwPersistedFlags, COMPUTED_WRAP_EXCEPTIONS | (fRuntimeWrapExceptions ? WRAP_EXCEPTIONS : 0)); } return !!(m_dwPersistedFlags & WRAP_EXCEPTIONS); } BOOL Module::IsRuntimeMarshallingEnabled() { CONTRACTL { THROWS; if (IsRuntimeMarshallingEnabledCached()) GC_NOTRIGGER; else GC_TRIGGERS; MODE_ANY; } CONTRACTL_END if (IsRuntimeMarshallingEnabledCached()) { return !!(m_dwPersistedFlags & RUNTIME_MARSHALLING_ENABLED); } HRESULT hr; IMDInternalImport *mdImport = GetAssembly()->GetMDImport(); mdToken token; if (SUCCEEDED(hr = mdImport->GetAssemblyFromScope(&token))) { const BYTE *pVal; ULONG cbVal; hr = mdImport->GetCustomAttributeByName(token, g_DisableRuntimeMarshallingAttribute, (const void**)&pVal, &cbVal); } FastInterlockOr(&m_dwPersistedFlags, RUNTIME_MARSHALLING_ENABLED_IS_CACHED | (hr == S_OK ? 0 : RUNTIME_MARSHALLING_ENABLED)); return hr != S_OK; } BOOL Module::IsPreV4Assembly() { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END if (!(m_dwPersistedFlags & COMPUTED_IS_PRE_V4_ASSEMBLY)) { IMDInternalImport *pImport = GetAssembly()->GetMDImport(); _ASSERTE(pImport); BOOL fIsPreV4Assembly = FALSE; LPCSTR szVersion = NULL; if (SUCCEEDED(pImport->GetVersionString(&szVersion))) { if (szVersion != NULL && strlen(szVersion) > 2) { fIsPreV4Assembly = (szVersion[0] == 'v' || szVersion[0] == 'V') && (szVersion[1] == '1' || szVersion[1] == '2'); } } FastInterlockOr(&m_dwPersistedFlags, COMPUTED_IS_PRE_V4_ASSEMBLY | (fIsPreV4Assembly ? IS_PRE_V4_ASSEMBLY : 0)); } return !!(m_dwPersistedFlags & IS_PRE_V4_ASSEMBLY); } DWORD Module::AllocateDynamicEntry(MethodTable *pMT) { CONTRACTL { THROWS; GC_TRIGGERS; PRECONDITION(pMT->GetModuleForStatics() == this); PRECONDITION(pMT->IsDynamicStatics()); PRECONDITION(!pMT->ContainsGenericVariables()); } CONTRACTL_END; DWORD newId = FastInterlockExchangeAdd((LONG*)&m_cDynamicEntries, 1); if (newId >= VolatileLoad(&m_maxDynamicEntries)) { CrstHolder ch(&m_Crst); if (newId >= m_maxDynamicEntries) { SIZE_T maxDynamicEntries = max(16, m_maxDynamicEntries); while (maxDynamicEntries <= newId) { maxDynamicEntries *= 2; } DynamicStaticsInfo* pNewDynamicStaticsInfo = (DynamicStaticsInfo*) (void*)GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(DynamicStaticsInfo)) * S_SIZE_T(maxDynamicEntries)); if (m_pDynamicStaticsInfo) memcpy(pNewDynamicStaticsInfo, m_pDynamicStaticsInfo, sizeof(DynamicStaticsInfo) * m_maxDynamicEntries); m_pDynamicStaticsInfo = pNewDynamicStaticsInfo; VolatileStore(&m_maxDynamicEntries, maxDynamicEntries); } } m_pDynamicStaticsInfo[newId].pEnclosingMT = pMT; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Assigned dynamic ID %d to %s\n", newId, pMT->GetDebugClassName())); return newId; } void Module::FreeModuleIndex() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (m_ModuleID != NULL) { _ASSERTE(m_ModuleIndex == m_ModuleID->GetModuleIndex()); if (IsCollectible()) { ThreadStoreLockHolder tsLock; Thread *pThread = NULL; while ((pThread = ThreadStore::GetThreadList(pThread)) != NULL) { pThread->DeleteThreadStaticData(m_ModuleIndex); } } // Get the ModuleIndex from the DLM and free it Module::FreeModuleIndex(m_ModuleIndex); } else { // This was an empty, short-lived Module object that // was never assigned a ModuleIndex... } } ModuleIndex Module::AllocateModuleIndex() { DWORD val; g_pModuleIndexDispenser->NewId(NULL, val); // For various reasons, the IDs issued by the IdDispenser start at 1. // Domain neutral module IDs have historically started at 0, and we // have always assigned ID 0 to CoreLib. Thus, to make it so that // domain neutral module IDs start at 0, we will subtract 1 from the // ID that we got back from the ID dispenser. ModuleIndex index((SIZE_T)(val-1)); return index; } void Module::FreeModuleIndex(ModuleIndex index) { WRAPPER_NO_CONTRACT; // We subtracted 1 after we allocated this ID, so we need to // add 1 before we free it. DWORD val = index.m_dwIndex + 1; g_pModuleIndexDispenser->DisposeId(val); } void Module::AllocateRegularStaticHandles(AppDomain* pDomain) { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; // Allocate the handles we will need. Note that AllocateStaticFieldObjRefPtrs will only // allocate if pModuleData->GetGCStaticsBasePointerAddress(pMT) != 0, avoiding creating // handles more than once for a given MT or module DomainLocalModule *pModuleData = GetDomainLocalModule(); _ASSERTE(pModuleData->GetPrecomputedGCStaticsBasePointerAddress() != NULL); if (this->m_dwMaxGCRegularStaticHandles > 0) { pDomain->AllocateStaticFieldObjRefPtrs(this->m_dwMaxGCRegularStaticHandles, pModuleData->GetPrecomputedGCStaticsBasePointerAddress()); // We should throw if we fail to allocate and never hit this assert _ASSERTE(pModuleData->GetPrecomputedGCStaticsBasePointer() != NULL); } } BOOL Module::IsStaticStoragePrepared(mdTypeDef tkType) { LIMITED_METHOD_CONTRACT; // Right now the design is that we do one static allocation pass during NGEN, // and a 2nd pass for it at module init time for modules that weren't NGENed or the NGEN // pass was unsucessful. If we are loading types after that then we must use dynamic // static storage. These dynamic statics require an additional indirection so they // don't perform quite as well. // // This check was created for the scenario where a profiler adds additional types // however it seems likely this check would also accurately handle other dynamic // scenarios such as ref.emit and EnC as long as they are adding new types and // not new statics to existing types. _ASSERTE(TypeFromToken(tkType) == mdtTypeDef); return m_maxTypeRidStaticsAllocated >= RidFromToken(tkType); } void Module::AllocateStatics(AllocMemTracker *pamTracker) { STANDARD_VM_CONTRACT; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Allocating statics for module %s\n", GetSimpleName())); // Build the offset table, which will tell us what the offsets for the statics of each class are (one offset for gc handles, one offset // for non gc types) BuildStaticsOffsets(pamTracker); } void Module::SetDomainAssembly(DomainAssembly *pDomainAssembly) { CONTRACTL { INSTANCE_CHECK; PRECONDITION(CheckPointer(pDomainAssembly)); PRECONDITION(IsManifest()); THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; DomainLocalModule* pModuleData = 0; // Do we need to allocate memory for the non GC statics? if (m_ModuleID == NULL) { // Allocate memory for the module statics. LoaderAllocator *pLoaderAllocator = NULL; if (GetAssembly()->IsCollectible()) { pLoaderAllocator = GetAssembly()->GetLoaderAllocator(); } else { pLoaderAllocator = pDomainAssembly->GetAppDomain()->GetLoaderAllocator(); } SIZE_T size = GetDomainLocalModuleSize(); LOG((LF_CLASSLOADER, LL_INFO10, "STATICS: Allocating %i bytes for precomputed statics in module %S in LoaderAllocator %p\n", size, this->GetDebugName(), pLoaderAllocator)); // We guarantee alignment for 64-bit regular statics on 32-bit platforms even without FEATURE_64BIT_ALIGNMENT for performance reasons. _ASSERTE(size >= DomainLocalModule::OffsetOfDataBlob()); pModuleData = (DomainLocalModule*)(void*) pLoaderAllocator->GetHighFrequencyHeap()->AllocAlignedMem( size, MAX_PRIMITIVE_FIELD_SIZE); // Note: Memory allocated on loader heap is zero filled // memset(pModuleData, 0, size); // Verify that the space is really zero initialized _ASSERTE(pModuleData->GetPrecomputedGCStaticsBasePointer() == NULL); // If the module was loaded as domain-specific, then we need to assign // this module a domain-neutral module ID. pModuleData->m_ModuleIndex = Module::AllocateModuleIndex(); m_ModuleIndex = pModuleData->m_ModuleIndex; } else { pModuleData = this->m_ModuleID; LOG((LF_CLASSLOADER, LL_INFO10, "STATICS: Allocation not needed for ngened non shared module %s in Appdomain %08x\n")); } // Non shared case, module points directly to the statics. In ngen case // m_pDomainModule is already set for the non shared case if (m_ModuleID == NULL) { m_ModuleID = pModuleData; } m_ModuleID->SetDomainAssembly(pDomainAssembly); // Allocate static handles now. // NOTE: Bootstrapping issue with CoreLib - we will manually allocate later // If the assembly is collectible, we don't initialize static handles for them // as it is currently initialized through the DomainLocalModule::PopulateClass in MethodTable::CheckRunClassInitThrowing // (If we don't do this, it would allocate here unused regular static handles that will be overridden later) if (g_pPredefinedArrayTypes[ELEMENT_TYPE_OBJECT] != NULL && !GetAssembly()->IsCollectible()) AllocateRegularStaticHandles(pDomainAssembly->GetAppDomain()); } OBJECTREF Module::GetExposedObject() { CONTRACT(OBJECTREF) { INSTANCE_CHECK; POSTCONDITION(RETVAL != NULL); THROWS; GC_TRIGGERS; MODE_COOPERATIVE; } CONTRACT_END; RETURN GetDomainAssembly()->GetExposedModuleObject(); } // // AllocateMap allocates the RID maps based on the size of the current // metadata (if any) // void Module::AllocateMaps() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; enum { TYPEDEF_MAP_INITIAL_SIZE = 5, TYPEREF_MAP_INITIAL_SIZE = 5, MEMBERDEF_MAP_INITIAL_SIZE = 10, GENERICPARAM_MAP_INITIAL_SIZE = 5, GENERICTYPEDEF_MAP_INITIAL_SIZE = 5, FILEREFERENCES_MAP_INITIAL_SIZE = 5, ASSEMBLYREFERENCES_MAP_INITIAL_SIZE = 5, }; PTR_TADDR pTable = NULL; if (IsReflection()) { // For dynamic modules, it is essential that we at least have a TypeDefToMethodTable // map with an initial block. Otherwise, all the iterators will abort on an // initial empty table and we will e.g. corrupt the backpatching chains during // an appdomain unload. m_TypeDefToMethodTableMap.dwCount = TYPEDEF_MAP_INITIAL_SIZE; // The above is essential. The following ones are precautionary. m_TypeRefToMethodTableMap.dwCount = TYPEREF_MAP_INITIAL_SIZE; m_MethodDefToDescMap.dwCount = MEMBERDEF_MAP_INITIAL_SIZE; m_FieldDefToDescMap.dwCount = MEMBERDEF_MAP_INITIAL_SIZE; m_GenericParamToDescMap.dwCount = GENERICPARAM_MAP_INITIAL_SIZE; m_GenericTypeDefToCanonMethodTableMap.dwCount = TYPEDEF_MAP_INITIAL_SIZE; m_FileReferencesMap.dwCount = FILEREFERENCES_MAP_INITIAL_SIZE; m_ManifestModuleReferencesMap.dwCount = ASSEMBLYREFERENCES_MAP_INITIAL_SIZE; m_MethodDefToPropertyInfoMap.dwCount = MEMBERDEF_MAP_INITIAL_SIZE; } else { IMDInternalImport * pImport = GetMDImport(); // Get # TypeDefs (add 1 for COR_GLOBAL_PARENT_TOKEN) m_TypeDefToMethodTableMap.dwCount = pImport->GetCountWithTokenKind(mdtTypeDef)+2; // Get # TypeRefs m_TypeRefToMethodTableMap.dwCount = pImport->GetCountWithTokenKind(mdtTypeRef)+1; // Get # MethodDefs m_MethodDefToDescMap.dwCount = pImport->GetCountWithTokenKind(mdtMethodDef)+1; // Get # FieldDefs m_FieldDefToDescMap.dwCount = pImport->GetCountWithTokenKind(mdtFieldDef)+1; // Get # GenericParams m_GenericParamToDescMap.dwCount = pImport->GetCountWithTokenKind(mdtGenericParam)+1; // Get the number of FileReferences in the map m_FileReferencesMap.dwCount = pImport->GetCountWithTokenKind(mdtFile)+1; // Get the number of AssemblyReferences in the map m_ManifestModuleReferencesMap.dwCount = pImport->GetCountWithTokenKind(mdtAssemblyRef)+1; m_GenericTypeDefToCanonMethodTableMap.dwCount = 0; m_MethodDefToPropertyInfoMap.dwCount = 0; } S_SIZE_T nTotal; nTotal += m_TypeDefToMethodTableMap.dwCount; nTotal += m_TypeRefToMethodTableMap.dwCount; nTotal += m_MethodDefToDescMap.dwCount; nTotal += m_FieldDefToDescMap.dwCount; nTotal += m_GenericParamToDescMap.dwCount; nTotal += m_GenericTypeDefToCanonMethodTableMap.dwCount; nTotal += m_FileReferencesMap.dwCount; nTotal += m_ManifestModuleReferencesMap.dwCount; nTotal += m_MethodDefToPropertyInfoMap.dwCount; _ASSERTE (m_pAssembly && m_pAssembly->GetLowFrequencyHeap()); pTable = (PTR_TADDR)(void*)m_pAssembly->GetLowFrequencyHeap()->AllocMem(nTotal * S_SIZE_T(sizeof(TADDR))); // Note: Memory allocated on loader heap is zero filled // memset(pTable, 0, nTotal * sizeof(void*)); m_TypeDefToMethodTableMap.pNext = NULL; m_TypeDefToMethodTableMap.supportedFlags = TYPE_DEF_MAP_ALL_FLAGS; m_TypeDefToMethodTableMap.pTable = pTable; m_TypeRefToMethodTableMap.pNext = NULL; m_TypeRefToMethodTableMap.supportedFlags = TYPE_REF_MAP_ALL_FLAGS; m_TypeRefToMethodTableMap.pTable = &pTable[m_TypeDefToMethodTableMap.dwCount]; m_MethodDefToDescMap.pNext = NULL; m_MethodDefToDescMap.supportedFlags = METHOD_DEF_MAP_ALL_FLAGS; m_MethodDefToDescMap.pTable = &m_TypeRefToMethodTableMap.pTable[m_TypeRefToMethodTableMap.dwCount]; m_FieldDefToDescMap.pNext = NULL; m_FieldDefToDescMap.supportedFlags = FIELD_DEF_MAP_ALL_FLAGS; m_FieldDefToDescMap.pTable = &m_MethodDefToDescMap.pTable[m_MethodDefToDescMap.dwCount]; m_GenericParamToDescMap.pNext = NULL; m_GenericParamToDescMap.supportedFlags = GENERIC_PARAM_MAP_ALL_FLAGS; m_GenericParamToDescMap.pTable = &m_FieldDefToDescMap.pTable[m_FieldDefToDescMap.dwCount]; m_GenericTypeDefToCanonMethodTableMap.pNext = NULL; m_GenericTypeDefToCanonMethodTableMap.supportedFlags = GENERIC_TYPE_DEF_MAP_ALL_FLAGS; m_GenericTypeDefToCanonMethodTableMap.pTable = &m_GenericParamToDescMap.pTable[m_GenericParamToDescMap.dwCount]; m_FileReferencesMap.pNext = NULL; m_FileReferencesMap.supportedFlags = FILE_REF_MAP_ALL_FLAGS; m_FileReferencesMap.pTable = &m_GenericTypeDefToCanonMethodTableMap.pTable[m_GenericTypeDefToCanonMethodTableMap.dwCount]; m_ManifestModuleReferencesMap.pNext = NULL; m_ManifestModuleReferencesMap.supportedFlags = MANIFEST_MODULE_MAP_ALL_FLAGS; m_ManifestModuleReferencesMap.pTable = &m_FileReferencesMap.pTable[m_FileReferencesMap.dwCount]; m_MethodDefToPropertyInfoMap.pNext = NULL; m_MethodDefToPropertyInfoMap.supportedFlags = PROPERTY_INFO_MAP_ALL_FLAGS; m_MethodDefToPropertyInfoMap.pTable = &m_ManifestModuleReferencesMap.pTable[m_ManifestModuleReferencesMap.dwCount]; } // // FreeClassTables frees the classes in the module // void Module::FreeClassTables() { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; if (m_dwTransientFlags & CLASSES_FREED) return; FastInterlockOr(&m_dwTransientFlags, CLASSES_FREED); // disable ibc here because it can cause errors during the destruction of classes IBCLoggingDisabler disableLogging; #if _DEBUG DebugLogRidMapOccupancy(); #endif // // Free the types filled out in the TypeDefToEEClass map // // Go through each linked block LookupMap<PTR_MethodTable>::Iterator typeDefIter(&m_TypeDefToMethodTableMap); while (typeDefIter.Next()) { MethodTable * pMT = typeDefIter.GetElement(); if (pMT != NULL && pMT->IsRestored()) { pMT->GetClass()->Destruct(pMT); } } // Now do the same for constructed types (arrays and instantiated generic types) if (IsTenured()) // If we're destructing because of an error during the module's creation, we'll play it safe and not touch this table as its memory is freed by a { // separate AllocMemTracker. Though you're supposed to destruct everything else before destructing the AllocMemTracker, this is an easy invariant to break so // we'll play extra safe on this end. if (m_pAvailableParamTypes != NULL) { EETypeHashTable::Iterator it(m_pAvailableParamTypes); EETypeHashEntry *pEntry; while (m_pAvailableParamTypes->FindNext(&it, &pEntry)) { TypeHandle th = pEntry->GetTypeHandle(); if (!th.IsRestored()) continue; // We need to call destruct on instances of EEClass whose "canonical" dependent lives in this table // There is nothing interesting to destruct on array EEClass if (!th.IsTypeDesc()) { MethodTable * pMT = th.AsMethodTable(); if (pMT->IsCanonicalMethodTable()) pMT->GetClass()->Destruct(pMT); } } } } } #endif // !DACCESS_COMPILE ClassLoader *Module::GetClassLoader() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; _ASSERTE(m_pAssembly != NULL); return m_pAssembly->GetLoader(); } PTR_BaseDomain Module::GetDomain() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; _ASSERTE(m_pAssembly != NULL); return m_pAssembly->GetDomain(); } #ifndef DACCESS_COMPILE void Module::StartUnload() { WRAPPER_NO_CONTRACT; #ifdef PROFILING_SUPPORTED { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); if (!IsBeingUnloaded()) { // Profiler is causing some peripheral class loads. Probably this just needs // to be turned into a Fault_not_fatal and moved to a specific place inside the profiler. EX_TRY { GCX_PREEMP(); (&g_profControlBlock)->ModuleUnloadStarted((ModuleID) this); } EX_CATCH { } EX_END_CATCH(SwallowAllExceptions); } END_PROFILER_CALLBACK(); } #endif // PROFILING_SUPPORTED if (g_IBCLogger.InstrEnabled()) { Thread * pThread = GetThread(); ThreadLocalIBCInfo* pInfo = pThread->GetIBCInfo(); // Acquire the Crst lock before creating the IBCLoggingDisabler object. // Only one thread at a time can be processing an IBC logging event. CrstHolder lock(IBCLogger::GetSync()); { IBCLoggingDisabler disableLogging( pInfo ); // runs IBCLoggingDisabler::DisableLogging // Write out the method profile data /*hr=*/WriteMethodProfileDataLogFile(true); } } SetBeingUnloaded(); } BOOL Module::IsInCurrentVersionBubble() { LIMITED_METHOD_CONTRACT; return TRUE; } #if defined(FEATURE_READYTORUN) //--------------------------------------------------------------------------------------- // Check if the target module is in the same version bubble as this one // The current implementation uses the presence of an AssemblyRef for the target module's assembly in // the native manifest metadata. // // Arguments: // * target - target module to check // // Return Value: // TRUE if the target module is in the same version bubble as this one // BOOL Module::IsInSameVersionBubble(Module *target) { STANDARD_VM_CONTRACT; if (this == target) { return TRUE; } if (!IsReadyToRun()) { return FALSE; } NativeImage *nativeImage = this->GetCompositeNativeImage(); IMDInternalImport* pMdImport = NULL; if (nativeImage != NULL) { if (nativeImage == target->GetCompositeNativeImage()) { // Fast path for modules contained within the same native image return TRUE; } pMdImport = nativeImage->GetManifestMetadata(); } else { // Check if the current module's image has native manifest metadata, otherwise the current->GetNativeAssemblyImport() asserts. COUNT_T cMeta=0; const void* pMeta = GetPEAssembly()->GetPEImage()->GetNativeManifestMetadata(&cMeta); if (pMeta == NULL) { return FALSE; } pMdImport = GetNativeAssemblyImport(); } LPCUTF8 targetName = target->GetAssembly()->GetSimpleName(); HENUMInternal assemblyEnum; HRESULT hr = pMdImport->EnumAllInit(mdtAssemblyRef, &assemblyEnum); mdAssemblyRef assemblyRef; while (pMdImport->EnumNext(&assemblyEnum, &assemblyRef)) { LPCSTR assemblyName; hr = pMdImport->GetAssemblyRefProps(assemblyRef, NULL, NULL, &assemblyName, NULL, NULL, NULL, NULL); if (strcmp(assemblyName, targetName) == 0) { return TRUE; } } return FALSE; } #endif // FEATURE_READYTORUN //--------------------------------------------------------------------------------------- // // Wrapper for Module::GetRWImporter + QI when writing is not needed. // // Arguments: // * dwOpenFlags - Combo from CorOpenFlags. Better not contain ofWrite! // * riid - Public IID requested // * ppvInterface - [out] Requested interface. On success, *ppvInterface is returned // refcounted; caller responsible for Release. // // Return Value: // HRESULT indicating success or failure. // HRESULT Module::GetReadablePublicMetaDataInterface(DWORD dwOpenFlags, REFIID riid, LPVOID * ppvInterface) { CONTRACTL { NOTHROW; GC_NOTRIGGER; CAN_TAKE_LOCK; MODE_ANY; } CONTRACTL_END; _ASSERTE((dwOpenFlags & ofWrite) == 0); // Temporary place to store the IUnknown from which we'll do the final QI to get the // requested public interface. Any assignment to pIUnk assumes pIUnk does not need // to do a Release() (either the interface was internal and not AddRef'd, or was // public and will be released by the above holder). IUnknown * pIUnk = NULL; HRESULT hr = S_OK; // Normally, we just get an RWImporter to do the QI on, and we're on our way. EX_TRY { pIUnk = GetRWImporter(); } EX_CATCH_HRESULT_NO_ERRORINFO(hr); // Get the requested interface if (SUCCEEDED(hr) && (ppvInterface != NULL)) { _ASSERTE(pIUnk != NULL); hr = pIUnk->QueryInterface(riid, (void **) ppvInterface); } return hr; } // a special token that indicates no reader could be created - don't try again static ISymUnmanagedReader* const k_pInvalidSymReader = (ISymUnmanagedReader*)0x1; #if defined(FEATURE_ISYM_READER) ISymUnmanagedReader *Module::GetISymUnmanagedReaderNoThrow(void) { CONTRACT(ISymUnmanagedReader *) { INSTANCE_CHECK; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); NOTHROW; WRAPPER(GC_TRIGGERS); MODE_ANY; } CONTRACT_END; ISymUnmanagedReader *ret = NULL; EX_TRY { ret = GetISymUnmanagedReader(); } EX_CATCH { // We swallow any exception and say that we simply couldn't get a reader by returning NULL. // The only type of error that should be possible here is OOM. /* DISABLED due to Dev10 bug 619495 CONSISTENCY_CHECK_MSG( GET_EXCEPTION()->GetHR() == E_OUTOFMEMORY, "Exception from GetISymUnmanagedReader"); */ } EX_END_CATCH(RethrowTerminalExceptions); RETURN (ret); } ISymUnmanagedReader *Module::GetISymUnmanagedReader(void) { CONTRACT(ISymUnmanagedReader *) { INSTANCE_CHECK; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); THROWS; WRAPPER(GC_TRIGGERS); MODE_ANY; } CONTRACT_END; if (g_fEEShutDown) RETURN NULL; // Verify that symbol reading is permitted for this module. // If we know we've already created a symbol reader, don't bother checking. There is // no advantage to allowing symbol reading to be turned off if we've already created the reader. // Note that we can't just put this code in the creation block below because we might have to // call managed code to resolve security policy, and we can't do that while holding a lock. // There is no disadvantage other than a minor perf cost to calling this unnecessarily, so the // race on m_pISymUnmanagedReader here is OK. The perf cost is minor because the only real // work is done by the security system which caches the result. if( m_pISymUnmanagedReader == NULL && !IsSymbolReadingEnabled() ) RETURN NULL; // Take the lock for the m_pISymUnmanagedReader // This ensures that we'll only ever attempt to create one reader at a time, and we won't // create a reader if we're in the middle of destroying one that has become stale. // Actual access to the reader can safely occur outside the lock as long as it has its own // AddRef which we take inside the lock at the bottom of this method. CrstHolder holder(&m_ISymUnmanagedReaderCrst); UINT lastErrorMode = 0; // If we haven't created a reader yet, do so now if (m_pISymUnmanagedReader == NULL) { // Mark our reader as invalid so that if we fail to create the reader // (including if an exception is thrown), we won't keep trying. m_pISymUnmanagedReader = k_pInvalidSymReader; // There are 4 main cases here: // 1. Assembly is on disk and we'll get the symbols from a file next to the assembly // 2. Assembly was loaded in-memory (by byte array or ref-emit), and symbols were // provided along with it. // 3. Assembly was loaded in-memory but no symbols were provided. // Determine whether we should be looking in memory for the symbols (case 2) bool fInMemorySymbols = GetInMemorySymbolStream(); if( !fInMemorySymbols && m_pPEAssembly->GetPath().IsEmpty() ) { // Case 3. We don't have a module path or an in memory symbol stream, // so there is no-where to try and get symbols from. RETURN (NULL); } // Create a binder to find the reader. // // <REVISIT_TODO>@perf: this is slow, creating and destroying the binder every // time. We should cache this somewhere, but I'm not 100% sure // where right now...</REVISIT_TODO> HRESULT hr = S_OK; SafeComHolder<ISymUnmanagedBinder> pBinder; if (g_pDebugInterface == NULL) { // @TODO: this is reachable when debugging! UNREACHABLE_MSG("About to CoCreateInstance! This code should not be " "reachable or needs to be reimplemented for CoreCLR!"); } // We're going to be working with Windows PDB format symbols. Attempt to CoCreate the symbol binder. // CoreCLR supports not having a symbol reader installed, so CoCreate searches the PATH env var // and then tries coreclr dll location. // On desktop, the framework installer is supposed to install diasymreader.dll as well // and so this shouldn't happen. hr = FakeCoCreateInstanceEx(CLSID_CorSymBinder_SxS, NATIVE_SYMBOL_READER_DLL, IID_ISymUnmanagedBinder, (void**)&pBinder, NULL); if (FAILED(hr)) { PathString symbolReaderPath; hr = GetClrModuleDirectory(symbolReaderPath); if (FAILED(hr)) { RETURN (NULL); } symbolReaderPath.Append(NATIVE_SYMBOL_READER_DLL); hr = FakeCoCreateInstanceEx(CLSID_CorSymBinder_SxS, symbolReaderPath.GetUnicode(), IID_ISymUnmanagedBinder, (void**)&pBinder, NULL); if (FAILED(hr)) { RETURN (NULL); } } LOG((LF_CORDB, LL_INFO10, "M::GISUR: Created binder\n")); // Note: we change the error mode here so we don't get any popups as the PDB symbol reader attempts to search the // hard disk for files. lastErrorMode = SetErrorMode(SEM_NOOPENFILEERRORBOX|SEM_FAILCRITICALERRORS); SafeComHolder<ISymUnmanagedReader> pReader; if (fInMemorySymbols) { SafeComHolder<IStream> pIStream( NULL ); // If debug stream is already specified, don't bother to go through fusion // This is the common case for case 2 (hosted modules) and case 3 (Ref.Emit). if (GetInMemorySymbolStream() ) { if( IsReflection() ) { // If this is Reflection.Emit, we must clone the stream because another thread may // update it when someone is using the reader we create here leading to AVs. // Note that the symbol stream should be up to date since we flush the writer // after every addition in Module::AddClass. IfFailThrow(GetInMemorySymbolStream()->Clone(&pIStream)); } else { // The stream is not changing. Just add-ref to it. pIStream = GetInMemorySymbolStream(); pIStream->AddRef(); } } if (SUCCEEDED(hr)) { hr = pBinder->GetReaderFromStream(GetRWImporter(), pIStream, &pReader); } } else { // The assembly is on disk, so try and load symbols based on the path to the assembly (case 1) const SString &path = m_pPEAssembly->GetPath(); // Call Fusion to ensure that any PDB's are shadow copied before // trying to get a symbol reader. This has to be done once per // Assembly. ReleaseHolder<IUnknown> pUnk = NULL; hr = GetReadablePublicMetaDataInterface(ofReadOnly, IID_IMetaDataImport, &pUnk); if (SUCCEEDED(hr)) hr = pBinder->GetReaderForFile(pUnk, path, NULL, &pReader); } SetErrorMode(lastErrorMode); if (SUCCEEDED(hr)) { m_pISymUnmanagedReader = pReader.Extract(); LOG((LF_CORDB, LL_INFO10, "M::GISUR: Loaded symbols for module %S\n", GetDebugName())); } else { // We failed to create the reader, don't try again next time LOG((LF_CORDB, LL_INFO10, "M::GISUR: Failed to load symbols for module %S\n", GetDebugName())); _ASSERTE( m_pISymUnmanagedReader == k_pInvalidSymReader ); } } // if( m_pISymUnmanagedReader == NULL ) // If we previously failed to create the reader, return NULL if (m_pISymUnmanagedReader == k_pInvalidSymReader) { RETURN (NULL); } // Success - return an AddRef'd copy of the reader m_pISymUnmanagedReader->AddRef(); RETURN (m_pISymUnmanagedReader); } #endif // FEATURE_ISYM_READER BOOL Module::IsSymbolReadingEnabled() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; #ifdef DEBUGGING_SUPPORTED if (!g_pDebugInterface) { // if debugging is disabled (no debug pack installed), do not load symbols // This is done for two reasons. We don't completely trust the security of // the diasymreader.dll code, so we don't want to use it in mainline scenarios. // Secondly, there's not reason that diasymreader.dll will even necssarily be // be on the machine if the debug pack isn't installed. return FALSE; } #endif // DEBUGGING_SUPPORTED return TRUE; } // At this point, this is only called when we're creating an appdomain // out of an array of bytes, so we'll keep the IStream that we create // around in case the debugger attaches later (including detach & re-attach!) void Module::SetSymbolBytes(LPCBYTE pbSyms, DWORD cbSyms) { STANDARD_VM_CONTRACT; // Create a IStream from the memory for the syms. SafeComHolder<CGrowableStream> pStream(new CGrowableStream()); // Do not need to AddRef the CGrowableStream because the constructor set it to 1 // ref count already. The Module will keep a copy for its own use. // Make sure to set the symbol stream on the module before // attempting to send UpdateModuleSyms messages up for it. SetInMemorySymbolStream(pStream); // This can only be called when the module is being created. No-one should have // tried to use the symbols yet, and so there should not be a reader. // If instead, we wanted to call this when a reader could have been created, we need to // serialize access by taking the reader lock, and flush the old reader by calling // code:Module.ReleaseISymUnmanagedReader _ASSERTE( m_pISymUnmanagedReader == NULL ); #ifdef LOGGING LPCWSTR pName = NULL; pName = GetDebugName(); #endif // LOGGING ULONG cbWritten; DWORD dwError = pStream->Write((const void *)pbSyms, (ULONG)cbSyms, &cbWritten); IfFailThrow(HRESULT_FROM_WIN32(dwError)); #if PROFILING_SUPPORTED BEGIN_PROFILER_CALLBACK(CORProfilerInMemorySymbolsUpdatesEnabled()); { (&g_profControlBlock)->ModuleInMemorySymbolsUpdated((ModuleID) this); } END_PROFILER_CALLBACK(); #endif //PROFILING_SUPPORTED ETW::CodeSymbolLog::EmitCodeSymbols(this); // Tell the debugger that symbols have been loaded for this // module. We iterate through all domains which contain this // module's assembly, and send a debugger notify for each one. // <REVISIT_TODO>@perf: it would scale better if we directly knew which domains // the assembly was loaded in.</REVISIT_TODO> if (CORDebuggerAttached()) { AppDomainIterator i(FALSE); while (i.Next()) { AppDomain *pDomain = i.GetDomain(); if (pDomain->IsDebuggerAttached() && (GetDomain() == SystemDomain::System() || pDomain->ContainsAssembly(m_pAssembly))) { g_pDebugInterface->SendUpdateModuleSymsEventAndBlock(this, pDomain); } } } } // Clear any cached symbol reader void Module::ReleaseISymUnmanagedReader(void) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; FORBID_FAULT; } CONTRACTL_END; // Caller is responsible for taking the reader lock if the call could occur when // other threads are using or creating the reader if( m_pISymUnmanagedReader != NULL ) { // If we previously failed to create a reader, don't attempt to release it // but do clear it out so that we can try again (eg. symbols may have changed) if( m_pISymUnmanagedReader != k_pInvalidSymReader ) { m_pISymUnmanagedReader->Release(); } m_pISymUnmanagedReader = NULL; } } // Lazily creates a new IL stub cache for this module. ILStubCache* Module::GetILStubCache() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END; // Use per-LoaderAllocator cache for modules BaseDomain *pDomain = GetDomain(); if (!IsSystem()) return GetLoaderAllocator()->GetILStubCache(); if (m_pILStubCache == NULL) { ILStubCache *pILStubCache = new ILStubCache(GetLoaderAllocator()->GetHighFrequencyHeap()); if (FastInterlockCompareExchangePointer(&m_pILStubCache, pILStubCache, NULL) != NULL) { // some thread swooped in and set the field delete pILStubCache; } } _ASSERTE(m_pILStubCache != NULL); return m_pILStubCache; } // Called to finish the process of adding a new class with Reflection.Emit void Module::AddClass(mdTypeDef classdef) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_PREEMPTIVE; } CONTRACTL_END; // The fake class associated with the module (global fields & functions) needs to be initialized here // Normal classes are added to the available class hash when their typedef is first created. if (RidFromToken(classdef) == 0) { BuildClassForModule(); } } //--------------------------------------------------------------------------- // For the global class this builds the table of MethodDescs an adds the rids // to the MethodDef map. //--------------------------------------------------------------------------- void Module::BuildClassForModule() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; IMDInternalImport * pImport = GetMDImport(); DWORD cFunctions, cFields; { // Obtain count of global functions HENUMInternalHolder hEnum(pImport); hEnum.EnumGlobalFunctionsInit(); cFunctions = pImport->EnumGetCount(&hEnum); } { // Obtain count of global fields HENUMInternalHolder hEnum(pImport); hEnum.EnumGlobalFieldsInit(); cFields = pImport->EnumGetCount(&hEnum); } // If we have any work to do... if (cFunctions > 0 || cFields > 0) { TypeKey typeKey(this, COR_GLOBAL_PARENT_TOKEN); TypeHandle typeHnd = GetClassLoader()->LoadTypeHandleForTypeKeyNoLock(&typeKey); } } #endif // !DACCESS_COMPILE // Returns true iff the debugger should be notified about this module // // Notes: // Debugger doesn't need to be notified about modules that can't be executed. // (we do not have such cases at the moment) // // This should be immutable for an instance of a module. That ensures that the debugger gets consistent // notifications about it. It this value mutates, than the debugger may miss relevant notifications. BOOL Module::IsVisibleToDebugger() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return TRUE; } PEImageLayout * Module::GetReadyToRunImage() { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_READYTORUN if (IsReadyToRun()) return GetReadyToRunInfo()->GetImage(); #endif return NULL; } PTR_CORCOMPILE_IMPORT_SECTION Module::GetImportSections(COUNT_T *pCount) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; return GetReadyToRunInfo()->GetImportSections(pCount); } PTR_CORCOMPILE_IMPORT_SECTION Module::GetImportSectionFromIndex(COUNT_T index) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; return GetReadyToRunInfo()->GetImportSectionFromIndex(index); } PTR_CORCOMPILE_IMPORT_SECTION Module::GetImportSectionForRVA(RVA rva) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; return GetReadyToRunInfo()->GetImportSectionForRVA(rva); } TADDR Module::GetIL(DWORD target) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; if (target == 0) return NULL; return m_pPEAssembly->GetIL(target); } PTR_VOID Module::GetRvaField(DWORD rva) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return m_pPEAssembly->GetRvaField(rva); } #ifndef DACCESS_COMPILE CHECK Module::CheckRvaField(RVA field) { WRAPPER_NO_CONTRACT; if (!IsReflection()) CHECK(m_pPEAssembly->CheckRvaField(field)); CHECK_OK; } CHECK Module::CheckRvaField(RVA field, COUNT_T size) { CONTRACTL { STANDARD_VM_CHECK; CAN_TAKE_LOCK; } CONTRACTL_END; if (!IsReflection()) CHECK(m_pPEAssembly->CheckRvaField(field, size)); CHECK_OK; } #endif // !DACCESS_COMPILE BOOL Module::HasTls() { WRAPPER_NO_CONTRACT; return m_pPEAssembly->HasTls(); } BOOL Module::IsRvaFieldTls(DWORD rva) { WRAPPER_NO_CONTRACT; return m_pPEAssembly->IsRvaFieldTls(rva); } UINT32 Module::GetFieldTlsOffset(DWORD rva) { WRAPPER_NO_CONTRACT; return m_pPEAssembly->GetFieldTlsOffset(rva); } UINT32 Module::GetTlsIndex() { WRAPPER_NO_CONTRACT; return m_pPEAssembly->GetTlsIndex(); } // In DAC builds this function was being called on host addresses which may or may not // have been marshalled from the target. Such addresses can't be reliably mapped back to // target addresses, which means we can't tell whether they came from the IL or not // // Security note: Any security which you might wish to gain by verifying the origin of // a signature isn't available in DAC. The attacker can provide a dump which spoofs all // module ranges. In other words the attacker can make the signature appear to come from // anywhere, but still violate all the rules that a signature from that location would // otherwise follow. I am removing this function from DAC in order to prevent anyone from // getting a false sense of security (in addition to its functional shortcomings) #ifndef DACCESS_COMPILE BOOL Module::IsSigInIL(PCCOR_SIGNATURE signature) { CONTRACTL { INSTANCE_CHECK; FORBID_FAULT; MODE_ANY; NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; return m_pPEAssembly->IsPtrInPEImage(signature); } void Module::InitializeStringData(DWORD token, EEStringData *pstrData, CQuickBytes *pqb) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); PRECONDITION(TypeFromToken(token) == mdtString); } CONTRACTL_END; BOOL fIs80Plus; DWORD dwCharCount; LPCWSTR pString; if (FAILED(GetMDImport()->GetUserString(token, &dwCharCount, &fIs80Plus, &pString)) || (pString == NULL)) { THROW_BAD_FORMAT(BFA_BAD_STRING_TOKEN_RANGE, this); } #if !BIGENDIAN pstrData->SetStringBuffer(pString); #else // !!BIGENDIAN _ASSERTE(pqb != NULL); LPWSTR pSwapped; pSwapped = (LPWSTR) pqb->AllocThrows(dwCharCount * sizeof(WCHAR)); memcpy((void*)pSwapped, (void*)pString, dwCharCount*sizeof(WCHAR)); SwapStringLength(pSwapped, dwCharCount); pstrData->SetStringBuffer(pSwapped); #endif // !!BIGENDIAN // MD and String look at this bit in opposite ways. Here's where we'll do the conversion. // MD sets the bit to true if the string contains characters greater than 80. // String sets the bit to true if the string doesn't contain characters greater than 80. pstrData->SetCharCount(dwCharCount); pstrData->SetIsOnlyLowChars(!fIs80Plus); } OBJECTHANDLE Module::ResolveStringRef(DWORD token, BaseDomain *pDomain) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); PRECONDITION(TypeFromToken(token) == mdtString); } CONTRACTL_END; EEStringData strData; OBJECTHANDLE string = NULL; #if !BIGENDIAN InitializeStringData(token, &strData, NULL); #else // !!BIGENDIAN CQuickBytes qb; InitializeStringData(token, &strData, &qb); #endif // !!BIGENDIAN GCX_COOP(); // We can only do this for native images as they guarantee that resolvestringref will be // called only once per string from this module. @TODO: We really dont have any way of asserting // this, which would be nice... (and is needed to guarantee correctness) // Retrieve the string from the either the appropriate LoaderAllocator LoaderAllocator *pLoaderAllocator; if (this->IsCollectible()) pLoaderAllocator = this->GetLoaderAllocator(); else pLoaderAllocator = pDomain->GetLoaderAllocator(); string = (OBJECTHANDLE)pLoaderAllocator->GetStringObjRefPtrFromUnicodeString(&strData); return string; } // // Used by the verifier. Returns whether this stringref is valid. // CHECK Module::CheckStringRef(DWORD token) { LIMITED_METHOD_CONTRACT; CHECK(TypeFromToken(token)==mdtString); CHECK(!IsNilToken(token)); CHECK(GetMDImport()->IsValidToken(token)); CHECK_OK; } mdToken Module::GetEntryPointToken() { WRAPPER_NO_CONTRACT; return m_pPEAssembly->GetEntryPointToken(); } BYTE *Module::GetProfilerBase() { CONTRACT(BYTE*) { NOTHROW; GC_NOTRIGGER; CANNOT_TAKE_LOCK; } CONTRACT_END; if (m_pPEAssembly == NULL) // I'd rather assert this is not the case... { RETURN NULL; } else if (m_pPEAssembly->HasLoadedPEImage()) { RETURN (BYTE*)(m_pPEAssembly->GetLoadedLayout()->GetBase()); } else { RETURN NULL; } } void Module::AddActiveDependency(Module *pModule, BOOL unconditional) { CONTRACT_VOID { THROWS; GC_TRIGGERS; PRECONDITION(CheckPointer(pModule)); PRECONDITION(pModule != this); PRECONDITION(!IsSystem()); // Postcondition about activation } CONTRACT_END; pModule->EnsureActive(); RETURN; } #endif //!DACCESS_COMPILE Assembly * Module::GetAssemblyIfLoaded( mdAssemblyRef kAssemblyRef, IMDInternalImport * pMDImportOverride, // = NULL BOOL fDoNotUtilizeExtraChecks, // = FALSE AssemblyBinder *pBinderForLoadedAssembly // = NULL ) { CONTRACT(Assembly *) { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; FORBID_FAULT; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); SUPPORTS_DAC; } CONTRACT_END; Assembly * pAssembly = NULL; BOOL fCanUseRidMap = pMDImportOverride == NULL; #ifdef _DEBUG fCanUseRidMap = fCanUseRidMap && (CLRConfig::GetConfigValue(CLRConfig::INTERNAL_GetAssemblyIfLoadedIgnoreRidMap) == 0); #endif // Don't do a lookup if an override IMDInternalImport is provided, since the lookup is for the // standard IMDInternalImport and might result in an incorrect result. if (fCanUseRidMap) { pAssembly = LookupAssemblyRef(kAssemblyRef); } #ifndef DACCESS_COMPILE // Check if actually loaded, unless a GC is in progress or the current thread is // walking the stack (either its own stack, or another thread's stack) as that works // only with loaded assemblies // // NOTE: The case where the current thread is walking a stack can be problematic for // other reasons, as the remaining code of this function uses "GetAppDomain()", when // in fact the right AppDomain to use is the one corresponding to the frame being // traversed on the walked thread. Dev10 TFS bug# 762348 tracks that issue. if ((pAssembly != NULL) && !IsGCThread() && !IsStackWalkerThread()) { _ASSERTE(::GetAppDomain() != NULL); DomainAssembly * pDomainAssembly = pAssembly->GetDomainAssembly(); if ((pDomainAssembly == NULL) || !pDomainAssembly->IsLoaded()) pAssembly = NULL; } #endif //!DACCESS_COMPILE if (pAssembly == NULL) { do { AppDomain * pAppDomainExamine = AppDomain::GetCurrentDomain(); DomainAssembly * pCurAssemblyInExamineDomain = GetAssembly()->GetDomainAssembly(); if (pCurAssemblyInExamineDomain == NULL) { continue; } #ifndef DACCESS_COMPILE { IMDInternalImport * pMDImport = (pMDImportOverride == NULL) ? (GetMDImport()) : (pMDImportOverride); //we have to be very careful here. //we are using InitializeSpecInternal so we need to make sure that under no condition //the data we pass to it can outlive the assembly spec. AssemblySpec spec; if (FAILED(spec.InitializeSpecInternal(kAssemblyRef, pMDImport, pCurAssemblyInExamineDomain, FALSE /*fAllowAllocation*/))) { continue; } // If we have been passed the binding context for the loaded assembly that is being looked up in the // cache, then set it up in the AssemblySpec for the cache lookup to use it below. if (pBinderForLoadedAssembly != NULL) { _ASSERTE(spec.GetBinder() == NULL); spec.SetBinder(pBinderForLoadedAssembly); } DomainAssembly * pDomainAssembly = nullptr; { pDomainAssembly = pAppDomainExamine->FindCachedAssembly(&spec, FALSE /*fThrow*/); } if (pDomainAssembly && pDomainAssembly->IsLoaded()) pAssembly = pDomainAssembly->GetAssembly(); // Only store in the rid map if working with the current AppDomain. if (fCanUseRidMap && pAssembly) StoreAssemblyRef(kAssemblyRef, pAssembly); if (pAssembly != NULL) break; } #endif //!DACCESS_COMPILE } while (false); } // When walking the stack or computing GC information this function should never fail. _ASSERTE((pAssembly != NULL) || !(IsStackWalkerThread() || IsGCThread())); #ifdef DACCESS_COMPILE // Note: In rare cases when debugger walks the stack, we could actually have pAssembly=NULL here. // To fix that we should DACize the AppDomain-iteration code above (especially AssemblySpec). _ASSERTE(pAssembly != NULL); #endif //DACCESS_COMPILE RETURN pAssembly; } // Module::GetAssemblyIfLoaded DWORD Module::GetAssemblyRefFlags( mdAssemblyRef tkAssemblyRef) { CONTRACTL { if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; _ASSERTE(TypeFromToken(tkAssemblyRef) == mdtAssemblyRef); LPCSTR pszAssemblyName; const void *pbPublicKeyOrToken; DWORD cbPublicKeyOrToken; DWORD dwAssemblyRefFlags; IfFailThrow(GetMDImport()->GetAssemblyRefProps( tkAssemblyRef, &pbPublicKeyOrToken, &cbPublicKeyOrToken, &pszAssemblyName, NULL, NULL, NULL, &dwAssemblyRefFlags)); return dwAssemblyRefFlags; } // Module::GetAssemblyRefFlags #ifndef DACCESS_COMPILE DomainAssembly * Module::LoadAssembly(mdAssemblyRef kAssemblyRef) { CONTRACT(DomainAssembly *) { INSTANCE_CHECK; if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; if (FORBIDGC_LOADER_USE_ENABLED()) GC_NOTRIGGER; else GC_TRIGGERS; if (FORBIDGC_LOADER_USE_ENABLED()) FORBID_FAULT; else { INJECT_FAULT(COMPlusThrowOM();); } MODE_ANY; POSTCONDITION(CheckPointer(RETVAL, NULL_NOT_OK)); } CONTRACT_END; ETWOnStartup (LoaderCatchCall_V1, LoaderCatchCallEnd_V1); DomainAssembly * pDomainAssembly; // // Early out quickly if the result is cached // Assembly * pAssembly = LookupAssemblyRef(kAssemblyRef); if (pAssembly != NULL) { pDomainAssembly = pAssembly->GetDomainAssembly(); ::GetAppDomain()->LoadDomainAssembly(pDomainAssembly, FILE_LOADED); RETURN pDomainAssembly; } { PEAssemblyHolder pPEAssembly = GetDomainAssembly()->GetPEAssembly()->LoadAssembly(kAssemblyRef); AssemblySpec spec; spec.InitializeSpec(kAssemblyRef, GetMDImport(), GetDomainAssembly()); // Set the binding context in the AssemblySpec if one is available. This can happen if the LoadAssembly ended up // invoking the custom AssemblyLoadContext implementation that returned a reference to an assembly bound to a different // AssemblyLoadContext implementation. AssemblyBinder *pBinder = pPEAssembly->GetAssemblyBinder(); if (pBinder != NULL) { spec.SetBinder(pBinder); } pDomainAssembly = GetAppDomain()->LoadDomainAssembly(&spec, pPEAssembly, FILE_LOADED); } if (pDomainAssembly != NULL) { _ASSERTE( pDomainAssembly->IsSystem() || // GetAssemblyIfLoaded will not find CoreLib (see AppDomain::FindCachedFile) !pDomainAssembly->IsLoaded() || // GetAssemblyIfLoaded will not find not-yet-loaded assemblies GetAssemblyIfLoaded(kAssemblyRef, NULL, FALSE, pDomainAssembly->GetPEAssembly()->GetHostAssembly()->GetBinder()) != NULL); // GetAssemblyIfLoaded should find all remaining cases if (pDomainAssembly->GetAssembly() != NULL) { StoreAssemblyRef(kAssemblyRef, pDomainAssembly->GetAssembly()); } } RETURN pDomainAssembly; } #endif // !DACCESS_COMPILE Module *Module::GetModuleIfLoaded(mdFile kFile) { CONTRACT(Module *) { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(TypeFromToken(kFile) == mdtFile || TypeFromToken(kFile) == mdtModuleRef); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); FORBID_FAULT; SUPPORTS_DAC; } CONTRACT_END; ENABLE_FORBID_GC_LOADER_USE_IN_THIS_SCOPE(); // Handle the module ref case if (TypeFromToken(kFile) == mdtModuleRef) { LPCSTR moduleName; if (FAILED(GetMDImport()->GetModuleRefProps(kFile, &moduleName))) { RETURN NULL; } // This is required only because of some lower casing on the name kFile = GetAssembly()->GetManifestFileToken(moduleName); if (kFile == mdTokenNil) RETURN NULL; RETURN GetAssembly()->GetModule()->GetModuleIfLoaded(kFile); } Module *pModule = LookupFile(kFile); if (pModule == NULL) { if (IsManifest()) { if (kFile == mdFileNil) pModule = GetAssembly()->GetModule(); } else { // If we didn't find it there, look at the "master rid map" in the manifest file Assembly *pAssembly = GetAssembly(); mdFile kMatch; // This is required only because of some lower casing on the name kMatch = pAssembly->GetManifestFileToken(GetMDImport(), kFile); if (IsNilToken(kMatch)) { if (kMatch == mdFileNil) { pModule = pAssembly->GetModule(); } else { RETURN NULL; } } else pModule = pAssembly->GetModule()->LookupFile(kMatch); } #ifndef DACCESS_COMPILE if (pModule != NULL) StoreFileNoThrow(kFile, pModule); #endif } #ifndef DACCESS_COMPILE #endif // !DACCESS_COMPILE RETURN pModule; } #ifndef DACCESS_COMPILE DomainAssembly *Module::LoadModule(AppDomain *pDomain, mdFile kFile) { CONTRACT(DomainAssembly *) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; PRECONDITION(TypeFromToken(kFile) == mdtFile || TypeFromToken(kFile) == mdtModuleRef); } CONTRACT_END; LPCSTR psModuleName=NULL; if (TypeFromToken(kFile) == mdtModuleRef) { // This is a moduleRef IfFailThrow(GetMDImport()->GetModuleRefProps(kFile, &psModuleName)); } else { // This is mdtFile IfFailThrow(GetAssembly()->GetMDImport()->GetFileProps(kFile, &psModuleName, NULL, NULL, NULL)); } SString name(SString::Utf8, psModuleName); EEFileLoadException::Throw(name, COR_E_MULTIMODULEASSEMBLIESDIALLOWED, NULL); RETURN NULL; } #endif // !DACCESS_COMPILE PTR_Module Module::LookupModule(mdToken kFile) { CONTRACT(PTR_Module) { INSTANCE_CHECK; if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; if (FORBIDGC_LOADER_USE_ENABLED()) GC_NOTRIGGER; else GC_TRIGGERS; if (FORBIDGC_LOADER_USE_ENABLED()) FORBID_FAULT; else { INJECT_FAULT(COMPlusThrowOM()); } MODE_ANY; PRECONDITION(TypeFromToken(kFile) == mdtFile || TypeFromToken(kFile) == mdtModuleRef); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); SUPPORTS_DAC; } CONTRACT_END; if (TypeFromToken(kFile) == mdtModuleRef) { LPCSTR moduleName; IfFailThrow(GetMDImport()->GetModuleRefProps(kFile, &moduleName)); mdFile kFileLocal = GetAssembly()->GetManifestFileToken(moduleName); if (kFileLocal == mdTokenNil) COMPlusThrowHR(COR_E_BADIMAGEFORMAT); RETURN GetAssembly()->GetModule()->LookupModule(kFileLocal); } PTR_Module pModule = LookupFile(kFile); if (pModule == NULL && !IsManifest()) { // If we didn't find it there, look at the "master rid map" in the manifest file Assembly *pAssembly = GetAssembly(); mdFile kMatch = pAssembly->GetManifestFileToken(GetMDImport(), kFile); if (IsNilToken(kMatch)) { if (kMatch == mdFileNil) pModule = pAssembly->GetModule(); else COMPlusThrowHR(COR_E_BADIMAGEFORMAT); } else pModule = pAssembly->GetModule()->LookupFile(kMatch); } RETURN pModule; } TypeHandle Module::LookupTypeRef(mdTypeRef token) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; SUPPORTS_DAC; _ASSERTE(TypeFromToken(token) == mdtTypeRef); g_IBCLogger.LogRidMapAccess( MakePair( this, token ) ); TypeHandle entry = TypeHandle::FromTAddr(dac_cast<TADDR>(m_TypeRefToMethodTableMap.GetElement(RidFromToken(token)))); if (entry.IsNull()) return TypeHandle(); // Cannot do this in a NOTHROW function. // Note that this could be called while doing GC from the prestub of // a method to resolve typerefs in a signature. We cannot THROW // during GC. // @PERF: Enable this so that we do not need to touch metadata // to resolve typerefs #ifdef FIXUPS_ALL_TYPEREFS if (CORCOMPILE_IS_POINTER_TAGGED((SIZE_T) entry.AsPtr())) { #ifndef DACCESS_COMPILE Module::RestoreTypeHandlePointer(&entry, TRUE); m_TypeRefToMethodTableMap.SetElement(RidFromToken(token), dac_cast<PTR_TypeRef>(value.AsTAddr())); #else // DACCESS_COMPILE DacNotImpl(); #endif // DACCESS_COMPILE } #endif // FIXUPS_ALL_TYPEREFS return entry; } #ifndef DACCESS_COMPILE // // Increase the size of one of the maps, such that it can handle a RID of at least "rid". // // This function must also check that another thread didn't already add a LookupMap capable // of containing the same RID. // PTR_TADDR LookupMapBase::GrowMap(Module * pModule, DWORD rid) { CONTRACT(PTR_TADDR) { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(ThrowOutOfMemory();); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; LookupMapBase *pMap = this; LookupMapBase *pPrev = NULL; LookupMapBase *pNewMap = NULL; // Initial block size DWORD dwIndex = rid; DWORD dwBlockSize = 16; { CrstHolder ch(pModule->GetLookupTableCrst()); // Check whether we can already handle this RID index do { if (dwIndex < pMap->dwCount) { // Already there - some other thread must have added it RETURN pMap->GetIndexPtr(dwIndex); } dwBlockSize *= 2; dwIndex -= pMap->dwCount; pPrev = pMap; pMap = pMap->pNext; } while (pMap != NULL); _ASSERTE(pPrev != NULL); // should never happen, because there's always at least one map DWORD dwSizeToAllocate = max(dwIndex + 1, dwBlockSize); pNewMap = (LookupMapBase *) (void*)pModule->GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(LookupMapBase)) + S_SIZE_T(dwSizeToAllocate)*S_SIZE_T(sizeof(TADDR))); // Note: Memory allocated on loader heap is zero filled // memset(pNewMap, 0, sizeof(LookupMap) + dwSizeToAllocate*sizeof(void*)); pNewMap->pNext = NULL; pNewMap->dwCount = dwSizeToAllocate; pNewMap->pTable = dac_cast<ArrayDPTR(TADDR)>(pNewMap + 1); // Link ourselves in VolatileStore<LookupMapBase*>(&(pPrev->pNext), pNewMap); } RETURN pNewMap->GetIndexPtr(dwIndex); } #endif // DACCESS_COMPILE PTR_TADDR LookupMapBase::GetElementPtr(DWORD rid) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; LookupMapBase * pMap = this; DWORD dwIndex = rid; do { if (dwIndex < pMap->dwCount) { return pMap->GetIndexPtr(dwIndex); } dwIndex -= pMap->dwCount; pMap = pMap->pNext; } while (pMap != NULL); return NULL; } // Get number of RIDs that this table can store DWORD LookupMapBase::GetSize() { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; LookupMapBase * pMap = this; DWORD dwSize = 0; do { dwSize += pMap->dwCount; pMap = pMap->pNext; } while (pMap != NULL); return dwSize; } #ifndef DACCESS_COMPILE #ifdef _DEBUG void LookupMapBase::DebugGetRidMapOccupancy(DWORD *pdwOccupied, DWORD *pdwSize) { LIMITED_METHOD_CONTRACT; *pdwOccupied = 0; *pdwSize = 0; LookupMapBase * pMap = this; // Go through each linked block for (; pMap != NULL; pMap = pMap->pNext) { DWORD dwIterCount = pMap->dwCount; for (DWORD i = 0; i < dwIterCount; i++) { if (pMap->pTable[i] != NULL) (*pdwOccupied)++; } (*pdwSize) += dwIterCount; } } void Module::DebugLogRidMapOccupancy() { WRAPPER_NO_CONTRACT; #define COMPUTE_RID_MAP_OCCUPANCY(var_suffix, map) \ DWORD dwOccupied##var_suffix, dwSize##var_suffix, dwPercent##var_suffix; \ map.DebugGetRidMapOccupancy(&dwOccupied##var_suffix, &dwSize##var_suffix); \ dwPercent##var_suffix = dwOccupied##var_suffix ? ((dwOccupied##var_suffix * 100) / dwSize##var_suffix) : 0; COMPUTE_RID_MAP_OCCUPANCY(1, m_TypeDefToMethodTableMap); COMPUTE_RID_MAP_OCCUPANCY(2, m_TypeRefToMethodTableMap); COMPUTE_RID_MAP_OCCUPANCY(3, m_MethodDefToDescMap); COMPUTE_RID_MAP_OCCUPANCY(4, m_FieldDefToDescMap); COMPUTE_RID_MAP_OCCUPANCY(5, m_GenericParamToDescMap); COMPUTE_RID_MAP_OCCUPANCY(6, m_GenericTypeDefToCanonMethodTableMap); COMPUTE_RID_MAP_OCCUPANCY(7, m_FileReferencesMap); COMPUTE_RID_MAP_OCCUPANCY(8, m_ManifestModuleReferencesMap); COMPUTE_RID_MAP_OCCUPANCY(9, m_MethodDefToPropertyInfoMap); LOG(( LF_EEMEM, INFO3, " Map occupancy:\n" " TypeDefToMethodTable map: %4d/%4d (%2d %%)\n" " TypeRefToMethodTable map: %4d/%4d (%2d %%)\n" " MethodDefToDesc map: %4d/%4d (%2d %%)\n" " FieldDefToDesc map: %4d/%4d (%2d %%)\n" " GenericParamToDesc map: %4d/%4d (%2d %%)\n" " GenericTypeDefToCanonMethodTable map: %4d/%4d (%2d %%)\n" " FileReferences map: %4d/%4d (%2d %%)\n" " AssemblyReferences map: %4d/%4d (%2d %%)\n" " MethodDefToPropInfo map: %4d/%4d (%2d %%)\n" , dwOccupied1, dwSize1, dwPercent1, dwOccupied2, dwSize2, dwPercent2, dwOccupied3, dwSize3, dwPercent3, dwOccupied4, dwSize4, dwPercent4, dwOccupied5, dwSize5, dwPercent5, dwOccupied6, dwSize6, dwPercent6, dwOccupied7, dwSize7, dwPercent7, dwOccupied8, dwSize8, dwPercent8, dwOccupied9, dwSize9, dwPercent9 )); #undef COMPUTE_RID_MAP_OCCUPANCY } #endif // _DEBUG // // FindMethod finds a MethodDesc for a global function methoddef or ref // MethodDesc *Module::FindMethodThrowing(mdToken pMethod) { CONTRACT (MethodDesc *) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END SigTypeContext typeContext; /* empty type context: methods will not be generic */ RETURN MemberLoader::GetMethodDescFromMemberDefOrRefOrSpec(this, pMethod, &typeContext, TRUE, /* strictMetadataChecks */ FALSE /* dont get code shared between generic instantiations */); } // // FindMethod finds a MethodDesc for a global function methoddef or ref // MethodDesc *Module::FindMethod(mdToken pMethod) { CONTRACT (MethodDesc *) { INSTANCE_CHECK; NOTHROW; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; MethodDesc *pMDRet = NULL; EX_TRY { pMDRet = FindMethodThrowing(pMethod); } EX_CATCH { #ifdef _DEBUG CONTRACT_VIOLATION(ThrowsViolation); char szMethodName [MAX_CLASSNAME_LENGTH]; CEEInfo::findNameOfToken(this, pMethod, szMethodName, ARRAY_SIZE(szMethodName)); // This used to be IJW, but changed to LW_INTEROP to reclaim a bit in our log facilities LOG((LF_INTEROP, LL_INFO10, "Failed to find Method: %s for Vtable Fixup\n", szMethodName)); #endif // _DEBUG } EX_END_CATCH(SwallowAllExceptions) RETURN pMDRet; } // // GetPropertyInfoForMethodDef wraps the metadata function of the same name, // first trying to use the information stored in m_MethodDefToPropertyInfoMap. // HRESULT Module::GetPropertyInfoForMethodDef(mdMethodDef md, mdProperty *ppd, LPCSTR *pName, ULONG *pSemantic) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; HRESULT hr; if ((m_dwPersistedFlags & COMPUTED_METHODDEF_TO_PROPERTYINFO_MAP) != 0) { SIZE_T value = m_MethodDefToPropertyInfoMap.GetElement(RidFromToken(md)); if (value == 0) { _ASSERTE(GetMDImport()->GetPropertyInfoForMethodDef(md, ppd, pName, pSemantic) == S_FALSE); return S_FALSE; } else { // Decode the value into semantic and mdProperty as described in PopulatePropertyInfoMap ULONG semantic = (value & 0xFF000000) >> 24; mdProperty prop = TokenFromRid(value & 0x00FFFFFF, mdtProperty); #ifdef _DEBUG mdProperty dbgPd; LPCSTR dbgName; ULONG dbgSemantic; _ASSERTE(GetMDImport()->GetPropertyInfoForMethodDef(md, &dbgPd, &dbgName, &dbgSemantic) == S_OK); #endif if (ppd != NULL) { *ppd = prop; _ASSERTE(*ppd == dbgPd); } if (pSemantic != NULL) { *pSemantic = semantic; _ASSERTE(*pSemantic == dbgSemantic); } if (pName != NULL) { IfFailRet(GetMDImport()->GetPropertyProps(prop, pName, NULL, NULL, NULL)); #ifdef _DEBUG HRESULT hr = GetMDImport()->GetPropertyProps(prop, pName, NULL, NULL, NULL); _ASSERTE(hr == S_OK); _ASSERTE(strcmp(*pName, dbgName) == 0); #endif } return S_OK; } } return GetMDImport()->GetPropertyInfoForMethodDef(md, ppd, pName, pSemantic); } // Return true if this module has any live (jitted) JMC functions. // If a module has no jitted JMC functions, then it's as if it's a // non-user module. bool Module::HasAnyJMCFunctions() { LIMITED_METHOD_CONTRACT; // If we have any live JMC funcs in us, then we're a JMC module. // We count JMC functions when we either explicitly toggle their status // or when we get the code:DebuggerMethodInfo for them (which happens in a jit-complete). // Since we don't get the jit-completes for ngen modules, we also check the module's // "default" status. This means we may err on the side of believing we have // JMC methods. return ((m_debuggerSpecificData.m_cTotalJMCFuncs > 0) || m_debuggerSpecificData.m_fDefaultJMCStatus); } // Alter our module's count of JMC functions. // Since these may be called on multiple threads (say 2 threads are jitting // methods within a module), make it thread safe. void Module::IncJMCFuncCount() { LIMITED_METHOD_CONTRACT; InterlockedIncrement(&m_debuggerSpecificData.m_cTotalJMCFuncs); } void Module::DecJMCFuncCount() { LIMITED_METHOD_CONTRACT; InterlockedDecrement(&m_debuggerSpecificData.m_cTotalJMCFuncs); } // code:DebuggerMethodInfo are lazily created. Let them lookup what the default is. bool Module::GetJMCStatus() { LIMITED_METHOD_CONTRACT; return m_debuggerSpecificData.m_fDefaultJMCStatus; } // Set the default JMC status of this module. void Module::SetJMCStatus(bool fStatus) { LIMITED_METHOD_CONTRACT; m_debuggerSpecificData.m_fDefaultJMCStatus = fStatus; } // Update the dynamic metadata if needed. Nop for non-dynamic modules void Module::UpdateDynamicMetadataIfNeeded() { CONTRACTL { NOTHROW; GC_TRIGGERS; } CONTRACTL_END; // Only need to serializing metadata for dynamic modules. For non-dynamic modules, metadata is already available. if (!IsReflection()) { return; } // Since serializing metadata to an auxillary buffer is only needed by the debugger, // we should only be doing this for modules that the debugger can see. if (!IsVisibleToDebugger()) { return; } HRESULT hr = S_OK; EX_TRY { GetReflectionModule()->CaptureModuleMetaDataToMemory(); } EX_CATCH_HRESULT(hr); // This Metadata buffer is only used for the debugger, so it's a non-fatal exception for regular CLR execution. // Just swallow it and keep going. However, with the exception of out-of-memory, we do expect it to // succeed, so assert on failures. if (hr != E_OUTOFMEMORY) { SIMPLIFYING_ASSUMPTION_SUCCEEDED(hr); } } #ifdef DEBUGGING_SUPPORTED #endif // DEBUGGING_SUPPORTED BOOL Module::NotifyDebuggerLoad(AppDomain *pDomain, DomainAssembly * pDomainAssembly, int flags, BOOL attaching) { WRAPPER_NO_CONTRACT; // We don't notify the debugger about modules that don't contain any code. if (!IsVisibleToDebugger()) return FALSE; // Always capture metadata, even if no debugger is attached. If a debugger later attaches, it will use // this data. { Module * pModule = pDomainAssembly->GetModule(); pModule->UpdateDynamicMetadataIfNeeded(); } // // Remaining work is only needed if a debugger is attached // if (!attaching && !pDomain->IsDebuggerAttached()) return FALSE; BOOL result = FALSE; if (flags & ATTACH_MODULE_LOAD) { g_pDebugInterface->LoadModule(this, m_pPEAssembly->GetPath(), m_pPEAssembly->GetPath().GetCount(), GetAssembly(), pDomain, pDomainAssembly, attaching); result = TRUE; } if (flags & ATTACH_CLASS_LOAD) { LookupMap<PTR_MethodTable>::Iterator typeDefIter(&m_TypeDefToMethodTableMap); while (typeDefIter.Next()) { MethodTable * pMT = typeDefIter.GetElement(); if (pMT != NULL && pMT->IsRestored()) { result = TypeHandle(pMT).NotifyDebuggerLoad(pDomain, attaching) || result; } } } return result; } void Module::NotifyDebuggerUnload(AppDomain *pDomain) { LIMITED_METHOD_CONTRACT; if (!pDomain->IsDebuggerAttached()) return; // We don't notify the debugger about modules that don't contain any code. if (!IsVisibleToDebugger()) return; LookupMap<PTR_MethodTable>::Iterator typeDefIter(&m_TypeDefToMethodTableMap); while (typeDefIter.Next()) { MethodTable * pMT = typeDefIter.GetElement(); if (pMT != NULL && pMT->IsRestored()) { TypeHandle(pMT).NotifyDebuggerUnload(pDomain); } } g_pDebugInterface->UnloadModule(this, pDomain); } using GetTokenForVTableEntry_t = mdToken(STDMETHODCALLTYPE*)(HMODULE module, BYTE**ppVTEntry); static HMODULE GetIJWHostForModule(Module* module) { #if !defined(TARGET_UNIX) PEDecoder* pe = module->GetPEAssembly()->GetLoadedLayout(); BYTE* baseAddress = (BYTE*)module->GetPEAssembly()->GetIJWBase(); IMAGE_IMPORT_DESCRIPTOR* importDescriptor = (IMAGE_IMPORT_DESCRIPTOR*)pe->GetDirectoryData(pe->GetDirectoryEntry(IMAGE_DIRECTORY_ENTRY_IMPORT)); if (importDescriptor == nullptr) { return nullptr; } for(; importDescriptor->Characteristics != 0; importDescriptor++) { IMAGE_THUNK_DATA* importNameTable = (IMAGE_THUNK_DATA*)pe->GetRvaData(importDescriptor->OriginalFirstThunk); IMAGE_THUNK_DATA* importAddressTable = (IMAGE_THUNK_DATA*)pe->GetRvaData(importDescriptor->FirstThunk); for (int thunkIndex = 0; importNameTable[thunkIndex].u1.AddressOfData != 0; thunkIndex++) { // The most significant bit will be set if the entry points to an ordinal. if ((importNameTable[thunkIndex].u1.Ordinal & (1LL << (sizeof(importNameTable[thunkIndex].u1.Ordinal) * CHAR_BIT - 1))) == 0) { IMAGE_IMPORT_BY_NAME* nameImport = (IMAGE_IMPORT_BY_NAME*)(baseAddress + importNameTable[thunkIndex].u1.AddressOfData); if (strcmp("_CorDllMain", nameImport->Name) == 0 #ifdef TARGET_X86 || strcmp("__CorDllMain@12", nameImport->Name) == 0 // The MSVC compiler can and will bind to the stdcall-decorated name of _CorDllMain if it exists, even if the _CorDllMain symbol also exists. #endif ) { HMODULE ijwHost; if (WszGetModuleHandleEx( GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCWSTR)importAddressTable[thunkIndex].u1.Function, &ijwHost)) { return ijwHost; } } } } } #endif return nullptr; } static GetTokenForVTableEntry_t GetTokenGetterFromHostModule(HMODULE ijwHost) { if (ijwHost != nullptr) { return (GetTokenForVTableEntry_t)GetProcAddress(ijwHost, "GetTokenForVTableEntry"); } return nullptr; } //================================================================================= mdToken GetTokenForVTableEntry(HINSTANCE hInst, BYTE **ppVTEntry) { CONTRACTL{ NOTHROW; } CONTRACTL_END; mdToken tok =(mdToken)(UINT_PTR)*ppVTEntry; _ASSERTE(TypeFromToken(tok) == mdtMethodDef || TypeFromToken(tok) == mdtMemberRef); return tok; } //================================================================================= void SetTargetForVTableEntry(HINSTANCE hInst, BYTE **ppVTEntry, BYTE *pTarget) { CONTRACTL{ THROWS; } CONTRACTL_END; DWORD oldProtect; if (!ClrVirtualProtect(ppVTEntry, sizeof(BYTE*), PAGE_READWRITE, &oldProtect)) { // This is very bad. We are not going to be able to update header. _ASSERTE(!"SetTargetForVTableEntry(): VirtualProtect() changing IJW thunk vtable to R/W failed.\n"); ThrowLastError(); } *ppVTEntry = pTarget; DWORD ignore; if (!ClrVirtualProtect(ppVTEntry, sizeof(BYTE*), oldProtect, &ignore)) { // This is not so bad, we're already done the update, we just didn't return the thunk table to read only _ASSERTE(!"SetTargetForVTableEntry(): VirtualProtect() changing IJW thunk vtable back to RO failed.\n"); } } //================================================================================= BYTE * GetTargetForVTableEntry(HINSTANCE hInst, BYTE **ppVTEntry) { CONTRACTL{ NOTHROW; } CONTRACTL_END; return *ppVTEntry; } //====================================================================================== // Fixup vtables stored in the header to contain pointers to method desc // prestubs rather than metadata method tokens. void Module::FixupVTables() { CONTRACTL{ INSTANCE_CHECK; STANDARD_VM_CHECK; } CONTRACTL_END; // If we've already fixed up, or this is not an IJW module, just return. // NOTE: This relies on ILOnly files not having fixups. If this changes, // we need to change this conditional. if (IsIJWFixedUp() || m_pPEAssembly->IsILOnly()) { return; } // Try getting a callback to the IJW host if it is loaded. // The IJW host substitutes in special shims in the vtfixup table // so if it is loaded, we need to query it for the tokens that were in the slots. // If it is not loaded, then we know that the vtfixup table entries are tokens, // so we can resolve them ourselves. GetTokenForVTableEntry_t GetTokenForVTableEntryCallback = GetTokenGetterFromHostModule(GetIJWHostForModule(this)); if (GetTokenForVTableEntryCallback == nullptr) { GetTokenForVTableEntryCallback = GetTokenForVTableEntry; } HINSTANCE hInstThis = GetPEAssembly()->GetIJWBase(); // Get vtable fixup data COUNT_T cFixupRecords; IMAGE_COR_VTABLEFIXUP *pFixupTable = m_pPEAssembly->GetVTableFixups(&cFixupRecords); // No records then return if (cFixupRecords == 0) { return; } // Now, we need to take a lock to serialize fixup. PEImage::IJWFixupData *pData = PEImage::GetIJWData(m_pPEAssembly->GetIJWBase()); // If it's already been fixed (in some other appdomain), record the fact and return if (pData->IsFixedUp()) { SetIsIJWFixedUp(); return; } ////////////////////////////////////////////////////// // // This is done in three stages: // 1. We enumerate the types we'll need to load // 2. We load the types // 3. We create and install the thunks // COUNT_T cVtableThunks = 0; struct MethodLoadData { mdToken token; MethodDesc *pMD; }; MethodLoadData *rgMethodsToLoad = NULL; COUNT_T cMethodsToLoad = 0; // // Stage 1 // // Each fixup entry describes a vtable, so iterate the vtables and sum their counts { DWORD iFixup; for (iFixup = 0; iFixup < cFixupRecords; iFixup++) cVtableThunks += pFixupTable[iFixup].Count; } ACQUIRE_STACKING_ALLOCATOR(pAlloc); // Allocate the working array of tokens. cMethodsToLoad = cVtableThunks; rgMethodsToLoad = new (pAlloc) MethodLoadData[cMethodsToLoad]; memset(rgMethodsToLoad, 0, cMethodsToLoad * sizeof(MethodLoadData)); // Now take the IJW module lock and get all the tokens { // Take the lock CrstHolder lockHolder(pData->GetLock()); // If someone has beaten us, just return if (pData->IsFixedUp()) { SetIsIJWFixedUp(); return; } COUNT_T iCurMethod = 0; if (cFixupRecords != 0) { for (COUNT_T iFixup = 0; iFixup < cFixupRecords; iFixup++) { // Vtables can be 32 or 64 bit. if ((pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED)) || (pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED | COR_VTABLE_FROM_UNMANAGED)) || (pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED | COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN))) { const BYTE** pPointers = (const BYTE **)m_pPEAssembly->GetVTable(pFixupTable[iFixup].RVA); for (int iMethod = 0; iMethod < pFixupTable[iFixup].Count; iMethod++) { if (pData->IsMethodFixedUp(iFixup, iMethod)) continue; mdToken mdTok = GetTokenForVTableEntryCallback(hInstThis, (BYTE**)(pPointers + iMethod)); CONSISTENCY_CHECK(mdTok != mdTokenNil); rgMethodsToLoad[iCurMethod++].token = mdTok; } } } } } // // Stage 2 - Load the types // { for (COUNT_T iCurMethod = 0; iCurMethod < cMethodsToLoad; iCurMethod++) { mdToken curTok = rgMethodsToLoad[iCurMethod].token; if (!GetMDImport()->IsValidToken(curTok)) { _ASSERTE(!"Invalid token in v-table fix-up table"); ThrowHR(COR_E_BADIMAGEFORMAT); } // Find the method desc MethodDesc *pMD; { CONTRACT_VIOLATION(LoadsTypeViolation); pMD = FindMethodThrowing(curTok); } CONSISTENCY_CHECK(CheckPointer(pMD)); rgMethodsToLoad[iCurMethod].pMD = pMD; } } // // Stage 3 - Create the thunk data // { // Take the lock CrstHolder lockHolder(pData->GetLock()); // If someone has beaten us, just return if (pData->IsFixedUp()) { SetIsIJWFixedUp(); return; } // This phase assumes there is only one AppDomain and that thunks // can all safely point directly to the method in the current AppDomain AppDomain *pAppDomain = GetAppDomain(); // Used to index into rgMethodsToLoad COUNT_T iCurMethod = 0; // Each fixup entry describes a vtable (each slot contains a metadata token // at this stage). DWORD iFixup; for (iFixup = 0; iFixup < cFixupRecords; iFixup++) cVtableThunks += pFixupTable[iFixup].Count; DWORD dwIndex = 0; DWORD dwThunkIndex = 0; // Now to fill in the thunk table. for (iFixup = 0; iFixup < cFixupRecords; iFixup++) { // Tables may contain zero fixups, in which case the RVA is null, which triggers an assert if (pFixupTable[iFixup].Count == 0) continue; const BYTE** pPointers = (const BYTE **) m_pPEAssembly->GetVTable(pFixupTable[iFixup].RVA); // Vtables can be 32 or 64 bit. if (pFixupTable[iFixup].Type == COR_VTABLE_PTRSIZED) { for (int iMethod = 0; iMethod < pFixupTable[iFixup].Count; iMethod++) { if (pData->IsMethodFixedUp(iFixup, iMethod)) continue; mdToken mdTok = rgMethodsToLoad[iCurMethod].token; MethodDesc *pMD = rgMethodsToLoad[iCurMethod].pMD; iCurMethod++; #ifdef _DEBUG if (pMD->IsNDirect()) { LOG((LF_INTEROP, LL_INFO10, "[0x%lx] <-- PINV thunk for \"%s\" (target = 0x%lx)\n", (size_t)&(pPointers[iMethod]), pMD->m_pszDebugMethodName, (size_t)(((NDirectMethodDesc*)pMD)->GetNDirectTarget()))); } #endif // _DEBUG CONSISTENCY_CHECK(dwThunkIndex < cVtableThunks); // Point the local vtable slot to the thunk we created SetTargetForVTableEntry(hInstThis, (BYTE **)&pPointers[iMethod], (BYTE *)pMD->GetMultiCallableAddrOfCode()); pData->MarkMethodFixedUp(iFixup, iMethod); dwThunkIndex++; } } else if (pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED | COR_VTABLE_FROM_UNMANAGED) || (pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED | COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN))) { for (int iMethod = 0; iMethod < pFixupTable[iFixup].Count; iMethod++) { if (pData->IsMethodFixedUp(iFixup, iMethod)) continue; mdToken mdTok = rgMethodsToLoad[iCurMethod].token; MethodDesc *pMD = rgMethodsToLoad[iCurMethod].pMD; iCurMethod++; LOG((LF_INTEROP, LL_INFO10, "[0x%p] <-- VTable thunk for \"%s\" (pMD = 0x%p)\n", (UINT_PTR)&(pPointers[iMethod]), pMD->m_pszDebugMethodName, pMD)); UMEntryThunk *pUMEntryThunk = (UMEntryThunk*)(void*)(GetDllThunkHeap()->AllocAlignedMem(sizeof(UMEntryThunk), CODE_SIZE_ALIGN)); // UMEntryThunk contains code ExecutableWriterHolder<UMEntryThunk> uMEntryThunkWriterHolder(pUMEntryThunk, sizeof(UMEntryThunk)); FillMemory(uMEntryThunkWriterHolder.GetRW(), sizeof(UMEntryThunk), 0); UMThunkMarshInfo *pUMThunkMarshInfo = (UMThunkMarshInfo*)(void*)(GetThunkHeap()->AllocAlignedMem(sizeof(UMThunkMarshInfo), CODE_SIZE_ALIGN)); ExecutableWriterHolder<UMThunkMarshInfo> uMThunkMarshInfoWriterHolder(pUMThunkMarshInfo, sizeof(UMThunkMarshInfo)); FillMemory(uMThunkMarshInfoWriterHolder.GetRW(), sizeof(UMThunkMarshInfo), 0); uMThunkMarshInfoWriterHolder.GetRW()->LoadTimeInit(pMD); uMEntryThunkWriterHolder.GetRW()->LoadTimeInit(pUMEntryThunk, NULL, NULL, pUMThunkMarshInfo, pMD); SetTargetForVTableEntry(hInstThis, (BYTE **)&pPointers[iMethod], (BYTE *)pUMEntryThunk->GetCode()); pData->MarkMethodFixedUp(iFixup, iMethod); } } else if ((pFixupTable[iFixup].Type & COR_VTABLE_NOT_PTRSIZED) == COR_VTABLE_NOT_PTRSIZED) { // fixup type doesn't match the platform THROW_BAD_FORMAT(BFA_FIXUP_WRONG_PLATFORM, this); } else { _ASSERTE(!"Unknown vtable fixup type"); } } // Indicate that this module has been fixed before releasing the lock pData->SetIsFixedUp(); // On the data SetIsIJWFixedUp(); // On the module } // End of Stage 3 } // Self-initializing accessor for m_pThunkHeap LoaderHeap *Module::GetDllThunkHeap() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; return PEImage::GetDllThunkHeap(GetPEAssembly()->GetIJWBase()); } LoaderHeap *Module::GetThunkHeap() { CONTRACT(LoaderHeap *) { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END if (!m_pThunkHeap) { LoaderHeap *pNewHeap = new LoaderHeap(VIRTUAL_ALLOC_RESERVE_GRANULARITY, // DWORD dwReserveBlockSize 0, // DWORD dwCommitBlockSize ThunkHeapStubManager::g_pManager->GetRangeList(), TRUE); // BOOL fMakeExecutable if (FastInterlockCompareExchangePointer(&m_pThunkHeap, pNewHeap, 0) != 0) { delete pNewHeap; } } RETURN m_pThunkHeap; } Module *Module::GetModuleFromIndex(DWORD ix) { CONTRACT(Module*) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; if (IsReadyToRun()) { RETURN ZapSig::DecodeModuleFromIndex(this, ix); } else { mdAssemblyRef mdAssemblyRefToken = TokenFromRid(ix, mdtAssemblyRef); Assembly *pAssembly = this->LookupAssemblyRef(mdAssemblyRefToken); if (pAssembly) { RETURN pAssembly->GetModule(); } else { // GetModuleFromIndex failed RETURN NULL; } } } #endif // !DACCESS_COMPILE Module *Module::GetModuleFromIndexIfLoaded(DWORD ix) { CONTRACT(Module*) { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(IsReadyToRun()); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; #ifndef DACCESS_COMPILE RETURN ZapSig::DecodeModuleFromIndexIfLoaded(this, ix); #else // DACCESS_COMPILE DacNotImpl(); RETURN NULL; #endif // DACCESS_COMPILE } #ifndef DACCESS_COMPILE IMDInternalImport* Module::GetNativeAssemblyImport(BOOL loadAllowed) { CONTRACT(IMDInternalImport*) { INSTANCE_CHECK; if (loadAllowed) GC_TRIGGERS; else GC_NOTRIGGER; if (loadAllowed) THROWS; else NOTHROW; if (loadAllowed) INJECT_FAULT(COMPlusThrowOM()); else FORBID_FAULT; MODE_ANY; PRECONDITION(IsReadyToRun()); POSTCONDITION(loadAllowed ? CheckPointer(RETVAL) : CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; RETURN GetPEAssembly()->GetPEImage()->GetNativeMDImport(loadAllowed); } BYTE* Module::GetNativeFixupBlobData(RVA rva) { CONTRACT(BYTE*) { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; RETURN(BYTE*) GetReadyToRunImage()->GetRvaData(rva); } #endif // DACCESS_COMPILE #ifndef DACCESS_COMPILE //----------------------------------------------------------------------------- void Module::RunEagerFixups() { STANDARD_VM_CONTRACT; COUNT_T nSections; PTR_CORCOMPILE_IMPORT_SECTION pSections = GetImportSections(&nSections); if (nSections == 0) return; #ifdef _DEBUG // Loading types during eager fixup is not a tested scenario. Make bugs out of any attempts to do so in a // debug build. Use holder to recover properly in case of exception. class ForbidTypeLoadHolder { public: ForbidTypeLoadHolder() { BEGIN_FORBID_TYPELOAD(); } ~ForbidTypeLoadHolder() { END_FORBID_TYPELOAD(); } } forbidTypeLoad; #endif // TODO: Verify that eager fixup dependency graphs can contain no cycles OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOADED); NativeImage *compositeNativeImage = GetCompositeNativeImage(); if (compositeNativeImage != NULL) { // For composite images, multiple modules may request initializing eager fixups // from multiple threads so we need to lock their resolution. CrstHolder compositeEagerFixups(compositeNativeImage->EagerFixupsLock()); if (compositeNativeImage->EagerFixupsHaveRun()) { if (compositeNativeImage->ReadyToRunCodeDisabled()) GetReadyToRunInfo()->DisableAllR2RCode(); return; } RunEagerFixupsUnlocked(); if (GetReadyToRunInfo()->ReadyToRunCodeDisabled()) compositeNativeImage->DisableAllR2RCode(); compositeNativeImage->SetEagerFixupsHaveRun(); } else { // Per-module eager fixups don't need locking RunEagerFixupsUnlocked(); } } void Module::RunEagerFixupsUnlocked() { COUNT_T nSections; PTR_CORCOMPILE_IMPORT_SECTION pSections = GetImportSections(&nSections); PEImageLayout *pNativeImage = GetReadyToRunImage(); for (COUNT_T iSection = 0; iSection < nSections; iSection++) { PTR_CORCOMPILE_IMPORT_SECTION pSection = pSections + iSection; if ((pSection->Flags & CORCOMPILE_IMPORT_FLAGS_EAGER) == 0) continue; COUNT_T tableSize; TADDR tableBase = pNativeImage->GetDirectoryData(&pSection->Section, &tableSize); if (pSection->Signatures != NULL) { PTR_DWORD pSignatures = dac_cast<PTR_DWORD>(pNativeImage->GetRvaData(pSection->Signatures)); for (SIZE_T * fixupCell = (SIZE_T *)tableBase; fixupCell < (SIZE_T *)(tableBase + tableSize); fixupCell++) { SIZE_T fixupIndex = fixupCell - (SIZE_T *)tableBase; if (!LoadDynamicInfoEntry(this, pSignatures[fixupIndex], fixupCell)) { if (IsReadyToRun()) { GetReadyToRunInfo()->DisableAllR2RCode(); } else { _ASSERTE(!"LoadDynamicInfoEntry failed"); ThrowHR(COR_E_BADIMAGEFORMAT); } } else { _ASSERTE(*fixupCell != NULL); } } } else { for (SIZE_T * fixupCell = (SIZE_T *)tableBase; fixupCell < (SIZE_T *)(tableBase + tableSize); fixupCell++) { // Ensure that the compiler won't fetch the value twice SIZE_T fixup = VolatileLoadWithoutBarrier(fixupCell); // This method may execute multiple times in multi-domain scenarios. Check that the fixup has not been // fixed up yet. if (CORCOMPILE_IS_FIXUP_TAGGED(fixup, pSection)) { if (!LoadDynamicInfoEntry(this, (RVA)CORCOMPILE_UNTAG_TOKEN(fixup), fixupCell)) { if (IsReadyToRun()) { GetReadyToRunInfo()->DisableAllR2RCode(); } else { _ASSERTE(!"LoadDynamicInfoEntry failed"); ThrowHR(COR_E_BADIMAGEFORMAT); } } _ASSERTE(!CORCOMPILE_IS_FIXUP_TAGGED(*fixupCell, pSection)); } } } } TADDR base = dac_cast<TADDR>(pNativeImage->GetBase()); ExecutionManager::AddCodeRange( base, base + (TADDR)pNativeImage->GetVirtualSize(), ExecutionManager::GetReadyToRunJitManager(), RangeSection::RANGE_SECTION_READYTORUN, this /* pHeapListOrZapModule */); } #endif // !DACCESS_COMPILE #ifndef DACCESS_COMPILE //----------------------------------------------------------------------------- BOOL Module::FixupNativeEntry(CORCOMPILE_IMPORT_SECTION* pSection, SIZE_T fixupIndex, SIZE_T* fixupCell, BOOL mayUsePrecompiledNDirectMethods) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(fixupCell)); } CONTRACTL_END; // Ensure that the compiler won't fetch the value twice SIZE_T fixup = VolatileLoadWithoutBarrier(fixupCell); if (pSection->Signatures != NULL) { if (fixup == NULL) { PTR_DWORD pSignatures = dac_cast<PTR_DWORD>(GetReadyToRunImage()->GetRvaData(pSection->Signatures)); if (!LoadDynamicInfoEntry(this, pSignatures[fixupIndex], fixupCell, mayUsePrecompiledNDirectMethods)) return FALSE; _ASSERTE(*fixupCell != NULL); } } else { if (CORCOMPILE_IS_FIXUP_TAGGED(fixup, pSection)) { // Fixup has not been fixed up yet if (!LoadDynamicInfoEntry(this, (RVA)CORCOMPILE_UNTAG_TOKEN(fixup), fixupCell, mayUsePrecompiledNDirectMethods)) return FALSE; _ASSERTE(!CORCOMPILE_IS_FIXUP_TAGGED(*fixupCell, pSection)); } else { // // Handle tables are special. We may need to restore static handle or previous // attempts to load handle could have been partial. // if (pSection->Type == CORCOMPILE_IMPORT_TYPE_TYPE_HANDLE) { TypeHandle::FromPtr((void*)fixup).CheckRestore(); } else if (pSection->Type == CORCOMPILE_IMPORT_TYPE_METHOD_HANDLE) { ((MethodDesc*)(fixup))->CheckRestore(); } } } return TRUE; } // // Profile data management // ICorJitInfo::BlockCounts * Module::AllocateMethodBlockCounts(mdToken _token, DWORD _count, DWORD _ILSize) { CONTRACT (ICorJitInfo::BlockCounts*) { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL;); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; assert(_ILSize != 0); DWORD listSize = sizeof(CORCOMPILE_METHOD_PROFILE_LIST); DWORD headerSize = sizeof(CORBBTPROF_METHOD_HEADER); DWORD blockSize = _count * sizeof(CORBBTPROF_BLOCK_DATA); DWORD totalSize = listSize + headerSize + blockSize; BYTE * memory = (BYTE *) (void *) this->m_pAssembly->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(totalSize)); CORCOMPILE_METHOD_PROFILE_LIST * methodProfileList = (CORCOMPILE_METHOD_PROFILE_LIST *) (memory + 0); CORBBTPROF_METHOD_HEADER * methodProfileData = (CORBBTPROF_METHOD_HEADER *) (memory + listSize); // Note: Memory allocated on the LowFrequencyHeap is zero filled methodProfileData->size = headerSize + blockSize; methodProfileData->method.token = _token; methodProfileData->method.ILSize = _ILSize; methodProfileData->method.cBlock = _count; assert(methodProfileData->size == methodProfileData->Size()); // Link it to the per module list of profile data buffers methodProfileList->next = m_methodProfileList; m_methodProfileList = methodProfileList; RETURN ((ICorJitInfo::BlockCounts *) &methodProfileData->method.block[0]); } HANDLE Module::OpenMethodProfileDataLogFile(GUID mvid) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; HANDLE profileDataFile = INVALID_HANDLE_VALUE; SString path; LPCWSTR assemblyPath = m_pPEAssembly->GetPath(); LPCWSTR ibcDir = g_pConfig->GetZapBBInstrDir(); // should we put the ibc data into a particular directory? if (ibcDir == 0) { path.Set(assemblyPath); // no, then put it beside the IL dll } else { LPCWSTR assemblyFileName = wcsrchr(assemblyPath, DIRECTORY_SEPARATOR_CHAR_W); if (assemblyFileName) assemblyFileName++; // skip past the \ char else assemblyFileName = assemblyPath; path.Set(ibcDir); // yes, put it in the directory, named with the assembly name. path.Append(DIRECTORY_SEPARATOR_CHAR_W); path.Append(assemblyFileName); } SString::Iterator ext = path.End(); // remove the extension if (path.FindBack(ext, '.')) path.Truncate(ext); path.Append(W(".ibc")); // replace with .ibc extension profileDataFile = WszCreateFile(path, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN, NULL); if (profileDataFile == INVALID_HANDLE_VALUE) COMPlusThrowWin32(); DWORD count; CORBBTPROF_FILE_HEADER fileHeader; SetFilePointer(profileDataFile, 0, NULL, FILE_BEGIN); BOOL result = ReadFile(profileDataFile, &fileHeader, sizeof(fileHeader), &count, NULL); if (result && (count == sizeof(fileHeader)) && (fileHeader.HeaderSize == sizeof(CORBBTPROF_FILE_HEADER)) && (fileHeader.Magic == CORBBTPROF_MAGIC) && (fileHeader.Version == CORBBTPROF_CURRENT_VERSION) && (fileHeader.MVID == mvid)) { // // The existing file was from the same assembly version - just append to it. // SetFilePointer(profileDataFile, 0, NULL, FILE_END); } else { // // Either this is a new file, or it's from a previous version. Replace the contents. // SetFilePointer(profileDataFile, 0, NULL, FILE_BEGIN); } return profileDataFile; } // Note that this method cleans up the profile buffers, so it's crucial that // no managed code in the module is allowed to run once this method has // been called! class ProfileMap { public: SIZE_T getCurrentOffset() {WRAPPER_NO_CONTRACT; return buffer.Size();} void * getOffsetPtr(SIZE_T offset) { LIMITED_METHOD_CONTRACT; _ASSERTE(offset <= buffer.Size()); return ((void *) (((char *) buffer.Ptr()) + offset)); } void *Allocate(SIZE_T size) { CONTRACT(void *) { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL;); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; SIZE_T oldSize = buffer.Size(); buffer.ReSizeThrows(oldSize + size); RETURN getOffsetPtr(oldSize); } private: CQuickBytes buffer; }; class ProfileEmitter { public: ProfileEmitter() { LIMITED_METHOD_CONTRACT; pSectionList = NULL; } ~ProfileEmitter() { WRAPPER_NO_CONTRACT; while (pSectionList) { SectionList *temp = pSectionList->next; delete pSectionList; pSectionList = temp; } } ProfileMap *EmitNewSection(SectionFormat format) { WRAPPER_NO_CONTRACT; SectionList *s = new SectionList(); s->format = format; s->next = pSectionList; pSectionList = s; return &s->profileMap; } // // Serialize the profile sections into pMap // void Serialize(ProfileMap *profileMap, GUID mvid) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; // // Allocate the file header // { CORBBTPROF_FILE_HEADER *fileHeader; fileHeader = (CORBBTPROF_FILE_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_FILE_HEADER)); fileHeader->HeaderSize = sizeof(CORBBTPROF_FILE_HEADER); fileHeader->Magic = CORBBTPROF_MAGIC; fileHeader->Version = CORBBTPROF_CURRENT_VERSION; fileHeader->MVID = mvid; } // // Count the number of sections // ULONG32 numSections = 0; for (SectionList *p = pSectionList; p; p = p->next) { numSections++; } // // Allocate the section table // SIZE_T tableEntryOffset; { CORBBTPROF_SECTION_TABLE_HEADER *tableHeader; tableHeader = (CORBBTPROF_SECTION_TABLE_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_SECTION_TABLE_HEADER)); tableHeader->NumEntries = numSections; tableEntryOffset = profileMap->getCurrentOffset(); CORBBTPROF_SECTION_TABLE_ENTRY *tableEntry; tableEntry = (CORBBTPROF_SECTION_TABLE_ENTRY *) profileMap->Allocate(sizeof(CORBBTPROF_SECTION_TABLE_ENTRY) * numSections); } // // Allocate the data sections // { ULONG secCount = 0; for (SectionList *pSec = pSectionList; pSec; pSec = pSec->next, secCount++) { SIZE_T offset = profileMap->getCurrentOffset(); assert((offset & 0x3) == 0); SIZE_T actualSize = pSec->profileMap.getCurrentOffset(); SIZE_T alignUpSize = AlignUp(actualSize, sizeof(DWORD)); profileMap->Allocate(alignUpSize); memcpy(profileMap->getOffsetPtr(offset), pSec->profileMap.getOffsetPtr(0), actualSize); if (alignUpSize > actualSize) { memset(((BYTE*)profileMap->getOffsetPtr(offset))+actualSize, 0, (alignUpSize - actualSize)); } CORBBTPROF_SECTION_TABLE_ENTRY *tableEntry; tableEntry = (CORBBTPROF_SECTION_TABLE_ENTRY *) profileMap->getOffsetPtr(tableEntryOffset); tableEntry += secCount; tableEntry->FormatID = pSec->format; tableEntry->Data.Offset = offset; tableEntry->Data.Size = alignUpSize; } } // // Allocate the end token marker // { ULONG *endToken; endToken = (ULONG *) profileMap->Allocate(sizeof(ULONG)); *endToken = CORBBTPROF_END_TOKEN; } } private: struct SectionList { SectionFormat format; ProfileMap profileMap; SectionList *next; }; SectionList * pSectionList; }; /*static*/ idTypeSpec TypeSpecBlobEntry::s_lastTypeSpecToken = idTypeSpecNil; /*static*/ idMethodSpec MethodSpecBlobEntry::s_lastMethodSpecToken = idMethodSpecNil; /*static*/ idExternalNamespace ExternalNamespaceBlobEntry::s_lastExternalNamespaceToken = idExternalNamespaceNil; /*static*/ idExternalType ExternalTypeBlobEntry::s_lastExternalTypeToken = idExternalTypeNil; /*static*/ idExternalSignature ExternalSignatureBlobEntry::s_lastExternalSignatureToken = idExternalSignatureNil; /*static*/ idExternalMethod ExternalMethodBlobEntry::s_lastExternalMethodToken = idExternalMethodNil; inline static size_t HashCombine(size_t h1, size_t h2) { LIMITED_METHOD_CONTRACT; size_t result = (h1 * 129) ^ h2; return result; } bool TypeSpecBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const TypeSpecBlobEntry * other2 = static_cast<const TypeSpecBlobEntry *>(other); if (this->cbSig() != other2->cbSig()) return false; PCCOR_SIGNATURE p1 = this->pSig(); PCCOR_SIGNATURE p2 = other2->pSig(); for (DWORD i=0; (i < this->cbSig()); i++) if (p1[i] != p2[i]) return false; return true; } size_t TypeSpecBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); PCCOR_SIGNATURE p1 = pSig(); for (DWORD i=0; (i < cbSig()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } TypeSpecBlobEntry::TypeSpecBlobEntry(DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(_cbSig > 0); PRECONDITION(CheckPointer(_pSig)); } CONTRACTL_END; m_token = idTypeSpecNil; m_flags = 0; m_cbSig = 0; COR_SIGNATURE * pNewSig = (COR_SIGNATURE *) new (nothrow) BYTE[_cbSig]; if (pNewSig != NULL) { m_flags = 0; m_cbSig = _cbSig; memcpy(pNewSig, _pSig, _cbSig); } m_pSig = const_cast<PCCOR_SIGNATURE>(pNewSig); } /* static */ const TypeSpecBlobEntry * TypeSpecBlobEntry::FindOrAdd(PTR_Module pModule, DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_cbSig == 0) || (_pSig == NULL)) return NULL; TypeSpecBlobEntry sEntry(_cbSig, _pSig); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new type spec profiling blob entry // TypeSpecBlobEntry * newEntry = new (nothrow) TypeSpecBlobEntry(_cbSig, _pSig); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc type spec token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the type spec entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ParamTypeSpec); return static_cast<const TypeSpecBlobEntry *>(pEntry); } bool MethodSpecBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const MethodSpecBlobEntry * other2 = static_cast<const MethodSpecBlobEntry *>(other); if (this->cbSig() != other2->cbSig()) return false; PCCOR_SIGNATURE p1 = this->pSig(); PCCOR_SIGNATURE p2 = other2->pSig(); for (DWORD i=0; (i < this->cbSig()); i++) if (p1[i] != p2[i]) return false; return true; } size_t MethodSpecBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); PCCOR_SIGNATURE p1 = pSig(); for (DWORD i=0; (i < cbSig()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } MethodSpecBlobEntry::MethodSpecBlobEntry(DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(_cbSig > 0); PRECONDITION(CheckPointer(_pSig)); } CONTRACTL_END; m_token = idMethodSpecNil; m_flags = 0; m_cbSig = 0; COR_SIGNATURE * pNewSig = (COR_SIGNATURE *) new (nothrow) BYTE[_cbSig]; if (pNewSig != NULL) { m_flags = 0; m_cbSig = _cbSig; memcpy(pNewSig, _pSig, _cbSig); } m_pSig = const_cast<PCCOR_SIGNATURE>(pNewSig); } /* static */ const MethodSpecBlobEntry * MethodSpecBlobEntry::FindOrAdd(PTR_Module pModule, DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_cbSig == 0) || (_pSig == NULL)) return NULL; MethodSpecBlobEntry sEntry(_cbSig, _pSig); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new method spec profiling blob entry // MethodSpecBlobEntry * newEntry = new (nothrow) MethodSpecBlobEntry(_cbSig, _pSig); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc method spec token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the method spec entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ParamMethodSpec); return static_cast<const MethodSpecBlobEntry *>(pEntry); } bool ExternalNamespaceBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const ExternalNamespaceBlobEntry * other2 = static_cast<const ExternalNamespaceBlobEntry *>(other); if (this->cbName() != other2->cbName()) return false; LPCSTR p1 = this->pName(); LPCSTR p2 = other2->pName(); for (DWORD i=0; (i < this->cbName()); i++) if (p1[i] != p2[i]) return false; return true; } size_t ExternalNamespaceBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); LPCSTR p1 = pName(); for (DWORD i=0; (i < cbName()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } ExternalNamespaceBlobEntry::ExternalNamespaceBlobEntry(LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(CheckPointer(_pName)); } CONTRACTL_END; m_token = idExternalNamespaceNil; m_cbName = 0; m_pName = NULL; DWORD _cbName = (DWORD) strlen(_pName) + 1; LPSTR * pName = (LPSTR *) new (nothrow) CHAR[_cbName]; if (pName != NULL) { m_cbName = _cbName; memcpy(pName, _pName, _cbName); m_pName = (LPCSTR) pName; } } /* static */ const ExternalNamespaceBlobEntry * ExternalNamespaceBlobEntry::FindOrAdd(PTR_Module pModule, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_pName == NULL) || (::strlen(_pName) == 0)) return NULL; ExternalNamespaceBlobEntry sEntry(_pName); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new external namespace blob entry // ExternalNamespaceBlobEntry * newEntry = new (nothrow) ExternalNamespaceBlobEntry(_pName); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc external namespace token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the external namespace entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ExternalNamespaceDef); return static_cast<const ExternalNamespaceBlobEntry *>(pEntry); } bool ExternalTypeBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const ExternalTypeBlobEntry * other2 = static_cast<const ExternalTypeBlobEntry *>(other); if (this->assemblyRef() != other2->assemblyRef()) return false; if (this->nestedClass() != other2->nestedClass()) return false; if (this->nameSpace() != other2->nameSpace()) return false; if (this->cbName() != other2->cbName()) return false; LPCSTR p1 = this->pName(); LPCSTR p2 = other2->pName(); for (DWORD i=0; (i < this->cbName()); i++) if (p1[i] != p2[i]) return false; return true; } size_t ExternalTypeBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); hashValue = HashCombine(hashValue, assemblyRef()); hashValue = HashCombine(hashValue, nestedClass()); hashValue = HashCombine(hashValue, nameSpace()); LPCSTR p1 = pName(); for (DWORD i=0; (i < cbName()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } ExternalTypeBlobEntry::ExternalTypeBlobEntry(mdToken _assemblyRef, mdToken _nestedClass, mdToken _nameSpace, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(CheckPointer(_pName)); } CONTRACTL_END; m_token = idExternalTypeNil; m_assemblyRef = mdAssemblyRefNil; m_nestedClass = idExternalTypeNil; m_nameSpace = idExternalNamespaceNil; m_cbName = 0; m_pName = NULL; DWORD _cbName = (DWORD) strlen(_pName) + 1; LPSTR * pName = (LPSTR *) new (nothrow) CHAR[_cbName]; if (pName != NULL) { m_assemblyRef = _assemblyRef; m_nestedClass = _nestedClass; m_nameSpace = _nameSpace; m_cbName = _cbName; memcpy(pName, _pName, _cbName); m_pName = (LPCSTR) pName; } } /* static */ const ExternalTypeBlobEntry * ExternalTypeBlobEntry::FindOrAdd(PTR_Module pModule, mdToken _assemblyRef, mdToken _nestedClass, mdToken _nameSpace, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_pName == NULL) || (::strlen(_pName) == 0)) return NULL; ExternalTypeBlobEntry sEntry(_assemblyRef, _nestedClass, _nameSpace, _pName); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new external type blob entry // ExternalTypeBlobEntry * newEntry = new (nothrow) ExternalTypeBlobEntry(_assemblyRef, _nestedClass, _nameSpace, _pName); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc external type token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the external type entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ExternalTypeDef); return static_cast<const ExternalTypeBlobEntry *>(pEntry); } bool ExternalSignatureBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const ExternalSignatureBlobEntry * other2 = static_cast<const ExternalSignatureBlobEntry *>(other); if (this->cbSig() != other2->cbSig()) return false; PCCOR_SIGNATURE p1 = this->pSig(); PCCOR_SIGNATURE p2 = other2->pSig(); for (DWORD i=0; (i < this->cbSig()); i++) if (p1[i] != p2[i]) return false; return true; } size_t ExternalSignatureBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); hashValue = HashCombine(hashValue, cbSig()); PCCOR_SIGNATURE p1 = pSig(); for (DWORD i=0; (i < cbSig()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } ExternalSignatureBlobEntry::ExternalSignatureBlobEntry(DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(_cbSig > 0); PRECONDITION(CheckPointer(_pSig)); } CONTRACTL_END; m_token = idExternalSignatureNil; m_cbSig = 0; COR_SIGNATURE * pNewSig = (COR_SIGNATURE *) new (nothrow) BYTE[_cbSig]; if (pNewSig != NULL) { m_cbSig = _cbSig; memcpy(pNewSig, _pSig, _cbSig); } m_pSig = const_cast<PCCOR_SIGNATURE>(pNewSig); } /* static */ const ExternalSignatureBlobEntry * ExternalSignatureBlobEntry::FindOrAdd(PTR_Module pModule, DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_cbSig == 0) || (_pSig == NULL)) return NULL; ExternalSignatureBlobEntry sEntry(_cbSig, _pSig); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new external signature blob entry // ExternalSignatureBlobEntry * newEntry = new (nothrow) ExternalSignatureBlobEntry(_cbSig, _pSig); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc external signature token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the external signature entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ExternalSignatureDef); return static_cast<const ExternalSignatureBlobEntry *>(pEntry); } bool ExternalMethodBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const ExternalMethodBlobEntry * other2 = static_cast<const ExternalMethodBlobEntry *>(other); if (this->nestedClass() != other2->nestedClass()) return false; if (this->signature() != other2->signature()) return false; if (this->cbName() != other2->cbName()) return false; LPCSTR p1 = this->pName(); LPCSTR p2 = other2->pName(); for (DWORD i=0; (i < this->cbName()); i++) if (p1[i] != p2[i]) return false; return true; } size_t ExternalMethodBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); hashValue = HashCombine(hashValue, nestedClass()); hashValue = HashCombine(hashValue, signature()); LPCSTR p1 = pName(); for (DWORD i=0; (i < cbName()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } ExternalMethodBlobEntry::ExternalMethodBlobEntry(mdToken _nestedClass, mdToken _signature, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(CheckPointer(_pName)); } CONTRACTL_END; m_token = idExternalMethodNil; m_nestedClass = idExternalTypeNil; m_signature = idExternalSignatureNil; m_cbName = 0; DWORD _cbName = (DWORD) strlen(_pName) + 1; LPSTR * pName = (LPSTR *) new (nothrow) CHAR[_cbName]; if (pName != NULL) { m_nestedClass = _nestedClass; m_signature = _signature; m_cbName = _cbName; memcpy(pName, _pName, _cbName); m_pName = (LPSTR) pName; } } /* static */ const ExternalMethodBlobEntry * ExternalMethodBlobEntry::FindOrAdd( PTR_Module pModule, mdToken _nestedClass, mdToken _signature, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(CheckPointer(_pName)); } CONTRACTL_END; if ((_pName == NULL) || (::strlen(_pName) == 0)) return NULL; ExternalMethodBlobEntry sEntry(_nestedClass, _signature, _pName); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new external type blob entry // ExternalMethodBlobEntry * newEntry; newEntry = new (nothrow) ExternalMethodBlobEntry(_nestedClass, _signature, _pName); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc external method token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the external method entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ExternalMethodDef); return static_cast<const ExternalMethodBlobEntry *>(pEntry); } static bool GetBasename(LPCWSTR _src, _Out_writes_z_(dstlen) LPWSTR _dst, int dstlen) { LIMITED_METHOD_CONTRACT; LPCWSTR src = _src; LPWSTR dst = _dst; if ((src == NULL) || (dstlen <= 0)) return false; bool inQuotes = false; LPWSTR dstLast = dst + (dstlen - 1); while (dst < dstLast) { WCHAR wch = *src++; if (wch == W('"')) { inQuotes = !inQuotes; continue; } if (wch == 0) break; *dst++ = wch; if (!inQuotes) { if ((wch == W('\\')) || (wch == W(':'))) { dst = _dst; } else if (wch == W(' ')) { dst--; break; } } } *dst++ = 0; return true; } static LPCWSTR s_pCommandLine = NULL; // Retrieve the full command line for the current process. LPCWSTR GetManagedCommandLine() { LIMITED_METHOD_CONTRACT; return s_pCommandLine; } LPCWSTR GetCommandLineForDiagnostics() { // Get the managed command line. LPCWSTR pCmdLine = GetManagedCommandLine(); // Checkout https://github.com/dotnet/coreclr/pull/24433 for more information about this fall back. if (pCmdLine == nullptr) { // Use the result from GetCommandLineW() instead pCmdLine = GetCommandLineW(); } return pCmdLine; } void Append_Next_Item(LPWSTR* ppCursor, SIZE_T* pRemainingLen, LPCWSTR pItem, bool addSpace) { // read the writeback args and setup pCursor and remainingLen LPWSTR pCursor = *ppCursor; SIZE_T remainingLen = *pRemainingLen; // Calculate the length of pItem SIZE_T itemLen = wcslen(pItem); // Append pItem at pCursor wcscpy_s(pCursor, remainingLen, pItem); pCursor += itemLen; remainingLen -= itemLen; // Also append a space after pItem, if requested if (addSpace) { // Append a space at pCursor wcscpy_s(pCursor, remainingLen, W(" ")); pCursor += 1; remainingLen -= 1; } // writeback and update ppCursor and pRemainingLen *ppCursor = pCursor; *pRemainingLen = remainingLen; } void SaveManagedCommandLine(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR *argv) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; // Get the command line. LPCWSTR osCommandLine = GetCommandLineW(); #ifndef TARGET_UNIX // On Windows, osCommandLine contains the executable and all arguments. s_pCommandLine = osCommandLine; #else // On UNIX, the PAL doesn't have the command line arguments, so we must build the command line. // osCommandLine contains the full path to the executable. SIZE_T commandLineLen = (wcslen(osCommandLine) + 1); // We will append pwzAssemblyPath to the 'corerun' osCommandLine commandLineLen += (wcslen(pwzAssemblyPath) + 1); for (int i = 0; i < argc; i++) { commandLineLen += (wcslen(argv[i]) + 1); } commandLineLen++; // Add 1 for the null-termination // Allocate a new string for the command line. LPWSTR pNewCommandLine = new WCHAR[commandLineLen]; SIZE_T remainingLen = commandLineLen; LPWSTR pCursor = pNewCommandLine; Append_Next_Item(&pCursor, &remainingLen, osCommandLine, true); Append_Next_Item(&pCursor, &remainingLen, pwzAssemblyPath, (argc > 0)); for (int i = 0; i < argc; i++) { bool moreArgs = (i < (argc-1)); Append_Next_Item(&pCursor, &remainingLen, argv[i], moreArgs); } s_pCommandLine = pNewCommandLine; #endif } static void ProfileDataAllocateScenarioInfo(ProfileEmitter * pEmitter, LPCSTR scopeName, GUID* pMvid) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; ProfileMap *profileMap = pEmitter->EmitNewSection(ScenarioInfo); // // Allocate and initialize the scenario info section // { CORBBTPROF_SCENARIO_INFO_SECTION_HEADER *siHeader; siHeader = (CORBBTPROF_SCENARIO_INFO_SECTION_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_SCENARIO_INFO_SECTION_HEADER)); siHeader->NumScenarios = 1; siHeader->TotalNumRuns = 1; } // // Allocate and initialize the scenario header section // { // Get the managed command line. LPCWSTR pCmdLine = GetCommandLineForDiagnostics(); S_SIZE_T cCmdLine = S_SIZE_T(wcslen(pCmdLine)); cCmdLine += 1; if (cCmdLine.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } LPCWSTR pSystemInfo = W("<machine,OS>"); S_SIZE_T cSystemInfo = S_SIZE_T(wcslen(pSystemInfo)); cSystemInfo += 1; if (cSystemInfo.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } FILETIME runTime, unused1, unused2, unused3; GetProcessTimes(GetCurrentProcess(), &runTime, &unused1, &unused2, &unused3); WCHAR scenarioName[256]; GetBasename(pCmdLine, &scenarioName[0], 256); LPCWSTR pName = &scenarioName[0]; S_SIZE_T cName = S_SIZE_T(wcslen(pName)); cName += 1; if (cName.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } S_SIZE_T sizeHeader = S_SIZE_T(sizeof(CORBBTPROF_SCENARIO_HEADER)); sizeHeader += cName * S_SIZE_T(sizeof(WCHAR)); if (sizeHeader.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } S_SIZE_T sizeRun = S_SIZE_T(sizeof(CORBBTPROF_SCENARIO_RUN)); sizeRun += cCmdLine * S_SIZE_T(sizeof(WCHAR)); sizeRun += cSystemInfo * S_SIZE_T(sizeof(WCHAR)); if (sizeRun.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } // // Allocate the Scenario Header struct // SIZE_T sHeaderOffset; { CORBBTPROF_SCENARIO_HEADER *sHeader; S_SIZE_T sHeaderSize = sizeHeader + sizeRun; if (sHeaderSize.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } sHeaderOffset = profileMap->getCurrentOffset(); sHeader = (CORBBTPROF_SCENARIO_HEADER *) profileMap->Allocate(sizeHeader.Value()); sHeader->size = sHeaderSize.Value(); sHeader->scenario.ordinal = 1; sHeader->scenario.mask = 1; sHeader->scenario.priority = 0; sHeader->scenario.numRuns = 1; sHeader->scenario.cName = cName.Value(); wcscpy_s(sHeader->scenario.name, cName.Value(), pName); } // // Allocate the Scenario Run struct // { CORBBTPROF_SCENARIO_RUN *sRun; sRun = (CORBBTPROF_SCENARIO_RUN *) profileMap->Allocate(sizeRun.Value()); sRun->runTime = runTime; sRun->mvid = *pMvid; sRun->cCmdLine = cCmdLine.Value(); sRun->cSystemInfo = cSystemInfo.Value(); wcscpy_s(sRun->cmdLine, cCmdLine.Value(), pCmdLine); wcscpy_s(sRun->cmdLine+cCmdLine.Value(), cSystemInfo.Value(), pSystemInfo); } #ifdef _DEBUG { CORBBTPROF_SCENARIO_HEADER * sHeader; sHeader = (CORBBTPROF_SCENARIO_HEADER *) profileMap->getOffsetPtr(sHeaderOffset); assert(sHeader->size == sHeader->Size()); } #endif } } static void ProfileDataAllocateMethodBlockCounts(ProfileEmitter * pEmitter, CORCOMPILE_METHOD_PROFILE_LIST * pMethodProfileListHead) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; ProfileMap *profileMap = pEmitter->EmitNewSection(MethodBlockCounts); // // Allocate and initialize the method block count section // SIZE_T mbcHeaderOffset; { CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER *mbcHeader; mbcHeaderOffset = profileMap->getCurrentOffset(); mbcHeader = (CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER)); mbcHeader->NumMethods = 0; // This gets filled in later } ULONG numMethods = 0; // We count the number of methods that were executed for (CORCOMPILE_METHOD_PROFILE_LIST * methodProfileList = pMethodProfileListHead; methodProfileList; methodProfileList = methodProfileList->next) { CORBBTPROF_METHOD_HEADER * pInfo = methodProfileList->GetInfo(); assert(pInfo->size == pInfo->Size()); // // We set methodWasExecuted based upon the ExecutionCount of the very first block // bool methodWasExecuted = (pInfo->method.block[0].ExecutionCount > 0); // // If the method was not executed then we don't need to output this methods block counts // SIZE_T methodHeaderOffset; if (methodWasExecuted) { DWORD profileDataSize = pInfo->size; methodHeaderOffset = profileMap->getCurrentOffset(); CORBBTPROF_METHOD_HEADER *methodHeader = (CORBBTPROF_METHOD_HEADER *) profileMap->Allocate(profileDataSize); memcpy(methodHeader, pInfo, profileDataSize); numMethods++; } // Reset all of the basic block counts to zero for (UINT32 i=0; (i < pInfo->method.cBlock); i++ ) { // // If methodWasExecuted is false then every block's ExecutionCount should also be zero // _ASSERTE(methodWasExecuted || (pInfo->method.block[i].ExecutionCount == 0)); pInfo->method.block[i].ExecutionCount = 0; } } { CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER *mbcHeader; // We have to refetch the mbcHeader as calls to Allocate will resize and thus move the mbcHeader mbcHeader = (CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER *) profileMap->getOffsetPtr(mbcHeaderOffset); mbcHeader->NumMethods = numMethods; } } /*static*/ void Module::ProfileDataAllocateTokenLists(ProfileEmitter * pEmitter, Module::TokenProfileData* pTokenProfileData) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; // // Allocate and initialize the token list sections // if (pTokenProfileData) { for (int format = 0; format < (int)SectionFormatCount; format++) { CQuickArray<CORBBTPROF_TOKEN_INFO> *pTokenArray = &(pTokenProfileData->m_formats[format].tokenArray); if (pTokenArray->Size() != 0) { ProfileMap * profileMap = pEmitter->EmitNewSection((SectionFormat) format); CORBBTPROF_TOKEN_LIST_SECTION_HEADER *header; header = (CORBBTPROF_TOKEN_LIST_SECTION_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_TOKEN_LIST_SECTION_HEADER) + pTokenArray->Size() * sizeof(CORBBTPROF_TOKEN_INFO)); header->NumTokens = pTokenArray->Size(); memcpy( (header + 1), &((*pTokenArray)[0]), pTokenArray->Size() * sizeof(CORBBTPROF_TOKEN_INFO)); // Reset the collected tokens for (unsigned i = 0; i < CORBBTPROF_TOKEN_MAX_NUM_FLAGS; i++) { pTokenProfileData->m_formats[format].tokenBitmaps[i].Reset(); } pTokenProfileData->m_formats[format].tokenArray.ReSizeNoThrow(0); } } } } static void ProfileDataAllocateTokenDefinitions(ProfileEmitter * pEmitter, Module * pModule) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; // // Allocate and initialize the ibc token definition section (aka the Blob stream) // ProfileMap * profileMap = pEmitter->EmitNewSection(BlobStream); // Compute the size of the metadata section: // It is the sum of all of the Metadata Profile pool entries // plus the sum of all of the Param signature entries // size_t totalSize = 0; for (ProfilingBlobTable::Iterator cur = pModule->GetProfilingBlobTable()->Begin(), end = pModule->GetProfilingBlobTable()->End(); (cur != end); cur++) { const ProfilingBlobEntry * pEntry = *cur; size_t blobElementSize = pEntry->varSize(); switch (pEntry->kind()) { case ParamTypeSpec: case ParamMethodSpec: blobElementSize += sizeof(CORBBTPROF_BLOB_PARAM_SIG_ENTRY); break; case ExternalNamespaceDef: blobElementSize += sizeof(CORBBTPROF_BLOB_NAMESPACE_DEF_ENTRY); break; case ExternalTypeDef: blobElementSize += sizeof(CORBBTPROF_BLOB_TYPE_DEF_ENTRY); break; case ExternalSignatureDef: blobElementSize += sizeof(CORBBTPROF_BLOB_SIGNATURE_DEF_ENTRY); break; case ExternalMethodDef: blobElementSize += sizeof(CORBBTPROF_BLOB_METHOD_DEF_ENTRY); break; default: _ASSERTE(!"Unexpected blob type"); break; } totalSize += blobElementSize; } profileMap->Allocate(totalSize); size_t currentPos = 0; // Traverse each element and record it size_t blobElementSize = 0; for (ProfilingBlobTable::Iterator cur = pModule->GetProfilingBlobTable()->Begin(), end = pModule->GetProfilingBlobTable()->End(); (cur != end); cur++, currentPos += blobElementSize) { const ProfilingBlobEntry * pEntry = *cur; blobElementSize = pEntry->varSize(); void *profileData = profileMap->getOffsetPtr(currentPos); switch (pEntry->kind()) { case ParamTypeSpec: { CORBBTPROF_BLOB_PARAM_SIG_ENTRY * bProfileData = (CORBBTPROF_BLOB_PARAM_SIG_ENTRY*) profileData; const TypeSpecBlobEntry * typeSpecBlobEntry = static_cast<const TypeSpecBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_PARAM_SIG_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = typeSpecBlobEntry->kind(); bProfileData->blob.token = typeSpecBlobEntry->token(); _ASSERTE(typeSpecBlobEntry->cbSig() > 0); bProfileData->cSig = typeSpecBlobEntry->cbSig(); memcpy(&bProfileData->sig[0], typeSpecBlobEntry->pSig(), typeSpecBlobEntry->cbSig()); break; } case ParamMethodSpec: { CORBBTPROF_BLOB_PARAM_SIG_ENTRY * bProfileData = (CORBBTPROF_BLOB_PARAM_SIG_ENTRY*) profileData; const MethodSpecBlobEntry * methodSpecBlobEntry = static_cast<const MethodSpecBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_PARAM_SIG_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = methodSpecBlobEntry->kind(); bProfileData->blob.token = methodSpecBlobEntry->token(); _ASSERTE(methodSpecBlobEntry->cbSig() > 0); bProfileData->cSig = methodSpecBlobEntry->cbSig(); memcpy(&bProfileData->sig[0], methodSpecBlobEntry->pSig(), methodSpecBlobEntry->cbSig()); break; } case ExternalNamespaceDef: { CORBBTPROF_BLOB_NAMESPACE_DEF_ENTRY * bProfileData = (CORBBTPROF_BLOB_NAMESPACE_DEF_ENTRY*) profileData; const ExternalNamespaceBlobEntry * namespaceBlobEntry = static_cast<const ExternalNamespaceBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_NAMESPACE_DEF_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = namespaceBlobEntry->kind(); bProfileData->blob.token = namespaceBlobEntry->token(); _ASSERTE(namespaceBlobEntry->cbName() > 0); bProfileData->cName = namespaceBlobEntry->cbName(); memcpy(&bProfileData->name[0], namespaceBlobEntry->pName(), namespaceBlobEntry->cbName()); break; } case ExternalTypeDef: { CORBBTPROF_BLOB_TYPE_DEF_ENTRY * bProfileData = (CORBBTPROF_BLOB_TYPE_DEF_ENTRY*) profileData; const ExternalTypeBlobEntry * typeBlobEntry = static_cast<const ExternalTypeBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_TYPE_DEF_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = typeBlobEntry->kind(); bProfileData->blob.token = typeBlobEntry->token(); bProfileData->assemblyRefToken = typeBlobEntry->assemblyRef(); bProfileData->nestedClassToken = typeBlobEntry->nestedClass(); bProfileData->nameSpaceToken = typeBlobEntry->nameSpace(); _ASSERTE(typeBlobEntry->cbName() > 0); bProfileData->cName = typeBlobEntry->cbName(); memcpy(&bProfileData->name[0], typeBlobEntry->pName(), typeBlobEntry->cbName()); break; } case ExternalSignatureDef: { CORBBTPROF_BLOB_SIGNATURE_DEF_ENTRY * bProfileData = (CORBBTPROF_BLOB_SIGNATURE_DEF_ENTRY*) profileData; const ExternalSignatureBlobEntry * signatureBlobEntry = static_cast<const ExternalSignatureBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_SIGNATURE_DEF_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = signatureBlobEntry->kind(); bProfileData->blob.token = signatureBlobEntry->token(); _ASSERTE(signatureBlobEntry->cbSig() > 0); bProfileData->cSig = signatureBlobEntry->cbSig(); memcpy(&bProfileData->sig[0], signatureBlobEntry->pSig(), signatureBlobEntry->cbSig()); break; } case ExternalMethodDef: { CORBBTPROF_BLOB_METHOD_DEF_ENTRY * bProfileData = (CORBBTPROF_BLOB_METHOD_DEF_ENTRY*) profileData; const ExternalMethodBlobEntry * methodBlobEntry = static_cast<const ExternalMethodBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_METHOD_DEF_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = methodBlobEntry->kind(); bProfileData->blob.token = methodBlobEntry->token(); bProfileData->nestedClassToken = methodBlobEntry->nestedClass(); bProfileData->signatureToken = methodBlobEntry->signature(); _ASSERTE(methodBlobEntry->cbName() > 0); bProfileData->cName = methodBlobEntry->cbName(); memcpy(&bProfileData->name[0], methodBlobEntry->pName(), methodBlobEntry->cbName()); break; } default: _ASSERTE(!"Unexpected blob type"); break; } } _ASSERTE(currentPos == totalSize); // Emit a terminating entry with type EndOfBlobStream to mark the end DWORD mdElementSize = sizeof(CORBBTPROF_BLOB_ENTRY); void *profileData = profileMap->Allocate(mdElementSize); memset(profileData, 0, mdElementSize); CORBBTPROF_BLOB_ENTRY* mdProfileData = (CORBBTPROF_BLOB_ENTRY*) profileData; mdProfileData->type = EndOfBlobStream; mdProfileData->size = sizeof(CORBBTPROF_BLOB_ENTRY); } // Responsible for writing out the profile data if the COMPlus_BBInstr // environment variable is set. This is called when the module is unloaded // (usually at shutdown). HRESULT Module::WriteMethodProfileDataLogFile(bool cleanup) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(return E_OUTOFMEMORY;); } CONTRACTL_END; HRESULT hr = S_OK; EX_TRY { if (GetAssembly()->IsInstrumented() && (m_pProfilingBlobTable != NULL) && (m_tokenProfileData != NULL)) { NewHolder<ProfileEmitter> pEmitter(new ProfileEmitter()); // Get this ahead of time - metadata access may be logged, which will // take the m_tokenProfileData->crst, which we take a couple lines below LPCSTR pszName; GUID mvid; IfFailThrow(GetMDImport()->GetScopeProps(&pszName, &mvid)); CrstHolder ch(&m_tokenProfileData->crst); // // Create the scenario info section // ProfileDataAllocateScenarioInfo(pEmitter, pszName, &mvid); // // Create the method block count section // ProfileDataAllocateMethodBlockCounts(pEmitter, m_methodProfileList); // // Create the token list sections // ProfileDataAllocateTokenLists(pEmitter, m_tokenProfileData); // // Create the ibc token definition section (aka the Blob stream) // ProfileDataAllocateTokenDefinitions(pEmitter, this); // // Now store the profile data in the ibc file // ProfileMap profileImage; pEmitter->Serialize(&profileImage, mvid); HandleHolder profileDataFile(OpenMethodProfileDataLogFile(mvid)); ULONG count; BOOL result = WriteFile(profileDataFile, profileImage.getOffsetPtr(0), profileImage.getCurrentOffset(), &count, NULL); if (!result || (count != profileImage.getCurrentOffset())) { DWORD lasterror = GetLastError(); _ASSERTE(!"Error writing ibc profile data to file"); hr = HRESULT_FROM_WIN32(lasterror); } } if (cleanup) { DeleteProfilingData(); } } EX_CATCH { hr = E_FAIL; } EX_END_CATCH(SwallowAllExceptions) return hr; } /* static */ void Module::WriteAllModuleProfileData(bool cleanup) { CONTRACTL { NOTHROW; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; // Iterate over all the app domains; for each one iterator over its // assemblies; for each one iterate over its modules. EX_TRY { AppDomainIterator appDomainIterator(FALSE); while(appDomainIterator.Next()) { AppDomain * appDomain = appDomainIterator.GetDomain(); AppDomain::AssemblyIterator assemblyIterator = appDomain->IterateAssembliesEx( (AssemblyIterationFlags)(kIncludeLoaded | kIncludeExecution)); CollectibleAssemblyHolder<DomainAssembly *> pDomainAssembly; while (assemblyIterator.Next(pDomainAssembly.This())) { pDomainAssembly->GetModule()->WriteMethodProfileDataLogFile(cleanup); } } } EX_CATCH { } EX_END_CATCH(SwallowAllExceptions); } PTR_ProfilingBlobTable Module::GetProfilingBlobTable() { LIMITED_METHOD_CONTRACT; return m_pProfilingBlobTable; } void Module::CreateProfilingData() { TokenProfileData *tpd = TokenProfileData::CreateNoThrow(); PVOID pv = InterlockedCompareExchangeT(&m_tokenProfileData, tpd, NULL); if (pv != NULL) { delete tpd; } PTR_ProfilingBlobTable ppbt = new (nothrow) ProfilingBlobTable(); if (ppbt != NULL) { pv = InterlockedCompareExchangeT(&m_pProfilingBlobTable, ppbt, NULL); if (pv != NULL) { delete ppbt; } } } void Module::DeleteProfilingData() { if (m_pProfilingBlobTable != NULL) { for (ProfilingBlobTable::Iterator cur = m_pProfilingBlobTable->Begin(), end = m_pProfilingBlobTable->End(); (cur != end); cur++) { const ProfilingBlobEntry * pCurrentEntry = *cur; delete pCurrentEntry; } delete m_pProfilingBlobTable; m_pProfilingBlobTable = NULL; } if (m_tokenProfileData != NULL) { delete m_tokenProfileData; m_tokenProfileData = NULL; } // the metadataProfileData is free'ed in destructor of the corresponding MetaDataTracker } void Module::SetIsIJWFixedUp() { LIMITED_METHOD_CONTRACT; FastInterlockOr(&m_dwTransientFlags, IS_IJW_FIXED_UP); } /* static */ Module::TokenProfileData *Module::TokenProfileData::CreateNoThrow(void) { STATIC_CONTRACT_NOTHROW; TokenProfileData *tpd = NULL; EX_TRY { // // This constructor calls crst.Init(), which may throw. So putting (nothrow) doesn't // do what we would want it to. Thus I wrap it here in a TRY/CATCH and revert to NULL // if it fails. // tpd = new TokenProfileData(); } EX_CATCH { tpd = NULL; } EX_END_CATCH(SwallowAllExceptions); return tpd; } #endif // !DACCESS_COMPILE #ifndef DACCESS_COMPILE void Module::SetBeingUnloaded() { LIMITED_METHOD_CONTRACT; FastInterlockOr((ULONG*)&m_dwTransientFlags, IS_BEING_UNLOADED); } #endif void Module::LogTokenAccess(mdToken token, SectionFormat format, ULONG flagnum) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(g_IBCLogger.InstrEnabled()); PRECONDITION(flagnum < CORBBTPROF_TOKEN_MAX_NUM_FLAGS); } CONTRACTL_END; #ifndef DACCESS_COMPILE // // If we are in ngen instrumentation mode, then we should record this token. // if (!m_nativeImageProfiling) return; if (flagnum >= CORBBTPROF_TOKEN_MAX_NUM_FLAGS) { return; } mdToken rid = RidFromToken(token); CorTokenType tkType = (CorTokenType) TypeFromToken(token); SectionFormat tkKind = (SectionFormat) (tkType >> 24); if ((rid == 0) && (tkKind < (SectionFormat) TBL_COUNT)) return; FAULT_NOT_FATAL(); _ASSERTE(TypeProfilingData == FirstTokenFlagSection + TBL_TypeDef); _ASSERTE(MethodProfilingData == FirstTokenFlagSection + TBL_Method); _ASSERTE(SectionFormatCount >= FirstTokenFlagSection + TBL_COUNT + 4); if (!m_tokenProfileData) { CreateProfilingData(); } if (!m_tokenProfileData) { return; } if (tkKind == (SectionFormat) (ibcTypeSpec >> 24)) tkKind = IbcTypeSpecSection; else if (tkKind == (SectionFormat) (ibcMethodSpec >> 24)) tkKind = IbcMethodSpecSection; _ASSERTE(tkKind >= 0); _ASSERTE(tkKind < SectionFormatCount); if (tkKind < 0 || tkKind >= SectionFormatCount) { return; } CQuickArray<CORBBTPROF_TOKEN_INFO> * pTokenArray = &m_tokenProfileData->m_formats[format].tokenArray; RidBitmap * pTokenBitmap = &m_tokenProfileData->m_formats[tkKind].tokenBitmaps[flagnum]; // Have we seen this token with this flag already? if (pTokenBitmap->IsTokenInBitmap(token)) { return; } // Insert the token to the bitmap if (FAILED(pTokenBitmap->InsertToken(token))) { return; } ULONG flag = 1 << flagnum; // [ToDo] Fix: this is a sequential search and can be very slow for (unsigned int i = 0; i < pTokenArray->Size(); i++) { if ((*pTokenArray)[i].token == token) { _ASSERTE(! ((*pTokenArray)[i].flags & flag)); (*pTokenArray)[i].flags |= flag; return; } } if (FAILED(pTokenArray->ReSizeNoThrow(pTokenArray->Size() + 1))) { return; } (*pTokenArray)[pTokenArray->Size() - 1].token = token; (*pTokenArray)[pTokenArray->Size() - 1].flags = flag; (*pTokenArray)[pTokenArray->Size() - 1].scenarios = 0; #endif // !DACCESS_COMPILE } void Module::LogTokenAccess(mdToken token, ULONG flagNum) { WRAPPER_NO_CONTRACT; SectionFormat format = (SectionFormat)((TypeFromToken(token)>>24) + FirstTokenFlagSection); if (FirstTokenFlagSection <= format && format < SectionFormatCount) { LogTokenAccess(token, format, flagNum); } } #ifndef DACCESS_COMPILE // // Encoding callbacks // /*static*/ DWORD Module::EncodeModuleHelper(void * pModuleContext, Module *pReferencedModule) { Module* pReferencingModule = (Module *) pModuleContext; _ASSERTE(pReferencingModule != pReferencedModule); Assembly *pReferencingAssembly = pReferencingModule->GetAssembly(); Assembly *pReferencedAssembly = pReferencedModule->GetAssembly(); _ASSERTE(pReferencingAssembly != pReferencedAssembly); if (pReferencedAssembly == pReferencingAssembly) { return 0; } mdAssemblyRef token = pReferencingModule->FindAssemblyRef(pReferencedAssembly); if (IsNilToken(token)) { return ENCODE_MODULE_FAILED; } return RidFromToken(token); } /*static*/ void Module::TokenDefinitionHelper(void* pModuleContext, Module *pReferencedModule, DWORD index, mdToken* pToken) { LIMITED_METHOD_CONTRACT; HRESULT hr; Module * pReferencingModule = (Module *) pModuleContext; mdAssemblyRef mdAssemblyRef = TokenFromRid(index, mdtAssemblyRef); IMDInternalImport * pImport = pReferencedModule->GetMDImport(); LPCUTF8 szName = NULL; if (TypeFromToken(*pToken) == mdtTypeDef) { // // Compute nested type (if any) // mdTypeDef mdEnclosingType = idExternalTypeNil; hr = pImport->GetNestedClassProps(*pToken, &mdEnclosingType); // If there's not enclosing type, then hr=CLDB_E_RECORD_NOTFOUND and mdEnclosingType is unchanged _ASSERTE((hr == S_OK) || (hr == CLDB_E_RECORD_NOTFOUND)); if (!IsNilToken(mdEnclosingType)) { _ASSERT(TypeFromToken(mdEnclosingType) == mdtTypeDef); TokenDefinitionHelper(pModuleContext, pReferencedModule, index, &mdEnclosingType); } _ASSERT(TypeFromToken(mdEnclosingType) == ibcExternalType); // // Compute type name and namespace. // LPCUTF8 szNamespace = NULL; hr = pImport->GetNameOfTypeDef(*pToken, &szName, &szNamespace); _ASSERTE(hr == S_OK); // // Transform namespace string into ibc external namespace token // idExternalNamespace idNamespace = idExternalNamespaceNil; if (szNamespace != NULL) { const ExternalNamespaceBlobEntry * pNamespaceEntry; pNamespaceEntry = ExternalNamespaceBlobEntry::FindOrAdd(pReferencingModule, szNamespace); if (pNamespaceEntry != NULL) { idNamespace = pNamespaceEntry->token(); } } _ASSERTE(TypeFromToken(idNamespace) == ibcExternalNamespace); // // Transform type name into ibc external type token // idExternalType idType = idExternalTypeNil; _ASSERTE(szName != NULL); const ExternalTypeBlobEntry * pTypeEntry = NULL; pTypeEntry = ExternalTypeBlobEntry::FindOrAdd(pReferencingModule, mdAssemblyRef, mdEnclosingType, idNamespace, szName); if (pTypeEntry != NULL) { idType = pTypeEntry->token(); } _ASSERTE(TypeFromToken(idType) == ibcExternalType); *pToken = idType; // Remap pToken to our idExternalType token } else if (TypeFromToken(*pToken) == mdtMethodDef) { // // Compute nested type (if any) // mdTypeDef mdEnclosingType = idExternalTypeNil; hr = pImport->GetParentToken(*pToken, &mdEnclosingType); _ASSERTE(!FAILED(hr)); if (!IsNilToken(mdEnclosingType)) { _ASSERT(TypeFromToken(mdEnclosingType) == mdtTypeDef); TokenDefinitionHelper(pModuleContext, pReferencedModule, index, &mdEnclosingType); } _ASSERT(TypeFromToken(mdEnclosingType) == ibcExternalType); // // Compute the method name and signature // PCCOR_SIGNATURE pSig = NULL; DWORD cbSig = 0; hr = pImport->GetNameAndSigOfMethodDef(*pToken, &pSig, &cbSig, &szName); _ASSERTE(hr == S_OK); // // Transform signature into ibc external signature token // idExternalSignature idSignature = idExternalSignatureNil; if (pSig != NULL) { const ExternalSignatureBlobEntry * pSignatureEntry; pSignatureEntry = ExternalSignatureBlobEntry::FindOrAdd(pReferencingModule, cbSig, pSig); if (pSignatureEntry != NULL) { idSignature = pSignatureEntry->token(); } } _ASSERTE(TypeFromToken(idSignature) == ibcExternalSignature); // // Transform method name into ibc external method token // idExternalMethod idMethod = idExternalMethodNil; _ASSERTE(szName != NULL); const ExternalMethodBlobEntry * pMethodEntry = NULL; pMethodEntry = ExternalMethodBlobEntry::FindOrAdd(pReferencingModule, mdEnclosingType, idSignature, szName); if (pMethodEntry != NULL) { idMethod = pMethodEntry->token(); } _ASSERTE(TypeFromToken(idMethod) == ibcExternalMethod); *pToken = idMethod; // Remap pToken to our idMethodSpec token } else { _ASSERTE(!"Unexpected token type"); } } idTypeSpec Module::LogInstantiatedType(TypeHandle typeHnd, ULONG flagNum) { CONTRACT(idTypeSpec) { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(g_IBCLogger.InstrEnabled()); PRECONDITION(!typeHnd.HasUnrestoredTypeKey()); // We want to report the type only in its own loader module as a type's // MethodTable can only live in its own loader module. // We can relax this if we allow a (duplicate) MethodTable to live // in any module (which might be needed for ngen of generics) } CONTRACT_END; idTypeSpec result = idTypeSpecNil; if (m_nativeImageProfiling) { CONTRACT_VIOLATION(ThrowsViolation|FaultViolation|GCViolation); SigBuilder sigBuilder; ZapSig zapSig(this, this, ZapSig::IbcTokens, Module::EncodeModuleHelper, Module::TokenDefinitionHelper); BOOL fSuccess = zapSig.GetSignatureForTypeHandle(typeHnd, &sigBuilder); // a return value of 0 indicates a failure to create the signature if (fSuccess) { DWORD cbSig; PCCOR_SIGNATURE pSig = (PCCOR_SIGNATURE)sigBuilder.GetSignature(&cbSig); ULONG flag = (1 << flagNum); TypeSpecBlobEntry * pEntry = const_cast<TypeSpecBlobEntry *>(TypeSpecBlobEntry::FindOrAdd(this, cbSig, pSig)); if (pEntry != NULL) { // Update the flags with any new bits pEntry->orFlag(flag); result = pEntry->token(); } } } _ASSERTE(TypeFromToken(result) == ibcTypeSpec); RETURN result; } idMethodSpec Module::LogInstantiatedMethod(const MethodDesc * md, ULONG flagNum) { CONTRACT(idMethodSpec) { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION( md != NULL ); } CONTRACT_END; idMethodSpec result = idMethodSpecNil; if (m_nativeImageProfiling) { CONTRACT_VIOLATION(ThrowsViolation|FaultViolation|GCViolation); if (!m_tokenProfileData) { CreateProfilingData(); } if (!m_tokenProfileData) { return idMethodSpecNil; } // get data SigBuilder sigBuilder; BOOL fSuccess; fSuccess = ZapSig::EncodeMethod(const_cast<MethodDesc *>(md), this, &sigBuilder, (LPVOID) this, (ENCODEMODULE_CALLBACK) Module::EncodeModuleHelper, (DEFINETOKEN_CALLBACK) Module::TokenDefinitionHelper); if (fSuccess) { DWORD dataSize; BYTE * pBlob = (BYTE *)sigBuilder.GetSignature(&dataSize); ULONG flag = (1 << flagNum); MethodSpecBlobEntry * pEntry = const_cast<MethodSpecBlobEntry *>(MethodSpecBlobEntry::FindOrAdd(this, dataSize, pBlob)); if (pEntry != NULL) { // Update the flags with any new bits pEntry->orFlag(flag); result = pEntry->token(); } } } _ASSERTE(TypeFromToken(result) == ibcMethodSpec); RETURN result; } #endif // DACCESS_COMPILE #ifndef DACCESS_COMPILE // =========================================================================== // ReflectionModule // =========================================================================== /* static */ ReflectionModule *ReflectionModule::Create(Assembly *pAssembly, PEAssembly *pPEAssembly, AllocMemTracker *pamTracker, LPCWSTR szName) { CONTRACT(ReflectionModule *) { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pAssembly)); PRECONDITION(CheckPointer(pPEAssembly)); PRECONDITION(pPEAssembly->IsDynamic()); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; // Hoist CONTRACT into separate routine because of EX incompatibility mdFile token; token = mdFileNil; // Initial memory block for Modules must be zero-initialized (to make it harder // to introduce Destruct crashes arising from OOM's during initialization.) void* pMemory = pamTracker->Track(pAssembly->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(ReflectionModule)))); ReflectionModuleHolder pModule(new (pMemory) ReflectionModule(pAssembly, token, pPEAssembly)); pModule->DoInit(pamTracker, szName); RETURN pModule.Extract(); } // Module initialization occurs in two phases: the constructor phase and the Initialize phase. // // The constructor phase initializes just enough so that Destruct() can be safely called. // It cannot throw or fail. // ReflectionModule::ReflectionModule(Assembly *pAssembly, mdFile token, PEAssembly *pPEAssembly) : Module(pAssembly, token, pPEAssembly) { CONTRACTL { NOTHROW; GC_TRIGGERS; FORBID_FAULT; } CONTRACTL_END m_pInMemoryWriter = NULL; m_sdataSection = NULL; m_pCeeFileGen = NULL; m_pDynamicMetadata = NULL; } HRESULT STDMETHODCALLTYPE CreateICeeGen(REFIID riid, void **pCeeGen); // Module initialization occurs in two phases: the constructor phase and the Initialize phase. // // The Initialize() phase completes the initialization after the constructor has run. // It can throw exceptions but whether it throws or succeeds, it must leave the Module // in a state where Destruct() can be safely called. // void ReflectionModule::Initialize(AllocMemTracker *pamTracker, LPCWSTR szName) { CONTRACTL { INSTANCE_CHECK; STANDARD_VM_CHECK; PRECONDITION(szName != NULL); } CONTRACTL_END; Module::Initialize(pamTracker); IfFailThrow(CreateICeeGen(IID_ICeeGenInternal, (void **)&m_pCeeFileGen)); // Collectible modules should try to limit the growth of their associate IL section, as common scenarios for collectible // modules include single type modules if (IsCollectible()) { ReleaseHolder<ICeeGenInternal> pCeeGenInternal(NULL); IfFailThrow(m_pCeeFileGen->QueryInterface(IID_ICeeGenInternal, (void **)&pCeeGenInternal)); IfFailThrow(pCeeGenInternal->SetInitialGrowth(CEE_FILE_GEN_GROWTH_COLLECTIBLE)); } m_pInMemoryWriter = new RefClassWriter(); IfFailThrow(m_pInMemoryWriter->Init(GetCeeGen(), GetEmitter(), szName)); m_CrstLeafLock.Init(CrstLeafLock); } void ReflectionModule::Destruct() { CONTRACTL { NOTHROW; GC_TRIGGERS; MODE_PREEMPTIVE; } CONTRACTL_END; delete m_pInMemoryWriter; if (m_pCeeFileGen) m_pCeeFileGen->Release(); Module::Destruct(); delete m_pDynamicMetadata; m_pDynamicMetadata = NULL; m_CrstLeafLock.Destroy(); } // // Holder of changed value of MDUpdateMode via IMDInternalEmit::SetMDUpdateMode. // Returns back the original value on release. // class MDUpdateModeHolder { public: MDUpdateModeHolder() { m_pInternalEmitter = NULL; m_OriginalMDUpdateMode = UINT32_MAX; } ~MDUpdateModeHolder() { WRAPPER_NO_CONTRACT; (void)Release(); } HRESULT SetMDUpdateMode(IMetaDataEmit *pEmitter, ULONG updateMode) { LIMITED_METHOD_CONTRACT; HRESULT hr = S_OK; _ASSERTE(updateMode != UINT32_MAX); IfFailRet(pEmitter->QueryInterface(IID_IMDInternalEmit, (void **)&m_pInternalEmitter)); _ASSERTE(m_pInternalEmitter != NULL); IfFailRet(m_pInternalEmitter->SetMDUpdateMode(updateMode, &m_OriginalMDUpdateMode)); _ASSERTE(m_OriginalMDUpdateMode != UINT32_MAX); return hr; } HRESULT Release(ULONG expectedPreviousUpdateMode = UINT32_MAX) { HRESULT hr = S_OK; if (m_OriginalMDUpdateMode != UINT32_MAX) { _ASSERTE(m_pInternalEmitter != NULL); ULONG previousUpdateMode; // Ignore the error when releasing hr = m_pInternalEmitter->SetMDUpdateMode(m_OriginalMDUpdateMode, &previousUpdateMode); m_OriginalMDUpdateMode = UINT32_MAX; if (expectedPreviousUpdateMode != UINT32_MAX) { if ((hr == S_OK) && (expectedPreviousUpdateMode != previousUpdateMode)) { hr = S_FALSE; } } } if (m_pInternalEmitter != NULL) { (void)m_pInternalEmitter->Release(); m_pInternalEmitter = NULL; } return hr; } ULONG GetOriginalMDUpdateMode() { WRAPPER_NO_CONTRACT; _ASSERTE(m_OriginalMDUpdateMode != UINT32_MAX); return m_OriginalMDUpdateMode; } private: IMDInternalEmit *m_pInternalEmitter; ULONG m_OriginalMDUpdateMode; }; // Called in live paths to fetch metadata for dynamic modules. This makes the metadata available to the // debugger from out-of-process. // // Notes: // This buffer can be retrieved by the debugger via code:ReflectionModule.GetDynamicMetadataBuffer // // Threading: // - Callers must ensure nobody else is adding to the metadata. // - This function still takes its own locks to cooperate with the Debugger's out-of-process access. // The debugger can slip this thread outside the locks to ensure the data is consistent. // // This does not raise a debug notification to invalidate the metadata. Reasoning is that this only // happens in two cases: // 1) manifest module is updated with the name of a new dynamic module. // 2) on each class load, in which case we already send a debug event. In this case, we already send a // class-load notification, so sending a separate "metadata-refresh" would make the eventing twice as // chatty. Class-load events are high-volume and events are slow. // Thus we can avoid the chatiness by ensuring the debugger knows that Class-load also means "refresh // metadata". // void ReflectionModule::CaptureModuleMetaDataToMemory() { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; // If a debugger is attached, then the CLR will still send ClassLoad notifications for dynamic modules, // which mean we still need to keep the metadata available. This is the same as Whidbey. // An alternative (and better) design would be to suppress ClassLoad notifications too, but then we'd // need some way of sending a "catchup" notification to the debugger after we re-enable notifications. if (!CORDebuggerAttached()) { return; } // Do not release the emitter. This is a weak reference. IMetaDataEmit *pEmitter = this->GetEmitter(); _ASSERTE(pEmitter != NULL); HRESULT hr; MDUpdateModeHolder hMDUpdateMode; IfFailThrow(hMDUpdateMode.SetMDUpdateMode(pEmitter, MDUpdateExtension)); _ASSERTE(hMDUpdateMode.GetOriginalMDUpdateMode() == MDUpdateFull); DWORD numBytes; hr = pEmitter->GetSaveSize(cssQuick, &numBytes); IfFailThrow(hr); // Operate on local data, and then persist it into the module once we know it's valid. NewHolder<SBuffer> pBuffer(new SBuffer()); _ASSERTE(pBuffer != NULL); // allocation would throw first // ReflectionModule is still in a consistent state, and now we're just operating on local data to // assemble the new metadata buffer. If this fails, then worst case is that metadata does not include // recently generated classes. // Caller ensures serialization that guarantees that the metadata doesn't grow underneath us. BYTE * pRawData = pBuffer->OpenRawBuffer(numBytes); hr = pEmitter->SaveToMemory(pRawData, numBytes); pBuffer->CloseRawBuffer(); IfFailThrow(hr); // Now that we're successful, transfer ownership back into the module. { CrstHolder ch(&m_CrstLeafLock); delete m_pDynamicMetadata; m_pDynamicMetadata = pBuffer.Extract(); } // hr = hMDUpdateMode.Release(MDUpdateExtension); // Will be S_FALSE if someone changed the MDUpdateMode (from MDUpdateExtension) meanwhile _ASSERTE(hr == S_OK); } #endif // !DACCESS_COMPILE #ifdef DACCESS_COMPILE // Accessor to expose m_pDynamicMetadata to debugger. // // Returns: // Pointer to SBuffer containing metadata buffer. May be null. // // Notes: // Only used by the debugger, so only accessible via DAC. // The buffer is updated via code:ReflectionModule.CaptureModuleMetaDataToMemory PTR_SBuffer ReflectionModule::GetDynamicMetadataBuffer() const { SUPPORTS_DAC; // If we ask for metadata, but have been suppressing capture, then we're out of date. // However, the debugger may be debugging already baked types in the module and so may need the metadata // for that. So we return what we do have. // // Debugger will get the next metadata update: // 1) with the next load class // 2) or if this is right after the last class, see code:ReflectionModule.CaptureModuleMetaDataToMemory return m_pDynamicMetadata; } #endif TADDR ReflectionModule::GetIL(RVA il) // virtual { #ifndef DACCESS_COMPILE WRAPPER_NO_CONTRACT; BYTE* pByte = NULL; m_pCeeFileGen->GetMethodBuffer(il, &pByte); return TADDR(pByte); #else // DACCESS_COMPILE SUPPORTS_DAC; DacNotImpl(); return NULL; #endif // DACCESS_COMPILE } PTR_VOID ReflectionModule::GetRvaField(RVA field) // virtual { #ifndef DACCESS_COMPILE WRAPPER_NO_CONTRACT; // This function should be call only if the target is a field or a field with RVA. PTR_BYTE pByte = NULL; m_pCeeFileGen->ComputePointer(m_sdataSection, field, &pByte); return dac_cast<PTR_VOID>(pByte); #else // DACCESS_COMPILE SUPPORTS_DAC; DacNotImpl(); return NULL; #endif // DACCESS_COMPILE } #ifndef DACCESS_COMPILE // =========================================================================== // VASigCookies // =========================================================================== //========================================================================== // Enregisters a VASig. //========================================================================== VASigCookie *Module::GetVASigCookie(Signature vaSignature) { CONTRACT(VASigCookie*) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL)); INJECT_FAULT(COMPlusThrowOM()); } CONTRACT_END; VASigCookieBlock *pBlock; VASigCookie *pCookie; pCookie = NULL; // First, see if we already enregistered this sig. // Note that we're outside the lock here, so be a bit careful with our logic for (pBlock = m_pVASigCookieBlock; pBlock != NULL; pBlock = pBlock->m_Next) { for (UINT i = 0; i < pBlock->m_numcookies; i++) { if (pBlock->m_cookies[i].signature.GetRawSig() == vaSignature.GetRawSig()) { pCookie = &(pBlock->m_cookies[i]); break; } } } if (!pCookie) { // If not, time to make a new one. // Compute the size of args first, outside of the lock. // @TODO GENERICS: We may be calling a varargs method from a // generic type/method. Using an empty context will make such a // case cause an unexpected exception. To make this work, // we need to create a specialized signature for every instantiation SigTypeContext typeContext; MetaSig metasig(vaSignature, this, &typeContext); ArgIterator argit(&metasig); // Upper estimate of the vararg size DWORD sizeOfArgs = argit.SizeOfArgStack(); // enable gc before taking lock { CrstHolder ch(&m_Crst); // Note that we were possibly racing to create the cookie, and another thread // may have already created it. We could put another check // here, but it's probably not worth the effort, so we'll just take an // occasional duplicate cookie instead. // Is the first block in the list full? if (m_pVASigCookieBlock && m_pVASigCookieBlock->m_numcookies < VASigCookieBlock::kVASigCookieBlockSize) { // Nope, reserve a new slot in the existing block. pCookie = &(m_pVASigCookieBlock->m_cookies[m_pVASigCookieBlock->m_numcookies]); } else { // Yes, create a new block. VASigCookieBlock *pNewBlock = new VASigCookieBlock(); pNewBlock->m_Next = m_pVASigCookieBlock; pNewBlock->m_numcookies = 0; m_pVASigCookieBlock = pNewBlock; pCookie = &(pNewBlock->m_cookies[0]); } // Now, fill in the new cookie (assuming we had enough memory to create one.) pCookie->pModule = this; pCookie->pNDirectILStub = NULL; pCookie->sizeOfArgs = sizeOfArgs; pCookie->signature = vaSignature; // Finally, now that it's safe for asynchronous readers to see it, // update the count. m_pVASigCookieBlock->m_numcookies++; } } RETURN pCookie; } #endif // !DACCESS_COMPILE #ifdef DACCESS_COMPILE void LookupMapBase::EnumMemoryRegions(CLRDataEnumMemoryFlags flags, bool enumThis) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END; if (enumThis) { DacEnumHostDPtrMem(this); } if (pTable.IsValid()) { DacEnumMemoryRegion(dac_cast<TADDR>(pTable), dwCount * sizeof(TADDR)); } } /* static */ void LookupMapBase::ListEnumMemoryRegions(CLRDataEnumMemoryFlags flags) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END; LookupMapBase * headMap = this; bool enumHead = false; while (headMap) { headMap->EnumMemoryRegions(flags, enumHead); if (!headMap->pNext.IsValid()) { break; } headMap = headMap->pNext; enumHead = true; } } #endif // DACCESS_COMPILE // Optimization intended for Module::EnsureActive only #include <optsmallperfcritical.h> #ifndef DACCESS_COMPILE VOID Module::EnsureActive() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; GetDomainAssembly()->EnsureActive(); } #endif // DACCESS_COMPILE #include <optdefault.h> #ifndef DACCESS_COMPILE VOID Module::EnsureAllocated() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; GetDomainAssembly()->EnsureAllocated(); } VOID Module::EnsureLibraryLoaded() { STANDARD_VM_CONTRACT; GetDomainAssembly()->EnsureLibraryLoaded(); } #endif // !DACCESS_COMPILE CHECK Module::CheckActivated() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; #ifndef DACCESS_COMPILE DomainAssembly *pDomainAssembly = GetDomainAssembly(); CHECK(pDomainAssembly != NULL); PREFIX_ASSUME(pDomainAssembly != NULL); CHECK(pDomainAssembly->CheckActivated()); #endif CHECK_OK; } #ifdef DACCESS_COMPILE void Module::EnumMemoryRegions(CLRDataEnumMemoryFlags flags, bool enumThis) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END; if (enumThis) { DAC_ENUM_VTHIS(); EMEM_OUT(("MEM: %p Module\n", dac_cast<TADDR>(this))); } //Save module id data only if it a real pointer, not a tagged sugestion to use ModuleIndex. if (m_ModuleID.IsValid()) { m_ModuleID->EnumMemoryRegions(flags); } if (m_pPEAssembly.IsValid()) { m_pPEAssembly->EnumMemoryRegions(flags); } if (m_pAssembly.IsValid()) { m_pAssembly->EnumMemoryRegions(flags); } m_TypeRefToMethodTableMap.ListEnumMemoryRegions(flags); m_TypeDefToMethodTableMap.ListEnumMemoryRegions(flags); if (flags != CLRDATA_ENUM_MEM_MINI && flags != CLRDATA_ENUM_MEM_TRIAGE) { if (m_pAvailableClasses.IsValid()) { m_pAvailableClasses->EnumMemoryRegions(flags); } if (m_pAvailableParamTypes.IsValid()) { m_pAvailableParamTypes->EnumMemoryRegions(flags); } if (m_pInstMethodHashTable.IsValid()) { m_pInstMethodHashTable->EnumMemoryRegions(flags); } if (m_pAvailableClassesCaseIns.IsValid()) { m_pAvailableClassesCaseIns->EnumMemoryRegions(flags); } if (m_pBinder.IsValid()) { m_pBinder->EnumMemoryRegions(flags); } // Save the LookupMap structures. m_MethodDefToDescMap.ListEnumMemoryRegions(flags); m_FieldDefToDescMap.ListEnumMemoryRegions(flags); m_pMemberRefToDescHashTable->EnumMemoryRegions(flags); m_GenericParamToDescMap.ListEnumMemoryRegions(flags); m_GenericTypeDefToCanonMethodTableMap.ListEnumMemoryRegions(flags); m_FileReferencesMap.ListEnumMemoryRegions(flags); m_ManifestModuleReferencesMap.ListEnumMemoryRegions(flags); m_MethodDefToPropertyInfoMap.ListEnumMemoryRegions(flags); LookupMap<PTR_MethodTable>::Iterator typeDefIter(&m_TypeDefToMethodTableMap); while (typeDefIter.Next()) { if (typeDefIter.GetElement()) { typeDefIter.GetElement()->EnumMemoryRegions(flags); } } LookupMap<PTR_TypeRef>::Iterator typeRefIter(&m_TypeRefToMethodTableMap); while (typeRefIter.Next()) { if (typeRefIter.GetElement()) { TypeHandle th = TypeHandle::FromTAddr(dac_cast<TADDR>(typeRefIter.GetElement())); th.EnumMemoryRegions(flags); } } LookupMap<PTR_MethodDesc>::Iterator methodDefIter(&m_MethodDefToDescMap); while (methodDefIter.Next()) { if (methodDefIter.GetElement()) { methodDefIter.GetElement()->EnumMemoryRegions(flags); } } LookupMap<PTR_FieldDesc>::Iterator fieldDefIter(&m_FieldDefToDescMap); while (fieldDefIter.Next()) { if (fieldDefIter.GetElement()) { fieldDefIter.GetElement()->EnumMemoryRegions(flags); } } LookupMap<PTR_TypeVarTypeDesc>::Iterator genericParamIter(&m_GenericParamToDescMap); while (genericParamIter.Next()) { if (genericParamIter.GetElement()) { genericParamIter.GetElement()->EnumMemoryRegions(flags); } } LookupMap<PTR_MethodTable>::Iterator genericTypeDefIter(&m_GenericTypeDefToCanonMethodTableMap); while (genericTypeDefIter.Next()) { if (genericTypeDefIter.GetElement()) { genericTypeDefIter.GetElement()->EnumMemoryRegions(flags); } } } // !CLRDATA_ENUM_MEM_MINI && !CLRDATA_ENUM_MEM_TRIAGE LookupMap<PTR_Module>::Iterator fileRefIter(&m_FileReferencesMap); while (fileRefIter.Next()) { if (fileRefIter.GetElement()) { fileRefIter.GetElement()->EnumMemoryRegions(flags, true); } } LookupMap<PTR_Module>::Iterator asmRefIter(&m_ManifestModuleReferencesMap); while (asmRefIter.Next()) { if (asmRefIter.GetElement()) { asmRefIter.GetElement()->GetAssembly()->EnumMemoryRegions(flags); } } ECall::EnumFCallMethods(); } FieldDesc *Module::LookupFieldDef(mdFieldDef token) { WRAPPER_NO_CONTRACT; _ASSERTE(TypeFromToken(token) == mdtFieldDef); g_IBCLogger.LogRidMapAccess( MakePair( this, token ) ); return m_FieldDefToDescMap.GetElement(RidFromToken(token)); } #endif // DACCESS_COMPILE //------------------------------------------------------------------------------- // Make best-case effort to obtain an image name for use in an error message. // // This routine must expect to be called before the this object is fully loaded. // It can return an empty if the name isn't available or the object isn't initialized // enough to get a name, but it mustn't crash. //------------------------------------------------------------------------------- LPCWSTR Module::GetPathForErrorMessages() { CONTRACTL { THROWS; GC_TRIGGERS; if (FORBIDGC_LOADER_USE_ENABLED()) FORBID_FAULT; else { INJECT_FAULT(COMPlusThrowOM()); } } CONTRACTL_END PEAssembly *pPEAssembly = GetPEAssembly(); if (pPEAssembly) { return pPEAssembly->GetPathForErrorMessages(); } else { return W(""); } } #if defined(_DEBUG) && !defined(DACCESS_COMPILE) && !defined(CROSS_COMPILE) void Module::ExpandAll() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; //If the EE isn't started yet, it's not safe to jit. We fail in COM jitting a p/invoke. if (!g_fEEStarted) return; struct Local { static void CompileMethodDesc(MethodDesc * pMD) { //Must have a method body if (pMD->HasILHeader() //Can't jit open instantiations && !pMD->IsGenericMethodDefinition() //These are the only methods we can jit && (pMD->IsStatic() || pMD->GetNumGenericMethodArgs() == 0 || pMD->HasClassInstantiation()) && (pMD->MayHaveNativeCode() && !pMD->IsFCall())) { pMD->PrepareInitialCode(); } } static void CompileMethodsForMethodTable(MethodTable * pMT) { MethodTable::MethodIterator it(pMT); for (; it.IsValid(); it.Next()) { MethodDesc * pMD = it.GetMethodDesc(); CompileMethodDesc(pMD); } } #if 0 static void CompileMethodsForTypeDef(Module * pModule, mdTypeDef td) { TypeHandle th = ClassLoader::LoadTypeDefThrowing(pModule, td, ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef); MethodTable * pMT = th.GetMethodTable(); CompileMethodsForMethodTable(pMT); } #endif static void CompileMethodsForTypeDefRefSpec(Module * pModule, mdToken tok) { TypeHandle th; HRESULT hr = S_OK; EX_TRY { th = ClassLoader::LoadTypeDefOrRefOrSpecThrowing( pModule, tok, NULL /*SigTypeContext*/); } EX_CATCH { hr = GET_EXCEPTION()->GetHR(); } EX_END_CATCH(SwallowAllExceptions); //Only do this for non-generic types and unshared generic types //(canonical generics and value type generic instantiations). if (SUCCEEDED(hr) && !th.IsTypeDesc() && th.AsMethodTable()->IsCanonicalMethodTable()) { CompileMethodsForMethodTable(th.AsMethodTable()); } } static void CompileMethodsForMethodDefRefSpec(Module * pModule, mdToken tok) { HRESULT hr = S_OK; EX_TRY { MethodDesc * pMD = MemberLoader::GetMethodDescFromMemberDefOrRefOrSpec(pModule, tok, /*SigTypeContext*/NULL, TRUE, TRUE); CompileMethodDesc(pMD); } EX_CATCH { hr = GET_EXCEPTION()->GetHR(); //@telesto what should we do with this HR? the Silverlight code doesn't seem //to do anything...but that doesn't seem safe... } EX_END_CATCH(SwallowAllExceptions); } }; //Jit all methods eagerly IMDInternalImport * pMDI = GetMDImport(); HENUMTypeDefInternalHolder hEnum(pMDI); mdTypeDef td; hEnum.EnumTypeDefInit(); //verify global methods if (GetGlobalMethodTable()) { //jit everything in the MT. Local::CompileMethodsForTypeDefRefSpec(this, COR_GLOBAL_PARENT_TOKEN); } while (pMDI->EnumNext(&hEnum, &td)) { //jit everything Local::CompileMethodsForTypeDefRefSpec(this, td); } //Get the type refs. They're always awesome. HENUMInternalHolder hEnumTypeRefs(pMDI); mdToken tr; hEnumTypeRefs.EnumAllInit(mdtTypeRef); while (hEnumTypeRefs.EnumNext(&tr)) { Local::CompileMethodsForTypeDefRefSpec(this, tr); } //make sure to get the type specs HENUMInternalHolder hEnumTypeSpecs(pMDI); mdToken ts; hEnumTypeSpecs.EnumAllInit(mdtTypeSpec); while (hEnumTypeSpecs.EnumNext(&ts)) { Local::CompileMethodsForTypeDefRefSpec(this, ts); } //And now for the interesting generic methods HENUMInternalHolder hEnumMethodSpecs(pMDI); mdToken ms; hEnumMethodSpecs.EnumAllInit(mdtMethodSpec); while (hEnumMethodSpecs.EnumNext(&ms)) { Local::CompileMethodsForMethodDefRefSpec(this, ms); } } #endif //_DEBUG && !DACCESS_COMPILE && !CROSS_COMPILE //------------------------------------------------------------------------------- // Verify consistency of asmconstants.h // Wrap all C_ASSERT's in asmconstants.h with a class definition. Many of the // fields referenced below are private, and this class is a friend of the // enclosing type. (A C_ASSERT isn't a compiler intrinsic, just a magic // typedef that produces a compiler error when the condition is false.) #include "clrvarargs.h" /* for VARARG C_ASSERTs in asmconstants.h */ class CheckAsmOffsets { #ifndef CROSSBITNESS_COMPILE #define ASMCONSTANTS_C_ASSERT(cond) static_assert(cond, #cond); #include "asmconstants.h" #endif // CROSSBITNESS_COMPILE }; //------------------------------------------------------------------------------- #ifndef DACCESS_COMPILE void Module::CreateAssemblyRefByNameTable(AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_NOTRIGGER; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END LoaderHeap * pHeap = GetLoaderAllocator()->GetLowFrequencyHeap(); IMDInternalImport * pImport = GetMDImport(); DWORD dwMaxRid = pImport->GetCountWithTokenKind(mdtAssemblyRef); if (dwMaxRid == 0) return; S_SIZE_T dwAllocSize = S_SIZE_T(sizeof(LPWSTR)) * S_SIZE_T(dwMaxRid); m_AssemblyRefByNameTable = (LPCSTR *) pamTracker->Track( pHeap->AllocMem(dwAllocSize) ); DWORD dwCount = 0; for (DWORD rid=1; rid <= dwMaxRid; rid++) { mdAssemblyRef mdToken = TokenFromRid(rid,mdtAssemblyRef); LPCSTR szName; HRESULT hr; hr = pImport->GetAssemblyRefProps(mdToken, NULL, NULL, &szName, NULL, NULL, NULL, NULL); if (SUCCEEDED(hr)) { m_AssemblyRefByNameTable[dwCount++] = szName; } } m_AssemblyRefByNameCount = dwCount; } bool Module::HasReferenceByName(LPCUTF8 pModuleName) { LIMITED_METHOD_CONTRACT; for (DWORD i=0; i < m_AssemblyRefByNameCount; i++) { if (0 == strcmp(pModuleName, m_AssemblyRefByNameTable[i])) return true; } return false; } #endif #ifdef _MSC_VER #pragma warning(pop) #endif // _MSC_VER: warning C4244 #if defined(_DEBUG) && !defined(DACCESS_COMPILE) NOINLINE void NgenForceFailure_AV() { LIMITED_METHOD_CONTRACT; static int* alwaysNull = 0; *alwaysNull = 0; } NOINLINE void NgenForceFailure_TypeLoadException() { WRAPPER_NO_CONTRACT; ::ThrowTypeLoadException("ForceIBC", "Failure", W("Assembly"), NULL, IDS_CLASSLOAD_BADFORMAT); } void EEConfig::DebugCheckAndForceIBCFailure(BitForMask bitForMask) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; static DWORD s_ibcCheckCount = 0; // Both of these must be set to non-zero values for us to force a failure // if ((NgenForceFailureCount() == 0) || (NgenForceFailureKind() == 0)) return; // The bitForMask value must also beset in the FailureMask // if ((((DWORD) bitForMask) & NgenForceFailureMask()) == 0) return; s_ibcCheckCount++; if (s_ibcCheckCount < NgenForceFailureCount()) return; // We force one failure every NgenForceFailureCount() // s_ibcCheckCount = 0; switch (NgenForceFailureKind()) { case 1: NgenForceFailure_TypeLoadException(); break; case 2: NgenForceFailure_AV(); break; } } #endif // defined(_DEBUG) && !defined(DACCESS_COMPILE)
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =========================================================================== // File: CEELOAD.CPP // // // CEELOAD reads in the PE file format using LoadLibrary // =========================================================================== #include "common.h" #include "array.h" #include "ceeload.h" #include "hash.h" #include "vars.hpp" #include "reflectclasswriter.h" #include "method.hpp" #include "stublink.h" #include "cgensys.h" #include "excep.h" #include "dbginterface.h" #include "dllimport.h" #include "eeprofinterfaces.h" #include "encee.h" #include "jitinterface.h" #include "eeconfig.h" #include "dllimportcallback.h" #include "contractimpl.h" #include "typehash.h" #include "instmethhash.h" #include "virtualcallstub.h" #include "typestring.h" #include "stringliteralmap.h" #include <formattype.h> #include "fieldmarshaler.h" #include "sigbuilder.h" #include "metadataexports.h" #include "inlinetracking.h" #include "threads.h" #include "nativeimage.h" #ifdef FEATURE_COMINTEROP #include "runtimecallablewrapper.h" #include "comcallablewrapper.h" #endif //FEATURE_COMINTEROP #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4724) #endif // _MSC_VER #include "dacenumerablehash.inl" #ifdef _MSC_VER #pragma warning(pop) #endif // _MSC_VER #include "ecall.h" #include "../md/compiler/custattr.h" #include "typekey.h" #include "peimagelayout.inl" #ifdef TARGET_64BIT #define COR_VTABLE_PTRSIZED COR_VTABLE_64BIT #define COR_VTABLE_NOT_PTRSIZED COR_VTABLE_32BIT #else // !TARGET_64BIT #define COR_VTABLE_PTRSIZED COR_VTABLE_32BIT #define COR_VTABLE_NOT_PTRSIZED COR_VTABLE_64BIT #endif // !TARGET_64BIT #define CEE_FILE_GEN_GROWTH_COLLECTIBLE 2048 #define NGEN_STATICS_ALLCLASSES_WERE_LOADED -1 BOOL Module::HasReadyToRunInlineTrackingMap() { LIMITED_METHOD_DAC_CONTRACT; #ifdef FEATURE_READYTORUN if (IsReadyToRun() && GetReadyToRunInfo()->GetInlineTrackingMap() != NULL) { return TRUE; } #endif return FALSE; } COUNT_T Module::GetReadyToRunInliners(PTR_Module inlineeOwnerMod, mdMethodDef inlineeTkn, COUNT_T inlinersSize, MethodInModule inliners[], BOOL *incompleteData) { WRAPPER_NO_CONTRACT; #ifdef FEATURE_READYTORUN if(IsReadyToRun() && GetReadyToRunInfo()->GetInlineTrackingMap() != NULL) { return GetReadyToRunInfo()->GetInlineTrackingMap()->GetInliners(inlineeOwnerMod, inlineeTkn, inlinersSize, inliners, incompleteData); } #endif return 0; } #if defined(PROFILING_SUPPORTED) && !defined(DACCESS_COMPILE) BOOL Module::HasJitInlineTrackingMap() { LIMITED_METHOD_CONTRACT; return m_pJitInlinerTrackingMap != NULL; } void Module::AddInlining(MethodDesc *inliner, MethodDesc *inlinee) { STANDARD_VM_CONTRACT; _ASSERTE(inliner != NULL && inlinee != NULL); _ASSERTE(inlinee->GetModule() == this); if (m_pJitInlinerTrackingMap != NULL) { m_pJitInlinerTrackingMap->AddInlining(inliner, inlinee); } } #endif // defined(PROFILING_SUPPORTED) && !defined(DACCESS_COMPILE) #ifndef DACCESS_COMPILE // =========================================================================== // Module // =========================================================================== //--------------------------------------------------------------------------------------------------- // This wrapper just invokes the real initialization inside a try/hook. // szName is not null only for dynamic modules //--------------------------------------------------------------------------------------------------- void Module::DoInit(AllocMemTracker *pamTracker, LPCWSTR szName) { CONTRACTL { INSTANCE_CHECK; STANDARD_VM_CHECK; } CONTRACTL_END; #ifdef PROFILING_SUPPORTED { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); GCX_COOP(); (&g_profControlBlock)->ModuleLoadStarted((ModuleID) this); END_PROFILER_CALLBACK(); } // Need TRY/HOOK instead of holder so we can get HR of exception thrown for profiler callback EX_TRY #endif { Initialize(pamTracker, szName); } #ifdef PROFILING_SUPPORTED EX_HOOK { { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); (&g_profControlBlock)->ModuleLoadFinished((ModuleID) this, GET_EXCEPTION()->GetHR()); END_PROFILER_CALLBACK(); } } EX_END_HOOK; #endif } // Set the given bit on m_dwTransientFlags. Return true if we won the race to set the bit. BOOL Module::SetTransientFlagInterlocked(DWORD dwFlag) { LIMITED_METHOD_CONTRACT; for (;;) { DWORD dwTransientFlags = m_dwTransientFlags; if ((dwTransientFlags & dwFlag) != 0) return FALSE; if ((DWORD)FastInterlockCompareExchange((LONG*)&m_dwTransientFlags, dwTransientFlags | dwFlag, dwTransientFlags) == dwTransientFlags) return TRUE; } } #if defined(PROFILING_SUPPORTED) || defined(EnC_SUPPORTED) void Module::UpdateNewlyAddedTypes() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END DWORD countTypesAfterProfilerUpdate = GetMDImport()->GetCountWithTokenKind(mdtTypeDef); DWORD countExportedTypesAfterProfilerUpdate = GetMDImport()->GetCountWithTokenKind(mdtExportedType); DWORD countCustomAttributeCount = GetMDImport()->GetCountWithTokenKind(mdtCustomAttribute); if (m_dwTypeCount == countTypesAfterProfilerUpdate && m_dwExportedTypeCount == countExportedTypesAfterProfilerUpdate && m_dwCustomAttributeCount == countCustomAttributeCount) { // The profiler added no new types, do not create the in memory hashes return; } // R2R pre-computes an export table and tries to avoid populating a class hash at runtime. However the profiler can // still add new types on the fly by calling here. If that occurs we fallback to the slower path of creating the // in memory hashtable as usual. if (GetAvailableClassHash() == NULL) { // This call will populate the hash tables with anything that is in metadata already. GetClassLoader()->LazyPopulateCaseSensitiveHashTablesDontHaveLock(); } else { // If the hash tables already exist (either R2R and we've previously populated the ) we need to manually add the types. // typeDefs rids 0 and 1 aren't included in the count, thus X typeDefs before means rid X+1 was valid and our incremental addition should start at X+2 for (DWORD typeDefRid = m_dwTypeCount + 2; typeDefRid < countTypesAfterProfilerUpdate + 2; typeDefRid++) { GetAssembly()->AddType(this, TokenFromRid(typeDefRid, mdtTypeDef)); } // exportedType rid 0 isn't included in the count, thus X exportedTypes before means rid X was valid and our incremental addition should start at X+1 for (DWORD exportedTypeDef = m_dwExportedTypeCount + 1; exportedTypeDef < countExportedTypesAfterProfilerUpdate + 1; exportedTypeDef++) { GetAssembly()->AddExportedType(TokenFromRid(exportedTypeDef, mdtExportedType)); } if ((countCustomAttributeCount != m_dwCustomAttributeCount) && IsReadyToRun()) { // Set of custom attributes has changed. Disable the cuckoo filter from ready to run, and do normal custom attribute parsing GetReadyToRunInfo()->DisableCustomAttributeFilter(); } } m_dwTypeCount = countTypesAfterProfilerUpdate; m_dwExportedTypeCount = countExportedTypesAfterProfilerUpdate; m_dwCustomAttributeCount = countCustomAttributeCount; } #endif // PROFILING_SUPPORTED || EnC_SUPPORTED #if PROFILING_SUPPORTED void Module::NotifyProfilerLoadFinished(HRESULT hr) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); MODE_ANY; } CONTRACTL_END; // Note that in general we wil reuse shared modules. So we need to make sure we only notify // the profiler once. if (SetTransientFlagInterlocked(IS_PROFILER_NOTIFIED)) { // Record how many types are already present m_dwTypeCount = GetMDImport()->GetCountWithTokenKind(mdtTypeDef); m_dwExportedTypeCount = GetMDImport()->GetCountWithTokenKind(mdtExportedType); m_dwCustomAttributeCount = GetMDImport()->GetCountWithTokenKind(mdtCustomAttribute); BOOL profilerCallbackHappened = FALSE; // Notify the profiler, this may cause metadata to be updated { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); { GCX_PREEMP(); (&g_profControlBlock)->ModuleLoadFinished((ModuleID) this, hr); if (SUCCEEDED(hr)) { (&g_profControlBlock)->ModuleAttachedToAssembly((ModuleID) this, (AssemblyID)m_pAssembly); } profilerCallbackHappened = TRUE; } END_PROFILER_CALLBACK(); } // If there are more types than before, add these new types to the // assembly if (profilerCallbackHappened) { UpdateNewlyAddedTypes(); } { BEGIN_PROFILER_CALLBACK(CORProfilerTrackAssemblyLoads()); if (IsManifest()) { GCX_COOP(); (&g_profControlBlock)->AssemblyLoadFinished((AssemblyID) m_pAssembly, hr); } END_PROFILER_CALLBACK(); } } } #endif // PROFILING_SUPPORTED void Module::NotifyEtwLoadFinished(HRESULT hr) { CONTRACTL { NOTHROW; GC_TRIGGERS; } CONTRACTL_END // we report only successful loads if (SUCCEEDED(hr) && ETW_TRACING_CATEGORY_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER_DOTNET_Context, TRACE_LEVEL_INFORMATION, KEYWORDZERO)) { BOOL fSharedModule = !SetTransientFlagInterlocked(IS_ETW_NOTIFIED); ETW::LoaderLog::ModuleLoad(this, fSharedModule); } } // Module initialization occurs in two phases: the constructor phase and the Initialize phase. // // The constructor phase initializes just enough so that Destruct() can be safely called. // It cannot throw or fail. // Module::Module(Assembly *pAssembly, mdFile moduleRef, PEAssembly *pPEAssembly) { CONTRACTL { NOTHROW; GC_TRIGGERS; FORBID_FAULT; } CONTRACTL_END PREFIX_ASSUME(pAssembly != NULL); m_pAssembly = pAssembly; m_moduleRef = moduleRef; m_pPEAssembly = pPEAssembly; m_dwTransientFlags = CLASSES_FREED; // Memory allocated on LoaderHeap is zero-filled. Spot-check it here. _ASSERTE(m_pBinder == NULL); pPEAssembly->AddRef(); } void Module::InitializeForProfiling() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_PREEMPTIVE; PRECONDITION(IsReadyToRun()); } CONTRACTL_END; COUNT_T cbProfileList = 0; m_nativeImageProfiling = FALSE; #ifdef FEATURE_READYTORUN // We already setup the m_methodProfileList in the ReadyToRunInfo constructor if (m_methodProfileList != nullptr) { ReadyToRunInfo * pInfo = GetReadyToRunInfo(); PEImageLayout * pImage = pInfo->GetImage(); // Enable profiling if the ZapBBInstr value says to m_nativeImageProfiling = GetAssembly()->IsInstrumented(); } #endif } BOOL Module::IsPersistedObject(void *address) { LIMITED_METHOD_CONTRACT; return FALSE; } uint32_t Module::GetNativeMetadataAssemblyCount() { if (m_pNativeImage != NULL) { return m_pNativeImage->GetManifestAssemblyCount(); } else { return GetNativeAssemblyImport()->GetCountWithTokenKind(mdtAssemblyRef); } } void Module::SetNativeMetadataAssemblyRefInCache(DWORD rid, PTR_Assembly pAssembly) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; if (m_NativeMetadataAssemblyRefMap == NULL) { uint32_t dwMaxRid = GetNativeMetadataAssemblyCount(); _ASSERTE(dwMaxRid > 0); S_SIZE_T dwAllocSize = S_SIZE_T(sizeof(PTR_Assembly)) * S_SIZE_T(dwMaxRid); AllocMemTracker amTracker; PTR_Assembly* NativeMetadataAssemblyRefMap = (PTR_Assembly*)amTracker.Track(GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(dwAllocSize)); // Note: Memory allocated on loader heap is zero filled if (InterlockedCompareExchangeT<PTR_Assembly*>(&m_NativeMetadataAssemblyRefMap, NativeMetadataAssemblyRefMap, NULL) == NULL) amTracker.SuppressRelease(); } _ASSERTE(m_NativeMetadataAssemblyRefMap != NULL); _ASSERTE(rid <= GetNativeMetadataAssemblyCount()); VolatileStore(&m_NativeMetadataAssemblyRefMap[rid - 1], pAssembly); } // Module initialization occurs in two phases: the constructor phase and the Initialize phase. // // The Initialize() phase completes the initialization after the constructor has run. // It can throw exceptions but whether it throws or succeeds, it must leave the Module // in a state where Destruct() can be safely called. // // szName is only used by dynamic modules, see ReflectionModule::Initialize // void Module::Initialize(AllocMemTracker *pamTracker, LPCWSTR szName) { CONTRACTL { INSTANCE_CHECK; STANDARD_VM_CHECK; PRECONDITION(szName == NULL); } CONTRACTL_END; m_pSimpleName = m_pPEAssembly->GetSimpleName(); m_Crst.Init(CrstModule); m_LookupTableCrst.Init(CrstModuleLookupTable, CrstFlags(CRST_UNSAFE_ANYMODE | CRST_DEBUGGER_THREAD)); m_FixupCrst.Init(CrstModuleFixup, (CrstFlags)(CRST_HOST_BREAKABLE|CRST_REENTRANCY)); m_InstMethodHashTableCrst.Init(CrstInstMethodHashTable, CRST_REENTRANCY); m_ISymUnmanagedReaderCrst.Init(CrstISymUnmanagedReader, CRST_DEBUGGER_THREAD); m_DictionaryCrst.Init(CrstDomainLocalBlock); AllocateMaps(); m_dwTransientFlags &= ~((DWORD)CLASSES_FREED); // Set flag indicating LookupMaps are now in a consistent and destructable state #ifdef FEATURE_COLLECTIBLE_TYPES if (GetAssembly()->IsCollectible()) { FastInterlockOr(&m_dwPersistedFlags, COLLECTIBLE_MODULE); } #endif // FEATURE_COLLECTIBLE_TYPES #ifdef FEATURE_READYTORUN m_pNativeImage = NULL; if ((m_pReadyToRunInfo = ReadyToRunInfo::Initialize(this, pamTracker)) != NULL) { m_pNativeImage = m_pReadyToRunInfo->GetNativeImage(); if (m_pNativeImage != NULL) { m_NativeMetadataAssemblyRefMap = m_pNativeImage->GetManifestMetadataAssemblyRefMap(); } else { // For composite images, manifest metadata gets loaded as part of the native image COUNT_T cMeta = 0; if (GetPEAssembly()->GetPEImage()->GetNativeManifestMetadata(&cMeta) != NULL) { // Load the native assembly import GetNativeAssemblyImport(TRUE /* loadAllowed */); } } } #endif // Initialize the instance fields that we need for all Modules if (m_pAvailableClasses == NULL && !IsReadyToRun()) { m_pAvailableClasses = EEClassHashTable::Create(this, GetAssembly()->IsCollectible() ? AVAILABLE_CLASSES_HASH_BUCKETS_COLLECTIBLE : AVAILABLE_CLASSES_HASH_BUCKETS, FALSE /* bCaseInsensitive */, pamTracker); } if (m_pAvailableParamTypes == NULL) { m_pAvailableParamTypes = EETypeHashTable::Create(GetLoaderAllocator(), this, PARAMTYPES_HASH_BUCKETS, pamTracker); } if (m_pInstMethodHashTable == NULL) { m_pInstMethodHashTable = InstMethodHashTable::Create(GetLoaderAllocator(), this, PARAMMETHODS_HASH_BUCKETS, pamTracker); } if (m_pMemberRefToDescHashTable == NULL) { if (IsReflection()) { m_pMemberRefToDescHashTable = MemberRefToDescHashTable::Create(this, MEMBERREF_MAP_INITIAL_SIZE, pamTracker); } else { IMDInternalImport* pImport = GetMDImport(); // Get #MemberRefs and create memberrefToDesc hash table m_pMemberRefToDescHashTable = MemberRefToDescHashTable::Create(this, pImport->GetCountWithTokenKind(mdtMemberRef) + 1, pamTracker); } } // this will be initialized a bit later. m_ModuleID = NULL; m_ModuleIndex.m_dwIndex = (SIZE_T)-1; // These will be initialized in NotifyProfilerLoadFinished, set them to // a safe initial value now. m_dwTypeCount = 0; m_dwExportedTypeCount = 0; m_dwCustomAttributeCount = 0; // Prepare statics that are known at module load time AllocateStatics(pamTracker); if (IsReadyToRun()) { InitializeForProfiling(); } if (m_AssemblyRefByNameTable == NULL) { Module::CreateAssemblyRefByNameTable(pamTracker); } #if defined(PROFILING_SUPPORTED) && !defined(DACCESS_COMPILE) m_pJitInlinerTrackingMap = NULL; if (ReJitManager::IsReJITInlineTrackingEnabled()) { m_pJitInlinerTrackingMap = new JITInlineTrackingMap(GetLoaderAllocator()); } #endif // defined (PROFILING_SUPPORTED) &&!defined(DACCESS_COMPILE) LOG((LF_CLASSLOADER, LL_INFO10, "Loaded pModule: \"%ws\".\n", GetDebugName())); } #endif // DACCESS_COMPILE #ifndef DACCESS_COMPILE MemberRefToDescHashTable* MemberRefToDescHashTable::Create(Module *pModule, DWORD cInitialBuckets, AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(!FORBIDGC_LOADER_USE_ENABLED()); } CONTRACTL_END; LoaderHeap *pHeap = pModule->GetAssembly()->GetLowFrequencyHeap(); MemberRefToDescHashTable *pThis = (MemberRefToDescHashTable*)pamTracker->Track(pHeap->AllocMem((S_SIZE_T)sizeof(MemberRefToDescHashTable))); // The base class get initialized through chaining of constructors. We allocated the hash instance via the // loader heap instead of new so use an in-place new to call the constructors now. new (pThis) MemberRefToDescHashTable(pModule, pHeap, cInitialBuckets); return pThis; } //Inserts FieldRef MemberRefToDescHashEntry* MemberRefToDescHashTable::Insert(mdMemberRef token , FieldDesc *value) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(!FORBIDGC_LOADER_USE_ENABLED()); } CONTRACTL_END; LookupContext sAltContext; _ASSERTE((dac_cast<TADDR>(value) & IS_FIELD_MEMBER_REF) == 0); MemberRefToDescHashEntry *pEntry = (PTR_MemberRefToDescHashEntry) BaseFindFirstEntryByHash(RidFromToken(token), &sAltContext); if (pEntry != NULL) { // If memberRef is hot token in that case entry for memberref is already persisted in ngen image. So entry for it will already be present in hash table. // However its value will be null. We need to set its actual value. if(pEntry->m_value == dac_cast<TADDR>(NULL)) { pEntry->m_value = dac_cast<TADDR>(value)|IS_FIELD_MEMBER_REF; } _ASSERTE(pEntry->m_value == (dac_cast<TADDR>(value)|IS_FIELD_MEMBER_REF)); return pEntry; } // For non hot tokens insert new entry in hashtable pEntry = BaseAllocateEntry(NULL); pEntry->m_value = dac_cast<TADDR>(value)|IS_FIELD_MEMBER_REF; BaseInsertEntry(RidFromToken(token), pEntry); return pEntry; } // Insert MethodRef MemberRefToDescHashEntry* MemberRefToDescHashTable::Insert(mdMemberRef token , MethodDesc *value) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(!FORBIDGC_LOADER_USE_ENABLED()); } CONTRACTL_END; LookupContext sAltContext; MemberRefToDescHashEntry *pEntry = (PTR_MemberRefToDescHashEntry) BaseFindFirstEntryByHash(RidFromToken(token), &sAltContext); if (pEntry != NULL) { // If memberRef is hot token in that case entry for memberref is already persisted in ngen image. So entry for it will already be present in hash table. // However its value will be null. We need to set its actual value. if(pEntry->m_value == dac_cast<TADDR>(NULL)) { pEntry->m_value = dac_cast<TADDR>(value); } _ASSERTE(pEntry->m_value == dac_cast<TADDR>(value)); return pEntry; } // For non hot tokens insert new entry in hashtable pEntry = BaseAllocateEntry(NULL); pEntry->m_value = dac_cast<TADDR>(value); BaseInsertEntry(RidFromToken(token), pEntry); return pEntry; } #endif // !DACCESS_COMPILE PTR_MemberRef MemberRefToDescHashTable::GetValue(mdMemberRef token, BOOL *pfIsMethod) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; LookupContext sAltContext; MemberRefToDescHashEntry *pEntry = (PTR_MemberRefToDescHashEntry) BaseFindFirstEntryByHash(RidFromToken(token), &sAltContext); if (pEntry != NULL) { if(pEntry->m_value & IS_FIELD_MEMBER_REF) *pfIsMethod = FALSE; else *pfIsMethod = TRUE; return (PTR_MemberRef)(pEntry->m_value & (~MEMBER_REF_MAP_ALL_FLAGS)); } return NULL; } void Module::SetDebuggerInfoBits(DebuggerAssemblyControlFlags newBits) { LIMITED_METHOD_CONTRACT; SUPPORTS_DAC; _ASSERTE(((newBits << DEBUGGER_INFO_SHIFT_PRIV) & ~DEBUGGER_INFO_MASK_PRIV) == 0); m_dwTransientFlags &= ~DEBUGGER_INFO_MASK_PRIV; m_dwTransientFlags |= (newBits << DEBUGGER_INFO_SHIFT_PRIV); #ifdef DEBUGGING_SUPPORTED if (IsEditAndContinueCapable()) { BOOL setEnC = (newBits & DACF_ENC_ENABLED) != 0 || g_pConfig->ForceEnc() || (g_pConfig->DebugAssembliesModifiable() && CORDisableJITOptimizations(GetDebuggerInfoBits())); if (setEnC) { EnableEditAndContinue(); } } #endif // DEBUGGING_SUPPORTED #if defined(DACCESS_COMPILE) // Now that we've changed m_dwTransientFlags, update that in the target too. // This will fail for read-only target. // If this fails, it will throw an exception. // @dbgtodo dac write: finalize on plans for how DAC writes to the target. HRESULT hrDac; hrDac = DacWriteHostInstance(this, true); _ASSERTE(SUCCEEDED(hrDac)); // would throw if there was an error. #endif // DACCESS_COMPILE } #ifndef DACCESS_COMPILE /* static */ Module *Module::Create(Assembly *pAssembly, mdFile moduleRef, PEAssembly *pPEAssembly, AllocMemTracker *pamTracker) { CONTRACT(Module *) { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pAssembly)); PRECONDITION(CheckPointer(pPEAssembly)); POSTCONDITION(CheckPointer(RETVAL)); POSTCONDITION(RETVAL->GetPEAssembly() == pPEAssembly); } CONTRACT_END; // Hoist CONTRACT into separate routine because of EX incompatibility Module *pModule = NULL; // Create the module #ifdef EnC_SUPPORTED if (IsEditAndContinueCapable(pAssembly, pPEAssembly)) { // if file is EnCCapable, always create an EnC-module, but EnC won't necessarily be enabled. // Debugger enables this by calling SetJITCompilerFlags on LoadModule callback. void* pMemory = pamTracker->Track(pAssembly->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(EditAndContinueModule)))); pModule = new (pMemory) EditAndContinueModule(pAssembly, moduleRef, pPEAssembly); } else #endif // EnC_SUPPORTED { void* pMemory = pamTracker->Track(pAssembly->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(Module)))); pModule = new (pMemory) Module(pAssembly, moduleRef, pPEAssembly); } PREFIX_ASSUME(pModule != NULL); ModuleHolder pModuleSafe(pModule); pModuleSafe->DoInit(pamTracker, NULL); RETURN pModuleSafe.Extract(); } void Module::ApplyMetaData() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; LOG((LF_CLASSLOADER, LL_INFO100, "Module::ApplyNewMetaData %x\n", this)); HRESULT hr = S_OK; ULONG ulCount; #if defined(PROFILING_SUPPORTED) || defined(EnC_SUPPORTED) UpdateNewlyAddedTypes(); #endif // PROFILING_SUPPORTED || EnC_SUPPORTED // Ensure for TypeRef ulCount = GetMDImport()->GetCountWithTokenKind(mdtTypeRef) + 1; EnsureTypeRefCanBeStored(TokenFromRid(ulCount, mdtTypeRef)); // Ensure for AssemblyRef ulCount = GetMDImport()->GetCountWithTokenKind(mdtAssemblyRef) + 1; EnsureAssemblyRefCanBeStored(TokenFromRid(ulCount, mdtAssemblyRef)); // Ensure for MethodDef ulCount = GetMDImport()->GetCountWithTokenKind(mdtMethodDef) + 1; EnsureMethodDefCanBeStored(TokenFromRid(ulCount, mdtMethodDef)); } // // Destructor for Module // void Module::Destruct() { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_TRIGGERS; MODE_PREEMPTIVE; } CONTRACTL_END; LOG((LF_EEMEM, INFO3, "Deleting module %x\n", this)); #ifdef PROFILING_SUPPORTED { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); if (!IsBeingUnloaded()) { // Profiler is causing some peripheral class loads. Probably this just needs // to be turned into a Fault_not_fatal and moved to a specific place inside the profiler. EX_TRY { GCX_PREEMP(); (&g_profControlBlock)->ModuleUnloadStarted((ModuleID) this); } EX_CATCH { } EX_END_CATCH(SwallowAllExceptions); } END_PROFILER_CALLBACK(); } #endif // PROFILING_SUPPORTED DACNotify::DoModuleUnloadNotification(this); // Free classes in the class table FreeClassTables(); #ifdef DEBUGGING_SUPPORTED if (g_pDebugInterface) { GCX_PREEMP(); g_pDebugInterface->DestructModule(this); } #endif // DEBUGGING_SUPPORTED ReleaseISymUnmanagedReader(); // Clean up sig cookies VASigCookieBlock *pVASigCookieBlock = m_pVASigCookieBlock; while (pVASigCookieBlock) { VASigCookieBlock *pNext = pVASigCookieBlock->m_Next; delete pVASigCookieBlock; pVASigCookieBlock = pNext; } // Clean up the IL stub cache if (m_pILStubCache != NULL) { delete m_pILStubCache; } #ifdef PROFILING_SUPPORTED { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); // Profiler is causing some peripheral class loads. Probably this just needs // to be turned into a Fault_not_fatal and moved to a specific place inside the profiler. EX_TRY { GCX_PREEMP(); (&g_profControlBlock)->ModuleUnloadFinished((ModuleID) this, S_OK); } EX_CATCH { } EX_END_CATCH(SwallowAllExceptions); END_PROFILER_CALLBACK(); } #endif // PROFILING_SUPPORTED // // Warning - deleting the zap file will cause the module to be unmapped // ClearInMemorySymbolStream(); m_Crst.Destroy(); m_FixupCrst.Destroy(); m_LookupTableCrst.Destroy(); m_InstMethodHashTableCrst.Destroy(); m_ISymUnmanagedReaderCrst.Destroy(); if (m_debuggerSpecificData.m_pDynamicILCrst) { delete m_debuggerSpecificData.m_pDynamicILCrst; } if (m_debuggerSpecificData.m_pDynamicILBlobTable) { delete m_debuggerSpecificData.m_pDynamicILBlobTable; } if (m_debuggerSpecificData.m_pTemporaryILBlobTable) { delete m_debuggerSpecificData.m_pTemporaryILBlobTable; } if (m_debuggerSpecificData.m_pILOffsetMappingTable) { for (ILOffsetMappingTable::Iterator pCurElem = m_debuggerSpecificData.m_pILOffsetMappingTable->Begin(), pEndElem = m_debuggerSpecificData.m_pILOffsetMappingTable->End(); pCurElem != pEndElem; pCurElem++) { ILOffsetMappingEntry entry = *pCurElem; entry.m_mapping.Clear(); } delete m_debuggerSpecificData.m_pILOffsetMappingTable; } m_pPEAssembly->Release(); // If this module was loaded as domain-specific, then // we must free its ModuleIndex so that it can be reused FreeModuleIndex(); } bool Module::NeedsGlobalMethodTable() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; IMDInternalImport * pImport = GetMDImport(); if (pImport->IsValidToken(COR_GLOBAL_PARENT_TOKEN)) { { HENUMInternalHolder funcEnum(pImport); funcEnum.EnumGlobalFunctionsInit(); if (pImport->EnumGetCount(&funcEnum) != 0) return true; } { HENUMInternalHolder fieldEnum(pImport); fieldEnum.EnumGlobalFieldsInit(); if (pImport->EnumGetCount(&fieldEnum) != 0) return true; } } // resource module or no global statics nor global functions return false; } MethodTable *Module::GetGlobalMethodTable() { CONTRACT (MethodTable *) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL;); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; if ((m_dwPersistedFlags & COMPUTED_GLOBAL_CLASS) == 0) { MethodTable *pMT = NULL; if (NeedsGlobalMethodTable()) { pMT = ClassLoader::LoadTypeDefThrowing(this, COR_GLOBAL_PARENT_TOKEN, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef).AsMethodTable(); } FastInterlockOr(&m_dwPersistedFlags, COMPUTED_GLOBAL_CLASS); RETURN pMT; } else { RETURN LookupTypeDef(COR_GLOBAL_PARENT_TOKEN).AsMethodTable(); } } #endif // !DACCESS_COMPILE /*static*/ BOOL Module::IsEditAndContinueCapable(Assembly *pAssembly, PEAssembly *pPEAssembly) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; _ASSERTE(pAssembly != NULL && pPEAssembly != NULL); // Some modules are never EnC-capable return ! (pAssembly->GetDebuggerInfoBits() & DACF_ALLOW_JIT_OPTS || pPEAssembly->IsSystem() || pPEAssembly->IsDynamic()); } BOOL Module::IsManifest() { WRAPPER_NO_CONTRACT; return dac_cast<TADDR>(GetAssembly()->GetModule()) == dac_cast<TADDR>(this); } DomainAssembly* Module::GetDomainAssembly() { LIMITED_METHOD_DAC_CONTRACT; return dac_cast<PTR_DomainAssembly>(m_ModuleID->GetDomainAssembly()); } #ifndef DACCESS_COMPILE #include "staticallocationhelpers.inl" // Parses metadata and initializes offsets of per-class static blocks. void Module::BuildStaticsOffsets(AllocMemTracker *pamTracker) { STANDARD_VM_CONTRACT; // Trade off here. We want a slot for each type. That way we can get to 2 bits per class and // index directly and not need a mapping from ClassID to MethodTable (we will use the RID // as the mapping) IMDInternalImport *pImport = GetMDImport(); DWORD * pRegularStaticOffsets = NULL; DWORD * pThreadStaticOffsets = NULL; // Get the number of types/classes defined in this module. Add 1 to count the module itself DWORD dwNumTypes = pImport->GetCountWithTokenKind(mdtTypeDef) + 1; // +1 for module type // [0] covers regular statics, [1] covers thread statics DWORD dwGCHandles[2] = { 0, 0 }; // Organization in memory of the static block // // // | GC Statics | // | // | // | Class Data (one byte per class) | pointer to gc statics | primitive type statics | // // #ifndef CROSSBITNESS_COMPILE // The assertions must hold in every non-crossbitness scenario _ASSERTE(OFFSETOF__DomainLocalModule__m_pDataBlob_ == DomainLocalModule::OffsetOfDataBlob()); _ASSERTE(OFFSETOF__ThreadLocalModule__m_pDataBlob == ThreadLocalModule::OffsetOfDataBlob()); #endif DWORD dwNonGCBytes[2] = { DomainLocalModule::OffsetOfDataBlob() + (DWORD)(sizeof(BYTE)*dwNumTypes), ThreadLocalModule::OffsetOfDataBlob() + (DWORD)(sizeof(BYTE)*dwNumTypes) }; HENUMInternalHolder hTypeEnum(pImport); hTypeEnum.EnumAllInit(mdtTypeDef); mdTypeDef type; // Parse each type of the class while (pImport->EnumNext(&hTypeEnum, &type)) { // Set offset for this type DWORD dwIndex = RidFromToken(type) - 1; // [0] covers regular statics, [1] covers thread statics DWORD dwAlignment[2] = { 1, 1 }; DWORD dwClassNonGCBytes[2] = { 0, 0 }; DWORD dwClassGCHandles[2] = { 0, 0 }; // need to check if the type is generic and if so exclude it from iteration as we don't know the size HENUMInternalHolder hGenericEnum(pImport); hGenericEnum.EnumInit(mdtGenericParam, type); ULONG cGenericParams = pImport->EnumGetCount(&hGenericEnum); if (cGenericParams == 0) { HENUMInternalHolder hFieldEnum(pImport); hFieldEnum.EnumInit(mdtFieldDef, type); mdFieldDef field; // Parse each field of the type while (pImport->EnumNext(&hFieldEnum, &field)) { BOOL fSkip = FALSE; CorElementType ElementType = ELEMENT_TYPE_END; mdToken tkValueTypeToken = 0; int kk; // Use one set of variables for regular statics, and the other set for thread statics fSkip = GetStaticFieldElementTypeForFieldDef(this, pImport, field, &ElementType, &tkValueTypeToken, &kk); if (fSkip) continue; // We account for "regular statics" and "thread statics" separately. // Currently we are lumping RVA into "regular statics", // but we probably shouldn't. switch (ElementType) { case ELEMENT_TYPE_I1: case ELEMENT_TYPE_U1: case ELEMENT_TYPE_BOOLEAN: dwClassNonGCBytes[kk] += 1; break; case ELEMENT_TYPE_I2: case ELEMENT_TYPE_U2: case ELEMENT_TYPE_CHAR: dwAlignment[kk] = max(2, dwAlignment[kk]); dwClassNonGCBytes[kk] += 2; break; case ELEMENT_TYPE_I4: case ELEMENT_TYPE_U4: case ELEMENT_TYPE_R4: dwAlignment[kk] = max(4, dwAlignment[kk]); dwClassNonGCBytes[kk] += 4; break; case ELEMENT_TYPE_FNPTR: case ELEMENT_TYPE_PTR: case ELEMENT_TYPE_I: case ELEMENT_TYPE_U: dwAlignment[kk] = max((1 << LOG2_PTRSIZE), dwAlignment[kk]); dwClassNonGCBytes[kk] += (1 << LOG2_PTRSIZE); break; case ELEMENT_TYPE_I8: case ELEMENT_TYPE_U8: case ELEMENT_TYPE_R8: dwAlignment[kk] = max(8, dwAlignment[kk]); dwClassNonGCBytes[kk] += 8; break; case ELEMENT_TYPE_VAR: case ELEMENT_TYPE_MVAR: case ELEMENT_TYPE_STRING: case ELEMENT_TYPE_SZARRAY: case ELEMENT_TYPE_ARRAY: case ELEMENT_TYPE_CLASS: case ELEMENT_TYPE_OBJECT: dwClassGCHandles[kk] += 1; break; case ELEMENT_TYPE_VALUETYPE: // Statics for valuetypes where the valuetype is defined in this module are handled here. Other valuetype statics utilize the pessimistic model below. dwClassGCHandles[kk] += 1; break; case ELEMENT_TYPE_END: default: // The actual element type was ELEMENT_TYPE_VALUETYPE, but the as we don't want to load additional assemblies // to determine these static offsets, we've fallen back to a pessimistic model. if (tkValueTypeToken != 0) { // We'll have to be pessimistic here dwClassNonGCBytes[kk] += MAX_PRIMITIVE_FIELD_SIZE; dwAlignment[kk] = max(MAX_PRIMITIVE_FIELD_SIZE, dwAlignment[kk]); dwClassGCHandles[kk] += 1; break; } else { // field has an unexpected type ThrowHR(VER_E_FIELD_SIG); break; } } } if (pRegularStaticOffsets == NULL && (dwClassGCHandles[0] != 0 || dwClassNonGCBytes[0] != 0)) { // Lazily allocate table for offsets. We need offsets for GC and non GC areas. We add +1 to use as a sentinel. pRegularStaticOffsets = (PTR_DWORD)pamTracker->Track( GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem( (S_SIZE_T(2 * sizeof(DWORD))*(S_SIZE_T(dwNumTypes)+S_SIZE_T(1))))); for (DWORD i = 0; i < dwIndex; i++) { pRegularStaticOffsets[i * 2 ] = dwGCHandles[0]*TARGET_POINTER_SIZE; pRegularStaticOffsets[i * 2 + 1] = dwNonGCBytes[0]; } } if (pThreadStaticOffsets == NULL && (dwClassGCHandles[1] != 0 || dwClassNonGCBytes[1] != 0)) { // Lazily allocate table for offsets. We need offsets for GC and non GC areas. We add +1 to use as a sentinel. pThreadStaticOffsets = (PTR_DWORD)pamTracker->Track( GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem( (S_SIZE_T(2 * sizeof(DWORD))*(S_SIZE_T(dwNumTypes)+S_SIZE_T(1))))); for (DWORD i = 0; i < dwIndex; i++) { pThreadStaticOffsets[i * 2 ] = dwGCHandles[1]*TARGET_POINTER_SIZE; pThreadStaticOffsets[i * 2 + 1] = dwNonGCBytes[1]; } } } if (pRegularStaticOffsets != NULL) { // Align the offset of non gc statics dwNonGCBytes[0] = (DWORD) ALIGN_UP(dwNonGCBytes[0], dwAlignment[0]); // Save current offsets pRegularStaticOffsets[dwIndex*2] = dwGCHandles[0]*TARGET_POINTER_SIZE; pRegularStaticOffsets[dwIndex*2 + 1] = dwNonGCBytes[0]; // Increment for next class dwGCHandles[0] += dwClassGCHandles[0]; dwNonGCBytes[0] += dwClassNonGCBytes[0]; } if (pThreadStaticOffsets != NULL) { // Align the offset of non gc statics dwNonGCBytes[1] = (DWORD) ALIGN_UP(dwNonGCBytes[1], dwAlignment[1]); // Save current offsets pThreadStaticOffsets[dwIndex*2] = dwGCHandles[1]*TARGET_POINTER_SIZE; pThreadStaticOffsets[dwIndex*2 + 1] = dwNonGCBytes[1]; // Increment for next class dwGCHandles[1] += dwClassGCHandles[1]; dwNonGCBytes[1] += dwClassNonGCBytes[1]; } } m_maxTypeRidStaticsAllocated = dwNumTypes; if (pRegularStaticOffsets != NULL) { pRegularStaticOffsets[dwNumTypes*2] = dwGCHandles[0]*TARGET_POINTER_SIZE; pRegularStaticOffsets[dwNumTypes*2 + 1] = dwNonGCBytes[0]; } if (pThreadStaticOffsets != NULL) { pThreadStaticOffsets[dwNumTypes*2] = dwGCHandles[1]*TARGET_POINTER_SIZE; pThreadStaticOffsets[dwNumTypes*2 + 1] = dwNonGCBytes[1]; } m_pRegularStaticOffsets = pRegularStaticOffsets; m_pThreadStaticOffsets = pThreadStaticOffsets; m_dwMaxGCRegularStaticHandles = dwGCHandles[0]; m_dwMaxGCThreadStaticHandles = dwGCHandles[1]; m_dwRegularStaticsBlockSize = dwNonGCBytes[0]; m_dwThreadStaticsBlockSize = dwNonGCBytes[1]; } void Module::GetOffsetsForRegularStaticData( mdToken cl, BOOL bDynamic, DWORD dwGCStaticHandles, DWORD dwNonGCStaticBytes, DWORD * pOutStaticHandleOffset, DWORD * pOutNonGCStaticOffset) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END *pOutStaticHandleOffset = 0; *pOutNonGCStaticOffset = 0; if (!dwGCStaticHandles && !dwNonGCStaticBytes) { return; } #ifndef CROSSBITNESS_COMPILE _ASSERTE(OFFSETOF__DomainLocalModule__NormalDynamicEntry__m_pDataBlob == DomainLocalModule::DynamicEntry::GetOffsetOfDataBlob()); #endif // Statics for instantiated types are allocated dynamically per-instantiation if (bDynamic) { // Non GC statics are embedded in the Dynamic Entry. *pOutNonGCStaticOffset = OFFSETOF__DomainLocalModule__NormalDynamicEntry__m_pDataBlob; return; } if (m_pRegularStaticOffsets == NULL) { THROW_BAD_FORMAT(BFA_METADATA_CORRUPT, this); } _ASSERTE(m_pRegularStaticOffsets != (PTR_DWORD) NGEN_STATICS_ALLCLASSES_WERE_LOADED); // We allocate in the big blob. DWORD index = RidFromToken(cl) - 1; *pOutStaticHandleOffset = m_pRegularStaticOffsets[index*2]; *pOutNonGCStaticOffset = m_pRegularStaticOffsets[index*2 + 1]; #ifdef CROSSBITNESS_COMPILE *pOutNonGCStaticOffset += OFFSETOF__DomainLocalModule__m_pDataBlob_ - DomainLocalModule::OffsetOfDataBlob(); #endif // Check we didnt go out of what we predicted we would need for the class if (*pOutStaticHandleOffset + TARGET_POINTER_SIZE*dwGCStaticHandles > m_pRegularStaticOffsets[(index+1)*2] || *pOutNonGCStaticOffset + dwNonGCStaticBytes > m_pRegularStaticOffsets[(index+1)*2 + 1]) { // It's most likely that this is due to bad metadata, thus the exception. However, the // previous comments for this bit of code mentioned that this could be a corner case bug // with static field size estimation, though this is entirely unlikely since the code has // been this way for at least two releases. THROW_BAD_FORMAT(BFA_METADATA_CORRUPT, this); } } void Module::GetOffsetsForThreadStaticData( mdToken cl, BOOL bDynamic, DWORD dwGCStaticHandles, DWORD dwNonGCStaticBytes, DWORD * pOutStaticHandleOffset, DWORD * pOutNonGCStaticOffset) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END *pOutStaticHandleOffset = 0; *pOutNonGCStaticOffset = 0; if (!dwGCStaticHandles && !dwNonGCStaticBytes) { return; } #ifndef CROSSBITNESS_COMPILE _ASSERTE(OFFSETOF__ThreadLocalModule__DynamicEntry__m_pDataBlob == ThreadLocalModule::DynamicEntry::GetOffsetOfDataBlob()); #endif // Statics for instantiated types are allocated dynamically per-instantiation if (bDynamic) { // Non GC thread statics are embedded in the Dynamic Entry. *pOutNonGCStaticOffset = OFFSETOF__ThreadLocalModule__DynamicEntry__m_pDataBlob; return; } if (m_pThreadStaticOffsets == NULL) { THROW_BAD_FORMAT(BFA_METADATA_CORRUPT, this); } _ASSERTE(m_pThreadStaticOffsets != (PTR_DWORD) NGEN_STATICS_ALLCLASSES_WERE_LOADED); // We allocate in the big blob. DWORD index = RidFromToken(cl) - 1; *pOutStaticHandleOffset = m_pThreadStaticOffsets[index*2]; *pOutNonGCStaticOffset = m_pThreadStaticOffsets[index*2 + 1]; #ifdef CROSSBITNESS_COMPILE *pOutNonGCStaticOffset += OFFSETOF__ThreadLocalModule__m_pDataBlob - ThreadLocalModule::GetOffsetOfDataBlob(); #endif // Check we didnt go out of what we predicted we would need for the class if (*pOutStaticHandleOffset + TARGET_POINTER_SIZE*dwGCStaticHandles > m_pThreadStaticOffsets[(index+1)*2] || *pOutNonGCStaticOffset + dwNonGCStaticBytes > m_pThreadStaticOffsets[(index+1)*2 + 1]) { // It's most likely that this is due to bad metadata, thus the exception. However, the // previous comments for this bit of code mentioned that this could be a corner case bug // with static field size estimation, though this is entirely unlikely since the code has // been this way for at least two releases. THROW_BAD_FORMAT(BFA_METADATA_CORRUPT, this); } } // initialize Crst controlling the Dynamic IL hashtable void Module::InitializeDynamicILCrst() { Crst * pCrst = new Crst(CrstDynamicIL, CrstFlags(CRST_UNSAFE_ANYMODE | CRST_DEBUGGER_THREAD)); if (InterlockedCompareExchangeT( &m_debuggerSpecificData.m_pDynamicILCrst, pCrst, NULL) != NULL) { delete pCrst; } } // Add a (token, address) pair to the table of IL blobs for reflection/dynamics // Arguments: // Input: // token method token // blobAddress address of the start of the IL blob address, including the header // fTemporaryOverride // is this a permanent override that should go in the // DynamicILBlobTable, or a temporary one? // Output: not explicit, but if the pair was not already in the table it will be added. // Does not add duplicate tokens to the table. void Module::SetDynamicIL(mdToken token, TADDR blobAddress, BOOL fTemporaryOverride) { DynamicILBlobEntry entry = {mdToken(token), TADDR(blobAddress)}; // Lazily allocate a Crst to serialize update access to the info structure. // Carefully synchronize to ensure we don't leak a Crst in race conditions. if (m_debuggerSpecificData.m_pDynamicILCrst == NULL) { InitializeDynamicILCrst(); } CrstHolder ch(m_debuggerSpecificData.m_pDynamicILCrst); // Figure out which table to fill in PTR_DynamicILBlobTable &table(fTemporaryOverride ? m_debuggerSpecificData.m_pTemporaryILBlobTable : m_debuggerSpecificData.m_pDynamicILBlobTable); // Lazily allocate the hash table. if (table == NULL) { table = PTR_DynamicILBlobTable(new DynamicILBlobTable); } table->AddOrReplace(entry); } #endif // !DACCESS_COMPILE // Get the stored address of the IL blob for reflection/dynamics // Arguments: // Input: // token method token // fAllowTemporary also check the temporary overrides // Return Value: starting (target) address of the IL blob corresponding to the input token TADDR Module::GetDynamicIL(mdToken token, BOOL fAllowTemporary) { SUPPORTS_DAC; #ifndef DACCESS_COMPILE // The Crst to serialize update access to the info structure is lazily allocated. // If it hasn't been allocated yet, then we don't have any IL blobs (temporary or otherwise) if (m_debuggerSpecificData.m_pDynamicILCrst == NULL) { return TADDR(NULL); } CrstHolder ch(m_debuggerSpecificData.m_pDynamicILCrst); #endif // Both hash tables are lazily allocated, so if they're NULL // then we have no IL blobs if (fAllowTemporary && m_debuggerSpecificData.m_pTemporaryILBlobTable != NULL) { DynamicILBlobEntry entry = m_debuggerSpecificData.m_pTemporaryILBlobTable->Lookup(token); // Only return a value if the lookup succeeded if (!DynamicILBlobTraits::IsNull(entry)) { return entry.m_il; } } if (m_debuggerSpecificData.m_pDynamicILBlobTable == NULL) { return TADDR(NULL); } DynamicILBlobEntry entry = m_debuggerSpecificData.m_pDynamicILBlobTable->Lookup(token); // If the lookup fails, it returns the 'NULL' entry // The 'NULL' entry has m_il set to NULL, so either way we're safe return entry.m_il; } #if !defined(DACCESS_COMPILE) //--------------------------------------------------------------------------------------- // // Add instrumented IL offset mapping for the specified method. // // Arguments: // token - the MethodDef token of the method in question // mapping - the mapping information between original IL offsets and instrumented IL offsets // // Notes: // * Once added, the mapping stays valid until the Module containing the method is destructed. // * The profiler may potentially update the mapping more than once. // void Module::SetInstrumentedILOffsetMapping(mdMethodDef token, InstrumentedILOffsetMapping mapping) { ILOffsetMappingEntry entry(token, mapping); // Lazily allocate a Crst to serialize update access to the hash table. // Carefully synchronize to ensure we don't leak a Crst in race conditions. if (m_debuggerSpecificData.m_pDynamicILCrst == NULL) { InitializeDynamicILCrst(); } CrstHolder ch(m_debuggerSpecificData.m_pDynamicILCrst); // Lazily allocate the hash table. if (m_debuggerSpecificData.m_pILOffsetMappingTable == NULL) { m_debuggerSpecificData.m_pILOffsetMappingTable = PTR_ILOffsetMappingTable(new ILOffsetMappingTable); } ILOffsetMappingEntry currentEntry = m_debuggerSpecificData.m_pILOffsetMappingTable->Lookup(ILOffsetMappingTraits::GetKey(entry)); if (!ILOffsetMappingTraits::IsNull(currentEntry)) currentEntry.m_mapping.Clear(); m_debuggerSpecificData.m_pILOffsetMappingTable->AddOrReplace(entry); } #endif // DACCESS_COMPILE //--------------------------------------------------------------------------------------- // // Retrieve the instrumented IL offset mapping for the specified method. // // Arguments: // token - the MethodDef token of the method in question // // Return Value: // Return the mapping information between original IL offsets and instrumented IL offsets. // Check InstrumentedILOffsetMapping::IsNull() to see if any mapping is available. // // Notes: // * Once added, the mapping stays valid until the Module containing the method is destructed. // * The profiler may potentially update the mapping more than once. // InstrumentedILOffsetMapping Module::GetInstrumentedILOffsetMapping(mdMethodDef token) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; // Lazily allocate a Crst to serialize update access to the hash table. // If the Crst is NULL, then we couldn't possibly have added any mapping yet, so just return NULL. if (m_debuggerSpecificData.m_pDynamicILCrst == NULL) { InstrumentedILOffsetMapping emptyMapping; return emptyMapping; } CrstHolder ch(m_debuggerSpecificData.m_pDynamicILCrst); // If the hash table hasn't been created, then we couldn't possibly have added any mapping yet, // so just return NULL. if (m_debuggerSpecificData.m_pILOffsetMappingTable == NULL) { InstrumentedILOffsetMapping emptyMapping; return emptyMapping; } ILOffsetMappingEntry entry = m_debuggerSpecificData.m_pILOffsetMappingTable->Lookup(token); return entry.m_mapping; } #undef DECODE_TYPEID #undef ENCODE_TYPEID #undef IS_ENCODED_TYPEID #ifndef DACCESS_COMPILE BOOL Module::HasDefaultDllImportSearchPathsAttribute() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if(IsDefaultDllImportSearchPathsAttributeCached()) { return (m_dwPersistedFlags & DEFAULT_DLL_IMPORT_SEARCH_PATHS_STATUS) != 0 ; } BOOL attributeIsFound = FALSE; attributeIsFound = GetDefaultDllImportSearchPathsAttributeValue(this, TokenFromRid(1, mdtAssembly),&m_DefaultDllImportSearchPathsAttributeValue); if(attributeIsFound) { FastInterlockOr(&m_dwPersistedFlags, DEFAULT_DLL_IMPORT_SEARCH_PATHS_IS_CACHED | DEFAULT_DLL_IMPORT_SEARCH_PATHS_STATUS); } else { FastInterlockOr(&m_dwPersistedFlags, DEFAULT_DLL_IMPORT_SEARCH_PATHS_IS_CACHED); } return (m_dwPersistedFlags & DEFAULT_DLL_IMPORT_SEARCH_PATHS_STATUS) != 0 ; } // Returns a BOOL to indicate if we have computed whether compiler has instructed us to // wrap the non-CLS compliant exceptions or not. BOOL Module::IsRuntimeWrapExceptionsStatusComputed() { LIMITED_METHOD_CONTRACT; return (m_dwPersistedFlags & COMPUTED_WRAP_EXCEPTIONS); } BOOL Module::IsRuntimeWrapExceptions() { CONTRACTL { THROWS; if (IsRuntimeWrapExceptionsStatusComputed()) GC_NOTRIGGER; else GC_TRIGGERS; MODE_ANY; } CONTRACTL_END if (!(IsRuntimeWrapExceptionsStatusComputed())) { HRESULT hr; BOOL fRuntimeWrapExceptions = FALSE; IMDInternalImport *mdImport = GetAssembly()->GetMDImport(); mdToken token; IfFailGo(mdImport->GetAssemblyFromScope(&token)); const BYTE *pVal; ULONG cbVal; hr = mdImport->GetCustomAttributeByName(token, RUNTIMECOMPATIBILITY_TYPE, (const void**)&pVal, &cbVal); // Parse the attribute if (hr == S_OK) { CustomAttributeParser ca(pVal, cbVal); CaNamedArg namedArgs[1] = {{0}}; // First, the void constructor: IfFailGo(ParseKnownCaArgs(ca, NULL, 0)); // Then, find the named argument namedArgs[0].InitBoolField("WrapNonExceptionThrows"); IfFailGo(ParseKnownCaNamedArgs(ca, namedArgs, ARRAY_SIZE(namedArgs))); if (namedArgs[0].val.boolean) fRuntimeWrapExceptions = TRUE; } ErrExit: FastInterlockOr(&m_dwPersistedFlags, COMPUTED_WRAP_EXCEPTIONS | (fRuntimeWrapExceptions ? WRAP_EXCEPTIONS : 0)); } return !!(m_dwPersistedFlags & WRAP_EXCEPTIONS); } BOOL Module::IsRuntimeMarshallingEnabled() { CONTRACTL { THROWS; if (IsRuntimeMarshallingEnabledCached()) GC_NOTRIGGER; else GC_TRIGGERS; MODE_ANY; } CONTRACTL_END if (IsRuntimeMarshallingEnabledCached()) { return !!(m_dwPersistedFlags & RUNTIME_MARSHALLING_ENABLED); } HRESULT hr; IMDInternalImport *mdImport = GetAssembly()->GetMDImport(); mdToken token; if (SUCCEEDED(hr = mdImport->GetAssemblyFromScope(&token))) { const BYTE *pVal; ULONG cbVal; hr = mdImport->GetCustomAttributeByName(token, g_DisableRuntimeMarshallingAttribute, (const void**)&pVal, &cbVal); } FastInterlockOr(&m_dwPersistedFlags, RUNTIME_MARSHALLING_ENABLED_IS_CACHED | (hr == S_OK ? 0 : RUNTIME_MARSHALLING_ENABLED)); return hr != S_OK; } BOOL Module::IsPreV4Assembly() { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END if (!(m_dwPersistedFlags & COMPUTED_IS_PRE_V4_ASSEMBLY)) { IMDInternalImport *pImport = GetAssembly()->GetMDImport(); _ASSERTE(pImport); BOOL fIsPreV4Assembly = FALSE; LPCSTR szVersion = NULL; if (SUCCEEDED(pImport->GetVersionString(&szVersion))) { if (szVersion != NULL && strlen(szVersion) > 2) { fIsPreV4Assembly = (szVersion[0] == 'v' || szVersion[0] == 'V') && (szVersion[1] == '1' || szVersion[1] == '2'); } } FastInterlockOr(&m_dwPersistedFlags, COMPUTED_IS_PRE_V4_ASSEMBLY | (fIsPreV4Assembly ? IS_PRE_V4_ASSEMBLY : 0)); } return !!(m_dwPersistedFlags & IS_PRE_V4_ASSEMBLY); } DWORD Module::AllocateDynamicEntry(MethodTable *pMT) { CONTRACTL { THROWS; GC_TRIGGERS; PRECONDITION(pMT->GetModuleForStatics() == this); PRECONDITION(pMT->IsDynamicStatics()); PRECONDITION(!pMT->ContainsGenericVariables()); } CONTRACTL_END; DWORD newId = FastInterlockExchangeAdd((LONG*)&m_cDynamicEntries, 1); if (newId >= VolatileLoad(&m_maxDynamicEntries)) { CrstHolder ch(&m_Crst); if (newId >= m_maxDynamicEntries) { SIZE_T maxDynamicEntries = max(16, m_maxDynamicEntries); while (maxDynamicEntries <= newId) { maxDynamicEntries *= 2; } DynamicStaticsInfo* pNewDynamicStaticsInfo = (DynamicStaticsInfo*) (void*)GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(DynamicStaticsInfo)) * S_SIZE_T(maxDynamicEntries)); if (m_pDynamicStaticsInfo) memcpy(pNewDynamicStaticsInfo, m_pDynamicStaticsInfo, sizeof(DynamicStaticsInfo) * m_maxDynamicEntries); m_pDynamicStaticsInfo = pNewDynamicStaticsInfo; VolatileStore(&m_maxDynamicEntries, maxDynamicEntries); } } m_pDynamicStaticsInfo[newId].pEnclosingMT = pMT; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Assigned dynamic ID %d to %s\n", newId, pMT->GetDebugClassName())); return newId; } void Module::FreeModuleIndex() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (m_ModuleID != NULL) { _ASSERTE(m_ModuleIndex == m_ModuleID->GetModuleIndex()); if (IsCollectible()) { ThreadStoreLockHolder tsLock; Thread *pThread = NULL; while ((pThread = ThreadStore::GetThreadList(pThread)) != NULL) { pThread->DeleteThreadStaticData(m_ModuleIndex); } } // Get the ModuleIndex from the DLM and free it Module::FreeModuleIndex(m_ModuleIndex); } else { // This was an empty, short-lived Module object that // was never assigned a ModuleIndex... } } ModuleIndex Module::AllocateModuleIndex() { DWORD val; g_pModuleIndexDispenser->NewId(NULL, val); // For various reasons, the IDs issued by the IdDispenser start at 1. // Domain neutral module IDs have historically started at 0, and we // have always assigned ID 0 to CoreLib. Thus, to make it so that // domain neutral module IDs start at 0, we will subtract 1 from the // ID that we got back from the ID dispenser. ModuleIndex index((SIZE_T)(val-1)); return index; } void Module::FreeModuleIndex(ModuleIndex index) { WRAPPER_NO_CONTRACT; // We subtracted 1 after we allocated this ID, so we need to // add 1 before we free it. SIZE_T val = index.m_dwIndex + 1; _ASSERTE(val <= MAXDWORD); g_pModuleIndexDispenser->DisposeId((DWORD)val); } void Module::AllocateRegularStaticHandles(AppDomain* pDomain) { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; // Allocate the handles we will need. Note that AllocateStaticFieldObjRefPtrs will only // allocate if pModuleData->GetGCStaticsBasePointerAddress(pMT) != 0, avoiding creating // handles more than once for a given MT or module DomainLocalModule *pModuleData = GetDomainLocalModule(); _ASSERTE(pModuleData->GetPrecomputedGCStaticsBasePointerAddress() != NULL); if (this->m_dwMaxGCRegularStaticHandles > 0) { pDomain->AllocateStaticFieldObjRefPtrs(this->m_dwMaxGCRegularStaticHandles, pModuleData->GetPrecomputedGCStaticsBasePointerAddress()); // We should throw if we fail to allocate and never hit this assert _ASSERTE(pModuleData->GetPrecomputedGCStaticsBasePointer() != NULL); } } BOOL Module::IsStaticStoragePrepared(mdTypeDef tkType) { LIMITED_METHOD_CONTRACT; // Right now the design is that we do one static allocation pass during NGEN, // and a 2nd pass for it at module init time for modules that weren't NGENed or the NGEN // pass was unsucessful. If we are loading types after that then we must use dynamic // static storage. These dynamic statics require an additional indirection so they // don't perform quite as well. // // This check was created for the scenario where a profiler adds additional types // however it seems likely this check would also accurately handle other dynamic // scenarios such as ref.emit and EnC as long as they are adding new types and // not new statics to existing types. _ASSERTE(TypeFromToken(tkType) == mdtTypeDef); return m_maxTypeRidStaticsAllocated >= RidFromToken(tkType); } void Module::AllocateStatics(AllocMemTracker *pamTracker) { STANDARD_VM_CONTRACT; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Allocating statics for module %s\n", GetSimpleName())); // Build the offset table, which will tell us what the offsets for the statics of each class are (one offset for gc handles, one offset // for non gc types) BuildStaticsOffsets(pamTracker); } void Module::SetDomainAssembly(DomainAssembly *pDomainAssembly) { CONTRACTL { INSTANCE_CHECK; PRECONDITION(CheckPointer(pDomainAssembly)); PRECONDITION(IsManifest()); THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; DomainLocalModule* pModuleData = 0; // Do we need to allocate memory for the non GC statics? if (m_ModuleID == NULL) { // Allocate memory for the module statics. LoaderAllocator *pLoaderAllocator = NULL; if (GetAssembly()->IsCollectible()) { pLoaderAllocator = GetAssembly()->GetLoaderAllocator(); } else { pLoaderAllocator = pDomainAssembly->GetAppDomain()->GetLoaderAllocator(); } SIZE_T size = GetDomainLocalModuleSize(); LOG((LF_CLASSLOADER, LL_INFO10, "STATICS: Allocating %i bytes for precomputed statics in module %S in LoaderAllocator %p\n", size, this->GetDebugName(), pLoaderAllocator)); // We guarantee alignment for 64-bit regular statics on 32-bit platforms even without FEATURE_64BIT_ALIGNMENT for performance reasons. _ASSERTE(size >= DomainLocalModule::OffsetOfDataBlob()); pModuleData = (DomainLocalModule*)(void*) pLoaderAllocator->GetHighFrequencyHeap()->AllocAlignedMem( size, MAX_PRIMITIVE_FIELD_SIZE); // Note: Memory allocated on loader heap is zero filled // memset(pModuleData, 0, size); // Verify that the space is really zero initialized _ASSERTE(pModuleData->GetPrecomputedGCStaticsBasePointer() == NULL); // If the module was loaded as domain-specific, then we need to assign // this module a domain-neutral module ID. pModuleData->m_ModuleIndex = Module::AllocateModuleIndex(); m_ModuleIndex = pModuleData->m_ModuleIndex; } else { pModuleData = this->m_ModuleID; LOG((LF_CLASSLOADER, LL_INFO10, "STATICS: Allocation not needed for ngened non shared module %s in Appdomain %08x\n")); } // Non shared case, module points directly to the statics. In ngen case // m_pDomainModule is already set for the non shared case if (m_ModuleID == NULL) { m_ModuleID = pModuleData; } m_ModuleID->SetDomainAssembly(pDomainAssembly); // Allocate static handles now. // NOTE: Bootstrapping issue with CoreLib - we will manually allocate later // If the assembly is collectible, we don't initialize static handles for them // as it is currently initialized through the DomainLocalModule::PopulateClass in MethodTable::CheckRunClassInitThrowing // (If we don't do this, it would allocate here unused regular static handles that will be overridden later) if (g_pPredefinedArrayTypes[ELEMENT_TYPE_OBJECT] != NULL && !GetAssembly()->IsCollectible()) AllocateRegularStaticHandles(pDomainAssembly->GetAppDomain()); } OBJECTREF Module::GetExposedObject() { CONTRACT(OBJECTREF) { INSTANCE_CHECK; POSTCONDITION(RETVAL != NULL); THROWS; GC_TRIGGERS; MODE_COOPERATIVE; } CONTRACT_END; RETURN GetDomainAssembly()->GetExposedModuleObject(); } // // AllocateMap allocates the RID maps based on the size of the current // metadata (if any) // void Module::AllocateMaps() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; enum { TYPEDEF_MAP_INITIAL_SIZE = 5, TYPEREF_MAP_INITIAL_SIZE = 5, MEMBERDEF_MAP_INITIAL_SIZE = 10, GENERICPARAM_MAP_INITIAL_SIZE = 5, GENERICTYPEDEF_MAP_INITIAL_SIZE = 5, FILEREFERENCES_MAP_INITIAL_SIZE = 5, ASSEMBLYREFERENCES_MAP_INITIAL_SIZE = 5, }; PTR_TADDR pTable = NULL; if (IsReflection()) { // For dynamic modules, it is essential that we at least have a TypeDefToMethodTable // map with an initial block. Otherwise, all the iterators will abort on an // initial empty table and we will e.g. corrupt the backpatching chains during // an appdomain unload. m_TypeDefToMethodTableMap.dwCount = TYPEDEF_MAP_INITIAL_SIZE; // The above is essential. The following ones are precautionary. m_TypeRefToMethodTableMap.dwCount = TYPEREF_MAP_INITIAL_SIZE; m_MethodDefToDescMap.dwCount = MEMBERDEF_MAP_INITIAL_SIZE; m_FieldDefToDescMap.dwCount = MEMBERDEF_MAP_INITIAL_SIZE; m_GenericParamToDescMap.dwCount = GENERICPARAM_MAP_INITIAL_SIZE; m_GenericTypeDefToCanonMethodTableMap.dwCount = TYPEDEF_MAP_INITIAL_SIZE; m_FileReferencesMap.dwCount = FILEREFERENCES_MAP_INITIAL_SIZE; m_ManifestModuleReferencesMap.dwCount = ASSEMBLYREFERENCES_MAP_INITIAL_SIZE; m_MethodDefToPropertyInfoMap.dwCount = MEMBERDEF_MAP_INITIAL_SIZE; } else { IMDInternalImport * pImport = GetMDImport(); // Get # TypeDefs (add 1 for COR_GLOBAL_PARENT_TOKEN) m_TypeDefToMethodTableMap.dwCount = pImport->GetCountWithTokenKind(mdtTypeDef)+2; // Get # TypeRefs m_TypeRefToMethodTableMap.dwCount = pImport->GetCountWithTokenKind(mdtTypeRef)+1; // Get # MethodDefs m_MethodDefToDescMap.dwCount = pImport->GetCountWithTokenKind(mdtMethodDef)+1; // Get # FieldDefs m_FieldDefToDescMap.dwCount = pImport->GetCountWithTokenKind(mdtFieldDef)+1; // Get # GenericParams m_GenericParamToDescMap.dwCount = pImport->GetCountWithTokenKind(mdtGenericParam)+1; // Get the number of FileReferences in the map m_FileReferencesMap.dwCount = pImport->GetCountWithTokenKind(mdtFile)+1; // Get the number of AssemblyReferences in the map m_ManifestModuleReferencesMap.dwCount = pImport->GetCountWithTokenKind(mdtAssemblyRef)+1; m_GenericTypeDefToCanonMethodTableMap.dwCount = 0; m_MethodDefToPropertyInfoMap.dwCount = 0; } S_SIZE_T nTotal; nTotal += m_TypeDefToMethodTableMap.dwCount; nTotal += m_TypeRefToMethodTableMap.dwCount; nTotal += m_MethodDefToDescMap.dwCount; nTotal += m_FieldDefToDescMap.dwCount; nTotal += m_GenericParamToDescMap.dwCount; nTotal += m_GenericTypeDefToCanonMethodTableMap.dwCount; nTotal += m_FileReferencesMap.dwCount; nTotal += m_ManifestModuleReferencesMap.dwCount; nTotal += m_MethodDefToPropertyInfoMap.dwCount; _ASSERTE (m_pAssembly && m_pAssembly->GetLowFrequencyHeap()); pTable = (PTR_TADDR)(void*)m_pAssembly->GetLowFrequencyHeap()->AllocMem(nTotal * S_SIZE_T(sizeof(TADDR))); // Note: Memory allocated on loader heap is zero filled // memset(pTable, 0, nTotal * sizeof(void*)); m_TypeDefToMethodTableMap.pNext = NULL; m_TypeDefToMethodTableMap.supportedFlags = TYPE_DEF_MAP_ALL_FLAGS; m_TypeDefToMethodTableMap.pTable = pTable; m_TypeRefToMethodTableMap.pNext = NULL; m_TypeRefToMethodTableMap.supportedFlags = TYPE_REF_MAP_ALL_FLAGS; m_TypeRefToMethodTableMap.pTable = &pTable[m_TypeDefToMethodTableMap.dwCount]; m_MethodDefToDescMap.pNext = NULL; m_MethodDefToDescMap.supportedFlags = METHOD_DEF_MAP_ALL_FLAGS; m_MethodDefToDescMap.pTable = &m_TypeRefToMethodTableMap.pTable[m_TypeRefToMethodTableMap.dwCount]; m_FieldDefToDescMap.pNext = NULL; m_FieldDefToDescMap.supportedFlags = FIELD_DEF_MAP_ALL_FLAGS; m_FieldDefToDescMap.pTable = &m_MethodDefToDescMap.pTable[m_MethodDefToDescMap.dwCount]; m_GenericParamToDescMap.pNext = NULL; m_GenericParamToDescMap.supportedFlags = GENERIC_PARAM_MAP_ALL_FLAGS; m_GenericParamToDescMap.pTable = &m_FieldDefToDescMap.pTable[m_FieldDefToDescMap.dwCount]; m_GenericTypeDefToCanonMethodTableMap.pNext = NULL; m_GenericTypeDefToCanonMethodTableMap.supportedFlags = GENERIC_TYPE_DEF_MAP_ALL_FLAGS; m_GenericTypeDefToCanonMethodTableMap.pTable = &m_GenericParamToDescMap.pTable[m_GenericParamToDescMap.dwCount]; m_FileReferencesMap.pNext = NULL; m_FileReferencesMap.supportedFlags = FILE_REF_MAP_ALL_FLAGS; m_FileReferencesMap.pTable = &m_GenericTypeDefToCanonMethodTableMap.pTable[m_GenericTypeDefToCanonMethodTableMap.dwCount]; m_ManifestModuleReferencesMap.pNext = NULL; m_ManifestModuleReferencesMap.supportedFlags = MANIFEST_MODULE_MAP_ALL_FLAGS; m_ManifestModuleReferencesMap.pTable = &m_FileReferencesMap.pTable[m_FileReferencesMap.dwCount]; m_MethodDefToPropertyInfoMap.pNext = NULL; m_MethodDefToPropertyInfoMap.supportedFlags = PROPERTY_INFO_MAP_ALL_FLAGS; m_MethodDefToPropertyInfoMap.pTable = &m_ManifestModuleReferencesMap.pTable[m_ManifestModuleReferencesMap.dwCount]; } // // FreeClassTables frees the classes in the module // void Module::FreeClassTables() { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; if (m_dwTransientFlags & CLASSES_FREED) return; FastInterlockOr(&m_dwTransientFlags, CLASSES_FREED); // disable ibc here because it can cause errors during the destruction of classes IBCLoggingDisabler disableLogging; #if _DEBUG DebugLogRidMapOccupancy(); #endif // // Free the types filled out in the TypeDefToEEClass map // // Go through each linked block LookupMap<PTR_MethodTable>::Iterator typeDefIter(&m_TypeDefToMethodTableMap); while (typeDefIter.Next()) { MethodTable * pMT = typeDefIter.GetElement(); if (pMT != NULL && pMT->IsRestored()) { pMT->GetClass()->Destruct(pMT); } } // Now do the same for constructed types (arrays and instantiated generic types) if (IsTenured()) // If we're destructing because of an error during the module's creation, we'll play it safe and not touch this table as its memory is freed by a { // separate AllocMemTracker. Though you're supposed to destruct everything else before destructing the AllocMemTracker, this is an easy invariant to break so // we'll play extra safe on this end. if (m_pAvailableParamTypes != NULL) { EETypeHashTable::Iterator it(m_pAvailableParamTypes); EETypeHashEntry *pEntry; while (m_pAvailableParamTypes->FindNext(&it, &pEntry)) { TypeHandle th = pEntry->GetTypeHandle(); if (!th.IsRestored()) continue; // We need to call destruct on instances of EEClass whose "canonical" dependent lives in this table // There is nothing interesting to destruct on array EEClass if (!th.IsTypeDesc()) { MethodTable * pMT = th.AsMethodTable(); if (pMT->IsCanonicalMethodTable()) pMT->GetClass()->Destruct(pMT); } } } } } #endif // !DACCESS_COMPILE ClassLoader *Module::GetClassLoader() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; _ASSERTE(m_pAssembly != NULL); return m_pAssembly->GetLoader(); } PTR_BaseDomain Module::GetDomain() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; _ASSERTE(m_pAssembly != NULL); return m_pAssembly->GetDomain(); } #ifndef DACCESS_COMPILE void Module::StartUnload() { WRAPPER_NO_CONTRACT; #ifdef PROFILING_SUPPORTED { BEGIN_PROFILER_CALLBACK(CORProfilerTrackModuleLoads()); if (!IsBeingUnloaded()) { // Profiler is causing some peripheral class loads. Probably this just needs // to be turned into a Fault_not_fatal and moved to a specific place inside the profiler. EX_TRY { GCX_PREEMP(); (&g_profControlBlock)->ModuleUnloadStarted((ModuleID) this); } EX_CATCH { } EX_END_CATCH(SwallowAllExceptions); } END_PROFILER_CALLBACK(); } #endif // PROFILING_SUPPORTED if (g_IBCLogger.InstrEnabled()) { Thread * pThread = GetThread(); ThreadLocalIBCInfo* pInfo = pThread->GetIBCInfo(); // Acquire the Crst lock before creating the IBCLoggingDisabler object. // Only one thread at a time can be processing an IBC logging event. CrstHolder lock(IBCLogger::GetSync()); { IBCLoggingDisabler disableLogging( pInfo ); // runs IBCLoggingDisabler::DisableLogging // Write out the method profile data /*hr=*/WriteMethodProfileDataLogFile(true); } } SetBeingUnloaded(); } BOOL Module::IsInCurrentVersionBubble() { LIMITED_METHOD_CONTRACT; return TRUE; } #if defined(FEATURE_READYTORUN) //--------------------------------------------------------------------------------------- // Check if the target module is in the same version bubble as this one // The current implementation uses the presence of an AssemblyRef for the target module's assembly in // the native manifest metadata. // // Arguments: // * target - target module to check // // Return Value: // TRUE if the target module is in the same version bubble as this one // BOOL Module::IsInSameVersionBubble(Module *target) { STANDARD_VM_CONTRACT; if (this == target) { return TRUE; } if (!IsReadyToRun()) { return FALSE; } NativeImage *nativeImage = this->GetCompositeNativeImage(); IMDInternalImport* pMdImport = NULL; if (nativeImage != NULL) { if (nativeImage == target->GetCompositeNativeImage()) { // Fast path for modules contained within the same native image return TRUE; } pMdImport = nativeImage->GetManifestMetadata(); } else { // Check if the current module's image has native manifest metadata, otherwise the current->GetNativeAssemblyImport() asserts. COUNT_T cMeta=0; const void* pMeta = GetPEAssembly()->GetPEImage()->GetNativeManifestMetadata(&cMeta); if (pMeta == NULL) { return FALSE; } pMdImport = GetNativeAssemblyImport(); } LPCUTF8 targetName = target->GetAssembly()->GetSimpleName(); HENUMInternal assemblyEnum; HRESULT hr = pMdImport->EnumAllInit(mdtAssemblyRef, &assemblyEnum); mdAssemblyRef assemblyRef; while (pMdImport->EnumNext(&assemblyEnum, &assemblyRef)) { LPCSTR assemblyName; hr = pMdImport->GetAssemblyRefProps(assemblyRef, NULL, NULL, &assemblyName, NULL, NULL, NULL, NULL); if (strcmp(assemblyName, targetName) == 0) { return TRUE; } } return FALSE; } #endif // FEATURE_READYTORUN //--------------------------------------------------------------------------------------- // // Wrapper for Module::GetRWImporter + QI when writing is not needed. // // Arguments: // * dwOpenFlags - Combo from CorOpenFlags. Better not contain ofWrite! // * riid - Public IID requested // * ppvInterface - [out] Requested interface. On success, *ppvInterface is returned // refcounted; caller responsible for Release. // // Return Value: // HRESULT indicating success or failure. // HRESULT Module::GetReadablePublicMetaDataInterface(DWORD dwOpenFlags, REFIID riid, LPVOID * ppvInterface) { CONTRACTL { NOTHROW; GC_NOTRIGGER; CAN_TAKE_LOCK; MODE_ANY; } CONTRACTL_END; _ASSERTE((dwOpenFlags & ofWrite) == 0); // Temporary place to store the IUnknown from which we'll do the final QI to get the // requested public interface. Any assignment to pIUnk assumes pIUnk does not need // to do a Release() (either the interface was internal and not AddRef'd, or was // public and will be released by the above holder). IUnknown * pIUnk = NULL; HRESULT hr = S_OK; // Normally, we just get an RWImporter to do the QI on, and we're on our way. EX_TRY { pIUnk = GetRWImporter(); } EX_CATCH_HRESULT_NO_ERRORINFO(hr); // Get the requested interface if (SUCCEEDED(hr) && (ppvInterface != NULL)) { _ASSERTE(pIUnk != NULL); hr = pIUnk->QueryInterface(riid, (void **) ppvInterface); } return hr; } // a special token that indicates no reader could be created - don't try again static ISymUnmanagedReader* const k_pInvalidSymReader = (ISymUnmanagedReader*)0x1; #if defined(FEATURE_ISYM_READER) ISymUnmanagedReader *Module::GetISymUnmanagedReaderNoThrow(void) { CONTRACT(ISymUnmanagedReader *) { INSTANCE_CHECK; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); NOTHROW; WRAPPER(GC_TRIGGERS); MODE_ANY; } CONTRACT_END; ISymUnmanagedReader *ret = NULL; EX_TRY { ret = GetISymUnmanagedReader(); } EX_CATCH { // We swallow any exception and say that we simply couldn't get a reader by returning NULL. // The only type of error that should be possible here is OOM. /* DISABLED due to Dev10 bug 619495 CONSISTENCY_CHECK_MSG( GET_EXCEPTION()->GetHR() == E_OUTOFMEMORY, "Exception from GetISymUnmanagedReader"); */ } EX_END_CATCH(RethrowTerminalExceptions); RETURN (ret); } ISymUnmanagedReader *Module::GetISymUnmanagedReader(void) { CONTRACT(ISymUnmanagedReader *) { INSTANCE_CHECK; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); THROWS; WRAPPER(GC_TRIGGERS); MODE_ANY; } CONTRACT_END; if (g_fEEShutDown) RETURN NULL; // Verify that symbol reading is permitted for this module. // If we know we've already created a symbol reader, don't bother checking. There is // no advantage to allowing symbol reading to be turned off if we've already created the reader. // Note that we can't just put this code in the creation block below because we might have to // call managed code to resolve security policy, and we can't do that while holding a lock. // There is no disadvantage other than a minor perf cost to calling this unnecessarily, so the // race on m_pISymUnmanagedReader here is OK. The perf cost is minor because the only real // work is done by the security system which caches the result. if( m_pISymUnmanagedReader == NULL && !IsSymbolReadingEnabled() ) RETURN NULL; // Take the lock for the m_pISymUnmanagedReader // This ensures that we'll only ever attempt to create one reader at a time, and we won't // create a reader if we're in the middle of destroying one that has become stale. // Actual access to the reader can safely occur outside the lock as long as it has its own // AddRef which we take inside the lock at the bottom of this method. CrstHolder holder(&m_ISymUnmanagedReaderCrst); UINT lastErrorMode = 0; // If we haven't created a reader yet, do so now if (m_pISymUnmanagedReader == NULL) { // Mark our reader as invalid so that if we fail to create the reader // (including if an exception is thrown), we won't keep trying. m_pISymUnmanagedReader = k_pInvalidSymReader; // There are 4 main cases here: // 1. Assembly is on disk and we'll get the symbols from a file next to the assembly // 2. Assembly was loaded in-memory (by byte array or ref-emit), and symbols were // provided along with it. // 3. Assembly was loaded in-memory but no symbols were provided. // Determine whether we should be looking in memory for the symbols (case 2) bool fInMemorySymbols = GetInMemorySymbolStream(); if( !fInMemorySymbols && m_pPEAssembly->GetPath().IsEmpty() ) { // Case 3. We don't have a module path or an in memory symbol stream, // so there is no-where to try and get symbols from. RETURN (NULL); } // Create a binder to find the reader. // // <REVISIT_TODO>@perf: this is slow, creating and destroying the binder every // time. We should cache this somewhere, but I'm not 100% sure // where right now...</REVISIT_TODO> HRESULT hr = S_OK; SafeComHolder<ISymUnmanagedBinder> pBinder; if (g_pDebugInterface == NULL) { // @TODO: this is reachable when debugging! UNREACHABLE_MSG("About to CoCreateInstance! This code should not be " "reachable or needs to be reimplemented for CoreCLR!"); } // We're going to be working with Windows PDB format symbols. Attempt to CoCreate the symbol binder. // CoreCLR supports not having a symbol reader installed, so CoCreate searches the PATH env var // and then tries coreclr dll location. // On desktop, the framework installer is supposed to install diasymreader.dll as well // and so this shouldn't happen. hr = FakeCoCreateInstanceEx(CLSID_CorSymBinder_SxS, NATIVE_SYMBOL_READER_DLL, IID_ISymUnmanagedBinder, (void**)&pBinder, NULL); if (FAILED(hr)) { PathString symbolReaderPath; hr = GetClrModuleDirectory(symbolReaderPath); if (FAILED(hr)) { RETURN (NULL); } symbolReaderPath.Append(NATIVE_SYMBOL_READER_DLL); hr = FakeCoCreateInstanceEx(CLSID_CorSymBinder_SxS, symbolReaderPath.GetUnicode(), IID_ISymUnmanagedBinder, (void**)&pBinder, NULL); if (FAILED(hr)) { RETURN (NULL); } } LOG((LF_CORDB, LL_INFO10, "M::GISUR: Created binder\n")); // Note: we change the error mode here so we don't get any popups as the PDB symbol reader attempts to search the // hard disk for files. lastErrorMode = SetErrorMode(SEM_NOOPENFILEERRORBOX|SEM_FAILCRITICALERRORS); SafeComHolder<ISymUnmanagedReader> pReader; if (fInMemorySymbols) { SafeComHolder<IStream> pIStream( NULL ); // If debug stream is already specified, don't bother to go through fusion // This is the common case for case 2 (hosted modules) and case 3 (Ref.Emit). if (GetInMemorySymbolStream() ) { if( IsReflection() ) { // If this is Reflection.Emit, we must clone the stream because another thread may // update it when someone is using the reader we create here leading to AVs. // Note that the symbol stream should be up to date since we flush the writer // after every addition in Module::AddClass. IfFailThrow(GetInMemorySymbolStream()->Clone(&pIStream)); } else { // The stream is not changing. Just add-ref to it. pIStream = GetInMemorySymbolStream(); pIStream->AddRef(); } } if (SUCCEEDED(hr)) { hr = pBinder->GetReaderFromStream(GetRWImporter(), pIStream, &pReader); } } else { // The assembly is on disk, so try and load symbols based on the path to the assembly (case 1) const SString &path = m_pPEAssembly->GetPath(); // Call Fusion to ensure that any PDB's are shadow copied before // trying to get a symbol reader. This has to be done once per // Assembly. ReleaseHolder<IUnknown> pUnk = NULL; hr = GetReadablePublicMetaDataInterface(ofReadOnly, IID_IMetaDataImport, &pUnk); if (SUCCEEDED(hr)) hr = pBinder->GetReaderForFile(pUnk, path, NULL, &pReader); } SetErrorMode(lastErrorMode); if (SUCCEEDED(hr)) { m_pISymUnmanagedReader = pReader.Extract(); LOG((LF_CORDB, LL_INFO10, "M::GISUR: Loaded symbols for module %S\n", GetDebugName())); } else { // We failed to create the reader, don't try again next time LOG((LF_CORDB, LL_INFO10, "M::GISUR: Failed to load symbols for module %S\n", GetDebugName())); _ASSERTE( m_pISymUnmanagedReader == k_pInvalidSymReader ); } } // if( m_pISymUnmanagedReader == NULL ) // If we previously failed to create the reader, return NULL if (m_pISymUnmanagedReader == k_pInvalidSymReader) { RETURN (NULL); } // Success - return an AddRef'd copy of the reader m_pISymUnmanagedReader->AddRef(); RETURN (m_pISymUnmanagedReader); } #endif // FEATURE_ISYM_READER BOOL Module::IsSymbolReadingEnabled() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; #ifdef DEBUGGING_SUPPORTED if (!g_pDebugInterface) { // if debugging is disabled (no debug pack installed), do not load symbols // This is done for two reasons. We don't completely trust the security of // the diasymreader.dll code, so we don't want to use it in mainline scenarios. // Secondly, there's not reason that diasymreader.dll will even necssarily be // be on the machine if the debug pack isn't installed. return FALSE; } #endif // DEBUGGING_SUPPORTED return TRUE; } // At this point, this is only called when we're creating an appdomain // out of an array of bytes, so we'll keep the IStream that we create // around in case the debugger attaches later (including detach & re-attach!) void Module::SetSymbolBytes(LPCBYTE pbSyms, DWORD cbSyms) { STANDARD_VM_CONTRACT; // Create a IStream from the memory for the syms. SafeComHolder<CGrowableStream> pStream(new CGrowableStream()); // Do not need to AddRef the CGrowableStream because the constructor set it to 1 // ref count already. The Module will keep a copy for its own use. // Make sure to set the symbol stream on the module before // attempting to send UpdateModuleSyms messages up for it. SetInMemorySymbolStream(pStream); // This can only be called when the module is being created. No-one should have // tried to use the symbols yet, and so there should not be a reader. // If instead, we wanted to call this when a reader could have been created, we need to // serialize access by taking the reader lock, and flush the old reader by calling // code:Module.ReleaseISymUnmanagedReader _ASSERTE( m_pISymUnmanagedReader == NULL ); #ifdef LOGGING LPCWSTR pName = NULL; pName = GetDebugName(); #endif // LOGGING ULONG cbWritten; DWORD dwError = pStream->Write((const void *)pbSyms, (ULONG)cbSyms, &cbWritten); IfFailThrow(HRESULT_FROM_WIN32(dwError)); #if PROFILING_SUPPORTED BEGIN_PROFILER_CALLBACK(CORProfilerInMemorySymbolsUpdatesEnabled()); { (&g_profControlBlock)->ModuleInMemorySymbolsUpdated((ModuleID) this); } END_PROFILER_CALLBACK(); #endif //PROFILING_SUPPORTED ETW::CodeSymbolLog::EmitCodeSymbols(this); // Tell the debugger that symbols have been loaded for this // module. We iterate through all domains which contain this // module's assembly, and send a debugger notify for each one. // <REVISIT_TODO>@perf: it would scale better if we directly knew which domains // the assembly was loaded in.</REVISIT_TODO> if (CORDebuggerAttached()) { AppDomainIterator i(FALSE); while (i.Next()) { AppDomain *pDomain = i.GetDomain(); if (pDomain->IsDebuggerAttached() && (GetDomain() == SystemDomain::System() || pDomain->ContainsAssembly(m_pAssembly))) { g_pDebugInterface->SendUpdateModuleSymsEventAndBlock(this, pDomain); } } } } // Clear any cached symbol reader void Module::ReleaseISymUnmanagedReader(void) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; FORBID_FAULT; } CONTRACTL_END; // Caller is responsible for taking the reader lock if the call could occur when // other threads are using or creating the reader if( m_pISymUnmanagedReader != NULL ) { // If we previously failed to create a reader, don't attempt to release it // but do clear it out so that we can try again (eg. symbols may have changed) if( m_pISymUnmanagedReader != k_pInvalidSymReader ) { m_pISymUnmanagedReader->Release(); } m_pISymUnmanagedReader = NULL; } } // Lazily creates a new IL stub cache for this module. ILStubCache* Module::GetILStubCache() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END; // Use per-LoaderAllocator cache for modules BaseDomain *pDomain = GetDomain(); if (!IsSystem()) return GetLoaderAllocator()->GetILStubCache(); if (m_pILStubCache == NULL) { ILStubCache *pILStubCache = new ILStubCache(GetLoaderAllocator()->GetHighFrequencyHeap()); if (FastInterlockCompareExchangePointer(&m_pILStubCache, pILStubCache, NULL) != NULL) { // some thread swooped in and set the field delete pILStubCache; } } _ASSERTE(m_pILStubCache != NULL); return m_pILStubCache; } // Called to finish the process of adding a new class with Reflection.Emit void Module::AddClass(mdTypeDef classdef) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_PREEMPTIVE; } CONTRACTL_END; // The fake class associated with the module (global fields & functions) needs to be initialized here // Normal classes are added to the available class hash when their typedef is first created. if (RidFromToken(classdef) == 0) { BuildClassForModule(); } } //--------------------------------------------------------------------------- // For the global class this builds the table of MethodDescs an adds the rids // to the MethodDef map. //--------------------------------------------------------------------------- void Module::BuildClassForModule() { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; IMDInternalImport * pImport = GetMDImport(); DWORD cFunctions, cFields; { // Obtain count of global functions HENUMInternalHolder hEnum(pImport); hEnum.EnumGlobalFunctionsInit(); cFunctions = pImport->EnumGetCount(&hEnum); } { // Obtain count of global fields HENUMInternalHolder hEnum(pImport); hEnum.EnumGlobalFieldsInit(); cFields = pImport->EnumGetCount(&hEnum); } // If we have any work to do... if (cFunctions > 0 || cFields > 0) { TypeKey typeKey(this, COR_GLOBAL_PARENT_TOKEN); TypeHandle typeHnd = GetClassLoader()->LoadTypeHandleForTypeKeyNoLock(&typeKey); } } #endif // !DACCESS_COMPILE // Returns true iff the debugger should be notified about this module // // Notes: // Debugger doesn't need to be notified about modules that can't be executed. // (we do not have such cases at the moment) // // This should be immutable for an instance of a module. That ensures that the debugger gets consistent // notifications about it. It this value mutates, than the debugger may miss relevant notifications. BOOL Module::IsVisibleToDebugger() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return TRUE; } PEImageLayout * Module::GetReadyToRunImage() { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_READYTORUN if (IsReadyToRun()) return GetReadyToRunInfo()->GetImage(); #endif return NULL; } PTR_CORCOMPILE_IMPORT_SECTION Module::GetImportSections(COUNT_T *pCount) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; return GetReadyToRunInfo()->GetImportSections(pCount); } PTR_CORCOMPILE_IMPORT_SECTION Module::GetImportSectionFromIndex(COUNT_T index) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; return GetReadyToRunInfo()->GetImportSectionFromIndex(index); } PTR_CORCOMPILE_IMPORT_SECTION Module::GetImportSectionForRVA(RVA rva) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; return GetReadyToRunInfo()->GetImportSectionForRVA(rva); } TADDR Module::GetIL(DWORD target) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; if (target == 0) return NULL; return m_pPEAssembly->GetIL(target); } PTR_VOID Module::GetRvaField(DWORD rva) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return m_pPEAssembly->GetRvaField(rva); } #ifndef DACCESS_COMPILE CHECK Module::CheckRvaField(RVA field) { WRAPPER_NO_CONTRACT; if (!IsReflection()) CHECK(m_pPEAssembly->CheckRvaField(field)); CHECK_OK; } CHECK Module::CheckRvaField(RVA field, COUNT_T size) { CONTRACTL { STANDARD_VM_CHECK; CAN_TAKE_LOCK; } CONTRACTL_END; if (!IsReflection()) CHECK(m_pPEAssembly->CheckRvaField(field, size)); CHECK_OK; } #endif // !DACCESS_COMPILE BOOL Module::HasTls() { WRAPPER_NO_CONTRACT; return m_pPEAssembly->HasTls(); } BOOL Module::IsRvaFieldTls(DWORD rva) { WRAPPER_NO_CONTRACT; return m_pPEAssembly->IsRvaFieldTls(rva); } UINT32 Module::GetFieldTlsOffset(DWORD rva) { WRAPPER_NO_CONTRACT; return m_pPEAssembly->GetFieldTlsOffset(rva); } UINT32 Module::GetTlsIndex() { WRAPPER_NO_CONTRACT; return m_pPEAssembly->GetTlsIndex(); } // In DAC builds this function was being called on host addresses which may or may not // have been marshalled from the target. Such addresses can't be reliably mapped back to // target addresses, which means we can't tell whether they came from the IL or not // // Security note: Any security which you might wish to gain by verifying the origin of // a signature isn't available in DAC. The attacker can provide a dump which spoofs all // module ranges. In other words the attacker can make the signature appear to come from // anywhere, but still violate all the rules that a signature from that location would // otherwise follow. I am removing this function from DAC in order to prevent anyone from // getting a false sense of security (in addition to its functional shortcomings) #ifndef DACCESS_COMPILE BOOL Module::IsSigInIL(PCCOR_SIGNATURE signature) { CONTRACTL { INSTANCE_CHECK; FORBID_FAULT; MODE_ANY; NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; return m_pPEAssembly->IsPtrInPEImage(signature); } void Module::InitializeStringData(DWORD token, EEStringData *pstrData, CQuickBytes *pqb) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); PRECONDITION(TypeFromToken(token) == mdtString); } CONTRACTL_END; BOOL fIs80Plus; DWORD dwCharCount; LPCWSTR pString; if (FAILED(GetMDImport()->GetUserString(token, &dwCharCount, &fIs80Plus, &pString)) || (pString == NULL)) { THROW_BAD_FORMAT(BFA_BAD_STRING_TOKEN_RANGE, this); } #if !BIGENDIAN pstrData->SetStringBuffer(pString); #else // !!BIGENDIAN _ASSERTE(pqb != NULL); LPWSTR pSwapped; pSwapped = (LPWSTR) pqb->AllocThrows(dwCharCount * sizeof(WCHAR)); memcpy((void*)pSwapped, (void*)pString, dwCharCount*sizeof(WCHAR)); SwapStringLength(pSwapped, dwCharCount); pstrData->SetStringBuffer(pSwapped); #endif // !!BIGENDIAN // MD and String look at this bit in opposite ways. Here's where we'll do the conversion. // MD sets the bit to true if the string contains characters greater than 80. // String sets the bit to true if the string doesn't contain characters greater than 80. pstrData->SetCharCount(dwCharCount); pstrData->SetIsOnlyLowChars(!fIs80Plus); } OBJECTHANDLE Module::ResolveStringRef(DWORD token, BaseDomain *pDomain) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); PRECONDITION(TypeFromToken(token) == mdtString); } CONTRACTL_END; EEStringData strData; OBJECTHANDLE string = NULL; #if !BIGENDIAN InitializeStringData(token, &strData, NULL); #else // !!BIGENDIAN CQuickBytes qb; InitializeStringData(token, &strData, &qb); #endif // !!BIGENDIAN GCX_COOP(); // We can only do this for native images as they guarantee that resolvestringref will be // called only once per string from this module. @TODO: We really dont have any way of asserting // this, which would be nice... (and is needed to guarantee correctness) // Retrieve the string from the either the appropriate LoaderAllocator LoaderAllocator *pLoaderAllocator; if (this->IsCollectible()) pLoaderAllocator = this->GetLoaderAllocator(); else pLoaderAllocator = pDomain->GetLoaderAllocator(); string = (OBJECTHANDLE)pLoaderAllocator->GetStringObjRefPtrFromUnicodeString(&strData); return string; } // // Used by the verifier. Returns whether this stringref is valid. // CHECK Module::CheckStringRef(DWORD token) { LIMITED_METHOD_CONTRACT; CHECK(TypeFromToken(token)==mdtString); CHECK(!IsNilToken(token)); CHECK(GetMDImport()->IsValidToken(token)); CHECK_OK; } mdToken Module::GetEntryPointToken() { WRAPPER_NO_CONTRACT; return m_pPEAssembly->GetEntryPointToken(); } BYTE *Module::GetProfilerBase() { CONTRACT(BYTE*) { NOTHROW; GC_NOTRIGGER; CANNOT_TAKE_LOCK; } CONTRACT_END; if (m_pPEAssembly == NULL) // I'd rather assert this is not the case... { RETURN NULL; } else if (m_pPEAssembly->HasLoadedPEImage()) { RETURN (BYTE*)(m_pPEAssembly->GetLoadedLayout()->GetBase()); } else { RETURN NULL; } } void Module::AddActiveDependency(Module *pModule, BOOL unconditional) { CONTRACT_VOID { THROWS; GC_TRIGGERS; PRECONDITION(CheckPointer(pModule)); PRECONDITION(pModule != this); PRECONDITION(!IsSystem()); // Postcondition about activation } CONTRACT_END; pModule->EnsureActive(); RETURN; } #endif //!DACCESS_COMPILE Assembly * Module::GetAssemblyIfLoaded( mdAssemblyRef kAssemblyRef, IMDInternalImport * pMDImportOverride, // = NULL BOOL fDoNotUtilizeExtraChecks, // = FALSE AssemblyBinder *pBinderForLoadedAssembly // = NULL ) { CONTRACT(Assembly *) { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; FORBID_FAULT; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); SUPPORTS_DAC; } CONTRACT_END; Assembly * pAssembly = NULL; BOOL fCanUseRidMap = pMDImportOverride == NULL; #ifdef _DEBUG fCanUseRidMap = fCanUseRidMap && (CLRConfig::GetConfigValue(CLRConfig::INTERNAL_GetAssemblyIfLoadedIgnoreRidMap) == 0); #endif // Don't do a lookup if an override IMDInternalImport is provided, since the lookup is for the // standard IMDInternalImport and might result in an incorrect result. if (fCanUseRidMap) { pAssembly = LookupAssemblyRef(kAssemblyRef); } #ifndef DACCESS_COMPILE // Check if actually loaded, unless a GC is in progress or the current thread is // walking the stack (either its own stack, or another thread's stack) as that works // only with loaded assemblies // // NOTE: The case where the current thread is walking a stack can be problematic for // other reasons, as the remaining code of this function uses "GetAppDomain()", when // in fact the right AppDomain to use is the one corresponding to the frame being // traversed on the walked thread. Dev10 TFS bug# 762348 tracks that issue. if ((pAssembly != NULL) && !IsGCThread() && !IsStackWalkerThread()) { _ASSERTE(::GetAppDomain() != NULL); DomainAssembly * pDomainAssembly = pAssembly->GetDomainAssembly(); if ((pDomainAssembly == NULL) || !pDomainAssembly->IsLoaded()) pAssembly = NULL; } #endif //!DACCESS_COMPILE if (pAssembly == NULL) { do { AppDomain * pAppDomainExamine = AppDomain::GetCurrentDomain(); DomainAssembly * pCurAssemblyInExamineDomain = GetAssembly()->GetDomainAssembly(); if (pCurAssemblyInExamineDomain == NULL) { continue; } #ifndef DACCESS_COMPILE { IMDInternalImport * pMDImport = (pMDImportOverride == NULL) ? (GetMDImport()) : (pMDImportOverride); //we have to be very careful here. //we are using InitializeSpecInternal so we need to make sure that under no condition //the data we pass to it can outlive the assembly spec. AssemblySpec spec; if (FAILED(spec.InitializeSpecInternal(kAssemblyRef, pMDImport, pCurAssemblyInExamineDomain, FALSE /*fAllowAllocation*/))) { continue; } // If we have been passed the binding context for the loaded assembly that is being looked up in the // cache, then set it up in the AssemblySpec for the cache lookup to use it below. if (pBinderForLoadedAssembly != NULL) { _ASSERTE(spec.GetBinder() == NULL); spec.SetBinder(pBinderForLoadedAssembly); } DomainAssembly * pDomainAssembly = nullptr; { pDomainAssembly = pAppDomainExamine->FindCachedAssembly(&spec, FALSE /*fThrow*/); } if (pDomainAssembly && pDomainAssembly->IsLoaded()) pAssembly = pDomainAssembly->GetAssembly(); // Only store in the rid map if working with the current AppDomain. if (fCanUseRidMap && pAssembly) StoreAssemblyRef(kAssemblyRef, pAssembly); if (pAssembly != NULL) break; } #endif //!DACCESS_COMPILE } while (false); } // When walking the stack or computing GC information this function should never fail. _ASSERTE((pAssembly != NULL) || !(IsStackWalkerThread() || IsGCThread())); #ifdef DACCESS_COMPILE // Note: In rare cases when debugger walks the stack, we could actually have pAssembly=NULL here. // To fix that we should DACize the AppDomain-iteration code above (especially AssemblySpec). _ASSERTE(pAssembly != NULL); #endif //DACCESS_COMPILE RETURN pAssembly; } // Module::GetAssemblyIfLoaded DWORD Module::GetAssemblyRefFlags( mdAssemblyRef tkAssemblyRef) { CONTRACTL { if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; _ASSERTE(TypeFromToken(tkAssemblyRef) == mdtAssemblyRef); LPCSTR pszAssemblyName; const void *pbPublicKeyOrToken; DWORD cbPublicKeyOrToken; DWORD dwAssemblyRefFlags; IfFailThrow(GetMDImport()->GetAssemblyRefProps( tkAssemblyRef, &pbPublicKeyOrToken, &cbPublicKeyOrToken, &pszAssemblyName, NULL, NULL, NULL, &dwAssemblyRefFlags)); return dwAssemblyRefFlags; } // Module::GetAssemblyRefFlags #ifndef DACCESS_COMPILE DomainAssembly * Module::LoadAssembly(mdAssemblyRef kAssemblyRef) { CONTRACT(DomainAssembly *) { INSTANCE_CHECK; if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; if (FORBIDGC_LOADER_USE_ENABLED()) GC_NOTRIGGER; else GC_TRIGGERS; if (FORBIDGC_LOADER_USE_ENABLED()) FORBID_FAULT; else { INJECT_FAULT(COMPlusThrowOM();); } MODE_ANY; POSTCONDITION(CheckPointer(RETVAL, NULL_NOT_OK)); } CONTRACT_END; ETWOnStartup (LoaderCatchCall_V1, LoaderCatchCallEnd_V1); DomainAssembly * pDomainAssembly; // // Early out quickly if the result is cached // Assembly * pAssembly = LookupAssemblyRef(kAssemblyRef); if (pAssembly != NULL) { pDomainAssembly = pAssembly->GetDomainAssembly(); ::GetAppDomain()->LoadDomainAssembly(pDomainAssembly, FILE_LOADED); RETURN pDomainAssembly; } { PEAssemblyHolder pPEAssembly = GetDomainAssembly()->GetPEAssembly()->LoadAssembly(kAssemblyRef); AssemblySpec spec; spec.InitializeSpec(kAssemblyRef, GetMDImport(), GetDomainAssembly()); // Set the binding context in the AssemblySpec if one is available. This can happen if the LoadAssembly ended up // invoking the custom AssemblyLoadContext implementation that returned a reference to an assembly bound to a different // AssemblyLoadContext implementation. AssemblyBinder *pBinder = pPEAssembly->GetAssemblyBinder(); if (pBinder != NULL) { spec.SetBinder(pBinder); } pDomainAssembly = GetAppDomain()->LoadDomainAssembly(&spec, pPEAssembly, FILE_LOADED); } if (pDomainAssembly != NULL) { _ASSERTE( pDomainAssembly->IsSystem() || // GetAssemblyIfLoaded will not find CoreLib (see AppDomain::FindCachedFile) !pDomainAssembly->IsLoaded() || // GetAssemblyIfLoaded will not find not-yet-loaded assemblies GetAssemblyIfLoaded(kAssemblyRef, NULL, FALSE, pDomainAssembly->GetPEAssembly()->GetHostAssembly()->GetBinder()) != NULL); // GetAssemblyIfLoaded should find all remaining cases if (pDomainAssembly->GetAssembly() != NULL) { StoreAssemblyRef(kAssemblyRef, pDomainAssembly->GetAssembly()); } } RETURN pDomainAssembly; } #endif // !DACCESS_COMPILE Module *Module::GetModuleIfLoaded(mdFile kFile) { CONTRACT(Module *) { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(TypeFromToken(kFile) == mdtFile || TypeFromToken(kFile) == mdtModuleRef); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); FORBID_FAULT; SUPPORTS_DAC; } CONTRACT_END; ENABLE_FORBID_GC_LOADER_USE_IN_THIS_SCOPE(); // Handle the module ref case if (TypeFromToken(kFile) == mdtModuleRef) { LPCSTR moduleName; if (FAILED(GetMDImport()->GetModuleRefProps(kFile, &moduleName))) { RETURN NULL; } // This is required only because of some lower casing on the name kFile = GetAssembly()->GetManifestFileToken(moduleName); if (kFile == mdTokenNil) RETURN NULL; RETURN GetAssembly()->GetModule()->GetModuleIfLoaded(kFile); } Module *pModule = LookupFile(kFile); if (pModule == NULL) { if (IsManifest()) { if (kFile == mdFileNil) pModule = GetAssembly()->GetModule(); } else { // If we didn't find it there, look at the "master rid map" in the manifest file Assembly *pAssembly = GetAssembly(); mdFile kMatch; // This is required only because of some lower casing on the name kMatch = pAssembly->GetManifestFileToken(GetMDImport(), kFile); if (IsNilToken(kMatch)) { if (kMatch == mdFileNil) { pModule = pAssembly->GetModule(); } else { RETURN NULL; } } else pModule = pAssembly->GetModule()->LookupFile(kMatch); } #ifndef DACCESS_COMPILE if (pModule != NULL) StoreFileNoThrow(kFile, pModule); #endif } #ifndef DACCESS_COMPILE #endif // !DACCESS_COMPILE RETURN pModule; } #ifndef DACCESS_COMPILE DomainAssembly *Module::LoadModule(AppDomain *pDomain, mdFile kFile) { CONTRACT(DomainAssembly *) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; PRECONDITION(TypeFromToken(kFile) == mdtFile || TypeFromToken(kFile) == mdtModuleRef); } CONTRACT_END; LPCSTR psModuleName=NULL; if (TypeFromToken(kFile) == mdtModuleRef) { // This is a moduleRef IfFailThrow(GetMDImport()->GetModuleRefProps(kFile, &psModuleName)); } else { // This is mdtFile IfFailThrow(GetAssembly()->GetMDImport()->GetFileProps(kFile, &psModuleName, NULL, NULL, NULL)); } SString name(SString::Utf8, psModuleName); EEFileLoadException::Throw(name, COR_E_MULTIMODULEASSEMBLIESDIALLOWED, NULL); RETURN NULL; } #endif // !DACCESS_COMPILE PTR_Module Module::LookupModule(mdToken kFile) { CONTRACT(PTR_Module) { INSTANCE_CHECK; if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; if (FORBIDGC_LOADER_USE_ENABLED()) GC_NOTRIGGER; else GC_TRIGGERS; if (FORBIDGC_LOADER_USE_ENABLED()) FORBID_FAULT; else { INJECT_FAULT(COMPlusThrowOM()); } MODE_ANY; PRECONDITION(TypeFromToken(kFile) == mdtFile || TypeFromToken(kFile) == mdtModuleRef); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); SUPPORTS_DAC; } CONTRACT_END; if (TypeFromToken(kFile) == mdtModuleRef) { LPCSTR moduleName; IfFailThrow(GetMDImport()->GetModuleRefProps(kFile, &moduleName)); mdFile kFileLocal = GetAssembly()->GetManifestFileToken(moduleName); if (kFileLocal == mdTokenNil) COMPlusThrowHR(COR_E_BADIMAGEFORMAT); RETURN GetAssembly()->GetModule()->LookupModule(kFileLocal); } PTR_Module pModule = LookupFile(kFile); if (pModule == NULL && !IsManifest()) { // If we didn't find it there, look at the "master rid map" in the manifest file Assembly *pAssembly = GetAssembly(); mdFile kMatch = pAssembly->GetManifestFileToken(GetMDImport(), kFile); if (IsNilToken(kMatch)) { if (kMatch == mdFileNil) pModule = pAssembly->GetModule(); else COMPlusThrowHR(COR_E_BADIMAGEFORMAT); } else pModule = pAssembly->GetModule()->LookupFile(kMatch); } RETURN pModule; } TypeHandle Module::LookupTypeRef(mdTypeRef token) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; SUPPORTS_DAC; _ASSERTE(TypeFromToken(token) == mdtTypeRef); g_IBCLogger.LogRidMapAccess( MakePair( this, token ) ); TypeHandle entry = TypeHandle::FromTAddr(dac_cast<TADDR>(m_TypeRefToMethodTableMap.GetElement(RidFromToken(token)))); if (entry.IsNull()) return TypeHandle(); // Cannot do this in a NOTHROW function. // Note that this could be called while doing GC from the prestub of // a method to resolve typerefs in a signature. We cannot THROW // during GC. // @PERF: Enable this so that we do not need to touch metadata // to resolve typerefs #ifdef FIXUPS_ALL_TYPEREFS if (CORCOMPILE_IS_POINTER_TAGGED((SIZE_T) entry.AsPtr())) { #ifndef DACCESS_COMPILE Module::RestoreTypeHandlePointer(&entry, TRUE); m_TypeRefToMethodTableMap.SetElement(RidFromToken(token), dac_cast<PTR_TypeRef>(value.AsTAddr())); #else // DACCESS_COMPILE DacNotImpl(); #endif // DACCESS_COMPILE } #endif // FIXUPS_ALL_TYPEREFS return entry; } #ifndef DACCESS_COMPILE // // Increase the size of one of the maps, such that it can handle a RID of at least "rid". // // This function must also check that another thread didn't already add a LookupMap capable // of containing the same RID. // PTR_TADDR LookupMapBase::GrowMap(Module * pModule, DWORD rid) { CONTRACT(PTR_TADDR) { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(ThrowOutOfMemory();); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; LookupMapBase *pMap = this; LookupMapBase *pPrev = NULL; LookupMapBase *pNewMap = NULL; // Initial block size DWORD dwIndex = rid; DWORD dwBlockSize = 16; { CrstHolder ch(pModule->GetLookupTableCrst()); // Check whether we can already handle this RID index do { if (dwIndex < pMap->dwCount) { // Already there - some other thread must have added it RETURN pMap->GetIndexPtr(dwIndex); } dwBlockSize *= 2; dwIndex -= pMap->dwCount; pPrev = pMap; pMap = pMap->pNext; } while (pMap != NULL); _ASSERTE(pPrev != NULL); // should never happen, because there's always at least one map DWORD dwSizeToAllocate = max(dwIndex + 1, dwBlockSize); pNewMap = (LookupMapBase *) (void*)pModule->GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(LookupMapBase)) + S_SIZE_T(dwSizeToAllocate)*S_SIZE_T(sizeof(TADDR))); // Note: Memory allocated on loader heap is zero filled // memset(pNewMap, 0, sizeof(LookupMap) + dwSizeToAllocate*sizeof(void*)); pNewMap->pNext = NULL; pNewMap->dwCount = dwSizeToAllocate; pNewMap->pTable = dac_cast<ArrayDPTR(TADDR)>(pNewMap + 1); // Link ourselves in VolatileStore<LookupMapBase*>(&(pPrev->pNext), pNewMap); } RETURN pNewMap->GetIndexPtr(dwIndex); } #endif // DACCESS_COMPILE PTR_TADDR LookupMapBase::GetElementPtr(DWORD rid) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; LookupMapBase * pMap = this; DWORD dwIndex = rid; do { if (dwIndex < pMap->dwCount) { return pMap->GetIndexPtr(dwIndex); } dwIndex -= pMap->dwCount; pMap = pMap->pNext; } while (pMap != NULL); return NULL; } // Get number of RIDs that this table can store DWORD LookupMapBase::GetSize() { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; LookupMapBase * pMap = this; DWORD dwSize = 0; do { dwSize += pMap->dwCount; pMap = pMap->pNext; } while (pMap != NULL); return dwSize; } #ifndef DACCESS_COMPILE #ifdef _DEBUG void LookupMapBase::DebugGetRidMapOccupancy(DWORD *pdwOccupied, DWORD *pdwSize) { LIMITED_METHOD_CONTRACT; *pdwOccupied = 0; *pdwSize = 0; LookupMapBase * pMap = this; // Go through each linked block for (; pMap != NULL; pMap = pMap->pNext) { DWORD dwIterCount = pMap->dwCount; for (DWORD i = 0; i < dwIterCount; i++) { if (pMap->pTable[i] != NULL) (*pdwOccupied)++; } (*pdwSize) += dwIterCount; } } void Module::DebugLogRidMapOccupancy() { WRAPPER_NO_CONTRACT; #define COMPUTE_RID_MAP_OCCUPANCY(var_suffix, map) \ DWORD dwOccupied##var_suffix, dwSize##var_suffix, dwPercent##var_suffix; \ map.DebugGetRidMapOccupancy(&dwOccupied##var_suffix, &dwSize##var_suffix); \ dwPercent##var_suffix = dwOccupied##var_suffix ? ((dwOccupied##var_suffix * 100) / dwSize##var_suffix) : 0; COMPUTE_RID_MAP_OCCUPANCY(1, m_TypeDefToMethodTableMap); COMPUTE_RID_MAP_OCCUPANCY(2, m_TypeRefToMethodTableMap); COMPUTE_RID_MAP_OCCUPANCY(3, m_MethodDefToDescMap); COMPUTE_RID_MAP_OCCUPANCY(4, m_FieldDefToDescMap); COMPUTE_RID_MAP_OCCUPANCY(5, m_GenericParamToDescMap); COMPUTE_RID_MAP_OCCUPANCY(6, m_GenericTypeDefToCanonMethodTableMap); COMPUTE_RID_MAP_OCCUPANCY(7, m_FileReferencesMap); COMPUTE_RID_MAP_OCCUPANCY(8, m_ManifestModuleReferencesMap); COMPUTE_RID_MAP_OCCUPANCY(9, m_MethodDefToPropertyInfoMap); LOG(( LF_EEMEM, INFO3, " Map occupancy:\n" " TypeDefToMethodTable map: %4d/%4d (%2d %%)\n" " TypeRefToMethodTable map: %4d/%4d (%2d %%)\n" " MethodDefToDesc map: %4d/%4d (%2d %%)\n" " FieldDefToDesc map: %4d/%4d (%2d %%)\n" " GenericParamToDesc map: %4d/%4d (%2d %%)\n" " GenericTypeDefToCanonMethodTable map: %4d/%4d (%2d %%)\n" " FileReferences map: %4d/%4d (%2d %%)\n" " AssemblyReferences map: %4d/%4d (%2d %%)\n" " MethodDefToPropInfo map: %4d/%4d (%2d %%)\n" , dwOccupied1, dwSize1, dwPercent1, dwOccupied2, dwSize2, dwPercent2, dwOccupied3, dwSize3, dwPercent3, dwOccupied4, dwSize4, dwPercent4, dwOccupied5, dwSize5, dwPercent5, dwOccupied6, dwSize6, dwPercent6, dwOccupied7, dwSize7, dwPercent7, dwOccupied8, dwSize8, dwPercent8, dwOccupied9, dwSize9, dwPercent9 )); #undef COMPUTE_RID_MAP_OCCUPANCY } #endif // _DEBUG // // FindMethod finds a MethodDesc for a global function methoddef or ref // MethodDesc *Module::FindMethodThrowing(mdToken pMethod) { CONTRACT (MethodDesc *) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END SigTypeContext typeContext; /* empty type context: methods will not be generic */ RETURN MemberLoader::GetMethodDescFromMemberDefOrRefOrSpec(this, pMethod, &typeContext, TRUE, /* strictMetadataChecks */ FALSE /* dont get code shared between generic instantiations */); } // // FindMethod finds a MethodDesc for a global function methoddef or ref // MethodDesc *Module::FindMethod(mdToken pMethod) { CONTRACT (MethodDesc *) { INSTANCE_CHECK; NOTHROW; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; MethodDesc *pMDRet = NULL; EX_TRY { pMDRet = FindMethodThrowing(pMethod); } EX_CATCH { #ifdef _DEBUG CONTRACT_VIOLATION(ThrowsViolation); char szMethodName [MAX_CLASSNAME_LENGTH]; CEEInfo::findNameOfToken(this, pMethod, szMethodName, ARRAY_SIZE(szMethodName)); // This used to be IJW, but changed to LW_INTEROP to reclaim a bit in our log facilities LOG((LF_INTEROP, LL_INFO10, "Failed to find Method: %s for Vtable Fixup\n", szMethodName)); #endif // _DEBUG } EX_END_CATCH(SwallowAllExceptions) RETURN pMDRet; } // // GetPropertyInfoForMethodDef wraps the metadata function of the same name, // first trying to use the information stored in m_MethodDefToPropertyInfoMap. // HRESULT Module::GetPropertyInfoForMethodDef(mdMethodDef md, mdProperty *ppd, LPCSTR *pName, ULONG *pSemantic) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; HRESULT hr; if ((m_dwPersistedFlags & COMPUTED_METHODDEF_TO_PROPERTYINFO_MAP) != 0) { SIZE_T value = m_MethodDefToPropertyInfoMap.GetElement(RidFromToken(md)); if (value == 0) { _ASSERTE(GetMDImport()->GetPropertyInfoForMethodDef(md, ppd, pName, pSemantic) == S_FALSE); return S_FALSE; } else { // Decode the value into semantic and mdProperty as described in PopulatePropertyInfoMap ULONG semantic = (value & 0xFF000000) >> 24; mdProperty prop = TokenFromRid(value & 0x00FFFFFF, mdtProperty); #ifdef _DEBUG mdProperty dbgPd; LPCSTR dbgName; ULONG dbgSemantic; _ASSERTE(GetMDImport()->GetPropertyInfoForMethodDef(md, &dbgPd, &dbgName, &dbgSemantic) == S_OK); #endif if (ppd != NULL) { *ppd = prop; _ASSERTE(*ppd == dbgPd); } if (pSemantic != NULL) { *pSemantic = semantic; _ASSERTE(*pSemantic == dbgSemantic); } if (pName != NULL) { IfFailRet(GetMDImport()->GetPropertyProps(prop, pName, NULL, NULL, NULL)); #ifdef _DEBUG HRESULT hr = GetMDImport()->GetPropertyProps(prop, pName, NULL, NULL, NULL); _ASSERTE(hr == S_OK); _ASSERTE(strcmp(*pName, dbgName) == 0); #endif } return S_OK; } } return GetMDImport()->GetPropertyInfoForMethodDef(md, ppd, pName, pSemantic); } // Return true if this module has any live (jitted) JMC functions. // If a module has no jitted JMC functions, then it's as if it's a // non-user module. bool Module::HasAnyJMCFunctions() { LIMITED_METHOD_CONTRACT; // If we have any live JMC funcs in us, then we're a JMC module. // We count JMC functions when we either explicitly toggle their status // or when we get the code:DebuggerMethodInfo for them (which happens in a jit-complete). // Since we don't get the jit-completes for ngen modules, we also check the module's // "default" status. This means we may err on the side of believing we have // JMC methods. return ((m_debuggerSpecificData.m_cTotalJMCFuncs > 0) || m_debuggerSpecificData.m_fDefaultJMCStatus); } // Alter our module's count of JMC functions. // Since these may be called on multiple threads (say 2 threads are jitting // methods within a module), make it thread safe. void Module::IncJMCFuncCount() { LIMITED_METHOD_CONTRACT; InterlockedIncrement(&m_debuggerSpecificData.m_cTotalJMCFuncs); } void Module::DecJMCFuncCount() { LIMITED_METHOD_CONTRACT; InterlockedDecrement(&m_debuggerSpecificData.m_cTotalJMCFuncs); } // code:DebuggerMethodInfo are lazily created. Let them lookup what the default is. bool Module::GetJMCStatus() { LIMITED_METHOD_CONTRACT; return m_debuggerSpecificData.m_fDefaultJMCStatus; } // Set the default JMC status of this module. void Module::SetJMCStatus(bool fStatus) { LIMITED_METHOD_CONTRACT; m_debuggerSpecificData.m_fDefaultJMCStatus = fStatus; } // Update the dynamic metadata if needed. Nop for non-dynamic modules void Module::UpdateDynamicMetadataIfNeeded() { CONTRACTL { NOTHROW; GC_TRIGGERS; } CONTRACTL_END; // Only need to serializing metadata for dynamic modules. For non-dynamic modules, metadata is already available. if (!IsReflection()) { return; } // Since serializing metadata to an auxillary buffer is only needed by the debugger, // we should only be doing this for modules that the debugger can see. if (!IsVisibleToDebugger()) { return; } HRESULT hr = S_OK; EX_TRY { GetReflectionModule()->CaptureModuleMetaDataToMemory(); } EX_CATCH_HRESULT(hr); // This Metadata buffer is only used for the debugger, so it's a non-fatal exception for regular CLR execution. // Just swallow it and keep going. However, with the exception of out-of-memory, we do expect it to // succeed, so assert on failures. if (hr != E_OUTOFMEMORY) { SIMPLIFYING_ASSUMPTION_SUCCEEDED(hr); } } #ifdef DEBUGGING_SUPPORTED #endif // DEBUGGING_SUPPORTED BOOL Module::NotifyDebuggerLoad(AppDomain *pDomain, DomainAssembly * pDomainAssembly, int flags, BOOL attaching) { WRAPPER_NO_CONTRACT; // We don't notify the debugger about modules that don't contain any code. if (!IsVisibleToDebugger()) return FALSE; // Always capture metadata, even if no debugger is attached. If a debugger later attaches, it will use // this data. { Module * pModule = pDomainAssembly->GetModule(); pModule->UpdateDynamicMetadataIfNeeded(); } // // Remaining work is only needed if a debugger is attached // if (!attaching && !pDomain->IsDebuggerAttached()) return FALSE; BOOL result = FALSE; if (flags & ATTACH_MODULE_LOAD) { g_pDebugInterface->LoadModule(this, m_pPEAssembly->GetPath(), m_pPEAssembly->GetPath().GetCount(), GetAssembly(), pDomain, pDomainAssembly, attaching); result = TRUE; } if (flags & ATTACH_CLASS_LOAD) { LookupMap<PTR_MethodTable>::Iterator typeDefIter(&m_TypeDefToMethodTableMap); while (typeDefIter.Next()) { MethodTable * pMT = typeDefIter.GetElement(); if (pMT != NULL && pMT->IsRestored()) { result = TypeHandle(pMT).NotifyDebuggerLoad(pDomain, attaching) || result; } } } return result; } void Module::NotifyDebuggerUnload(AppDomain *pDomain) { LIMITED_METHOD_CONTRACT; if (!pDomain->IsDebuggerAttached()) return; // We don't notify the debugger about modules that don't contain any code. if (!IsVisibleToDebugger()) return; LookupMap<PTR_MethodTable>::Iterator typeDefIter(&m_TypeDefToMethodTableMap); while (typeDefIter.Next()) { MethodTable * pMT = typeDefIter.GetElement(); if (pMT != NULL && pMT->IsRestored()) { TypeHandle(pMT).NotifyDebuggerUnload(pDomain); } } g_pDebugInterface->UnloadModule(this, pDomain); } using GetTokenForVTableEntry_t = mdToken(STDMETHODCALLTYPE*)(HMODULE module, BYTE**ppVTEntry); static HMODULE GetIJWHostForModule(Module* module) { #if !defined(TARGET_UNIX) PEDecoder* pe = module->GetPEAssembly()->GetLoadedLayout(); BYTE* baseAddress = (BYTE*)module->GetPEAssembly()->GetIJWBase(); IMAGE_IMPORT_DESCRIPTOR* importDescriptor = (IMAGE_IMPORT_DESCRIPTOR*)pe->GetDirectoryData(pe->GetDirectoryEntry(IMAGE_DIRECTORY_ENTRY_IMPORT)); if (importDescriptor == nullptr) { return nullptr; } for(; importDescriptor->Characteristics != 0; importDescriptor++) { IMAGE_THUNK_DATA* importNameTable = (IMAGE_THUNK_DATA*)pe->GetRvaData(importDescriptor->OriginalFirstThunk); IMAGE_THUNK_DATA* importAddressTable = (IMAGE_THUNK_DATA*)pe->GetRvaData(importDescriptor->FirstThunk); for (int thunkIndex = 0; importNameTable[thunkIndex].u1.AddressOfData != 0; thunkIndex++) { // The most significant bit will be set if the entry points to an ordinal. if ((importNameTable[thunkIndex].u1.Ordinal & (1LL << (sizeof(importNameTable[thunkIndex].u1.Ordinal) * CHAR_BIT - 1))) == 0) { IMAGE_IMPORT_BY_NAME* nameImport = (IMAGE_IMPORT_BY_NAME*)(baseAddress + importNameTable[thunkIndex].u1.AddressOfData); if (strcmp("_CorDllMain", nameImport->Name) == 0 #ifdef TARGET_X86 || strcmp("__CorDllMain@12", nameImport->Name) == 0 // The MSVC compiler can and will bind to the stdcall-decorated name of _CorDllMain if it exists, even if the _CorDllMain symbol also exists. #endif ) { HMODULE ijwHost; if (WszGetModuleHandleEx( GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, (LPCWSTR)importAddressTable[thunkIndex].u1.Function, &ijwHost)) { return ijwHost; } } } } } #endif return nullptr; } static GetTokenForVTableEntry_t GetTokenGetterFromHostModule(HMODULE ijwHost) { if (ijwHost != nullptr) { return (GetTokenForVTableEntry_t)GetProcAddress(ijwHost, "GetTokenForVTableEntry"); } return nullptr; } //================================================================================= mdToken GetTokenForVTableEntry(HINSTANCE hInst, BYTE **ppVTEntry) { CONTRACTL{ NOTHROW; } CONTRACTL_END; mdToken tok =(mdToken)(UINT_PTR)*ppVTEntry; _ASSERTE(TypeFromToken(tok) == mdtMethodDef || TypeFromToken(tok) == mdtMemberRef); return tok; } //================================================================================= void SetTargetForVTableEntry(HINSTANCE hInst, BYTE **ppVTEntry, BYTE *pTarget) { CONTRACTL{ THROWS; } CONTRACTL_END; DWORD oldProtect; if (!ClrVirtualProtect(ppVTEntry, sizeof(BYTE*), PAGE_READWRITE, &oldProtect)) { // This is very bad. We are not going to be able to update header. _ASSERTE(!"SetTargetForVTableEntry(): VirtualProtect() changing IJW thunk vtable to R/W failed.\n"); ThrowLastError(); } *ppVTEntry = pTarget; DWORD ignore; if (!ClrVirtualProtect(ppVTEntry, sizeof(BYTE*), oldProtect, &ignore)) { // This is not so bad, we're already done the update, we just didn't return the thunk table to read only _ASSERTE(!"SetTargetForVTableEntry(): VirtualProtect() changing IJW thunk vtable back to RO failed.\n"); } } //================================================================================= BYTE * GetTargetForVTableEntry(HINSTANCE hInst, BYTE **ppVTEntry) { CONTRACTL{ NOTHROW; } CONTRACTL_END; return *ppVTEntry; } //====================================================================================== // Fixup vtables stored in the header to contain pointers to method desc // prestubs rather than metadata method tokens. void Module::FixupVTables() { CONTRACTL{ INSTANCE_CHECK; STANDARD_VM_CHECK; } CONTRACTL_END; // If we've already fixed up, or this is not an IJW module, just return. // NOTE: This relies on ILOnly files not having fixups. If this changes, // we need to change this conditional. if (IsIJWFixedUp() || m_pPEAssembly->IsILOnly()) { return; } // Try getting a callback to the IJW host if it is loaded. // The IJW host substitutes in special shims in the vtfixup table // so if it is loaded, we need to query it for the tokens that were in the slots. // If it is not loaded, then we know that the vtfixup table entries are tokens, // so we can resolve them ourselves. GetTokenForVTableEntry_t GetTokenForVTableEntryCallback = GetTokenGetterFromHostModule(GetIJWHostForModule(this)); if (GetTokenForVTableEntryCallback == nullptr) { GetTokenForVTableEntryCallback = GetTokenForVTableEntry; } HINSTANCE hInstThis = GetPEAssembly()->GetIJWBase(); // Get vtable fixup data COUNT_T cFixupRecords; IMAGE_COR_VTABLEFIXUP *pFixupTable = m_pPEAssembly->GetVTableFixups(&cFixupRecords); // No records then return if (cFixupRecords == 0) { return; } // Now, we need to take a lock to serialize fixup. PEImage::IJWFixupData *pData = PEImage::GetIJWData(m_pPEAssembly->GetIJWBase()); // If it's already been fixed (in some other appdomain), record the fact and return if (pData->IsFixedUp()) { SetIsIJWFixedUp(); return; } ////////////////////////////////////////////////////// // // This is done in three stages: // 1. We enumerate the types we'll need to load // 2. We load the types // 3. We create and install the thunks // COUNT_T cVtableThunks = 0; struct MethodLoadData { mdToken token; MethodDesc *pMD; }; MethodLoadData *rgMethodsToLoad = NULL; COUNT_T cMethodsToLoad = 0; // // Stage 1 // // Each fixup entry describes a vtable, so iterate the vtables and sum their counts { DWORD iFixup; for (iFixup = 0; iFixup < cFixupRecords; iFixup++) cVtableThunks += pFixupTable[iFixup].Count; } ACQUIRE_STACKING_ALLOCATOR(pAlloc); // Allocate the working array of tokens. cMethodsToLoad = cVtableThunks; rgMethodsToLoad = new (pAlloc) MethodLoadData[cMethodsToLoad]; memset(rgMethodsToLoad, 0, cMethodsToLoad * sizeof(MethodLoadData)); // Now take the IJW module lock and get all the tokens { // Take the lock CrstHolder lockHolder(pData->GetLock()); // If someone has beaten us, just return if (pData->IsFixedUp()) { SetIsIJWFixedUp(); return; } COUNT_T iCurMethod = 0; if (cFixupRecords != 0) { for (COUNT_T iFixup = 0; iFixup < cFixupRecords; iFixup++) { // Vtables can be 32 or 64 bit. if ((pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED)) || (pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED | COR_VTABLE_FROM_UNMANAGED)) || (pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED | COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN))) { const BYTE** pPointers = (const BYTE **)m_pPEAssembly->GetVTable(pFixupTable[iFixup].RVA); for (int iMethod = 0; iMethod < pFixupTable[iFixup].Count; iMethod++) { if (pData->IsMethodFixedUp(iFixup, iMethod)) continue; mdToken mdTok = GetTokenForVTableEntryCallback(hInstThis, (BYTE**)(pPointers + iMethod)); CONSISTENCY_CHECK(mdTok != mdTokenNil); rgMethodsToLoad[iCurMethod++].token = mdTok; } } } } } // // Stage 2 - Load the types // { for (COUNT_T iCurMethod = 0; iCurMethod < cMethodsToLoad; iCurMethod++) { mdToken curTok = rgMethodsToLoad[iCurMethod].token; if (!GetMDImport()->IsValidToken(curTok)) { _ASSERTE(!"Invalid token in v-table fix-up table"); ThrowHR(COR_E_BADIMAGEFORMAT); } // Find the method desc MethodDesc *pMD; { CONTRACT_VIOLATION(LoadsTypeViolation); pMD = FindMethodThrowing(curTok); } CONSISTENCY_CHECK(CheckPointer(pMD)); rgMethodsToLoad[iCurMethod].pMD = pMD; } } // // Stage 3 - Create the thunk data // { // Take the lock CrstHolder lockHolder(pData->GetLock()); // If someone has beaten us, just return if (pData->IsFixedUp()) { SetIsIJWFixedUp(); return; } // This phase assumes there is only one AppDomain and that thunks // can all safely point directly to the method in the current AppDomain AppDomain *pAppDomain = GetAppDomain(); // Used to index into rgMethodsToLoad COUNT_T iCurMethod = 0; // Each fixup entry describes a vtable (each slot contains a metadata token // at this stage). DWORD iFixup; for (iFixup = 0; iFixup < cFixupRecords; iFixup++) cVtableThunks += pFixupTable[iFixup].Count; DWORD dwIndex = 0; DWORD dwThunkIndex = 0; // Now to fill in the thunk table. for (iFixup = 0; iFixup < cFixupRecords; iFixup++) { // Tables may contain zero fixups, in which case the RVA is null, which triggers an assert if (pFixupTable[iFixup].Count == 0) continue; const BYTE** pPointers = (const BYTE **) m_pPEAssembly->GetVTable(pFixupTable[iFixup].RVA); // Vtables can be 32 or 64 bit. if (pFixupTable[iFixup].Type == COR_VTABLE_PTRSIZED) { for (int iMethod = 0; iMethod < pFixupTable[iFixup].Count; iMethod++) { if (pData->IsMethodFixedUp(iFixup, iMethod)) continue; mdToken mdTok = rgMethodsToLoad[iCurMethod].token; MethodDesc *pMD = rgMethodsToLoad[iCurMethod].pMD; iCurMethod++; #ifdef _DEBUG if (pMD->IsNDirect()) { LOG((LF_INTEROP, LL_INFO10, "[0x%lx] <-- PINV thunk for \"%s\" (target = 0x%lx)\n", (size_t)&(pPointers[iMethod]), pMD->m_pszDebugMethodName, (size_t)(((NDirectMethodDesc*)pMD)->GetNDirectTarget()))); } #endif // _DEBUG CONSISTENCY_CHECK(dwThunkIndex < cVtableThunks); // Point the local vtable slot to the thunk we created SetTargetForVTableEntry(hInstThis, (BYTE **)&pPointers[iMethod], (BYTE *)pMD->GetMultiCallableAddrOfCode()); pData->MarkMethodFixedUp(iFixup, iMethod); dwThunkIndex++; } } else if (pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED | COR_VTABLE_FROM_UNMANAGED) || (pFixupTable[iFixup].Type == (COR_VTABLE_PTRSIZED | COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN))) { for (int iMethod = 0; iMethod < pFixupTable[iFixup].Count; iMethod++) { if (pData->IsMethodFixedUp(iFixup, iMethod)) continue; mdToken mdTok = rgMethodsToLoad[iCurMethod].token; MethodDesc *pMD = rgMethodsToLoad[iCurMethod].pMD; iCurMethod++; LOG((LF_INTEROP, LL_INFO10, "[0x%p] <-- VTable thunk for \"%s\" (pMD = 0x%p)\n", (UINT_PTR)&(pPointers[iMethod]), pMD->m_pszDebugMethodName, pMD)); UMEntryThunk *pUMEntryThunk = (UMEntryThunk*)(void*)(GetDllThunkHeap()->AllocAlignedMem(sizeof(UMEntryThunk), CODE_SIZE_ALIGN)); // UMEntryThunk contains code ExecutableWriterHolder<UMEntryThunk> uMEntryThunkWriterHolder(pUMEntryThunk, sizeof(UMEntryThunk)); FillMemory(uMEntryThunkWriterHolder.GetRW(), sizeof(UMEntryThunk), 0); UMThunkMarshInfo *pUMThunkMarshInfo = (UMThunkMarshInfo*)(void*)(GetThunkHeap()->AllocAlignedMem(sizeof(UMThunkMarshInfo), CODE_SIZE_ALIGN)); ExecutableWriterHolder<UMThunkMarshInfo> uMThunkMarshInfoWriterHolder(pUMThunkMarshInfo, sizeof(UMThunkMarshInfo)); FillMemory(uMThunkMarshInfoWriterHolder.GetRW(), sizeof(UMThunkMarshInfo), 0); uMThunkMarshInfoWriterHolder.GetRW()->LoadTimeInit(pMD); uMEntryThunkWriterHolder.GetRW()->LoadTimeInit(pUMEntryThunk, NULL, NULL, pUMThunkMarshInfo, pMD); SetTargetForVTableEntry(hInstThis, (BYTE **)&pPointers[iMethod], (BYTE *)pUMEntryThunk->GetCode()); pData->MarkMethodFixedUp(iFixup, iMethod); } } else if ((pFixupTable[iFixup].Type & COR_VTABLE_NOT_PTRSIZED) == COR_VTABLE_NOT_PTRSIZED) { // fixup type doesn't match the platform THROW_BAD_FORMAT(BFA_FIXUP_WRONG_PLATFORM, this); } else { _ASSERTE(!"Unknown vtable fixup type"); } } // Indicate that this module has been fixed before releasing the lock pData->SetIsFixedUp(); // On the data SetIsIJWFixedUp(); // On the module } // End of Stage 3 } // Self-initializing accessor for m_pThunkHeap LoaderHeap *Module::GetDllThunkHeap() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; return PEImage::GetDllThunkHeap(GetPEAssembly()->GetIJWBase()); } LoaderHeap *Module::GetThunkHeap() { CONTRACT(LoaderHeap *) { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END if (!m_pThunkHeap) { LoaderHeap *pNewHeap = new LoaderHeap(VIRTUAL_ALLOC_RESERVE_GRANULARITY, // DWORD dwReserveBlockSize 0, // DWORD dwCommitBlockSize ThunkHeapStubManager::g_pManager->GetRangeList(), TRUE); // BOOL fMakeExecutable if (FastInterlockCompareExchangePointer(&m_pThunkHeap, pNewHeap, 0) != 0) { delete pNewHeap; } } RETURN m_pThunkHeap; } Module *Module::GetModuleFromIndex(DWORD ix) { CONTRACT(Module*) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; if (IsReadyToRun()) { RETURN ZapSig::DecodeModuleFromIndex(this, ix); } else { mdAssemblyRef mdAssemblyRefToken = TokenFromRid(ix, mdtAssemblyRef); Assembly *pAssembly = this->LookupAssemblyRef(mdAssemblyRefToken); if (pAssembly) { RETURN pAssembly->GetModule(); } else { // GetModuleFromIndex failed RETURN NULL; } } } #endif // !DACCESS_COMPILE Module *Module::GetModuleFromIndexIfLoaded(DWORD ix) { CONTRACT(Module*) { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(IsReadyToRun()); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; #ifndef DACCESS_COMPILE RETURN ZapSig::DecodeModuleFromIndexIfLoaded(this, ix); #else // DACCESS_COMPILE DacNotImpl(); RETURN NULL; #endif // DACCESS_COMPILE } #ifndef DACCESS_COMPILE IMDInternalImport* Module::GetNativeAssemblyImport(BOOL loadAllowed) { CONTRACT(IMDInternalImport*) { INSTANCE_CHECK; if (loadAllowed) GC_TRIGGERS; else GC_NOTRIGGER; if (loadAllowed) THROWS; else NOTHROW; if (loadAllowed) INJECT_FAULT(COMPlusThrowOM()); else FORBID_FAULT; MODE_ANY; PRECONDITION(IsReadyToRun()); POSTCONDITION(loadAllowed ? CheckPointer(RETVAL) : CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; RETURN GetPEAssembly()->GetPEImage()->GetNativeMDImport(loadAllowed); } BYTE* Module::GetNativeFixupBlobData(RVA rva) { CONTRACT(BYTE*) { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; RETURN(BYTE*) GetReadyToRunImage()->GetRvaData(rva); } #endif // DACCESS_COMPILE #ifndef DACCESS_COMPILE //----------------------------------------------------------------------------- void Module::RunEagerFixups() { STANDARD_VM_CONTRACT; COUNT_T nSections; PTR_CORCOMPILE_IMPORT_SECTION pSections = GetImportSections(&nSections); if (nSections == 0) return; #ifdef _DEBUG // Loading types during eager fixup is not a tested scenario. Make bugs out of any attempts to do so in a // debug build. Use holder to recover properly in case of exception. class ForbidTypeLoadHolder { public: ForbidTypeLoadHolder() { BEGIN_FORBID_TYPELOAD(); } ~ForbidTypeLoadHolder() { END_FORBID_TYPELOAD(); } } forbidTypeLoad; #endif // TODO: Verify that eager fixup dependency graphs can contain no cycles OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOADED); NativeImage *compositeNativeImage = GetCompositeNativeImage(); if (compositeNativeImage != NULL) { // For composite images, multiple modules may request initializing eager fixups // from multiple threads so we need to lock their resolution. CrstHolder compositeEagerFixups(compositeNativeImage->EagerFixupsLock()); if (compositeNativeImage->EagerFixupsHaveRun()) { if (compositeNativeImage->ReadyToRunCodeDisabled()) GetReadyToRunInfo()->DisableAllR2RCode(); return; } RunEagerFixupsUnlocked(); if (GetReadyToRunInfo()->ReadyToRunCodeDisabled()) compositeNativeImage->DisableAllR2RCode(); compositeNativeImage->SetEagerFixupsHaveRun(); } else { // Per-module eager fixups don't need locking RunEagerFixupsUnlocked(); } } void Module::RunEagerFixupsUnlocked() { COUNT_T nSections; PTR_CORCOMPILE_IMPORT_SECTION pSections = GetImportSections(&nSections); PEImageLayout *pNativeImage = GetReadyToRunImage(); for (COUNT_T iSection = 0; iSection < nSections; iSection++) { PTR_CORCOMPILE_IMPORT_SECTION pSection = pSections + iSection; if ((pSection->Flags & CORCOMPILE_IMPORT_FLAGS_EAGER) == 0) continue; COUNT_T tableSize; TADDR tableBase = pNativeImage->GetDirectoryData(&pSection->Section, &tableSize); if (pSection->Signatures != NULL) { PTR_DWORD pSignatures = dac_cast<PTR_DWORD>(pNativeImage->GetRvaData(pSection->Signatures)); for (SIZE_T * fixupCell = (SIZE_T *)tableBase; fixupCell < (SIZE_T *)(tableBase + tableSize); fixupCell++) { SIZE_T fixupIndex = fixupCell - (SIZE_T *)tableBase; if (!LoadDynamicInfoEntry(this, pSignatures[fixupIndex], fixupCell)) { if (IsReadyToRun()) { GetReadyToRunInfo()->DisableAllR2RCode(); } else { _ASSERTE(!"LoadDynamicInfoEntry failed"); ThrowHR(COR_E_BADIMAGEFORMAT); } } else { _ASSERTE(*fixupCell != NULL); } } } else { for (SIZE_T * fixupCell = (SIZE_T *)tableBase; fixupCell < (SIZE_T *)(tableBase + tableSize); fixupCell++) { // Ensure that the compiler won't fetch the value twice SIZE_T fixup = VolatileLoadWithoutBarrier(fixupCell); // This method may execute multiple times in multi-domain scenarios. Check that the fixup has not been // fixed up yet. if (CORCOMPILE_IS_FIXUP_TAGGED(fixup, pSection)) { if (!LoadDynamicInfoEntry(this, (RVA)CORCOMPILE_UNTAG_TOKEN(fixup), fixupCell)) { if (IsReadyToRun()) { GetReadyToRunInfo()->DisableAllR2RCode(); } else { _ASSERTE(!"LoadDynamicInfoEntry failed"); ThrowHR(COR_E_BADIMAGEFORMAT); } } _ASSERTE(!CORCOMPILE_IS_FIXUP_TAGGED(*fixupCell, pSection)); } } } } TADDR base = dac_cast<TADDR>(pNativeImage->GetBase()); ExecutionManager::AddCodeRange( base, base + (TADDR)pNativeImage->GetVirtualSize(), ExecutionManager::GetReadyToRunJitManager(), RangeSection::RANGE_SECTION_READYTORUN, this /* pHeapListOrZapModule */); } #endif // !DACCESS_COMPILE #ifndef DACCESS_COMPILE //----------------------------------------------------------------------------- BOOL Module::FixupNativeEntry(CORCOMPILE_IMPORT_SECTION* pSection, SIZE_T fixupIndex, SIZE_T* fixupCell, BOOL mayUsePrecompiledNDirectMethods) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(fixupCell)); } CONTRACTL_END; // Ensure that the compiler won't fetch the value twice SIZE_T fixup = VolatileLoadWithoutBarrier(fixupCell); if (pSection->Signatures != NULL) { if (fixup == NULL) { PTR_DWORD pSignatures = dac_cast<PTR_DWORD>(GetReadyToRunImage()->GetRvaData(pSection->Signatures)); if (!LoadDynamicInfoEntry(this, pSignatures[fixupIndex], fixupCell, mayUsePrecompiledNDirectMethods)) return FALSE; _ASSERTE(*fixupCell != NULL); } } else { if (CORCOMPILE_IS_FIXUP_TAGGED(fixup, pSection)) { // Fixup has not been fixed up yet if (!LoadDynamicInfoEntry(this, (RVA)CORCOMPILE_UNTAG_TOKEN(fixup), fixupCell, mayUsePrecompiledNDirectMethods)) return FALSE; _ASSERTE(!CORCOMPILE_IS_FIXUP_TAGGED(*fixupCell, pSection)); } else { // // Handle tables are special. We may need to restore static handle or previous // attempts to load handle could have been partial. // if (pSection->Type == CORCOMPILE_IMPORT_TYPE_TYPE_HANDLE) { TypeHandle::FromPtr((void*)fixup).CheckRestore(); } else if (pSection->Type == CORCOMPILE_IMPORT_TYPE_METHOD_HANDLE) { ((MethodDesc*)(fixup))->CheckRestore(); } } } return TRUE; } // // Profile data management // ICorJitInfo::BlockCounts * Module::AllocateMethodBlockCounts(mdToken _token, DWORD _count, DWORD _ILSize) { CONTRACT (ICorJitInfo::BlockCounts*) { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL;); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; _ASSERTE(_ILSize != 0); DWORD listSize = sizeof(CORCOMPILE_METHOD_PROFILE_LIST); DWORD headerSize = sizeof(CORBBTPROF_METHOD_HEADER); DWORD blockSize = _count * sizeof(CORBBTPROF_BLOCK_DATA); DWORD totalSize = listSize + headerSize + blockSize; BYTE * memory = (BYTE *) (void *) this->m_pAssembly->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(totalSize)); CORCOMPILE_METHOD_PROFILE_LIST * methodProfileList = (CORCOMPILE_METHOD_PROFILE_LIST *) (memory + 0); CORBBTPROF_METHOD_HEADER * methodProfileData = (CORBBTPROF_METHOD_HEADER *) (memory + listSize); // Note: Memory allocated on the LowFrequencyHeap is zero filled methodProfileData->size = headerSize + blockSize; methodProfileData->method.token = _token; methodProfileData->method.ILSize = _ILSize; methodProfileData->method.cBlock = _count; _ASSERTE(methodProfileData->size == methodProfileData->Size()); // Link it to the per module list of profile data buffers methodProfileList->next = m_methodProfileList; m_methodProfileList = methodProfileList; RETURN ((ICorJitInfo::BlockCounts *) &methodProfileData->method.block[0]); } HANDLE Module::OpenMethodProfileDataLogFile(GUID mvid) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; HANDLE profileDataFile = INVALID_HANDLE_VALUE; SString path; LPCWSTR assemblyPath = m_pPEAssembly->GetPath(); LPCWSTR ibcDir = g_pConfig->GetZapBBInstrDir(); // should we put the ibc data into a particular directory? if (ibcDir == 0) { path.Set(assemblyPath); // no, then put it beside the IL dll } else { LPCWSTR assemblyFileName = wcsrchr(assemblyPath, DIRECTORY_SEPARATOR_CHAR_W); if (assemblyFileName) assemblyFileName++; // skip past the \ char else assemblyFileName = assemblyPath; path.Set(ibcDir); // yes, put it in the directory, named with the assembly name. path.Append(DIRECTORY_SEPARATOR_CHAR_W); path.Append(assemblyFileName); } SString::Iterator ext = path.End(); // remove the extension if (path.FindBack(ext, '.')) path.Truncate(ext); path.Append(W(".ibc")); // replace with .ibc extension profileDataFile = WszCreateFile(path, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN, NULL); if (profileDataFile == INVALID_HANDLE_VALUE) COMPlusThrowWin32(); DWORD count; CORBBTPROF_FILE_HEADER fileHeader; SetFilePointer(profileDataFile, 0, NULL, FILE_BEGIN); BOOL result = ReadFile(profileDataFile, &fileHeader, sizeof(fileHeader), &count, NULL); if (result && (count == sizeof(fileHeader)) && (fileHeader.HeaderSize == sizeof(CORBBTPROF_FILE_HEADER)) && (fileHeader.Magic == CORBBTPROF_MAGIC) && (fileHeader.Version == CORBBTPROF_CURRENT_VERSION) && (fileHeader.MVID == mvid)) { // // The existing file was from the same assembly version - just append to it. // SetFilePointer(profileDataFile, 0, NULL, FILE_END); } else { // // Either this is a new file, or it's from a previous version. Replace the contents. // SetFilePointer(profileDataFile, 0, NULL, FILE_BEGIN); } return profileDataFile; } // Note that this method cleans up the profile buffers, so it's crucial that // no managed code in the module is allowed to run once this method has // been called! class ProfileMap { public: SIZE_T getCurrentOffset() {WRAPPER_NO_CONTRACT; return buffer.Size();} void * getOffsetPtr(SIZE_T offset) { LIMITED_METHOD_CONTRACT; _ASSERTE(offset <= buffer.Size()); return ((void *) (((char *) buffer.Ptr()) + offset)); } void *Allocate(SIZE_T size) { CONTRACT(void *) { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL;); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; SIZE_T oldSize = buffer.Size(); buffer.ReSizeThrows(oldSize + size); RETURN getOffsetPtr(oldSize); } private: CQuickBytes buffer; }; class ProfileEmitter { public: ProfileEmitter() { LIMITED_METHOD_CONTRACT; pSectionList = NULL; } ~ProfileEmitter() { WRAPPER_NO_CONTRACT; while (pSectionList) { SectionList *temp = pSectionList->next; delete pSectionList; pSectionList = temp; } } ProfileMap *EmitNewSection(SectionFormat format) { WRAPPER_NO_CONTRACT; SectionList *s = new SectionList(); s->format = format; s->next = pSectionList; pSectionList = s; return &s->profileMap; } // // Serialize the profile sections into pMap // void Serialize(ProfileMap *profileMap, GUID mvid) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; // // Allocate the file header // { CORBBTPROF_FILE_HEADER *fileHeader; fileHeader = (CORBBTPROF_FILE_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_FILE_HEADER)); fileHeader->HeaderSize = sizeof(CORBBTPROF_FILE_HEADER); fileHeader->Magic = CORBBTPROF_MAGIC; fileHeader->Version = CORBBTPROF_CURRENT_VERSION; fileHeader->MVID = mvid; } // // Count the number of sections // ULONG32 numSections = 0; for (SectionList *p = pSectionList; p; p = p->next) { numSections++; } // // Allocate the section table // SIZE_T tableEntryOffset; { CORBBTPROF_SECTION_TABLE_HEADER *tableHeader; tableHeader = (CORBBTPROF_SECTION_TABLE_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_SECTION_TABLE_HEADER)); tableHeader->NumEntries = numSections; tableEntryOffset = profileMap->getCurrentOffset(); CORBBTPROF_SECTION_TABLE_ENTRY *tableEntry; tableEntry = (CORBBTPROF_SECTION_TABLE_ENTRY *) profileMap->Allocate(sizeof(CORBBTPROF_SECTION_TABLE_ENTRY) * numSections); } // // Allocate the data sections // { ULONG secCount = 0; for (SectionList *pSec = pSectionList; pSec; pSec = pSec->next, secCount++) { SIZE_T offset = profileMap->getCurrentOffset(); _ASSERTE((offset & 0x3) == 0); _ASSERTE(offset <= MAXDWORD); SIZE_T actualSize = pSec->profileMap.getCurrentOffset(); SIZE_T alignUpSize = AlignUp(actualSize, sizeof(DWORD)); _ASSERTE(alignUpSize <= MAXDWORD); profileMap->Allocate(alignUpSize); memcpy(profileMap->getOffsetPtr(offset), pSec->profileMap.getOffsetPtr(0), actualSize); if (alignUpSize > actualSize) { memset(((BYTE*)profileMap->getOffsetPtr(offset))+actualSize, 0, (alignUpSize - actualSize)); } CORBBTPROF_SECTION_TABLE_ENTRY *tableEntry; tableEntry = (CORBBTPROF_SECTION_TABLE_ENTRY *) profileMap->getOffsetPtr(tableEntryOffset); tableEntry += secCount; tableEntry->FormatID = pSec->format; tableEntry->Data.Offset = (DWORD)offset; tableEntry->Data.Size = (DWORD)alignUpSize; } } // // Allocate the end token marker // { ULONG *endToken; endToken = (ULONG *) profileMap->Allocate(sizeof(ULONG)); *endToken = CORBBTPROF_END_TOKEN; } } private: struct SectionList { SectionFormat format; ProfileMap profileMap; SectionList *next; }; SectionList * pSectionList; }; /*static*/ idTypeSpec TypeSpecBlobEntry::s_lastTypeSpecToken = idTypeSpecNil; /*static*/ idMethodSpec MethodSpecBlobEntry::s_lastMethodSpecToken = idMethodSpecNil; /*static*/ idExternalNamespace ExternalNamespaceBlobEntry::s_lastExternalNamespaceToken = idExternalNamespaceNil; /*static*/ idExternalType ExternalTypeBlobEntry::s_lastExternalTypeToken = idExternalTypeNil; /*static*/ idExternalSignature ExternalSignatureBlobEntry::s_lastExternalSignatureToken = idExternalSignatureNil; /*static*/ idExternalMethod ExternalMethodBlobEntry::s_lastExternalMethodToken = idExternalMethodNil; inline static size_t HashCombine(size_t h1, size_t h2) { LIMITED_METHOD_CONTRACT; size_t result = (h1 * 129) ^ h2; return result; } bool TypeSpecBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const TypeSpecBlobEntry * other2 = static_cast<const TypeSpecBlobEntry *>(other); if (this->cbSig() != other2->cbSig()) return false; PCCOR_SIGNATURE p1 = this->pSig(); PCCOR_SIGNATURE p2 = other2->pSig(); for (DWORD i=0; (i < this->cbSig()); i++) if (p1[i] != p2[i]) return false; return true; } size_t TypeSpecBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); PCCOR_SIGNATURE p1 = pSig(); for (DWORD i=0; (i < cbSig()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } TypeSpecBlobEntry::TypeSpecBlobEntry(DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(_cbSig > 0); PRECONDITION(CheckPointer(_pSig)); } CONTRACTL_END; m_token = idTypeSpecNil; m_flags = 0; m_cbSig = 0; COR_SIGNATURE * pNewSig = (COR_SIGNATURE *) new (nothrow) BYTE[_cbSig]; if (pNewSig != NULL) { m_flags = 0; m_cbSig = _cbSig; memcpy(pNewSig, _pSig, _cbSig); } m_pSig = const_cast<PCCOR_SIGNATURE>(pNewSig); } /* static */ const TypeSpecBlobEntry * TypeSpecBlobEntry::FindOrAdd(PTR_Module pModule, DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_cbSig == 0) || (_pSig == NULL)) return NULL; TypeSpecBlobEntry sEntry(_cbSig, _pSig); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new type spec profiling blob entry // TypeSpecBlobEntry * newEntry = new (nothrow) TypeSpecBlobEntry(_cbSig, _pSig); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc type spec token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the type spec entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ParamTypeSpec); return static_cast<const TypeSpecBlobEntry *>(pEntry); } bool MethodSpecBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const MethodSpecBlobEntry * other2 = static_cast<const MethodSpecBlobEntry *>(other); if (this->cbSig() != other2->cbSig()) return false; PCCOR_SIGNATURE p1 = this->pSig(); PCCOR_SIGNATURE p2 = other2->pSig(); for (DWORD i=0; (i < this->cbSig()); i++) if (p1[i] != p2[i]) return false; return true; } size_t MethodSpecBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); PCCOR_SIGNATURE p1 = pSig(); for (DWORD i=0; (i < cbSig()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } MethodSpecBlobEntry::MethodSpecBlobEntry(DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(_cbSig > 0); PRECONDITION(CheckPointer(_pSig)); } CONTRACTL_END; m_token = idMethodSpecNil; m_flags = 0; m_cbSig = 0; COR_SIGNATURE * pNewSig = (COR_SIGNATURE *) new (nothrow) BYTE[_cbSig]; if (pNewSig != NULL) { m_flags = 0; m_cbSig = _cbSig; memcpy(pNewSig, _pSig, _cbSig); } m_pSig = const_cast<PCCOR_SIGNATURE>(pNewSig); } /* static */ const MethodSpecBlobEntry * MethodSpecBlobEntry::FindOrAdd(PTR_Module pModule, DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_cbSig == 0) || (_pSig == NULL)) return NULL; MethodSpecBlobEntry sEntry(_cbSig, _pSig); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new method spec profiling blob entry // MethodSpecBlobEntry * newEntry = new (nothrow) MethodSpecBlobEntry(_cbSig, _pSig); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc method spec token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the method spec entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ParamMethodSpec); return static_cast<const MethodSpecBlobEntry *>(pEntry); } bool ExternalNamespaceBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const ExternalNamespaceBlobEntry * other2 = static_cast<const ExternalNamespaceBlobEntry *>(other); if (this->cbName() != other2->cbName()) return false; LPCSTR p1 = this->pName(); LPCSTR p2 = other2->pName(); for (DWORD i=0; (i < this->cbName()); i++) if (p1[i] != p2[i]) return false; return true; } size_t ExternalNamespaceBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); LPCSTR p1 = pName(); for (DWORD i=0; (i < cbName()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } ExternalNamespaceBlobEntry::ExternalNamespaceBlobEntry(LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(CheckPointer(_pName)); } CONTRACTL_END; m_token = idExternalNamespaceNil; m_cbName = 0; m_pName = NULL; DWORD _cbName = (DWORD) strlen(_pName) + 1; LPSTR * pName = (LPSTR *) new (nothrow) CHAR[_cbName]; if (pName != NULL) { m_cbName = _cbName; memcpy(pName, _pName, _cbName); m_pName = (LPCSTR) pName; } } /* static */ const ExternalNamespaceBlobEntry * ExternalNamespaceBlobEntry::FindOrAdd(PTR_Module pModule, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_pName == NULL) || (::strlen(_pName) == 0)) return NULL; ExternalNamespaceBlobEntry sEntry(_pName); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new external namespace blob entry // ExternalNamespaceBlobEntry * newEntry = new (nothrow) ExternalNamespaceBlobEntry(_pName); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc external namespace token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the external namespace entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ExternalNamespaceDef); return static_cast<const ExternalNamespaceBlobEntry *>(pEntry); } bool ExternalTypeBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const ExternalTypeBlobEntry * other2 = static_cast<const ExternalTypeBlobEntry *>(other); if (this->assemblyRef() != other2->assemblyRef()) return false; if (this->nestedClass() != other2->nestedClass()) return false; if (this->nameSpace() != other2->nameSpace()) return false; if (this->cbName() != other2->cbName()) return false; LPCSTR p1 = this->pName(); LPCSTR p2 = other2->pName(); for (DWORD i=0; (i < this->cbName()); i++) if (p1[i] != p2[i]) return false; return true; } size_t ExternalTypeBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); hashValue = HashCombine(hashValue, assemblyRef()); hashValue = HashCombine(hashValue, nestedClass()); hashValue = HashCombine(hashValue, nameSpace()); LPCSTR p1 = pName(); for (DWORD i=0; (i < cbName()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } ExternalTypeBlobEntry::ExternalTypeBlobEntry(mdToken _assemblyRef, mdToken _nestedClass, mdToken _nameSpace, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(CheckPointer(_pName)); } CONTRACTL_END; m_token = idExternalTypeNil; m_assemblyRef = mdAssemblyRefNil; m_nestedClass = idExternalTypeNil; m_nameSpace = idExternalNamespaceNil; m_cbName = 0; m_pName = NULL; DWORD _cbName = (DWORD) strlen(_pName) + 1; LPSTR * pName = (LPSTR *) new (nothrow) CHAR[_cbName]; if (pName != NULL) { m_assemblyRef = _assemblyRef; m_nestedClass = _nestedClass; m_nameSpace = _nameSpace; m_cbName = _cbName; memcpy(pName, _pName, _cbName); m_pName = (LPCSTR) pName; } } /* static */ const ExternalTypeBlobEntry * ExternalTypeBlobEntry::FindOrAdd(PTR_Module pModule, mdToken _assemblyRef, mdToken _nestedClass, mdToken _nameSpace, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_pName == NULL) || (::strlen(_pName) == 0)) return NULL; ExternalTypeBlobEntry sEntry(_assemblyRef, _nestedClass, _nameSpace, _pName); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new external type blob entry // ExternalTypeBlobEntry * newEntry = new (nothrow) ExternalTypeBlobEntry(_assemblyRef, _nestedClass, _nameSpace, _pName); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc external type token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the external type entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ExternalTypeDef); return static_cast<const ExternalTypeBlobEntry *>(pEntry); } bool ExternalSignatureBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const ExternalSignatureBlobEntry * other2 = static_cast<const ExternalSignatureBlobEntry *>(other); if (this->cbSig() != other2->cbSig()) return false; PCCOR_SIGNATURE p1 = this->pSig(); PCCOR_SIGNATURE p2 = other2->pSig(); for (DWORD i=0; (i < this->cbSig()); i++) if (p1[i] != p2[i]) return false; return true; } size_t ExternalSignatureBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); hashValue = HashCombine(hashValue, cbSig()); PCCOR_SIGNATURE p1 = pSig(); for (DWORD i=0; (i < cbSig()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } ExternalSignatureBlobEntry::ExternalSignatureBlobEntry(DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(_cbSig > 0); PRECONDITION(CheckPointer(_pSig)); } CONTRACTL_END; m_token = idExternalSignatureNil; m_cbSig = 0; COR_SIGNATURE * pNewSig = (COR_SIGNATURE *) new (nothrow) BYTE[_cbSig]; if (pNewSig != NULL) { m_cbSig = _cbSig; memcpy(pNewSig, _pSig, _cbSig); } m_pSig = const_cast<PCCOR_SIGNATURE>(pNewSig); } /* static */ const ExternalSignatureBlobEntry * ExternalSignatureBlobEntry::FindOrAdd(PTR_Module pModule, DWORD _cbSig, PCCOR_SIGNATURE _pSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; } CONTRACTL_END; if ((_cbSig == 0) || (_pSig == NULL)) return NULL; ExternalSignatureBlobEntry sEntry(_cbSig, _pSig); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new external signature blob entry // ExternalSignatureBlobEntry * newEntry = new (nothrow) ExternalSignatureBlobEntry(_cbSig, _pSig); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc external signature token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the external signature entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ExternalSignatureDef); return static_cast<const ExternalSignatureBlobEntry *>(pEntry); } bool ExternalMethodBlobEntry::IsEqual(const ProfilingBlobEntry * other) const { WRAPPER_NO_CONTRACT; if (this->kind() != other->kind()) return false; const ExternalMethodBlobEntry * other2 = static_cast<const ExternalMethodBlobEntry *>(other); if (this->nestedClass() != other2->nestedClass()) return false; if (this->signature() != other2->signature()) return false; if (this->cbName() != other2->cbName()) return false; LPCSTR p1 = this->pName(); LPCSTR p2 = other2->pName(); for (DWORD i=0; (i < this->cbName()); i++) if (p1[i] != p2[i]) return false; return true; } size_t ExternalMethodBlobEntry::Hash() const { WRAPPER_NO_CONTRACT; size_t hashValue = HashInit(); hashValue = HashCombine(hashValue, nestedClass()); hashValue = HashCombine(hashValue, signature()); LPCSTR p1 = pName(); for (DWORD i=0; (i < cbName()); i++) hashValue = HashCombine(hashValue, p1[i]); return hashValue; } ExternalMethodBlobEntry::ExternalMethodBlobEntry(mdToken _nestedClass, mdToken _signature, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(CheckPointer(_pName)); } CONTRACTL_END; m_token = idExternalMethodNil; m_nestedClass = idExternalTypeNil; m_signature = idExternalSignatureNil; m_cbName = 0; DWORD _cbName = (DWORD) strlen(_pName) + 1; LPSTR * pName = (LPSTR *) new (nothrow) CHAR[_cbName]; if (pName != NULL) { m_nestedClass = _nestedClass; m_signature = _signature; m_cbName = _cbName; memcpy(pName, _pName, _cbName); m_pName = (LPSTR) pName; } } /* static */ const ExternalMethodBlobEntry * ExternalMethodBlobEntry::FindOrAdd( PTR_Module pModule, mdToken _nestedClass, mdToken _signature, LPCSTR _pName) { CONTRACTL { NOTHROW; GC_NOTRIGGER; PRECONDITION(CheckPointer(_pName)); } CONTRACTL_END; if ((_pName == NULL) || (::strlen(_pName) == 0)) return NULL; ExternalMethodBlobEntry sEntry(_nestedClass, _signature, _pName); const ProfilingBlobEntry * pEntry = pModule->GetProfilingBlobTable()->Lookup(&sEntry); if (pEntry == NULL) { // // Not Found, add a new external type blob entry // ExternalMethodBlobEntry * newEntry; newEntry = new (nothrow) ExternalMethodBlobEntry(_nestedClass, _signature, _pName); if (newEntry == NULL) return NULL; newEntry->newToken(); // Assign a new ibc external method token CONTRACT_VIOLATION(ThrowsViolation); pModule->GetProfilingBlobTable()->Add(newEntry); pEntry = newEntry; } // // Return the external method entry that we found or the new one that we just created // _ASSERTE(pEntry->kind() == ExternalMethodDef); return static_cast<const ExternalMethodBlobEntry *>(pEntry); } static bool GetBasename(LPCWSTR _src, _Out_writes_z_(dstlen) LPWSTR _dst, int dstlen) { LIMITED_METHOD_CONTRACT; LPCWSTR src = _src; LPWSTR dst = _dst; if ((src == NULL) || (dstlen <= 0)) return false; bool inQuotes = false; LPWSTR dstLast = dst + (dstlen - 1); while (dst < dstLast) { WCHAR wch = *src++; if (wch == W('"')) { inQuotes = !inQuotes; continue; } if (wch == 0) break; *dst++ = wch; if (!inQuotes) { if ((wch == W('\\')) || (wch == W(':'))) { dst = _dst; } else if (wch == W(' ')) { dst--; break; } } } *dst++ = 0; return true; } static LPCWSTR s_pCommandLine = NULL; // Retrieve the full command line for the current process. LPCWSTR GetManagedCommandLine() { LIMITED_METHOD_CONTRACT; return s_pCommandLine; } LPCWSTR GetCommandLineForDiagnostics() { // Get the managed command line. LPCWSTR pCmdLine = GetManagedCommandLine(); // Checkout https://github.com/dotnet/coreclr/pull/24433 for more information about this fall back. if (pCmdLine == nullptr) { // Use the result from GetCommandLineW() instead pCmdLine = GetCommandLineW(); } return pCmdLine; } void Append_Next_Item(LPWSTR* ppCursor, SIZE_T* pRemainingLen, LPCWSTR pItem, bool addSpace) { // read the writeback args and setup pCursor and remainingLen LPWSTR pCursor = *ppCursor; SIZE_T remainingLen = *pRemainingLen; // Calculate the length of pItem SIZE_T itemLen = wcslen(pItem); // Append pItem at pCursor wcscpy_s(pCursor, remainingLen, pItem); pCursor += itemLen; remainingLen -= itemLen; // Also append a space after pItem, if requested if (addSpace) { // Append a space at pCursor wcscpy_s(pCursor, remainingLen, W(" ")); pCursor += 1; remainingLen -= 1; } // writeback and update ppCursor and pRemainingLen *ppCursor = pCursor; *pRemainingLen = remainingLen; } void SaveManagedCommandLine(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR *argv) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; // Get the command line. LPCWSTR osCommandLine = GetCommandLineW(); #ifndef TARGET_UNIX // On Windows, osCommandLine contains the executable and all arguments. s_pCommandLine = osCommandLine; #else // On UNIX, the PAL doesn't have the command line arguments, so we must build the command line. // osCommandLine contains the full path to the executable. SIZE_T commandLineLen = (wcslen(osCommandLine) + 1); // We will append pwzAssemblyPath to the 'corerun' osCommandLine commandLineLen += (wcslen(pwzAssemblyPath) + 1); for (int i = 0; i < argc; i++) { commandLineLen += (wcslen(argv[i]) + 1); } commandLineLen++; // Add 1 for the null-termination // Allocate a new string for the command line. LPWSTR pNewCommandLine = new WCHAR[commandLineLen]; SIZE_T remainingLen = commandLineLen; LPWSTR pCursor = pNewCommandLine; Append_Next_Item(&pCursor, &remainingLen, osCommandLine, true); Append_Next_Item(&pCursor, &remainingLen, pwzAssemblyPath, (argc > 0)); for (int i = 0; i < argc; i++) { bool moreArgs = (i < (argc-1)); Append_Next_Item(&pCursor, &remainingLen, argv[i], moreArgs); } s_pCommandLine = pNewCommandLine; #endif } static void ProfileDataAllocateScenarioInfo(ProfileEmitter * pEmitter, LPCSTR scopeName, GUID* pMvid) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; ProfileMap *profileMap = pEmitter->EmitNewSection(ScenarioInfo); // // Allocate and initialize the scenario info section // { CORBBTPROF_SCENARIO_INFO_SECTION_HEADER *siHeader; siHeader = (CORBBTPROF_SCENARIO_INFO_SECTION_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_SCENARIO_INFO_SECTION_HEADER)); siHeader->NumScenarios = 1; siHeader->TotalNumRuns = 1; } // // Allocate and initialize the scenario header section // { // Get the managed command line. LPCWSTR pCmdLine = GetCommandLineForDiagnostics(); S_SIZE_T cCmdLine = S_SIZE_T(wcslen(pCmdLine)); cCmdLine += 1; if (cCmdLine.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } LPCWSTR pSystemInfo = W("<machine,OS>"); S_SIZE_T cSystemInfo = S_SIZE_T(wcslen(pSystemInfo)); cSystemInfo += 1; if (cSystemInfo.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } FILETIME runTime, unused1, unused2, unused3; GetProcessTimes(GetCurrentProcess(), &runTime, &unused1, &unused2, &unused3); WCHAR scenarioName[256]; GetBasename(pCmdLine, &scenarioName[0], 256); LPCWSTR pName = &scenarioName[0]; S_SIZE_T cName = S_SIZE_T(wcslen(pName)); cName += 1; if (cName.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } S_SIZE_T sizeHeader = S_SIZE_T(sizeof(CORBBTPROF_SCENARIO_HEADER)); sizeHeader += cName * S_SIZE_T(sizeof(WCHAR)); if (sizeHeader.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } S_SIZE_T sizeRun = S_SIZE_T(sizeof(CORBBTPROF_SCENARIO_RUN)); sizeRun += cCmdLine * S_SIZE_T(sizeof(WCHAR)); sizeRun += cSystemInfo * S_SIZE_T(sizeof(WCHAR)); if (sizeRun.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } // // Allocate the Scenario Header struct // SIZE_T sHeaderOffset; { CORBBTPROF_SCENARIO_HEADER *sHeader; S_SIZE_T sHeaderSize = sizeHeader + sizeRun; if (sHeaderSize.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } sHeaderOffset = profileMap->getCurrentOffset(); sHeader = (CORBBTPROF_SCENARIO_HEADER *) profileMap->Allocate(sizeHeader.Value()); _ASSERTE(sHeaderSize.Value() <= MAXDWORD); _ASSERTE(cName.Value() <= MAXDWORD); sHeader->size = (DWORD)sHeaderSize.Value(); sHeader->scenario.ordinal = 1; sHeader->scenario.mask = 1; sHeader->scenario.priority = 0; sHeader->scenario.numRuns = 1; sHeader->scenario.cName = (DWORD)cName.Value(); wcscpy_s(sHeader->scenario.name, cName.Value(), pName); } // // Allocate the Scenario Run struct // { CORBBTPROF_SCENARIO_RUN *sRun; sRun = (CORBBTPROF_SCENARIO_RUN *) profileMap->Allocate(sizeRun.Value()); _ASSERTE(cCmdLine.Value() <= MAXDWORD); _ASSERTE(cSystemInfo.Value() <= MAXDWORD); sRun->runTime = runTime; sRun->mvid = *pMvid; sRun->cCmdLine = (DWORD)cCmdLine.Value(); sRun->cSystemInfo = (DWORD)cSystemInfo.Value(); wcscpy_s(sRun->cmdLine, cCmdLine.Value(), pCmdLine); wcscpy_s(sRun->cmdLine+cCmdLine.Value(), cSystemInfo.Value(), pSystemInfo); } #ifdef _DEBUG { CORBBTPROF_SCENARIO_HEADER * sHeader; sHeader = (CORBBTPROF_SCENARIO_HEADER *) profileMap->getOffsetPtr(sHeaderOffset); _ASSERTE(sHeader->size == sHeader->Size()); } #endif } } static void ProfileDataAllocateMethodBlockCounts(ProfileEmitter * pEmitter, CORCOMPILE_METHOD_PROFILE_LIST * pMethodProfileListHead) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; ProfileMap *profileMap = pEmitter->EmitNewSection(MethodBlockCounts); // // Allocate and initialize the method block count section // SIZE_T mbcHeaderOffset; { CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER *mbcHeader; mbcHeaderOffset = profileMap->getCurrentOffset(); mbcHeader = (CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER)); mbcHeader->NumMethods = 0; // This gets filled in later } ULONG numMethods = 0; // We count the number of methods that were executed for (CORCOMPILE_METHOD_PROFILE_LIST * methodProfileList = pMethodProfileListHead; methodProfileList; methodProfileList = methodProfileList->next) { CORBBTPROF_METHOD_HEADER * pInfo = methodProfileList->GetInfo(); _ASSERTE(pInfo->size == pInfo->Size()); // // We set methodWasExecuted based upon the ExecutionCount of the very first block // bool methodWasExecuted = (pInfo->method.block[0].ExecutionCount > 0); // // If the method was not executed then we don't need to output this methods block counts // SIZE_T methodHeaderOffset; if (methodWasExecuted) { DWORD profileDataSize = pInfo->size; methodHeaderOffset = profileMap->getCurrentOffset(); CORBBTPROF_METHOD_HEADER *methodHeader = (CORBBTPROF_METHOD_HEADER *) profileMap->Allocate(profileDataSize); memcpy(methodHeader, pInfo, profileDataSize); numMethods++; } // Reset all of the basic block counts to zero for (UINT32 i=0; (i < pInfo->method.cBlock); i++ ) { // // If methodWasExecuted is false then every block's ExecutionCount should also be zero // _ASSERTE(methodWasExecuted || (pInfo->method.block[i].ExecutionCount == 0)); pInfo->method.block[i].ExecutionCount = 0; } } { CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER *mbcHeader; // We have to refetch the mbcHeader as calls to Allocate will resize and thus move the mbcHeader mbcHeader = (CORBBTPROF_METHOD_BLOCK_COUNTS_SECTION_HEADER *) profileMap->getOffsetPtr(mbcHeaderOffset); mbcHeader->NumMethods = numMethods; } } /*static*/ void Module::ProfileDataAllocateTokenLists(ProfileEmitter * pEmitter, Module::TokenProfileData* pTokenProfileData) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; // // Allocate and initialize the token list sections // if (pTokenProfileData) { for (int format = 0; format < (int)SectionFormatCount; format++) { CQuickArray<CORBBTPROF_TOKEN_INFO> *pTokenArray = &(pTokenProfileData->m_formats[format].tokenArray); if (pTokenArray->Size() != 0) { ProfileMap * profileMap = pEmitter->EmitNewSection((SectionFormat) format); CORBBTPROF_TOKEN_LIST_SECTION_HEADER *header; header = (CORBBTPROF_TOKEN_LIST_SECTION_HEADER *) profileMap->Allocate(sizeof(CORBBTPROF_TOKEN_LIST_SECTION_HEADER) + pTokenArray->Size() * sizeof(CORBBTPROF_TOKEN_INFO)); _ASSERTE(pTokenArray->Size() <= MAXDWORD); header->NumTokens = (DWORD)pTokenArray->Size(); memcpy( (header + 1), &((*pTokenArray)[0]), pTokenArray->Size() * sizeof(CORBBTPROF_TOKEN_INFO)); // Reset the collected tokens for (unsigned i = 0; i < CORBBTPROF_TOKEN_MAX_NUM_FLAGS; i++) { pTokenProfileData->m_formats[format].tokenBitmaps[i].Reset(); } pTokenProfileData->m_formats[format].tokenArray.ReSizeNoThrow(0); } } } } static void ProfileDataAllocateTokenDefinitions(ProfileEmitter * pEmitter, Module * pModule) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; // // Allocate and initialize the ibc token definition section (aka the Blob stream) // ProfileMap * profileMap = pEmitter->EmitNewSection(BlobStream); // Compute the size of the metadata section: // It is the sum of all of the Metadata Profile pool entries // plus the sum of all of the Param signature entries // size_t totalSize = 0; for (ProfilingBlobTable::Iterator cur = pModule->GetProfilingBlobTable()->Begin(), end = pModule->GetProfilingBlobTable()->End(); (cur != end); cur++) { const ProfilingBlobEntry * pEntry = *cur; size_t blobElementSize = pEntry->varSize(); switch (pEntry->kind()) { case ParamTypeSpec: case ParamMethodSpec: blobElementSize += sizeof(CORBBTPROF_BLOB_PARAM_SIG_ENTRY); break; case ExternalNamespaceDef: blobElementSize += sizeof(CORBBTPROF_BLOB_NAMESPACE_DEF_ENTRY); break; case ExternalTypeDef: blobElementSize += sizeof(CORBBTPROF_BLOB_TYPE_DEF_ENTRY); break; case ExternalSignatureDef: blobElementSize += sizeof(CORBBTPROF_BLOB_SIGNATURE_DEF_ENTRY); break; case ExternalMethodDef: blobElementSize += sizeof(CORBBTPROF_BLOB_METHOD_DEF_ENTRY); break; default: _ASSERTE(!"Unexpected blob type"); break; } totalSize += blobElementSize; } profileMap->Allocate(totalSize); size_t currentPos = 0; // Traverse each element and record it size_t blobElementSize = 0; for (ProfilingBlobTable::Iterator cur = pModule->GetProfilingBlobTable()->Begin(), end = pModule->GetProfilingBlobTable()->End(); (cur != end); cur++, currentPos += blobElementSize) { const ProfilingBlobEntry * pEntry = *cur; blobElementSize = pEntry->varSize(); void *profileData = profileMap->getOffsetPtr(currentPos); switch (pEntry->kind()) { case ParamTypeSpec: { CORBBTPROF_BLOB_PARAM_SIG_ENTRY * bProfileData = (CORBBTPROF_BLOB_PARAM_SIG_ENTRY*) profileData; const TypeSpecBlobEntry * typeSpecBlobEntry = static_cast<const TypeSpecBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_PARAM_SIG_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = typeSpecBlobEntry->kind(); bProfileData->blob.token = typeSpecBlobEntry->token(); _ASSERTE(typeSpecBlobEntry->cbSig() > 0); bProfileData->cSig = typeSpecBlobEntry->cbSig(); memcpy(&bProfileData->sig[0], typeSpecBlobEntry->pSig(), typeSpecBlobEntry->cbSig()); break; } case ParamMethodSpec: { CORBBTPROF_BLOB_PARAM_SIG_ENTRY * bProfileData = (CORBBTPROF_BLOB_PARAM_SIG_ENTRY*) profileData; const MethodSpecBlobEntry * methodSpecBlobEntry = static_cast<const MethodSpecBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_PARAM_SIG_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = methodSpecBlobEntry->kind(); bProfileData->blob.token = methodSpecBlobEntry->token(); _ASSERTE(methodSpecBlobEntry->cbSig() > 0); bProfileData->cSig = methodSpecBlobEntry->cbSig(); memcpy(&bProfileData->sig[0], methodSpecBlobEntry->pSig(), methodSpecBlobEntry->cbSig()); break; } case ExternalNamespaceDef: { CORBBTPROF_BLOB_NAMESPACE_DEF_ENTRY * bProfileData = (CORBBTPROF_BLOB_NAMESPACE_DEF_ENTRY*) profileData; const ExternalNamespaceBlobEntry * namespaceBlobEntry = static_cast<const ExternalNamespaceBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_NAMESPACE_DEF_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = namespaceBlobEntry->kind(); bProfileData->blob.token = namespaceBlobEntry->token(); _ASSERTE(namespaceBlobEntry->cbName() > 0); bProfileData->cName = namespaceBlobEntry->cbName(); memcpy(&bProfileData->name[0], namespaceBlobEntry->pName(), namespaceBlobEntry->cbName()); break; } case ExternalTypeDef: { CORBBTPROF_BLOB_TYPE_DEF_ENTRY * bProfileData = (CORBBTPROF_BLOB_TYPE_DEF_ENTRY*) profileData; const ExternalTypeBlobEntry * typeBlobEntry = static_cast<const ExternalTypeBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_TYPE_DEF_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = typeBlobEntry->kind(); bProfileData->blob.token = typeBlobEntry->token(); bProfileData->assemblyRefToken = typeBlobEntry->assemblyRef(); bProfileData->nestedClassToken = typeBlobEntry->nestedClass(); bProfileData->nameSpaceToken = typeBlobEntry->nameSpace(); _ASSERTE(typeBlobEntry->cbName() > 0); bProfileData->cName = typeBlobEntry->cbName(); memcpy(&bProfileData->name[0], typeBlobEntry->pName(), typeBlobEntry->cbName()); break; } case ExternalSignatureDef: { CORBBTPROF_BLOB_SIGNATURE_DEF_ENTRY * bProfileData = (CORBBTPROF_BLOB_SIGNATURE_DEF_ENTRY*) profileData; const ExternalSignatureBlobEntry * signatureBlobEntry = static_cast<const ExternalSignatureBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_SIGNATURE_DEF_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = signatureBlobEntry->kind(); bProfileData->blob.token = signatureBlobEntry->token(); _ASSERTE(signatureBlobEntry->cbSig() > 0); bProfileData->cSig = signatureBlobEntry->cbSig(); memcpy(&bProfileData->sig[0], signatureBlobEntry->pSig(), signatureBlobEntry->cbSig()); break; } case ExternalMethodDef: { CORBBTPROF_BLOB_METHOD_DEF_ENTRY * bProfileData = (CORBBTPROF_BLOB_METHOD_DEF_ENTRY*) profileData; const ExternalMethodBlobEntry * methodBlobEntry = static_cast<const ExternalMethodBlobEntry *>(pEntry); blobElementSize += sizeof(CORBBTPROF_BLOB_METHOD_DEF_ENTRY); bProfileData->blob.size = static_cast<DWORD>(blobElementSize); bProfileData->blob.type = methodBlobEntry->kind(); bProfileData->blob.token = methodBlobEntry->token(); bProfileData->nestedClassToken = methodBlobEntry->nestedClass(); bProfileData->signatureToken = methodBlobEntry->signature(); _ASSERTE(methodBlobEntry->cbName() > 0); bProfileData->cName = methodBlobEntry->cbName(); memcpy(&bProfileData->name[0], methodBlobEntry->pName(), methodBlobEntry->cbName()); break; } default: _ASSERTE(!"Unexpected blob type"); break; } } _ASSERTE(currentPos == totalSize); // Emit a terminating entry with type EndOfBlobStream to mark the end DWORD mdElementSize = sizeof(CORBBTPROF_BLOB_ENTRY); void *profileData = profileMap->Allocate(mdElementSize); memset(profileData, 0, mdElementSize); CORBBTPROF_BLOB_ENTRY* mdProfileData = (CORBBTPROF_BLOB_ENTRY*) profileData; mdProfileData->type = EndOfBlobStream; mdProfileData->size = sizeof(CORBBTPROF_BLOB_ENTRY); } // Responsible for writing out the profile data if the COMPlus_BBInstr // environment variable is set. This is called when the module is unloaded // (usually at shutdown). HRESULT Module::WriteMethodProfileDataLogFile(bool cleanup) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_TRIGGERS; MODE_ANY; INJECT_FAULT(return E_OUTOFMEMORY;); } CONTRACTL_END; HRESULT hr = S_OK; EX_TRY { if (GetAssembly()->IsInstrumented() && (m_pProfilingBlobTable != NULL) && (m_tokenProfileData != NULL)) { NewHolder<ProfileEmitter> pEmitter(new ProfileEmitter()); // Get this ahead of time - metadata access may be logged, which will // take the m_tokenProfileData->crst, which we take a couple lines below LPCSTR pszName; GUID mvid; IfFailThrow(GetMDImport()->GetScopeProps(&pszName, &mvid)); CrstHolder ch(&m_tokenProfileData->crst); // // Create the scenario info section // ProfileDataAllocateScenarioInfo(pEmitter, pszName, &mvid); // // Create the method block count section // ProfileDataAllocateMethodBlockCounts(pEmitter, m_methodProfileList); // // Create the token list sections // ProfileDataAllocateTokenLists(pEmitter, m_tokenProfileData); // // Create the ibc token definition section (aka the Blob stream) // ProfileDataAllocateTokenDefinitions(pEmitter, this); // // Now store the profile data in the ibc file // ProfileMap profileImage; pEmitter->Serialize(&profileImage, mvid); HandleHolder profileDataFile(OpenMethodProfileDataLogFile(mvid)); ULONG count; _ASSERTE(profileImage.getCurrentOffset() <= MAXDWORD); BOOL result = WriteFile(profileDataFile, profileImage.getOffsetPtr(0), (DWORD)profileImage.getCurrentOffset(), &count, NULL); if (!result || (count != profileImage.getCurrentOffset())) { DWORD lasterror = GetLastError(); _ASSERTE(!"Error writing ibc profile data to file"); hr = HRESULT_FROM_WIN32(lasterror); } } if (cleanup) { DeleteProfilingData(); } } EX_CATCH { hr = E_FAIL; } EX_END_CATCH(SwallowAllExceptions) return hr; } /* static */ void Module::WriteAllModuleProfileData(bool cleanup) { CONTRACTL { NOTHROW; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; // Iterate over all the app domains; for each one iterator over its // assemblies; for each one iterate over its modules. EX_TRY { AppDomainIterator appDomainIterator(FALSE); while(appDomainIterator.Next()) { AppDomain * appDomain = appDomainIterator.GetDomain(); AppDomain::AssemblyIterator assemblyIterator = appDomain->IterateAssembliesEx( (AssemblyIterationFlags)(kIncludeLoaded | kIncludeExecution)); CollectibleAssemblyHolder<DomainAssembly *> pDomainAssembly; while (assemblyIterator.Next(pDomainAssembly.This())) { pDomainAssembly->GetModule()->WriteMethodProfileDataLogFile(cleanup); } } } EX_CATCH { } EX_END_CATCH(SwallowAllExceptions); } PTR_ProfilingBlobTable Module::GetProfilingBlobTable() { LIMITED_METHOD_CONTRACT; return m_pProfilingBlobTable; } void Module::CreateProfilingData() { TokenProfileData *tpd = TokenProfileData::CreateNoThrow(); PVOID pv = InterlockedCompareExchangeT(&m_tokenProfileData, tpd, NULL); if (pv != NULL) { delete tpd; } PTR_ProfilingBlobTable ppbt = new (nothrow) ProfilingBlobTable(); if (ppbt != NULL) { pv = InterlockedCompareExchangeT(&m_pProfilingBlobTable, ppbt, NULL); if (pv != NULL) { delete ppbt; } } } void Module::DeleteProfilingData() { if (m_pProfilingBlobTable != NULL) { for (ProfilingBlobTable::Iterator cur = m_pProfilingBlobTable->Begin(), end = m_pProfilingBlobTable->End(); (cur != end); cur++) { const ProfilingBlobEntry * pCurrentEntry = *cur; delete pCurrentEntry; } delete m_pProfilingBlobTable; m_pProfilingBlobTable = NULL; } if (m_tokenProfileData != NULL) { delete m_tokenProfileData; m_tokenProfileData = NULL; } // the metadataProfileData is free'ed in destructor of the corresponding MetaDataTracker } void Module::SetIsIJWFixedUp() { LIMITED_METHOD_CONTRACT; FastInterlockOr(&m_dwTransientFlags, IS_IJW_FIXED_UP); } /* static */ Module::TokenProfileData *Module::TokenProfileData::CreateNoThrow(void) { STATIC_CONTRACT_NOTHROW; TokenProfileData *tpd = NULL; EX_TRY { // // This constructor calls crst.Init(), which may throw. So putting (nothrow) doesn't // do what we would want it to. Thus I wrap it here in a TRY/CATCH and revert to NULL // if it fails. // tpd = new TokenProfileData(); } EX_CATCH { tpd = NULL; } EX_END_CATCH(SwallowAllExceptions); return tpd; } #endif // !DACCESS_COMPILE #ifndef DACCESS_COMPILE void Module::SetBeingUnloaded() { LIMITED_METHOD_CONTRACT; FastInterlockOr((ULONG*)&m_dwTransientFlags, IS_BEING_UNLOADED); } #endif void Module::LogTokenAccess(mdToken token, SectionFormat format, ULONG flagnum) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(g_IBCLogger.InstrEnabled()); PRECONDITION(flagnum < CORBBTPROF_TOKEN_MAX_NUM_FLAGS); } CONTRACTL_END; #ifndef DACCESS_COMPILE // // If we are in ngen instrumentation mode, then we should record this token. // if (!m_nativeImageProfiling) return; if (flagnum >= CORBBTPROF_TOKEN_MAX_NUM_FLAGS) { return; } mdToken rid = RidFromToken(token); CorTokenType tkType = (CorTokenType) TypeFromToken(token); SectionFormat tkKind = (SectionFormat) (tkType >> 24); if ((rid == 0) && (tkKind < (SectionFormat) TBL_COUNT)) return; FAULT_NOT_FATAL(); _ASSERTE(TypeProfilingData == FirstTokenFlagSection + TBL_TypeDef); _ASSERTE(MethodProfilingData == FirstTokenFlagSection + TBL_Method); _ASSERTE(SectionFormatCount >= FirstTokenFlagSection + TBL_COUNT + 4); if (!m_tokenProfileData) { CreateProfilingData(); } if (!m_tokenProfileData) { return; } if (tkKind == (SectionFormat) (ibcTypeSpec >> 24)) tkKind = IbcTypeSpecSection; else if (tkKind == (SectionFormat) (ibcMethodSpec >> 24)) tkKind = IbcMethodSpecSection; _ASSERTE(tkKind >= 0); _ASSERTE(tkKind < SectionFormatCount); if (tkKind < 0 || tkKind >= SectionFormatCount) { return; } CQuickArray<CORBBTPROF_TOKEN_INFO> * pTokenArray = &m_tokenProfileData->m_formats[format].tokenArray; RidBitmap * pTokenBitmap = &m_tokenProfileData->m_formats[tkKind].tokenBitmaps[flagnum]; // Have we seen this token with this flag already? if (pTokenBitmap->IsTokenInBitmap(token)) { return; } // Insert the token to the bitmap if (FAILED(pTokenBitmap->InsertToken(token))) { return; } ULONG flag = 1 << flagnum; // [ToDo] Fix: this is a sequential search and can be very slow for (unsigned int i = 0; i < pTokenArray->Size(); i++) { if ((*pTokenArray)[i].token == token) { _ASSERTE(! ((*pTokenArray)[i].flags & flag)); (*pTokenArray)[i].flags |= flag; return; } } if (FAILED(pTokenArray->ReSizeNoThrow(pTokenArray->Size() + 1))) { return; } (*pTokenArray)[pTokenArray->Size() - 1].token = token; (*pTokenArray)[pTokenArray->Size() - 1].flags = flag; (*pTokenArray)[pTokenArray->Size() - 1].scenarios = 0; #endif // !DACCESS_COMPILE } void Module::LogTokenAccess(mdToken token, ULONG flagNum) { WRAPPER_NO_CONTRACT; SectionFormat format = (SectionFormat)((TypeFromToken(token)>>24) + FirstTokenFlagSection); if (FirstTokenFlagSection <= format && format < SectionFormatCount) { LogTokenAccess(token, format, flagNum); } } #ifndef DACCESS_COMPILE // // Encoding callbacks // /*static*/ DWORD Module::EncodeModuleHelper(void * pModuleContext, Module *pReferencedModule) { Module* pReferencingModule = (Module *) pModuleContext; _ASSERTE(pReferencingModule != pReferencedModule); Assembly *pReferencingAssembly = pReferencingModule->GetAssembly(); Assembly *pReferencedAssembly = pReferencedModule->GetAssembly(); _ASSERTE(pReferencingAssembly != pReferencedAssembly); if (pReferencedAssembly == pReferencingAssembly) { return 0; } mdAssemblyRef token = pReferencingModule->FindAssemblyRef(pReferencedAssembly); if (IsNilToken(token)) { return ENCODE_MODULE_FAILED; } return RidFromToken(token); } /*static*/ void Module::TokenDefinitionHelper(void* pModuleContext, Module *pReferencedModule, DWORD index, mdToken* pToken) { LIMITED_METHOD_CONTRACT; HRESULT hr; Module * pReferencingModule = (Module *) pModuleContext; mdAssemblyRef mdAssemblyRef = TokenFromRid(index, mdtAssemblyRef); IMDInternalImport * pImport = pReferencedModule->GetMDImport(); LPCUTF8 szName = NULL; if (TypeFromToken(*pToken) == mdtTypeDef) { // // Compute nested type (if any) // mdTypeDef mdEnclosingType = idExternalTypeNil; hr = pImport->GetNestedClassProps(*pToken, &mdEnclosingType); // If there's not enclosing type, then hr=CLDB_E_RECORD_NOTFOUND and mdEnclosingType is unchanged _ASSERTE((hr == S_OK) || (hr == CLDB_E_RECORD_NOTFOUND)); if (!IsNilToken(mdEnclosingType)) { _ASSERT(TypeFromToken(mdEnclosingType) == mdtTypeDef); TokenDefinitionHelper(pModuleContext, pReferencedModule, index, &mdEnclosingType); } _ASSERT(TypeFromToken(mdEnclosingType) == ibcExternalType); // // Compute type name and namespace. // LPCUTF8 szNamespace = NULL; hr = pImport->GetNameOfTypeDef(*pToken, &szName, &szNamespace); _ASSERTE(hr == S_OK); // // Transform namespace string into ibc external namespace token // idExternalNamespace idNamespace = idExternalNamespaceNil; if (szNamespace != NULL) { const ExternalNamespaceBlobEntry * pNamespaceEntry; pNamespaceEntry = ExternalNamespaceBlobEntry::FindOrAdd(pReferencingModule, szNamespace); if (pNamespaceEntry != NULL) { idNamespace = pNamespaceEntry->token(); } } _ASSERTE(TypeFromToken(idNamespace) == ibcExternalNamespace); // // Transform type name into ibc external type token // idExternalType idType = idExternalTypeNil; _ASSERTE(szName != NULL); const ExternalTypeBlobEntry * pTypeEntry = NULL; pTypeEntry = ExternalTypeBlobEntry::FindOrAdd(pReferencingModule, mdAssemblyRef, mdEnclosingType, idNamespace, szName); if (pTypeEntry != NULL) { idType = pTypeEntry->token(); } _ASSERTE(TypeFromToken(idType) == ibcExternalType); *pToken = idType; // Remap pToken to our idExternalType token } else if (TypeFromToken(*pToken) == mdtMethodDef) { // // Compute nested type (if any) // mdTypeDef mdEnclosingType = idExternalTypeNil; hr = pImport->GetParentToken(*pToken, &mdEnclosingType); _ASSERTE(!FAILED(hr)); if (!IsNilToken(mdEnclosingType)) { _ASSERT(TypeFromToken(mdEnclosingType) == mdtTypeDef); TokenDefinitionHelper(pModuleContext, pReferencedModule, index, &mdEnclosingType); } _ASSERT(TypeFromToken(mdEnclosingType) == ibcExternalType); // // Compute the method name and signature // PCCOR_SIGNATURE pSig = NULL; DWORD cbSig = 0; hr = pImport->GetNameAndSigOfMethodDef(*pToken, &pSig, &cbSig, &szName); _ASSERTE(hr == S_OK); // // Transform signature into ibc external signature token // idExternalSignature idSignature = idExternalSignatureNil; if (pSig != NULL) { const ExternalSignatureBlobEntry * pSignatureEntry; pSignatureEntry = ExternalSignatureBlobEntry::FindOrAdd(pReferencingModule, cbSig, pSig); if (pSignatureEntry != NULL) { idSignature = pSignatureEntry->token(); } } _ASSERTE(TypeFromToken(idSignature) == ibcExternalSignature); // // Transform method name into ibc external method token // idExternalMethod idMethod = idExternalMethodNil; _ASSERTE(szName != NULL); const ExternalMethodBlobEntry * pMethodEntry = NULL; pMethodEntry = ExternalMethodBlobEntry::FindOrAdd(pReferencingModule, mdEnclosingType, idSignature, szName); if (pMethodEntry != NULL) { idMethod = pMethodEntry->token(); } _ASSERTE(TypeFromToken(idMethod) == ibcExternalMethod); *pToken = idMethod; // Remap pToken to our idMethodSpec token } else { _ASSERTE(!"Unexpected token type"); } } idTypeSpec Module::LogInstantiatedType(TypeHandle typeHnd, ULONG flagNum) { CONTRACT(idTypeSpec) { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(g_IBCLogger.InstrEnabled()); PRECONDITION(!typeHnd.HasUnrestoredTypeKey()); // We want to report the type only in its own loader module as a type's // MethodTable can only live in its own loader module. // We can relax this if we allow a (duplicate) MethodTable to live // in any module (which might be needed for ngen of generics) } CONTRACT_END; idTypeSpec result = idTypeSpecNil; if (m_nativeImageProfiling) { CONTRACT_VIOLATION(ThrowsViolation|FaultViolation|GCViolation); SigBuilder sigBuilder; ZapSig zapSig(this, this, ZapSig::IbcTokens, Module::EncodeModuleHelper, Module::TokenDefinitionHelper); BOOL fSuccess = zapSig.GetSignatureForTypeHandle(typeHnd, &sigBuilder); // a return value of 0 indicates a failure to create the signature if (fSuccess) { DWORD cbSig; PCCOR_SIGNATURE pSig = (PCCOR_SIGNATURE)sigBuilder.GetSignature(&cbSig); ULONG flag = (1 << flagNum); TypeSpecBlobEntry * pEntry = const_cast<TypeSpecBlobEntry *>(TypeSpecBlobEntry::FindOrAdd(this, cbSig, pSig)); if (pEntry != NULL) { // Update the flags with any new bits pEntry->orFlag(flag); result = pEntry->token(); } } } _ASSERTE(TypeFromToken(result) == ibcTypeSpec); RETURN result; } idMethodSpec Module::LogInstantiatedMethod(const MethodDesc * md, ULONG flagNum) { CONTRACT(idMethodSpec) { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION( md != NULL ); } CONTRACT_END; idMethodSpec result = idMethodSpecNil; if (m_nativeImageProfiling) { CONTRACT_VIOLATION(ThrowsViolation|FaultViolation|GCViolation); if (!m_tokenProfileData) { CreateProfilingData(); } if (!m_tokenProfileData) { return idMethodSpecNil; } // get data SigBuilder sigBuilder; BOOL fSuccess; fSuccess = ZapSig::EncodeMethod(const_cast<MethodDesc *>(md), this, &sigBuilder, (LPVOID) this, (ENCODEMODULE_CALLBACK) Module::EncodeModuleHelper, (DEFINETOKEN_CALLBACK) Module::TokenDefinitionHelper); if (fSuccess) { DWORD dataSize; BYTE * pBlob = (BYTE *)sigBuilder.GetSignature(&dataSize); ULONG flag = (1 << flagNum); MethodSpecBlobEntry * pEntry = const_cast<MethodSpecBlobEntry *>(MethodSpecBlobEntry::FindOrAdd(this, dataSize, pBlob)); if (pEntry != NULL) { // Update the flags with any new bits pEntry->orFlag(flag); result = pEntry->token(); } } } _ASSERTE(TypeFromToken(result) == ibcMethodSpec); RETURN result; } #endif // DACCESS_COMPILE #ifndef DACCESS_COMPILE // =========================================================================== // ReflectionModule // =========================================================================== /* static */ ReflectionModule *ReflectionModule::Create(Assembly *pAssembly, PEAssembly *pPEAssembly, AllocMemTracker *pamTracker, LPCWSTR szName) { CONTRACT(ReflectionModule *) { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pAssembly)); PRECONDITION(CheckPointer(pPEAssembly)); PRECONDITION(pPEAssembly->IsDynamic()); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; // Hoist CONTRACT into separate routine because of EX incompatibility mdFile token; token = mdFileNil; // Initial memory block for Modules must be zero-initialized (to make it harder // to introduce Destruct crashes arising from OOM's during initialization.) void* pMemory = pamTracker->Track(pAssembly->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(ReflectionModule)))); ReflectionModuleHolder pModule(new (pMemory) ReflectionModule(pAssembly, token, pPEAssembly)); pModule->DoInit(pamTracker, szName); RETURN pModule.Extract(); } // Module initialization occurs in two phases: the constructor phase and the Initialize phase. // // The constructor phase initializes just enough so that Destruct() can be safely called. // It cannot throw or fail. // ReflectionModule::ReflectionModule(Assembly *pAssembly, mdFile token, PEAssembly *pPEAssembly) : Module(pAssembly, token, pPEAssembly) { CONTRACTL { NOTHROW; GC_TRIGGERS; FORBID_FAULT; } CONTRACTL_END m_pInMemoryWriter = NULL; m_sdataSection = NULL; m_pCeeFileGen = NULL; m_pDynamicMetadata = NULL; } HRESULT STDMETHODCALLTYPE CreateICeeGen(REFIID riid, void **pCeeGen); // Module initialization occurs in two phases: the constructor phase and the Initialize phase. // // The Initialize() phase completes the initialization after the constructor has run. // It can throw exceptions but whether it throws or succeeds, it must leave the Module // in a state where Destruct() can be safely called. // void ReflectionModule::Initialize(AllocMemTracker *pamTracker, LPCWSTR szName) { CONTRACTL { INSTANCE_CHECK; STANDARD_VM_CHECK; PRECONDITION(szName != NULL); } CONTRACTL_END; Module::Initialize(pamTracker); IfFailThrow(CreateICeeGen(IID_ICeeGenInternal, (void **)&m_pCeeFileGen)); // Collectible modules should try to limit the growth of their associate IL section, as common scenarios for collectible // modules include single type modules if (IsCollectible()) { ReleaseHolder<ICeeGenInternal> pCeeGenInternal(NULL); IfFailThrow(m_pCeeFileGen->QueryInterface(IID_ICeeGenInternal, (void **)&pCeeGenInternal)); IfFailThrow(pCeeGenInternal->SetInitialGrowth(CEE_FILE_GEN_GROWTH_COLLECTIBLE)); } m_pInMemoryWriter = new RefClassWriter(); IfFailThrow(m_pInMemoryWriter->Init(GetCeeGen(), GetEmitter(), szName)); m_CrstLeafLock.Init(CrstLeafLock); } void ReflectionModule::Destruct() { CONTRACTL { NOTHROW; GC_TRIGGERS; MODE_PREEMPTIVE; } CONTRACTL_END; delete m_pInMemoryWriter; if (m_pCeeFileGen) m_pCeeFileGen->Release(); Module::Destruct(); delete m_pDynamicMetadata; m_pDynamicMetadata = NULL; m_CrstLeafLock.Destroy(); } // // Holder of changed value of MDUpdateMode via IMDInternalEmit::SetMDUpdateMode. // Returns back the original value on release. // class MDUpdateModeHolder { public: MDUpdateModeHolder() { m_pInternalEmitter = NULL; m_OriginalMDUpdateMode = UINT32_MAX; } ~MDUpdateModeHolder() { WRAPPER_NO_CONTRACT; (void)Release(); } HRESULT SetMDUpdateMode(IMetaDataEmit *pEmitter, ULONG updateMode) { LIMITED_METHOD_CONTRACT; HRESULT hr = S_OK; _ASSERTE(updateMode != UINT32_MAX); IfFailRet(pEmitter->QueryInterface(IID_IMDInternalEmit, (void **)&m_pInternalEmitter)); _ASSERTE(m_pInternalEmitter != NULL); IfFailRet(m_pInternalEmitter->SetMDUpdateMode(updateMode, &m_OriginalMDUpdateMode)); _ASSERTE(m_OriginalMDUpdateMode != UINT32_MAX); return hr; } HRESULT Release(ULONG expectedPreviousUpdateMode = UINT32_MAX) { HRESULT hr = S_OK; if (m_OriginalMDUpdateMode != UINT32_MAX) { _ASSERTE(m_pInternalEmitter != NULL); ULONG previousUpdateMode; // Ignore the error when releasing hr = m_pInternalEmitter->SetMDUpdateMode(m_OriginalMDUpdateMode, &previousUpdateMode); m_OriginalMDUpdateMode = UINT32_MAX; if (expectedPreviousUpdateMode != UINT32_MAX) { if ((hr == S_OK) && (expectedPreviousUpdateMode != previousUpdateMode)) { hr = S_FALSE; } } } if (m_pInternalEmitter != NULL) { (void)m_pInternalEmitter->Release(); m_pInternalEmitter = NULL; } return hr; } ULONG GetOriginalMDUpdateMode() { WRAPPER_NO_CONTRACT; _ASSERTE(m_OriginalMDUpdateMode != UINT32_MAX); return m_OriginalMDUpdateMode; } private: IMDInternalEmit *m_pInternalEmitter; ULONG m_OriginalMDUpdateMode; }; // Called in live paths to fetch metadata for dynamic modules. This makes the metadata available to the // debugger from out-of-process. // // Notes: // This buffer can be retrieved by the debugger via code:ReflectionModule.GetDynamicMetadataBuffer // // Threading: // - Callers must ensure nobody else is adding to the metadata. // - This function still takes its own locks to cooperate with the Debugger's out-of-process access. // The debugger can slip this thread outside the locks to ensure the data is consistent. // // This does not raise a debug notification to invalidate the metadata. Reasoning is that this only // happens in two cases: // 1) manifest module is updated with the name of a new dynamic module. // 2) on each class load, in which case we already send a debug event. In this case, we already send a // class-load notification, so sending a separate "metadata-refresh" would make the eventing twice as // chatty. Class-load events are high-volume and events are slow. // Thus we can avoid the chatiness by ensuring the debugger knows that Class-load also means "refresh // metadata". // void ReflectionModule::CaptureModuleMetaDataToMemory() { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; // If a debugger is attached, then the CLR will still send ClassLoad notifications for dynamic modules, // which mean we still need to keep the metadata available. This is the same as Whidbey. // An alternative (and better) design would be to suppress ClassLoad notifications too, but then we'd // need some way of sending a "catchup" notification to the debugger after we re-enable notifications. if (!CORDebuggerAttached()) { return; } // Do not release the emitter. This is a weak reference. IMetaDataEmit *pEmitter = this->GetEmitter(); _ASSERTE(pEmitter != NULL); HRESULT hr; MDUpdateModeHolder hMDUpdateMode; IfFailThrow(hMDUpdateMode.SetMDUpdateMode(pEmitter, MDUpdateExtension)); _ASSERTE(hMDUpdateMode.GetOriginalMDUpdateMode() == MDUpdateFull); DWORD numBytes; hr = pEmitter->GetSaveSize(cssQuick, &numBytes); IfFailThrow(hr); // Operate on local data, and then persist it into the module once we know it's valid. NewHolder<SBuffer> pBuffer(new SBuffer()); _ASSERTE(pBuffer != NULL); // allocation would throw first // ReflectionModule is still in a consistent state, and now we're just operating on local data to // assemble the new metadata buffer. If this fails, then worst case is that metadata does not include // recently generated classes. // Caller ensures serialization that guarantees that the metadata doesn't grow underneath us. BYTE * pRawData = pBuffer->OpenRawBuffer(numBytes); hr = pEmitter->SaveToMemory(pRawData, numBytes); pBuffer->CloseRawBuffer(); IfFailThrow(hr); // Now that we're successful, transfer ownership back into the module. { CrstHolder ch(&m_CrstLeafLock); delete m_pDynamicMetadata; m_pDynamicMetadata = pBuffer.Extract(); } // hr = hMDUpdateMode.Release(MDUpdateExtension); // Will be S_FALSE if someone changed the MDUpdateMode (from MDUpdateExtension) meanwhile _ASSERTE(hr == S_OK); } #endif // !DACCESS_COMPILE #ifdef DACCESS_COMPILE // Accessor to expose m_pDynamicMetadata to debugger. // // Returns: // Pointer to SBuffer containing metadata buffer. May be null. // // Notes: // Only used by the debugger, so only accessible via DAC. // The buffer is updated via code:ReflectionModule.CaptureModuleMetaDataToMemory PTR_SBuffer ReflectionModule::GetDynamicMetadataBuffer() const { SUPPORTS_DAC; // If we ask for metadata, but have been suppressing capture, then we're out of date. // However, the debugger may be debugging already baked types in the module and so may need the metadata // for that. So we return what we do have. // // Debugger will get the next metadata update: // 1) with the next load class // 2) or if this is right after the last class, see code:ReflectionModule.CaptureModuleMetaDataToMemory return m_pDynamicMetadata; } #endif TADDR ReflectionModule::GetIL(RVA il) // virtual { #ifndef DACCESS_COMPILE WRAPPER_NO_CONTRACT; BYTE* pByte = NULL; m_pCeeFileGen->GetMethodBuffer(il, &pByte); return TADDR(pByte); #else // DACCESS_COMPILE SUPPORTS_DAC; DacNotImpl(); return NULL; #endif // DACCESS_COMPILE } PTR_VOID ReflectionModule::GetRvaField(RVA field) // virtual { #ifndef DACCESS_COMPILE WRAPPER_NO_CONTRACT; // This function should be call only if the target is a field or a field with RVA. PTR_BYTE pByte = NULL; m_pCeeFileGen->ComputePointer(m_sdataSection, field, &pByte); return dac_cast<PTR_VOID>(pByte); #else // DACCESS_COMPILE SUPPORTS_DAC; DacNotImpl(); return NULL; #endif // DACCESS_COMPILE } #ifndef DACCESS_COMPILE // =========================================================================== // VASigCookies // =========================================================================== //========================================================================== // Enregisters a VASig. //========================================================================== VASigCookie *Module::GetVASigCookie(Signature vaSignature) { CONTRACT(VASigCookie*) { INSTANCE_CHECK; THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL)); INJECT_FAULT(COMPlusThrowOM()); } CONTRACT_END; VASigCookieBlock *pBlock; VASigCookie *pCookie; pCookie = NULL; // First, see if we already enregistered this sig. // Note that we're outside the lock here, so be a bit careful with our logic for (pBlock = m_pVASigCookieBlock; pBlock != NULL; pBlock = pBlock->m_Next) { for (UINT i = 0; i < pBlock->m_numcookies; i++) { if (pBlock->m_cookies[i].signature.GetRawSig() == vaSignature.GetRawSig()) { pCookie = &(pBlock->m_cookies[i]); break; } } } if (!pCookie) { // If not, time to make a new one. // Compute the size of args first, outside of the lock. // @TODO GENERICS: We may be calling a varargs method from a // generic type/method. Using an empty context will make such a // case cause an unexpected exception. To make this work, // we need to create a specialized signature for every instantiation SigTypeContext typeContext; MetaSig metasig(vaSignature, this, &typeContext); ArgIterator argit(&metasig); // Upper estimate of the vararg size DWORD sizeOfArgs = argit.SizeOfArgStack(); // enable gc before taking lock { CrstHolder ch(&m_Crst); // Note that we were possibly racing to create the cookie, and another thread // may have already created it. We could put another check // here, but it's probably not worth the effort, so we'll just take an // occasional duplicate cookie instead. // Is the first block in the list full? if (m_pVASigCookieBlock && m_pVASigCookieBlock->m_numcookies < VASigCookieBlock::kVASigCookieBlockSize) { // Nope, reserve a new slot in the existing block. pCookie = &(m_pVASigCookieBlock->m_cookies[m_pVASigCookieBlock->m_numcookies]); } else { // Yes, create a new block. VASigCookieBlock *pNewBlock = new VASigCookieBlock(); pNewBlock->m_Next = m_pVASigCookieBlock; pNewBlock->m_numcookies = 0; m_pVASigCookieBlock = pNewBlock; pCookie = &(pNewBlock->m_cookies[0]); } // Now, fill in the new cookie (assuming we had enough memory to create one.) pCookie->pModule = this; pCookie->pNDirectILStub = NULL; pCookie->sizeOfArgs = sizeOfArgs; pCookie->signature = vaSignature; // Finally, now that it's safe for asynchronous readers to see it, // update the count. m_pVASigCookieBlock->m_numcookies++; } } RETURN pCookie; } #endif // !DACCESS_COMPILE #ifdef DACCESS_COMPILE void LookupMapBase::EnumMemoryRegions(CLRDataEnumMemoryFlags flags, bool enumThis) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END; if (enumThis) { DacEnumHostDPtrMem(this); } if (pTable.IsValid()) { DacEnumMemoryRegion(dac_cast<TADDR>(pTable), dwCount * sizeof(TADDR)); } } /* static */ void LookupMapBase::ListEnumMemoryRegions(CLRDataEnumMemoryFlags flags) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END; LookupMapBase * headMap = this; bool enumHead = false; while (headMap) { headMap->EnumMemoryRegions(flags, enumHead); if (!headMap->pNext.IsValid()) { break; } headMap = headMap->pNext; enumHead = true; } } #endif // DACCESS_COMPILE // Optimization intended for Module::EnsureActive only #include <optsmallperfcritical.h> #ifndef DACCESS_COMPILE VOID Module::EnsureActive() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; GetDomainAssembly()->EnsureActive(); } #endif // DACCESS_COMPILE #include <optdefault.h> #ifndef DACCESS_COMPILE VOID Module::EnsureAllocated() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; GetDomainAssembly()->EnsureAllocated(); } VOID Module::EnsureLibraryLoaded() { STANDARD_VM_CONTRACT; GetDomainAssembly()->EnsureLibraryLoaded(); } #endif // !DACCESS_COMPILE CHECK Module::CheckActivated() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; #ifndef DACCESS_COMPILE DomainAssembly *pDomainAssembly = GetDomainAssembly(); CHECK(pDomainAssembly != NULL); PREFIX_ASSUME(pDomainAssembly != NULL); CHECK(pDomainAssembly->CheckActivated()); #endif CHECK_OK; } #ifdef DACCESS_COMPILE void Module::EnumMemoryRegions(CLRDataEnumMemoryFlags flags, bool enumThis) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END; if (enumThis) { DAC_ENUM_VTHIS(); EMEM_OUT(("MEM: %p Module\n", dac_cast<TADDR>(this))); } //Save module id data only if it a real pointer, not a tagged sugestion to use ModuleIndex. if (m_ModuleID.IsValid()) { m_ModuleID->EnumMemoryRegions(flags); } if (m_pPEAssembly.IsValid()) { m_pPEAssembly->EnumMemoryRegions(flags); } if (m_pAssembly.IsValid()) { m_pAssembly->EnumMemoryRegions(flags); } m_TypeRefToMethodTableMap.ListEnumMemoryRegions(flags); m_TypeDefToMethodTableMap.ListEnumMemoryRegions(flags); if (flags != CLRDATA_ENUM_MEM_MINI && flags != CLRDATA_ENUM_MEM_TRIAGE) { if (m_pAvailableClasses.IsValid()) { m_pAvailableClasses->EnumMemoryRegions(flags); } if (m_pAvailableParamTypes.IsValid()) { m_pAvailableParamTypes->EnumMemoryRegions(flags); } if (m_pInstMethodHashTable.IsValid()) { m_pInstMethodHashTable->EnumMemoryRegions(flags); } if (m_pAvailableClassesCaseIns.IsValid()) { m_pAvailableClassesCaseIns->EnumMemoryRegions(flags); } if (m_pBinder.IsValid()) { m_pBinder->EnumMemoryRegions(flags); } // Save the LookupMap structures. m_MethodDefToDescMap.ListEnumMemoryRegions(flags); m_FieldDefToDescMap.ListEnumMemoryRegions(flags); m_pMemberRefToDescHashTable->EnumMemoryRegions(flags); m_GenericParamToDescMap.ListEnumMemoryRegions(flags); m_GenericTypeDefToCanonMethodTableMap.ListEnumMemoryRegions(flags); m_FileReferencesMap.ListEnumMemoryRegions(flags); m_ManifestModuleReferencesMap.ListEnumMemoryRegions(flags); m_MethodDefToPropertyInfoMap.ListEnumMemoryRegions(flags); LookupMap<PTR_MethodTable>::Iterator typeDefIter(&m_TypeDefToMethodTableMap); while (typeDefIter.Next()) { if (typeDefIter.GetElement()) { typeDefIter.GetElement()->EnumMemoryRegions(flags); } } LookupMap<PTR_TypeRef>::Iterator typeRefIter(&m_TypeRefToMethodTableMap); while (typeRefIter.Next()) { if (typeRefIter.GetElement()) { TypeHandle th = TypeHandle::FromTAddr(dac_cast<TADDR>(typeRefIter.GetElement())); th.EnumMemoryRegions(flags); } } LookupMap<PTR_MethodDesc>::Iterator methodDefIter(&m_MethodDefToDescMap); while (methodDefIter.Next()) { if (methodDefIter.GetElement()) { methodDefIter.GetElement()->EnumMemoryRegions(flags); } } LookupMap<PTR_FieldDesc>::Iterator fieldDefIter(&m_FieldDefToDescMap); while (fieldDefIter.Next()) { if (fieldDefIter.GetElement()) { fieldDefIter.GetElement()->EnumMemoryRegions(flags); } } LookupMap<PTR_TypeVarTypeDesc>::Iterator genericParamIter(&m_GenericParamToDescMap); while (genericParamIter.Next()) { if (genericParamIter.GetElement()) { genericParamIter.GetElement()->EnumMemoryRegions(flags); } } LookupMap<PTR_MethodTable>::Iterator genericTypeDefIter(&m_GenericTypeDefToCanonMethodTableMap); while (genericTypeDefIter.Next()) { if (genericTypeDefIter.GetElement()) { genericTypeDefIter.GetElement()->EnumMemoryRegions(flags); } } } // !CLRDATA_ENUM_MEM_MINI && !CLRDATA_ENUM_MEM_TRIAGE LookupMap<PTR_Module>::Iterator fileRefIter(&m_FileReferencesMap); while (fileRefIter.Next()) { if (fileRefIter.GetElement()) { fileRefIter.GetElement()->EnumMemoryRegions(flags, true); } } LookupMap<PTR_Module>::Iterator asmRefIter(&m_ManifestModuleReferencesMap); while (asmRefIter.Next()) { if (asmRefIter.GetElement()) { asmRefIter.GetElement()->GetAssembly()->EnumMemoryRegions(flags); } } ECall::EnumFCallMethods(); } FieldDesc *Module::LookupFieldDef(mdFieldDef token) { WRAPPER_NO_CONTRACT; _ASSERTE(TypeFromToken(token) == mdtFieldDef); g_IBCLogger.LogRidMapAccess( MakePair( this, token ) ); return m_FieldDefToDescMap.GetElement(RidFromToken(token)); } #endif // DACCESS_COMPILE //------------------------------------------------------------------------------- // Make best-case effort to obtain an image name for use in an error message. // // This routine must expect to be called before the this object is fully loaded. // It can return an empty if the name isn't available or the object isn't initialized // enough to get a name, but it mustn't crash. //------------------------------------------------------------------------------- LPCWSTR Module::GetPathForErrorMessages() { CONTRACTL { THROWS; GC_TRIGGERS; if (FORBIDGC_LOADER_USE_ENABLED()) FORBID_FAULT; else { INJECT_FAULT(COMPlusThrowOM()); } } CONTRACTL_END PEAssembly *pPEAssembly = GetPEAssembly(); if (pPEAssembly) { return pPEAssembly->GetPathForErrorMessages(); } else { return W(""); } } #if defined(_DEBUG) && !defined(DACCESS_COMPILE) && !defined(CROSS_COMPILE) void Module::ExpandAll() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; //If the EE isn't started yet, it's not safe to jit. We fail in COM jitting a p/invoke. if (!g_fEEStarted) return; struct Local { static void CompileMethodDesc(MethodDesc * pMD) { //Must have a method body if (pMD->HasILHeader() //Can't jit open instantiations && !pMD->IsGenericMethodDefinition() //These are the only methods we can jit && (pMD->IsStatic() || pMD->GetNumGenericMethodArgs() == 0 || pMD->HasClassInstantiation()) && (pMD->MayHaveNativeCode() && !pMD->IsFCall())) { pMD->PrepareInitialCode(); } } static void CompileMethodsForMethodTable(MethodTable * pMT) { MethodTable::MethodIterator it(pMT); for (; it.IsValid(); it.Next()) { MethodDesc * pMD = it.GetMethodDesc(); CompileMethodDesc(pMD); } } #if 0 static void CompileMethodsForTypeDef(Module * pModule, mdTypeDef td) { TypeHandle th = ClassLoader::LoadTypeDefThrowing(pModule, td, ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef); MethodTable * pMT = th.GetMethodTable(); CompileMethodsForMethodTable(pMT); } #endif static void CompileMethodsForTypeDefRefSpec(Module * pModule, mdToken tok) { TypeHandle th; HRESULT hr = S_OK; EX_TRY { th = ClassLoader::LoadTypeDefOrRefOrSpecThrowing( pModule, tok, NULL /*SigTypeContext*/); } EX_CATCH { hr = GET_EXCEPTION()->GetHR(); } EX_END_CATCH(SwallowAllExceptions); //Only do this for non-generic types and unshared generic types //(canonical generics and value type generic instantiations). if (SUCCEEDED(hr) && !th.IsTypeDesc() && th.AsMethodTable()->IsCanonicalMethodTable()) { CompileMethodsForMethodTable(th.AsMethodTable()); } } static void CompileMethodsForMethodDefRefSpec(Module * pModule, mdToken tok) { HRESULT hr = S_OK; EX_TRY { MethodDesc * pMD = MemberLoader::GetMethodDescFromMemberDefOrRefOrSpec(pModule, tok, /*SigTypeContext*/NULL, TRUE, TRUE); CompileMethodDesc(pMD); } EX_CATCH { hr = GET_EXCEPTION()->GetHR(); //@telesto what should we do with this HR? the Silverlight code doesn't seem //to do anything...but that doesn't seem safe... } EX_END_CATCH(SwallowAllExceptions); } }; //Jit all methods eagerly IMDInternalImport * pMDI = GetMDImport(); HENUMTypeDefInternalHolder hEnum(pMDI); mdTypeDef td; hEnum.EnumTypeDefInit(); //verify global methods if (GetGlobalMethodTable()) { //jit everything in the MT. Local::CompileMethodsForTypeDefRefSpec(this, COR_GLOBAL_PARENT_TOKEN); } while (pMDI->EnumNext(&hEnum, &td)) { //jit everything Local::CompileMethodsForTypeDefRefSpec(this, td); } //Get the type refs. They're always awesome. HENUMInternalHolder hEnumTypeRefs(pMDI); mdToken tr; hEnumTypeRefs.EnumAllInit(mdtTypeRef); while (hEnumTypeRefs.EnumNext(&tr)) { Local::CompileMethodsForTypeDefRefSpec(this, tr); } //make sure to get the type specs HENUMInternalHolder hEnumTypeSpecs(pMDI); mdToken ts; hEnumTypeSpecs.EnumAllInit(mdtTypeSpec); while (hEnumTypeSpecs.EnumNext(&ts)) { Local::CompileMethodsForTypeDefRefSpec(this, ts); } //And now for the interesting generic methods HENUMInternalHolder hEnumMethodSpecs(pMDI); mdToken ms; hEnumMethodSpecs.EnumAllInit(mdtMethodSpec); while (hEnumMethodSpecs.EnumNext(&ms)) { Local::CompileMethodsForMethodDefRefSpec(this, ms); } } #endif //_DEBUG && !DACCESS_COMPILE && !CROSS_COMPILE //------------------------------------------------------------------------------- // Verify consistency of asmconstants.h // Wrap all C_ASSERT's in asmconstants.h with a class definition. Many of the // fields referenced below are private, and this class is a friend of the // enclosing type. (A C_ASSERT isn't a compiler intrinsic, just a magic // typedef that produces a compiler error when the condition is false.) #include "clrvarargs.h" /* for VARARG C_ASSERTs in asmconstants.h */ class CheckAsmOffsets { #ifndef CROSSBITNESS_COMPILE #define ASMCONSTANTS_C_ASSERT(cond) static_assert(cond, #cond); #include "asmconstants.h" #endif // CROSSBITNESS_COMPILE }; //------------------------------------------------------------------------------- #ifndef DACCESS_COMPILE void Module::CreateAssemblyRefByNameTable(AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_NOTRIGGER; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END LoaderHeap * pHeap = GetLoaderAllocator()->GetLowFrequencyHeap(); IMDInternalImport * pImport = GetMDImport(); DWORD dwMaxRid = pImport->GetCountWithTokenKind(mdtAssemblyRef); if (dwMaxRid == 0) return; S_SIZE_T dwAllocSize = S_SIZE_T(sizeof(LPWSTR)) * S_SIZE_T(dwMaxRid); m_AssemblyRefByNameTable = (LPCSTR *) pamTracker->Track( pHeap->AllocMem(dwAllocSize) ); DWORD dwCount = 0; for (DWORD rid=1; rid <= dwMaxRid; rid++) { mdAssemblyRef mdToken = TokenFromRid(rid,mdtAssemblyRef); LPCSTR szName; HRESULT hr; hr = pImport->GetAssemblyRefProps(mdToken, NULL, NULL, &szName, NULL, NULL, NULL, NULL); if (SUCCEEDED(hr)) { m_AssemblyRefByNameTable[dwCount++] = szName; } } m_AssemblyRefByNameCount = dwCount; } bool Module::HasReferenceByName(LPCUTF8 pModuleName) { LIMITED_METHOD_CONTRACT; for (DWORD i=0; i < m_AssemblyRefByNameCount; i++) { if (0 == strcmp(pModuleName, m_AssemblyRefByNameTable[i])) return true; } return false; } #endif #if defined(_DEBUG) && !defined(DACCESS_COMPILE) NOINLINE void NgenForceFailure_AV() { LIMITED_METHOD_CONTRACT; static int* alwaysNull = 0; *alwaysNull = 0; } NOINLINE void NgenForceFailure_TypeLoadException() { WRAPPER_NO_CONTRACT; ::ThrowTypeLoadException("ForceIBC", "Failure", W("Assembly"), NULL, IDS_CLASSLOAD_BADFORMAT); } void EEConfig::DebugCheckAndForceIBCFailure(BitForMask bitForMask) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; static DWORD s_ibcCheckCount = 0; // Both of these must be set to non-zero values for us to force a failure // if ((NgenForceFailureCount() == 0) || (NgenForceFailureKind() == 0)) return; // The bitForMask value must also beset in the FailureMask // if ((((DWORD) bitForMask) & NgenForceFailureMask()) == 0) return; s_ibcCheckCount++; if (s_ibcCheckCount < NgenForceFailureCount()) return; // We force one failure every NgenForceFailureCount() // s_ibcCheckCount = 0; switch (NgenForceFailureKind()) { case 1: NgenForceFailure_TypeLoadException(); break; case 2: NgenForceFailure_AV(); break; } } #endif // defined(_DEBUG) && !defined(DACCESS_COMPILE)
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/method.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =========================================================================== // File: Method.CPP // // // See the book of the runtime entry for overall design: // file:../../doc/BookOfTheRuntime/ClassLoader/MethodDescDesign.doc // #include "common.h" #include "excep.h" #include "dbginterface.h" #include "ecall.h" #include "eeconfig.h" #include "mlinfo.h" #include "dllimport.h" #include "generics.h" #include "genericdict.h" #include "typedesc.h" #include "typestring.h" #include "virtualcallstub.h" #include "jitinterface.h" #include "runtimehandles.h" #include "eventtrace.h" #include "interoputil.h" #include "prettyprintsig.h" #include "formattype.h" #include "fieldmarshaler.h" #include "versionresilienthashcode.h" #include "typehashingalgorithms.h" #ifdef FEATURE_COMINTEROP #include "comcallablewrapper.h" #include "clrtocomcall.h" #endif #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4244) #endif // _MSC_VER #ifdef FEATURE_MINIMETADATA_IN_TRIAGEDUMPS GVAL_IMPL(DWORD, g_MiniMetaDataBuffMaxSize); GVAL_IMPL(TADDR, g_MiniMetaDataBuffAddress); #endif // FEATURE_MINIMETADATA_IN_TRIAGEDUMPS // forward decl bool FixupSignatureContainingInternalTypes( DataImage * image, PCCOR_SIGNATURE pSig, DWORD cSig, bool checkOnly = false); // Alias ComPlusCallMethodDesc to regular MethodDesc to simplify definition of the size table #ifndef FEATURE_COMINTEROP #define ComPlusCallMethodDesc MethodDesc #endif // Verify that the structure sizes of our MethodDescs support proper // aligning for atomic stub replacement. // static_assert_no_msg((sizeof(MethodDescChunk) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(MethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(FCallMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(NDirectMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(EEImplMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(ArrayMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(ComPlusCallMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(DynamicMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); #define METHOD_DESC_SIZES(adjustment) \ adjustment + sizeof(MethodDesc), /* mcIL */ \ adjustment + sizeof(FCallMethodDesc), /* mcFCall */ \ adjustment + sizeof(NDirectMethodDesc), /* mcNDirect */ \ adjustment + sizeof(EEImplMethodDesc), /* mcEEImpl */ \ adjustment + sizeof(ArrayMethodDesc), /* mcArray */ \ adjustment + sizeof(InstantiatedMethodDesc), /* mcInstantiated */ \ adjustment + sizeof(ComPlusCallMethodDesc), /* mcComInterOp */ \ adjustment + sizeof(DynamicMethodDesc) /* mcDynamic */ const BYTE MethodDesc::s_ClassificationSizeTable[] = { // This is the raw METHOD_DESC_SIZES(0), // This extended part of the table is used for faster MethodDesc size lookup. // We index using optional slot flags into it METHOD_DESC_SIZES(sizeof(NonVtableSlot)), METHOD_DESC_SIZES(sizeof(MethodImpl)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(MethodImpl)), METHOD_DESC_SIZES(sizeof(NativeCodeSlot)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(NativeCodeSlot)), METHOD_DESC_SIZES(sizeof(MethodImpl) + sizeof(NativeCodeSlot)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(MethodImpl) + sizeof(NativeCodeSlot)), #ifdef FEATURE_COMINTEROP METHOD_DESC_SIZES(sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(MethodImpl) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(MethodImpl) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NativeCodeSlot) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(NativeCodeSlot) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(MethodImpl) + sizeof(NativeCodeSlot) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(MethodImpl) + sizeof(NativeCodeSlot) + sizeof(ComPlusCallInfo)) #endif }; #ifndef FEATURE_COMINTEROP #undef ComPlusCallMethodDesc #endif class ArgIteratorBaseForPInvoke : public ArgIteratorBase { protected: FORCEINLINE BOOL IsRegPassedStruct(MethodTable* pMT) { return pMT->GetNativeLayoutInfo()->IsNativeStructPassedInRegisters(); } }; class PInvokeArgIterator : public ArgIteratorTemplate<ArgIteratorBaseForPInvoke> { public: PInvokeArgIterator(MetaSig* pSig) { m_pSig = pSig; } }; //******************************************************************************* SIZE_T MethodDesc::SizeOf() { LIMITED_METHOD_DAC_CONTRACT; SIZE_T size = s_ClassificationSizeTable[m_wFlags & (mdcClassification | mdcHasNonVtableSlot | mdcMethodImpl #ifdef FEATURE_COMINTEROP | mdcHasComPlusCallInfo #endif | mdcHasNativeCodeSlot)]; return size; } /*********************************************************************/ #ifndef DACCESS_COMPILE BOOL NDirectMethodDesc::HasDefaultDllImportSearchPathsAttribute() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if(IsDefaultDllImportSearchPathsAttributeCached()) { return (ndirect.m_wFlags & kDefaultDllImportSearchPathsStatus) != 0; } BOOL attributeIsFound = GetDefaultDllImportSearchPathsAttributeValue(GetModule(),GetMemberDef(),&ndirect.m_DefaultDllImportSearchPathsAttributeValue); if(attributeIsFound ) { InterlockedSetNDirectFlags(kDefaultDllImportSearchPathsIsCached | kDefaultDllImportSearchPathsStatus); } else { InterlockedSetNDirectFlags(kDefaultDllImportSearchPathsIsCached); } return (ndirect.m_wFlags & kDefaultDllImportSearchPathsStatus) != 0; } #endif //!DACCESS_COMPILE //******************************************************************************* #ifndef DACCESS_COMPILE VOID MethodDesc::EnsureActive() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; GetMethodTable()->EnsureInstanceActive(); if (HasMethodInstantiation() && !IsGenericMethodDefinition()) { Instantiation methodInst = GetMethodInstantiation(); for (DWORD i = 0; i < methodInst.GetNumArgs(); ++i) { MethodTable * pMT = methodInst[i].GetMethodTable(); if (pMT) pMT->EnsureInstanceActive(); } } } #endif //!DACCESS_COMPILE //******************************************************************************* CHECK MethodDesc::CheckActivated() { WRAPPER_NO_CONTRACT; CHECK(GetModule()->CheckActivated()); CHECK_OK; } //******************************************************************************* BaseDomain *MethodDesc::GetDomain() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END return AppDomain::GetCurrentDomain(); } #ifndef DACCESS_COMPILE //******************************************************************************* LoaderAllocator * MethodDesc::GetDomainSpecificLoaderAllocator() { if (GetLoaderModule()->IsCollectible()) { return GetLoaderAllocator(); } else { return ::GetAppDomain()->GetLoaderAllocator(); } } #endif //!DACCESS_COMPILE //******************************************************************************* LPCUTF8 MethodDesc::GetName(USHORT slot) { // MethodDesc::GetDeclMethodDesc can throw. WRAPPER_NO_CONTRACT; MethodDesc *pDeclMD = GetDeclMethodDesc((UINT32)slot); CONSISTENCY_CHECK(IsInterface() || !pDeclMD->IsInterface()); return pDeclMD->GetName(); } //******************************************************************************* LPCUTF8 MethodDesc::GetName() { CONTRACTL { if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; // MethodImpl::FindMethodDesc can throw. GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; }CONTRACTL_END; g_IBCLogger.LogMethodDescAccess(this); if (IsArray()) { // Array classes don't have metadata tokens return dac_cast<PTR_ArrayMethodDesc>(this)->GetMethodName(); } else if (IsNoMetadata()) { // LCG methods don't have metadata tokens return dac_cast<PTR_DynamicMethodDesc>(this)->GetMethodName(); } else { // Get the metadata string name for this method LPCUTF8 result = NULL; if (FAILED(GetMDImport()->GetNameOfMethodDef(GetMemberDef(), &result))) { result = NULL; } return(result); } } #ifndef DACCESS_COMPILE /* * Function to get a method's name, its namespace */ VOID MethodDesc::GetMethodInfoNoSig(SString &namespaceOrClassName, SString &methodName) { static LPCWSTR pDynamicClassName = W("dynamicClass"); // namespace if(IsDynamicMethod()) namespaceOrClassName.Append(pDynamicClassName); else TypeString::AppendType(namespaceOrClassName, TypeHandle(GetMethodTable())); // name methodName.AppendUTF8(GetName()); } /* * Function to get a method's name, its namespace and signature (legacy format) */ VOID MethodDesc::GetMethodInfo(SString &namespaceOrClassName, SString &methodName, SString &methodSignature) { GetMethodInfoNoSig(namespaceOrClassName, methodName); // signature CQuickBytes qbOut; ULONG cSig = 0; PCCOR_SIGNATURE pSig; GetSig(&pSig, &cSig); PrettyPrintSigInternalLegacy(pSig, cSig, " ", &qbOut, GetMDImport()); methodSignature.AppendUTF8((char *)qbOut.Ptr()); } /* * Function to get a method's name, its namespace and signature (new format) */ VOID MethodDesc::GetMethodInfoWithNewSig(SString &namespaceOrClassName, SString &methodName, SString &methodSignature) { GetMethodInfoNoSig(namespaceOrClassName, methodName); // signature CQuickBytes qbOut; ULONG cSig = 0; PCCOR_SIGNATURE pSig; GetSig(&pSig, &cSig); PrettyPrintSig(pSig, (DWORD)cSig, "", &qbOut, GetMDImport(), NULL); methodSignature.AppendUTF8((char *)qbOut.Ptr()); } /* * Function to get a method's full name, something like * void [mscorlib]System.StubHelpers.BSTRMarshaler::ClearNative(native int) */ VOID MethodDesc::GetFullMethodInfo(SString& fullMethodSigName) { SString namespaceOrClassName, methodName; GetMethodInfoNoSig(namespaceOrClassName, methodName); // signature CQuickBytes qbOut; ULONG cSig = 0; PCCOR_SIGNATURE pSig; SString methodFullName; StackScratchBuffer namespaceNameBuffer, methodNameBuffer; methodFullName.AppendPrintf( (LPCUTF8)"[%s] %s::%s", GetModule()->GetAssembly()->GetSimpleName(), namespaceOrClassName.GetUTF8(namespaceNameBuffer), methodName.GetUTF8(methodNameBuffer)); GetSig(&pSig, &cSig); StackScratchBuffer buffer; PrettyPrintSig(pSig, (DWORD)cSig, methodFullName.GetUTF8(buffer), &qbOut, GetMDImport(), NULL); fullMethodSigName.AppendUTF8((char *)qbOut.Ptr()); } #endif //******************************************************************************* BOOL MethodDesc::MightHaveName(ULONG nameHashValue) { LIMITED_METHOD_CONTRACT; // We only have space for a name hash when we are using the packed slot layout if (RequiresFullSlotNumber()) { return TRUE; } WORD thisHashValue = m_wSlotNumber & enum_packedSlotLayout_NameHashMask; // A zero value might mean no hash has ever been set // (checking this way is better than dedicating a bit to tell us) if (thisHashValue == 0) { return TRUE; } WORD testHashValue = (WORD) nameHashValue & enum_packedSlotLayout_NameHashMask; return (thisHashValue == testHashValue); } //******************************************************************************* void MethodDesc::GetSig(PCCOR_SIGNATURE *ppSig, DWORD *pcSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END if (HasStoredSig()) { PTR_StoredSigMethodDesc pSMD = dac_cast<PTR_StoredSigMethodDesc>(this); if (pSMD->HasStoredMethodSig() || GetClassification()==mcDynamic) { *ppSig = pSMD->GetStoredMethodSig(pcSig); PREFIX_ASSUME(*ppSig != NULL); return; } } GetSigFromMetadata(GetMDImport(), ppSig, pcSig); PREFIX_ASSUME(*ppSig != NULL); } //******************************************************************************* // get a function signature from its metadata // Arguments: // input: // importer the metatdata importer to be used // output: // ppSig the function signature // pcSig number of elements in the signature void MethodDesc::GetSigFromMetadata(IMDInternalImport * importer, PCCOR_SIGNATURE * ppSig, DWORD * pcSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END if (FAILED(importer->GetSigOfMethodDef(GetMemberDef(), pcSig, ppSig))) { // Class loader already asked for signature, so this should always succeed (unless there's a // bug or a new code path) _ASSERTE(!"If this ever fires, then this method should return HRESULT"); *ppSig = NULL; *pcSig = 0; } } //******************************************************************************* PCCOR_SIGNATURE MethodDesc::GetSig() { WRAPPER_NO_CONTRACT; PCCOR_SIGNATURE pSig; DWORD cSig; GetSig(&pSig, &cSig); PREFIX_ASSUME(pSig != NULL); return pSig; } Signature MethodDesc::GetSignature() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; PCCOR_SIGNATURE pSig; DWORD cSig; GetSig(&pSig, &cSig); PREFIX_ASSUME(pSig != NULL); return Signature(pSig, cSig); } PCODE MethodDesc::GetMethodEntryPoint() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; // Similarly to SetMethodEntryPoint(), it is up to the caller to ensure that calls to this function are appropriately // synchronized // Keep implementations of MethodDesc::GetMethodEntryPoint and MethodDesc::GetAddrOfSlot in sync! g_IBCLogger.LogMethodDescAccess(this); if (HasNonVtableSlot()) { SIZE_T size = GetBaseSize(); TADDR pSlot = dac_cast<TADDR>(this) + size; return *PTR_PCODE(pSlot); } _ASSERTE(GetMethodTable()->IsCanonicalMethodTable()); return GetMethodTable_NoLogging()->GetSlot(GetSlot()); } PTR_PCODE MethodDesc::GetAddrOfSlot() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; // Keep implementations of MethodDesc::GetMethodEntryPoint and MethodDesc::GetAddrOfSlot in sync! if (HasNonVtableSlot()) { SIZE_T size = GetBaseSize(); return PTR_PCODE(dac_cast<TADDR>(this) + size); } _ASSERTE(GetMethodTable()->IsCanonicalMethodTable()); return GetMethodTable()->GetSlotPtr(GetSlot()); } //******************************************************************************* PTR_MethodDesc MethodDesc::GetDeclMethodDesc(UINT32 slotNumber) { CONTRACTL { WRAPPER(THROWS); WRAPPER(GC_TRIGGERS); INSTANCE_CHECK; } CONTRACTL_END; MethodDesc *pMDResult = this; // If the MethodDesc is not itself a methodImpl, but it is not in its native // slot, then someone (perhaps itself) must have overridden a methodImpl // in a parent, which causes the method to get put into all of the methodImpl // slots. So, the MethodDesc is implicitly a methodImpl without containing // the data. To find the real methodImpl MethodDesc, climb the inheritance // hierarchy checking the native slot on the way. if ((UINT32)pMDResult->GetSlot() != slotNumber) { while (!pMDResult->IsMethodImpl()) { CONSISTENCY_CHECK(CheckPointer(pMDResult->GetMethodTable()->GetParentMethodTable())); CONSISTENCY_CHECK(slotNumber < pMDResult->GetMethodTable()->GetParentMethodTable()->GetNumVirtuals()); pMDResult = pMDResult->GetMethodTable()->GetParentMethodTable()->GetMethodDescForSlot(slotNumber); } { CONSISTENCY_CHECK(pMDResult->IsMethodImpl()); MethodImpl *pImpl = pMDResult->GetMethodImpl(); pMDResult = pImpl->FindMethodDesc(slotNumber, PTR_MethodDesc(pMDResult)); } // It is possible that a methodImpl'd slot got copied into another slot because // of slot unification, for example: // C1::A is methodImpled with C2::B // C1::B is methodImpled with C2::C // this means that through slot unification that A is tied to B and B is tied to C, // so A is tied to C even though C does not have a methodImpl entry specifically // relating to that slot. In this case, we recurse to the parent type and ask the // same question again. if (pMDResult->GetSlot() != slotNumber) { MethodTable * pMTOfMD = pMDResult->GetMethodTable(); CONSISTENCY_CHECK(slotNumber < pMTOfMD->GetParentMethodTable()->GetNumVirtuals()); pMDResult = pMTOfMD->GetParentMethodTable()->GetMethodDescForSlot(slotNumber); pMDResult = pMDResult->GetDeclMethodDesc(slotNumber); } } CONSISTENCY_CHECK(CheckPointer(pMDResult)); CONSISTENCY_CHECK((UINT32)pMDResult->GetSlot() == slotNumber); return PTR_MethodDesc(pMDResult); } //******************************************************************************* // Returns a hash for the method. // The hash will be the same for the method across multiple process runs. #ifndef DACCESS_COMPILE COUNT_T MethodDesc::GetStableHash() { WRAPPER_NO_CONTRACT; const char * className = NULL; if (IsLCGMethod()) { className = "DynamicClass"; } else if (IsILStub()) { className = ILStubResolver::GetStubClassName(this); } if (className == NULL) { return GetVersionResilientMethodHashCode(this); } else { int typeHash = ComputeNameHashCode("", className); return typeHash ^ ComputeNameHashCode(GetName()); } } #endif // DACCESS_COMPILE //******************************************************************************* // Get the number of type parameters to a generic method DWORD MethodDesc::GetNumGenericMethodArgs() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; CANNOT_TAKE_LOCK; SUPPORTS_DAC; } CONTRACTL_END g_IBCLogger.LogMethodDescAccess(this); if (GetClassification() == mcInstantiated) { InstantiatedMethodDesc *pIMD = AsInstantiatedMethodDesc(); return pIMD->m_wNumGenericArgs; } else return 0; } //******************************************************************************* MethodTable * MethodDesc::GetExactDeclaringType(MethodTable * ownerOrSubType) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; MethodTable * pMT = GetMethodTable(); // Fast path for typical case. if (ownerOrSubType == pMT) return pMT; // If we come here for array method, the typedef tokens inside GetMethodTableMatchingParentClass // will match, but the types are actually from unrelated arrays, so the result would be incorrect. _ASSERTE(!IsArray()); return ownerOrSubType->GetMethodTableMatchingParentClass(pMT); } //******************************************************************************* Instantiation MethodDesc::GetExactClassInstantiation(TypeHandle possibleObjType) { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END return (possibleObjType.IsNull() ? GetClassInstantiation() : possibleObjType.GetInstantiationOfParentClass(GetMethodTable())); } //******************************************************************************* BOOL MethodDesc::HasSameMethodDefAs(MethodDesc * pMD) { LIMITED_METHOD_CONTRACT; if (this == pMD) return TRUE; return (GetMemberDef() == pMD->GetMemberDef()) && (GetModule() == pMD->GetModule()); } //******************************************************************************* BOOL MethodDesc::IsTypicalSharedInstantiation() { WRAPPER_NO_CONTRACT; Instantiation classInst = GetMethodTable()->GetInstantiation(); if (!ClassLoader::IsTypicalSharedInstantiation(classInst)) return FALSE; if (IsGenericMethodDefinition()) return FALSE; Instantiation methodInst = GetMethodInstantiation(); if (!ClassLoader::IsTypicalSharedInstantiation(methodInst)) return FALSE; return TRUE; } //******************************************************************************* Instantiation MethodDesc::LoadMethodInstantiation() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END if (IsGenericMethodDefinition() && !IsTypicalMethodDefinition()) { return LoadTypicalMethodDefinition()->GetMethodInstantiation(); } else return GetMethodInstantiation(); } //******************************************************************************* Module *MethodDesc::GetDefiningModuleForOpenMethod() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END Module *pModule = GetMethodTable()->GetDefiningModuleForOpenType(); if (pModule != NULL) return pModule; if (IsGenericMethodDefinition()) return GetModule(); Instantiation inst = GetMethodInstantiation(); for (DWORD i = 0; i < inst.GetNumArgs(); i++) { // Encoded types are never open if (!inst[i].IsEncodedFixup()) { pModule = inst[i].GetDefiningModuleForOpenType(); if (pModule != NULL) return pModule; } } return NULL; } //******************************************************************************* BOOL MethodDesc::ContainsGenericVariables() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END // If this is a method of a generic type, does the type have // non-instantiated type arguments if (TypeHandle(GetMethodTable()).ContainsGenericVariables()) return TRUE; if (IsGenericMethodDefinition()) return TRUE; // If this is an instantiated generic method, are there are any generic type variables if (GetNumGenericMethodArgs() != 0) { Instantiation methodInst = GetMethodInstantiation(); for (DWORD i = 0; i < methodInst.GetNumArgs(); i++) { if (methodInst[i].ContainsGenericVariables()) return TRUE; } } return FALSE; } //******************************************************************************* BOOL MethodDesc::IsTightlyBoundToMethodTable() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; // Anything with the real vtable slot is tightly bound if (!HasNonVtableSlot()) return TRUE; // All instantiations of generic methods are stored in the InstMethHashTable. if (HasMethodInstantiation()) { if (IsGenericMethodDefinition()) return TRUE; else return FALSE; } // Wrapper stubs are stored in the InstMethHashTable, e.g. for static methods in generic classes if (IsWrapperStub()) return FALSE; return TRUE; } #ifndef DACCESS_COMPILE //******************************************************************************* // Update flags in a thread safe manner. WORD MethodDesc::InterlockedUpdateFlags(WORD wMask, BOOL fSet) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; WORD wOldState = m_wFlags; DWORD dwMask = wMask; // We need to make this operation atomic (multiple threads can play with the flags field at the same time). But the flags field // is a word and we only have interlock operations over dwords. So we round down the flags field address to the nearest aligned // dword (along with the intended bitfield mask). Note that we make the assumption that the flags word is aligned itself, so we // only have two possibilites: the field already lies on a dword boundary or it's precisely one word out. DWORD* pdwFlags = (DWORD*)((ULONG_PTR)&m_wFlags - (offsetof(MethodDesc, m_wFlags) & 0x3)); #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:6326) // "Suppress PREFast warning about comparing two constants" #endif // _PREFAST_ #if BIGENDIAN if ((offsetof(MethodDesc, m_wFlags) & 0x3) == 0) { #else // !BIGENDIAN if ((offsetof(MethodDesc, m_wFlags) & 0x3) != 0) { #endif // !BIGENDIAN static_assert_no_msg(sizeof(m_wFlags) == 2); dwMask <<= 16; } #ifdef _PREFAST_ #pragma warning(pop) #endif g_IBCLogger.LogMethodDescWriteAccess(this); if (fSet) FastInterlockOr(pdwFlags, dwMask); else FastInterlockAnd(pdwFlags, ~dwMask); return wOldState; } WORD MethodDesc::InterlockedUpdateFlags3(WORD wMask, BOOL fSet) { LIMITED_METHOD_CONTRACT; WORD wOldState = m_wFlags3AndTokenRemainder; DWORD dwMask = wMask; // We need to make this operation atomic (multiple threads can play with the flags field at the same time). But the flags field // is a word and we only have interlock operations over dwords. So we round down the flags field address to the nearest aligned // dword (along with the intended bitfield mask). Note that we make the assumption that the flags word is aligned itself, so we // only have two possibilites: the field already lies on a dword boundary or it's precisely one word out. DWORD* pdwFlags = (DWORD*)((ULONG_PTR)&m_wFlags3AndTokenRemainder - (offsetof(MethodDesc, m_wFlags3AndTokenRemainder) & 0x3)); #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:6326) // "Suppress PREFast warning about comparing two constants" #endif // _PREFAST_ #if BIGENDIAN if ((offsetof(MethodDesc, m_wFlags3AndTokenRemainder) & 0x3) == 0) { #else // !BIGENDIAN if ((offsetof(MethodDesc, m_wFlags3AndTokenRemainder) & 0x3) != 0) { #endif // !BIGENDIAN static_assert_no_msg(sizeof(m_wFlags3AndTokenRemainder) == 2); dwMask <<= 16; } #ifdef _PREFAST_ #pragma warning(pop) #endif g_IBCLogger.LogMethodDescWriteAccess(this); if (fSet) FastInterlockOr(pdwFlags, dwMask); else FastInterlockAnd(pdwFlags, ~dwMask); return wOldState; } #endif // !DACCESS_COMPILE //******************************************************************************* // Returns the address of the native code. // // Methods which have no native code are either implemented by stubs or not jitted yet. // For example, NDirectMethodDesc's have no native code. They are treated as // implemented by stubs. On WIN64, these stubs are IL stubs, which DO have native code. // // This function returns null if the method has no native code. PCODE MethodDesc::GetNativeCode() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; _ASSERTE(!IsDefaultInterfaceMethod() || HasNativeCodeSlot()); g_IBCLogger.LogMethodDescAccess(this); if (HasNativeCodeSlot()) { // When profiler is enabled, profiler may ask to rejit a code even though we // we have ngen code for this MethodDesc. (See MethodDesc::DoPrestub). // This means that *GetAddrOfNativeCodeSlot() // is not stable. It can turn from non-zero to zero. PCODE pCode = *GetAddrOfNativeCodeSlot(); #ifdef TARGET_ARM if (pCode != NULL) pCode |= THUMB_CODE; #endif return pCode; } if (!HasStableEntryPoint() || HasPrecode()) return NULL; return GetStableEntryPoint(); } //******************************************************************************* PTR_PCODE MethodDesc::GetAddrOfNativeCodeSlot() { WRAPPER_NO_CONTRACT; _ASSERTE(HasNativeCodeSlot()); SIZE_T size = s_ClassificationSizeTable[m_wFlags & (mdcClassification | mdcHasNonVtableSlot | mdcMethodImpl)]; return (PTR_PCODE)(dac_cast<TADDR>(this) + size); } //******************************************************************************* BOOL MethodDesc::IsVoid() { WRAPPER_NO_CONTRACT; MetaSig sig(this); return sig.IsReturnTypeVoid(); } //******************************************************************************* BOOL MethodDesc::HasRetBuffArg() { WRAPPER_NO_CONTRACT; MetaSig sig(this); ArgIterator argit(&sig); return argit.HasRetBuffArg(); } //******************************************************************************* // This returns the offset of the IL. // The offset is relative to the base of the IL image. ULONG MethodDesc::GetRVA() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END if (IsRuntimeSupplied()) { return 0; } // Methods without metadata don't have an RVA. Examples are IL stubs and LCG methods. if (IsNoMetadata()) { return 0; } if (GetMemberDef() & 0x00FFFFFF) { Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); DWORD dwDescrOffset; DWORD dwImplFlags; if (FAILED(pModule->GetMDImport()->GetMethodImplProps(GetMemberDef(), &dwDescrOffset, &dwImplFlags))) { // Class loader already asked for MethodImpls, so this should always succeed (unless there's a // bug or a new code path) _ASSERTE(!"If this ever fires, then this method should return HRESULT"); return 0; } BAD_FORMAT_NOTHROW_ASSERT(IsNDirect() || IsMiIL(dwImplFlags) || IsMiOPTIL(dwImplFlags) || dwDescrOffset == 0); return dwDescrOffset; } return 0; } //******************************************************************************* BOOL MethodDesc::IsVarArg() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; SUPPORTS_DAC; Signature signature = GetSignature(); _ASSERTE(!signature.IsEmpty()); return MetaSig::IsVarArg(signature); } //******************************************************************************* COR_ILMETHOD* MethodDesc::GetILHeader(BOOL fAllowOverrides /*=FALSE*/) { CONTRACTL { THROWS; GC_NOTRIGGER; PRECONDITION(IsIL()); PRECONDITION(!IsUnboxingStub()); } CONTRACTL_END Module *pModule = GetModule(); // Always pickup 'permanent' overrides like reflection emit, EnC, etc. // but only grab temporary overrides (like profiler rewrites) if asked to TADDR pIL = pModule->GetDynamicIL(GetMemberDef(), fAllowOverrides); if (pIL == NULL) { pIL = pModule->GetIL(GetRVA()); } #ifdef _DEBUG_IMPL if (pIL != NULL) { // // This is convenient place to verify that COR_ILMETHOD_DECODER::GetOnDiskSize is in sync // with our private DACized copy in PEDecoder::ComputeILMethodSize // COR_ILMETHOD_DECODER header((COR_ILMETHOD *)pIL); SIZE_T size1 = header.GetOnDiskSize((COR_ILMETHOD *)pIL); SIZE_T size2 = PEDecoder::ComputeILMethodSize(pIL); _ASSERTE(size1 == size2); } #endif #ifdef DACCESS_COMPILE return (pIL != NULL) ? DacGetIlMethod(pIL) : NULL; #else // !DACCESS_COMPILE return PTR_COR_ILMETHOD(pIL); #endif // !DACCESS_COMPILE } //******************************************************************************* ReturnKind MethodDesc::ParseReturnKindFromSig(INDEBUG(bool supportStringConstructors)) { CONTRACTL { if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END ENABLE_FORBID_GC_LOADER_USE_IN_THIS_SCOPE(); TypeHandle thValueType; MetaSig sig(this); CorElementType et = sig.GetReturnTypeNormalized(&thValueType); switch (et) { case ELEMENT_TYPE_STRING: case ELEMENT_TYPE_CLASS: case ELEMENT_TYPE_SZARRAY: case ELEMENT_TYPE_ARRAY: case ELEMENT_TYPE_OBJECT: case ELEMENT_TYPE_VAR: return RT_Object; #ifdef ENREGISTERED_RETURNTYPE_INTEGER_MAXSIZE case ELEMENT_TYPE_VALUETYPE: // We return value types in registers if they fit in ENREGISTERED_RETURNTYPE_MAXSIZE // These valuetypes could contain gc refs. { ArgIterator argit(&sig); if (!argit.HasRetBuffArg()) { // the type must already be loaded _ASSERTE(!thValueType.IsNull()); if (!thValueType.IsTypeDesc()) { MethodTable * pReturnTypeMT = thValueType.AsMethodTable(); #ifdef UNIX_AMD64_ABI if (pReturnTypeMT->IsRegPassedStruct()) { // The Multi-reg return case using the classhandle is only implemented for AMD64 SystemV ABI. // On other platforms, multi-reg return is not supported with GcInfo v1. // So, the relevant information must be obtained from the GcInfo tables (which requires version2). EEClass* eeClass = pReturnTypeMT->GetClass(); ReturnKind regKinds[2] = { RT_Unset, RT_Unset }; int orefCount = 0; for (int i = 0; i < 2; i++) { if (eeClass->GetEightByteClassification(i) == SystemVClassificationTypeIntegerReference) { regKinds[i] = RT_Object; } else if (eeClass->GetEightByteClassification(i) == SystemVClassificationTypeIntegerByRef) { regKinds[i] = RT_ByRef; } else { regKinds[i] = RT_Scalar; } } ReturnKind structReturnKind = GetStructReturnKind(regKinds[0], regKinds[1]); return structReturnKind; } #endif // UNIX_AMD64_ABI if (pReturnTypeMT->ContainsPointers() || pReturnTypeMT->IsByRefLike()) { if (pReturnTypeMT->GetNumInstanceFields() == 1) { _ASSERTE(pReturnTypeMT->GetNumInstanceFieldBytes() == sizeof(void*)); // Note: we can't distinguish RT_Object from RT_ByRef, the caller has to tolerate that. return RT_Object; } else { // Multi reg return case with pointers, can't restore the actual kind. return RT_Illegal; } } } } } break; #endif // ENREGISTERED_RETURNTYPE_INTEGER_MAXSIZE #ifdef _DEBUG case ELEMENT_TYPE_VOID: // String constructors return objects. We should not have any ecall string // constructors, except when called from gc coverage codes (which is only // done under debug). We will therefore optimize the retail version of this // method to not support string constructors. if (IsCtor() && GetMethodTable()->HasComponentSize()) { _ASSERTE(supportStringConstructors); return RT_Object; } break; #endif // _DEBUG case ELEMENT_TYPE_BYREF: return RT_ByRef; default: break; } return RT_Scalar; } ReturnKind MethodDesc::GetReturnKind(INDEBUG(bool supportStringConstructors)) { // For simplicity, we don't hijack in funclets, but if you ever change that, // be sure to choose the OnHijack... callback type to match that of the FUNCLET // not the main method (it would probably be Scalar). ENABLE_FORBID_GC_LOADER_USE_IN_THIS_SCOPE(); // Mark that we are performing a stackwalker like operation on the current thread. // This is necessary to allow the signature parsing functions to work without triggering any loads StackWalkerWalkingThreadHolder threadStackWalking(GetThread()); #ifdef TARGET_X86 MetaSig msig(this); if (msig.HasFPReturn()) { // Figuring out whether the function returns FP or not is hard to do // on-the-fly, so we use a different callback helper on x86 where this // piece of information is needed in order to perform the right save & // restore of the return value around the call to OnHijackScalarWorker. return RT_Float; } #endif // TARGET_X86 return ParseReturnKindFromSig(INDEBUG(supportStringConstructors)); } #ifdef FEATURE_COMINTEROP #ifndef DACCESS_COMPILE //******************************************************************************* LONG MethodDesc::GetComDispid() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END ULONG dispid = -1; HRESULT hr = GetMDImport()->GetDispIdOfMemberDef( GetMemberDef(), // The member for which to get props. &dispid // return dispid. ); if (FAILED(hr)) return -1; return (LONG)dispid; } //******************************************************************************* WORD MethodDesc::GetComSlot() { CONTRACTL { THROWS; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END MethodTable * pMT = GetMethodTable(); _ASSERTE(pMT->IsInterface()); // COM slots are biased from MethodTable slots depending on interface type WORD numExtraSlots = ComMethodTable::GetNumExtraSlots(pMT->GetComInterfaceType()); // Normal interfaces are layed out the same way as in the MethodTable, while // sparse interfaces need to go through an extra layer of mapping. WORD slot; if (pMT->IsSparseForCOMInterop()) slot = numExtraSlots + pMT->GetClass()->GetSparseCOMInteropVTableMap()->LookupVTSlot(GetSlot()); else slot = numExtraSlots + GetSlot(); return slot; } #endif // !DACCESS_COMPILE #endif // FEATURE_COMINTEROP //******************************************************************************* DWORD MethodDesc::GetAttrs() const { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END if (IsArray()) return dac_cast<PTR_ArrayMethodDesc>(this)->GetAttrs(); else if (IsNoMetadata()) return dac_cast<PTR_DynamicMethodDesc>(this)->GetAttrs(); DWORD dwAttributes; if (FAILED(GetMDImport()->GetMethodDefProps(GetMemberDef(), &dwAttributes))) { // Class loader already asked for attributes, so this should always succeed (unless there's a // bug or a new code path) _ASSERTE(!"If this ever fires, then this method should return HRESULT"); return 0; } return dwAttributes; } //******************************************************************************* DWORD MethodDesc::GetImplAttrs() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END DWORD props; if (FAILED(GetMDImport()->GetMethodImplProps(GetMemberDef(), NULL, &props))) { // Class loader already asked for MethodImpls, so this should always succeed (unless there's a // bug or a new code path) _ASSERTE(!"If this ever fires, then this method should return HRESULT"); return 0; } return props; } //******************************************************************************* Module* MethodDesc::GetLoaderModule() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (HasMethodInstantiation() && !IsGenericMethodDefinition()) { Module *retVal = ClassLoader::ComputeLoaderModule(GetMethodTable(), GetMemberDef(), GetMethodInstantiation()); return retVal; } else { return GetMethodTable()->GetLoaderModule(); } } //******************************************************************************* Module *MethodDesc::GetModule() const { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; SUPPORTS_DAC; g_IBCLogger.LogMethodDescAccess(this); Module *pModule = GetModule_NoLogging(); return pModule; } //******************************************************************************* Module *MethodDesc::GetModule_NoLogging() const { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; SUPPORTS_DAC; MethodTable* pMT = GetMethodDescChunk()->GetMethodTable(); return pMT->GetModule(); } //******************************************************************************* // Is this an instantiating stub for generics? This does not include those // BoxedEntryPointStubs which call an instantiating stub. BOOL MethodDesc::IsInstantiatingStub() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return (GetClassification() == mcInstantiated) && !IsUnboxingStub() && AsInstantiatedMethodDesc()->IMD_IsWrapperStubWithInstantiations(); } //******************************************************************************* BOOL MethodDesc::IsWrapperStub() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return (IsUnboxingStub() || IsInstantiatingStub()); } #ifndef DACCESS_COMPILE //******************************************************************************* MethodDesc *MethodDesc::GetWrappedMethodDesc() { WRAPPER_NO_CONTRACT; _ASSERTE(IsWrapperStub()); if (IsUnboxingStub()) { return this->GetMethodTable()->GetUnboxedEntryPointMD(this); } if (IsInstantiatingStub()) { MethodDesc *pRet = AsInstantiatedMethodDesc()->IMD_GetWrappedMethodDesc(); #ifdef _DEBUG MethodDesc *pAltMD = MethodDesc::FindOrCreateAssociatedMethodDesc(this, this->GetMethodTable(), FALSE, /* no unboxing entrypoint */ this->GetMethodInstantiation(), TRUE /* get shared code */ ); _ASSERTE(pAltMD == pRet); #endif // _DEBUG return pRet; } return NULL; } MethodDesc *MethodDesc::GetExistingWrappedMethodDesc() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; _ASSERTE(IsWrapperStub()); if (IsUnboxingStub()) { return this->GetMethodTable()->GetExistingUnboxedEntryPointMD(this); } if (IsInstantiatingStub()) { MethodDesc *pRet = AsInstantiatedMethodDesc()->IMD_GetWrappedMethodDesc(); return pRet; } return NULL; } #endif // !DACCESS_COMPILE //******************************************************************************* BOOL MethodDesc::IsSharedByGenericInstantiations() { LIMITED_METHOD_DAC_CONTRACT; if (IsWrapperStub()) return FALSE; else if (GetMethodTable()->IsSharedByGenericInstantiations()) return TRUE; else return IsSharedByGenericMethodInstantiations(); } //******************************************************************************* BOOL MethodDesc::IsSharedByGenericMethodInstantiations() { LIMITED_METHOD_DAC_CONTRACT; if (GetClassification() == mcInstantiated) return AsInstantiatedMethodDesc()->IMD_IsSharedByGenericMethodInstantiations(); else return FALSE; } //******************************************************************************* // Does this method require an extra MethodTable argument for instantiation information? // This is the case for // * per-inst static methods in shared-code instantiated generic classes (e.g. static void MyClass<string>::m()) // - there is no this pointer providing generic dictionary info // * shared-code instance methods in instantiated generic structs (e.g. void MyValueType<string>::m()) // - unboxed 'this' pointer in value-type instance methods don't have MethodTable pointer by definition // * shared instance and default interface methods called via interface dispatch (e. g. IFoo<string>.Foo calling into IFoo<object>::Foo()) // - this pointer is ambiguous as it can implement more than one IFoo<T> BOOL MethodDesc::RequiresInstMethodTableArg() { LIMITED_METHOD_DAC_CONTRACT; return IsSharedByGenericInstantiations() && !HasMethodInstantiation() && (IsStatic() || GetMethodTable()->IsValueType() || (GetMethodTable()->IsInterface() && !IsAbstract())); } //******************************************************************************* // Does this method require an extra InstantiatedMethodDesc argument for instantiation information? // This is the case for // * shared-code instantiated generic methods BOOL MethodDesc::RequiresInstMethodDescArg() { LIMITED_METHOD_DAC_CONTRACT; return IsSharedByGenericInstantiations() && HasMethodInstantiation(); } //******************************************************************************* // Does this method require any kind of extra argument for instantiation information? BOOL MethodDesc::RequiresInstArg() { LIMITED_METHOD_DAC_CONTRACT; BOOL fRet = IsSharedByGenericInstantiations() && (HasMethodInstantiation() || IsStatic() || GetMethodTable()->IsValueType() || (GetMethodTable()->IsInterface() && !IsAbstract())); _ASSERT(fRet == (RequiresInstMethodTableArg() || RequiresInstMethodDescArg())); return fRet; } //******************************************************************************* BOOL MethodDesc::IsRuntimeMethodHandle() { WRAPPER_NO_CONTRACT; // <TODO> Refine this check further for BoxedEntryPointStubs </TODO> return (!HasMethodInstantiation() || !IsSharedByGenericMethodInstantiations()); } //******************************************************************************* // Strip off method and class instantiation if present e.g. // C1<int>.m1<string> -> C1.m1 // C1<int>.m2 -> C1.m2 // C2.m2<int> -> C2.m2 // C2.m2 -> C2.m2 MethodDesc* MethodDesc::LoadTypicalMethodDefinition() { CONTRACT(MethodDesc*) { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); POSTCONDITION(CheckPointer(RETVAL)); POSTCONDITION(RETVAL->IsTypicalMethodDefinition()); } CONTRACT_END #ifndef DACCESS_COMPILE if (HasClassOrMethodInstantiation()) { MethodTable *pMT = GetMethodTable(); if (!pMT->IsTypicalTypeDefinition()) pMT = ClassLoader::LoadTypeDefThrowing(pMT->GetModule(), pMT->GetCl(), ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef).GetMethodTable(); CONSISTENCY_CHECK(TypeHandle(pMT).CheckFullyLoaded()); MethodDesc *resultMD = pMT->GetParallelMethodDesc(this); PREFIX_ASSUME(resultMD != NULL); resultMD->CheckRestore(); RETURN (resultMD); } else #endif // !DACCESS_COMPILE RETURN(this); } //******************************************************************************* BOOL MethodDesc::IsTypicalMethodDefinition() const { LIMITED_METHOD_CONTRACT; if (HasMethodInstantiation() && !IsGenericMethodDefinition()) return FALSE; if (HasClassInstantiation() && !GetMethodTable()->IsGenericTypeDefinition()) return FALSE; return TRUE; } //******************************************************************************* BOOL MethodDesc::AcquiresInstMethodTableFromThis() { LIMITED_METHOD_CONTRACT; SUPPORTS_DAC; return IsSharedByGenericInstantiations() && !HasMethodInstantiation() && !IsStatic() && !GetMethodTable()->IsValueType() && !(GetMethodTable()->IsInterface() && !IsAbstract()); } //******************************************************************************* UINT MethodDesc::SizeOfArgStack() { WRAPPER_NO_CONTRACT; MetaSig msig(this); ArgIterator argit(&msig); return argit.SizeOfArgStack(); } UINT MethodDesc::SizeOfNativeArgStack() { #ifndef UNIX_AMD64_ABI return SizeOfArgStack(); #else WRAPPER_NO_CONTRACT; MetaSig msig(this); PInvokeArgIterator argit(&msig); return argit.SizeOfArgStack(); #endif } #ifdef TARGET_X86 //******************************************************************************* UINT MethodDesc::CbStackPop() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; MetaSig msig(this); ArgIterator argit(&msig); bool fCtorOfVariableSizedObject = msig.HasThis() && (GetMethodTable() == g_pStringClass) && IsCtor(); if (fCtorOfVariableSizedObject) { msig.ClearHasThis(); } return argit.CbStackPop(); } #endif // TARGET_X86 #ifndef DACCESS_COMPILE //******************************************************************************* // Strip off the method instantiation (if present) e.g. // C<int>.m<string> -> C<int>.m // D.m<string> -> D.m // Note that this also canonicalizes the owning method table // @todo check uses and clean this up MethodDesc* MethodDesc::StripMethodInstantiation() { CONTRACT(MethodDesc*) { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END if (!HasClassOrMethodInstantiation()) RETURN(this); MethodTable *pMT = GetMethodTable()->GetCanonicalMethodTable(); MethodDesc *resultMD = pMT->GetParallelMethodDesc(this); _ASSERTE(resultMD->IsGenericMethodDefinition() || !resultMD->HasMethodInstantiation()); RETURN(resultMD); } //******************************************************************************* MethodDescChunk *MethodDescChunk::CreateChunk(LoaderHeap *pHeap, DWORD methodDescCount, DWORD classification, BOOL fNonVtableSlot, BOOL fNativeCodeSlot, BOOL fComPlusCallInfo, MethodTable *pInitialMT, AllocMemTracker *pamTracker) { CONTRACT(MethodDescChunk *) { THROWS; GC_NOTRIGGER; INJECT_FAULT(ThrowOutOfMemory()); PRECONDITION(CheckPointer(pHeap)); PRECONDITION(CheckPointer(pInitialMT)); PRECONDITION(CheckPointer(pamTracker)); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; SIZE_T oneSize = MethodDesc::GetBaseSize(classification); if (fNonVtableSlot) oneSize += sizeof(MethodDesc::NonVtableSlot); if (fNativeCodeSlot) oneSize += sizeof(MethodDesc::NativeCodeSlot); #ifdef FEATURE_COMINTEROP if (fComPlusCallInfo) oneSize += sizeof(ComPlusCallInfo); #else // FEATURE_COMINTEROP _ASSERTE(!fComPlusCallInfo); #endif // FEATURE_COMINTEROP _ASSERTE((oneSize & MethodDesc::ALIGNMENT_MASK) == 0); DWORD maxMethodDescsPerChunk = MethodDescChunk::MaxSizeOfMethodDescs / oneSize; if (methodDescCount == 0) methodDescCount = maxMethodDescsPerChunk; MethodDescChunk * pFirstChunk = NULL; do { DWORD count = min(methodDescCount, maxMethodDescsPerChunk); void * pMem = pamTracker->Track( pHeap->AllocMem(S_SIZE_T(sizeof(TADDR) + sizeof(MethodDescChunk) + oneSize * count))); // Skip pointer to temporary entrypoints MethodDescChunk * pChunk = (MethodDescChunk *)((BYTE*)pMem + sizeof(TADDR)); pChunk->SetSizeAndCount(oneSize * count, count); pChunk->SetMethodTable(pInitialMT); MethodDesc * pMD = pChunk->GetFirstMethodDesc(); for (DWORD i = 0; i < count; i++) { pMD->SetChunkIndex(pChunk); pMD->SetClassification(classification); if (fNonVtableSlot) pMD->SetHasNonVtableSlot(); if (fNativeCodeSlot) pMD->SetHasNativeCodeSlot(); #ifdef FEATURE_COMINTEROP if (fComPlusCallInfo) pMD->SetupGenericComPlusCall(); #endif // FEATURE_COMINTEROP _ASSERTE(pMD->SizeOf() == oneSize); pMD = (MethodDesc *)((BYTE *)pMD + oneSize); } pChunk->m_next = pFirstChunk; pFirstChunk = pChunk; methodDescCount -= count; } while (methodDescCount > 0); RETURN pFirstChunk; } //-------------------------------------------------------------------- // Virtual Resolution on Objects // // Given a MethodDesc and an Object, return the target address // and/or the target MethodDesc and/or make a call. // // Some of the implementation of this logic is in // MethodTable::GetMethodDescForInterfaceMethodAndServer. // Those functions should really be moved here. //-------------------------------------------------------------------- //******************************************************************************* // The following resolve virtual dispatch for the given method on the given // object down to an actual address to call, including any // handling of context proxies and other thunking layers. MethodDesc* MethodDesc::ResolveGenericVirtualMethod(OBJECTREF *orThis) { CONTRACT(MethodDesc *) { THROWS; GC_TRIGGERS; PRECONDITION(IsVtableMethod()); PRECONDITION(HasMethodInstantiation()); PRECONDITION(!ContainsGenericVariables()); POSTCONDITION(CheckPointer(RETVAL)); POSTCONDITION(RETVAL->HasMethodInstantiation()); } CONTRACT_END; // Method table of target (might be instantiated) MethodTable *pObjMT = (*orThis)->GetMethodTable(); // This is the static method descriptor describing the call. // It is not the destination of the call, which we must compute. MethodDesc* pStaticMD = this; // Strip off the method instantiation if present MethodDesc* pStaticMDWithoutGenericMethodArgs = pStaticMD->StripMethodInstantiation(); // Compute the target, though we have not yet applied the type arguments. MethodDesc *pTargetMDBeforeGenericMethodArgs = pStaticMD->IsInterface() ? MethodTable::GetMethodDescForInterfaceMethodAndServer(TypeHandle(pStaticMD->GetMethodTable()), pStaticMDWithoutGenericMethodArgs,orThis) : pObjMT->GetMethodDescForSlot(pStaticMDWithoutGenericMethodArgs->GetSlot()); pTargetMDBeforeGenericMethodArgs->CheckRestore(); // The actual destination may lie anywhere in the inheritance hierarchy. // between the static descriptor and the target object. // So now compute where we are really going! This may be an instantiated // class type if the generic virtual lies in a generic class. MethodTable *pTargetMT = pTargetMDBeforeGenericMethodArgs->GetMethodTable(); // No need to find/create a new generic instantiation if the target is the // same as the static, i.e. the virtual method has not been overriden. if (!pTargetMT->IsSharedByGenericInstantiations() && !pTargetMT->IsValueType() && pTargetMDBeforeGenericMethodArgs == pStaticMDWithoutGenericMethodArgs) RETURN(pStaticMD); if (pTargetMT->IsSharedByGenericInstantiations()) { pTargetMT = ClassLoader::LoadGenericInstantiationThrowing(pTargetMT->GetModule(), pTargetMT->GetCl(), pTargetMDBeforeGenericMethodArgs->GetExactClassInstantiation(TypeHandle(pObjMT))).GetMethodTable(); } RETURN(MethodDesc::FindOrCreateAssociatedMethodDesc( pTargetMDBeforeGenericMethodArgs, pTargetMT, (pTargetMT->IsValueType()), /* get unboxing entry point if a struct*/ pStaticMD->GetMethodInstantiation(), FALSE /* no allowInstParam */ )); } //******************************************************************************* PCODE MethodDesc::GetSingleCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeHandle staticTH) { WRAPPER_NO_CONTRACT; PRECONDITION(IsVtableMethod()); MethodTable *pObjMT = (*orThis)->GetMethodTable(); if (HasMethodInstantiation()) { CheckRestore(); MethodDesc *pResultMD = ResolveGenericVirtualMethod(orThis); // If we're remoting this call we can't call directly on the returned // method desc, we need to go through a stub that guarantees we end up // in the remoting handler. The stub we use below is normally just for // non-virtual calls on virtual methods (that have the same problem // where we could end up bypassing the remoting system), but it serves // our purpose here (basically pushes our correctly instantiated, // resolved method desc on the stack and calls the remoting code). return pResultMD->GetSingleCallableAddrOfCode(); } if (IsInterface()) { MethodDesc * pTargetMD = MethodTable::GetMethodDescForInterfaceMethodAndServer(staticTH,this,orThis); return pTargetMD->GetSingleCallableAddrOfCode(); } return pObjMT->GetRestoredSlot(GetSlot()); } //******************************************************************************* // The following resolve virtual dispatch for the given method on the given // object down to an actual address to call, including any // handling of context proxies and other thunking layers. PCODE MethodDesc::GetMultiCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeHandle staticTH) { CONTRACT(PCODE) { THROWS; GC_TRIGGERS; PRECONDITION(IsVtableMethod()); POSTCONDITION(RETVAL != NULL); } CONTRACT_END; // Method table of target (might be instantiated) MethodTable *pObjMT = (*orThis)->GetMethodTable(); // This is the static method descriptor describing the call. // It is not the destination of the call, which we must compute. MethodDesc* pStaticMD = this; MethodDesc *pTargetMD; if (pStaticMD->HasMethodInstantiation()) { CheckRestore(); pTargetMD = ResolveGenericVirtualMethod(orThis); // If we're remoting this call we can't call directly on the returned // method desc, we need to go through a stub that guarantees we end up // in the remoting handler. The stub we use below is normally just for // non-virtual calls on virtual methods (that have the same problem // where we could end up bypassing the remoting system), but it serves // our purpose here (basically pushes our correctly instantiated, // resolved method desc on the stack and calls the remoting code). RETURN(pTargetMD->GetMultiCallableAddrOfCode()); } if (pStaticMD->IsInterface()) { pTargetMD = MethodTable::GetMethodDescForInterfaceMethodAndServer(staticTH,pStaticMD,orThis); RETURN(pTargetMD->GetMultiCallableAddrOfCode()); } pTargetMD = pObjMT->GetMethodDescForSlot(pStaticMD->GetSlot()); RETURN (pTargetMD->GetMultiCallableAddrOfCode()); } //******************************************************************************* PCODE MethodDesc::GetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags /*=CORINFO_ACCESS_LDFTN*/) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END PCODE ret = TryGetMultiCallableAddrOfCode(accessFlags); if (ret == NULL) { GCX_COOP(); // We have to allocate funcptr stub ret = GetLoaderAllocator()->GetFuncPtrStubs()->GetFuncPtrStub(this); } return ret; } //******************************************************************************* // // Returns a callable entry point for a function. // Multiple entry points could be used for a single function. // ie. this function is not idempotent // // We must ensure that GetMultiCallableAddrOfCode works // correctly for all of the following cases: // 1. shared generic method instantiations // 2. unshared generic method instantiations // 3. instance methods in shared generic classes // 4. instance methods in unshared generic classes // 5. static methods in shared generic classes. // 6. static methods in unshared generic classes. // // For case 1 and 5 the methods are implemented using // an instantiating stub (i.e. IsInstantiatingStub() // should be true). These stubs pass on to // shared-generic-code-which-requires-an-extra-type-context-parameter. // So whenever we use LDFTN on these we need to give out // the address of an instantiating stub. // // For cases 2, 3, 4 and 6 we can just use the standard technique for LdFtn: // (for 2 we give out the address of the fake "slot" in InstantiatedMethodDescs) // (for 3 it doesn't matter if the code is shared between instantiations // because the instantiation context is picked up from the "this" parameter.) PCODE MethodDesc::TryGetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END // Record this method desc if required g_IBCLogger.LogMethodDescAccess(this); if (IsGenericMethodDefinition()) { _ASSERTE(!"Cannot take the address of an uninstantiated generic method."); COMPlusThrow(kInvalidProgramException); } if (accessFlags & CORINFO_ACCESS_LDFTN) { // Whenever we use LDFTN on shared-generic-code-which-requires-an-extra-parameter // we need to give out the address of an instantiating stub. This is why we give // out GetStableEntryPoint() for the IsInstantiatingStub() case: this is // safe. But first we assert that we only use GetMultiCallableAddrOfCode on // the instantiating stubs and not on the shared code itself. _ASSERTE(!RequiresInstArg()); _ASSERTE(!IsSharedByGenericMethodInstantiations()); // No other access flags are valid with CORINFO_ACCESS_LDFTN _ASSERTE((accessFlags & ~CORINFO_ACCESS_LDFTN) == 0); } // We create stable entrypoints for these upfront if (IsWrapperStub() || IsEnCAddedMethod()) return GetStableEntryPoint(); // For EnC always just return the stable entrypoint so we can update the code if (IsEnCMethod()) return GetStableEntryPoint(); // If the method has already been jitted, we can give out the direct address // Note that we may have previously created a FuncPtrStubEntry, but // GetMultiCallableAddrOfCode() does not need to be idempotent. if (IsFCall()) { // Call FCalls directly when possible if (!IsInterface() && !GetMethodTable()->ContainsGenericVariables()) { BOOL fSharedOrDynamicFCallImpl; PCODE pFCallImpl = ECall::GetFCallImpl(this, &fSharedOrDynamicFCallImpl); if (!fSharedOrDynamicFCallImpl) return pFCallImpl; // Fake ctors share one implementation that has to be wrapped by prestub GetOrCreatePrecode(); } } else { if (IsPointingToStableNativeCode()) return GetNativeCode(); } if (HasStableEntryPoint()) return GetStableEntryPoint(); if (IsVersionableWithVtableSlotBackpatch()) { // Caller has to call via slot or allocate funcptr stub return NULL; } // Force the creation of the precode if we would eventually got one anyway if (MayHavePrecode()) return GetOrCreatePrecode()->GetEntryPoint(); #ifdef HAS_COMPACT_ENTRYPOINTS // Caller has to call via slot or allocate funcptr stub return NULL; #else // HAS_COMPACT_ENTRYPOINTS // // Embed call to the temporary entrypoint into the code. It will be patched // to point to the actual code later. // return GetTemporaryEntryPoint(); #endif // HAS_COMPACT_ENTRYPOINTS } //******************************************************************************* PCODE MethodDesc::GetCallTarget(OBJECTREF* pThisObj, TypeHandle ownerType) { CONTRACTL { THROWS; // Resolving a generic virtual method can throw GC_TRIGGERS; MODE_COOPERATIVE; } CONTRACTL_END PCODE pTarget; if (IsVtableMethod() && !GetMethodTable()->IsValueType()) { CONSISTENCY_CHECK(NULL != pThisObj); if (ownerType.IsNull()) ownerType = GetMethodTable(); pTarget = GetSingleCallableAddrOfVirtualizedCode(pThisObj, ownerType); } else { pTarget = GetSingleCallableAddrOfCode(); } return pTarget; } MethodDesc* NonVirtualEntry2MethodDesc(PCODE entryPoint) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END RangeSection* pRS = ExecutionManager::FindCodeRange(entryPoint, ExecutionManager::GetScanFlags()); if (pRS == NULL) return NULL; MethodDesc* pMD; if (pRS->pjit->JitCodeToMethodInfo(pRS, entryPoint, &pMD, NULL)) return pMD; if (pRS->pjit->GetStubCodeBlockKind(pRS, entryPoint) == STUB_CODE_BLOCK_PRECODE) return MethodDesc::GetMethodDescFromStubAddr(entryPoint); // We should never get here _ASSERTE(!"NonVirtualEntry2MethodDesc failed for RangeSection"); return NULL; } //******************************************************************************* // convert an entry point into a method desc MethodDesc* Entry2MethodDesc(PCODE entryPoint, MethodTable *pMT) { CONTRACT(MethodDesc*) { THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(RETVAL->SanityCheck()); } CONTRACT_END MethodDesc* pMD = NonVirtualEntry2MethodDesc(entryPoint); if (pMD != NULL) RETURN(pMD); pMD = VirtualCallStubManagerManager::Entry2MethodDesc(entryPoint, pMT); if (pMD != NULL) RETURN(pMD); // Is it an FCALL? pMD = ECall::MapTargetBackToMethod(entryPoint); if (pMD != NULL) RETURN(pMD); // We should never get here _ASSERTE(!"Entry2MethodDesc failed"); RETURN (NULL); } //******************************************************************************* BOOL MethodDesc::IsPointingToPrestub() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (!HasStableEntryPoint()) { if (IsVersionableWithVtableSlotBackpatch()) { return GetMethodEntryPoint() == GetTemporaryEntryPoint(); } return TRUE; } if (!HasPrecode()) return FALSE; return GetPrecode()->IsPointingToPrestub(); } //******************************************************************************* void MethodDesc::Reset() { WRAPPER_NO_CONTRACT; // This method is not thread-safe since we are updating // different pieces of data non-atomically. // Use this only if you can guarantee thread-safety somehow. _ASSERTE(IsEnCMethod() || // The process is frozen by the debugger IsDynamicMethod() || // These are used in a very restricted way GetLoaderModule()->IsReflection()); // Rental methods // Reset any flags relevant to the old code ClearFlagsOnUpdate(); if (HasPrecode()) { GetPrecode()->Reset(); } else { // We should go here only for the rental methods _ASSERTE(GetLoaderModule()->IsReflection()); InterlockedUpdateFlags2(enum_flag2_HasStableEntryPoint | enum_flag2_HasPrecode, FALSE); *GetAddrOfSlot() = GetTemporaryEntryPoint(); } if (HasNativeCodeSlot()) { *GetAddrOfNativeCodeSlot() = NULL; } _ASSERTE(!HasNativeCode()); } //******************************************************************************* Dictionary* MethodDesc::GetMethodDictionary() { WRAPPER_NO_CONTRACT; return (GetClassification() == mcInstantiated) ? (Dictionary*) (AsInstantiatedMethodDesc()->IMD_GetMethodDictionary()) : NULL; } //******************************************************************************* DictionaryLayout* MethodDesc::GetDictionaryLayout() { WRAPPER_NO_CONTRACT; return ((GetClassification() == mcInstantiated) && !IsUnboxingStub()) ? AsInstantiatedMethodDesc()->IMD_GetDictionaryLayout() : NULL; } #endif // !DACCESS_COMPILE //******************************************************************************* MethodImpl *MethodDesc::GetMethodImpl() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; PRECONDITION(HasMethodImplSlot()); SUPPORTS_DAC; } CONTRACTL_END SIZE_T size = s_ClassificationSizeTable[m_wFlags & (mdcClassification | mdcHasNonVtableSlot)]; return PTR_MethodImpl(dac_cast<TADDR>(this) + size); } #ifndef DACCESS_COMPILE //******************************************************************************* BOOL MethodDesc::RequiresMethodDescCallingConvention(BOOL fEstimateForChunk /*=FALSE*/) { LIMITED_METHOD_CONTRACT; // Interop marshaling is implemented using shared stubs if (IsNDirect() || IsComPlusCall() || IsGenericComPlusCall()) return TRUE; return FALSE; } //******************************************************************************* BOOL MethodDesc::RequiresStableEntryPoint(BOOL fEstimateForChunk /*=FALSE*/) { LIMITED_METHOD_CONTRACT; // Create precodes for versionable methods if (IsVersionableWithPrecode()) return TRUE; // Create precodes for edit and continue to make methods updateable if (IsEnCMethod() || IsEnCAddedMethod()) return TRUE; // Precreate precodes for LCG methods so we do not leak memory when the method descs are recycled if (IsLCGMethod()) return TRUE; if (fEstimateForChunk) { // Make a best guess based on the method table of the chunk. if (IsInterface()) return TRUE; } else { // Wrapper stubs are stored in generic dictionary that's not backpatched if (IsWrapperStub()) return TRUE; // TODO: Can we avoid early allocation of precodes for interfaces and cominterop? if ((IsInterface() && !IsStatic() && IsVirtual()) || IsComPlusCall()) return TRUE; } return FALSE; } #endif // !DACCESS_COMPILE //******************************************************************************* BOOL MethodDesc::MayHaveNativeCode() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END // This code flow of this method should roughly match the code flow of MethodDesc::DoPrestub. switch (GetClassification()) { case mcIL: // IsIL() case. Handled below. break; case mcFCall: // FCalls do not have real native code. return FALSE; case mcNDirect: // NDirect never have native code (note that the NDirect method return FALSE; // does not appear as having a native code even for stubs as IL) case mcEEImpl: // Runtime provided implementation. No native code. return FALSE; case mcArray: // Runtime provided implementation. No native code. return FALSE; case mcInstantiated: // IsIL() case. Handled below. break; #ifdef FEATURE_COMINTEROP case mcComInterop: // Generated stub. No native code. return FALSE; #endif // FEATURE_COMINTEROP case mcDynamic: // LCG or stub-as-il. return TRUE; default: _ASSERTE(!"Unknown classification"); } _ASSERTE(IsIL()); if (IsWrapperStub() || ContainsGenericVariables() || IsAbstract()) { return FALSE; } return TRUE; } //******************************************************************************* void MethodDesc::CheckRestore(ClassLoadLevel level) { STATIC_CONTRACT_THROWS; STATIC_CONTRACT_GC_TRIGGERS; STATIC_CONTRACT_FAULT; if (!GetMethodTable()->IsFullyLoaded()) { g_IBCLogger.LogMethodDescAccess(this); if (GetClassification() == mcInstantiated) { #ifndef DACCESS_COMPILE InstantiatedMethodDesc *pIMD = AsInstantiatedMethodDesc(); // First restore method table pointer in singleton chunk; // it might be out-of-module ClassLoader::EnsureLoaded(TypeHandle(GetMethodTable()), level); g_IBCLogger.LogMethodDescWriteAccess(this); pIMD->m_wFlags2 = pIMD->m_wFlags2 & ~InstantiatedMethodDesc::Unrestored; if (ETW_PROVIDER_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER)) { ETW::MethodLog::MethodRestored(this); } #else // DACCESS_COMPILE DacNotImpl(); #endif // DACCESS_COMPILE } else if (IsILStub()) // the only stored-sig MD type that uses ET_INTERNAL { ClassLoader::EnsureLoaded(TypeHandle(GetMethodTable()), level); #ifndef DACCESS_COMPILE if (ETW_PROVIDER_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER)) { ETW::MethodLog::MethodRestored(this); } #else // DACCESS_COMPILE DacNotImpl(); #endif // DACCESS_COMPILE } else { ClassLoader::EnsureLoaded(TypeHandle(GetMethodTable()), level); } } } // static MethodDesc* MethodDesc::GetMethodDescFromStubAddr(PCODE addr, BOOL fSpeculative /*=FALSE*/) { CONTRACT(MethodDesc *) { GC_NOTRIGGER; NOTHROW; } CONTRACT_END; MethodDesc * pMD = NULL; #ifdef HAS_COMPACT_ENTRYPOINTS if (MethodDescChunk::IsCompactEntryPointAtAddress(addr)) { pMD = MethodDescChunk::GetMethodDescFromCompactEntryPoint(addr, fSpeculative); RETURN(pMD); } #endif // HAS_COMPACT_ENTRYPOINTS // Otherwise this must be some kind of precode // Precode* pPrecode = Precode::GetPrecodeFromEntryPoint(addr, fSpeculative); PREFIX_ASSUME(fSpeculative || (pPrecode != NULL)); if (pPrecode != NULL) { pMD = pPrecode->GetMethodDesc(fSpeculative); RETURN(pMD); } RETURN(NULL); // Not found } #ifdef HAS_COMPACT_ENTRYPOINTS #if defined(TARGET_X86) #include <pshpack1.h> static const struct CentralJumpCode { BYTE m_movzxEAX[3]; BYTE m_shlEAX[3]; BYTE m_addEAX[1]; MethodDesc* m_pBaseMD; BYTE m_jmp[1]; INT32 m_rel32; inline void Setup(CentralJumpCode* pCodeRX, MethodDesc* pMD, PCODE target, LoaderAllocator *pLoaderAllocator) { WRAPPER_NO_CONTRACT; m_pBaseMD = pMD; m_rel32 = rel32UsingJumpStub(&pCodeRX->m_rel32, target, pMD, pLoaderAllocator); } inline BOOL CheckTarget(TADDR target) { LIMITED_METHOD_CONTRACT; TADDR addr = rel32Decode(PTR_HOST_MEMBER_TADDR(CentralJumpCode, this, m_rel32)); return (addr == target); } } c_CentralJumpCode = { { 0x0F, 0xB6, 0xC0 }, // movzx eax,al { 0xC1, 0xE0, MethodDesc::ALIGNMENT_SHIFT }, // shl eax, MethodDesc::ALIGNMENT_SHIFT { 0x05 }, NULL, // add eax, pBaseMD { 0xE9 }, 0 // jmp PreStub }; #include <poppack.h> #elif defined(TARGET_ARM) #include <pshpack1.h> struct CentralJumpCode { BYTE m_ldrPC[4]; BYTE m_short[2]; MethodDescChunk *m_pChunk; PCODE m_target; inline void Setup(PCODE target, MethodDescChunk *pChunk) { WRAPPER_NO_CONTRACT; m_target = target; m_pChunk = pChunk; } inline BOOL CheckTarget(TADDR target) { WRAPPER_NO_CONTRACT; return ((TADDR)m_target == target); } } c_CentralJumpCode = { { 0xDF, 0xF8, 0x08, 0xF0 }, // ldr pc, =pTarget { 0x00, 0x00 }, // short offset for alignment 0, // pChunk 0 // pTarget }; #include <poppack.h> #else #error Unsupported platform #endif typedef DPTR(struct CentralJumpCode) PTR_CentralJumpCode; #define TEP_CENTRAL_JUMP_SIZE sizeof(c_CentralJumpCode) static_assert_no_msg((TEP_CENTRAL_JUMP_SIZE & 1) == 0); #define TEP_ENTRY_SIZE 4 #ifdef TARGET_ARM #define TEP_HALF_ENTRY_SIZE (TEP_ENTRY_SIZE / 2) // Compact entry point on arm consists of two thumb instructions: // mov r12, pc // b CentralJumpCode // First instruction 0x46fc #define TEP_ENTRY_INSTR1_BYTE1 0xFC #define TEP_ENTRY_INSTR1_BYTE2 0x46 // Mask for unconditional branch opcode #define TEP_ENTRY_INSTR2_MASK1 0xE0 // Mask for opcode #define TEP_ENTRY_INSTR2_MASK2 0xF8 // Bit used for ARM to identify compact entry points #define COMPACT_ENTRY_ARM_CODE 0x2 /* static */ int MethodDescChunk::GetCompactEntryPointMaxCount () { LIMITED_METHOD_DAC_CONTRACT; return MAX_OFFSET_UNCONDITIONAL_BRANCH_THUMB / TEP_ENTRY_SIZE; } // Get offset from the start of current compact entry point to the CentralJumpCode static uint16_t DecodeOffsetFromBranchToCentralJump (uint16_t instr) { int16_t offset = decodeUnconditionalBranchThumb ((LPBYTE) &instr); offset += PC_REG_RELATIVE_OFFSET + TEP_HALF_ENTRY_SIZE; _ASSERTE (offset >= TEP_ENTRY_SIZE && (offset % TEP_ENTRY_SIZE == 0)); return (uint16_t) offset; } #ifndef DACCESS_COMPILE // Encode branch instruction to central jump for current compact entry point static uint16_t EncodeBranchToCentralJump (int16_t offset) { _ASSERTE (offset >= 0 && (offset % TEP_ENTRY_SIZE == 0)); offset += TEP_HALF_ENTRY_SIZE - PC_REG_RELATIVE_OFFSET; uint16_t instr; emitUnconditionalBranchThumb ((LPBYTE) &instr, offset); return instr; } #endif // DACCESS_COMPILE #else // TARGET_ARM #define TEP_MAX_BEFORE_INDEX (1 + (127 / TEP_ENTRY_SIZE)) #define TEP_MAX_BLOCK_INDEX (TEP_MAX_BEFORE_INDEX + (128 - TEP_CENTRAL_JUMP_SIZE) / TEP_ENTRY_SIZE) #define TEP_FULL_BLOCK_SIZE (TEP_MAX_BLOCK_INDEX * TEP_ENTRY_SIZE + TEP_CENTRAL_JUMP_SIZE) #endif // TARGET_ARM BOOL MethodDescChunk::IsCompactEntryPointAtAddress(PCODE addr) { LIMITED_METHOD_DAC_CONTRACT; #if defined(TARGET_X86) || defined(TARGET_AMD64) // Compact entrypoints start at odd addresses return (addr & 1) != 0; #elif defined(TARGET_ARM) // Compact entrypoints start at odd addresses (thumb) with second bit set to 1 uint8_t compactEntryPointMask = THUMB_CODE | COMPACT_ENTRY_ARM_CODE; return (addr & compactEntryPointMask) == compactEntryPointMask; #else #error Unsupported platform #endif } //******************************************************************************* /* static */ MethodDesc* MethodDescChunk::GetMethodDescFromCompactEntryPoint(PCODE addr, BOOL fSpeculative /*=FALSE*/) { LIMITED_METHOD_CONTRACT; #ifdef DACCESS_COMPILE // Always use speculative checks with DAC fSpeculative = TRUE; #endif // Always do consistency check in debug if (fSpeculative INDEBUG(|| TRUE)) { #ifdef TARGET_ARM TADDR instrCodeAddr = PCODEToPINSTR(addr); if (!IsCompactEntryPointAtAddress(addr) || *PTR_BYTE(instrCodeAddr) != TEP_ENTRY_INSTR1_BYTE1 || *PTR_BYTE(instrCodeAddr+1) != TEP_ENTRY_INSTR1_BYTE2) #else // TARGET_ARM if ((addr & 3) != 1 || *PTR_BYTE(addr) != X86_INSTR_MOV_AL || *PTR_BYTE(addr+2) != X86_INSTR_JMP_REL8) #endif // TARGET_ARM { if (fSpeculative) return NULL; _ASSERTE(!"Unexpected code in temporary entrypoint"); } } #ifdef TARGET_ARM // On ARM compact entry points are thumb _ASSERTE ((addr & THUMB_CODE) != 0); addr = addr - THUMB_CODE; // Get offset for CentralJumpCode from current compact entry point PTR_UINT16 pBranchInstr = (PTR_UINT16(addr)) + 1; uint16_t offset = DecodeOffsetFromBranchToCentralJump (*pBranchInstr); TADDR centralJump = addr + offset; int index = (centralJump - addr - TEP_ENTRY_SIZE) / TEP_ENTRY_SIZE; #else // TARGET_ARM int index = *PTR_BYTE(addr+1); TADDR centralJump = addr + 4 + *PTR_SBYTE(addr+3); #endif // TARGET_ARM CentralJumpCode* pCentralJumpCode = PTR_CentralJumpCode(centralJump); // Always do consistency check in debug if (fSpeculative INDEBUG(|| TRUE)) { SIZE_T i; for (i = 0; i < TEP_CENTRAL_JUMP_SIZE; i++) { BYTE b = ((BYTE*)&c_CentralJumpCode)[i]; if (b != 0 && b != *PTR_BYTE(centralJump+i)) { if (fSpeculative) return NULL; _ASSERTE(!"Unexpected code in temporary entrypoint"); } } #ifdef TARGET_ARM _ASSERTE_IMPL(pCentralJumpCode->CheckTarget(GetPreStubCompactARMEntryPoint())); #else // TARGET_ARM _ASSERTE_IMPL(pCentralJumpCode->CheckTarget(GetPreStubEntryPoint())); #endif // TARGET_ARM } #ifdef TARGET_ARM // Go through all MethodDesc in MethodDescChunk and find the one with the required index PTR_MethodDescChunk pChunk = *((DPTR(PTR_MethodDescChunk))(centralJump + offsetof(CentralJumpCode, m_pChunk))); TADDR pMD = PTR_HOST_TO_TADDR (pChunk->GetFirstMethodDesc ()); _ASSERTE (index >= 0 && index < ((int) pChunk->GetCount ())); index = ((int) pChunk->GetCount ()) - 1 - index; SIZE_T totalSize = 0; int curIndex = 0; while (index != curIndex) { SIZE_T sizeCur = (PTR_MethodDesc (pMD))->SizeOf (); totalSize += sizeCur; pMD += sizeCur; ++curIndex; } return PTR_MethodDesc (pMD); #else // TARGET_ARM return PTR_MethodDesc((TADDR)pCentralJumpCode->m_pBaseMD + index * MethodDesc::ALIGNMENT); #endif // TARGET_ARM } //******************************************************************************* SIZE_T MethodDescChunk::SizeOfCompactEntryPoints(int count) { LIMITED_METHOD_DAC_CONTRACT; #ifdef TARGET_ARM return COMPACT_ENTRY_ARM_CODE + count * TEP_ENTRY_SIZE + TEP_CENTRAL_JUMP_SIZE; #else // TARGET_ARM int fullBlocks = count / TEP_MAX_BLOCK_INDEX; int remainder = count % TEP_MAX_BLOCK_INDEX; return 1 + (fullBlocks * TEP_FULL_BLOCK_SIZE) + (remainder * TEP_ENTRY_SIZE) + ((remainder != 0) ? TEP_CENTRAL_JUMP_SIZE : 0); #endif // TARGET_ARM } #ifndef DACCESS_COMPILE TADDR MethodDescChunk::AllocateCompactEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; int count = GetCount(); SIZE_T size = SizeOfCompactEntryPoints(count); TADDR temporaryEntryPoints = (TADDR)pamTracker->Track(pLoaderAllocator->GetPrecodeHeap()->AllocAlignedMem(size, sizeof(TADDR))); ExecutableWriterHolder<void> temporaryEntryPointsWriterHolder((void *)temporaryEntryPoints, size); size_t rxOffset = temporaryEntryPoints - (TADDR)temporaryEntryPointsWriterHolder.GetRW(); #ifdef TARGET_ARM BYTE* p = (BYTE*)temporaryEntryPointsWriterHolder.GetRW() + COMPACT_ENTRY_ARM_CODE; int relOffset = count * TEP_ENTRY_SIZE - TEP_ENTRY_SIZE; // relative offset for the short jump _ASSERTE (relOffset < MAX_OFFSET_UNCONDITIONAL_BRANCH_THUMB); #else // TARGET_ARM // make the temporary entrypoints unaligned, so they are easy to identify BYTE* p = (BYTE*)temporaryEntryPointsWriterHolder.GetRW() + 1; int indexInBlock = TEP_MAX_BLOCK_INDEX; // recompute relOffset in first iteration int relOffset = 0; // relative offset for the short jump #endif // TARGET_ARM MethodDesc * pBaseMD = 0; // index of the start of the block MethodDesc * pMD = GetFirstMethodDesc(); for (int index = 0; index < count; index++) { #ifdef TARGET_ARM uint8_t *pMovInstrByte1 = (uint8_t *)p; uint8_t *pMovInstrByte2 = (uint8_t *)p+1; uint16_t *pBranchInstr = ((uint16_t *)p)+1; *pMovInstrByte1 = TEP_ENTRY_INSTR1_BYTE1; *pMovInstrByte2 = TEP_ENTRY_INSTR1_BYTE2; *pBranchInstr = EncodeBranchToCentralJump ((int16_t) relOffset); p += TEP_ENTRY_SIZE; #else // TARGET_ARM if (indexInBlock == TEP_MAX_BLOCK_INDEX) { relOffset = (min(count - index, TEP_MAX_BEFORE_INDEX) - 1) * TEP_ENTRY_SIZE; indexInBlock = 0; pBaseMD = pMD; } *(p+0) = X86_INSTR_MOV_AL; int methodDescIndex = pMD->GetMethodDescIndex() - pBaseMD->GetMethodDescIndex(); _ASSERTE(FitsInU1(methodDescIndex)); *(p+1) = (BYTE)methodDescIndex; *(p+2) = X86_INSTR_JMP_REL8; _ASSERTE(FitsInI1(relOffset)); *(p+3) = (BYTE)relOffset; p += TEP_ENTRY_SIZE; static_assert_no_msg(TEP_ENTRY_SIZE == 4); if (relOffset == 0) { CentralJumpCode* pCode = (CentralJumpCode*)p; CentralJumpCode* pCodeRX = (CentralJumpCode*)(p + rxOffset); memcpy(pCode, &c_CentralJumpCode, TEP_CENTRAL_JUMP_SIZE); pCode->Setup(pCodeRX, pBaseMD, GetPreStubEntryPoint(), pLoaderAllocator); p += TEP_CENTRAL_JUMP_SIZE; relOffset -= TEP_CENTRAL_JUMP_SIZE; } indexInBlock++; #endif // TARGET_ARM relOffset -= TEP_ENTRY_SIZE; pMD = (MethodDesc *)((BYTE *)pMD + pMD->SizeOf()); } #ifdef TARGET_ARM CentralJumpCode* pCode = (CentralJumpCode*)p; memcpy(pCode, &c_CentralJumpCode, TEP_CENTRAL_JUMP_SIZE); pCode->Setup (GetPreStubCompactARMEntryPoint(), this); _ASSERTE(p + TEP_CENTRAL_JUMP_SIZE == (BYTE*)temporaryEntryPointsWriterHolder.GetRW() + size); #else // TARGET_ARM _ASSERTE(p == (BYTE*)temporaryEntryPointsWriterHolder.GetRW() + size); #endif // TARGET_ARM ClrFlushInstructionCache((LPVOID)temporaryEntryPoints, size); SetHasCompactEntryPoints(); return temporaryEntryPoints; } #endif // !DACCESS_COMPILE #endif // HAS_COMPACT_ENTRYPOINTS //******************************************************************************* PCODE MethodDescChunk::GetTemporaryEntryPoint(int index) { LIMITED_METHOD_CONTRACT; #ifdef HAS_COMPACT_ENTRYPOINTS if (HasCompactEntryPoints()) { #ifdef TARGET_ARM return GetTemporaryEntryPoints() + COMPACT_ENTRY_ARM_CODE + THUMB_CODE + index * TEP_ENTRY_SIZE; #else // TARGET_ARM int fullBlocks = index / TEP_MAX_BLOCK_INDEX; int remainder = index % TEP_MAX_BLOCK_INDEX; return GetTemporaryEntryPoints() + 1 + (fullBlocks * TEP_FULL_BLOCK_SIZE) + (remainder * TEP_ENTRY_SIZE) + ((remainder >= TEP_MAX_BEFORE_INDEX) ? TEP_CENTRAL_JUMP_SIZE : 0); #endif // TARGET_ARM } #endif // HAS_COMPACT_ENTRYPOINTS return Precode::GetPrecodeForTemporaryEntryPoint(GetTemporaryEntryPoints(), index)->GetEntryPoint(); } PCODE MethodDesc::GetTemporaryEntryPoint() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; MethodDescChunk* pChunk = GetMethodDescChunk(); int lo = 0, hi = pChunk->GetCount() - 1; // Find the temporary entrypoint in the chunk by binary search while (lo < hi) { int mid = (lo + hi) / 2; TADDR pEntryPoint = pChunk->GetTemporaryEntryPoint(mid); MethodDesc * pMD = MethodDesc::GetMethodDescFromStubAddr(pEntryPoint); if (PTR_HOST_TO_TADDR(this) == PTR_HOST_TO_TADDR(pMD)) return pEntryPoint; if (PTR_HOST_TO_TADDR(this) > PTR_HOST_TO_TADDR(pMD)) lo = mid + 1; else hi = mid - 1; } _ASSERTE(lo == hi); TADDR pEntryPoint = pChunk->GetTemporaryEntryPoint(lo); #ifdef _DEBUG MethodDesc * pMD = MethodDesc::GetMethodDescFromStubAddr(pEntryPoint); _ASSERTE(PTR_HOST_TO_TADDR(this) == PTR_HOST_TO_TADDR(pMD)); #endif return pEntryPoint; } #ifndef DACCESS_COMPILE //******************************************************************************* void MethodDesc::SetTemporaryEntryPoint(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker) { WRAPPER_NO_CONTRACT; GetMethodDescChunk()->EnsureTemporaryEntryPointsCreated(pLoaderAllocator, pamTracker); PTR_PCODE pSlot = GetAddrOfSlot(); _ASSERTE(*pSlot == NULL); *pSlot = GetTemporaryEntryPoint(); if (RequiresStableEntryPoint()) { // The rest of the system assumes that certain methods always have stable entrypoints. // Create them now. GetOrCreatePrecode(); } } //******************************************************************************* void MethodDescChunk::CreateTemporaryEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker) { WRAPPER_NO_CONTRACT; _ASSERTE(GetTemporaryEntryPoints() == NULL); TADDR temporaryEntryPoints = Precode::AllocateTemporaryEntryPoints(this, pLoaderAllocator, pamTracker); #ifdef HAS_COMPACT_ENTRYPOINTS // Precodes allocated only if they provide more compact representation or if it is required if (temporaryEntryPoints == NULL) { temporaryEntryPoints = AllocateCompactEntryPoints(pLoaderAllocator, pamTracker); } #endif // HAS_COMPACT_ENTRYPOINTS *(((TADDR *)this)-1) = temporaryEntryPoints; _ASSERTE(GetTemporaryEntryPoints() != NULL); } //******************************************************************************* void MethodDesc::InterlockedUpdateFlags2(BYTE bMask, BOOL fSet) { WRAPPER_NO_CONTRACT; ULONG* pLong = (ULONG*)(&m_bFlags2 - 3); static_assert_no_msg(offsetof(MethodDesc, m_bFlags2) % sizeof(LONG) == 3); #if BIGENDIAN if (fSet) FastInterlockOr(pLong, (ULONG)bMask); else FastInterlockAnd(pLong, ~(ULONG)bMask); #else // !BIGENDIAN if (fSet) FastInterlockOr(pLong, (ULONG)bMask << (3 * 8)); else FastInterlockAnd(pLong, ~((ULONG)bMask << (3 * 8))); #endif // !BIGENDIAN } //******************************************************************************* Precode* MethodDesc::GetOrCreatePrecode() { WRAPPER_NO_CONTRACT; _ASSERTE(!IsVersionableWithVtableSlotBackpatch()); if (HasPrecode()) { return GetPrecode(); } PTR_PCODE pSlot = GetAddrOfSlot(); PCODE tempEntry = GetTemporaryEntryPoint(); PrecodeType requiredType = GetPrecodeType(); PrecodeType availableType = PRECODE_INVALID; if (!GetMethodDescChunk()->HasCompactEntryPoints()) { availableType = Precode::GetPrecodeFromEntryPoint(tempEntry)->GetType(); } // Allocate the precode if necessary if (requiredType != availableType) { // code:Precode::AllocateTemporaryEntryPoints should always create precode of the right type for dynamic methods. // If we took this path for dynamic methods, the precode may leak since we may allocate it in domain-neutral loader heap. _ASSERTE(!IsLCGMethod()); AllocMemTracker amt; Precode* pPrecode = Precode::Allocate(requiredType, this, GetLoaderAllocator(), &amt); if (FastInterlockCompareExchangePointer(pSlot, pPrecode->GetEntryPoint(), tempEntry) == tempEntry) amt.SuppressRelease(); } // Set the flags atomically InterlockedUpdateFlags2(enum_flag2_HasStableEntryPoint | enum_flag2_HasPrecode, TRUE); return Precode::GetPrecodeFromEntryPoint(*pSlot); } bool MethodDesc::DetermineAndSetIsEligibleForTieredCompilation() { WRAPPER_NO_CONTRACT; #ifdef FEATURE_TIERED_COMPILATION #ifndef FEATURE_CODE_VERSIONING #error Tiered compilation requires code versioning #endif // Keep in-sync with MethodTableBuilder::NeedsNativeCodeSlot(bmtMDMethod * pMDMethod) // to ensure native slots are available where needed. if ( // Policy g_pConfig->TieredCompilation() && // Functional requirement - The NativeCodeSlot is required to hold the code pointer for the default code version because // the method's entry point slot will point to a precode or to the current code entry point HasNativeCodeSlot() && // Functional requirement - These methods have no IL that could be optimized !IsWrapperStub() && // Functional requirement CodeVersionManager::IsMethodSupported(this) && // Policy - If QuickJit is disabled and the module does not have any pregenerated code, the method would effectively not // be tiered currently, so make the method ineligible for tiering to avoid some unnecessary overhead (g_pConfig->TieredCompilation_QuickJit() || GetModule()->IsReadyToRun()) && // Policy - Generating optimized code is not disabled !IsJitOptimizationDisabled() && // Policy - Tiered compilation is not disabled by the profiler !CORProfilerDisableTieredCompilation()) { m_bFlags2 |= enum_flag2_IsEligibleForTieredCompilation; _ASSERTE(IsVersionable()); return true; } #endif return false; } #endif // !DACCESS_COMPILE bool MethodDesc::IsJitOptimizationDisabled() { WRAPPER_NO_CONTRACT; return g_pConfig->JitMinOpts() || #ifdef _DEBUG g_pConfig->GenDebuggableCode() || #endif CORDisableJITOptimizations(GetModule()->GetDebuggerInfoBits()) || (!IsNoMetadata() && IsMiNoOptimization(GetImplAttrs())); } #ifndef DACCESS_COMPILE void MethodDesc::RecordAndBackpatchEntryPointSlot( LoaderAllocator *slotLoaderAllocator, // the loader allocator from which the slot's memory is allocated TADDR slot, EntryPointSlots::SlotType slotType) { WRAPPER_NO_CONTRACT; GCX_PREEMP(); LoaderAllocator *mdLoaderAllocator = GetLoaderAllocator(); MethodDescBackpatchInfoTracker::ConditionalLockHolderForGCCoop slotBackpatchLockHolder; RecordAndBackpatchEntryPointSlot_Locked( mdLoaderAllocator, slotLoaderAllocator, slot, slotType, GetEntryPointToBackpatch_Locked()); } // This function tries to record a slot that would contain an entry point for the method, and backpatches the slot to contain // method's current entry point. Once recorded, changes to the entry point due to tiering will cause the slot to be backpatched // as necessary. void MethodDesc::RecordAndBackpatchEntryPointSlot_Locked( LoaderAllocator *mdLoaderAllocator, LoaderAllocator *slotLoaderAllocator, // the loader allocator from which the slot's memory is allocated TADDR slot, EntryPointSlots::SlotType slotType, PCODE currentEntryPoint) { WRAPPER_NO_CONTRACT; _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); _ASSERTE(mdLoaderAllocator != nullptr); _ASSERTE(mdLoaderAllocator == GetLoaderAllocator()); _ASSERTE(slotLoaderAllocator != nullptr); _ASSERTE(slot != NULL); _ASSERTE(slotType < EntryPointSlots::SlotType_Count); _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); // The specified current entry point must actually be *current* in the sense that it must have been retrieved inside the // lock, such that a recorded slot is guaranteed to point to the entry point at the time at which it was recorded, in order // to synchronize with backpatching in MethodDesc::BackpatchEntryPointSlots(). If a slot pointing to an older entry point // were to be recorded due to concurrency issues, it would not get backpatched to point to the more recent, actually // current, entry point until another entry point change, which may never happen. _ASSERTE(currentEntryPoint == GetEntryPointToBackpatch_Locked()); MethodDescBackpatchInfoTracker *backpatchTracker = mdLoaderAllocator->GetMethodDescBackpatchInfoTracker(); backpatchTracker->AddSlotAndPatch_Locked(this, slotLoaderAllocator, slot, slotType, currentEntryPoint); } FORCEINLINE bool MethodDesc::TryBackpatchEntryPointSlots( PCODE entryPoint, bool isPrestubEntryPoint, bool onlyFromPrestubEntryPoint) { WRAPPER_NO_CONTRACT; _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); _ASSERTE(entryPoint != NULL); _ASSERTE(isPrestubEntryPoint == (entryPoint == GetPrestubEntryPointToBackpatch())); _ASSERTE(!isPrestubEntryPoint || !onlyFromPrestubEntryPoint); _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); LoaderAllocator *mdLoaderAllocator = GetLoaderAllocator(); MethodDescBackpatchInfoTracker *backpatchInfoTracker = mdLoaderAllocator->GetMethodDescBackpatchInfoTracker(); // Get the entry point to backpatch inside the lock to synchronize with backpatching in MethodDesc::DoBackpatch() PCODE previousEntryPoint = GetEntryPointToBackpatch_Locked(); if (previousEntryPoint == entryPoint) { return true; } if (onlyFromPrestubEntryPoint && previousEntryPoint != GetPrestubEntryPointToBackpatch()) { return false; } if (IsVersionableWithVtableSlotBackpatch()) { // Backpatch the func ptr stub if it was created FuncPtrStubs *funcPtrStubs = mdLoaderAllocator->GetFuncPtrStubsNoCreate(); if (funcPtrStubs != nullptr) { Precode *funcPtrPrecode = funcPtrStubs->Lookup(this); if (funcPtrPrecode != nullptr) { if (isPrestubEntryPoint) { funcPtrPrecode->ResetTargetInterlocked(); } else { funcPtrPrecode->SetTargetInterlocked(entryPoint, FALSE /* fOnlyRedirectFromPrestub */); } } } } backpatchInfoTracker->Backpatch_Locked(this, entryPoint); // Set the entry point to backpatch inside the lock to synchronize with backpatching in MethodDesc::DoBackpatch(), and set // it last in case there are exceptions above, as setting the entry point indicates that all recorded slots have been // backpatched SetEntryPointToBackpatch_Locked(entryPoint); return true; } void MethodDesc::TrySetInitialCodeEntryPointForVersionableMethod( PCODE entryPoint, bool mayHaveEntryPointSlotsToBackpatch) { WRAPPER_NO_CONTRACT; _ASSERTE(entryPoint != NULL); _ASSERTE(IsVersionable()); _ASSERTE(mayHaveEntryPointSlotsToBackpatch == MayHaveEntryPointSlotsToBackpatch()); if (mayHaveEntryPointSlotsToBackpatch) { TryBackpatchEntryPointSlotsFromPrestub(entryPoint); } else { _ASSERTE(IsVersionableWithPrecode()); GetOrCreatePrecode()->SetTargetInterlocked(entryPoint, TRUE /* fOnlyRedirectFromPrestub */); } } void MethodDesc::SetCodeEntryPoint(PCODE entryPoint) { WRAPPER_NO_CONTRACT; _ASSERTE(entryPoint != NULL); if (MayHaveEntryPointSlotsToBackpatch()) { BackpatchEntryPointSlots(entryPoint); } else if (IsVersionable()) { _ASSERTE(IsVersionableWithPrecode()); GetOrCreatePrecode()->SetTargetInterlocked(entryPoint, FALSE /* fOnlyRedirectFromPrestub */); // SetTargetInterlocked() would return false if it lost the race with another thread. That is fine, this thread // can continue assuming it was successful, similarly to it successfully updating the target and another thread // updating the target again shortly afterwards. } else if (HasPrecode()) { GetPrecode()->SetTargetInterlocked(entryPoint); } else if (!HasStableEntryPoint()) { SetStableEntryPointInterlocked(entryPoint); } } void MethodDesc::ResetCodeEntryPoint() { WRAPPER_NO_CONTRACT; _ASSERTE(IsVersionable()); if (MayHaveEntryPointSlotsToBackpatch()) { BackpatchToResetEntryPointSlots(); return; } _ASSERTE(IsVersionableWithPrecode()); if (HasPrecode()) { GetPrecode()->ResetTargetInterlocked(); } } void MethodDesc::ResetCodeEntryPointForEnC() { WRAPPER_NO_CONTRACT; _ASSERTE(!IsVersionable()); _ASSERTE(!IsVersionableWithPrecode()); _ASSERTE(!MayHaveEntryPointSlotsToBackpatch()); if (HasPrecode()) { GetPrecode()->ResetTargetInterlocked(); } if (HasNativeCodeSlot()) { *GetAddrOfNativeCodeSlot() = NULL; } } //******************************************************************************* BOOL MethodDesc::SetNativeCodeInterlocked(PCODE addr, PCODE pExpected /*=NULL*/) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; _ASSERTE(!IsDefaultInterfaceMethod() || HasNativeCodeSlot()); if (HasNativeCodeSlot()) { #ifdef TARGET_ARM _ASSERTE(IsThumbCode(addr) || (addr==NULL)); addr &= ~THUMB_CODE; if (pExpected != NULL) { _ASSERTE(IsThumbCode(pExpected)); pExpected &= ~THUMB_CODE; } #endif PTR_PCODE pSlot = GetAddrOfNativeCodeSlot(); NativeCodeSlot expected; expected = *pSlot; return FastInterlockCompareExchangePointer(reinterpret_cast<TADDR*>(pSlot), (TADDR&)addr, (TADDR&)expected) == (TADDR&)expected; } _ASSERTE(pExpected == NULL); return SetStableEntryPointInterlocked(addr); } //******************************************************************************* void MethodDesc::SetMethodEntryPoint(PCODE addr) { WRAPPER_NO_CONTRACT; _ASSERTE(addr != NULL); // Similarly to GetMethodEntryPoint(), it is up to the caller to ensure that calls to this function are appropriately // synchronized. Currently, the only caller synchronizes with the following lock. _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); *GetAddrOfSlot() = addr; } //******************************************************************************* BOOL MethodDesc::SetStableEntryPointInterlocked(PCODE addr) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; _ASSERTE(!HasPrecode()); _ASSERTE(!IsVersionable()); PCODE pExpected = GetTemporaryEntryPoint(); PTR_PCODE pSlot = GetAddrOfSlot(); BOOL fResult = FastInterlockCompareExchangePointer(pSlot, addr, pExpected) == pExpected; InterlockedUpdateFlags2(enum_flag2_HasStableEntryPoint, TRUE); return fResult; } BOOL NDirectMethodDesc::ComputeMarshalingRequired() { WRAPPER_NO_CONTRACT; return NDirect::MarshalingRequired(this); } /**********************************************************************************/ // Forward declare the NDirectImportWorker function - See dllimport.cpp EXTERN_C LPVOID STDCALL NDirectImportWorker(NDirectMethodDesc*); void *NDirectMethodDesc::ResolveAndSetNDirectTarget(_In_ NDirectMethodDesc* pMD) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(CheckPointer(pMD)); } CONTRACTL_END // This build conditional is here due to dllimport.cpp // not being relevant during the crossgen build. LPVOID targetMaybe = NDirectImportWorker(pMD); _ASSERTE(targetMaybe != nullptr); pMD->SetNDirectTarget(targetMaybe); return targetMaybe; } BOOL NDirectMethodDesc::TryResolveNDirectTargetForNoGCTransition(_In_ MethodDesc* pMD, _Out_ void** ndirectTarget) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(CheckPointer(pMD)); PRECONDITION(CheckPointer(ndirectTarget)); } CONTRACTL_END if (!pMD->ShouldSuppressGCTransition()) return FALSE; _ASSERTE(pMD->IsNDirect()); *ndirectTarget = ResolveAndSetNDirectTarget((NDirectMethodDesc*)pMD); return TRUE; } //******************************************************************************* void NDirectMethodDesc::InterlockedSetNDirectFlags(WORD wFlags) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END // Since InterlockedCompareExchange only works on ULONGs, // we'll have to operate on the entire ULONG. Ugh. WORD *pFlags = &ndirect.m_wFlags; // Make sure that m_flags is aligned on a 4 byte boundry _ASSERTE( ( ((size_t) pFlags) & (sizeof(ULONG)-1) ) == 0); // Ensure we won't be reading or writing outside the bounds of the NDirectMethodDesc. _ASSERTE((BYTE*)pFlags >= (BYTE*)this); _ASSERTE((BYTE*)pFlags+sizeof(ULONG) <= (BYTE*)(this+1)); DWORD dwMask = 0; // Set the flags in the mask ((WORD*)&dwMask)[0] |= wFlags; // Now, slam all 32 bits atomically. FastInterlockOr((DWORD*)pFlags, dwMask); } #ifdef TARGET_WINDOWS FARPROC NDirectMethodDesc::FindEntryPointWithMangling(NATIVE_LIBRARY_HANDLE hMod, PTR_CUTF8 entryPointName) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; FARPROC pFunc = GetProcAddress(hMod, entryPointName); #if defined(TARGET_X86) if (pFunc) { return pFunc; } if (IsStdCall()) { EnsureStackArgumentSize(); DWORD probedEntrypointNameLength = (DWORD)(strlen(entryPointName) + 1); // 1 for null terminator int dstbufsize = (int)(sizeof(char) * (probedEntrypointNameLength + 10)); // 10 for stdcall mangling LPSTR szProbedEntrypointName = ((LPSTR)_alloca(dstbufsize + 1)); szProbedEntrypointName[0] = '_'; strcpy_s(szProbedEntrypointName + 1, dstbufsize, entryPointName); szProbedEntrypointName[probedEntrypointNameLength] = '\0'; // Add an extra '\0'. UINT16 numParamBytesMangle = GetStackArgumentSize(); sprintf_s(szProbedEntrypointName + probedEntrypointNameLength, dstbufsize - probedEntrypointNameLength + 1, "@%lu", (ULONG)numParamBytesMangle); pFunc = GetProcAddress(hMod, szProbedEntrypointName); } #endif return pFunc; } FARPROC NDirectMethodDesc::FindEntryPointWithSuffix(NATIVE_LIBRARY_HANDLE hMod, PTR_CUTF8 entryPointName, char suffix) { // Allocate space for a copy of the entry point name. DWORD entryPointWithSuffixLen = (DWORD)(strlen(entryPointName) + 1); // +1 for charset decorations int dstbufsize = (int)(sizeof(char) * (entryPointWithSuffixLen + 1)); // +1 for the null terminator LPSTR entryPointWithSuffix = ((LPSTR)_alloca(dstbufsize)); // Copy the name so we can mangle it. strcpy_s(entryPointWithSuffix, dstbufsize, entryPointName); entryPointWithSuffix[entryPointWithSuffixLen] = '\0'; // Null terminator entryPointWithSuffix[entryPointWithSuffixLen - 1] = suffix; // Charset suffix // Look for entry point with the suffix based on charset return FindEntryPointWithMangling(hMod, entryPointWithSuffix); } #endif //******************************************************************************* LPVOID NDirectMethodDesc::FindEntryPoint(NATIVE_LIBRARY_HANDLE hMod) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; char const * funcName = GetEntrypointName(); #ifndef TARGET_WINDOWS return reinterpret_cast<LPVOID>(PAL_GetProcAddressDirect(hMod, funcName)); #else // Handle ordinals. if (funcName[0] == '#') { long ordinal = atol(funcName + 1); return reinterpret_cast<LPVOID>(GetProcAddress(hMod, (LPCSTR)(size_t)((UINT16)ordinal))); } FARPROC pFunc = NULL; if (IsNativeNoMangled()) { // Look for the user-provided entry point name only pFunc = FindEntryPointWithMangling(hMod, funcName); } else if (IsNativeAnsi()) { // For ANSI, look for the user-provided entry point name first. // If that does not exist, try the charset suffix. pFunc = FindEntryPointWithMangling(hMod, funcName); if (pFunc == NULL) pFunc = FindEntryPointWithSuffix(hMod, funcName, 'A'); } else { // For Unicode, look for the entry point name with the charset suffix first. // The 'W' API takes precedence over the undecorated one. pFunc = FindEntryPointWithSuffix(hMod, funcName, 'W'); if (pFunc == NULL) pFunc = FindEntryPointWithMangling(hMod, funcName); } return reinterpret_cast<LPVOID>(pFunc); #endif } #if defined(TARGET_X86) //******************************************************************************* void NDirectMethodDesc::EnsureStackArgumentSize() { STANDARD_VM_CONTRACT; if (ndirect.m_cbStackArgumentSize == 0xFFFF) { // Marshalling required check sets the stack size as side-effect when marshalling is not required. if (MarshalingRequired()) { // Generating interop stub sets the stack size as side-effect in all cases GetStubForInteropMethod(this, NDIRECTSTUB_FL_FOR_NUMPARAMBYTES); } } } #endif //******************************************************************************* void NDirectMethodDesc::InitEarlyBoundNDirectTarget() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END _ASSERTE(IsEarlyBound()); if (IsClassConstructorTriggeredAtLinkTime()) { GetMethodTable()->CheckRunClassInitThrowing(); } const void *target = GetModule()->GetInternalPInvokeTarget(GetRVA()); _ASSERTE(target != 0); if (HeuristicDoesThisLookLikeAGetLastErrorCall((LPBYTE)target)) target = (BYTE*)FalseGetLastError; // As long as we've set the NDirect target field we don't need to backpatch the import thunk glue. // All NDirect calls all through the NDirect target, so if it's updated, then we won't go into // NDirectImportThunk(). In fact, backpatching the import thunk glue leads to race conditions. SetNDirectTarget((LPVOID)target); } //******************************************************************************* BOOL MethodDesc::HasUnmanagedCallersOnlyAttribute() { CONTRACTL { THROWS; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END; if (IsILStub()) { // Stubs generated for being called from native code are equivalent to // managed methods marked with UnmanagedCallersOnly. return AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubNativeToCLRInterop; } HRESULT hr = GetCustomAttribute( WellKnownAttribute::UnmanagedCallersOnly, nullptr, nullptr); if (hr != S_OK) { // See https://github.com/dotnet/runtime/issues/37622 hr = GetCustomAttribute( WellKnownAttribute::NativeCallableInternal, nullptr, nullptr); } return (hr == S_OK) ? TRUE : FALSE; } //******************************************************************************* BOOL MethodDesc::ShouldSuppressGCTransition() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; MethodDesc* tgt = nullptr; if (IsNDirect()) { tgt = this; } else if (IsILStub()) { // From the IL stub, determine if the actual target has been // marked to suppress the GC transition. PTR_DynamicMethodDesc ilStubMD = AsDynamicMethodDesc(); PTR_ILStubResolver ilStubResolver = ilStubMD->GetILStubResolver(); tgt = ilStubResolver->GetStubTargetMethodDesc(); // In the event we can't get or don't have a target, there is no way // to determine if we should suppress the GC transition. if (tgt == nullptr) return FALSE; } else { return FALSE; } _ASSERTE(tgt != nullptr); bool suppressGCTransition; NDirect::GetCallingConvention_IgnoreErrors(tgt, NULL /*callConv*/, &suppressGCTransition); return suppressGCTransition ? TRUE : FALSE; } #ifdef FEATURE_COMINTEROP //******************************************************************************* void ComPlusCallMethodDesc::InitComEventCallInfo() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END MethodTable *pItfMT = GetInterfaceMethodTable(); MethodDesc *pItfMD = this; MethodTable *pSrcItfClass = NULL; MethodTable *pEvProvClass = NULL; // Retrieve the event provider class. WORD cbExtraSlots = ComMethodTable::GetNumExtraSlots(pItfMT->GetComInterfaceType()); WORD itfSlotNum = (WORD) m_pComPlusCallInfo->m_cachedComSlot - cbExtraSlots; pItfMT->GetEventInterfaceInfo(&pSrcItfClass, &pEvProvClass); m_pComPlusCallInfo->m_pEventProviderMD = MemberLoader::FindMethodForInterfaceSlot(pEvProvClass, pItfMT, itfSlotNum); // If we could not find the method, then the event provider does not support // this event. This is a fatal error. if (!m_pComPlusCallInfo->m_pEventProviderMD) { // Init the interface MD for error reporting. pItfMD = (ComPlusCallMethodDesc*)pItfMT->GetMethodDescForSlot(itfSlotNum); // Retrieve the event provider class name. StackSString ssEvProvClassName; pEvProvClass->_GetFullyQualifiedNameForClass(ssEvProvClassName); // Retrieve the COM event interface class name. StackSString ssEvItfName; pItfMT->_GetFullyQualifiedNameForClass(ssEvItfName); // Convert the method name to unicode. StackSString ssMethodName(SString::Utf8, pItfMD->GetName()); // Throw the exception. COMPlusThrow(kTypeLoadException, IDS_EE_METHOD_NOT_FOUND_ON_EV_PROV, ssMethodName.GetUnicode(), ssEvItfName.GetUnicode(), ssEvProvClassName.GetUnicode()); } } #endif // FEATURE_COMINTEROP #endif // !DACCESS_COMPILE #ifdef DACCESS_COMPILE //******************************************************************************* void MethodDesc::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) { SUPPORTS_DAC; if (DacHasMethodDescBeenEnumerated(this)) { return; } // Save away the whole MethodDescChunk as in many // places RecoverChunk is called on a method desc so // the whole chunk must be available. This also // automatically picks up any prestubs and such. GetMethodDescChunk()->EnumMemoryRegions(flags); if (HasPrecode()) { GetPrecode()->EnumMemoryRegions(flags); } // Need to save the Debug-Info for this method so that we can see it in a debugger later. DebugInfoManager::EnumMemoryRegionsForMethodDebugInfo(flags, this); if (!IsNoMetadata() ||IsILStub()) { // The assembling of the string below implicitly dumps the memory we need. StackSString str; TypeString::AppendMethodInternal(str, this, TypeString::FormatSignature|TypeString::FormatNamespace|TypeString::FormatFullInst); #ifdef FEATURE_MINIMETADATA_IN_TRIAGEDUMPS if (flags == CLRDATA_ENUM_MEM_MINI || flags == CLRDATA_ENUM_MEM_TRIAGE) { // we want to save just the method name, so truncate at the open paranthesis SString::Iterator it = str.Begin(); if (str.Find(it, W('('))) { // ensure the symbol ends in "()" to minimize regressions // in !analyze assuming the existence of the argument list str.Truncate(++it); str.Append(W(')')); } DacMdCacheAddEEName(dac_cast<TADDR>(this), str); } #endif // FEATURE_MINIMETADATA_IN_TRIAGEDUMPS // The module path is used in the output of !clrstack and !pe if the // module is not available when the minidump is inspected. By retrieving // the path here, the required memory is implicitly dumped. Module* pModule = GetModule(); if (pModule) { pModule->GetPath(); } } #ifdef FEATURE_CODE_VERSIONING // Make sure the active IL and native code version are in triage dumps. CodeVersionManager* pCodeVersionManager = GetCodeVersionManager(); ILCodeVersion ilVersion = pCodeVersionManager->GetActiveILCodeVersion(dac_cast<PTR_MethodDesc>(this)); if (!ilVersion.IsNull()) { ilVersion.GetActiveNativeCodeVersion(dac_cast<PTR_MethodDesc>(this)); ilVersion.GetVersionId(); ilVersion.GetRejitState(); ilVersion.GetIL(); } #endif // Also, call DacValidateMD to dump the memory it needs. !clrstack calls // DacValidateMD before it retrieves the method name. We don't expect // DacValidateMD to fail, but if it does, ignore the failure and try to assemble the // string anyway so that clients that don't validate the MD still work. DacValidateMD(this); DacSetMethodDescEnumerated(this); } //******************************************************************************* void StoredSigMethodDesc::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) { SUPPORTS_DAC; // 'this' already done, see below. DacEnumMemoryRegion(GetSigRVA(), m_cSig); } //******************************************************************************* void MethodDescChunk::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) { SUPPORTS_DAC; DAC_CHECK_ENUM_THIS(); EMEM_OUT(("MEM: %p MethodDescChunk\n", dac_cast<TADDR>(this))); DacEnumMemoryRegion(dac_cast<TADDR>(this), SizeOf()); PTR_MethodTable pMT = GetMethodTable(); if (pMT.IsValid()) { pMT->EnumMemoryRegions(flags); } SIZE_T size; #ifdef HAS_COMPACT_ENTRYPOINTS if (HasCompactEntryPoints()) { size = SizeOfCompactEntryPoints(GetCount()); } else #endif // HAS_COMPACT_ENTRYPOINTS { size = Precode::SizeOfTemporaryEntryPoints(GetTemporaryEntryPoints(), GetCount()); } DacEnumMemoryRegion(GetTemporaryEntryPoints(), size); MethodDesc * pMD = GetFirstMethodDesc(); MethodDesc * pOldMD = NULL; while (pMD != NULL && pMD != pOldMD) { pOldMD = pMD; EX_TRY { if (pMD->IsMethodImpl()) { pMD->GetMethodImpl()->EnumMemoryRegions(flags); } } EX_CATCH_RETHROW_ONLY_COR_E_OPERATIONCANCELLED EX_TRY { if (pMD->HasStoredSig()) { dac_cast<PTR_StoredSigMethodDesc>(pMD)->EnumMemoryRegions(flags); } // Check whether the next MethodDesc is within the bounds of the current chunks TADDR pNext = dac_cast<TADDR>(pMD) + pMD->SizeOf(); TADDR pEnd = dac_cast<TADDR>(this) + this->SizeOf(); pMD = (pNext < pEnd) ? PTR_MethodDesc(pNext) : NULL; } EX_CATCH_RETHROW_ONLY_COR_E_OPERATIONCANCELLED } } #endif // DACCESS_COMPILE #ifndef DACCESS_COMPILE //******************************************************************************* MethodDesc *MethodDesc::GetInterfaceMD() { CONTRACT (MethodDesc*) { THROWS; GC_TRIGGERS; INSTANCE_CHECK; PRECONDITION(!IsInterface()); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; MethodTable *pMT = GetMethodTable(); RETURN(pMT->ReverseInterfaceMDLookup(GetSlot())); } #endif // !DACCESS_COMPILE PTR_LoaderAllocator MethodDesc::GetLoaderAllocator() { WRAPPER_NO_CONTRACT; return GetLoaderModule()->GetLoaderAllocator(); } #if !defined(DACCESS_COMPILE) REFLECTMETHODREF MethodDesc::GetStubMethodInfo() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); MODE_COOPERATIVE; } CONTRACTL_END; REFLECTMETHODREF retVal; REFLECTMETHODREF methodRef = (REFLECTMETHODREF)AllocateObject(CoreLibBinder::GetClass(CLASS__STUBMETHODINFO)); GCPROTECT_BEGIN(methodRef); methodRef->SetMethod(this); LoaderAllocator *pLoaderAllocatorOfMethod = this->GetLoaderAllocator(); if (pLoaderAllocatorOfMethod->IsCollectible()) methodRef->SetKeepAlive(pLoaderAllocatorOfMethod->GetExposedObject()); retVal = methodRef; GCPROTECT_END(); return retVal; } #endif // !DACCESS_COMPILE #ifndef DACCESS_COMPILE typedef void (*WalkValueTypeParameterFnPtr)(Module *pModule, mdToken token, Module *pDefModule, mdToken tkDefToken, SigPointer *ptr, SigTypeContext *pTypeContext, void *pData); void MethodDesc::WalkValueTypeParameters(MethodTable *pMT, WalkValueTypeParameterFnPtr function, void *pData) { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; uint32_t numArgs = 0; Module *pModule = this->GetModule(); SigPointer ptr = this->GetSigPointer(); // skip over calling convention. uint32_t callConv = 0; IfFailThrowBF(ptr.GetCallingConvInfo(&callConv), BFA_BAD_SIGNATURE, pModule); // If calling convention is generic, skip GenParamCount if (callConv & IMAGE_CEE_CS_CALLCONV_GENERIC) { IfFailThrowBF(ptr.GetData(NULL), BFA_BAD_SIGNATURE, pModule); } IfFailThrowBF(ptr.GetData(&numArgs), BFA_BAD_SIGNATURE, pModule); SigTypeContext typeContext(this, TypeHandle(pMT)); // iterate over the return type and parameters for (DWORD j = 0; j <= numArgs; j++) { CorElementType type = ptr.PeekElemTypeClosed(pModule, &typeContext); if (type != ELEMENT_TYPE_VALUETYPE) goto moveToNextToken; mdToken token; Module *pTokenModule; token = ptr.PeekValueTypeTokenClosed(pModule, &typeContext, &pTokenModule); if (token == mdTokenNil) goto moveToNextToken; DWORD dwAttrType; Module *pDefModule; mdToken defToken; dwAttrType = 0; if (ClassLoader::ResolveTokenToTypeDefThrowing(pTokenModule, token, &pDefModule, &defToken)) { if (function != NULL) function(pModule, token, pDefModule, defToken, &ptr, &typeContext, pData); } moveToNextToken: // move to next argument token IfFailThrowBF(ptr.SkipExactlyOne(), BFA_BAD_SIGNATURE, pModule); } if (!HaveValueTypeParametersBeenWalked()) { SetValueTypeParametersWalked(); } } PrecodeType MethodDesc::GetPrecodeType() { LIMITED_METHOD_CONTRACT; PrecodeType precodeType = PRECODE_INVALID; #ifdef HAS_FIXUP_PRECODE if (!RequiresMethodDescCallingConvention()) { // Use the more efficient fixup precode if possible precodeType = PRECODE_FIXUP; } else #endif // HAS_FIXUP_PRECODE { precodeType = PRECODE_STUB; } return precodeType; } #endif // !DACCESS_COMPILE #ifdef FEATURE_COMINTEROP #ifndef DACCESS_COMPILE void ComPlusCallMethodDesc::InitRetThunk() { WRAPPER_NO_CONTRACT; #ifdef TARGET_X86 if (m_pComPlusCallInfo->m_pRetThunk != NULL) return; // Record the fact that we are writting into the ComPlusCallMethodDesc g_IBCLogger.LogMethodDescAccess(this); UINT numStackBytes = CbStackPop(); LPVOID pRetThunk = ComPlusCall::GetRetThunk(numStackBytes); FastInterlockCompareExchangePointer<void *>(&m_pComPlusCallInfo->m_pRetThunk, pRetThunk, NULL); #endif // TARGET_X86 } #endif //!DACCESS_COMPILE #endif // FEATURE_COMINTEROP #ifndef DACCESS_COMPILE void MethodDesc::PrepareForUseAsADependencyOfANativeImageWorker() { STANDARD_VM_CONTRACT; // This function ensures that a method is ready for use as a dependency of a native image // The current requirement is only that valuetypes can be resolved to their type defs as much // as is possible. (If the method is actually called, then this will not throw, but there // are cases where we call this method and we are unaware if this method will actually be called // or accessed as a native image dependency. This explains the contract (STANDARD_VM_CONTRACT) // - This method should be callable only when general purpose VM code can be called // , as well as the TRY/CATCH. // - This function should not introduce failures EX_TRY { WalkValueTypeParameters(this->GetMethodTable(), NULL, NULL); } EX_CATCH { } EX_END_CATCH(RethrowTerminalExceptions); _ASSERTE(HaveValueTypeParametersBeenWalked()); } static void CheckForEquivalenceAndLoadType(Module *pModule, mdToken token, Module *pDefModule, mdToken defToken, const SigParser *ptr, SigTypeContext *pTypeContext, void *pData) { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; BOOL *pHasEquivalentParam = (BOOL *)pData; #ifdef FEATURE_TYPEEQUIVALENCE *pHasEquivalentParam = IsTypeDefEquivalent(defToken, pDefModule); #else _ASSERTE(*pHasEquivalentParam == FALSE); // Assert this is always false. #endif // FEATURE_TYPEEQUIVALENCE SigPointer sigPtr(*ptr); TypeHandle th = sigPtr.GetTypeHandleThrowing(pModule, pTypeContext); _ASSERTE(!th.IsNull()); } void MethodDesc::PrepareForUseAsAFunctionPointer() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; // Since function pointers are unsafe and can enable type punning, all // value type parameters must be loaded prior to providing a function pointer. if (HaveValueTypeParametersBeenLoaded()) return; BOOL fHasTypeEquivalentStructParameters = FALSE; WalkValueTypeParameters(this->GetMethodTable(), CheckForEquivalenceAndLoadType, &fHasTypeEquivalentStructParameters); #ifdef FEATURE_TYPEEQUIVALENCE if (!fHasTypeEquivalentStructParameters) SetDoesNotHaveEquivalentValuetypeParameters(); #endif // FEATURE_TYPEEQUIVALENCE SetValueTypeParametersLoaded(); } #endif //!DACCESS_COMPILE #ifdef _MSC_VER #pragma warning(pop) #endif // _MSC_VER: warning C4244
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =========================================================================== // File: Method.CPP // // // See the book of the runtime entry for overall design: // file:../../doc/BookOfTheRuntime/ClassLoader/MethodDescDesign.doc // #include "common.h" #include "excep.h" #include "dbginterface.h" #include "ecall.h" #include "eeconfig.h" #include "mlinfo.h" #include "dllimport.h" #include "generics.h" #include "genericdict.h" #include "typedesc.h" #include "typestring.h" #include "virtualcallstub.h" #include "jitinterface.h" #include "runtimehandles.h" #include "eventtrace.h" #include "interoputil.h" #include "prettyprintsig.h" #include "formattype.h" #include "fieldmarshaler.h" #include "versionresilienthashcode.h" #include "typehashingalgorithms.h" #ifdef FEATURE_COMINTEROP #include "comcallablewrapper.h" #include "clrtocomcall.h" #endif #ifdef FEATURE_MINIMETADATA_IN_TRIAGEDUMPS GVAL_IMPL(DWORD, g_MiniMetaDataBuffMaxSize); GVAL_IMPL(TADDR, g_MiniMetaDataBuffAddress); #endif // FEATURE_MINIMETADATA_IN_TRIAGEDUMPS // forward decl bool FixupSignatureContainingInternalTypes( DataImage * image, PCCOR_SIGNATURE pSig, DWORD cSig, bool checkOnly = false); // Alias ComPlusCallMethodDesc to regular MethodDesc to simplify definition of the size table #ifndef FEATURE_COMINTEROP #define ComPlusCallMethodDesc MethodDesc #endif // Verify that the structure sizes of our MethodDescs support proper // aligning for atomic stub replacement. // static_assert_no_msg((sizeof(MethodDescChunk) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(MethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(FCallMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(NDirectMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(EEImplMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(ArrayMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(ComPlusCallMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); static_assert_no_msg((sizeof(DynamicMethodDesc) & MethodDesc::ALIGNMENT_MASK) == 0); #define METHOD_DESC_SIZES(adjustment) \ adjustment + sizeof(MethodDesc), /* mcIL */ \ adjustment + sizeof(FCallMethodDesc), /* mcFCall */ \ adjustment + sizeof(NDirectMethodDesc), /* mcNDirect */ \ adjustment + sizeof(EEImplMethodDesc), /* mcEEImpl */ \ adjustment + sizeof(ArrayMethodDesc), /* mcArray */ \ adjustment + sizeof(InstantiatedMethodDesc), /* mcInstantiated */ \ adjustment + sizeof(ComPlusCallMethodDesc), /* mcComInterOp */ \ adjustment + sizeof(DynamicMethodDesc) /* mcDynamic */ const BYTE MethodDesc::s_ClassificationSizeTable[] = { // This is the raw METHOD_DESC_SIZES(0), // This extended part of the table is used for faster MethodDesc size lookup. // We index using optional slot flags into it METHOD_DESC_SIZES(sizeof(NonVtableSlot)), METHOD_DESC_SIZES(sizeof(MethodImpl)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(MethodImpl)), METHOD_DESC_SIZES(sizeof(NativeCodeSlot)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(NativeCodeSlot)), METHOD_DESC_SIZES(sizeof(MethodImpl) + sizeof(NativeCodeSlot)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(MethodImpl) + sizeof(NativeCodeSlot)), #ifdef FEATURE_COMINTEROP METHOD_DESC_SIZES(sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(MethodImpl) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(MethodImpl) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NativeCodeSlot) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(NativeCodeSlot) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(MethodImpl) + sizeof(NativeCodeSlot) + sizeof(ComPlusCallInfo)), METHOD_DESC_SIZES(sizeof(NonVtableSlot) + sizeof(MethodImpl) + sizeof(NativeCodeSlot) + sizeof(ComPlusCallInfo)) #endif }; #ifndef FEATURE_COMINTEROP #undef ComPlusCallMethodDesc #endif class ArgIteratorBaseForPInvoke : public ArgIteratorBase { protected: FORCEINLINE BOOL IsRegPassedStruct(MethodTable* pMT) { return pMT->GetNativeLayoutInfo()->IsNativeStructPassedInRegisters(); } }; class PInvokeArgIterator : public ArgIteratorTemplate<ArgIteratorBaseForPInvoke> { public: PInvokeArgIterator(MetaSig* pSig) { m_pSig = pSig; } }; //******************************************************************************* SIZE_T MethodDesc::SizeOf() { LIMITED_METHOD_DAC_CONTRACT; SIZE_T size = s_ClassificationSizeTable[m_wFlags & (mdcClassification | mdcHasNonVtableSlot | mdcMethodImpl #ifdef FEATURE_COMINTEROP | mdcHasComPlusCallInfo #endif | mdcHasNativeCodeSlot)]; return size; } /*********************************************************************/ #ifndef DACCESS_COMPILE BOOL NDirectMethodDesc::HasDefaultDllImportSearchPathsAttribute() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if(IsDefaultDllImportSearchPathsAttributeCached()) { return (ndirect.m_wFlags & kDefaultDllImportSearchPathsStatus) != 0; } BOOL attributeIsFound = GetDefaultDllImportSearchPathsAttributeValue(GetModule(),GetMemberDef(),&ndirect.m_DefaultDllImportSearchPathsAttributeValue); if(attributeIsFound ) { InterlockedSetNDirectFlags(kDefaultDllImportSearchPathsIsCached | kDefaultDllImportSearchPathsStatus); } else { InterlockedSetNDirectFlags(kDefaultDllImportSearchPathsIsCached); } return (ndirect.m_wFlags & kDefaultDllImportSearchPathsStatus) != 0; } #endif //!DACCESS_COMPILE //******************************************************************************* #ifndef DACCESS_COMPILE VOID MethodDesc::EnsureActive() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; GetMethodTable()->EnsureInstanceActive(); if (HasMethodInstantiation() && !IsGenericMethodDefinition()) { Instantiation methodInst = GetMethodInstantiation(); for (DWORD i = 0; i < methodInst.GetNumArgs(); ++i) { MethodTable * pMT = methodInst[i].GetMethodTable(); if (pMT) pMT->EnsureInstanceActive(); } } } #endif //!DACCESS_COMPILE //******************************************************************************* CHECK MethodDesc::CheckActivated() { WRAPPER_NO_CONTRACT; CHECK(GetModule()->CheckActivated()); CHECK_OK; } //******************************************************************************* BaseDomain *MethodDesc::GetDomain() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END return AppDomain::GetCurrentDomain(); } #ifndef DACCESS_COMPILE //******************************************************************************* LoaderAllocator * MethodDesc::GetDomainSpecificLoaderAllocator() { if (GetLoaderModule()->IsCollectible()) { return GetLoaderAllocator(); } else { return ::GetAppDomain()->GetLoaderAllocator(); } } #endif //!DACCESS_COMPILE //******************************************************************************* LPCUTF8 MethodDesc::GetName(USHORT slot) { // MethodDesc::GetDeclMethodDesc can throw. WRAPPER_NO_CONTRACT; MethodDesc *pDeclMD = GetDeclMethodDesc((UINT32)slot); CONSISTENCY_CHECK(IsInterface() || !pDeclMD->IsInterface()); return pDeclMD->GetName(); } //******************************************************************************* LPCUTF8 MethodDesc::GetName() { CONTRACTL { if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; // MethodImpl::FindMethodDesc can throw. GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; }CONTRACTL_END; g_IBCLogger.LogMethodDescAccess(this); if (IsArray()) { // Array classes don't have metadata tokens return dac_cast<PTR_ArrayMethodDesc>(this)->GetMethodName(); } else if (IsNoMetadata()) { // LCG methods don't have metadata tokens return dac_cast<PTR_DynamicMethodDesc>(this)->GetMethodName(); } else { // Get the metadata string name for this method LPCUTF8 result = NULL; if (FAILED(GetMDImport()->GetNameOfMethodDef(GetMemberDef(), &result))) { result = NULL; } return(result); } } #ifndef DACCESS_COMPILE /* * Function to get a method's name, its namespace */ VOID MethodDesc::GetMethodInfoNoSig(SString &namespaceOrClassName, SString &methodName) { static LPCWSTR pDynamicClassName = W("dynamicClass"); // namespace if(IsDynamicMethod()) namespaceOrClassName.Append(pDynamicClassName); else TypeString::AppendType(namespaceOrClassName, TypeHandle(GetMethodTable())); // name methodName.AppendUTF8(GetName()); } /* * Function to get a method's name, its namespace and signature (legacy format) */ VOID MethodDesc::GetMethodInfo(SString &namespaceOrClassName, SString &methodName, SString &methodSignature) { GetMethodInfoNoSig(namespaceOrClassName, methodName); // signature CQuickBytes qbOut; ULONG cSig = 0; PCCOR_SIGNATURE pSig; GetSig(&pSig, &cSig); PrettyPrintSigInternalLegacy(pSig, cSig, " ", &qbOut, GetMDImport()); methodSignature.AppendUTF8((char *)qbOut.Ptr()); } /* * Function to get a method's name, its namespace and signature (new format) */ VOID MethodDesc::GetMethodInfoWithNewSig(SString &namespaceOrClassName, SString &methodName, SString &methodSignature) { GetMethodInfoNoSig(namespaceOrClassName, methodName); // signature CQuickBytes qbOut; ULONG cSig = 0; PCCOR_SIGNATURE pSig; GetSig(&pSig, &cSig); PrettyPrintSig(pSig, (DWORD)cSig, "", &qbOut, GetMDImport(), NULL); methodSignature.AppendUTF8((char *)qbOut.Ptr()); } /* * Function to get a method's full name, something like * void [mscorlib]System.StubHelpers.BSTRMarshaler::ClearNative(native int) */ VOID MethodDesc::GetFullMethodInfo(SString& fullMethodSigName) { SString namespaceOrClassName, methodName; GetMethodInfoNoSig(namespaceOrClassName, methodName); // signature CQuickBytes qbOut; ULONG cSig = 0; PCCOR_SIGNATURE pSig; SString methodFullName; StackScratchBuffer namespaceNameBuffer, methodNameBuffer; methodFullName.AppendPrintf( (LPCUTF8)"[%s] %s::%s", GetModule()->GetAssembly()->GetSimpleName(), namespaceOrClassName.GetUTF8(namespaceNameBuffer), methodName.GetUTF8(methodNameBuffer)); GetSig(&pSig, &cSig); StackScratchBuffer buffer; PrettyPrintSig(pSig, (DWORD)cSig, methodFullName.GetUTF8(buffer), &qbOut, GetMDImport(), NULL); fullMethodSigName.AppendUTF8((char *)qbOut.Ptr()); } #endif //******************************************************************************* BOOL MethodDesc::MightHaveName(ULONG nameHashValue) { LIMITED_METHOD_CONTRACT; // We only have space for a name hash when we are using the packed slot layout if (RequiresFullSlotNumber()) { return TRUE; } WORD thisHashValue = m_wSlotNumber & enum_packedSlotLayout_NameHashMask; // A zero value might mean no hash has ever been set // (checking this way is better than dedicating a bit to tell us) if (thisHashValue == 0) { return TRUE; } WORD testHashValue = (WORD) nameHashValue & enum_packedSlotLayout_NameHashMask; return (thisHashValue == testHashValue); } //******************************************************************************* void MethodDesc::GetSig(PCCOR_SIGNATURE *ppSig, DWORD *pcSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END if (HasStoredSig()) { PTR_StoredSigMethodDesc pSMD = dac_cast<PTR_StoredSigMethodDesc>(this); if (pSMD->HasStoredMethodSig() || GetClassification()==mcDynamic) { *ppSig = pSMD->GetStoredMethodSig(pcSig); PREFIX_ASSUME(*ppSig != NULL); return; } } GetSigFromMetadata(GetMDImport(), ppSig, pcSig); PREFIX_ASSUME(*ppSig != NULL); } //******************************************************************************* // get a function signature from its metadata // Arguments: // input: // importer the metatdata importer to be used // output: // ppSig the function signature // pcSig number of elements in the signature void MethodDesc::GetSigFromMetadata(IMDInternalImport * importer, PCCOR_SIGNATURE * ppSig, DWORD * pcSig) { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END if (FAILED(importer->GetSigOfMethodDef(GetMemberDef(), pcSig, ppSig))) { // Class loader already asked for signature, so this should always succeed (unless there's a // bug or a new code path) _ASSERTE(!"If this ever fires, then this method should return HRESULT"); *ppSig = NULL; *pcSig = 0; } } //******************************************************************************* PCCOR_SIGNATURE MethodDesc::GetSig() { WRAPPER_NO_CONTRACT; PCCOR_SIGNATURE pSig; DWORD cSig; GetSig(&pSig, &cSig); PREFIX_ASSUME(pSig != NULL); return pSig; } Signature MethodDesc::GetSignature() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; PCCOR_SIGNATURE pSig; DWORD cSig; GetSig(&pSig, &cSig); PREFIX_ASSUME(pSig != NULL); return Signature(pSig, cSig); } PCODE MethodDesc::GetMethodEntryPoint() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; // Similarly to SetMethodEntryPoint(), it is up to the caller to ensure that calls to this function are appropriately // synchronized // Keep implementations of MethodDesc::GetMethodEntryPoint and MethodDesc::GetAddrOfSlot in sync! g_IBCLogger.LogMethodDescAccess(this); if (HasNonVtableSlot()) { SIZE_T size = GetBaseSize(); TADDR pSlot = dac_cast<TADDR>(this) + size; return *PTR_PCODE(pSlot); } _ASSERTE(GetMethodTable()->IsCanonicalMethodTable()); return GetMethodTable_NoLogging()->GetSlot(GetSlot()); } PTR_PCODE MethodDesc::GetAddrOfSlot() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; // Keep implementations of MethodDesc::GetMethodEntryPoint and MethodDesc::GetAddrOfSlot in sync! if (HasNonVtableSlot()) { SIZE_T size = GetBaseSize(); return PTR_PCODE(dac_cast<TADDR>(this) + size); } _ASSERTE(GetMethodTable()->IsCanonicalMethodTable()); return GetMethodTable()->GetSlotPtr(GetSlot()); } //******************************************************************************* PTR_MethodDesc MethodDesc::GetDeclMethodDesc(UINT32 slotNumber) { CONTRACTL { WRAPPER(THROWS); WRAPPER(GC_TRIGGERS); INSTANCE_CHECK; } CONTRACTL_END; MethodDesc *pMDResult = this; // If the MethodDesc is not itself a methodImpl, but it is not in its native // slot, then someone (perhaps itself) must have overridden a methodImpl // in a parent, which causes the method to get put into all of the methodImpl // slots. So, the MethodDesc is implicitly a methodImpl without containing // the data. To find the real methodImpl MethodDesc, climb the inheritance // hierarchy checking the native slot on the way. if ((UINT32)pMDResult->GetSlot() != slotNumber) { while (!pMDResult->IsMethodImpl()) { CONSISTENCY_CHECK(CheckPointer(pMDResult->GetMethodTable()->GetParentMethodTable())); CONSISTENCY_CHECK(slotNumber < pMDResult->GetMethodTable()->GetParentMethodTable()->GetNumVirtuals()); pMDResult = pMDResult->GetMethodTable()->GetParentMethodTable()->GetMethodDescForSlot(slotNumber); } { CONSISTENCY_CHECK(pMDResult->IsMethodImpl()); MethodImpl *pImpl = pMDResult->GetMethodImpl(); pMDResult = pImpl->FindMethodDesc(slotNumber, PTR_MethodDesc(pMDResult)); } // It is possible that a methodImpl'd slot got copied into another slot because // of slot unification, for example: // C1::A is methodImpled with C2::B // C1::B is methodImpled with C2::C // this means that through slot unification that A is tied to B and B is tied to C, // so A is tied to C even though C does not have a methodImpl entry specifically // relating to that slot. In this case, we recurse to the parent type and ask the // same question again. if (pMDResult->GetSlot() != slotNumber) { MethodTable * pMTOfMD = pMDResult->GetMethodTable(); CONSISTENCY_CHECK(slotNumber < pMTOfMD->GetParentMethodTable()->GetNumVirtuals()); pMDResult = pMTOfMD->GetParentMethodTable()->GetMethodDescForSlot(slotNumber); pMDResult = pMDResult->GetDeclMethodDesc(slotNumber); } } CONSISTENCY_CHECK(CheckPointer(pMDResult)); CONSISTENCY_CHECK((UINT32)pMDResult->GetSlot() == slotNumber); return PTR_MethodDesc(pMDResult); } //******************************************************************************* // Returns a hash for the method. // The hash will be the same for the method across multiple process runs. #ifndef DACCESS_COMPILE COUNT_T MethodDesc::GetStableHash() { WRAPPER_NO_CONTRACT; const char * className = NULL; if (IsLCGMethod()) { className = "DynamicClass"; } else if (IsILStub()) { className = ILStubResolver::GetStubClassName(this); } if (className == NULL) { return GetVersionResilientMethodHashCode(this); } else { int typeHash = ComputeNameHashCode("", className); return typeHash ^ ComputeNameHashCode(GetName()); } } #endif // DACCESS_COMPILE //******************************************************************************* // Get the number of type parameters to a generic method DWORD MethodDesc::GetNumGenericMethodArgs() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; CANNOT_TAKE_LOCK; SUPPORTS_DAC; } CONTRACTL_END g_IBCLogger.LogMethodDescAccess(this); if (GetClassification() == mcInstantiated) { InstantiatedMethodDesc *pIMD = AsInstantiatedMethodDesc(); return pIMD->m_wNumGenericArgs; } else return 0; } //******************************************************************************* MethodTable * MethodDesc::GetExactDeclaringType(MethodTable * ownerOrSubType) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; MethodTable * pMT = GetMethodTable(); // Fast path for typical case. if (ownerOrSubType == pMT) return pMT; // If we come here for array method, the typedef tokens inside GetMethodTableMatchingParentClass // will match, but the types are actually from unrelated arrays, so the result would be incorrect. _ASSERTE(!IsArray()); return ownerOrSubType->GetMethodTableMatchingParentClass(pMT); } //******************************************************************************* Instantiation MethodDesc::GetExactClassInstantiation(TypeHandle possibleObjType) { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END return (possibleObjType.IsNull() ? GetClassInstantiation() : possibleObjType.GetInstantiationOfParentClass(GetMethodTable())); } //******************************************************************************* BOOL MethodDesc::HasSameMethodDefAs(MethodDesc * pMD) { LIMITED_METHOD_CONTRACT; if (this == pMD) return TRUE; return (GetMemberDef() == pMD->GetMemberDef()) && (GetModule() == pMD->GetModule()); } //******************************************************************************* BOOL MethodDesc::IsTypicalSharedInstantiation() { WRAPPER_NO_CONTRACT; Instantiation classInst = GetMethodTable()->GetInstantiation(); if (!ClassLoader::IsTypicalSharedInstantiation(classInst)) return FALSE; if (IsGenericMethodDefinition()) return FALSE; Instantiation methodInst = GetMethodInstantiation(); if (!ClassLoader::IsTypicalSharedInstantiation(methodInst)) return FALSE; return TRUE; } //******************************************************************************* Instantiation MethodDesc::LoadMethodInstantiation() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END if (IsGenericMethodDefinition() && !IsTypicalMethodDefinition()) { return LoadTypicalMethodDefinition()->GetMethodInstantiation(); } else return GetMethodInstantiation(); } //******************************************************************************* Module *MethodDesc::GetDefiningModuleForOpenMethod() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END Module *pModule = GetMethodTable()->GetDefiningModuleForOpenType(); if (pModule != NULL) return pModule; if (IsGenericMethodDefinition()) return GetModule(); Instantiation inst = GetMethodInstantiation(); for (DWORD i = 0; i < inst.GetNumArgs(); i++) { // Encoded types are never open if (!inst[i].IsEncodedFixup()) { pModule = inst[i].GetDefiningModuleForOpenType(); if (pModule != NULL) return pModule; } } return NULL; } //******************************************************************************* BOOL MethodDesc::ContainsGenericVariables() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END // If this is a method of a generic type, does the type have // non-instantiated type arguments if (TypeHandle(GetMethodTable()).ContainsGenericVariables()) return TRUE; if (IsGenericMethodDefinition()) return TRUE; // If this is an instantiated generic method, are there are any generic type variables if (GetNumGenericMethodArgs() != 0) { Instantiation methodInst = GetMethodInstantiation(); for (DWORD i = 0; i < methodInst.GetNumArgs(); i++) { if (methodInst[i].ContainsGenericVariables()) return TRUE; } } return FALSE; } //******************************************************************************* BOOL MethodDesc::IsTightlyBoundToMethodTable() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; // Anything with the real vtable slot is tightly bound if (!HasNonVtableSlot()) return TRUE; // All instantiations of generic methods are stored in the InstMethHashTable. if (HasMethodInstantiation()) { if (IsGenericMethodDefinition()) return TRUE; else return FALSE; } // Wrapper stubs are stored in the InstMethHashTable, e.g. for static methods in generic classes if (IsWrapperStub()) return FALSE; return TRUE; } #ifndef DACCESS_COMPILE //******************************************************************************* // Update flags in a thread safe manner. WORD MethodDesc::InterlockedUpdateFlags(WORD wMask, BOOL fSet) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; WORD wOldState = m_wFlags; DWORD dwMask = wMask; // We need to make this operation atomic (multiple threads can play with the flags field at the same time). But the flags field // is a word and we only have interlock operations over dwords. So we round down the flags field address to the nearest aligned // dword (along with the intended bitfield mask). Note that we make the assumption that the flags word is aligned itself, so we // only have two possibilites: the field already lies on a dword boundary or it's precisely one word out. DWORD* pdwFlags = (DWORD*)((ULONG_PTR)&m_wFlags - (offsetof(MethodDesc, m_wFlags) & 0x3)); #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:6326) // "Suppress PREFast warning about comparing two constants" #endif // _PREFAST_ #if BIGENDIAN if ((offsetof(MethodDesc, m_wFlags) & 0x3) == 0) { #else // !BIGENDIAN if ((offsetof(MethodDesc, m_wFlags) & 0x3) != 0) { #endif // !BIGENDIAN static_assert_no_msg(sizeof(m_wFlags) == 2); dwMask <<= 16; } #ifdef _PREFAST_ #pragma warning(pop) #endif g_IBCLogger.LogMethodDescWriteAccess(this); if (fSet) FastInterlockOr(pdwFlags, dwMask); else FastInterlockAnd(pdwFlags, ~dwMask); return wOldState; } WORD MethodDesc::InterlockedUpdateFlags3(WORD wMask, BOOL fSet) { LIMITED_METHOD_CONTRACT; WORD wOldState = m_wFlags3AndTokenRemainder; DWORD dwMask = wMask; // We need to make this operation atomic (multiple threads can play with the flags field at the same time). But the flags field // is a word and we only have interlock operations over dwords. So we round down the flags field address to the nearest aligned // dword (along with the intended bitfield mask). Note that we make the assumption that the flags word is aligned itself, so we // only have two possibilites: the field already lies on a dword boundary or it's precisely one word out. DWORD* pdwFlags = (DWORD*)((ULONG_PTR)&m_wFlags3AndTokenRemainder - (offsetof(MethodDesc, m_wFlags3AndTokenRemainder) & 0x3)); #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:6326) // "Suppress PREFast warning about comparing two constants" #endif // _PREFAST_ #if BIGENDIAN if ((offsetof(MethodDesc, m_wFlags3AndTokenRemainder) & 0x3) == 0) { #else // !BIGENDIAN if ((offsetof(MethodDesc, m_wFlags3AndTokenRemainder) & 0x3) != 0) { #endif // !BIGENDIAN static_assert_no_msg(sizeof(m_wFlags3AndTokenRemainder) == 2); dwMask <<= 16; } #ifdef _PREFAST_ #pragma warning(pop) #endif g_IBCLogger.LogMethodDescWriteAccess(this); if (fSet) FastInterlockOr(pdwFlags, dwMask); else FastInterlockAnd(pdwFlags, ~dwMask); return wOldState; } #endif // !DACCESS_COMPILE //******************************************************************************* // Returns the address of the native code. // // Methods which have no native code are either implemented by stubs or not jitted yet. // For example, NDirectMethodDesc's have no native code. They are treated as // implemented by stubs. On WIN64, these stubs are IL stubs, which DO have native code. // // This function returns null if the method has no native code. PCODE MethodDesc::GetNativeCode() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; _ASSERTE(!IsDefaultInterfaceMethod() || HasNativeCodeSlot()); g_IBCLogger.LogMethodDescAccess(this); if (HasNativeCodeSlot()) { // When profiler is enabled, profiler may ask to rejit a code even though we // we have ngen code for this MethodDesc. (See MethodDesc::DoPrestub). // This means that *GetAddrOfNativeCodeSlot() // is not stable. It can turn from non-zero to zero. PCODE pCode = *GetAddrOfNativeCodeSlot(); #ifdef TARGET_ARM if (pCode != NULL) pCode |= THUMB_CODE; #endif return pCode; } if (!HasStableEntryPoint() || HasPrecode()) return NULL; return GetStableEntryPoint(); } //******************************************************************************* PTR_PCODE MethodDesc::GetAddrOfNativeCodeSlot() { WRAPPER_NO_CONTRACT; _ASSERTE(HasNativeCodeSlot()); SIZE_T size = s_ClassificationSizeTable[m_wFlags & (mdcClassification | mdcHasNonVtableSlot | mdcMethodImpl)]; return (PTR_PCODE)(dac_cast<TADDR>(this) + size); } //******************************************************************************* BOOL MethodDesc::IsVoid() { WRAPPER_NO_CONTRACT; MetaSig sig(this); return sig.IsReturnTypeVoid(); } //******************************************************************************* BOOL MethodDesc::HasRetBuffArg() { WRAPPER_NO_CONTRACT; MetaSig sig(this); ArgIterator argit(&sig); return argit.HasRetBuffArg(); } //******************************************************************************* // This returns the offset of the IL. // The offset is relative to the base of the IL image. ULONG MethodDesc::GetRVA() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; SUPPORTS_DAC; } CONTRACTL_END if (IsRuntimeSupplied()) { return 0; } // Methods without metadata don't have an RVA. Examples are IL stubs and LCG methods. if (IsNoMetadata()) { return 0; } if (GetMemberDef() & 0x00FFFFFF) { Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); DWORD dwDescrOffset; DWORD dwImplFlags; if (FAILED(pModule->GetMDImport()->GetMethodImplProps(GetMemberDef(), &dwDescrOffset, &dwImplFlags))) { // Class loader already asked for MethodImpls, so this should always succeed (unless there's a // bug or a new code path) _ASSERTE(!"If this ever fires, then this method should return HRESULT"); return 0; } BAD_FORMAT_NOTHROW_ASSERT(IsNDirect() || IsMiIL(dwImplFlags) || IsMiOPTIL(dwImplFlags) || dwDescrOffset == 0); return dwDescrOffset; } return 0; } //******************************************************************************* BOOL MethodDesc::IsVarArg() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; SUPPORTS_DAC; Signature signature = GetSignature(); _ASSERTE(!signature.IsEmpty()); return MetaSig::IsVarArg(signature); } //******************************************************************************* COR_ILMETHOD* MethodDesc::GetILHeader(BOOL fAllowOverrides /*=FALSE*/) { CONTRACTL { THROWS; GC_NOTRIGGER; PRECONDITION(IsIL()); PRECONDITION(!IsUnboxingStub()); } CONTRACTL_END Module *pModule = GetModule(); // Always pickup 'permanent' overrides like reflection emit, EnC, etc. // but only grab temporary overrides (like profiler rewrites) if asked to TADDR pIL = pModule->GetDynamicIL(GetMemberDef(), fAllowOverrides); if (pIL == NULL) { pIL = pModule->GetIL(GetRVA()); } #ifdef _DEBUG_IMPL if (pIL != NULL) { // // This is convenient place to verify that COR_ILMETHOD_DECODER::GetOnDiskSize is in sync // with our private DACized copy in PEDecoder::ComputeILMethodSize // COR_ILMETHOD_DECODER header((COR_ILMETHOD *)pIL); SIZE_T size1 = header.GetOnDiskSize((COR_ILMETHOD *)pIL); SIZE_T size2 = PEDecoder::ComputeILMethodSize(pIL); _ASSERTE(size1 == size2); } #endif #ifdef DACCESS_COMPILE return (pIL != NULL) ? DacGetIlMethod(pIL) : NULL; #else // !DACCESS_COMPILE return PTR_COR_ILMETHOD(pIL); #endif // !DACCESS_COMPILE } //******************************************************************************* ReturnKind MethodDesc::ParseReturnKindFromSig(INDEBUG(bool supportStringConstructors)) { CONTRACTL { if (FORBIDGC_LOADER_USE_ENABLED()) NOTHROW; else THROWS; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END ENABLE_FORBID_GC_LOADER_USE_IN_THIS_SCOPE(); TypeHandle thValueType; MetaSig sig(this); CorElementType et = sig.GetReturnTypeNormalized(&thValueType); switch (et) { case ELEMENT_TYPE_STRING: case ELEMENT_TYPE_CLASS: case ELEMENT_TYPE_SZARRAY: case ELEMENT_TYPE_ARRAY: case ELEMENT_TYPE_OBJECT: case ELEMENT_TYPE_VAR: return RT_Object; #ifdef ENREGISTERED_RETURNTYPE_INTEGER_MAXSIZE case ELEMENT_TYPE_VALUETYPE: // We return value types in registers if they fit in ENREGISTERED_RETURNTYPE_MAXSIZE // These valuetypes could contain gc refs. { ArgIterator argit(&sig); if (!argit.HasRetBuffArg()) { // the type must already be loaded _ASSERTE(!thValueType.IsNull()); if (!thValueType.IsTypeDesc()) { MethodTable * pReturnTypeMT = thValueType.AsMethodTable(); #ifdef UNIX_AMD64_ABI if (pReturnTypeMT->IsRegPassedStruct()) { // The Multi-reg return case using the classhandle is only implemented for AMD64 SystemV ABI. // On other platforms, multi-reg return is not supported with GcInfo v1. // So, the relevant information must be obtained from the GcInfo tables (which requires version2). EEClass* eeClass = pReturnTypeMT->GetClass(); ReturnKind regKinds[2] = { RT_Unset, RT_Unset }; int orefCount = 0; for (int i = 0; i < 2; i++) { if (eeClass->GetEightByteClassification(i) == SystemVClassificationTypeIntegerReference) { regKinds[i] = RT_Object; } else if (eeClass->GetEightByteClassification(i) == SystemVClassificationTypeIntegerByRef) { regKinds[i] = RT_ByRef; } else { regKinds[i] = RT_Scalar; } } ReturnKind structReturnKind = GetStructReturnKind(regKinds[0], regKinds[1]); return structReturnKind; } #endif // UNIX_AMD64_ABI if (pReturnTypeMT->ContainsPointers() || pReturnTypeMT->IsByRefLike()) { if (pReturnTypeMT->GetNumInstanceFields() == 1) { _ASSERTE(pReturnTypeMT->GetNumInstanceFieldBytes() == sizeof(void*)); // Note: we can't distinguish RT_Object from RT_ByRef, the caller has to tolerate that. return RT_Object; } else { // Multi reg return case with pointers, can't restore the actual kind. return RT_Illegal; } } } } } break; #endif // ENREGISTERED_RETURNTYPE_INTEGER_MAXSIZE #ifdef _DEBUG case ELEMENT_TYPE_VOID: // String constructors return objects. We should not have any ecall string // constructors, except when called from gc coverage codes (which is only // done under debug). We will therefore optimize the retail version of this // method to not support string constructors. if (IsCtor() && GetMethodTable()->HasComponentSize()) { _ASSERTE(supportStringConstructors); return RT_Object; } break; #endif // _DEBUG case ELEMENT_TYPE_BYREF: return RT_ByRef; default: break; } return RT_Scalar; } ReturnKind MethodDesc::GetReturnKind(INDEBUG(bool supportStringConstructors)) { // For simplicity, we don't hijack in funclets, but if you ever change that, // be sure to choose the OnHijack... callback type to match that of the FUNCLET // not the main method (it would probably be Scalar). ENABLE_FORBID_GC_LOADER_USE_IN_THIS_SCOPE(); // Mark that we are performing a stackwalker like operation on the current thread. // This is necessary to allow the signature parsing functions to work without triggering any loads StackWalkerWalkingThreadHolder threadStackWalking(GetThread()); #ifdef TARGET_X86 MetaSig msig(this); if (msig.HasFPReturn()) { // Figuring out whether the function returns FP or not is hard to do // on-the-fly, so we use a different callback helper on x86 where this // piece of information is needed in order to perform the right save & // restore of the return value around the call to OnHijackScalarWorker. return RT_Float; } #endif // TARGET_X86 return ParseReturnKindFromSig(INDEBUG(supportStringConstructors)); } #ifdef FEATURE_COMINTEROP #ifndef DACCESS_COMPILE //******************************************************************************* LONG MethodDesc::GetComDispid() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END ULONG dispid = -1; HRESULT hr = GetMDImport()->GetDispIdOfMemberDef( GetMemberDef(), // The member for which to get props. &dispid // return dispid. ); if (FAILED(hr)) return -1; return (LONG)dispid; } //******************************************************************************* WORD MethodDesc::GetComSlot() { CONTRACTL { THROWS; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END MethodTable * pMT = GetMethodTable(); _ASSERTE(pMT->IsInterface()); // COM slots are biased from MethodTable slots depending on interface type WORD numExtraSlots = ComMethodTable::GetNumExtraSlots(pMT->GetComInterfaceType()); // Normal interfaces are layed out the same way as in the MethodTable, while // sparse interfaces need to go through an extra layer of mapping. WORD slot; if (pMT->IsSparseForCOMInterop()) slot = numExtraSlots + pMT->GetClass()->GetSparseCOMInteropVTableMap()->LookupVTSlot(GetSlot()); else slot = numExtraSlots + GetSlot(); return slot; } #endif // !DACCESS_COMPILE #endif // FEATURE_COMINTEROP //******************************************************************************* DWORD MethodDesc::GetAttrs() const { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END if (IsArray()) return dac_cast<PTR_ArrayMethodDesc>(this)->GetAttrs(); else if (IsNoMetadata()) return dac_cast<PTR_DynamicMethodDesc>(this)->GetAttrs(); DWORD dwAttributes; if (FAILED(GetMDImport()->GetMethodDefProps(GetMemberDef(), &dwAttributes))) { // Class loader already asked for attributes, so this should always succeed (unless there's a // bug or a new code path) _ASSERTE(!"If this ever fires, then this method should return HRESULT"); return 0; } return dwAttributes; } //******************************************************************************* DWORD MethodDesc::GetImplAttrs() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END DWORD props; if (FAILED(GetMDImport()->GetMethodImplProps(GetMemberDef(), NULL, &props))) { // Class loader already asked for MethodImpls, so this should always succeed (unless there's a // bug or a new code path) _ASSERTE(!"If this ever fires, then this method should return HRESULT"); return 0; } return props; } //******************************************************************************* Module* MethodDesc::GetLoaderModule() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (HasMethodInstantiation() && !IsGenericMethodDefinition()) { Module *retVal = ClassLoader::ComputeLoaderModule(GetMethodTable(), GetMemberDef(), GetMethodInstantiation()); return retVal; } else { return GetMethodTable()->GetLoaderModule(); } } //******************************************************************************* Module *MethodDesc::GetModule() const { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; SUPPORTS_DAC; g_IBCLogger.LogMethodDescAccess(this); Module *pModule = GetModule_NoLogging(); return pModule; } //******************************************************************************* Module *MethodDesc::GetModule_NoLogging() const { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; SUPPORTS_DAC; MethodTable* pMT = GetMethodDescChunk()->GetMethodTable(); return pMT->GetModule(); } //******************************************************************************* // Is this an instantiating stub for generics? This does not include those // BoxedEntryPointStubs which call an instantiating stub. BOOL MethodDesc::IsInstantiatingStub() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return (GetClassification() == mcInstantiated) && !IsUnboxingStub() && AsInstantiatedMethodDesc()->IMD_IsWrapperStubWithInstantiations(); } //******************************************************************************* BOOL MethodDesc::IsWrapperStub() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return (IsUnboxingStub() || IsInstantiatingStub()); } #ifndef DACCESS_COMPILE //******************************************************************************* MethodDesc *MethodDesc::GetWrappedMethodDesc() { WRAPPER_NO_CONTRACT; _ASSERTE(IsWrapperStub()); if (IsUnboxingStub()) { return this->GetMethodTable()->GetUnboxedEntryPointMD(this); } if (IsInstantiatingStub()) { MethodDesc *pRet = AsInstantiatedMethodDesc()->IMD_GetWrappedMethodDesc(); #ifdef _DEBUG MethodDesc *pAltMD = MethodDesc::FindOrCreateAssociatedMethodDesc(this, this->GetMethodTable(), FALSE, /* no unboxing entrypoint */ this->GetMethodInstantiation(), TRUE /* get shared code */ ); _ASSERTE(pAltMD == pRet); #endif // _DEBUG return pRet; } return NULL; } MethodDesc *MethodDesc::GetExistingWrappedMethodDesc() { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; _ASSERTE(IsWrapperStub()); if (IsUnboxingStub()) { return this->GetMethodTable()->GetExistingUnboxedEntryPointMD(this); } if (IsInstantiatingStub()) { MethodDesc *pRet = AsInstantiatedMethodDesc()->IMD_GetWrappedMethodDesc(); return pRet; } return NULL; } #endif // !DACCESS_COMPILE //******************************************************************************* BOOL MethodDesc::IsSharedByGenericInstantiations() { LIMITED_METHOD_DAC_CONTRACT; if (IsWrapperStub()) return FALSE; else if (GetMethodTable()->IsSharedByGenericInstantiations()) return TRUE; else return IsSharedByGenericMethodInstantiations(); } //******************************************************************************* BOOL MethodDesc::IsSharedByGenericMethodInstantiations() { LIMITED_METHOD_DAC_CONTRACT; if (GetClassification() == mcInstantiated) return AsInstantiatedMethodDesc()->IMD_IsSharedByGenericMethodInstantiations(); else return FALSE; } //******************************************************************************* // Does this method require an extra MethodTable argument for instantiation information? // This is the case for // * per-inst static methods in shared-code instantiated generic classes (e.g. static void MyClass<string>::m()) // - there is no this pointer providing generic dictionary info // * shared-code instance methods in instantiated generic structs (e.g. void MyValueType<string>::m()) // - unboxed 'this' pointer in value-type instance methods don't have MethodTable pointer by definition // * shared instance and default interface methods called via interface dispatch (e. g. IFoo<string>.Foo calling into IFoo<object>::Foo()) // - this pointer is ambiguous as it can implement more than one IFoo<T> BOOL MethodDesc::RequiresInstMethodTableArg() { LIMITED_METHOD_DAC_CONTRACT; return IsSharedByGenericInstantiations() && !HasMethodInstantiation() && (IsStatic() || GetMethodTable()->IsValueType() || (GetMethodTable()->IsInterface() && !IsAbstract())); } //******************************************************************************* // Does this method require an extra InstantiatedMethodDesc argument for instantiation information? // This is the case for // * shared-code instantiated generic methods BOOL MethodDesc::RequiresInstMethodDescArg() { LIMITED_METHOD_DAC_CONTRACT; return IsSharedByGenericInstantiations() && HasMethodInstantiation(); } //******************************************************************************* // Does this method require any kind of extra argument for instantiation information? BOOL MethodDesc::RequiresInstArg() { LIMITED_METHOD_DAC_CONTRACT; BOOL fRet = IsSharedByGenericInstantiations() && (HasMethodInstantiation() || IsStatic() || GetMethodTable()->IsValueType() || (GetMethodTable()->IsInterface() && !IsAbstract())); _ASSERT(fRet == (RequiresInstMethodTableArg() || RequiresInstMethodDescArg())); return fRet; } //******************************************************************************* BOOL MethodDesc::IsRuntimeMethodHandle() { WRAPPER_NO_CONTRACT; // <TODO> Refine this check further for BoxedEntryPointStubs </TODO> return (!HasMethodInstantiation() || !IsSharedByGenericMethodInstantiations()); } //******************************************************************************* // Strip off method and class instantiation if present e.g. // C1<int>.m1<string> -> C1.m1 // C1<int>.m2 -> C1.m2 // C2.m2<int> -> C2.m2 // C2.m2 -> C2.m2 MethodDesc* MethodDesc::LoadTypicalMethodDefinition() { CONTRACT(MethodDesc*) { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); POSTCONDITION(CheckPointer(RETVAL)); POSTCONDITION(RETVAL->IsTypicalMethodDefinition()); } CONTRACT_END #ifndef DACCESS_COMPILE if (HasClassOrMethodInstantiation()) { MethodTable *pMT = GetMethodTable(); if (!pMT->IsTypicalTypeDefinition()) pMT = ClassLoader::LoadTypeDefThrowing(pMT->GetModule(), pMT->GetCl(), ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef).GetMethodTable(); CONSISTENCY_CHECK(TypeHandle(pMT).CheckFullyLoaded()); MethodDesc *resultMD = pMT->GetParallelMethodDesc(this); PREFIX_ASSUME(resultMD != NULL); resultMD->CheckRestore(); RETURN (resultMD); } else #endif // !DACCESS_COMPILE RETURN(this); } //******************************************************************************* BOOL MethodDesc::IsTypicalMethodDefinition() const { LIMITED_METHOD_CONTRACT; if (HasMethodInstantiation() && !IsGenericMethodDefinition()) return FALSE; if (HasClassInstantiation() && !GetMethodTable()->IsGenericTypeDefinition()) return FALSE; return TRUE; } //******************************************************************************* BOOL MethodDesc::AcquiresInstMethodTableFromThis() { LIMITED_METHOD_CONTRACT; SUPPORTS_DAC; return IsSharedByGenericInstantiations() && !HasMethodInstantiation() && !IsStatic() && !GetMethodTable()->IsValueType() && !(GetMethodTable()->IsInterface() && !IsAbstract()); } //******************************************************************************* UINT MethodDesc::SizeOfArgStack() { WRAPPER_NO_CONTRACT; MetaSig msig(this); ArgIterator argit(&msig); return argit.SizeOfArgStack(); } UINT MethodDesc::SizeOfNativeArgStack() { #ifndef UNIX_AMD64_ABI return SizeOfArgStack(); #else WRAPPER_NO_CONTRACT; MetaSig msig(this); PInvokeArgIterator argit(&msig); return argit.SizeOfArgStack(); #endif } #ifdef TARGET_X86 //******************************************************************************* UINT MethodDesc::CbStackPop() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; MetaSig msig(this); ArgIterator argit(&msig); bool fCtorOfVariableSizedObject = msig.HasThis() && (GetMethodTable() == g_pStringClass) && IsCtor(); if (fCtorOfVariableSizedObject) { msig.ClearHasThis(); } return argit.CbStackPop(); } #endif // TARGET_X86 #ifndef DACCESS_COMPILE //******************************************************************************* // Strip off the method instantiation (if present) e.g. // C<int>.m<string> -> C<int>.m // D.m<string> -> D.m // Note that this also canonicalizes the owning method table // @todo check uses and clean this up MethodDesc* MethodDesc::StripMethodInstantiation() { CONTRACT(MethodDesc*) { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END if (!HasClassOrMethodInstantiation()) RETURN(this); MethodTable *pMT = GetMethodTable()->GetCanonicalMethodTable(); MethodDesc *resultMD = pMT->GetParallelMethodDesc(this); _ASSERTE(resultMD->IsGenericMethodDefinition() || !resultMD->HasMethodInstantiation()); RETURN(resultMD); } //******************************************************************************* MethodDescChunk *MethodDescChunk::CreateChunk(LoaderHeap *pHeap, DWORD methodDescCount, DWORD classification, BOOL fNonVtableSlot, BOOL fNativeCodeSlot, BOOL fComPlusCallInfo, MethodTable *pInitialMT, AllocMemTracker *pamTracker) { CONTRACT(MethodDescChunk *) { THROWS; GC_NOTRIGGER; INJECT_FAULT(ThrowOutOfMemory()); PRECONDITION(CheckPointer(pHeap)); PRECONDITION(CheckPointer(pInitialMT)); PRECONDITION(CheckPointer(pamTracker)); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; SIZE_T oneSize = MethodDesc::GetBaseSize(classification); if (fNonVtableSlot) oneSize += sizeof(MethodDesc::NonVtableSlot); if (fNativeCodeSlot) oneSize += sizeof(MethodDesc::NativeCodeSlot); #ifdef FEATURE_COMINTEROP if (fComPlusCallInfo) oneSize += sizeof(ComPlusCallInfo); #else // FEATURE_COMINTEROP _ASSERTE(!fComPlusCallInfo); #endif // FEATURE_COMINTEROP _ASSERTE((oneSize & MethodDesc::ALIGNMENT_MASK) == 0); DWORD maxMethodDescsPerChunk = (DWORD)(MethodDescChunk::MaxSizeOfMethodDescs / oneSize); if (methodDescCount == 0) methodDescCount = maxMethodDescsPerChunk; MethodDescChunk * pFirstChunk = NULL; do { DWORD count = min(methodDescCount, maxMethodDescsPerChunk); void * pMem = pamTracker->Track( pHeap->AllocMem(S_SIZE_T(sizeof(TADDR) + sizeof(MethodDescChunk) + oneSize * count))); // Skip pointer to temporary entrypoints MethodDescChunk * pChunk = (MethodDescChunk *)((BYTE*)pMem + sizeof(TADDR)); pChunk->SetSizeAndCount(oneSize * count, count); pChunk->SetMethodTable(pInitialMT); MethodDesc * pMD = pChunk->GetFirstMethodDesc(); for (DWORD i = 0; i < count; i++) { pMD->SetChunkIndex(pChunk); pMD->SetClassification(classification); if (fNonVtableSlot) pMD->SetHasNonVtableSlot(); if (fNativeCodeSlot) pMD->SetHasNativeCodeSlot(); #ifdef FEATURE_COMINTEROP if (fComPlusCallInfo) pMD->SetupGenericComPlusCall(); #endif // FEATURE_COMINTEROP _ASSERTE(pMD->SizeOf() == oneSize); pMD = (MethodDesc *)((BYTE *)pMD + oneSize); } pChunk->m_next = pFirstChunk; pFirstChunk = pChunk; methodDescCount -= count; } while (methodDescCount > 0); RETURN pFirstChunk; } //-------------------------------------------------------------------- // Virtual Resolution on Objects // // Given a MethodDesc and an Object, return the target address // and/or the target MethodDesc and/or make a call. // // Some of the implementation of this logic is in // MethodTable::GetMethodDescForInterfaceMethodAndServer. // Those functions should really be moved here. //-------------------------------------------------------------------- //******************************************************************************* // The following resolve virtual dispatch for the given method on the given // object down to an actual address to call, including any // handling of context proxies and other thunking layers. MethodDesc* MethodDesc::ResolveGenericVirtualMethod(OBJECTREF *orThis) { CONTRACT(MethodDesc *) { THROWS; GC_TRIGGERS; PRECONDITION(IsVtableMethod()); PRECONDITION(HasMethodInstantiation()); PRECONDITION(!ContainsGenericVariables()); POSTCONDITION(CheckPointer(RETVAL)); POSTCONDITION(RETVAL->HasMethodInstantiation()); } CONTRACT_END; // Method table of target (might be instantiated) MethodTable *pObjMT = (*orThis)->GetMethodTable(); // This is the static method descriptor describing the call. // It is not the destination of the call, which we must compute. MethodDesc* pStaticMD = this; // Strip off the method instantiation if present MethodDesc* pStaticMDWithoutGenericMethodArgs = pStaticMD->StripMethodInstantiation(); // Compute the target, though we have not yet applied the type arguments. MethodDesc *pTargetMDBeforeGenericMethodArgs = pStaticMD->IsInterface() ? MethodTable::GetMethodDescForInterfaceMethodAndServer(TypeHandle(pStaticMD->GetMethodTable()), pStaticMDWithoutGenericMethodArgs,orThis) : pObjMT->GetMethodDescForSlot(pStaticMDWithoutGenericMethodArgs->GetSlot()); pTargetMDBeforeGenericMethodArgs->CheckRestore(); // The actual destination may lie anywhere in the inheritance hierarchy. // between the static descriptor and the target object. // So now compute where we are really going! This may be an instantiated // class type if the generic virtual lies in a generic class. MethodTable *pTargetMT = pTargetMDBeforeGenericMethodArgs->GetMethodTable(); // No need to find/create a new generic instantiation if the target is the // same as the static, i.e. the virtual method has not been overriden. if (!pTargetMT->IsSharedByGenericInstantiations() && !pTargetMT->IsValueType() && pTargetMDBeforeGenericMethodArgs == pStaticMDWithoutGenericMethodArgs) RETURN(pStaticMD); if (pTargetMT->IsSharedByGenericInstantiations()) { pTargetMT = ClassLoader::LoadGenericInstantiationThrowing(pTargetMT->GetModule(), pTargetMT->GetCl(), pTargetMDBeforeGenericMethodArgs->GetExactClassInstantiation(TypeHandle(pObjMT))).GetMethodTable(); } RETURN(MethodDesc::FindOrCreateAssociatedMethodDesc( pTargetMDBeforeGenericMethodArgs, pTargetMT, (pTargetMT->IsValueType()), /* get unboxing entry point if a struct*/ pStaticMD->GetMethodInstantiation(), FALSE /* no allowInstParam */ )); } //******************************************************************************* PCODE MethodDesc::GetSingleCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeHandle staticTH) { WRAPPER_NO_CONTRACT; PRECONDITION(IsVtableMethod()); MethodTable *pObjMT = (*orThis)->GetMethodTable(); if (HasMethodInstantiation()) { CheckRestore(); MethodDesc *pResultMD = ResolveGenericVirtualMethod(orThis); // If we're remoting this call we can't call directly on the returned // method desc, we need to go through a stub that guarantees we end up // in the remoting handler. The stub we use below is normally just for // non-virtual calls on virtual methods (that have the same problem // where we could end up bypassing the remoting system), but it serves // our purpose here (basically pushes our correctly instantiated, // resolved method desc on the stack and calls the remoting code). return pResultMD->GetSingleCallableAddrOfCode(); } if (IsInterface()) { MethodDesc * pTargetMD = MethodTable::GetMethodDescForInterfaceMethodAndServer(staticTH,this,orThis); return pTargetMD->GetSingleCallableAddrOfCode(); } return pObjMT->GetRestoredSlot(GetSlot()); } //******************************************************************************* // The following resolve virtual dispatch for the given method on the given // object down to an actual address to call, including any // handling of context proxies and other thunking layers. PCODE MethodDesc::GetMultiCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeHandle staticTH) { CONTRACT(PCODE) { THROWS; GC_TRIGGERS; PRECONDITION(IsVtableMethod()); POSTCONDITION(RETVAL != NULL); } CONTRACT_END; // Method table of target (might be instantiated) MethodTable *pObjMT = (*orThis)->GetMethodTable(); // This is the static method descriptor describing the call. // It is not the destination of the call, which we must compute. MethodDesc* pStaticMD = this; MethodDesc *pTargetMD; if (pStaticMD->HasMethodInstantiation()) { CheckRestore(); pTargetMD = ResolveGenericVirtualMethod(orThis); // If we're remoting this call we can't call directly on the returned // method desc, we need to go through a stub that guarantees we end up // in the remoting handler. The stub we use below is normally just for // non-virtual calls on virtual methods (that have the same problem // where we could end up bypassing the remoting system), but it serves // our purpose here (basically pushes our correctly instantiated, // resolved method desc on the stack and calls the remoting code). RETURN(pTargetMD->GetMultiCallableAddrOfCode()); } if (pStaticMD->IsInterface()) { pTargetMD = MethodTable::GetMethodDescForInterfaceMethodAndServer(staticTH,pStaticMD,orThis); RETURN(pTargetMD->GetMultiCallableAddrOfCode()); } pTargetMD = pObjMT->GetMethodDescForSlot(pStaticMD->GetSlot()); RETURN (pTargetMD->GetMultiCallableAddrOfCode()); } //******************************************************************************* PCODE MethodDesc::GetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags /*=CORINFO_ACCESS_LDFTN*/) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END PCODE ret = TryGetMultiCallableAddrOfCode(accessFlags); if (ret == NULL) { GCX_COOP(); // We have to allocate funcptr stub ret = GetLoaderAllocator()->GetFuncPtrStubs()->GetFuncPtrStub(this); } return ret; } //******************************************************************************* // // Returns a callable entry point for a function. // Multiple entry points could be used for a single function. // ie. this function is not idempotent // // We must ensure that GetMultiCallableAddrOfCode works // correctly for all of the following cases: // 1. shared generic method instantiations // 2. unshared generic method instantiations // 3. instance methods in shared generic classes // 4. instance methods in unshared generic classes // 5. static methods in shared generic classes. // 6. static methods in unshared generic classes. // // For case 1 and 5 the methods are implemented using // an instantiating stub (i.e. IsInstantiatingStub() // should be true). These stubs pass on to // shared-generic-code-which-requires-an-extra-type-context-parameter. // So whenever we use LDFTN on these we need to give out // the address of an instantiating stub. // // For cases 2, 3, 4 and 6 we can just use the standard technique for LdFtn: // (for 2 we give out the address of the fake "slot" in InstantiatedMethodDescs) // (for 3 it doesn't matter if the code is shared between instantiations // because the instantiation context is picked up from the "this" parameter.) PCODE MethodDesc::TryGetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END // Record this method desc if required g_IBCLogger.LogMethodDescAccess(this); if (IsGenericMethodDefinition()) { _ASSERTE(!"Cannot take the address of an uninstantiated generic method."); COMPlusThrow(kInvalidProgramException); } if (accessFlags & CORINFO_ACCESS_LDFTN) { // Whenever we use LDFTN on shared-generic-code-which-requires-an-extra-parameter // we need to give out the address of an instantiating stub. This is why we give // out GetStableEntryPoint() for the IsInstantiatingStub() case: this is // safe. But first we assert that we only use GetMultiCallableAddrOfCode on // the instantiating stubs and not on the shared code itself. _ASSERTE(!RequiresInstArg()); _ASSERTE(!IsSharedByGenericMethodInstantiations()); // No other access flags are valid with CORINFO_ACCESS_LDFTN _ASSERTE((accessFlags & ~CORINFO_ACCESS_LDFTN) == 0); } // We create stable entrypoints for these upfront if (IsWrapperStub() || IsEnCAddedMethod()) return GetStableEntryPoint(); // For EnC always just return the stable entrypoint so we can update the code if (IsEnCMethod()) return GetStableEntryPoint(); // If the method has already been jitted, we can give out the direct address // Note that we may have previously created a FuncPtrStubEntry, but // GetMultiCallableAddrOfCode() does not need to be idempotent. if (IsFCall()) { // Call FCalls directly when possible if (!IsInterface() && !GetMethodTable()->ContainsGenericVariables()) { BOOL fSharedOrDynamicFCallImpl; PCODE pFCallImpl = ECall::GetFCallImpl(this, &fSharedOrDynamicFCallImpl); if (!fSharedOrDynamicFCallImpl) return pFCallImpl; // Fake ctors share one implementation that has to be wrapped by prestub GetOrCreatePrecode(); } } else { if (IsPointingToStableNativeCode()) return GetNativeCode(); } if (HasStableEntryPoint()) return GetStableEntryPoint(); if (IsVersionableWithVtableSlotBackpatch()) { // Caller has to call via slot or allocate funcptr stub return NULL; } // Force the creation of the precode if we would eventually got one anyway if (MayHavePrecode()) return GetOrCreatePrecode()->GetEntryPoint(); #ifdef HAS_COMPACT_ENTRYPOINTS // Caller has to call via slot or allocate funcptr stub return NULL; #else // HAS_COMPACT_ENTRYPOINTS // // Embed call to the temporary entrypoint into the code. It will be patched // to point to the actual code later. // return GetTemporaryEntryPoint(); #endif // HAS_COMPACT_ENTRYPOINTS } //******************************************************************************* PCODE MethodDesc::GetCallTarget(OBJECTREF* pThisObj, TypeHandle ownerType) { CONTRACTL { THROWS; // Resolving a generic virtual method can throw GC_TRIGGERS; MODE_COOPERATIVE; } CONTRACTL_END PCODE pTarget; if (IsVtableMethod() && !GetMethodTable()->IsValueType()) { CONSISTENCY_CHECK(NULL != pThisObj); if (ownerType.IsNull()) ownerType = GetMethodTable(); pTarget = GetSingleCallableAddrOfVirtualizedCode(pThisObj, ownerType); } else { pTarget = GetSingleCallableAddrOfCode(); } return pTarget; } MethodDesc* NonVirtualEntry2MethodDesc(PCODE entryPoint) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END RangeSection* pRS = ExecutionManager::FindCodeRange(entryPoint, ExecutionManager::GetScanFlags()); if (pRS == NULL) return NULL; MethodDesc* pMD; if (pRS->pjit->JitCodeToMethodInfo(pRS, entryPoint, &pMD, NULL)) return pMD; if (pRS->pjit->GetStubCodeBlockKind(pRS, entryPoint) == STUB_CODE_BLOCK_PRECODE) return MethodDesc::GetMethodDescFromStubAddr(entryPoint); // We should never get here _ASSERTE(!"NonVirtualEntry2MethodDesc failed for RangeSection"); return NULL; } //******************************************************************************* // convert an entry point into a method desc MethodDesc* Entry2MethodDesc(PCODE entryPoint, MethodTable *pMT) { CONTRACT(MethodDesc*) { THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(RETVAL->SanityCheck()); } CONTRACT_END MethodDesc* pMD = NonVirtualEntry2MethodDesc(entryPoint); if (pMD != NULL) RETURN(pMD); pMD = VirtualCallStubManagerManager::Entry2MethodDesc(entryPoint, pMT); if (pMD != NULL) RETURN(pMD); // Is it an FCALL? pMD = ECall::MapTargetBackToMethod(entryPoint); if (pMD != NULL) RETURN(pMD); // We should never get here _ASSERTE(!"Entry2MethodDesc failed"); RETURN (NULL); } //******************************************************************************* BOOL MethodDesc::IsPointingToPrestub() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (!HasStableEntryPoint()) { if (IsVersionableWithVtableSlotBackpatch()) { return GetMethodEntryPoint() == GetTemporaryEntryPoint(); } return TRUE; } if (!HasPrecode()) return FALSE; return GetPrecode()->IsPointingToPrestub(); } //******************************************************************************* void MethodDesc::Reset() { WRAPPER_NO_CONTRACT; // This method is not thread-safe since we are updating // different pieces of data non-atomically. // Use this only if you can guarantee thread-safety somehow. _ASSERTE(IsEnCMethod() || // The process is frozen by the debugger IsDynamicMethod() || // These are used in a very restricted way GetLoaderModule()->IsReflection()); // Rental methods // Reset any flags relevant to the old code ClearFlagsOnUpdate(); if (HasPrecode()) { GetPrecode()->Reset(); } else { // We should go here only for the rental methods _ASSERTE(GetLoaderModule()->IsReflection()); InterlockedUpdateFlags2(enum_flag2_HasStableEntryPoint | enum_flag2_HasPrecode, FALSE); *GetAddrOfSlot() = GetTemporaryEntryPoint(); } if (HasNativeCodeSlot()) { *GetAddrOfNativeCodeSlot() = NULL; } _ASSERTE(!HasNativeCode()); } //******************************************************************************* Dictionary* MethodDesc::GetMethodDictionary() { WRAPPER_NO_CONTRACT; return (GetClassification() == mcInstantiated) ? (Dictionary*) (AsInstantiatedMethodDesc()->IMD_GetMethodDictionary()) : NULL; } //******************************************************************************* DictionaryLayout* MethodDesc::GetDictionaryLayout() { WRAPPER_NO_CONTRACT; return ((GetClassification() == mcInstantiated) && !IsUnboxingStub()) ? AsInstantiatedMethodDesc()->IMD_GetDictionaryLayout() : NULL; } #endif // !DACCESS_COMPILE //******************************************************************************* MethodImpl *MethodDesc::GetMethodImpl() { CONTRACTL { NOTHROW; GC_NOTRIGGER; FORBID_FAULT; PRECONDITION(HasMethodImplSlot()); SUPPORTS_DAC; } CONTRACTL_END SIZE_T size = s_ClassificationSizeTable[m_wFlags & (mdcClassification | mdcHasNonVtableSlot)]; return PTR_MethodImpl(dac_cast<TADDR>(this) + size); } #ifndef DACCESS_COMPILE //******************************************************************************* BOOL MethodDesc::RequiresMethodDescCallingConvention(BOOL fEstimateForChunk /*=FALSE*/) { LIMITED_METHOD_CONTRACT; // Interop marshaling is implemented using shared stubs if (IsNDirect() || IsComPlusCall() || IsGenericComPlusCall()) return TRUE; return FALSE; } //******************************************************************************* BOOL MethodDesc::RequiresStableEntryPoint(BOOL fEstimateForChunk /*=FALSE*/) { LIMITED_METHOD_CONTRACT; // Create precodes for versionable methods if (IsVersionableWithPrecode()) return TRUE; // Create precodes for edit and continue to make methods updateable if (IsEnCMethod() || IsEnCAddedMethod()) return TRUE; // Precreate precodes for LCG methods so we do not leak memory when the method descs are recycled if (IsLCGMethod()) return TRUE; if (fEstimateForChunk) { // Make a best guess based on the method table of the chunk. if (IsInterface()) return TRUE; } else { // Wrapper stubs are stored in generic dictionary that's not backpatched if (IsWrapperStub()) return TRUE; // TODO: Can we avoid early allocation of precodes for interfaces and cominterop? if ((IsInterface() && !IsStatic() && IsVirtual()) || IsComPlusCall()) return TRUE; } return FALSE; } #endif // !DACCESS_COMPILE //******************************************************************************* BOOL MethodDesc::MayHaveNativeCode() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END // This code flow of this method should roughly match the code flow of MethodDesc::DoPrestub. switch (GetClassification()) { case mcIL: // IsIL() case. Handled below. break; case mcFCall: // FCalls do not have real native code. return FALSE; case mcNDirect: // NDirect never have native code (note that the NDirect method return FALSE; // does not appear as having a native code even for stubs as IL) case mcEEImpl: // Runtime provided implementation. No native code. return FALSE; case mcArray: // Runtime provided implementation. No native code. return FALSE; case mcInstantiated: // IsIL() case. Handled below. break; #ifdef FEATURE_COMINTEROP case mcComInterop: // Generated stub. No native code. return FALSE; #endif // FEATURE_COMINTEROP case mcDynamic: // LCG or stub-as-il. return TRUE; default: _ASSERTE(!"Unknown classification"); } _ASSERTE(IsIL()); if (IsWrapperStub() || ContainsGenericVariables() || IsAbstract()) { return FALSE; } return TRUE; } //******************************************************************************* void MethodDesc::CheckRestore(ClassLoadLevel level) { STATIC_CONTRACT_THROWS; STATIC_CONTRACT_GC_TRIGGERS; STATIC_CONTRACT_FAULT; if (!GetMethodTable()->IsFullyLoaded()) { g_IBCLogger.LogMethodDescAccess(this); if (GetClassification() == mcInstantiated) { #ifndef DACCESS_COMPILE InstantiatedMethodDesc *pIMD = AsInstantiatedMethodDesc(); // First restore method table pointer in singleton chunk; // it might be out-of-module ClassLoader::EnsureLoaded(TypeHandle(GetMethodTable()), level); g_IBCLogger.LogMethodDescWriteAccess(this); pIMD->m_wFlags2 = pIMD->m_wFlags2 & ~InstantiatedMethodDesc::Unrestored; if (ETW_PROVIDER_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER)) { ETW::MethodLog::MethodRestored(this); } #else // DACCESS_COMPILE DacNotImpl(); #endif // DACCESS_COMPILE } else if (IsILStub()) // the only stored-sig MD type that uses ET_INTERNAL { ClassLoader::EnsureLoaded(TypeHandle(GetMethodTable()), level); #ifndef DACCESS_COMPILE if (ETW_PROVIDER_ENABLED(MICROSOFT_WINDOWS_DOTNETRUNTIME_PROVIDER)) { ETW::MethodLog::MethodRestored(this); } #else // DACCESS_COMPILE DacNotImpl(); #endif // DACCESS_COMPILE } else { ClassLoader::EnsureLoaded(TypeHandle(GetMethodTable()), level); } } } // static MethodDesc* MethodDesc::GetMethodDescFromStubAddr(PCODE addr, BOOL fSpeculative /*=FALSE*/) { CONTRACT(MethodDesc *) { GC_NOTRIGGER; NOTHROW; } CONTRACT_END; MethodDesc * pMD = NULL; #ifdef HAS_COMPACT_ENTRYPOINTS if (MethodDescChunk::IsCompactEntryPointAtAddress(addr)) { pMD = MethodDescChunk::GetMethodDescFromCompactEntryPoint(addr, fSpeculative); RETURN(pMD); } #endif // HAS_COMPACT_ENTRYPOINTS // Otherwise this must be some kind of precode // Precode* pPrecode = Precode::GetPrecodeFromEntryPoint(addr, fSpeculative); PREFIX_ASSUME(fSpeculative || (pPrecode != NULL)); if (pPrecode != NULL) { pMD = pPrecode->GetMethodDesc(fSpeculative); RETURN(pMD); } RETURN(NULL); // Not found } #ifdef HAS_COMPACT_ENTRYPOINTS #if defined(TARGET_X86) #include <pshpack1.h> static const struct CentralJumpCode { BYTE m_movzxEAX[3]; BYTE m_shlEAX[3]; BYTE m_addEAX[1]; MethodDesc* m_pBaseMD; BYTE m_jmp[1]; INT32 m_rel32; inline void Setup(CentralJumpCode* pCodeRX, MethodDesc* pMD, PCODE target, LoaderAllocator *pLoaderAllocator) { WRAPPER_NO_CONTRACT; m_pBaseMD = pMD; m_rel32 = rel32UsingJumpStub(&pCodeRX->m_rel32, target, pMD, pLoaderAllocator); } inline BOOL CheckTarget(TADDR target) { LIMITED_METHOD_CONTRACT; TADDR addr = rel32Decode(PTR_HOST_MEMBER_TADDR(CentralJumpCode, this, m_rel32)); return (addr == target); } } c_CentralJumpCode = { { 0x0F, 0xB6, 0xC0 }, // movzx eax,al { 0xC1, 0xE0, MethodDesc::ALIGNMENT_SHIFT }, // shl eax, MethodDesc::ALIGNMENT_SHIFT { 0x05 }, NULL, // add eax, pBaseMD { 0xE9 }, 0 // jmp PreStub }; #include <poppack.h> #elif defined(TARGET_ARM) #include <pshpack1.h> struct CentralJumpCode { BYTE m_ldrPC[4]; BYTE m_short[2]; MethodDescChunk *m_pChunk; PCODE m_target; inline void Setup(PCODE target, MethodDescChunk *pChunk) { WRAPPER_NO_CONTRACT; m_target = target; m_pChunk = pChunk; } inline BOOL CheckTarget(TADDR target) { WRAPPER_NO_CONTRACT; return ((TADDR)m_target == target); } } c_CentralJumpCode = { { 0xDF, 0xF8, 0x08, 0xF0 }, // ldr pc, =pTarget { 0x00, 0x00 }, // short offset for alignment 0, // pChunk 0 // pTarget }; #include <poppack.h> #else #error Unsupported platform #endif typedef DPTR(struct CentralJumpCode) PTR_CentralJumpCode; #define TEP_CENTRAL_JUMP_SIZE sizeof(c_CentralJumpCode) static_assert_no_msg((TEP_CENTRAL_JUMP_SIZE & 1) == 0); #define TEP_ENTRY_SIZE 4 #ifdef TARGET_ARM #define TEP_HALF_ENTRY_SIZE (TEP_ENTRY_SIZE / 2) // Compact entry point on arm consists of two thumb instructions: // mov r12, pc // b CentralJumpCode // First instruction 0x46fc #define TEP_ENTRY_INSTR1_BYTE1 0xFC #define TEP_ENTRY_INSTR1_BYTE2 0x46 // Mask for unconditional branch opcode #define TEP_ENTRY_INSTR2_MASK1 0xE0 // Mask for opcode #define TEP_ENTRY_INSTR2_MASK2 0xF8 // Bit used for ARM to identify compact entry points #define COMPACT_ENTRY_ARM_CODE 0x2 /* static */ int MethodDescChunk::GetCompactEntryPointMaxCount () { LIMITED_METHOD_DAC_CONTRACT; return MAX_OFFSET_UNCONDITIONAL_BRANCH_THUMB / TEP_ENTRY_SIZE; } // Get offset from the start of current compact entry point to the CentralJumpCode static uint16_t DecodeOffsetFromBranchToCentralJump (uint16_t instr) { int16_t offset = decodeUnconditionalBranchThumb ((LPBYTE) &instr); offset += PC_REG_RELATIVE_OFFSET + TEP_HALF_ENTRY_SIZE; _ASSERTE (offset >= TEP_ENTRY_SIZE && (offset % TEP_ENTRY_SIZE == 0)); return (uint16_t) offset; } #ifndef DACCESS_COMPILE // Encode branch instruction to central jump for current compact entry point static uint16_t EncodeBranchToCentralJump (int16_t offset) { _ASSERTE (offset >= 0 && (offset % TEP_ENTRY_SIZE == 0)); offset += TEP_HALF_ENTRY_SIZE - PC_REG_RELATIVE_OFFSET; uint16_t instr; emitUnconditionalBranchThumb ((LPBYTE) &instr, offset); return instr; } #endif // DACCESS_COMPILE #else // TARGET_ARM #define TEP_MAX_BEFORE_INDEX (1 + (127 / TEP_ENTRY_SIZE)) #define TEP_MAX_BLOCK_INDEX (TEP_MAX_BEFORE_INDEX + (128 - TEP_CENTRAL_JUMP_SIZE) / TEP_ENTRY_SIZE) #define TEP_FULL_BLOCK_SIZE (TEP_MAX_BLOCK_INDEX * TEP_ENTRY_SIZE + TEP_CENTRAL_JUMP_SIZE) #endif // TARGET_ARM BOOL MethodDescChunk::IsCompactEntryPointAtAddress(PCODE addr) { LIMITED_METHOD_DAC_CONTRACT; #if defined(TARGET_X86) || defined(TARGET_AMD64) // Compact entrypoints start at odd addresses return (addr & 1) != 0; #elif defined(TARGET_ARM) // Compact entrypoints start at odd addresses (thumb) with second bit set to 1 uint8_t compactEntryPointMask = THUMB_CODE | COMPACT_ENTRY_ARM_CODE; return (addr & compactEntryPointMask) == compactEntryPointMask; #else #error Unsupported platform #endif } //******************************************************************************* /* static */ MethodDesc* MethodDescChunk::GetMethodDescFromCompactEntryPoint(PCODE addr, BOOL fSpeculative /*=FALSE*/) { LIMITED_METHOD_CONTRACT; #ifdef DACCESS_COMPILE // Always use speculative checks with DAC fSpeculative = TRUE; #endif // Always do consistency check in debug if (fSpeculative INDEBUG(|| TRUE)) { #ifdef TARGET_ARM TADDR instrCodeAddr = PCODEToPINSTR(addr); if (!IsCompactEntryPointAtAddress(addr) || *PTR_BYTE(instrCodeAddr) != TEP_ENTRY_INSTR1_BYTE1 || *PTR_BYTE(instrCodeAddr+1) != TEP_ENTRY_INSTR1_BYTE2) #else // TARGET_ARM if ((addr & 3) != 1 || *PTR_BYTE(addr) != X86_INSTR_MOV_AL || *PTR_BYTE(addr+2) != X86_INSTR_JMP_REL8) #endif // TARGET_ARM { if (fSpeculative) return NULL; _ASSERTE(!"Unexpected code in temporary entrypoint"); } } #ifdef TARGET_ARM // On ARM compact entry points are thumb _ASSERTE ((addr & THUMB_CODE) != 0); addr = addr - THUMB_CODE; // Get offset for CentralJumpCode from current compact entry point PTR_UINT16 pBranchInstr = (PTR_UINT16(addr)) + 1; uint16_t offset = DecodeOffsetFromBranchToCentralJump (*pBranchInstr); TADDR centralJump = addr + offset; int index = (centralJump - addr - TEP_ENTRY_SIZE) / TEP_ENTRY_SIZE; #else // TARGET_ARM int index = *PTR_BYTE(addr+1); TADDR centralJump = addr + 4 + *PTR_SBYTE(addr+3); #endif // TARGET_ARM CentralJumpCode* pCentralJumpCode = PTR_CentralJumpCode(centralJump); // Always do consistency check in debug if (fSpeculative INDEBUG(|| TRUE)) { SIZE_T i; for (i = 0; i < TEP_CENTRAL_JUMP_SIZE; i++) { BYTE b = ((BYTE*)&c_CentralJumpCode)[i]; if (b != 0 && b != *PTR_BYTE(centralJump+i)) { if (fSpeculative) return NULL; _ASSERTE(!"Unexpected code in temporary entrypoint"); } } #ifdef TARGET_ARM _ASSERTE_IMPL(pCentralJumpCode->CheckTarget(GetPreStubCompactARMEntryPoint())); #else // TARGET_ARM _ASSERTE_IMPL(pCentralJumpCode->CheckTarget(GetPreStubEntryPoint())); #endif // TARGET_ARM } #ifdef TARGET_ARM // Go through all MethodDesc in MethodDescChunk and find the one with the required index PTR_MethodDescChunk pChunk = *((DPTR(PTR_MethodDescChunk))(centralJump + offsetof(CentralJumpCode, m_pChunk))); TADDR pMD = PTR_HOST_TO_TADDR (pChunk->GetFirstMethodDesc ()); _ASSERTE (index >= 0 && index < ((int) pChunk->GetCount ())); index = ((int) pChunk->GetCount ()) - 1 - index; SIZE_T totalSize = 0; int curIndex = 0; while (index != curIndex) { SIZE_T sizeCur = (PTR_MethodDesc (pMD))->SizeOf (); totalSize += sizeCur; pMD += sizeCur; ++curIndex; } return PTR_MethodDesc (pMD); #else // TARGET_ARM return PTR_MethodDesc((TADDR)pCentralJumpCode->m_pBaseMD + index * MethodDesc::ALIGNMENT); #endif // TARGET_ARM } //******************************************************************************* SIZE_T MethodDescChunk::SizeOfCompactEntryPoints(int count) { LIMITED_METHOD_DAC_CONTRACT; #ifdef TARGET_ARM return COMPACT_ENTRY_ARM_CODE + count * TEP_ENTRY_SIZE + TEP_CENTRAL_JUMP_SIZE; #else // TARGET_ARM int fullBlocks = count / TEP_MAX_BLOCK_INDEX; int remainder = count % TEP_MAX_BLOCK_INDEX; return 1 + (fullBlocks * TEP_FULL_BLOCK_SIZE) + (remainder * TEP_ENTRY_SIZE) + ((remainder != 0) ? TEP_CENTRAL_JUMP_SIZE : 0); #endif // TARGET_ARM } #ifndef DACCESS_COMPILE TADDR MethodDescChunk::AllocateCompactEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; int count = GetCount(); SIZE_T size = SizeOfCompactEntryPoints(count); TADDR temporaryEntryPoints = (TADDR)pamTracker->Track(pLoaderAllocator->GetPrecodeHeap()->AllocAlignedMem(size, sizeof(TADDR))); ExecutableWriterHolder<void> temporaryEntryPointsWriterHolder((void *)temporaryEntryPoints, size); size_t rxOffset = temporaryEntryPoints - (TADDR)temporaryEntryPointsWriterHolder.GetRW(); #ifdef TARGET_ARM BYTE* p = (BYTE*)temporaryEntryPointsWriterHolder.GetRW() + COMPACT_ENTRY_ARM_CODE; int relOffset = count * TEP_ENTRY_SIZE - TEP_ENTRY_SIZE; // relative offset for the short jump _ASSERTE (relOffset < MAX_OFFSET_UNCONDITIONAL_BRANCH_THUMB); #else // TARGET_ARM // make the temporary entrypoints unaligned, so they are easy to identify BYTE* p = (BYTE*)temporaryEntryPointsWriterHolder.GetRW() + 1; int indexInBlock = TEP_MAX_BLOCK_INDEX; // recompute relOffset in first iteration int relOffset = 0; // relative offset for the short jump #endif // TARGET_ARM MethodDesc * pBaseMD = 0; // index of the start of the block MethodDesc * pMD = GetFirstMethodDesc(); for (int index = 0; index < count; index++) { #ifdef TARGET_ARM uint8_t *pMovInstrByte1 = (uint8_t *)p; uint8_t *pMovInstrByte2 = (uint8_t *)p+1; uint16_t *pBranchInstr = ((uint16_t *)p)+1; *pMovInstrByte1 = TEP_ENTRY_INSTR1_BYTE1; *pMovInstrByte2 = TEP_ENTRY_INSTR1_BYTE2; *pBranchInstr = EncodeBranchToCentralJump ((int16_t) relOffset); p += TEP_ENTRY_SIZE; #else // TARGET_ARM if (indexInBlock == TEP_MAX_BLOCK_INDEX) { relOffset = (min(count - index, TEP_MAX_BEFORE_INDEX) - 1) * TEP_ENTRY_SIZE; indexInBlock = 0; pBaseMD = pMD; } *(p+0) = X86_INSTR_MOV_AL; int methodDescIndex = pMD->GetMethodDescIndex() - pBaseMD->GetMethodDescIndex(); _ASSERTE(FitsInU1(methodDescIndex)); *(p+1) = (BYTE)methodDescIndex; *(p+2) = X86_INSTR_JMP_REL8; _ASSERTE(FitsInI1(relOffset)); *(p+3) = (BYTE)relOffset; p += TEP_ENTRY_SIZE; static_assert_no_msg(TEP_ENTRY_SIZE == 4); if (relOffset == 0) { CentralJumpCode* pCode = (CentralJumpCode*)p; CentralJumpCode* pCodeRX = (CentralJumpCode*)(p + rxOffset); memcpy(pCode, &c_CentralJumpCode, TEP_CENTRAL_JUMP_SIZE); pCode->Setup(pCodeRX, pBaseMD, GetPreStubEntryPoint(), pLoaderAllocator); p += TEP_CENTRAL_JUMP_SIZE; relOffset -= TEP_CENTRAL_JUMP_SIZE; } indexInBlock++; #endif // TARGET_ARM relOffset -= TEP_ENTRY_SIZE; pMD = (MethodDesc *)((BYTE *)pMD + pMD->SizeOf()); } #ifdef TARGET_ARM CentralJumpCode* pCode = (CentralJumpCode*)p; memcpy(pCode, &c_CentralJumpCode, TEP_CENTRAL_JUMP_SIZE); pCode->Setup (GetPreStubCompactARMEntryPoint(), this); _ASSERTE(p + TEP_CENTRAL_JUMP_SIZE == (BYTE*)temporaryEntryPointsWriterHolder.GetRW() + size); #else // TARGET_ARM _ASSERTE(p == (BYTE*)temporaryEntryPointsWriterHolder.GetRW() + size); #endif // TARGET_ARM ClrFlushInstructionCache((LPVOID)temporaryEntryPoints, size); SetHasCompactEntryPoints(); return temporaryEntryPoints; } #endif // !DACCESS_COMPILE #endif // HAS_COMPACT_ENTRYPOINTS //******************************************************************************* PCODE MethodDescChunk::GetTemporaryEntryPoint(int index) { LIMITED_METHOD_CONTRACT; #ifdef HAS_COMPACT_ENTRYPOINTS if (HasCompactEntryPoints()) { #ifdef TARGET_ARM return GetTemporaryEntryPoints() + COMPACT_ENTRY_ARM_CODE + THUMB_CODE + index * TEP_ENTRY_SIZE; #else // TARGET_ARM int fullBlocks = index / TEP_MAX_BLOCK_INDEX; int remainder = index % TEP_MAX_BLOCK_INDEX; return GetTemporaryEntryPoints() + 1 + (fullBlocks * TEP_FULL_BLOCK_SIZE) + (remainder * TEP_ENTRY_SIZE) + ((remainder >= TEP_MAX_BEFORE_INDEX) ? TEP_CENTRAL_JUMP_SIZE : 0); #endif // TARGET_ARM } #endif // HAS_COMPACT_ENTRYPOINTS return Precode::GetPrecodeForTemporaryEntryPoint(GetTemporaryEntryPoints(), index)->GetEntryPoint(); } PCODE MethodDesc::GetTemporaryEntryPoint() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; MethodDescChunk* pChunk = GetMethodDescChunk(); int lo = 0, hi = pChunk->GetCount() - 1; // Find the temporary entrypoint in the chunk by binary search while (lo < hi) { int mid = (lo + hi) / 2; TADDR pEntryPoint = pChunk->GetTemporaryEntryPoint(mid); MethodDesc * pMD = MethodDesc::GetMethodDescFromStubAddr(pEntryPoint); if (PTR_HOST_TO_TADDR(this) == PTR_HOST_TO_TADDR(pMD)) return pEntryPoint; if (PTR_HOST_TO_TADDR(this) > PTR_HOST_TO_TADDR(pMD)) lo = mid + 1; else hi = mid - 1; } _ASSERTE(lo == hi); TADDR pEntryPoint = pChunk->GetTemporaryEntryPoint(lo); #ifdef _DEBUG MethodDesc * pMD = MethodDesc::GetMethodDescFromStubAddr(pEntryPoint); _ASSERTE(PTR_HOST_TO_TADDR(this) == PTR_HOST_TO_TADDR(pMD)); #endif return pEntryPoint; } #ifndef DACCESS_COMPILE //******************************************************************************* void MethodDesc::SetTemporaryEntryPoint(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker) { WRAPPER_NO_CONTRACT; GetMethodDescChunk()->EnsureTemporaryEntryPointsCreated(pLoaderAllocator, pamTracker); PTR_PCODE pSlot = GetAddrOfSlot(); _ASSERTE(*pSlot == NULL); *pSlot = GetTemporaryEntryPoint(); if (RequiresStableEntryPoint()) { // The rest of the system assumes that certain methods always have stable entrypoints. // Create them now. GetOrCreatePrecode(); } } //******************************************************************************* void MethodDescChunk::CreateTemporaryEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker) { WRAPPER_NO_CONTRACT; _ASSERTE(GetTemporaryEntryPoints() == NULL); TADDR temporaryEntryPoints = Precode::AllocateTemporaryEntryPoints(this, pLoaderAllocator, pamTracker); #ifdef HAS_COMPACT_ENTRYPOINTS // Precodes allocated only if they provide more compact representation or if it is required if (temporaryEntryPoints == NULL) { temporaryEntryPoints = AllocateCompactEntryPoints(pLoaderAllocator, pamTracker); } #endif // HAS_COMPACT_ENTRYPOINTS *(((TADDR *)this)-1) = temporaryEntryPoints; _ASSERTE(GetTemporaryEntryPoints() != NULL); } //******************************************************************************* void MethodDesc::InterlockedUpdateFlags2(BYTE bMask, BOOL fSet) { WRAPPER_NO_CONTRACT; ULONG* pLong = (ULONG*)(&m_bFlags2 - 3); static_assert_no_msg(offsetof(MethodDesc, m_bFlags2) % sizeof(LONG) == 3); #if BIGENDIAN if (fSet) FastInterlockOr(pLong, (ULONG)bMask); else FastInterlockAnd(pLong, ~(ULONG)bMask); #else // !BIGENDIAN if (fSet) FastInterlockOr(pLong, (ULONG)bMask << (3 * 8)); else FastInterlockAnd(pLong, ~((ULONG)bMask << (3 * 8))); #endif // !BIGENDIAN } //******************************************************************************* Precode* MethodDesc::GetOrCreatePrecode() { WRAPPER_NO_CONTRACT; _ASSERTE(!IsVersionableWithVtableSlotBackpatch()); if (HasPrecode()) { return GetPrecode(); } PTR_PCODE pSlot = GetAddrOfSlot(); PCODE tempEntry = GetTemporaryEntryPoint(); PrecodeType requiredType = GetPrecodeType(); PrecodeType availableType = PRECODE_INVALID; if (!GetMethodDescChunk()->HasCompactEntryPoints()) { availableType = Precode::GetPrecodeFromEntryPoint(tempEntry)->GetType(); } // Allocate the precode if necessary if (requiredType != availableType) { // code:Precode::AllocateTemporaryEntryPoints should always create precode of the right type for dynamic methods. // If we took this path for dynamic methods, the precode may leak since we may allocate it in domain-neutral loader heap. _ASSERTE(!IsLCGMethod()); AllocMemTracker amt; Precode* pPrecode = Precode::Allocate(requiredType, this, GetLoaderAllocator(), &amt); if (FastInterlockCompareExchangePointer(pSlot, pPrecode->GetEntryPoint(), tempEntry) == tempEntry) amt.SuppressRelease(); } // Set the flags atomically InterlockedUpdateFlags2(enum_flag2_HasStableEntryPoint | enum_flag2_HasPrecode, TRUE); return Precode::GetPrecodeFromEntryPoint(*pSlot); } bool MethodDesc::DetermineAndSetIsEligibleForTieredCompilation() { WRAPPER_NO_CONTRACT; #ifdef FEATURE_TIERED_COMPILATION #ifndef FEATURE_CODE_VERSIONING #error Tiered compilation requires code versioning #endif // Keep in-sync with MethodTableBuilder::NeedsNativeCodeSlot(bmtMDMethod * pMDMethod) // to ensure native slots are available where needed. if ( // Policy g_pConfig->TieredCompilation() && // Functional requirement - The NativeCodeSlot is required to hold the code pointer for the default code version because // the method's entry point slot will point to a precode or to the current code entry point HasNativeCodeSlot() && // Functional requirement - These methods have no IL that could be optimized !IsWrapperStub() && // Functional requirement CodeVersionManager::IsMethodSupported(this) && // Policy - If QuickJit is disabled and the module does not have any pregenerated code, the method would effectively not // be tiered currently, so make the method ineligible for tiering to avoid some unnecessary overhead (g_pConfig->TieredCompilation_QuickJit() || GetModule()->IsReadyToRun()) && // Policy - Generating optimized code is not disabled !IsJitOptimizationDisabled() && // Policy - Tiered compilation is not disabled by the profiler !CORProfilerDisableTieredCompilation()) { m_bFlags2 |= enum_flag2_IsEligibleForTieredCompilation; _ASSERTE(IsVersionable()); return true; } #endif return false; } #endif // !DACCESS_COMPILE bool MethodDesc::IsJitOptimizationDisabled() { WRAPPER_NO_CONTRACT; return g_pConfig->JitMinOpts() || #ifdef _DEBUG g_pConfig->GenDebuggableCode() || #endif CORDisableJITOptimizations(GetModule()->GetDebuggerInfoBits()) || (!IsNoMetadata() && IsMiNoOptimization(GetImplAttrs())); } #ifndef DACCESS_COMPILE void MethodDesc::RecordAndBackpatchEntryPointSlot( LoaderAllocator *slotLoaderAllocator, // the loader allocator from which the slot's memory is allocated TADDR slot, EntryPointSlots::SlotType slotType) { WRAPPER_NO_CONTRACT; GCX_PREEMP(); LoaderAllocator *mdLoaderAllocator = GetLoaderAllocator(); MethodDescBackpatchInfoTracker::ConditionalLockHolderForGCCoop slotBackpatchLockHolder; RecordAndBackpatchEntryPointSlot_Locked( mdLoaderAllocator, slotLoaderAllocator, slot, slotType, GetEntryPointToBackpatch_Locked()); } // This function tries to record a slot that would contain an entry point for the method, and backpatches the slot to contain // method's current entry point. Once recorded, changes to the entry point due to tiering will cause the slot to be backpatched // as necessary. void MethodDesc::RecordAndBackpatchEntryPointSlot_Locked( LoaderAllocator *mdLoaderAllocator, LoaderAllocator *slotLoaderAllocator, // the loader allocator from which the slot's memory is allocated TADDR slot, EntryPointSlots::SlotType slotType, PCODE currentEntryPoint) { WRAPPER_NO_CONTRACT; _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); _ASSERTE(mdLoaderAllocator != nullptr); _ASSERTE(mdLoaderAllocator == GetLoaderAllocator()); _ASSERTE(slotLoaderAllocator != nullptr); _ASSERTE(slot != NULL); _ASSERTE(slotType < EntryPointSlots::SlotType_Count); _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); // The specified current entry point must actually be *current* in the sense that it must have been retrieved inside the // lock, such that a recorded slot is guaranteed to point to the entry point at the time at which it was recorded, in order // to synchronize with backpatching in MethodDesc::BackpatchEntryPointSlots(). If a slot pointing to an older entry point // were to be recorded due to concurrency issues, it would not get backpatched to point to the more recent, actually // current, entry point until another entry point change, which may never happen. _ASSERTE(currentEntryPoint == GetEntryPointToBackpatch_Locked()); MethodDescBackpatchInfoTracker *backpatchTracker = mdLoaderAllocator->GetMethodDescBackpatchInfoTracker(); backpatchTracker->AddSlotAndPatch_Locked(this, slotLoaderAllocator, slot, slotType, currentEntryPoint); } FORCEINLINE bool MethodDesc::TryBackpatchEntryPointSlots( PCODE entryPoint, bool isPrestubEntryPoint, bool onlyFromPrestubEntryPoint) { WRAPPER_NO_CONTRACT; _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); _ASSERTE(entryPoint != NULL); _ASSERTE(isPrestubEntryPoint == (entryPoint == GetPrestubEntryPointToBackpatch())); _ASSERTE(!isPrestubEntryPoint || !onlyFromPrestubEntryPoint); _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); LoaderAllocator *mdLoaderAllocator = GetLoaderAllocator(); MethodDescBackpatchInfoTracker *backpatchInfoTracker = mdLoaderAllocator->GetMethodDescBackpatchInfoTracker(); // Get the entry point to backpatch inside the lock to synchronize with backpatching in MethodDesc::DoBackpatch() PCODE previousEntryPoint = GetEntryPointToBackpatch_Locked(); if (previousEntryPoint == entryPoint) { return true; } if (onlyFromPrestubEntryPoint && previousEntryPoint != GetPrestubEntryPointToBackpatch()) { return false; } if (IsVersionableWithVtableSlotBackpatch()) { // Backpatch the func ptr stub if it was created FuncPtrStubs *funcPtrStubs = mdLoaderAllocator->GetFuncPtrStubsNoCreate(); if (funcPtrStubs != nullptr) { Precode *funcPtrPrecode = funcPtrStubs->Lookup(this); if (funcPtrPrecode != nullptr) { if (isPrestubEntryPoint) { funcPtrPrecode->ResetTargetInterlocked(); } else { funcPtrPrecode->SetTargetInterlocked(entryPoint, FALSE /* fOnlyRedirectFromPrestub */); } } } } backpatchInfoTracker->Backpatch_Locked(this, entryPoint); // Set the entry point to backpatch inside the lock to synchronize with backpatching in MethodDesc::DoBackpatch(), and set // it last in case there are exceptions above, as setting the entry point indicates that all recorded slots have been // backpatched SetEntryPointToBackpatch_Locked(entryPoint); return true; } void MethodDesc::TrySetInitialCodeEntryPointForVersionableMethod( PCODE entryPoint, bool mayHaveEntryPointSlotsToBackpatch) { WRAPPER_NO_CONTRACT; _ASSERTE(entryPoint != NULL); _ASSERTE(IsVersionable()); _ASSERTE(mayHaveEntryPointSlotsToBackpatch == MayHaveEntryPointSlotsToBackpatch()); if (mayHaveEntryPointSlotsToBackpatch) { TryBackpatchEntryPointSlotsFromPrestub(entryPoint); } else { _ASSERTE(IsVersionableWithPrecode()); GetOrCreatePrecode()->SetTargetInterlocked(entryPoint, TRUE /* fOnlyRedirectFromPrestub */); } } void MethodDesc::SetCodeEntryPoint(PCODE entryPoint) { WRAPPER_NO_CONTRACT; _ASSERTE(entryPoint != NULL); if (MayHaveEntryPointSlotsToBackpatch()) { BackpatchEntryPointSlots(entryPoint); } else if (IsVersionable()) { _ASSERTE(IsVersionableWithPrecode()); GetOrCreatePrecode()->SetTargetInterlocked(entryPoint, FALSE /* fOnlyRedirectFromPrestub */); // SetTargetInterlocked() would return false if it lost the race with another thread. That is fine, this thread // can continue assuming it was successful, similarly to it successfully updating the target and another thread // updating the target again shortly afterwards. } else if (HasPrecode()) { GetPrecode()->SetTargetInterlocked(entryPoint); } else if (!HasStableEntryPoint()) { SetStableEntryPointInterlocked(entryPoint); } } void MethodDesc::ResetCodeEntryPoint() { WRAPPER_NO_CONTRACT; _ASSERTE(IsVersionable()); if (MayHaveEntryPointSlotsToBackpatch()) { BackpatchToResetEntryPointSlots(); return; } _ASSERTE(IsVersionableWithPrecode()); if (HasPrecode()) { GetPrecode()->ResetTargetInterlocked(); } } void MethodDesc::ResetCodeEntryPointForEnC() { WRAPPER_NO_CONTRACT; _ASSERTE(!IsVersionable()); _ASSERTE(!IsVersionableWithPrecode()); _ASSERTE(!MayHaveEntryPointSlotsToBackpatch()); if (HasPrecode()) { GetPrecode()->ResetTargetInterlocked(); } if (HasNativeCodeSlot()) { *GetAddrOfNativeCodeSlot() = NULL; } } //******************************************************************************* BOOL MethodDesc::SetNativeCodeInterlocked(PCODE addr, PCODE pExpected /*=NULL*/) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; _ASSERTE(!IsDefaultInterfaceMethod() || HasNativeCodeSlot()); if (HasNativeCodeSlot()) { #ifdef TARGET_ARM _ASSERTE(IsThumbCode(addr) || (addr==NULL)); addr &= ~THUMB_CODE; if (pExpected != NULL) { _ASSERTE(IsThumbCode(pExpected)); pExpected &= ~THUMB_CODE; } #endif PTR_PCODE pSlot = GetAddrOfNativeCodeSlot(); NativeCodeSlot expected; expected = *pSlot; return FastInterlockCompareExchangePointer(reinterpret_cast<TADDR*>(pSlot), (TADDR&)addr, (TADDR&)expected) == (TADDR&)expected; } _ASSERTE(pExpected == NULL); return SetStableEntryPointInterlocked(addr); } //******************************************************************************* void MethodDesc::SetMethodEntryPoint(PCODE addr) { WRAPPER_NO_CONTRACT; _ASSERTE(addr != NULL); // Similarly to GetMethodEntryPoint(), it is up to the caller to ensure that calls to this function are appropriately // synchronized. Currently, the only caller synchronizes with the following lock. _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); *GetAddrOfSlot() = addr; } //******************************************************************************* BOOL MethodDesc::SetStableEntryPointInterlocked(PCODE addr) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END; _ASSERTE(!HasPrecode()); _ASSERTE(!IsVersionable()); PCODE pExpected = GetTemporaryEntryPoint(); PTR_PCODE pSlot = GetAddrOfSlot(); BOOL fResult = FastInterlockCompareExchangePointer(pSlot, addr, pExpected) == pExpected; InterlockedUpdateFlags2(enum_flag2_HasStableEntryPoint, TRUE); return fResult; } BOOL NDirectMethodDesc::ComputeMarshalingRequired() { WRAPPER_NO_CONTRACT; return NDirect::MarshalingRequired(this); } /**********************************************************************************/ // Forward declare the NDirectImportWorker function - See dllimport.cpp EXTERN_C LPVOID STDCALL NDirectImportWorker(NDirectMethodDesc*); void *NDirectMethodDesc::ResolveAndSetNDirectTarget(_In_ NDirectMethodDesc* pMD) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(CheckPointer(pMD)); } CONTRACTL_END // This build conditional is here due to dllimport.cpp // not being relevant during the crossgen build. LPVOID targetMaybe = NDirectImportWorker(pMD); _ASSERTE(targetMaybe != nullptr); pMD->SetNDirectTarget(targetMaybe); return targetMaybe; } BOOL NDirectMethodDesc::TryResolveNDirectTargetForNoGCTransition(_In_ MethodDesc* pMD, _Out_ void** ndirectTarget) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(CheckPointer(pMD)); PRECONDITION(CheckPointer(ndirectTarget)); } CONTRACTL_END if (!pMD->ShouldSuppressGCTransition()) return FALSE; _ASSERTE(pMD->IsNDirect()); *ndirectTarget = ResolveAndSetNDirectTarget((NDirectMethodDesc*)pMD); return TRUE; } //******************************************************************************* void NDirectMethodDesc::InterlockedSetNDirectFlags(WORD wFlags) { CONTRACTL { THROWS; GC_NOTRIGGER; } CONTRACTL_END // Since InterlockedCompareExchange only works on ULONGs, // we'll have to operate on the entire ULONG. Ugh. WORD *pFlags = &ndirect.m_wFlags; // Make sure that m_flags is aligned on a 4 byte boundry _ASSERTE( ( ((size_t) pFlags) & (sizeof(ULONG)-1) ) == 0); // Ensure we won't be reading or writing outside the bounds of the NDirectMethodDesc. _ASSERTE((BYTE*)pFlags >= (BYTE*)this); _ASSERTE((BYTE*)pFlags+sizeof(ULONG) <= (BYTE*)(this+1)); DWORD dwMask = 0; // Set the flags in the mask ((WORD*)&dwMask)[0] |= wFlags; // Now, slam all 32 bits atomically. FastInterlockOr((DWORD*)pFlags, dwMask); } #ifdef TARGET_WINDOWS FARPROC NDirectMethodDesc::FindEntryPointWithMangling(NATIVE_LIBRARY_HANDLE hMod, PTR_CUTF8 entryPointName) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; FARPROC pFunc = GetProcAddress(hMod, entryPointName); #if defined(TARGET_X86) if (pFunc) { return pFunc; } if (IsStdCall()) { EnsureStackArgumentSize(); DWORD probedEntrypointNameLength = (DWORD)(strlen(entryPointName) + 1); // 1 for null terminator int dstbufsize = (int)(sizeof(char) * (probedEntrypointNameLength + 10)); // 10 for stdcall mangling LPSTR szProbedEntrypointName = ((LPSTR)_alloca(dstbufsize + 1)); szProbedEntrypointName[0] = '_'; strcpy_s(szProbedEntrypointName + 1, dstbufsize, entryPointName); szProbedEntrypointName[probedEntrypointNameLength] = '\0'; // Add an extra '\0'. UINT16 numParamBytesMangle = GetStackArgumentSize(); sprintf_s(szProbedEntrypointName + probedEntrypointNameLength, dstbufsize - probedEntrypointNameLength + 1, "@%lu", (ULONG)numParamBytesMangle); pFunc = GetProcAddress(hMod, szProbedEntrypointName); } #endif return pFunc; } FARPROC NDirectMethodDesc::FindEntryPointWithSuffix(NATIVE_LIBRARY_HANDLE hMod, PTR_CUTF8 entryPointName, char suffix) { // Allocate space for a copy of the entry point name. DWORD entryPointWithSuffixLen = (DWORD)(strlen(entryPointName) + 1); // +1 for charset decorations int dstbufsize = (int)(sizeof(char) * (entryPointWithSuffixLen + 1)); // +1 for the null terminator LPSTR entryPointWithSuffix = ((LPSTR)_alloca(dstbufsize)); // Copy the name so we can mangle it. strcpy_s(entryPointWithSuffix, dstbufsize, entryPointName); entryPointWithSuffix[entryPointWithSuffixLen] = '\0'; // Null terminator entryPointWithSuffix[entryPointWithSuffixLen - 1] = suffix; // Charset suffix // Look for entry point with the suffix based on charset return FindEntryPointWithMangling(hMod, entryPointWithSuffix); } #endif //******************************************************************************* LPVOID NDirectMethodDesc::FindEntryPoint(NATIVE_LIBRARY_HANDLE hMod) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; char const * funcName = GetEntrypointName(); #ifndef TARGET_WINDOWS return reinterpret_cast<LPVOID>(PAL_GetProcAddressDirect(hMod, funcName)); #else // Handle ordinals. if (funcName[0] == '#') { long ordinal = atol(funcName + 1); return reinterpret_cast<LPVOID>(GetProcAddress(hMod, (LPCSTR)(size_t)((UINT16)ordinal))); } FARPROC pFunc = NULL; if (IsNativeNoMangled()) { // Look for the user-provided entry point name only pFunc = FindEntryPointWithMangling(hMod, funcName); } else if (IsNativeAnsi()) { // For ANSI, look for the user-provided entry point name first. // If that does not exist, try the charset suffix. pFunc = FindEntryPointWithMangling(hMod, funcName); if (pFunc == NULL) pFunc = FindEntryPointWithSuffix(hMod, funcName, 'A'); } else { // For Unicode, look for the entry point name with the charset suffix first. // The 'W' API takes precedence over the undecorated one. pFunc = FindEntryPointWithSuffix(hMod, funcName, 'W'); if (pFunc == NULL) pFunc = FindEntryPointWithMangling(hMod, funcName); } return reinterpret_cast<LPVOID>(pFunc); #endif } #if defined(TARGET_X86) //******************************************************************************* void NDirectMethodDesc::EnsureStackArgumentSize() { STANDARD_VM_CONTRACT; if (ndirect.m_cbStackArgumentSize == 0xFFFF) { // Marshalling required check sets the stack size as side-effect when marshalling is not required. if (MarshalingRequired()) { // Generating interop stub sets the stack size as side-effect in all cases GetStubForInteropMethod(this, NDIRECTSTUB_FL_FOR_NUMPARAMBYTES); } } } #endif //******************************************************************************* void NDirectMethodDesc::InitEarlyBoundNDirectTarget() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END _ASSERTE(IsEarlyBound()); if (IsClassConstructorTriggeredAtLinkTime()) { GetMethodTable()->CheckRunClassInitThrowing(); } const void *target = GetModule()->GetInternalPInvokeTarget(GetRVA()); _ASSERTE(target != 0); if (HeuristicDoesThisLookLikeAGetLastErrorCall((LPBYTE)target)) target = (BYTE*)FalseGetLastError; // As long as we've set the NDirect target field we don't need to backpatch the import thunk glue. // All NDirect calls all through the NDirect target, so if it's updated, then we won't go into // NDirectImportThunk(). In fact, backpatching the import thunk glue leads to race conditions. SetNDirectTarget((LPVOID)target); } //******************************************************************************* BOOL MethodDesc::HasUnmanagedCallersOnlyAttribute() { CONTRACTL { THROWS; GC_NOTRIGGER; FORBID_FAULT; } CONTRACTL_END; if (IsILStub()) { // Stubs generated for being called from native code are equivalent to // managed methods marked with UnmanagedCallersOnly. return AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubNativeToCLRInterop; } HRESULT hr = GetCustomAttribute( WellKnownAttribute::UnmanagedCallersOnly, nullptr, nullptr); if (hr != S_OK) { // See https://github.com/dotnet/runtime/issues/37622 hr = GetCustomAttribute( WellKnownAttribute::NativeCallableInternal, nullptr, nullptr); } return (hr == S_OK) ? TRUE : FALSE; } //******************************************************************************* BOOL MethodDesc::ShouldSuppressGCTransition() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END; MethodDesc* tgt = nullptr; if (IsNDirect()) { tgt = this; } else if (IsILStub()) { // From the IL stub, determine if the actual target has been // marked to suppress the GC transition. PTR_DynamicMethodDesc ilStubMD = AsDynamicMethodDesc(); PTR_ILStubResolver ilStubResolver = ilStubMD->GetILStubResolver(); tgt = ilStubResolver->GetStubTargetMethodDesc(); // In the event we can't get or don't have a target, there is no way // to determine if we should suppress the GC transition. if (tgt == nullptr) return FALSE; } else { return FALSE; } _ASSERTE(tgt != nullptr); bool suppressGCTransition; NDirect::GetCallingConvention_IgnoreErrors(tgt, NULL /*callConv*/, &suppressGCTransition); return suppressGCTransition ? TRUE : FALSE; } #ifdef FEATURE_COMINTEROP //******************************************************************************* void ComPlusCallMethodDesc::InitComEventCallInfo() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); } CONTRACTL_END MethodTable *pItfMT = GetInterfaceMethodTable(); MethodDesc *pItfMD = this; MethodTable *pSrcItfClass = NULL; MethodTable *pEvProvClass = NULL; // Retrieve the event provider class. WORD cbExtraSlots = ComMethodTable::GetNumExtraSlots(pItfMT->GetComInterfaceType()); WORD itfSlotNum = (WORD) m_pComPlusCallInfo->m_cachedComSlot - cbExtraSlots; pItfMT->GetEventInterfaceInfo(&pSrcItfClass, &pEvProvClass); m_pComPlusCallInfo->m_pEventProviderMD = MemberLoader::FindMethodForInterfaceSlot(pEvProvClass, pItfMT, itfSlotNum); // If we could not find the method, then the event provider does not support // this event. This is a fatal error. if (!m_pComPlusCallInfo->m_pEventProviderMD) { // Init the interface MD for error reporting. pItfMD = (ComPlusCallMethodDesc*)pItfMT->GetMethodDescForSlot(itfSlotNum); // Retrieve the event provider class name. StackSString ssEvProvClassName; pEvProvClass->_GetFullyQualifiedNameForClass(ssEvProvClassName); // Retrieve the COM event interface class name. StackSString ssEvItfName; pItfMT->_GetFullyQualifiedNameForClass(ssEvItfName); // Convert the method name to unicode. StackSString ssMethodName(SString::Utf8, pItfMD->GetName()); // Throw the exception. COMPlusThrow(kTypeLoadException, IDS_EE_METHOD_NOT_FOUND_ON_EV_PROV, ssMethodName.GetUnicode(), ssEvItfName.GetUnicode(), ssEvProvClassName.GetUnicode()); } } #endif // FEATURE_COMINTEROP #endif // !DACCESS_COMPILE #ifdef DACCESS_COMPILE //******************************************************************************* void MethodDesc::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) { SUPPORTS_DAC; if (DacHasMethodDescBeenEnumerated(this)) { return; } // Save away the whole MethodDescChunk as in many // places RecoverChunk is called on a method desc so // the whole chunk must be available. This also // automatically picks up any prestubs and such. GetMethodDescChunk()->EnumMemoryRegions(flags); if (HasPrecode()) { GetPrecode()->EnumMemoryRegions(flags); } // Need to save the Debug-Info for this method so that we can see it in a debugger later. DebugInfoManager::EnumMemoryRegionsForMethodDebugInfo(flags, this); if (!IsNoMetadata() ||IsILStub()) { // The assembling of the string below implicitly dumps the memory we need. StackSString str; TypeString::AppendMethodInternal(str, this, TypeString::FormatSignature|TypeString::FormatNamespace|TypeString::FormatFullInst); #ifdef FEATURE_MINIMETADATA_IN_TRIAGEDUMPS if (flags == CLRDATA_ENUM_MEM_MINI || flags == CLRDATA_ENUM_MEM_TRIAGE) { // we want to save just the method name, so truncate at the open paranthesis SString::Iterator it = str.Begin(); if (str.Find(it, W('('))) { // ensure the symbol ends in "()" to minimize regressions // in !analyze assuming the existence of the argument list str.Truncate(++it); str.Append(W(')')); } DacMdCacheAddEEName(dac_cast<TADDR>(this), str); } #endif // FEATURE_MINIMETADATA_IN_TRIAGEDUMPS // The module path is used in the output of !clrstack and !pe if the // module is not available when the minidump is inspected. By retrieving // the path here, the required memory is implicitly dumped. Module* pModule = GetModule(); if (pModule) { pModule->GetPath(); } } #ifdef FEATURE_CODE_VERSIONING // Make sure the active IL and native code version are in triage dumps. CodeVersionManager* pCodeVersionManager = GetCodeVersionManager(); ILCodeVersion ilVersion = pCodeVersionManager->GetActiveILCodeVersion(dac_cast<PTR_MethodDesc>(this)); if (!ilVersion.IsNull()) { ilVersion.GetActiveNativeCodeVersion(dac_cast<PTR_MethodDesc>(this)); ilVersion.GetVersionId(); ilVersion.GetRejitState(); ilVersion.GetIL(); } #endif // Also, call DacValidateMD to dump the memory it needs. !clrstack calls // DacValidateMD before it retrieves the method name. We don't expect // DacValidateMD to fail, but if it does, ignore the failure and try to assemble the // string anyway so that clients that don't validate the MD still work. DacValidateMD(this); DacSetMethodDescEnumerated(this); } //******************************************************************************* void StoredSigMethodDesc::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) { SUPPORTS_DAC; // 'this' already done, see below. DacEnumMemoryRegion(GetSigRVA(), m_cSig); } //******************************************************************************* void MethodDescChunk::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) { SUPPORTS_DAC; DAC_CHECK_ENUM_THIS(); EMEM_OUT(("MEM: %p MethodDescChunk\n", dac_cast<TADDR>(this))); DacEnumMemoryRegion(dac_cast<TADDR>(this), SizeOf()); PTR_MethodTable pMT = GetMethodTable(); if (pMT.IsValid()) { pMT->EnumMemoryRegions(flags); } SIZE_T size; #ifdef HAS_COMPACT_ENTRYPOINTS if (HasCompactEntryPoints()) { size = SizeOfCompactEntryPoints(GetCount()); } else #endif // HAS_COMPACT_ENTRYPOINTS { size = Precode::SizeOfTemporaryEntryPoints(GetTemporaryEntryPoints(), GetCount()); } DacEnumMemoryRegion(GetTemporaryEntryPoints(), size); MethodDesc * pMD = GetFirstMethodDesc(); MethodDesc * pOldMD = NULL; while (pMD != NULL && pMD != pOldMD) { pOldMD = pMD; EX_TRY { if (pMD->IsMethodImpl()) { pMD->GetMethodImpl()->EnumMemoryRegions(flags); } } EX_CATCH_RETHROW_ONLY_COR_E_OPERATIONCANCELLED EX_TRY { if (pMD->HasStoredSig()) { dac_cast<PTR_StoredSigMethodDesc>(pMD)->EnumMemoryRegions(flags); } // Check whether the next MethodDesc is within the bounds of the current chunks TADDR pNext = dac_cast<TADDR>(pMD) + pMD->SizeOf(); TADDR pEnd = dac_cast<TADDR>(this) + this->SizeOf(); pMD = (pNext < pEnd) ? PTR_MethodDesc(pNext) : NULL; } EX_CATCH_RETHROW_ONLY_COR_E_OPERATIONCANCELLED } } #endif // DACCESS_COMPILE #ifndef DACCESS_COMPILE //******************************************************************************* MethodDesc *MethodDesc::GetInterfaceMD() { CONTRACT (MethodDesc*) { THROWS; GC_TRIGGERS; INSTANCE_CHECK; PRECONDITION(!IsInterface()); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; MethodTable *pMT = GetMethodTable(); RETURN(pMT->ReverseInterfaceMDLookup(GetSlot())); } #endif // !DACCESS_COMPILE PTR_LoaderAllocator MethodDesc::GetLoaderAllocator() { WRAPPER_NO_CONTRACT; return GetLoaderModule()->GetLoaderAllocator(); } #if !defined(DACCESS_COMPILE) REFLECTMETHODREF MethodDesc::GetStubMethodInfo() { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM()); MODE_COOPERATIVE; } CONTRACTL_END; REFLECTMETHODREF retVal; REFLECTMETHODREF methodRef = (REFLECTMETHODREF)AllocateObject(CoreLibBinder::GetClass(CLASS__STUBMETHODINFO)); GCPROTECT_BEGIN(methodRef); methodRef->SetMethod(this); LoaderAllocator *pLoaderAllocatorOfMethod = this->GetLoaderAllocator(); if (pLoaderAllocatorOfMethod->IsCollectible()) methodRef->SetKeepAlive(pLoaderAllocatorOfMethod->GetExposedObject()); retVal = methodRef; GCPROTECT_END(); return retVal; } #endif // !DACCESS_COMPILE #ifndef DACCESS_COMPILE typedef void (*WalkValueTypeParameterFnPtr)(Module *pModule, mdToken token, Module *pDefModule, mdToken tkDefToken, SigPointer *ptr, SigTypeContext *pTypeContext, void *pData); void MethodDesc::WalkValueTypeParameters(MethodTable *pMT, WalkValueTypeParameterFnPtr function, void *pData) { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; uint32_t numArgs = 0; Module *pModule = this->GetModule(); SigPointer ptr = this->GetSigPointer(); // skip over calling convention. uint32_t callConv = 0; IfFailThrowBF(ptr.GetCallingConvInfo(&callConv), BFA_BAD_SIGNATURE, pModule); // If calling convention is generic, skip GenParamCount if (callConv & IMAGE_CEE_CS_CALLCONV_GENERIC) { IfFailThrowBF(ptr.GetData(NULL), BFA_BAD_SIGNATURE, pModule); } IfFailThrowBF(ptr.GetData(&numArgs), BFA_BAD_SIGNATURE, pModule); SigTypeContext typeContext(this, TypeHandle(pMT)); // iterate over the return type and parameters for (DWORD j = 0; j <= numArgs; j++) { CorElementType type = ptr.PeekElemTypeClosed(pModule, &typeContext); if (type != ELEMENT_TYPE_VALUETYPE) goto moveToNextToken; mdToken token; Module *pTokenModule; token = ptr.PeekValueTypeTokenClosed(pModule, &typeContext, &pTokenModule); if (token == mdTokenNil) goto moveToNextToken; DWORD dwAttrType; Module *pDefModule; mdToken defToken; dwAttrType = 0; if (ClassLoader::ResolveTokenToTypeDefThrowing(pTokenModule, token, &pDefModule, &defToken)) { if (function != NULL) function(pModule, token, pDefModule, defToken, &ptr, &typeContext, pData); } moveToNextToken: // move to next argument token IfFailThrowBF(ptr.SkipExactlyOne(), BFA_BAD_SIGNATURE, pModule); } if (!HaveValueTypeParametersBeenWalked()) { SetValueTypeParametersWalked(); } } PrecodeType MethodDesc::GetPrecodeType() { LIMITED_METHOD_CONTRACT; PrecodeType precodeType = PRECODE_INVALID; #ifdef HAS_FIXUP_PRECODE if (!RequiresMethodDescCallingConvention()) { // Use the more efficient fixup precode if possible precodeType = PRECODE_FIXUP; } else #endif // HAS_FIXUP_PRECODE { precodeType = PRECODE_STUB; } return precodeType; } #endif // !DACCESS_COMPILE #ifdef FEATURE_COMINTEROP #ifndef DACCESS_COMPILE void ComPlusCallMethodDesc::InitRetThunk() { WRAPPER_NO_CONTRACT; #ifdef TARGET_X86 if (m_pComPlusCallInfo->m_pRetThunk != NULL) return; // Record the fact that we are writting into the ComPlusCallMethodDesc g_IBCLogger.LogMethodDescAccess(this); UINT numStackBytes = CbStackPop(); LPVOID pRetThunk = ComPlusCall::GetRetThunk(numStackBytes); FastInterlockCompareExchangePointer<void *>(&m_pComPlusCallInfo->m_pRetThunk, pRetThunk, NULL); #endif // TARGET_X86 } #endif //!DACCESS_COMPILE #endif // FEATURE_COMINTEROP #ifndef DACCESS_COMPILE void MethodDesc::PrepareForUseAsADependencyOfANativeImageWorker() { STANDARD_VM_CONTRACT; // This function ensures that a method is ready for use as a dependency of a native image // The current requirement is only that valuetypes can be resolved to their type defs as much // as is possible. (If the method is actually called, then this will not throw, but there // are cases where we call this method and we are unaware if this method will actually be called // or accessed as a native image dependency. This explains the contract (STANDARD_VM_CONTRACT) // - This method should be callable only when general purpose VM code can be called // , as well as the TRY/CATCH. // - This function should not introduce failures EX_TRY { WalkValueTypeParameters(this->GetMethodTable(), NULL, NULL); } EX_CATCH { } EX_END_CATCH(RethrowTerminalExceptions); _ASSERTE(HaveValueTypeParametersBeenWalked()); } static void CheckForEquivalenceAndLoadType(Module *pModule, mdToken token, Module *pDefModule, mdToken defToken, const SigParser *ptr, SigTypeContext *pTypeContext, void *pData) { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; BOOL *pHasEquivalentParam = (BOOL *)pData; #ifdef FEATURE_TYPEEQUIVALENCE *pHasEquivalentParam = IsTypeDefEquivalent(defToken, pDefModule); #else _ASSERTE(*pHasEquivalentParam == FALSE); // Assert this is always false. #endif // FEATURE_TYPEEQUIVALENCE SigPointer sigPtr(*ptr); TypeHandle th = sigPtr.GetTypeHandleThrowing(pModule, pTypeContext); _ASSERTE(!th.IsNull()); } void MethodDesc::PrepareForUseAsAFunctionPointer() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; // Since function pointers are unsafe and can enable type punning, all // value type parameters must be loaded prior to providing a function pointer. if (HaveValueTypeParametersBeenLoaded()) return; BOOL fHasTypeEquivalentStructParameters = FALSE; WalkValueTypeParameters(this->GetMethodTable(), CheckForEquivalenceAndLoadType, &fHasTypeEquivalentStructParameters); #ifdef FEATURE_TYPEEQUIVALENCE if (!fHasTypeEquivalentStructParameters) SetDoesNotHaveEquivalentValuetypeParameters(); #endif // FEATURE_TYPEEQUIVALENCE SetValueTypeParametersLoaded(); } #endif //!DACCESS_COMPILE
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/method.hpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // method.hpp // // // See the book of the runtime entry for overall design: // file:../../doc/BookOfTheRuntime/ClassLoader/MethodDescDesign.doc // #ifndef _METHOD_H #define _METHOD_H #include "cor.h" #include "util.hpp" #include "clsload.hpp" #include "class.h" #include "siginfo.hpp" #include "methodimpl.h" #include "typedesc.h" #include <stddef.h> #include "eeconfig.h" #include "precode.h" class Stub; class FCallMethodDesc; class FieldDesc; class NDirect; class MethodDescChunk; struct LayoutRawFieldInfo; class InstantiatedMethodDesc; class DictionaryLayout; class Dictionary; class GCCoverageInfo; class DynamicMethodDesc; class ReJitManager; class CodeVersionManager; class PrepareCodeConfig; typedef DPTR(FCallMethodDesc) PTR_FCallMethodDesc; typedef DPTR(ArrayMethodDesc) PTR_ArrayMethodDesc; typedef DPTR(DynamicMethodDesc) PTR_DynamicMethodDesc; typedef DPTR(InstantiatedMethodDesc) PTR_InstantiatedMethodDesc; typedef DPTR(GCCoverageInfo) PTR_GCCoverageInfo; // see code:GCCoverageInfo::savedCode #ifdef FEATURE_MINIMETADATA_IN_TRIAGEDUMPS GVAL_DECL(DWORD, g_MiniMetaDataBuffMaxSize); GVAL_DECL(TADDR, g_MiniMetaDataBuffAddress); #endif // FEATURE_MINIMETADATA_IN_TRIAGEDUMPS EXTERN_C VOID STDCALL NDirectImportThunk(); #define METHOD_TOKEN_REMAINDER_BIT_COUNT 13 #define METHOD_TOKEN_REMAINDER_MASK ((1 << METHOD_TOKEN_REMAINDER_BIT_COUNT) - 1) #define METHOD_TOKEN_RANGE_BIT_COUNT (24 - METHOD_TOKEN_REMAINDER_BIT_COUNT) #define METHOD_TOKEN_RANGE_MASK ((1 << METHOD_TOKEN_RANGE_BIT_COUNT) - 1) //============================================================= // Splits methoddef token into two pieces for // storage inside a methoddesc. //============================================================= FORCEINLINE UINT16 GetTokenRange(mdToken tok) { LIMITED_METHOD_CONTRACT; return (UINT16)((tok>>METHOD_TOKEN_REMAINDER_BIT_COUNT) & METHOD_TOKEN_RANGE_MASK); } FORCEINLINE VOID SplitToken(mdToken tok, UINT16 *ptokrange, UINT16 *ptokremainder) { LIMITED_METHOD_CONTRACT; *ptokrange = (UINT16)((tok>>METHOD_TOKEN_REMAINDER_BIT_COUNT) & METHOD_TOKEN_RANGE_MASK); *ptokremainder = (UINT16)(tok & METHOD_TOKEN_REMAINDER_MASK); } FORCEINLINE mdToken MergeToken(UINT16 tokrange, UINT16 tokremainder) { LIMITED_METHOD_DAC_CONTRACT; return (tokrange << METHOD_TOKEN_REMAINDER_BIT_COUNT) | tokremainder | mdtMethodDef; } // The MethodDesc is a union of several types. The following // 3-bit field determines which type it is. Note that JIT'ed/non-JIT'ed // is not represented here because this isn't known until the // method is executed for the first time. Because any thread could // change this bit, it has to be done in a place where access is // synchronized. // **** NOTE: if you add any new flags, make sure you add them to ClearFlagsOnUpdate // so that when a method is replaced its relevant flags are updated // Used in MethodDesc enum MethodClassification { mcIL = 0, // IL mcFCall = 1, // FCall (also includes tlbimped ctor, Delegate ctor) mcNDirect = 2, // N/Direct mcEEImpl = 3, // special method; implementation provided by EE (like Delegate Invoke) mcArray = 4, // Array ECall mcInstantiated = 5, // Instantiated generic methods, including descriptors // for both shared and unshared code (see InstantiatedMethodDesc) #ifdef FEATURE_COMINTEROP // This needs a little explanation. There are MethodDescs on MethodTables // which are Interfaces. These have the mdcInterface bit set. Then there // are MethodDescs on MethodTables that are Classes, where the method is // exposed through an interface. These do not have the mdcInterface bit set. // // So, today, a dispatch through an 'mdcInterface' MethodDesc is either an // error (someone forgot to look up the method in a class' VTable) or it is // a case of COM Interop. mcComInterop = 6, #endif // FEATURE_COMINTEROP mcDynamic = 7, // for method desc with no metadata behind mcCount, }; // All flags in the MethodDesc now reside in a single 16-bit field. enum MethodDescClassification { // Method is IL, FCall etc., see MethodClassification above. mdcClassification = 0x0007, mdcClassificationCount = mdcClassification+1, // Note that layout of code:MethodDesc::s_ClassificationSizeTable depends on the exact values // of mdcHasNonVtableSlot and mdcMethodImpl // Has local slot (vs. has real slot in MethodTable) mdcHasNonVtableSlot = 0x0008, // Method is a body for a method impl (MI_MethodDesc, MI_NDirectMethodDesc, etc) // where the function explicitly implements IInterface.foo() instead of foo(). mdcMethodImpl = 0x0010, // Has slot for native code mdcHasNativeCodeSlot = 0x0020, #ifdef FEATURE_COMINTEROP mdcHasComPlusCallInfo = 0x0040, #else // unused = 0x0040, #endif // Method is static mdcStatic = 0x0080, // unused = 0x0100, // unused = 0x0200, // Duplicate method. When a method needs to be placed in multiple slots in the // method table, because it could not be packed into one slot. For eg, a method // providing implementation for two interfaces, MethodImpl, etc mdcDuplicate = 0x0400, // Has this method been verified? mdcVerifiedState = 0x0800, // Is the method verifiable? It needs to be verified first to determine this mdcVerifiable = 0x1000, // Is this method ineligible for inlining? mdcNotInline = 0x2000, // Is the method synchronized mdcSynchronized = 0x4000, // Does the method's slot number require all 16 bits mdcRequiresFullSlotNumber = 0x8000 }; #define METHOD_MAX_RVA 0x7FFFFFFF // The size of this structure needs to be a multiple of MethodDesc::ALIGNMENT // // @GENERICS: // Method descriptors for methods belonging to instantiated types may be shared between compatible instantiations // Hence for reflection and elsewhere where exact types are important it's necessary to pair a method desc // with the exact owning type handle. // // See genmeth.cpp for details of instantiated generic method descriptors. // // A MethodDesc is the representation of a method of a type. These live in code:MethodDescChunk which in // turn lives in code:EEClass. They are conceptually cold (we do not expect to access them in normal // program exectution, but we often fall short of that goal. // // A Method desc knows how to get at its metadata token code:GetMemberDef, its chunk // code:MethodDescChunk, which in turns knows how to get at its type code:MethodTable. // It also knows how to get at its IL code (code:IMAGE_COR_ILMETHOD) class MethodDesc { friend class EEClass; friend class MethodTableBuilder; friend class ArrayClass; friend class NDirect; friend class MethodDescChunk; friend class InstantiatedMethodDesc; friend class MethodImpl; friend class CheckAsmOffsets; friend class ClrDataAccess; friend class MethodDescCallSite; public: #ifdef TARGET_64BIT static const int ALIGNMENT_SHIFT = 3; #else static const int ALIGNMENT_SHIFT = 2; #endif static const size_t ALIGNMENT = (1 << ALIGNMENT_SHIFT); static const size_t ALIGNMENT_MASK = (ALIGNMENT - 1); #ifdef _DEBUG // These are set only for MethodDescs but every time we want to use the debugger // to examine these fields, the code has the thing stored in a MethodDesc*. // So... LPCUTF8 m_pszDebugMethodName; LPCUTF8 m_pszDebugClassName; LPCUTF8 m_pszDebugMethodSignature; PTR_MethodTable m_pDebugMethodTable; PTR_GCCoverageInfo m_GcCover; #endif // _DEBUG inline BOOL HasStableEntryPoint() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_HasStableEntryPoint) != 0; } inline PCODE GetStableEntryPoint() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(HasStableEntryPoint()); _ASSERTE(!IsVersionableWithVtableSlotBackpatch()); return GetMethodEntryPoint(); } void SetMethodEntryPoint(PCODE addr); BOOL SetStableEntryPointInterlocked(PCODE addr); PCODE GetTemporaryEntryPoint(); void SetTemporaryEntryPoint(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker); PCODE GetInitialEntryPointForCopiedSlot() { WRAPPER_NO_CONTRACT; if (IsVersionableWithVtableSlotBackpatch()) { return GetTemporaryEntryPoint(); } return GetMethodEntryPoint(); } inline BOOL HasPrecode() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_HasPrecode) != 0; } inline Precode* GetPrecode() { LIMITED_METHOD_DAC_CONTRACT; PRECONDITION(HasPrecode()); Precode* pPrecode = Precode::GetPrecodeFromEntryPoint(GetStableEntryPoint()); PREFIX_ASSUME(pPrecode != NULL); return pPrecode; } inline bool MayHavePrecode() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END // Ideally, methods that will not have native code (!MayHaveNativeCode() == true) should not be versionable. Currently, // that is not the case, in some situations it was seen that 1/4 to 1/3 of versionable methods do not have native // code, though there is no significant overhead from this. MayHaveNativeCode() appears to be an expensive check to do // for each MethodDesc, even if it's done only once, and when it was attempted, at the time it was showing up noticeably // in startup performance profiles. // // In particular, methods versionable with vtable slot backpatch should not have a precode (in the sense HasPrecode() // must return false) even if they will not have native code. bool result = IsVersionable() ? IsVersionableWithPrecode() : !MayHaveNativeCode(); _ASSERTE(!result || !IsVersionableWithVtableSlotBackpatch()); return result; } void InterlockedUpdateFlags2(BYTE bMask, BOOL fSet); Precode* GetOrCreatePrecode(); // Given a code address return back the MethodDesc whenever possible // static MethodDesc * GetMethodDescFromStubAddr(PCODE addr, BOOL fSpeculative = FALSE); DWORD GetAttrs() const; DWORD GetImplAttrs(); // This function can lie if a method impl was used to implement // more than one method on this class. Use GetName(int) to indicate // which slot you are interested in. // See the TypeString class for better control over name formatting. LPCUTF8 GetName(); LPCUTF8 GetName(USHORT slot); BOOL MightHaveName(ULONG nameHashValue); FORCEINLINE LPCUTF8 GetNameOnNonArrayClass() { WRAPPER_NO_CONTRACT; LPCSTR szName; if (FAILED(GetMDImport()->GetNameOfMethodDef(GetMemberDef(), &szName))) { szName = NULL; } return szName; } COUNT_T GetStableHash(); // Non-zero for InstantiatedMethodDescs DWORD GetNumGenericMethodArgs(); // Return the number of class type parameters that are in scope for this method DWORD GetNumGenericClassArgs() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return GetMethodTable()->GetNumGenericArgs(); } // True if this is a method descriptor for an instantiated generic method // whose method type arguments are the formal type parameters of the generic method // NOTE: the declaring class may not be the generic type definition e.g. consider C<int>.m<T> BOOL IsGenericMethodDefinition() const; // True if the declaring type or instantiation of method (if any) contains formal generic type parameters BOOL ContainsGenericVariables(); Module* GetDefiningModuleForOpenMethod(); // True if this is a class and method instantiation that on <__Canon,...,__Canon> BOOL IsTypicalSharedInstantiation(); // True if and only if this is a method desriptor for : // 1. a non-generic method or a generic method at its typical method instantiation // 2. in a non-generic class or a typical instantiation of a generic class // This method can be called on a non-restored method desc BOOL IsTypicalMethodDefinition() const; // Force a load of the (typical) constraints on the type parameters of a typical method definition, // detecting cyclic bounds on class and method type parameters. void LoadConstraintsForTypicalMethodDefinition(BOOL *pfHasCircularClassConstraints, BOOL *pfHasCircularMethodConstraints, ClassLoadLevel level = CLASS_LOADED); DWORD IsClassConstructor() { WRAPPER_NO_CONTRACT; return IsMdClassConstructor(GetAttrs(), GetName()); } DWORD IsClassConstructorOrCtor() { WRAPPER_NO_CONTRACT; DWORD dwAttrs = GetAttrs(); if (IsMdRTSpecialName(dwAttrs)) { LPCUTF8 name = GetName(); return IsMdInstanceInitializer(dwAttrs, name) || IsMdClassConstructor(dwAttrs, name); } return FALSE; } inline void SetHasMethodImplSlot() { m_wFlags |= mdcMethodImpl; } inline BOOL HasMethodImplSlot() { LIMITED_METHOD_DAC_CONTRACT; return (mdcMethodImpl & m_wFlags); } FORCEINLINE BOOL IsMethodImpl() { LIMITED_METHOD_DAC_CONTRACT; // Once we stop allocating dummy MethodImplSlot in MethodTableBuilder::WriteMethodImplData, // the check for NULL will become unnecessary. return HasMethodImplSlot() && (GetMethodImpl()->GetSlots() != NULL); } inline DWORD IsStatic() { LIMITED_METHOD_DAC_CONTRACT; // This bit caches the IsMdStatic(GetAttrs()) check. We used to assert it here, but not doing it anymore. GetAttrs() // accesses metadata that is not compatible with contracts of this method. The metadata access can fail, the metadata // are not available during shutdown, the metadata access can take locks. It is not worth it to code around all these // just for the assert. // _ASSERTE((((m_wFlags & mdcStatic) != 0) == (IsMdStatic(flags) != 0))); return (m_wFlags & mdcStatic) != 0; } inline void SetStatic() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcStatic; } inline void ClearStatic() { LIMITED_METHOD_CONTRACT; m_wFlags &= ~mdcStatic; } inline BOOL IsIL() { LIMITED_METHOD_DAC_CONTRACT; return mcIL == GetClassification() || mcInstantiated == GetClassification(); } //================================================================ // Generics-related predicates etc. // True if the method descriptor is an instantiation of a generic method. inline BOOL HasMethodInstantiation() const; // True if the method descriptor is either an instantiation of // a generic method or is an instance method in an instantiated class (or both). BOOL HasClassOrMethodInstantiation() { LIMITED_METHOD_DAC_CONTRACT; return (HasClassInstantiation() || HasMethodInstantiation()); } BOOL HasClassOrMethodInstantiation_NoLogging() const { LIMITED_METHOD_DAC_CONTRACT; return (HasClassInstantiation_NoLogging() || HasMethodInstantiation()); } inline BOOL HasClassInstantiation() const { LIMITED_METHOD_DAC_CONTRACT; return GetMethodTable()->HasInstantiation(); } inline BOOL HasClassInstantiation_NoLogging() const { LIMITED_METHOD_DAC_CONTRACT; return GetMethodTable_NoLogging()->HasInstantiation(); } // Return the instantiation for an instantiated generic method // Return NULL if not an instantiated method // To get the (representative) instantiation of the declaring class use GetMethodTable()->GetInstantiation() // NOTE: This will assert if you try to get the instantiation of a generic method def in a non-typical class // e.g. C<int>.m<U> will fail but C<T>.m<U> will succeed Instantiation GetMethodInstantiation() const; // As above, but will succeed on C<int>.m<U> // To do this it might force a load of the typical parent Instantiation LoadMethodInstantiation(); // Return a pointer to the method dictionary for an instantiated generic method // The initial slots in a method dictionary are the type arguments themselves // Return NULL if not an instantiated method Dictionary* GetMethodDictionary(); DictionaryLayout* GetDictionaryLayout(); InstantiatedMethodDesc* AsInstantiatedMethodDesc() const; BaseDomain *GetDomain(); #ifdef FEATURE_CODE_VERSIONING CodeVersionManager* GetCodeVersionManager(); #endif MethodDescBackpatchInfoTracker* GetBackpatchInfoTracker(); PTR_LoaderAllocator GetLoaderAllocator(); // GetDomainSpecificLoaderAllocator returns the collectable loader allocator for collectable types // and the loader allocator in the current domain for non-collectable types LoaderAllocator * GetDomainSpecificLoaderAllocator(); Module* GetLoaderModule(); // Strip off method and class instantiation if present and replace by the typical instantiation // e.g. C<int>.m<string> -> C<T>.m<U>. Does not modify the MethodDesc, but returns // the appropriate stripped MethodDesc. // This is the identity function on non-instantiated method descs in non-instantiated classes MethodDesc* LoadTypicalMethodDefinition(); // Strip off the method instantiation (if present) and replace by the typical instantiation // e.g. // C<int>.m<string> -> C<int>.m<U>. Does not modify the MethodDesc, but returns // the appropriate stripped MethodDesc. // This is the identity function on non-instantiated method descs MethodDesc* StripMethodInstantiation(); // Return the instantiation of a method's enclosing class // Return NULL if the enclosing class is not instantiated // If the method code is shared then this might be a *representative* instantiation // // See GetExactClassInstantiation if you need to get the exact // instantiation of a shared method desc. Instantiation GetClassInstantiation() const; // Is the code shared between multiple instantiations of class or method? // If so, then when compiling the code we might need to look up tokens // in the class or method dictionary. Also, when debugging the exact generic arguments // need to be ripped off the stack, either from the this pointer or from one of the // extra args below. BOOL IsSharedByGenericInstantiations(); // shared code of any kind BOOL IsSharedByGenericMethodInstantiations(); // shared due to method instantiation // How does a method shared between generic instantiations get at // the extra instantiation information at runtime? Only one of the following three // will ever hold: // // AcquiresInstMethodTableFromThis() // The method is in a generic class but is not itself a // generic method (the normal case). Furthermore a "this" pointer // is available and we can get the exact instantiation from it. // // RequiresInstMethodTableArg() // The method is shared between generic classes but is not // itself generic. Furthermore no "this" pointer is given // (e.g. a value type method), so we pass in the exact-instantiation // method table as an extra argument. // i.e. per-inst static methods in shared-code instantiated generic // classes (e.g. static void MyClass<string>::m()) // i.e. shared-code instance methods in instantiated generic // structs (e.g. void MyValueType<string>::m()) // // RequiresInstMethodDescArg() // The method is itself generic and is shared between generic // instantiations but is not itself generic. Furthermore // no "this" pointer is given (e.g. a value type method), so we pass in the // exact-instantiation method table as an extra argument. // i.e. shared-code instantiated generic methods // // These are used for direct calls to instantiated generic methods // e.g. call void C::m<string>() implemented by calculating dict(m<string>) at compile-time and passing it as an extra parameter // call void C::m<!0>() implemented by calculating dict(m<!0>) at run-time (if the caller lives in shared-class code) BOOL AcquiresInstMethodTableFromThis(); BOOL RequiresInstMethodTableArg(); BOOL RequiresInstMethodDescArg(); BOOL RequiresInstArg(); // Can this method handle be given out to reflection for use in a MethodInfo // object? BOOL IsRuntimeMethodHandle(); // Given a method table of an object and a method that comes from some // superclass of the class of that object, find that superclass. MethodTable * GetExactDeclaringType(MethodTable * ownerOrSubType); // Given a type handle of an object and a method that comes from some // superclass of the class of that object, find the instantiation of // that superclass, i.e. the class instantiation which will be relevant // to interpreting the signature of the method. The type handle of // the object does not need to be given in all circumstances, in // particular it is only needed for MethodDescs pMD that // return true for pMD->RequiresInstMethodTableArg() or // pMD->RequiresInstMethodDescArg(). In other cases it is // allowed to be null. // // Will return NULL if the method is not in a generic class. Instantiation GetExactClassInstantiation(TypeHandle possibleObjType); BOOL SatisfiesMethodConstraints(TypeHandle thParent, BOOL fThrowIfNotSatisfied = FALSE); BOOL HasSameMethodDefAs(MethodDesc * pMD); //================================================================ // Classifications of kinds of MethodDescs. inline BOOL IsRuntimeSupplied() { LIMITED_METHOD_DAC_CONTRACT; return mcFCall == GetClassification() || mcArray == GetClassification(); } inline DWORD IsArray() const { LIMITED_METHOD_DAC_CONTRACT; return mcArray == GetClassification(); } inline DWORD IsEEImpl() const { LIMITED_METHOD_DAC_CONTRACT; return mcEEImpl == GetClassification(); } inline DWORD IsNoMetadata() const { LIMITED_METHOD_DAC_CONTRACT; return (mcDynamic == GetClassification()); } inline PTR_DynamicMethodDesc AsDynamicMethodDesc(); inline bool IsDynamicMethod(); inline bool IsILStub(); inline bool IsLCGMethod(); inline DWORD IsNDirect() { LIMITED_METHOD_DAC_CONTRACT; return mcNDirect == GetClassification(); } inline DWORD IsInterface() { WRAPPER_NO_CONTRACT; return GetMethodTable()->IsInterface(); } BOOL HasUnmanagedCallersOnlyAttribute(); BOOL ShouldSuppressGCTransition(); #ifdef FEATURE_COMINTEROP inline DWORD IsComPlusCall() { WRAPPER_NO_CONTRACT; return mcComInterop == GetClassification(); } inline DWORD IsGenericComPlusCall(); inline void SetupGenericComPlusCall(); #else // !FEATURE_COMINTEROP // hardcoded to return FALSE to improve code readibility inline DWORD IsComPlusCall() { LIMITED_METHOD_CONTRACT; return FALSE; } inline DWORD IsGenericComPlusCall() { LIMITED_METHOD_CONTRACT; return FALSE; } #endif // !FEATURE_COMINTEROP // Update flags in a thread safe manner. WORD InterlockedUpdateFlags(WORD wMask, BOOL fSet); // If the method is in an Edit and Contine (EnC) module, then // we DON'T want to backpatch this, ever. We MUST always call // through the precode so that we can update the method. inline DWORD IsEnCMethod() { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->IsEditAndContinueEnabled(); } inline BOOL IsNotInline() { LIMITED_METHOD_CONTRACT; return (m_wFlags & mdcNotInline); } inline void SetNotInline(BOOL set) { WRAPPER_NO_CONTRACT; InterlockedUpdateFlags(mdcNotInline, set); } #ifndef DACCESS_COMPILE VOID EnsureActive(); #endif CHECK CheckActivated(); //================================================================ // FCalls. BOOL IsFCall() { WRAPPER_NO_CONTRACT; return mcFCall == GetClassification(); } BOOL IsQCall(); //================================================================ // inline void ClearFlagsOnUpdate() { WRAPPER_NO_CONTRACT; SetNotInline(FALSE); } // Restore the MethodDesc to it's initial, pristine state, so that // it can be reused for new code (eg. for EnC, method rental, etc.) // // Things to think about before calling this: // // Does the caller need to free up the jitted code for the old IL // (including any other IJitManager datastructures) ? // Does the caller guarantee thread-safety ? // void Reset(); //================================================================ // About the signature. BOOL IsVarArg(); BOOL IsVoid(); BOOL HasRetBuffArg(); // Returns the # of bytes of stack used by arguments. Does not include // arguments passed in registers. UINT SizeOfArgStack(); // Returns the # of bytes of stack used by arguments in a call from native to this function. // Does not include arguments passed in registers. UINT SizeOfNativeArgStack(); // Returns the # of bytes to pop after a call. Not necessary the // same as SizeOfArgStack()! UINT CbStackPop(); //================================================================ // Unboxing stubs. // // Return TRUE if this is this a special stub used to implement delegates to an // instance method in a value class and/or virtual methods on a value class. // // For every BoxedEntryPointStub there is associated unboxed-this-MethodDesc // which accepts an unboxed "this" pointer. // // The action of a typical BoxedEntryPointStub is to // bump up the this pointer by one word so that it points to the interior of the object // and then call the underlying unboxed-this-MethodDesc. // // Additionally, if the non-BoxedEntryPointStub is RequiresInstMethodTableArg() // then pass on the MethodTable as an extra argument to the // underlying unboxed-this-MethodDesc. BOOL IsUnboxingStub() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_IsUnboxingStub) != 0; } void SetIsUnboxingStub() { LIMITED_METHOD_CONTRACT; m_bFlags2 |= enum_flag2_IsUnboxingStub; } //================================================================ // Instantiating Stubs // // Return TRUE if this is this a special stub used to implement an // instantiated generic method or per-instantiation static method. // The action of an instantiating stub is // * pass on a MethodTable or InstantiatedMethodDesc extra argument to shared code BOOL IsInstantiatingStub(); // A wrapper stub is either an unboxing stub or an instantiating stub BOOL IsWrapperStub(); MethodDesc *GetWrappedMethodDesc(); MethodDesc *GetExistingWrappedMethodDesc(); //================================================================== // Access the underlying metadata BOOL HasILHeader() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; return IsIL() && !IsUnboxingStub() && GetRVA(); } COR_ILMETHOD* GetILHeader(BOOL fAllowOverrides = FALSE); BOOL HasStoredSig() { LIMITED_METHOD_DAC_CONTRACT; return IsEEImpl() || IsArray() || IsNoMetadata(); } PCCOR_SIGNATURE GetSig(); void GetSig(PCCOR_SIGNATURE *ppSig, DWORD *pcSig); SigParser GetSigParser(); // Convenience methods for common signature wrapper types. SigPointer GetSigPointer(); Signature GetSignature(); void GetSigFromMetadata(IMDInternalImport * importer, PCCOR_SIGNATURE * ppSig, DWORD * pcSig); IMDInternalImport* GetMDImport() const { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetMDImport(); } HRESULT GetCustomAttribute(WellKnownAttribute attribute, const void **ppData, ULONG *pcbData) const { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetCustomAttribute(GetMemberDef(), attribute, ppData, pcbData); } #ifndef DACCESS_COMPILE IMetaDataEmit* GetEmitter() { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetEmitter(); } IMetaDataImport* GetRWImporter() { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetRWImporter(); } #endif // !DACCESS_COMPILE #ifdef FEATURE_COMINTEROP WORD GetComSlot(); LONG GetComDispid(); #endif // FEATURE_COMINTEROP inline DWORD IsCtor() { WRAPPER_NO_CONTRACT; return IsMdInstanceInitializer(GetAttrs(), GetName()); } inline DWORD IsFinal() { WRAPPER_NO_CONTRACT; return IsMdFinal(GetAttrs()); } inline DWORD IsPrivate() { WRAPPER_NO_CONTRACT; return IsMdPrivate(GetAttrs()); } inline DWORD IsPublic() const { WRAPPER_NO_CONTRACT; return IsMdPublic(GetAttrs()); } inline DWORD IsProtected() const { WRAPPER_NO_CONTRACT; return IsMdFamily(GetAttrs()); } inline DWORD IsVirtual() { WRAPPER_NO_CONTRACT; return IsMdVirtual(GetAttrs()); } inline DWORD IsAbstract() { WRAPPER_NO_CONTRACT; return IsMdAbstract(GetAttrs()); } //================================================================== // Flags.. inline void SetSynchronized() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcSynchronized; } inline DWORD IsSynchronized() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcSynchronized) != 0; } //================================================================== // The MethodDesc in relation to the VTable it is associated with. // WARNING: Not all MethodDescs have slots, nor do they all have // entries in MethodTables. Beware. // Does the method has virtual slot? Note that methods implementing interfaces // on value types do not have virtual slots, but they are marked as virtual in metadata. inline BOOL IsVtableMethod() { LIMITED_METHOD_CONTRACT; MethodTable *pMT = GetMethodTable(); g_IBCLogger.LogMethodTableAccess(pMT); return !IsEnCAddedMethod() // The slot numbers are currently meaningless for // some unboxed-this-generic-method-instantiations && !(pMT->IsValueType() && !IsStatic() && !IsUnboxingStub()) && GetSlot() < pMT->GetNumVirtuals(); } // Is this a default interface method (virtual non-abstract instance method) inline BOOL IsDefaultInterfaceMethod() { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_DEFAULT_INTERFACES return (GetMethodTable()->IsInterface() && !IsStatic() && IsVirtual() && !IsAbstract()); #else return false; #endif // FEATURE_DEFAULT_INTERFACES } inline BOOL HasNonVtableSlot(); void SetHasNonVtableSlot() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcHasNonVtableSlot; } // duplicate methods inline BOOL IsDuplicate() { LIMITED_METHOD_CONTRACT; return (m_wFlags & mdcDuplicate) == mdcDuplicate; } void SetDuplicate() { LIMITED_METHOD_CONTRACT; // method table is not setup yet //_ASSERTE(!GetClass()->IsInterface()); m_wFlags |= mdcDuplicate; } //================================================================== // EnC inline BOOL IsEnCAddedMethod(); //================================================================== // inline EEClass* GetClass() { WRAPPER_NO_CONTRACT; MethodTable *pMT = GetMethodTable_NoLogging(); g_IBCLogger.LogEEClassAndMethodTableAccess(pMT); EEClass *pClass = pMT->GetClass_NoLogging(); PREFIX_ASSUME(pClass != NULL); return pClass; } inline PTR_MethodTable GetMethodTable() const; inline PTR_MethodTable GetMethodTable_NoLogging() const; inline DPTR(PTR_MethodTable) GetMethodTablePtr() const; public: inline MethodDescChunk* GetMethodDescChunk() const; inline int GetMethodDescIndex() const; // If this is an method desc. (whether non-generic shared-instantiated or exact-instantiated) // inside a shared class then get the method table for the representative // class. inline MethodTable* GetCanonicalMethodTable(); Module *GetModule() const; Module *GetModule_NoLogging() const; Assembly *GetAssembly() const { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetAssembly(); } //================================================================== // The slot number of this method in the corresponding method table. // // Use with extreme caution. The slot number will not be // valid for EnC code or for MethodDescs representing instantiation // of generic methods. It may also not mean what you think it will mean // for strange method descs such as BoxedEntryPointStubs. // // In any case we should be moving to use slot numbers a lot less // since they make the EE code inflexible. inline WORD GetSlot() { LIMITED_METHOD_DAC_CONTRACT; // Check if this MD is using the packed slot layout if (!RequiresFullSlotNumber()) { return (m_wSlotNumber & enum_packedSlotLayout_SlotMask); } return m_wSlotNumber; } inline VOID SetSlot(WORD wSlotNum) { LIMITED_METHOD_CONTRACT; // Check if we have to avoid using the packed slot layout if (wSlotNum > enum_packedSlotLayout_SlotMask) { SetRequiresFullSlotNumber(); } // Set only the portion of m_wSlotNumber we are using if (!RequiresFullSlotNumber()) { m_wSlotNumber &= ~enum_packedSlotLayout_SlotMask; m_wSlotNumber |= wSlotNum; } else { m_wSlotNumber = wSlotNum; } } inline BOOL IsVirtualSlot() { return GetSlot() < GetMethodTable()->GetNumVirtuals(); } inline BOOL IsVtableSlot() { return IsVirtualSlot() && !HasNonVtableSlot(); } PTR_PCODE GetAddrOfSlot(); PTR_MethodDesc GetDeclMethodDesc(UINT32 slotNumber); protected: inline void SetRequiresFullSlotNumber() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcRequiresFullSlotNumber; } inline DWORD RequiresFullSlotNumber() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcRequiresFullSlotNumber) != 0; } public: mdMethodDef GetMemberDef() const; mdMethodDef GetMemberDef_NoLogging() const; #ifdef _DEBUG BOOL SanityCheck(); #endif // _DEBUG public: void SetMemberDef(mdMethodDef mb); //================================================================ // Set the offset of this method desc in a chunk table (which allows us // to work back to the method table/module pointer stored at the head of // the table. void SetChunkIndex(MethodDescChunk *pChunk); BOOL IsPointingToPrestub(); public: // True iff it is possible to change the code this method will run using the CodeVersionManager. Note: EnC currently returns // false here because it uses its own seperate scheme to manage versionability. We will likely want to converge them at some // point. bool IsVersionable() { WRAPPER_NO_CONTRACT; return IsEligibleForTieredCompilation() || IsEligibleForReJIT(); } // True iff all calls to the method should funnel through a Precode which can be updated to point to the current method // body. This versioning technique can introduce more indirections than optimal but it has low memory overhead when a // FixupPrecode may be shared with the temporary entry point that is created anyway. bool IsVersionableWithPrecode() { WRAPPER_NO_CONTRACT; return IsVersionable() && !Helper_IsEligibleForVersioningWithVtableSlotBackpatch(); } // True iff all calls to the method should go through a backpatchable vtable slot or through a FuncPtrStub. This versioning // technique eliminates extra indirections from precodes but is more memory intensive to track all the appropriate slots. // See Helper_IsEligibleForVersioningWithEntryPointSlotBackpatch() for more details. bool IsVersionableWithVtableSlotBackpatch() { WRAPPER_NO_CONTRACT; return IsVersionable() && Helper_IsEligibleForVersioningWithVtableSlotBackpatch(); } bool IsEligibleForReJIT() { WRAPPER_NO_CONTRACT; #ifdef FEATURE_REJIT return ReJitManager::IsReJITEnabled() && // Previously we didn't support these methods because of functional requirements for // jumpstamps, keeping this in for back compat. IsIL() && !IsWrapperStub() && // Functional requirement CodeVersionManager::IsMethodSupported(PTR_MethodDesc(this)); #else // FEATURE_REJIT return false; #endif } public: bool IsEligibleForTieredCompilation() { LIMITED_METHOD_DAC_CONTRACT; #ifdef FEATURE_TIERED_COMPILATION return (m_bFlags2 & enum_flag2_IsEligibleForTieredCompilation) != 0; #else return false; #endif } // Is this method allowed to be recompiled and the entrypoint redirected so that we // can optimize its performance? Eligibility is invariant for the lifetime of a method. bool DetermineAndSetIsEligibleForTieredCompilation(); bool IsJitOptimizationDisabled(); private: // This function is not intended to be called in most places, and is named as such to discourage calling it accidentally bool Helper_IsEligibleForVersioningWithVtableSlotBackpatch() { WRAPPER_NO_CONTRACT; _ASSERTE(IsVersionable()); _ASSERTE(IsIL() || IsDynamicMethod()); #if defined(FEATURE_CODE_VERSIONING) _ASSERTE(CodeVersionManager::IsMethodSupported(PTR_MethodDesc(this))); // For a method eligible for code versioning and vtable slot backpatch: // - It does not have a precode (HasPrecode() returns false) // - It does not have a stable entry point (HasStableEntryPoint() returns false) // - A call to the method may be: // - An indirect call through the MethodTable's backpatchable vtable slot // - A direct call to a backpatchable FuncPtrStub, perhaps through a JumpStub // - For interface methods, an indirect call through the virtual stub dispatch (VSD) indirection cell to a // backpatchable DispatchStub or a ResolveStub that refers to a backpatchable ResolveCacheEntry // - The purpose is that typical calls to the method have no additional overhead when code versioning is enabled // // Recording and backpatching slots: // - In order for all vtable slots for the method to be backpatchable: // - A vtable slot initially points to the MethodDesc's temporary entry point, even when the method is inherited by // a derived type (the slot's value is not copied from the parent) // - The temporary entry point always points to the prestub and is never backpatched, in order to be able to // discover new vtable slots through which the method may be called // - The prestub, as part of DoBackpatch(), records any slots that are transitioned from the temporary entry point // to the method's at-the-time current, non-prestub entry point // - Any further changes to the method's entry point cause recorded slots to be backpatched in // BackpatchEntryPointSlots() // - In order for the FuncPtrStub to be backpatchable: // - After the FuncPtrStub is created and exposed, it is patched to point to the method's at-the-time current entry // point if necessary // - Any further changes to the method's entry point cause the FuncPtrStub to be backpatched in // BackpatchEntryPointSlots() // - In order for VSD entities to be backpatchable: // - A DispatchStub's entry point target is aligned and recorded for backpatching in BackpatchEntryPointSlots() // - A ResolveCacheEntry's entry point target is recorded for backpatching in BackpatchEntryPointSlots() // // Slot lifetime and management of recorded slots: // - A slot is recorded in the LoaderAllocator in which the slot is allocated, see // RecordAndBackpatchEntryPointSlot() // - An inherited slot that has a shorter lifetime than the MethodDesc, when recorded, needs to be accessible by the // MethodDesc for backpatching, so the dependent LoaderAllocator with the slot to backpatch is also recorded in the // MethodDesc's LoaderAllocator, see // MethodDescBackpatchInfo::AddDependentLoaderAllocator_Locked() // - At the end of a LoaderAllocator's lifetime, the LoaderAllocator is unregistered from dependency LoaderAllocators, // see MethodDescBackpatchInfoTracker::ClearDependencyMethodDescEntryPointSlots() // - When a MethodDesc's entry point changes, backpatching also includes iterating over recorded dependent // LoaderAllocators to backpatch the relevant slots recorded there, see BackpatchEntryPointSlots() // // Synchronization between entry point changes and backpatching slots // - A global lock is used to ensure that all recorded backpatchable slots corresponding to a MethodDesc point to the // same entry point, see DoBackpatch() and BackpatchEntryPointSlots() for examples // // Typical slot value transitions when tiered compilation is enabled: // - Initially, the slot contains the method's temporary entry point, which always points to the prestub (see above) // - After the tier 0 JIT completes, the slot is transitioned to the tier 0 entry point, and the slot is recorded for // backpatching // - When tiered compilation decides to begin counting calls for the method, the slot is transitioned to the temporary // entry point (call counting currently happens in the prestub) // - When the call count reaches the tier 1 threshold, the slot is transitioned to the tier 0 entry point and a tier 1 // JIT is scheduled // - After the tier 1 JIT completes, the slot is transitioned to the tier 1 entry point return // Policy g_pConfig->BackpatchEntryPointSlots() && // Functional requirement - The entry point must be through a vtable slot in the MethodTable that may be recorded // and backpatched IsVtableSlot() && // Functional requirement - True interface methods are not backpatched, see DoBackpatch() !(IsInterface() && !IsStatic()); #else // Entry point slot backpatch is disabled for CrossGen return false; #endif } public: bool MayHaveEntryPointSlotsToBackpatch() { WRAPPER_NO_CONTRACT; // This is the only case currently. In the future, a method that does not have a vtable slot may still record entry // point slots that need to be backpatched on entry point change, and in such cases the conditions here may be changed. return IsVersionableWithVtableSlotBackpatch(); } private: // Gets the prestub entry point to use for backpatching. Entry point slot backpatch uses this entry point as an oracle to // determine if the entry point actually changed and warrants backpatching. PCODE GetPrestubEntryPointToBackpatch() { WRAPPER_NO_CONTRACT; _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); // At the moment this is the only case, see MayHaveEntryPointSlotsToBackpatch() _ASSERTE(IsVersionableWithVtableSlotBackpatch()); return GetTemporaryEntryPoint(); } // Gets the entry point stored in the primary storage location for backpatching. Entry point slot backpatch uses this entry // point as an oracle to determine if the entry point actually changed and warrants backpatching. PCODE GetEntryPointToBackpatch_Locked() { WRAPPER_NO_CONTRACT; _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); // At the moment this is the only case, see MayHaveEntryPointSlotsToBackpatch() _ASSERTE(IsVersionableWithVtableSlotBackpatch()); return GetMethodEntryPoint(); } // Sets the entry point stored in the primary storage location for backpatching. Entry point slot backpatch uses this entry // point as an oracle to determine if the entry point actually changed and warrants backpatching. void SetEntryPointToBackpatch_Locked(PCODE entryPoint) { WRAPPER_NO_CONTRACT; _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); _ASSERTE(entryPoint != NULL); _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); // At the moment this is the only case, see MayHaveEntryPointSlotsToBackpatch(). If that changes in the future, this // function may have to handle other cases in SetCodeEntryPoint(). _ASSERTE(IsVersionableWithVtableSlotBackpatch()); SetMethodEntryPoint(entryPoint); } public: void RecordAndBackpatchEntryPointSlot(LoaderAllocator *slotLoaderAllocator, TADDR slot, EntryPointSlots::SlotType slotType); private: void RecordAndBackpatchEntryPointSlot_Locked(LoaderAllocator *mdLoaderAllocator, LoaderAllocator *slotLoaderAllocator, TADDR slot, EntryPointSlots::SlotType slotType, PCODE currentEntryPoint); public: bool TryBackpatchEntryPointSlotsFromPrestub(PCODE entryPoint) { WRAPPER_NO_CONTRACT; return TryBackpatchEntryPointSlots(entryPoint, false /* isPrestubEntryPoint */, true /* onlyFromPrestubEntryPoint */); } void BackpatchEntryPointSlots(PCODE entryPoint) { WRAPPER_NO_CONTRACT; BackpatchEntryPointSlots(entryPoint, false /* isPrestubEntryPoint */); } void BackpatchToResetEntryPointSlots() { WRAPPER_NO_CONTRACT; BackpatchEntryPointSlots(GetPrestubEntryPointToBackpatch(), true /* isPrestubEntryPoint */); } private: void BackpatchEntryPointSlots(PCODE entryPoint, bool isPrestubEntryPoint) { WRAPPER_NO_CONTRACT; #ifdef _DEBUG // workaround for release build unused variable error bool success = #endif TryBackpatchEntryPointSlots(entryPoint, isPrestubEntryPoint, false /* onlyFromPrestubEntryPoint */); _ASSERTE(success); } bool TryBackpatchEntryPointSlots(PCODE entryPoint, bool isPrestubEntryPoint, bool onlyFromPrestubEntryPoint); public: void TrySetInitialCodeEntryPointForVersionableMethod(PCODE entryPoint, bool mayHaveEntryPointSlotsToBackpatch); void SetCodeEntryPoint(PCODE entryPoint); void ResetCodeEntryPoint(); void ResetCodeEntryPointForEnC(); public: bool RequestedAggressiveOptimization() { WRAPPER_NO_CONTRACT; return IsIL() && // only makes sense for IL methods, and this implies !IsNoMetadata() IsMiAggressiveOptimization(GetImplAttrs()); } // Does this method force the NativeCodeSlot to stay fixed after it // is first initialized to native code? Consumers of the native code // pointer need to be very careful about if and when they cache it // if it is not stable. // // The stability of the native code pointer is separate from the // stability of the entrypoint. A stable entrypoint can be a precode // which dispatches to an unstable native code pointer. BOOL IsNativeCodeStableAfterInit() { LIMITED_METHOD_DAC_CONTRACT; #if defined(FEATURE_JIT_PITCHING) if (IsPitchable()) return false; #endif return !IsVersionable() && !IsEnCMethod(); } //Is this method currently pointing to native code that will never change? BOOL IsPointingToStableNativeCode() { LIMITED_METHOD_DAC_CONTRACT; if (!IsNativeCodeStableAfterInit()) return FALSE; return IsPointingToNativeCode(); } // Note: We are skipping the prestub based on addition information from the JIT. // (e.g. that the call is on same this ptr or that the this ptr is not null). // Thus we can end up with a running NGENed method for which IsPointingToNativeCode is false! BOOL IsPointingToNativeCode() { LIMITED_METHOD_DAC_CONTRACT; if (!HasStableEntryPoint()) return FALSE; if (!HasPrecode()) return TRUE; return GetPrecode()->IsPointingToNativeCode(GetNativeCode()); } // Be careful about races with profiler when using this method. The profiler can // replace preimplemented code of the method with jitted code. // Avoid code patterns like if(HasNativeCode()) { PCODE pCode = GetNativeCode(); ... }. // Use PCODE pCode = GetNativeCode(); if (pCode != NULL) { ... } instead. BOOL HasNativeCode() { LIMITED_METHOD_DAC_CONTRACT; return GetNativeCode() != NULL; } BOOL SetNativeCodeInterlocked(PCODE addr, PCODE pExpected = NULL); PTR_PCODE GetAddrOfNativeCodeSlot(); BOOL MayHaveNativeCode(); ULONG GetRVA(); public: // Returns address of code to call. The address is good for one immediate invocation only. // Use GetMultiCallableAddrOfCode() to get address that can be invoked multiple times. // // Only call GetSingleCallableAddrOfCode() if you can guarantee that no virtualization is // necessary, or if you can guarantee that it has already happened. For instance, the frame of a // stackwalk has obviously been virtualized as much as it will be. // PCODE GetSingleCallableAddrOfCode() { WRAPPER_NO_CONTRACT; _ASSERTE(!IsGenericMethodDefinition()); return GetMethodEntryPoint(); } // This one is used to implement "ldftn". PCODE GetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags = CORINFO_ACCESS_LDFTN); // Internal version of GetMultiCallableAddrOfCode. Returns NULL if attempt to acquire directly // callable entrypoint would result into unnecesary allocation of indirection stub. Caller should use // indirect call via slot in this case. PCODE TryGetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags); // These return an address after resolving "virtual methods" correctly, including any // handling of context proxies, other thunking layers and also including // instantiation of generic virtual methods if required. // The first one returns an address which cannot be invoked // multiple times. Use GetMultiCallableAddrOfVirtualizedCode() for that. // // The code that implements these was taken verbatim from elsewhere in the // codebase, and there may be subtle differences between the two, e.g. with // regard to thunking. PCODE GetSingleCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeHandle staticTH); PCODE GetMultiCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeHandle staticTH); // The current method entrypoint. It is simply the value of the current method slot. // GetMethodEntryPoint() should be used to get an opaque method entrypoint, for instance // when copying or searching vtables. It should not be used to get address to call. // // GetSingleCallableAddrOfCode() and GetStableEntryPoint() are aliases with stricter preconditions. // Use of these aliases is as appropriate. // PCODE GetMethodEntryPoint(); //******************************************************************************* // Returns the address of the native code. PCODE GetNativeCode(); #if defined(FEATURE_JIT_PITCHING) bool IsPitchable(); void PitchNativeCode(); #endif //================================================================ // FindOrCreateAssociatedMethodDesc // // You might think that every MethodDef in the metadata had // one and only one MethodDesc in the source... Well, how wrong // you are :-) // // Some MethodDefs can be associated with more than one MethodDesc. // This can happen because: // (1) The method is an instance method in a struct, which // can be called with either an unboxed "this" pointer or // a "boxed" this pointer.. There is a different MethodDesc for // these two cases. // (2) The method is a generic method. There is one primary // MethodDesc for each generic method, called the GenericMethodDefinition. // This is the one stored in the vtable. New MethodDescs will // be created for instantiations according to the scheme described // elsewhere in this file. // There are also various other stubs associated with MethodDesc, but these stubs // do not result in new MethodDescs. // // All of the above MethodDescs are called "associates" of the primary MethodDesc. // Note that the primary MethodDesc for an instance method on a struct is // the one that accepts an unboxed "this" pointer. // // FindOrCreateAssociatedMethodDesc is the _primary_ routine // in the codebase for getting an associated MethodDesc from a primary MethodDesc. // You should treat this routine as a black box, i.e. just specify the right // parameters and it will do all the hard work of finding the right // MethodDesc for you. // // This routine can be used for "normal" MethodDescs that have nothing // to do with generics. For example, if you need an BoxedEntryPointStub then // you may call this routine to get it. It may also return // the Primary MethodDesc itself if that MethodDesc is suitable given the // parameters. // // NOTE: The behaviour of this method is not thoroughly defined // if pPrimaryMD is not really a "primary" MD. Primary MDs are: // 1. Primary MDs are:never a generic method instantiation, // but are instead the "uninstantiated" generic MD. // 2. Primary MDs are never instantiating stubs. // 3. Primary MDs are never BoxedEntryPointStubs. // // We assert if cases (1) or (2) occur. However, some places in the // code pass in an BoxedEntryPointStub when pPrimaryMD is a virtual/interface method on // a struct. These cases are confusing and should be rooted // out: it is probably preferable in terms // of correctness to pass in the the corresponding non-unboxing MD. // // allowCreate may be set to FALSE to enforce that the method searched // should already be in existence - thus preventing creation and GCs during // inappropriate times. // static MethodDesc* FindOrCreateAssociatedMethodDesc(MethodDesc* pPrimaryMD, MethodTable *pExactMT, BOOL forceBoxedEntryPoint, Instantiation methodInst, BOOL allowInstParam, BOOL forceRemotableMethod = FALSE, BOOL allowCreate = TRUE, ClassLoadLevel level = CLASS_LOADED); // Normalize methoddesc for reflection static MethodDesc* FindOrCreateAssociatedMethodDescForReflection(MethodDesc *pMethod, TypeHandle instType, Instantiation methodInst); // True if a MD is an funny BoxedEntryPointStub (not from the method table) or // an MD for a generic instantiation...In other words the MethodDescs and the // MethodTable are guaranteed to be "tightly-knit", i.e. if one is present in // an NGEN image then then other will be, and if one is "used" at runtime then // the other will be too. BOOL IsTightlyBoundToMethodTable(); // For method descriptors which are non-generic this is the identity function // (except it returns the primary descriptor, not an BoxedEntryPointStub). // // For a generic method definition C<T>.m<U> this will return // C<__Canon>.m<__Canon> // // allowCreate may be set to FALSE to enforce that the method searched // should already be in existence - thus preventing creation and GCs during // inappropriate times. // MethodDesc * FindOrCreateTypicalSharedInstantiation(BOOL allowCreate = TRUE); // Given an object and an method descriptor for an instantiation of // a virtualized generic method, get the // corresponding instantiation of the target of a call. MethodDesc *ResolveGenericVirtualMethod(OBJECTREF *orThis); private: ReturnKind ParseReturnKindFromSig(INDEBUG(bool supportStringConstructors = false)); public: // This method is used to restore ReturnKind using the class handle, it is fully supported only on x64 Ubuntu, // other platforms do not support multi-reg return case with pointers. // Use this method only when you can't hit this case // (like ComPlusMethodFrame::GcScanRoots) or when you can tolerate RT_Illegal return. // Also, on the other platforms for a single field struct return case // the function can't distinguish RT_Object and RT_ByRef. ReturnKind GetReturnKind(INDEBUG(bool supportStringConstructors = false)); public: // In general you don't want to call GetCallTarget - you want to // use either "call" directly or call MethodDesc::GetSingleCallableAddrOfVirtualizedCode and // then "CallTarget". Note that GetCallTarget is approximately GetSingleCallableAddrOfCode // but the additional wierdness that class-based-virtual calls (but not interface calls nor calls // on proxies) are resolved to their target. Because of this, many clients of "Call" (see above) // end up doing some resolution for interface calls and/or proxies themselves. PCODE GetCallTarget(OBJECTREF* pThisObj, TypeHandle ownerType = TypeHandle()); MethodImpl *GetMethodImpl(); TADDR GetFixupList(); void CheckRestore(ClassLoadLevel level = CLASS_LOADED); //================================================================ // Running the Prestub preparation step. // The stub produced by prestub requires method desc to be passed // in dedicated register. Used to implement stubs shared between // MethodDescs (e.g. PInvoke stubs) BOOL RequiresMethodDescCallingConvention(BOOL fEstimateForChunk = FALSE); // Returns true if the method has to have stable entrypoint always. BOOL RequiresStableEntryPoint(BOOL fEstimateForChunk = FALSE); // // Backpatch method slots // // Arguments: // pMT - cached value of code:MethodDesc::GetMethodTable() // pDispatchingMT - method table of the object that the method is being dispatched on, can be NULL. // fFullBackPatch - indicates whether to patch all possible slots, including the ones // expensive to patch // // Return value: // stable entry point (code:MethodDesc::GetStableEntryPoint()) // PCODE DoBackpatch(MethodTable * pMT, MethodTable * pDispatchingMT, BOOL fFullBackPatch); PCODE DoPrestub(MethodTable *pDispatchingMT, CallerGCMode callerGCMode = CallerGCMode::Unknown); VOID GetMethodInfo(SString &namespaceOrClassName, SString &methodName, SString &methodSignature); VOID GetMethodInfoWithNewSig(SString &namespaceOrClassName, SString &methodName, SString &methodSignature); VOID GetMethodInfoNoSig(SString &namespaceOrClassName, SString &methodName); VOID GetFullMethodInfo(SString& fullMethodSigName); typedef void (*WalkValueTypeParameterFnPtr)(Module *pModule, mdToken token, Module *pDefModule, mdToken tkDefToken, const SigParser *ptr, SigTypeContext *pTypeContext, void *pData); void WalkValueTypeParameters(MethodTable *pMT, WalkValueTypeParameterFnPtr function, void *pData); void PrepareForUseAsADependencyOfANativeImage() { WRAPPER_NO_CONTRACT; if (!HaveValueTypeParametersBeenWalked()) PrepareForUseAsADependencyOfANativeImageWorker(); } void PrepareForUseAsAFunctionPointer(); private: void PrepareForUseAsADependencyOfANativeImageWorker(); //================================================================ // The actual data stored in a MethodDesc follows. protected: enum { // There are flags available for use here (currently 5 flags bits are available); however, new bits are hard to come by, so any new flags bits should // have a fairly strong justification for existence. enum_flag3_TokenRemainderMask = 0x1FFF, // This must equal METHOD_TOKEN_REMAINDER_MASK calculated higher in this file. enum_flag3_ValueTypeParametersWalked = 0x2000, // Indicates that all typeref's in the signature of the method have been resolved // to typedefs (or that process failed). enum_flag3_ValueTypeParametersLoaded = 0x4000, // Indicates if the valuetype parameter types have been loaded. enum_flag3_DoesNotHaveEquivalentValuetypeParameters = 0x8000, // Indicates that we have verified that there are no equivalent valuetype parameters // for this method. }; UINT16 m_wFlags3AndTokenRemainder; BYTE m_chunkIndex; enum { // enum_flag2_HasPrecode implies that enum_flag2_HasStableEntryPoint is set. enum_flag2_HasStableEntryPoint = 0x01, // The method entrypoint is stable (either precode or actual code) enum_flag2_HasPrecode = 0x02, // Precode has been allocated for this method enum_flag2_IsUnboxingStub = 0x04, // unused = 0x08, enum_flag2_IsIntrinsic = 0x10, // Jit may expand method as an intrinsic enum_flag2_IsEligibleForTieredCompilation = 0x20, enum_flag2_RequiresCovariantReturnTypeChecking = 0x40 // unused = 0x80, }; BYTE m_bFlags2; // The slot number of this MethodDesc in the vtable array. // Note that we may store other information in the high bits if available -- // see enum_packedSlotLayout and mdcRequiresFullSlotNumber for details. WORD m_wSlotNumber; enum { enum_packedSlotLayout_SlotMask = 0x03FF, enum_packedSlotLayout_NameHashMask = 0xFC00 }; WORD m_wFlags; public: #ifdef DACCESS_COMPILE void EnumMemoryRegions(CLRDataEnumMemoryFlags flags); #endif public: inline DWORD GetClassification() const { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcClassification); } inline void SetClassification(DWORD classification) { LIMITED_METHOD_CONTRACT; _ASSERTE((m_wFlags & mdcClassification) == 0); m_wFlags |= classification; } inline BOOL HasNativeCodeSlot() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcHasNativeCodeSlot) != 0; } inline void SetHasNativeCodeSlot() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcHasNativeCodeSlot; } inline BOOL IsIntrinsic() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_IsIntrinsic) != 0; } inline void SetIsIntrinsic() { LIMITED_METHOD_CONTRACT; m_bFlags2 |= enum_flag2_IsIntrinsic; } BOOL RequiresCovariantReturnTypeChecking() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_RequiresCovariantReturnTypeChecking) != 0; } void SetRequiresCovariantReturnTypeChecking() { LIMITED_METHOD_CONTRACT; m_bFlags2 |= enum_flag2_RequiresCovariantReturnTypeChecking; } static const BYTE s_ClassificationSizeTable[]; static SIZE_T GetBaseSize(DWORD classification) { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(classification < mdcClassificationCount); return s_ClassificationSizeTable[classification]; } SIZE_T GetBaseSize() { LIMITED_METHOD_DAC_CONTRACT; return GetBaseSize(GetClassification()); } SIZE_T SizeOf(); WORD InterlockedUpdateFlags3(WORD wMask, BOOL fSet); inline BOOL HaveValueTypeParametersBeenWalked() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags3AndTokenRemainder & enum_flag3_ValueTypeParametersWalked) != 0; } inline void SetValueTypeParametersWalked() { LIMITED_METHOD_CONTRACT; InterlockedUpdateFlags3(enum_flag3_ValueTypeParametersWalked, TRUE); } inline BOOL HaveValueTypeParametersBeenLoaded() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags3AndTokenRemainder & enum_flag3_ValueTypeParametersLoaded) != 0; } inline void SetValueTypeParametersLoaded() { LIMITED_METHOD_CONTRACT; InterlockedUpdateFlags3(enum_flag3_ValueTypeParametersLoaded, TRUE); } #ifdef FEATURE_TYPEEQUIVALENCE inline BOOL DoesNotHaveEquivalentValuetypeParameters() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags3AndTokenRemainder & enum_flag3_DoesNotHaveEquivalentValuetypeParameters) != 0; } inline void SetDoesNotHaveEquivalentValuetypeParameters() { LIMITED_METHOD_CONTRACT; InterlockedUpdateFlags3(enum_flag3_DoesNotHaveEquivalentValuetypeParameters, TRUE); } #endif // FEATURE_TYPEEQUIVALENCE // // Optional MethodDesc slots appear after the end of base MethodDesc in this order: // // class MethodImpl; // Present if HasMethodImplSlot() is true typedef PCODE NonVtableSlot; // Present if HasNonVtableSlot() is true typedef PCODE NativeCodeSlot; // Present if HasNativeCodeSlot() is true // Stub Dispatch code public: MethodDesc *GetInterfaceMD(); // StubMethodInfo for use in creating RuntimeMethodHandles REFLECTMETHODREF GetStubMethodInfo(); PrecodeType GetPrecodeType(); // --------------------------------------------------------------------------------- // IL based Code generation pipeline // --------------------------------------------------------------------------------- #ifndef DACCESS_COMPILE public: PCODE PrepareInitialCode(CallerGCMode callerGCMode = CallerGCMode::Unknown); PCODE PrepareCode(PrepareCodeConfig* pConfig); private: PCODE PrepareILBasedCode(PrepareCodeConfig* pConfig); PCODE GetPrecompiledCode(PrepareCodeConfig* pConfig, bool shouldTier); PCODE GetPrecompiledR2RCode(PrepareCodeConfig* pConfig); PCODE GetMulticoreJitCode(PrepareCodeConfig* pConfig, bool* pWasTier0); COR_ILMETHOD_DECODER* GetAndVerifyILHeader(PrepareCodeConfig* pConfig, COR_ILMETHOD_DECODER* pIlDecoderMemory); COR_ILMETHOD_DECODER* GetAndVerifyMetadataILHeader(PrepareCodeConfig* pConfig, COR_ILMETHOD_DECODER* pIlDecoderMemory); COR_ILMETHOD_DECODER* GetAndVerifyNoMetadataILHeader(); PCODE JitCompileCode(PrepareCodeConfig* pConfig); PCODE JitCompileCodeLockedEventWrapper(PrepareCodeConfig* pConfig, JitListLockEntry* pEntry); PCODE JitCompileCodeLocked(PrepareCodeConfig* pConfig, JitListLockEntry* pLockEntry, ULONG* pSizeOfCode, CORJIT_FLAGS* pFlags); #endif // DACCESS_COMPILE #ifdef HAVE_GCCOVER private: static CrstStatic m_GCCoverCrst; public: static void Init(); #endif }; #ifndef DACCESS_COMPILE class PrepareCodeConfig { public: PrepareCodeConfig(); PrepareCodeConfig(NativeCodeVersion nativeCodeVersion, BOOL needsMulticoreJitNotification, BOOL mayUsePrecompiledCode); MethodDesc* GetMethodDesc() const { LIMITED_METHOD_CONTRACT; return m_pMethodDesc; } NativeCodeVersion GetCodeVersion() const { LIMITED_METHOD_CONTRACT; return m_nativeCodeVersion; } BOOL NeedsMulticoreJitNotification(); BOOL MayUsePrecompiledCode(); virtual PCODE IsJitCancellationRequested(); virtual BOOL SetNativeCode(PCODE pCode, PCODE * ppAlternateCodeToUse); virtual COR_ILMETHOD* GetILHeader(); virtual CORJIT_FLAGS GetJitCompilationFlags(); #ifdef FEATURE_ON_STACK_REPLACEMENT virtual unsigned GetILOffset() const { return 0; } #endif BOOL ProfilerRejectedPrecompiledCode(); BOOL ReadyToRunRejectedPrecompiledCode(); void SetProfilerRejectedPrecompiledCode(); void SetReadyToRunRejectedPrecompiledCode(); CallerGCMode GetCallerGCMode(); void SetCallerGCMode(CallerGCMode mode); public: bool IsForMulticoreJit() const { WRAPPER_NO_CONTRACT; #ifdef FEATURE_MULTICOREJIT return m_isForMulticoreJit; #else return false; #endif } #ifdef FEATURE_MULTICOREJIT protected: void SetIsForMulticoreJit() { WRAPPER_NO_CONTRACT; m_isForMulticoreJit = true; } #endif #ifdef FEATURE_CODE_VERSIONING public: bool ProfilerMayHaveActivatedNonDefaultCodeVersion() const { WRAPPER_NO_CONTRACT; return m_profilerMayHaveActivatedNonDefaultCodeVersion; } void SetProfilerMayHaveActivatedNonDefaultCodeVersion() { WRAPPER_NO_CONTRACT; m_profilerMayHaveActivatedNonDefaultCodeVersion = true; } bool GeneratedOrLoadedNewCode() const { WRAPPER_NO_CONTRACT; return m_generatedOrLoadedNewCode; } void SetGeneratedOrLoadedNewCode() { WRAPPER_NO_CONTRACT; _ASSERTE(!m_generatedOrLoadedNewCode); m_generatedOrLoadedNewCode = true; } #endif #ifdef FEATURE_TIERED_COMPILATION public: bool WasTieringDisabledBeforeJitting() const { WRAPPER_NO_CONTRACT; return m_wasTieringDisabledBeforeJitting; } void SetWasTieringDisabledBeforeJitting() { WRAPPER_NO_CONTRACT; _ASSERTE(GetMethodDesc()->IsEligibleForTieredCompilation()); m_wasTieringDisabledBeforeJitting = true; } bool ShouldCountCalls() const { WRAPPER_NO_CONTRACT; return m_shouldCountCalls; } void SetShouldCountCalls() { WRAPPER_NO_CONTRACT; _ASSERTE(!m_shouldCountCalls); m_shouldCountCalls = true; } #endif public: enum class JitOptimizationTier : UINT8 { Unknown, // to identify older runtimes that would send this value MinOptJitted, Optimized, QuickJitted, OptimizedTier1, OptimizedTier1OSR, Count }; static JitOptimizationTier GetJitOptimizationTier(PrepareCodeConfig *config, MethodDesc *methodDesc); static const char *GetJitOptimizationTierStr(PrepareCodeConfig *config, MethodDesc *methodDesc); bool JitSwitchedToMinOpt() const { LIMITED_METHOD_CONTRACT; return m_jitSwitchedToMinOpt; } void SetJitSwitchedToMinOpt() { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_TIERED_COMPILATION m_jitSwitchedToOptimized = false; #endif m_jitSwitchedToMinOpt = true; } #ifdef FEATURE_TIERED_COMPILATION public: bool JitSwitchedToOptimized() const { LIMITED_METHOD_CONTRACT; return m_jitSwitchedToOptimized; } void SetJitSwitchedToOptimized() { LIMITED_METHOD_CONTRACT; if (!m_jitSwitchedToMinOpt) { m_jitSwitchedToOptimized = true; } } bool FinalizeOptimizationTierForTier0Load(); bool FinalizeOptimizationTierForTier0LoadOrJit(); #endif public: PrepareCodeConfig *GetNextInSameThread() const { LIMITED_METHOD_CONTRACT; return m_nextInSameThread; } void SetNextInSameThread(PrepareCodeConfig *config) { LIMITED_METHOD_CONTRACT; _ASSERTE(config == nullptr || m_nextInSameThread == nullptr); m_nextInSameThread = config; } protected: MethodDesc* m_pMethodDesc; NativeCodeVersion m_nativeCodeVersion; BOOL m_needsMulticoreJitNotification; BOOL m_mayUsePrecompiledCode; BOOL m_ProfilerRejectedPrecompiledCode; BOOL m_ReadyToRunRejectedPrecompiledCode; CallerGCMode m_callerGCMode; #ifdef FEATURE_MULTICOREJIT private: bool m_isForMulticoreJit; #endif #ifdef FEATURE_CODE_VERSIONING private: bool m_profilerMayHaveActivatedNonDefaultCodeVersion; bool m_generatedOrLoadedNewCode; #endif #ifdef FEATURE_TIERED_COMPILATION private: bool m_wasTieringDisabledBeforeJitting; bool m_shouldCountCalls; #endif private: bool m_jitSwitchedToMinOpt; // when it wasn't requested #ifdef FEATURE_TIERED_COMPILATION bool m_jitSwitchedToOptimized; // when a different tier was requested #endif PrepareCodeConfig *m_nextInSameThread; }; #ifdef FEATURE_CODE_VERSIONING class VersionedPrepareCodeConfig : public PrepareCodeConfig { public: VersionedPrepareCodeConfig(); VersionedPrepareCodeConfig(NativeCodeVersion codeVersion); HRESULT FinishConfiguration(); virtual PCODE IsJitCancellationRequested(); virtual COR_ILMETHOD* GetILHeader(); virtual CORJIT_FLAGS GetJitCompilationFlags(); private: ILCodeVersion m_ilCodeVersion; }; class PrepareCodeConfigBuffer { private: UINT8 m_buffer[sizeof(VersionedPrepareCodeConfig)]; public: PrepareCodeConfigBuffer(NativeCodeVersion codeVersion); public: PrepareCodeConfig *GetConfig() const { WRAPPER_NO_CONTRACT; return (PrepareCodeConfig *)m_buffer; } PrepareCodeConfigBuffer(const PrepareCodeConfigBuffer &) = delete; PrepareCodeConfigBuffer &operator =(const PrepareCodeConfigBuffer &) = delete; }; #endif // FEATURE_CODE_VERSIONING class MulticoreJitPrepareCodeConfig : public PrepareCodeConfig { private: bool m_wasTier0; public: MulticoreJitPrepareCodeConfig(MethodDesc* pMethod); bool WasTier0() const { LIMITED_METHOD_CONTRACT; return m_wasTier0; } void SetWasTier0() { LIMITED_METHOD_CONTRACT; m_wasTier0 = true; } virtual BOOL SetNativeCode(PCODE pCode, PCODE * ppAlternateCodeToUse) override; }; #endif // DACCESS_COMPILE /******************************************************************/ // A code:MethodDescChunk is a container that holds one or more code:MethodDesc. Logically it is just // compression. Basically fields that are common among methods descs in the chunk are stored in the chunk // and the MethodDescs themselves just store and index that allows them to find their Chunk. Semantically // a code:MethodDescChunk is just a set of code:MethodDesc. class MethodDescChunk { friend class MethodDesc; friend class CheckAsmOffsets; enum { enum_flag_TokenRangeMask = 0x07FF, // This must equal METHOD_TOKEN_RANGE_MASK calculated higher in this file // These are seperate to allow the flags space available and used to be obvious here // and for the logic that splits the token to be algorithmically generated based on the // #define enum_flag_HasCompactEntrypoints = 0x4000, // Compact temporary entry points // unused = 0x8000, }; public: // // Allocates methodDescCount identical MethodDescs in smallest possible number of chunks. // If methodDescCount is zero, one chunk with maximum number of MethodDescs is allocated. // static MethodDescChunk *CreateChunk(LoaderHeap *pHeap, DWORD methodDescCount, DWORD classification, BOOL fNonVtableSlot, BOOL fNativeCodeSlot, BOOL fComPlusCallInfo, MethodTable *initialMT, class AllocMemTracker *pamTracker); TADDR GetTemporaryEntryPoints() { LIMITED_METHOD_CONTRACT; return *(dac_cast<DPTR(TADDR)>(this) - 1); } PCODE GetTemporaryEntryPoint(int index); void EnsureTemporaryEntryPointsCreated(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (GetTemporaryEntryPoints() == NULL) CreateTemporaryEntryPoints(pLoaderAllocator, pamTracker); } void CreateTemporaryEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker); #ifdef HAS_COMPACT_ENTRYPOINTS // // There two implementation options for temporary entrypoints: // // (1) Compact entrypoints. They provide as dense entrypoints as possible, but can't be patched // to point to the final code. The call to unjitted method is indirect call via slot. // // (2) Precodes. The precode will be patched to point to the final code eventually, thus // the temporary entrypoint can be embedded in the code. The call to unjitted method is // direct call to direct jump. // // We use (1) for x86 and (2) for 64-bit to get the best performance on each platform. // For ARM (1) is used. TADDR AllocateCompactEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker); static MethodDesc* GetMethodDescFromCompactEntryPoint(PCODE addr, BOOL fSpeculative = FALSE); static SIZE_T SizeOfCompactEntryPoints(int count); static BOOL IsCompactEntryPointAtAddress(PCODE addr); #ifdef TARGET_ARM static int GetCompactEntryPointMaxCount (); #endif // TARGET_ARM #endif // HAS_COMPACT_ENTRYPOINTS FORCEINLINE PTR_MethodTable GetMethodTable() { LIMITED_METHOD_DAC_CONTRACT; return m_methodTable; } inline DPTR(PTR_MethodTable) GetMethodTablePtr() const { LIMITED_METHOD_DAC_CONTRACT; return dac_cast<DPTR(PTR_MethodTable)>(PTR_HOST_MEMBER_TADDR(MethodDescChunk, this, m_methodTable)); } #ifndef DACCESS_COMPILE inline void SetMethodTable(MethodTable * pMT) { LIMITED_METHOD_CONTRACT; _ASSERTE(m_methodTable == NULL); _ASSERTE(pMT != NULL); m_methodTable = pMT; } inline void SetSizeAndCount(ULONG sizeOfMethodDescs, COUNT_T methodDescCount) { LIMITED_METHOD_CONTRACT; _ASSERTE(FitsIn<BYTE>((sizeOfMethodDescs / MethodDesc::ALIGNMENT) - 1)); m_size = static_cast<BYTE>((sizeOfMethodDescs / MethodDesc::ALIGNMENT) - 1); _ASSERTE(SizeOf() == sizeof(MethodDescChunk) + sizeOfMethodDescs); _ASSERTE(FitsIn<BYTE>(methodDescCount - 1)); m_count = static_cast<BYTE>(methodDescCount - 1); _ASSERTE(GetCount() == methodDescCount); } void SetNextChunk(MethodDescChunk *chunk) { LIMITED_METHOD_CONTRACT; m_next = chunk; } #endif // !DACCESS_COMPILE PTR_MethodDescChunk GetNextChunk() { LIMITED_METHOD_CONTRACT; return m_next; } UINT32 GetCount() { LIMITED_METHOD_DAC_CONTRACT; return m_count + 1; } inline BOOL HasCompactEntryPoints() { LIMITED_METHOD_DAC_CONTRACT; #ifdef HAS_COMPACT_ENTRYPOINTS return (m_flagsAndTokenRange & enum_flag_HasCompactEntrypoints) != 0; #else return FALSE; #endif } inline UINT16 GetTokRange() { LIMITED_METHOD_DAC_CONTRACT; return m_flagsAndTokenRange & enum_flag_TokenRangeMask; } inline SIZE_T SizeOf() { LIMITED_METHOD_DAC_CONTRACT; return sizeof(MethodDescChunk) + (m_size + 1) * MethodDesc::ALIGNMENT; } inline MethodDesc *GetFirstMethodDesc() { LIMITED_METHOD_DAC_CONTRACT; return PTR_MethodDesc(dac_cast<TADDR>(this) + sizeof(MethodDescChunk)); } // Maximum size of one chunk (corresponts to the maximum of m_size = 0xFF) static const SIZE_T MaxSizeOfMethodDescs = 0x100 * MethodDesc::ALIGNMENT; #ifdef DACCESS_COMPILE void EnumMemoryRegions(CLRDataEnumMemoryFlags flags); #endif private: void SetHasCompactEntryPoints() { LIMITED_METHOD_CONTRACT; m_flagsAndTokenRange |= enum_flag_HasCompactEntrypoints; } void SetTokenRange(UINT16 tokenRange) { LIMITED_METHOD_CONTRACT; _ASSERTE((tokenRange & ~enum_flag_TokenRangeMask) == 0); static_assert_no_msg(enum_flag_TokenRangeMask == METHOD_TOKEN_RANGE_MASK); m_flagsAndTokenRange = (m_flagsAndTokenRange & ~enum_flag_TokenRangeMask) | tokenRange; } PTR_MethodTable m_methodTable; PTR_MethodDescChunk m_next; BYTE m_size; // The size of this chunk minus 1 (in multiples of MethodDesc::ALIGNMENT) BYTE m_count; // The number of MethodDescs in this chunk minus 1 UINT16 m_flagsAndTokenRange; // Followed by array of method descs... }; inline int MethodDesc::GetMethodDescIndex() const { LIMITED_METHOD_DAC_CONTRACT; return m_chunkIndex; } inline MethodDescChunk *MethodDesc::GetMethodDescChunk() const { LIMITED_METHOD_DAC_CONTRACT; return PTR_MethodDescChunk(dac_cast<TADDR>(this) - (sizeof(MethodDescChunk) + (GetMethodDescIndex() * MethodDesc::ALIGNMENT))); } MethodDesc* NonVirtualEntry2MethodDesc(PCODE entryPoint); // convert an entry point into a MethodDesc MethodDesc* Entry2MethodDesc(PCODE entryPoint, MethodTable *pMT); typedef DPTR(class StoredSigMethodDesc) PTR_StoredSigMethodDesc; class StoredSigMethodDesc : public MethodDesc { public: // Put the sig RVA in here - this allows us to avoid // touching the method desc table when CoreLib is prejitted. TADDR m_pSig; DWORD m_cSig; protected: // m_dwExtendedFlags is not used by StoredSigMethodDesc itself. // It is used by child classes. We allocate the space here to get // optimal layout. DWORD m_dwExtendedFlags; public: TADDR GetSigRVA() { LIMITED_METHOD_DAC_CONTRACT; return m_pSig; } bool HasStoredMethodSig(void) { LIMITED_METHOD_DAC_CONTRACT; return m_pSig != NULL; } PCCOR_SIGNATURE GetStoredMethodSig(DWORD* sigLen = NULL) { LIMITED_METHOD_DAC_CONTRACT; if (sigLen) { *sigLen = m_cSig; } #ifdef DACCESS_COMPILE return (PCCOR_SIGNATURE) DacInstantiateTypeByAddress(GetSigRVA(), m_cSig, true); #else // !DACCESS_COMPILE g_IBCLogger.LogNDirectCodeAccess(this); return (PCCOR_SIGNATURE) m_pSig; #endif // !DACCESS_COMPILE } void SetStoredMethodSig(PCCOR_SIGNATURE sig, DWORD sigBytes) { #ifndef DACCESS_COMPILE m_pSig = (TADDR)sig; m_cSig = sigBytes; #endif // !DACCESS_COMPILE } #ifdef DACCESS_COMPILE void EnumMemoryRegions(CLRDataEnumMemoryFlags flags); #endif }; //----------------------------------------------------------------------- // Operations specific to FCall methods. We use a derived class to get // the compiler involved in enforcing proper method type usage. // DO NOT ADD FIELDS TO THIS CLASS. //----------------------------------------------------------------------- class FCallMethodDesc : public MethodDesc { DWORD m_dwECallID; #ifdef TARGET_64BIT DWORD m_padding; #endif public: void SetECallID(DWORD dwID) { LIMITED_METHOD_CONTRACT; m_dwECallID = dwID; } DWORD GetECallID() { LIMITED_METHOD_CONTRACT; return m_dwECallID; } }; class HostCodeHeap; class LCGMethodResolver; typedef DPTR(LCGMethodResolver) PTR_LCGMethodResolver; class ILStubResolver; typedef DPTR(ILStubResolver) PTR_ILStubResolver; class DynamicResolver; typedef DPTR(DynamicResolver) PTR_DynamicResolver; class DynamicMethodDesc : public StoredSigMethodDesc { friend class ILStubCache; friend class ILStubState; friend class DynamicMethodTable; friend class MethodDesc; protected: PTR_CUTF8 m_pszMethodName; PTR_DynamicResolver m_pResolver; public: enum ILStubType : DWORD { StubNotSet = 0, StubCLRToNativeInterop, StubCLRToCOMInterop, StubNativeToCLRInterop, StubCOMToCLRInterop, StubStructMarshalInterop, #ifdef FEATURE_ARRAYSTUB_AS_IL StubArrayOp, #endif #ifdef FEATURE_MULTICASTSTUB_AS_IL StubMulticastDelegate, #endif StubWrapperDelegate, #ifdef FEATURE_INSTANTIATINGSTUB_AS_IL StubUnboxingIL, StubInstantiating, #endif StubTailCallStoreArgs, StubTailCallCallTarget, StubLast }; enum Flag : DWORD { // Flags for DynamicMethodDesc // Define new flags in descending order. This allows the IL type enumeration to increase naturally. FlagNone = 0x00000000, FlagPublic = 0x00000800, FlagStatic = 0x00001000, FlagRequiresCOM = 0x00002000, FlagIsLCGMethod = 0x00004000, FlagIsILStub = 0x00008000, FlagIsDelegate = 0x00010000, FlagIsCALLI = 0x00020000, FlagMask = 0x0003f800, StackArgSizeMask = 0xfffc0000, // native stack arg size for IL stubs ILStubTypeMask = ~(FlagMask | StackArgSizeMask) }; static_assert_no_msg((FlagMask & StubLast) == 0); static_assert_no_msg((StackArgSizeMask & FlagMask) == 0); // MethodDesc memory is acquired in an uninitialized state. // The first step should be to explicitly set the entire // flag state and then modify it. void InitializeFlags(DWORD flags) { m_dwExtendedFlags = flags; } bool HasFlags(DWORD flags) const { return !!(m_dwExtendedFlags & flags); } void SetFlags(DWORD flags) { m_dwExtendedFlags |= flags; } void ClearFlags(DWORD flags) { m_dwExtendedFlags = (m_dwExtendedFlags & ~flags); } ILStubType GetILStubType() const { ILStubType type = (ILStubType)(m_dwExtendedFlags & ILStubTypeMask); _ASSERTE(type == StubNotSet || HasFlags(FlagIsILStub)); return type; } void SetILStubType(ILStubType type) { _ASSERTE(HasFlags(FlagIsILStub)); m_dwExtendedFlags |= type; } public: bool IsILStub() const { LIMITED_METHOD_DAC_CONTRACT; return HasFlags(FlagIsILStub); } bool IsLCGMethod() const { LIMITED_METHOD_DAC_CONTRACT; return HasFlags(FlagIsLCGMethod); } inline PTR_DynamicResolver GetResolver(); inline PTR_LCGMethodResolver GetLCGMethodResolver(); inline PTR_ILStubResolver GetILStubResolver(); PTR_CUTF8 GetMethodName() { LIMITED_METHOD_DAC_CONTRACT; return m_pszMethodName; } // Based on the current flags, compute the equivalent as COR metadata. WORD GetAttrs() const { LIMITED_METHOD_CONTRACT; WORD asMetadata = 0; asMetadata |= HasFlags(FlagPublic) ? mdPublic : 0; asMetadata |= HasFlags(FlagStatic) ? mdStatic : 0; return asMetadata; } WORD GetNativeStackArgSize() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); return (WORD)((m_dwExtendedFlags & StackArgSizeMask) >> 16); } void SetNativeStackArgSize(WORD cbArgSize) { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); #if !defined(OSX_ARM64_ABI) _ASSERTE((cbArgSize % TARGET_POINTER_SIZE) == 0); #endif m_dwExtendedFlags = (m_dwExtendedFlags & ~StackArgSizeMask) | ((DWORD)cbArgSize << 16); } bool IsReverseStub() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); ILStubType type = GetILStubType(); return type == StubCOMToCLRInterop || type == StubNativeToCLRInterop; } bool IsStepThroughStub() const { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); bool isStepThrough = false; #ifdef FEATURE_INSTANTIATINGSTUB_AS_IL ILStubType type = GetILStubType(); isStepThrough = type == StubUnboxingIL || type == StubInstantiating; #endif // FEATURE_INSTANTIATINGSTUB_AS_IL return isStepThrough; } bool IsCLRToCOMStub() const { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); return !HasFlags(FlagStatic) && GetILStubType() == StubCLRToCOMInterop; } bool IsCOMToCLRStub() const { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); return !HasFlags(FlagStatic) && GetILStubType() == StubCOMToCLRInterop; } bool IsPInvokeStub() const { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); return HasFlags(FlagStatic) && !HasFlags(FlagIsCALLI) && GetILStubType() == StubCLRToNativeInterop; } #ifdef FEATURE_MULTICASTSTUB_AS_IL bool IsMulticastStub() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); return GetILStubType() == DynamicMethodDesc::StubMulticastDelegate; } #endif bool IsWrapperDelegateStub() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); return GetILStubType() == DynamicMethodDesc::StubWrapperDelegate; } #ifdef FEATURE_INSTANTIATINGSTUB_AS_IL bool IsUnboxingILStub() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); return GetILStubType() == DynamicMethodDesc::StubUnboxingIL; } #endif // Whether the stub takes a context argument that is an interop MethodDesc. bool HasMDContextArg() const { LIMITED_METHOD_CONTRACT; return IsCLRToCOMStub() || (IsPInvokeStub() && !HasFlags(FlagIsDelegate)); } // // following implementations defined in DynamicMethod.cpp // void Destroy(); }; class ArrayMethodDesc : public StoredSigMethodDesc { public: // The VTABLE for an array look like // System.Object Vtable // System.Array Vtable // type[] Vtable // Get(<rank specific) // Set(<rank specific) // Address(<rank specific) // .ctor(int) // Possibly more enum { ARRAY_FUNC_GET = 0, ARRAY_FUNC_SET = 1, ARRAY_FUNC_ADDRESS = 2, ARRAY_FUNC_CTOR = 3, // Anything >= ARRAY_FUNC_CTOR is .ctor }; // Get the index of runtime provided array method DWORD GetArrayFuncIndex() { LIMITED_METHOD_DAC_CONTRACT; DWORD dwSlot = GetSlot(); DWORD dwVirtuals = GetMethodTable()->GetNumVirtuals(); _ASSERTE(dwSlot >= dwVirtuals); return dwSlot - dwVirtuals; } LPCUTF8 GetMethodName(); DWORD GetAttrs(); }; #ifdef HAS_NDIRECT_IMPORT_PRECODE typedef NDirectImportPrecode NDirectImportThunkGlue; #else // HAS_NDIRECT_IMPORT_PRECODE class NDirectImportThunkGlue { PVOID m_dummy; // Dummy field to make the alignment right public: LPVOID GetEntrypoint() { LIMITED_METHOD_CONTRACT; return NULL; } void Init(MethodDesc *pMethod) { LIMITED_METHOD_CONTRACT; } }; #endif // HAS_NDIRECT_IMPORT_PRECODE typedef DPTR(NDirectImportThunkGlue) PTR_NDirectImportThunkGlue; // // This struct consolidates the writeable parts of the NDirectMethodDesc // so that we can eventually layout a read-only NDirectMethodDesc with a pointer // to the writeable parts in an ngen image // class NDirectWriteableData { public: // The JIT generates an indirect call through this location in some cases. // Initialized to NDirectImportThunkGlue. Patched to the true target or // host interceptor stub or alignment thunk after linking. LPVOID m_pNDirectTarget; }; typedef DPTR(NDirectWriteableData) PTR_NDirectWriteableData; //----------------------------------------------------------------------- // Operations specific to NDirect methods. We use a derived class to get // the compiler involved in enforcing proper method type usage. // DO NOT ADD FIELDS TO THIS CLASS. //----------------------------------------------------------------------- class NDirectMethodDesc : public MethodDesc { public: struct temp1 { // If we are hosted, stack imbalance MDA is active, or alignment thunks are needed, // we will intercept m_pNDirectTarget. The true target is saved here. LPVOID m_pNativeNDirectTarget; // Information about the entrypoint PTR_CUTF8 m_pszEntrypointName; union { PTR_CUTF8 m_pszLibName; DWORD m_dwECallID; // ECallID for QCalls }; // The writeable part of the methoddesc. PTR_NDirectWriteableData m_pWriteableData; #ifdef HAS_NDIRECT_IMPORT_PRECODE PTR_NDirectImportThunkGlue m_pImportThunkGlue; #else // HAS_NDIRECT_IMPORT_PRECODE NDirectImportThunkGlue m_ImportThunkGlue; #endif // HAS_NDIRECT_IMPORT_PRECODE ULONG m_DefaultDllImportSearchPathsAttributeValue; // DefaultDllImportSearchPathsAttribute is saved. // Various attributes needed at runtime. WORD m_wFlags; #if defined(TARGET_X86) // Size of outgoing arguments (on stack). Note that in order to get the @n stdcall name decoration, WORD m_cbStackArgumentSize; #endif // defined(TARGET_X86) } ndirect; enum Flags { // There are two groups of flag bits here each which gets initialized // at different times. // // Group 1: The init group. // // This group is set during MethodDesc construction. No race issues // here since they are initialized before the MD is ever published // and never change after that. kEarlyBound = 0x0001, // IJW managed->unmanaged thunk. Standard [sysimport] stuff otherwise. kHasSuppressUnmanagedCodeAccess = 0x0002, kDefaultDllImportSearchPathsIsCached = 0x0004, // set if we cache attribute value. // kUnusedMask = 0x0008 // // Group 2: The runtime group. // // This group is set during runtime potentially by multiple threads // at the same time. All flags in this category has to be set via interlocked operation. // kIsMarshalingRequiredCached = 0x0010, // Set if we have cached the results of marshaling required computation kCachedMarshalingRequired = 0x0020, // The result of the marshaling required computation kNativeAnsi = 0x0040, kLastError = 0x0080, // setLastError keyword specified kNativeNoMangle = 0x0100, // nomangle keyword specified kVarArgs = 0x0200, kStdCall = 0x0400, kThisCall = 0x0800, kIsQCall = 0x1000, kDefaultDllImportSearchPathsStatus = 0x2000, // either method has custom attribute or not. kNDirectPopulated = 0x8000, // Indicate if the NDirect has been fully populated. }; // Resolve the import to the NDirect target and set it on the NDirectMethodDesc. static void* ResolveAndSetNDirectTarget(_In_ NDirectMethodDesc* pMD); // Attempt to import the NDirect target if a GC transition is suppressed. static BOOL TryResolveNDirectTargetForNoGCTransition(_In_ MethodDesc* pMD, _Out_ void** ndirectTarget); // Retrieves the cached result of marshaling required computation, or performs the computation // if the result is not cached yet. BOOL MarshalingRequired() { STANDARD_VM_CONTRACT; if ((ndirect.m_wFlags & kIsMarshalingRequiredCached) == 0) { // Compute the flag and cache the result InterlockedSetNDirectFlags(kIsMarshalingRequiredCached | (ComputeMarshalingRequired() ? kCachedMarshalingRequired : 0)); } _ASSERTE((ndirect.m_wFlags & kIsMarshalingRequiredCached) != 0); return (ndirect.m_wFlags & kCachedMarshalingRequired) != 0; } BOOL ComputeMarshalingRequired(); // Atomically set specified flags. Only setting of the bits is supported. void InterlockedSetNDirectFlags(WORD wFlags); void SetIsEarlyBound() { LIMITED_METHOD_CONTRACT; ndirect.m_wFlags |= kEarlyBound; } BOOL IsEarlyBound() { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kEarlyBound) != 0; } BOOL IsNativeAnsi() const { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kNativeAnsi) != 0; } BOOL IsNativeNoMangled() const { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kNativeNoMangle) != 0; } PTR_CUTF8 GetLibNameRaw() { LIMITED_METHOD_DAC_CONTRACT; return ndirect.m_pszLibName; } #ifndef DACCESS_COMPILE LPCUTF8 GetLibName() const { LIMITED_METHOD_CONTRACT; return IsQCall() ? "QCall" : ndirect.m_pszLibName; } #endif // !DACCESS_COMPILE PTR_CUTF8 GetEntrypointName() const { LIMITED_METHOD_DAC_CONTRACT; return ndirect.m_pszEntrypointName; } BOOL IsVarArgs() const { LIMITED_METHOD_DAC_CONTRACT; return (ndirect.m_wFlags & kVarArgs) != 0; } BOOL IsStdCall() const { LIMITED_METHOD_DAC_CONTRACT; return (ndirect.m_wFlags & kStdCall) != 0; } BOOL IsThisCall() const { LIMITED_METHOD_DAC_CONTRACT; return (ndirect.m_wFlags & kThisCall) != 0; } // Returns TRUE if this MethodDesc is internal call from CoreLib to VM BOOL IsQCall() const { LIMITED_METHOD_DAC_CONTRACT; return (ndirect.m_wFlags & kIsQCall) != 0; } BOOL HasDefaultDllImportSearchPathsAttribute(); BOOL IsDefaultDllImportSearchPathsAttributeCached() { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kDefaultDllImportSearchPathsIsCached) != 0; } BOOL IsPopulated() { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kNDirectPopulated) != 0; } ULONG DefaultDllImportSearchPathsAttributeCachedValue() { LIMITED_METHOD_CONTRACT; return ndirect.m_DefaultDllImportSearchPathsAttributeValue & 0xFFFFFFFD; } BOOL DllImportSearchAssemblyDirectory() { LIMITED_METHOD_CONTRACT; return (ndirect.m_DefaultDllImportSearchPathsAttributeValue & 0x2) != 0; } PTR_NDirectWriteableData GetWriteableData() const { LIMITED_METHOD_DAC_CONTRACT; return ndirect.m_pWriteableData; } PTR_NDirectImportThunkGlue GetNDirectImportThunkGlue() { LIMITED_METHOD_DAC_CONTRACT; return ndirect.m_pImportThunkGlue; } LPVOID GetNDirectTarget() { LIMITED_METHOD_CONTRACT; _ASSERTE(IsNDirect()); return GetWriteableData()->m_pNDirectTarget; } LPVOID GetNativeNDirectTarget() { LIMITED_METHOD_CONTRACT; _ASSERTE(IsNDirect()); _ASSERTE_IMPL(!NDirectTargetIsImportThunk()); LPVOID pNativeNDirectTarget = ndirect.m_pNativeNDirectTarget; if (pNativeNDirectTarget != NULL) return pNativeNDirectTarget; return GetNDirectTarget(); } VOID SetNDirectTarget(LPVOID pTarget); #ifndef DACCESS_COMPILE BOOL NDirectTargetIsImportThunk() { WRAPPER_NO_CONTRACT; _ASSERTE(IsNDirect()); return (GetNDirectTarget() == GetNDirectImportThunkGlue()->GetEntrypoint()); } #endif // !DACCESS_COMPILE // Find the entry point name and function address // based on the module and data from NDirectMethodDesc // LPVOID FindEntryPoint(NATIVE_LIBRARY_HANDLE hMod); #ifdef TARGET_WINDOWS private: FARPROC FindEntryPointWithMangling(NATIVE_LIBRARY_HANDLE mod, PTR_CUTF8 entryPointName); FARPROC FindEntryPointWithSuffix(NATIVE_LIBRARY_HANDLE mod, PTR_CUTF8 entryPointName, char suffix); #endif public: void SetStackArgumentSize(WORD cbDstBuffer, CorInfoCallConvExtension unmgdCallConv) { LIMITED_METHOD_CONTRACT; #if defined(TARGET_X86) // thiscall passes the this pointer in ECX if (unmgdCallConv == CorInfoCallConvExtension::Thiscall) { _ASSERTE(cbDstBuffer >= sizeof(SLOT)); cbDstBuffer -= sizeof(SLOT); } // Don't write to the field if it's already initialized to avoid creating private pages (NGEN) if (ndirect.m_cbStackArgumentSize == 0xFFFF) { ndirect.m_cbStackArgumentSize = cbDstBuffer; } else { _ASSERTE(ndirect.m_cbStackArgumentSize == cbDstBuffer); } #endif // defined(TARGET_X86) } #if defined(TARGET_X86) void EnsureStackArgumentSize(); WORD GetStackArgumentSize() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(ndirect.m_cbStackArgumentSize != 0xFFFF); // If we have a methoddesc, stackArgSize is the number of bytes of // the outgoing marshalling buffer. return ndirect.m_cbStackArgumentSize; } #endif // defined(TARGET_X86) VOID InitEarlyBoundNDirectTarget(); // In AppDomains, we can trigger declarer's cctor when we link the P/Invoke, // which takes care of inlined calls as well. See code:NDirect.NDirectLink. // Although the cctor is guaranteed to run in the shared domain before the // target is invoked, we will trigger it at link time as well because linking // may depend on it - cctor may change the target DLL, DLL search path etc. BOOL IsClassConstructorTriggeredAtLinkTime() { LIMITED_METHOD_CONTRACT; MethodTable * pMT = GetMethodTable(); // Try to avoid touching the EEClass if possible if (pMT->IsClassPreInited()) return FALSE; return !pMT->GetClass()->IsBeforeFieldInit(); } }; //class NDirectMethodDesc //----------------------------------------------------------------------- // Operations specific to EEImplCall methods. We use a derived class to get // the compiler involved in enforcing proper method type usage. // // For now, the only EE impl is the delegate Invoke method. If we // add other EE impl types in the future, may need a discriminator // field here. //----------------------------------------------------------------------- class EEImplMethodDesc : public StoredSigMethodDesc { }; #ifdef FEATURE_COMINTEROP // This is the extra information needed to be associated with a method in order to use it for // CLR->COM calls. It is currently used by code:ComPlusCallMethodDesc (ordinary CLR->COM calls), // code:InstantiatedMethodDesc (optional field, CLR->COM calls on shared generic interfaces), // and code:DelegateEEClass (delegate->COM calls for WinRT). typedef DPTR(struct ComPlusCallInfo) PTR_ComPlusCallInfo; struct ComPlusCallInfo { // Returns ComPlusCallInfo associated with a method. pMD must be a ComPlusCallMethodDesc or // EEImplMethodDesc that has already been initialized for COM interop. inline static ComPlusCallInfo *FromMethodDesc(MethodDesc *pMD); enum Flags { kHasSuppressUnmanagedCodeAccess = 0x1, kRequiresArgumentWrapping = 0x2, }; union { // IL stub for CLR to COM call PCODE m_pILStub; // MethodDesc of the COM event provider to forward the call to (COM event interfaces) MethodDesc *m_pEventProviderMD; }; // method table of the interface which this represents PTR_MethodTable m_pInterfaceMT; // We need only 3 bits here, see enum Flags below. BYTE m_flags; // ComSlot() (is cached when we first invoke the method and generate // the stubs for it. There's probably a better place to do this // caching but I'm not sure I know all the places these things are // created.) WORD m_cachedComSlot; PCODE * GetAddrOfILStubField() { LIMITED_METHOD_CONTRACT; return &m_pILStub; } #ifdef TARGET_X86 // Size of outgoing arguments (on stack). This is currently used only // on x86 when we have an InlinedCallFrame representing a CLR->COM call. WORD m_cbStackArgumentSize; void InitStackArgumentSize() { LIMITED_METHOD_CONTRACT; m_cbStackArgumentSize = 0xFFFF; } void SetStackArgumentSize(WORD cbDstBuffer) { LIMITED_METHOD_CONTRACT; // Don't write to the field if it's already initialized to avoid creating private pages (NGEN) if (m_cbStackArgumentSize == 0xFFFF) { m_cbStackArgumentSize = cbDstBuffer; } _ASSERTE(m_cbStackArgumentSize == cbDstBuffer); } WORD GetStackArgumentSize() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(m_cbStackArgumentSize != 0xFFFF); return m_cbStackArgumentSize; } LPVOID m_pRetThunk; #else // TARGET_X86 void InitStackArgumentSize() { LIMITED_METHOD_CONTRACT; } void SetStackArgumentSize(WORD cbDstBuffer) { LIMITED_METHOD_CONTRACT; } #endif // TARGET_X86 }; //----------------------------------------------------------------------- // Operations specific to ComPlusCall methods. We use a derived class to get // the compiler involved in enforcing proper method type usage. // DO NOT ADD FIELDS TO THIS CLASS. //----------------------------------------------------------------------- class ComPlusCallMethodDesc : public MethodDesc { public: ComPlusCallInfo *m_pComPlusCallInfo; // initialized in code:ComPlusCall.PopulateComPlusCallMethodDesc void InitRetThunk(); void InitComEventCallInfo(); PCODE * GetAddrOfILStubField() { LIMITED_METHOD_CONTRACT; return m_pComPlusCallInfo->GetAddrOfILStubField(); } MethodTable* GetInterfaceMethodTable() { LIMITED_METHOD_CONTRACT; _ASSERTE(m_pComPlusCallInfo->m_pInterfaceMT != NULL); return m_pComPlusCallInfo->m_pInterfaceMT; } MethodDesc* GetEventProviderMD() { LIMITED_METHOD_CONTRACT; return m_pComPlusCallInfo->m_pEventProviderMD; } BOOL RequiresArgumentWrapping() { LIMITED_METHOD_CONTRACT; return (m_pComPlusCallInfo->m_flags & ComPlusCallInfo::kRequiresArgumentWrapping) != 0; } void SetLateBoundFlags(BYTE newFlags) { LIMITED_METHOD_CONTRACT; FastInterlockOr(reinterpret_cast<DWORD *>(&m_pComPlusCallInfo->m_flags), newFlags); } #ifdef TARGET_X86 WORD GetStackArgumentSize() { LIMITED_METHOD_DAC_CONTRACT; return m_pComPlusCallInfo->GetStackArgumentSize(); } void SetStackArgumentSize(WORD cbDstBuffer) { LIMITED_METHOD_CONTRACT; m_pComPlusCallInfo->SetStackArgumentSize(cbDstBuffer); } #else // TARGET_X86 void SetStackArgumentSize(WORD cbDstBuffer) { LIMITED_METHOD_CONTRACT; } #endif // TARGET_X86 }; #endif // FEATURE_COMINTEROP //----------------------------------------------------------------------- // InstantiatedMethodDesc's are used for generics and // come in four flavours, discriminated by the // low order bits of the first field: // // 00 --> GenericMethodDefinition // 01 --> UnsharedMethodInstantiation // 10 --> SharedMethodInstantiation // 11 --> WrapperStubWithInstantiations - and unboxing or instantiating stub // // A SharedMethodInstantiation descriptor extends MethodDesc // with a pointer to dictionary layout and a representative instantiation. // // A GenericMethodDefinition is the instantiation of a // generic method at its formals, used for verifying the method and // also for reflection. // // A WrapperStubWithInstantiations extends MethodDesc with: // (1) a method instantiation // (2) an "underlying" method descriptor. // A WrapperStubWithInstantiations may be placed in a MethodChunk for // a method table which specifies an exact instantiation for the class/struct. // A WrapperStubWithInstantiations may be either // an BoxedEntryPointStub or an exact-instantiation stub. // // Exact-instantiation stubs are used as extra type-context parameters. When // used as an entry, instantiating stubs pass an instantiation // dictionary on to the underlying method. These entries are required to // implement ldftn instructions on instantiations of shared generic // methods, as the InstantiatingStub's pointer does not expect a // dictionary argument; instead, it passes itself on to the shared // code as the dictionary. // // An UnsharedMethodInstantiation contains just an instantiation. // These are fully-specialized wrt method and class type parameters. // These satisfy (!IMD_IsGenericMethodDefinition() && // !IMD_IsSharedByGenericMethodInstantiations() && // !IMD_IsWrapperStubWithInstantiations()) // // Note that plain MethodDescs may represent shared code w.r.t. class type // parameters (see MethodDesc::IsSharedByGenericInstantiations()). //----------------------------------------------------------------------- class InstantiatedMethodDesc : public MethodDesc { public: // All varities of InstantiatedMethodDesc's support this method. BOOL IMD_HasMethodInstantiation() { LIMITED_METHOD_DAC_CONTRACT; if (IMD_IsGenericMethodDefinition()) return TRUE; else return m_pPerInstInfo != NULL; } // All varieties of InstantiatedMethodDesc's support this method. Instantiation IMD_GetMethodInstantiation() { LIMITED_METHOD_DAC_CONTRACT; // No lock needed here. In the case of a generic dictionary expansion, the values of the old dictionary // slots are copied to the newly allocated dictionary, and the old dictionary is kept around. Whether we // return the old or new dictionary here, the values of the instantiation arguments will always be the same. return Instantiation(IMD_GetMethodDictionary()->GetInstantiation(), m_wNumGenericArgs); } PTR_Dictionary IMD_GetMethodDictionary() { LIMITED_METHOD_DAC_CONTRACT; return m_pPerInstInfo; } PTR_Dictionary IMD_GetMethodDictionaryNonNull() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(m_pPerInstInfo != NULL); return m_pPerInstInfo; } BOOL IMD_IsGenericMethodDefinition() { LIMITED_METHOD_DAC_CONTRACT; return((m_wFlags2 & KindMask) == GenericMethodDefinition); } BOOL IMD_IsSharedByGenericMethodInstantiations() { LIMITED_METHOD_DAC_CONTRACT; return((m_wFlags2 & KindMask) == SharedMethodInstantiation); } BOOL IMD_IsWrapperStubWithInstantiations() { LIMITED_METHOD_DAC_CONTRACT; return((m_wFlags2 & KindMask) == WrapperStubWithInstantiations); } BOOL IMD_IsEnCAddedMethod() { LIMITED_METHOD_CONTRACT; #ifdef EnC_SUPPORTED return((m_wFlags2 & KindMask) == EnCAddedMethod); #else return FALSE; #endif } #ifdef FEATURE_COMINTEROP void IMD_SetupGenericComPlusCall() { LIMITED_METHOD_CONTRACT; IMD_GetComPlusCallInfo()->InitStackArgumentSize(); } PTR_ComPlusCallInfo IMD_GetComPlusCallInfo() { LIMITED_METHOD_CONTRACT; _ASSERTE(IsGenericComPlusCall()); SIZE_T size = s_ClassificationSizeTable[m_wFlags & (mdcClassification | mdcHasNonVtableSlot | mdcMethodImpl | mdcHasNativeCodeSlot)]; return dac_cast<PTR_ComPlusCallInfo>(dac_cast<TADDR>(this) + size); } #endif // FEATURE_COMINTEROP PTR_DictionaryLayout GetDictLayoutRaw() { LIMITED_METHOD_DAC_CONTRACT; return m_pDictLayout; } PTR_MethodDesc IMD_GetWrappedMethodDesc() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IMD_IsWrapperStubWithInstantiations()); return m_pWrappedMethodDesc; } #ifndef DACCESS_COMPILE // Get the dictionary layout, if there is one DictionaryLayout* IMD_GetDictionaryLayout() { WRAPPER_NO_CONTRACT; if (IMD_IsWrapperStubWithInstantiations() && IMD_HasMethodInstantiation()) { InstantiatedMethodDesc* pIMD = IMD_GetWrappedMethodDesc()->AsInstantiatedMethodDesc(); return pIMD->m_pDictLayout; } else if (IMD_IsSharedByGenericMethodInstantiations()) return m_pDictLayout; else return NULL; } void IMD_SetDictionaryLayout(DictionaryLayout* pNewLayout) { WRAPPER_NO_CONTRACT; if (IMD_IsWrapperStubWithInstantiations() && IMD_HasMethodInstantiation()) { InstantiatedMethodDesc* pIMD = IMD_GetWrappedMethodDesc()->AsInstantiatedMethodDesc(); pIMD->m_pDictLayout = pNewLayout; } else if (IMD_IsSharedByGenericMethodInstantiations()) { m_pDictLayout = pNewLayout; } } #endif // !DACCESS_COMPILE // Setup the IMD as shared code void SetupSharedMethodInstantiation(DWORD numGenericArgs, TypeHandle *pPerInstInfo, DictionaryLayout *pDL); // Setup the IMD as unshared code void SetupUnsharedMethodInstantiation(DWORD numGenericArgs, TypeHandle *pInst); // Setup the IMD as the special MethodDesc for a "generic" method void SetupGenericMethodDefinition(IMDInternalImport *pIMDII, LoaderAllocator* pAllocator, AllocMemTracker *pamTracker, Module *pModule, mdMethodDef tok); // Setup the IMD as a wrapper around another method desc void SetupWrapperStubWithInstantiations(MethodDesc* wrappedMD,DWORD numGenericArgs, TypeHandle *pGenericMethodInst); #ifdef EnC_SUPPORTED void SetupEnCAddedMethod() { LIMITED_METHOD_CONTRACT; m_wFlags2 = EnCAddedMethod; } #endif private: enum { KindMask = 0x07, GenericMethodDefinition = 0x00, UnsharedMethodInstantiation = 0x01, SharedMethodInstantiation = 0x02, WrapperStubWithInstantiations = 0x03, #ifdef EnC_SUPPORTED // Non-virtual method added through EditAndContinue. EnCAddedMethod = 0x07, #endif // EnC_SUPPORTED Unrestored = 0x08, #ifdef FEATURE_COMINTEROP HasComPlusCallInfo = 0x10, // this IMD contains an optional ComPlusCallInfo #endif // FEATURE_COMINTEROP }; friend class MethodDesc; // this fields are currently accessed by MethodDesc::Save/Restore etc. union { PTR_DictionaryLayout m_pDictLayout; //SharedMethodInstantiation PTR_MethodDesc m_pWrappedMethodDesc; // For WrapperStubWithInstantiations }; public: // <TODO>make private: JITinterface.cpp accesses through this </TODO> // Note we can't steal bits off m_pPerInstInfo as the JIT generates code to access through it!! // Type parameters to method (exact) // For non-unboxing instantiating stubs this is actually // a dictionary and further slots may hang off the end of the // instantiation. // // For generic method definitions that are not the typical method definition (e.g. C<int>.m<U>) // this field is null; to obtain the instantiation use LoadMethodInstantiation PTR_Dictionary m_pPerInstInfo; //SHARED private: WORD m_wFlags2; WORD m_wNumGenericArgs; public: static InstantiatedMethodDesc *FindOrCreateExactClassMethod(MethodTable *pExactMT, MethodDesc *pCanonicalMD); static InstantiatedMethodDesc* FindLoadedInstantiatedMethodDesc(MethodTable *pMT, mdMethodDef methodDef, Instantiation methodInst, BOOL getSharedNotStub); private: static InstantiatedMethodDesc *NewInstantiatedMethodDesc(MethodTable *pMT, MethodDesc* pGenericMDescInRepMT, MethodDesc* pSharedMDescForStub, Instantiation methodInst, BOOL getSharedNotStub); }; inline PTR_MethodTable MethodDesc::GetMethodTable_NoLogging() const { LIMITED_METHOD_DAC_CONTRACT; MethodDescChunk *pChunk = GetMethodDescChunk(); PREFIX_ASSUME(pChunk != NULL); return pChunk->GetMethodTable(); } inline PTR_MethodTable MethodDesc::GetMethodTable() const { LIMITED_METHOD_DAC_CONTRACT; g_IBCLogger.LogMethodDescAccess(this); return GetMethodTable_NoLogging(); } inline DPTR(PTR_MethodTable) MethodDesc::GetMethodTablePtr() const { LIMITED_METHOD_DAC_CONTRACT; MethodDescChunk *pChunk = GetMethodDescChunk(); PREFIX_ASSUME(pChunk != NULL); return pChunk->GetMethodTablePtr(); } inline MethodTable* MethodDesc::GetCanonicalMethodTable() { LIMITED_METHOD_DAC_CONTRACT; return GetMethodTable()->GetCanonicalMethodTable(); } inline mdMethodDef MethodDesc::GetMemberDef_NoLogging() const { LIMITED_METHOD_DAC_CONTRACT; MethodDescChunk *pChunk = GetMethodDescChunk(); PREFIX_ASSUME(pChunk != NULL); UINT16 tokrange = pChunk->GetTokRange(); UINT16 tokremainder = m_wFlags3AndTokenRemainder & enum_flag3_TokenRemainderMask; static_assert_no_msg(enum_flag3_TokenRemainderMask == METHOD_TOKEN_REMAINDER_MASK); return MergeToken(tokrange, tokremainder); } inline mdMethodDef MethodDesc::GetMemberDef() const { LIMITED_METHOD_DAC_CONTRACT; g_IBCLogger.LogMethodDescAccess(this); return GetMemberDef_NoLogging(); } // Set the offset of this method desc in a chunk table (which allows us // to work back to the method table/module pointer stored at the head of // the table. inline void MethodDesc::SetChunkIndex(MethodDescChunk * pChunk) { WRAPPER_NO_CONTRACT; // Calculate the offset (mod 8) from the chunk table header. SIZE_T offset = (BYTE*)this - (BYTE*)pChunk->GetFirstMethodDesc(); _ASSERTE((offset & ALIGNMENT_MASK) == 0); offset >>= ALIGNMENT_SHIFT; // Make sure that we did not overflow the BYTE _ASSERTE(offset == (BYTE)offset); m_chunkIndex = (BYTE)offset; // Make sure that the MethodDescChunk is setup correctly _ASSERTE(GetMethodDescChunk() == pChunk); } inline void MethodDesc::SetMemberDef(mdMethodDef mb) { WRAPPER_NO_CONTRACT; UINT16 tokrange; UINT16 tokremainder; SplitToken(mb, &tokrange, &tokremainder); _ASSERTE((tokremainder & ~enum_flag3_TokenRemainderMask) == 0); m_wFlags3AndTokenRemainder = (m_wFlags3AndTokenRemainder & ~enum_flag3_TokenRemainderMask) | tokremainder; if (GetMethodDescIndex() == 0) { GetMethodDescChunk()->SetTokenRange(tokrange); } #ifdef _DEBUG if (mb != 0) { _ASSERTE(GetMemberDef_NoLogging() == mb); } #endif } #ifdef _DEBUG inline BOOL MethodDesc::SanityCheck() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; // Sanity test - we don't care about the result we just want it to not AV. return GetMethodTable() == m_pDebugMethodTable && this->GetModule() != NULL; } #endif // _DEBUG inline BOOL MethodDesc::IsEnCAddedMethod() { LIMITED_METHOD_DAC_CONTRACT; return (GetClassification() == mcInstantiated) && AsInstantiatedMethodDesc()->IMD_IsEnCAddedMethod(); } inline BOOL MethodDesc::HasNonVtableSlot() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcHasNonVtableSlot) != 0; } inline Instantiation MethodDesc::GetMethodInstantiation() const { LIMITED_METHOD_DAC_CONTRACT; return (GetClassification() == mcInstantiated) ? AsInstantiatedMethodDesc()->IMD_GetMethodInstantiation() : Instantiation(); } inline Instantiation MethodDesc::GetClassInstantiation() const { LIMITED_METHOD_DAC_CONTRACT; return GetMethodTable()->GetInstantiation(); } inline BOOL MethodDesc::IsGenericMethodDefinition() const { LIMITED_METHOD_DAC_CONTRACT; g_IBCLogger.LogMethodDescAccess(this); return GetClassification() == mcInstantiated && AsInstantiatedMethodDesc()->IMD_IsGenericMethodDefinition(); } // True if the method descriptor is an instantiation of a generic method. inline BOOL MethodDesc::HasMethodInstantiation() const { LIMITED_METHOD_DAC_CONTRACT; return mcInstantiated == GetClassification() && AsInstantiatedMethodDesc()->IMD_HasMethodInstantiation(); } #if defined(FEATURE_GDBJIT) class CalledMethod { private: MethodDesc * m_pMD; void * m_CallAddr; CalledMethod * m_pNext; public: CalledMethod(MethodDesc *pMD, void * addr, CalledMethod * next) : m_pMD(pMD), m_CallAddr(addr), m_pNext(next) {} ~CalledMethod() {} MethodDesc * GetMethodDesc() { return m_pMD; } void * GetCallAddr() { return m_CallAddr; } CalledMethod * GetNext() { return m_pNext; } }; #endif #include "method.inl" #endif // !_METHOD_H
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // method.hpp // // // See the book of the runtime entry for overall design: // file:../../doc/BookOfTheRuntime/ClassLoader/MethodDescDesign.doc // #ifndef _METHOD_H #define _METHOD_H #include "cor.h" #include "util.hpp" #include "clsload.hpp" #include "class.h" #include "siginfo.hpp" #include "methodimpl.h" #include "typedesc.h" #include <stddef.h> #include "eeconfig.h" #include "precode.h" class Stub; class FCallMethodDesc; class FieldDesc; class NDirect; class MethodDescChunk; struct LayoutRawFieldInfo; class InstantiatedMethodDesc; class DictionaryLayout; class Dictionary; class GCCoverageInfo; class DynamicMethodDesc; class ReJitManager; class CodeVersionManager; class PrepareCodeConfig; typedef DPTR(FCallMethodDesc) PTR_FCallMethodDesc; typedef DPTR(ArrayMethodDesc) PTR_ArrayMethodDesc; typedef DPTR(DynamicMethodDesc) PTR_DynamicMethodDesc; typedef DPTR(InstantiatedMethodDesc) PTR_InstantiatedMethodDesc; typedef DPTR(GCCoverageInfo) PTR_GCCoverageInfo; // see code:GCCoverageInfo::savedCode #ifdef FEATURE_MINIMETADATA_IN_TRIAGEDUMPS GVAL_DECL(DWORD, g_MiniMetaDataBuffMaxSize); GVAL_DECL(TADDR, g_MiniMetaDataBuffAddress); #endif // FEATURE_MINIMETADATA_IN_TRIAGEDUMPS EXTERN_C VOID STDCALL NDirectImportThunk(); #define METHOD_TOKEN_REMAINDER_BIT_COUNT 13 #define METHOD_TOKEN_REMAINDER_MASK ((1 << METHOD_TOKEN_REMAINDER_BIT_COUNT) - 1) #define METHOD_TOKEN_RANGE_BIT_COUNT (24 - METHOD_TOKEN_REMAINDER_BIT_COUNT) #define METHOD_TOKEN_RANGE_MASK ((1 << METHOD_TOKEN_RANGE_BIT_COUNT) - 1) //============================================================= // Splits methoddef token into two pieces for // storage inside a methoddesc. //============================================================= FORCEINLINE UINT16 GetTokenRange(mdToken tok) { LIMITED_METHOD_CONTRACT; return (UINT16)((tok>>METHOD_TOKEN_REMAINDER_BIT_COUNT) & METHOD_TOKEN_RANGE_MASK); } FORCEINLINE VOID SplitToken(mdToken tok, UINT16 *ptokrange, UINT16 *ptokremainder) { LIMITED_METHOD_CONTRACT; *ptokrange = (UINT16)((tok>>METHOD_TOKEN_REMAINDER_BIT_COUNT) & METHOD_TOKEN_RANGE_MASK); *ptokremainder = (UINT16)(tok & METHOD_TOKEN_REMAINDER_MASK); } FORCEINLINE mdToken MergeToken(UINT16 tokrange, UINT16 tokremainder) { LIMITED_METHOD_DAC_CONTRACT; return (tokrange << METHOD_TOKEN_REMAINDER_BIT_COUNT) | tokremainder | mdtMethodDef; } // The MethodDesc is a union of several types. The following // 3-bit field determines which type it is. Note that JIT'ed/non-JIT'ed // is not represented here because this isn't known until the // method is executed for the first time. Because any thread could // change this bit, it has to be done in a place where access is // synchronized. // **** NOTE: if you add any new flags, make sure you add them to ClearFlagsOnUpdate // so that when a method is replaced its relevant flags are updated // Used in MethodDesc enum MethodClassification { mcIL = 0, // IL mcFCall = 1, // FCall (also includes tlbimped ctor, Delegate ctor) mcNDirect = 2, // N/Direct mcEEImpl = 3, // special method; implementation provided by EE (like Delegate Invoke) mcArray = 4, // Array ECall mcInstantiated = 5, // Instantiated generic methods, including descriptors // for both shared and unshared code (see InstantiatedMethodDesc) #ifdef FEATURE_COMINTEROP // This needs a little explanation. There are MethodDescs on MethodTables // which are Interfaces. These have the mdcInterface bit set. Then there // are MethodDescs on MethodTables that are Classes, where the method is // exposed through an interface. These do not have the mdcInterface bit set. // // So, today, a dispatch through an 'mdcInterface' MethodDesc is either an // error (someone forgot to look up the method in a class' VTable) or it is // a case of COM Interop. mcComInterop = 6, #endif // FEATURE_COMINTEROP mcDynamic = 7, // for method desc with no metadata behind mcCount, }; // All flags in the MethodDesc now reside in a single 16-bit field. enum MethodDescClassification { // Method is IL, FCall etc., see MethodClassification above. mdcClassification = 0x0007, mdcClassificationCount = mdcClassification+1, // Note that layout of code:MethodDesc::s_ClassificationSizeTable depends on the exact values // of mdcHasNonVtableSlot and mdcMethodImpl // Has local slot (vs. has real slot in MethodTable) mdcHasNonVtableSlot = 0x0008, // Method is a body for a method impl (MI_MethodDesc, MI_NDirectMethodDesc, etc) // where the function explicitly implements IInterface.foo() instead of foo(). mdcMethodImpl = 0x0010, // Has slot for native code mdcHasNativeCodeSlot = 0x0020, #ifdef FEATURE_COMINTEROP mdcHasComPlusCallInfo = 0x0040, #else // unused = 0x0040, #endif // Method is static mdcStatic = 0x0080, // unused = 0x0100, // unused = 0x0200, // Duplicate method. When a method needs to be placed in multiple slots in the // method table, because it could not be packed into one slot. For eg, a method // providing implementation for two interfaces, MethodImpl, etc mdcDuplicate = 0x0400, // Has this method been verified? mdcVerifiedState = 0x0800, // Is the method verifiable? It needs to be verified first to determine this mdcVerifiable = 0x1000, // Is this method ineligible for inlining? mdcNotInline = 0x2000, // Is the method synchronized mdcSynchronized = 0x4000, // Does the method's slot number require all 16 bits mdcRequiresFullSlotNumber = 0x8000 }; #define METHOD_MAX_RVA 0x7FFFFFFF // The size of this structure needs to be a multiple of MethodDesc::ALIGNMENT // // @GENERICS: // Method descriptors for methods belonging to instantiated types may be shared between compatible instantiations // Hence for reflection and elsewhere where exact types are important it's necessary to pair a method desc // with the exact owning type handle. // // See genmeth.cpp for details of instantiated generic method descriptors. // // A MethodDesc is the representation of a method of a type. These live in code:MethodDescChunk which in // turn lives in code:EEClass. They are conceptually cold (we do not expect to access them in normal // program exectution, but we often fall short of that goal. // // A Method desc knows how to get at its metadata token code:GetMemberDef, its chunk // code:MethodDescChunk, which in turns knows how to get at its type code:MethodTable. // It also knows how to get at its IL code (code:IMAGE_COR_ILMETHOD) class MethodDesc { friend class EEClass; friend class MethodTableBuilder; friend class ArrayClass; friend class NDirect; friend class MethodDescChunk; friend class InstantiatedMethodDesc; friend class MethodImpl; friend class CheckAsmOffsets; friend class ClrDataAccess; friend class MethodDescCallSite; public: #ifdef TARGET_64BIT static const int ALIGNMENT_SHIFT = 3; #else static const int ALIGNMENT_SHIFT = 2; #endif static const size_t ALIGNMENT = (1 << ALIGNMENT_SHIFT); static const size_t ALIGNMENT_MASK = (ALIGNMENT - 1); #ifdef _DEBUG // These are set only for MethodDescs but every time we want to use the debugger // to examine these fields, the code has the thing stored in a MethodDesc*. // So... LPCUTF8 m_pszDebugMethodName; LPCUTF8 m_pszDebugClassName; LPCUTF8 m_pszDebugMethodSignature; PTR_MethodTable m_pDebugMethodTable; PTR_GCCoverageInfo m_GcCover; #endif // _DEBUG inline BOOL HasStableEntryPoint() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_HasStableEntryPoint) != 0; } inline PCODE GetStableEntryPoint() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(HasStableEntryPoint()); _ASSERTE(!IsVersionableWithVtableSlotBackpatch()); return GetMethodEntryPoint(); } void SetMethodEntryPoint(PCODE addr); BOOL SetStableEntryPointInterlocked(PCODE addr); PCODE GetTemporaryEntryPoint(); void SetTemporaryEntryPoint(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker); PCODE GetInitialEntryPointForCopiedSlot() { WRAPPER_NO_CONTRACT; if (IsVersionableWithVtableSlotBackpatch()) { return GetTemporaryEntryPoint(); } return GetMethodEntryPoint(); } inline BOOL HasPrecode() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_HasPrecode) != 0; } inline Precode* GetPrecode() { LIMITED_METHOD_DAC_CONTRACT; PRECONDITION(HasPrecode()); Precode* pPrecode = Precode::GetPrecodeFromEntryPoint(GetStableEntryPoint()); PREFIX_ASSUME(pPrecode != NULL); return pPrecode; } inline bool MayHavePrecode() { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END // Ideally, methods that will not have native code (!MayHaveNativeCode() == true) should not be versionable. Currently, // that is not the case, in some situations it was seen that 1/4 to 1/3 of versionable methods do not have native // code, though there is no significant overhead from this. MayHaveNativeCode() appears to be an expensive check to do // for each MethodDesc, even if it's done only once, and when it was attempted, at the time it was showing up noticeably // in startup performance profiles. // // In particular, methods versionable with vtable slot backpatch should not have a precode (in the sense HasPrecode() // must return false) even if they will not have native code. bool result = IsVersionable() ? IsVersionableWithPrecode() : !MayHaveNativeCode(); _ASSERTE(!result || !IsVersionableWithVtableSlotBackpatch()); return result; } void InterlockedUpdateFlags2(BYTE bMask, BOOL fSet); Precode* GetOrCreatePrecode(); // Given a code address return back the MethodDesc whenever possible // static MethodDesc * GetMethodDescFromStubAddr(PCODE addr, BOOL fSpeculative = FALSE); DWORD GetAttrs() const; DWORD GetImplAttrs(); // This function can lie if a method impl was used to implement // more than one method on this class. Use GetName(int) to indicate // which slot you are interested in. // See the TypeString class for better control over name formatting. LPCUTF8 GetName(); LPCUTF8 GetName(USHORT slot); BOOL MightHaveName(ULONG nameHashValue); FORCEINLINE LPCUTF8 GetNameOnNonArrayClass() { WRAPPER_NO_CONTRACT; LPCSTR szName; if (FAILED(GetMDImport()->GetNameOfMethodDef(GetMemberDef(), &szName))) { szName = NULL; } return szName; } COUNT_T GetStableHash(); // Non-zero for InstantiatedMethodDescs DWORD GetNumGenericMethodArgs(); // Return the number of class type parameters that are in scope for this method DWORD GetNumGenericClassArgs() { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return GetMethodTable()->GetNumGenericArgs(); } // True if this is a method descriptor for an instantiated generic method // whose method type arguments are the formal type parameters of the generic method // NOTE: the declaring class may not be the generic type definition e.g. consider C<int>.m<T> BOOL IsGenericMethodDefinition() const; // True if the declaring type or instantiation of method (if any) contains formal generic type parameters BOOL ContainsGenericVariables(); Module* GetDefiningModuleForOpenMethod(); // True if this is a class and method instantiation that on <__Canon,...,__Canon> BOOL IsTypicalSharedInstantiation(); // True if and only if this is a method desriptor for : // 1. a non-generic method or a generic method at its typical method instantiation // 2. in a non-generic class or a typical instantiation of a generic class // This method can be called on a non-restored method desc BOOL IsTypicalMethodDefinition() const; // Force a load of the (typical) constraints on the type parameters of a typical method definition, // detecting cyclic bounds on class and method type parameters. void LoadConstraintsForTypicalMethodDefinition(BOOL *pfHasCircularClassConstraints, BOOL *pfHasCircularMethodConstraints, ClassLoadLevel level = CLASS_LOADED); DWORD IsClassConstructor() { WRAPPER_NO_CONTRACT; return IsMdClassConstructor(GetAttrs(), GetName()); } DWORD IsClassConstructorOrCtor() { WRAPPER_NO_CONTRACT; DWORD dwAttrs = GetAttrs(); if (IsMdRTSpecialName(dwAttrs)) { LPCUTF8 name = GetName(); return IsMdInstanceInitializer(dwAttrs, name) || IsMdClassConstructor(dwAttrs, name); } return FALSE; } inline void SetHasMethodImplSlot() { m_wFlags |= mdcMethodImpl; } inline BOOL HasMethodImplSlot() { LIMITED_METHOD_DAC_CONTRACT; return (mdcMethodImpl & m_wFlags); } FORCEINLINE BOOL IsMethodImpl() { LIMITED_METHOD_DAC_CONTRACT; // Once we stop allocating dummy MethodImplSlot in MethodTableBuilder::WriteMethodImplData, // the check for NULL will become unnecessary. return HasMethodImplSlot() && (GetMethodImpl()->GetSlots() != NULL); } inline DWORD IsStatic() { LIMITED_METHOD_DAC_CONTRACT; // This bit caches the IsMdStatic(GetAttrs()) check. We used to assert it here, but not doing it anymore. GetAttrs() // accesses metadata that is not compatible with contracts of this method. The metadata access can fail, the metadata // are not available during shutdown, the metadata access can take locks. It is not worth it to code around all these // just for the assert. // _ASSERTE((((m_wFlags & mdcStatic) != 0) == (IsMdStatic(flags) != 0))); return (m_wFlags & mdcStatic) != 0; } inline void SetStatic() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcStatic; } inline void ClearStatic() { LIMITED_METHOD_CONTRACT; m_wFlags &= ~mdcStatic; } inline BOOL IsIL() { LIMITED_METHOD_DAC_CONTRACT; return mcIL == GetClassification() || mcInstantiated == GetClassification(); } //================================================================ // Generics-related predicates etc. // True if the method descriptor is an instantiation of a generic method. inline BOOL HasMethodInstantiation() const; // True if the method descriptor is either an instantiation of // a generic method or is an instance method in an instantiated class (or both). BOOL HasClassOrMethodInstantiation() { LIMITED_METHOD_DAC_CONTRACT; return (HasClassInstantiation() || HasMethodInstantiation()); } BOOL HasClassOrMethodInstantiation_NoLogging() const { LIMITED_METHOD_DAC_CONTRACT; return (HasClassInstantiation_NoLogging() || HasMethodInstantiation()); } inline BOOL HasClassInstantiation() const { LIMITED_METHOD_DAC_CONTRACT; return GetMethodTable()->HasInstantiation(); } inline BOOL HasClassInstantiation_NoLogging() const { LIMITED_METHOD_DAC_CONTRACT; return GetMethodTable_NoLogging()->HasInstantiation(); } // Return the instantiation for an instantiated generic method // Return NULL if not an instantiated method // To get the (representative) instantiation of the declaring class use GetMethodTable()->GetInstantiation() // NOTE: This will assert if you try to get the instantiation of a generic method def in a non-typical class // e.g. C<int>.m<U> will fail but C<T>.m<U> will succeed Instantiation GetMethodInstantiation() const; // As above, but will succeed on C<int>.m<U> // To do this it might force a load of the typical parent Instantiation LoadMethodInstantiation(); // Return a pointer to the method dictionary for an instantiated generic method // The initial slots in a method dictionary are the type arguments themselves // Return NULL if not an instantiated method Dictionary* GetMethodDictionary(); DictionaryLayout* GetDictionaryLayout(); InstantiatedMethodDesc* AsInstantiatedMethodDesc() const; BaseDomain *GetDomain(); #ifdef FEATURE_CODE_VERSIONING CodeVersionManager* GetCodeVersionManager(); #endif MethodDescBackpatchInfoTracker* GetBackpatchInfoTracker(); PTR_LoaderAllocator GetLoaderAllocator(); // GetDomainSpecificLoaderAllocator returns the collectable loader allocator for collectable types // and the loader allocator in the current domain for non-collectable types LoaderAllocator * GetDomainSpecificLoaderAllocator(); Module* GetLoaderModule(); // Strip off method and class instantiation if present and replace by the typical instantiation // e.g. C<int>.m<string> -> C<T>.m<U>. Does not modify the MethodDesc, but returns // the appropriate stripped MethodDesc. // This is the identity function on non-instantiated method descs in non-instantiated classes MethodDesc* LoadTypicalMethodDefinition(); // Strip off the method instantiation (if present) and replace by the typical instantiation // e.g. // C<int>.m<string> -> C<int>.m<U>. Does not modify the MethodDesc, but returns // the appropriate stripped MethodDesc. // This is the identity function on non-instantiated method descs MethodDesc* StripMethodInstantiation(); // Return the instantiation of a method's enclosing class // Return NULL if the enclosing class is not instantiated // If the method code is shared then this might be a *representative* instantiation // // See GetExactClassInstantiation if you need to get the exact // instantiation of a shared method desc. Instantiation GetClassInstantiation() const; // Is the code shared between multiple instantiations of class or method? // If so, then when compiling the code we might need to look up tokens // in the class or method dictionary. Also, when debugging the exact generic arguments // need to be ripped off the stack, either from the this pointer or from one of the // extra args below. BOOL IsSharedByGenericInstantiations(); // shared code of any kind BOOL IsSharedByGenericMethodInstantiations(); // shared due to method instantiation // How does a method shared between generic instantiations get at // the extra instantiation information at runtime? Only one of the following three // will ever hold: // // AcquiresInstMethodTableFromThis() // The method is in a generic class but is not itself a // generic method (the normal case). Furthermore a "this" pointer // is available and we can get the exact instantiation from it. // // RequiresInstMethodTableArg() // The method is shared between generic classes but is not // itself generic. Furthermore no "this" pointer is given // (e.g. a value type method), so we pass in the exact-instantiation // method table as an extra argument. // i.e. per-inst static methods in shared-code instantiated generic // classes (e.g. static void MyClass<string>::m()) // i.e. shared-code instance methods in instantiated generic // structs (e.g. void MyValueType<string>::m()) // // RequiresInstMethodDescArg() // The method is itself generic and is shared between generic // instantiations but is not itself generic. Furthermore // no "this" pointer is given (e.g. a value type method), so we pass in the // exact-instantiation method table as an extra argument. // i.e. shared-code instantiated generic methods // // These are used for direct calls to instantiated generic methods // e.g. call void C::m<string>() implemented by calculating dict(m<string>) at compile-time and passing it as an extra parameter // call void C::m<!0>() implemented by calculating dict(m<!0>) at run-time (if the caller lives in shared-class code) BOOL AcquiresInstMethodTableFromThis(); BOOL RequiresInstMethodTableArg(); BOOL RequiresInstMethodDescArg(); BOOL RequiresInstArg(); // Can this method handle be given out to reflection for use in a MethodInfo // object? BOOL IsRuntimeMethodHandle(); // Given a method table of an object and a method that comes from some // superclass of the class of that object, find that superclass. MethodTable * GetExactDeclaringType(MethodTable * ownerOrSubType); // Given a type handle of an object and a method that comes from some // superclass of the class of that object, find the instantiation of // that superclass, i.e. the class instantiation which will be relevant // to interpreting the signature of the method. The type handle of // the object does not need to be given in all circumstances, in // particular it is only needed for MethodDescs pMD that // return true for pMD->RequiresInstMethodTableArg() or // pMD->RequiresInstMethodDescArg(). In other cases it is // allowed to be null. // // Will return NULL if the method is not in a generic class. Instantiation GetExactClassInstantiation(TypeHandle possibleObjType); BOOL SatisfiesMethodConstraints(TypeHandle thParent, BOOL fThrowIfNotSatisfied = FALSE); BOOL HasSameMethodDefAs(MethodDesc * pMD); //================================================================ // Classifications of kinds of MethodDescs. inline BOOL IsRuntimeSupplied() { LIMITED_METHOD_DAC_CONTRACT; return mcFCall == GetClassification() || mcArray == GetClassification(); } inline DWORD IsArray() const { LIMITED_METHOD_DAC_CONTRACT; return mcArray == GetClassification(); } inline DWORD IsEEImpl() const { LIMITED_METHOD_DAC_CONTRACT; return mcEEImpl == GetClassification(); } inline DWORD IsNoMetadata() const { LIMITED_METHOD_DAC_CONTRACT; return (mcDynamic == GetClassification()); } inline PTR_DynamicMethodDesc AsDynamicMethodDesc(); inline bool IsDynamicMethod(); inline bool IsILStub(); inline bool IsLCGMethod(); inline DWORD IsNDirect() { LIMITED_METHOD_DAC_CONTRACT; return mcNDirect == GetClassification(); } inline DWORD IsInterface() { WRAPPER_NO_CONTRACT; return GetMethodTable()->IsInterface(); } BOOL HasUnmanagedCallersOnlyAttribute(); BOOL ShouldSuppressGCTransition(); #ifdef FEATURE_COMINTEROP inline DWORD IsComPlusCall() { WRAPPER_NO_CONTRACT; return mcComInterop == GetClassification(); } inline DWORD IsGenericComPlusCall(); inline void SetupGenericComPlusCall(); #else // !FEATURE_COMINTEROP // hardcoded to return FALSE to improve code readibility inline DWORD IsComPlusCall() { LIMITED_METHOD_CONTRACT; return FALSE; } inline DWORD IsGenericComPlusCall() { LIMITED_METHOD_CONTRACT; return FALSE; } #endif // !FEATURE_COMINTEROP // Update flags in a thread safe manner. WORD InterlockedUpdateFlags(WORD wMask, BOOL fSet); // If the method is in an Edit and Contine (EnC) module, then // we DON'T want to backpatch this, ever. We MUST always call // through the precode so that we can update the method. inline DWORD IsEnCMethod() { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->IsEditAndContinueEnabled(); } inline BOOL IsNotInline() { LIMITED_METHOD_CONTRACT; return (m_wFlags & mdcNotInline); } inline void SetNotInline(BOOL set) { WRAPPER_NO_CONTRACT; InterlockedUpdateFlags(mdcNotInline, set); } #ifndef DACCESS_COMPILE VOID EnsureActive(); #endif CHECK CheckActivated(); //================================================================ // FCalls. BOOL IsFCall() { WRAPPER_NO_CONTRACT; return mcFCall == GetClassification(); } BOOL IsQCall(); //================================================================ // inline void ClearFlagsOnUpdate() { WRAPPER_NO_CONTRACT; SetNotInline(FALSE); } // Restore the MethodDesc to it's initial, pristine state, so that // it can be reused for new code (eg. for EnC, method rental, etc.) // // Things to think about before calling this: // // Does the caller need to free up the jitted code for the old IL // (including any other IJitManager datastructures) ? // Does the caller guarantee thread-safety ? // void Reset(); //================================================================ // About the signature. BOOL IsVarArg(); BOOL IsVoid(); BOOL HasRetBuffArg(); // Returns the # of bytes of stack used by arguments. Does not include // arguments passed in registers. UINT SizeOfArgStack(); // Returns the # of bytes of stack used by arguments in a call from native to this function. // Does not include arguments passed in registers. UINT SizeOfNativeArgStack(); // Returns the # of bytes to pop after a call. Not necessary the // same as SizeOfArgStack()! UINT CbStackPop(); //================================================================ // Unboxing stubs. // // Return TRUE if this is this a special stub used to implement delegates to an // instance method in a value class and/or virtual methods on a value class. // // For every BoxedEntryPointStub there is associated unboxed-this-MethodDesc // which accepts an unboxed "this" pointer. // // The action of a typical BoxedEntryPointStub is to // bump up the this pointer by one word so that it points to the interior of the object // and then call the underlying unboxed-this-MethodDesc. // // Additionally, if the non-BoxedEntryPointStub is RequiresInstMethodTableArg() // then pass on the MethodTable as an extra argument to the // underlying unboxed-this-MethodDesc. BOOL IsUnboxingStub() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_IsUnboxingStub) != 0; } void SetIsUnboxingStub() { LIMITED_METHOD_CONTRACT; m_bFlags2 |= enum_flag2_IsUnboxingStub; } //================================================================ // Instantiating Stubs // // Return TRUE if this is this a special stub used to implement an // instantiated generic method or per-instantiation static method. // The action of an instantiating stub is // * pass on a MethodTable or InstantiatedMethodDesc extra argument to shared code BOOL IsInstantiatingStub(); // A wrapper stub is either an unboxing stub or an instantiating stub BOOL IsWrapperStub(); MethodDesc *GetWrappedMethodDesc(); MethodDesc *GetExistingWrappedMethodDesc(); //================================================================== // Access the underlying metadata BOOL HasILHeader() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; return IsIL() && !IsUnboxingStub() && GetRVA(); } COR_ILMETHOD* GetILHeader(BOOL fAllowOverrides = FALSE); BOOL HasStoredSig() { LIMITED_METHOD_DAC_CONTRACT; return IsEEImpl() || IsArray() || IsNoMetadata(); } PCCOR_SIGNATURE GetSig(); void GetSig(PCCOR_SIGNATURE *ppSig, DWORD *pcSig); SigParser GetSigParser(); // Convenience methods for common signature wrapper types. SigPointer GetSigPointer(); Signature GetSignature(); void GetSigFromMetadata(IMDInternalImport * importer, PCCOR_SIGNATURE * ppSig, DWORD * pcSig); IMDInternalImport* GetMDImport() const { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetMDImport(); } HRESULT GetCustomAttribute(WellKnownAttribute attribute, const void **ppData, ULONG *pcbData) const { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetCustomAttribute(GetMemberDef(), attribute, ppData, pcbData); } #ifndef DACCESS_COMPILE IMetaDataEmit* GetEmitter() { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetEmitter(); } IMetaDataImport* GetRWImporter() { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetRWImporter(); } #endif // !DACCESS_COMPILE #ifdef FEATURE_COMINTEROP WORD GetComSlot(); LONG GetComDispid(); #endif // FEATURE_COMINTEROP inline DWORD IsCtor() { WRAPPER_NO_CONTRACT; return IsMdInstanceInitializer(GetAttrs(), GetName()); } inline DWORD IsFinal() { WRAPPER_NO_CONTRACT; return IsMdFinal(GetAttrs()); } inline DWORD IsPrivate() { WRAPPER_NO_CONTRACT; return IsMdPrivate(GetAttrs()); } inline DWORD IsPublic() const { WRAPPER_NO_CONTRACT; return IsMdPublic(GetAttrs()); } inline DWORD IsProtected() const { WRAPPER_NO_CONTRACT; return IsMdFamily(GetAttrs()); } inline DWORD IsVirtual() { WRAPPER_NO_CONTRACT; return IsMdVirtual(GetAttrs()); } inline DWORD IsAbstract() { WRAPPER_NO_CONTRACT; return IsMdAbstract(GetAttrs()); } //================================================================== // Flags.. inline void SetSynchronized() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcSynchronized; } inline DWORD IsSynchronized() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcSynchronized) != 0; } //================================================================== // The MethodDesc in relation to the VTable it is associated with. // WARNING: Not all MethodDescs have slots, nor do they all have // entries in MethodTables. Beware. // Does the method has virtual slot? Note that methods implementing interfaces // on value types do not have virtual slots, but they are marked as virtual in metadata. inline BOOL IsVtableMethod() { LIMITED_METHOD_CONTRACT; MethodTable *pMT = GetMethodTable(); g_IBCLogger.LogMethodTableAccess(pMT); return !IsEnCAddedMethod() // The slot numbers are currently meaningless for // some unboxed-this-generic-method-instantiations && !(pMT->IsValueType() && !IsStatic() && !IsUnboxingStub()) && GetSlot() < pMT->GetNumVirtuals(); } // Is this a default interface method (virtual non-abstract instance method) inline BOOL IsDefaultInterfaceMethod() { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_DEFAULT_INTERFACES return (GetMethodTable()->IsInterface() && !IsStatic() && IsVirtual() && !IsAbstract()); #else return false; #endif // FEATURE_DEFAULT_INTERFACES } inline BOOL HasNonVtableSlot(); void SetHasNonVtableSlot() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcHasNonVtableSlot; } // duplicate methods inline BOOL IsDuplicate() { LIMITED_METHOD_CONTRACT; return (m_wFlags & mdcDuplicate) == mdcDuplicate; } void SetDuplicate() { LIMITED_METHOD_CONTRACT; // method table is not setup yet //_ASSERTE(!GetClass()->IsInterface()); m_wFlags |= mdcDuplicate; } //================================================================== // EnC inline BOOL IsEnCAddedMethod(); //================================================================== // inline EEClass* GetClass() { WRAPPER_NO_CONTRACT; MethodTable *pMT = GetMethodTable_NoLogging(); g_IBCLogger.LogEEClassAndMethodTableAccess(pMT); EEClass *pClass = pMT->GetClass_NoLogging(); PREFIX_ASSUME(pClass != NULL); return pClass; } inline PTR_MethodTable GetMethodTable() const; inline PTR_MethodTable GetMethodTable_NoLogging() const; inline DPTR(PTR_MethodTable) GetMethodTablePtr() const; public: inline MethodDescChunk* GetMethodDescChunk() const; inline int GetMethodDescIndex() const; // If this is an method desc. (whether non-generic shared-instantiated or exact-instantiated) // inside a shared class then get the method table for the representative // class. inline MethodTable* GetCanonicalMethodTable(); Module *GetModule() const; Module *GetModule_NoLogging() const; Assembly *GetAssembly() const { WRAPPER_NO_CONTRACT; Module *pModule = GetModule(); PREFIX_ASSUME(pModule != NULL); return pModule->GetAssembly(); } //================================================================== // The slot number of this method in the corresponding method table. // // Use with extreme caution. The slot number will not be // valid for EnC code or for MethodDescs representing instantiation // of generic methods. It may also not mean what you think it will mean // for strange method descs such as BoxedEntryPointStubs. // // In any case we should be moving to use slot numbers a lot less // since they make the EE code inflexible. inline WORD GetSlot() { LIMITED_METHOD_DAC_CONTRACT; // Check if this MD is using the packed slot layout if (!RequiresFullSlotNumber()) { return (m_wSlotNumber & enum_packedSlotLayout_SlotMask); } return m_wSlotNumber; } inline VOID SetSlot(WORD wSlotNum) { LIMITED_METHOD_CONTRACT; // Check if we have to avoid using the packed slot layout if (wSlotNum > enum_packedSlotLayout_SlotMask) { SetRequiresFullSlotNumber(); } // Set only the portion of m_wSlotNumber we are using if (!RequiresFullSlotNumber()) { m_wSlotNumber &= ~enum_packedSlotLayout_SlotMask; m_wSlotNumber |= wSlotNum; } else { m_wSlotNumber = wSlotNum; } } inline BOOL IsVirtualSlot() { return GetSlot() < GetMethodTable()->GetNumVirtuals(); } inline BOOL IsVtableSlot() { return IsVirtualSlot() && !HasNonVtableSlot(); } PTR_PCODE GetAddrOfSlot(); PTR_MethodDesc GetDeclMethodDesc(UINT32 slotNumber); protected: inline void SetRequiresFullSlotNumber() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcRequiresFullSlotNumber; } inline DWORD RequiresFullSlotNumber() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcRequiresFullSlotNumber) != 0; } public: mdMethodDef GetMemberDef() const; mdMethodDef GetMemberDef_NoLogging() const; #ifdef _DEBUG BOOL SanityCheck(); #endif // _DEBUG public: void SetMemberDef(mdMethodDef mb); //================================================================ // Set the offset of this method desc in a chunk table (which allows us // to work back to the method table/module pointer stored at the head of // the table. void SetChunkIndex(MethodDescChunk *pChunk); BOOL IsPointingToPrestub(); public: // True iff it is possible to change the code this method will run using the CodeVersionManager. Note: EnC currently returns // false here because it uses its own seperate scheme to manage versionability. We will likely want to converge them at some // point. bool IsVersionable() { WRAPPER_NO_CONTRACT; return IsEligibleForTieredCompilation() || IsEligibleForReJIT(); } // True iff all calls to the method should funnel through a Precode which can be updated to point to the current method // body. This versioning technique can introduce more indirections than optimal but it has low memory overhead when a // FixupPrecode may be shared with the temporary entry point that is created anyway. bool IsVersionableWithPrecode() { WRAPPER_NO_CONTRACT; return IsVersionable() && !Helper_IsEligibleForVersioningWithVtableSlotBackpatch(); } // True iff all calls to the method should go through a backpatchable vtable slot or through a FuncPtrStub. This versioning // technique eliminates extra indirections from precodes but is more memory intensive to track all the appropriate slots. // See Helper_IsEligibleForVersioningWithEntryPointSlotBackpatch() for more details. bool IsVersionableWithVtableSlotBackpatch() { WRAPPER_NO_CONTRACT; return IsVersionable() && Helper_IsEligibleForVersioningWithVtableSlotBackpatch(); } bool IsEligibleForReJIT() { WRAPPER_NO_CONTRACT; #ifdef FEATURE_REJIT return ReJitManager::IsReJITEnabled() && // Previously we didn't support these methods because of functional requirements for // jumpstamps, keeping this in for back compat. IsIL() && !IsWrapperStub() && // Functional requirement CodeVersionManager::IsMethodSupported(PTR_MethodDesc(this)); #else // FEATURE_REJIT return false; #endif } public: bool IsEligibleForTieredCompilation() { LIMITED_METHOD_DAC_CONTRACT; #ifdef FEATURE_TIERED_COMPILATION return (m_bFlags2 & enum_flag2_IsEligibleForTieredCompilation) != 0; #else return false; #endif } // Is this method allowed to be recompiled and the entrypoint redirected so that we // can optimize its performance? Eligibility is invariant for the lifetime of a method. bool DetermineAndSetIsEligibleForTieredCompilation(); bool IsJitOptimizationDisabled(); private: // This function is not intended to be called in most places, and is named as such to discourage calling it accidentally bool Helper_IsEligibleForVersioningWithVtableSlotBackpatch() { WRAPPER_NO_CONTRACT; _ASSERTE(IsVersionable()); _ASSERTE(IsIL() || IsDynamicMethod()); #if defined(FEATURE_CODE_VERSIONING) _ASSERTE(CodeVersionManager::IsMethodSupported(PTR_MethodDesc(this))); // For a method eligible for code versioning and vtable slot backpatch: // - It does not have a precode (HasPrecode() returns false) // - It does not have a stable entry point (HasStableEntryPoint() returns false) // - A call to the method may be: // - An indirect call through the MethodTable's backpatchable vtable slot // - A direct call to a backpatchable FuncPtrStub, perhaps through a JumpStub // - For interface methods, an indirect call through the virtual stub dispatch (VSD) indirection cell to a // backpatchable DispatchStub or a ResolveStub that refers to a backpatchable ResolveCacheEntry // - The purpose is that typical calls to the method have no additional overhead when code versioning is enabled // // Recording and backpatching slots: // - In order for all vtable slots for the method to be backpatchable: // - A vtable slot initially points to the MethodDesc's temporary entry point, even when the method is inherited by // a derived type (the slot's value is not copied from the parent) // - The temporary entry point always points to the prestub and is never backpatched, in order to be able to // discover new vtable slots through which the method may be called // - The prestub, as part of DoBackpatch(), records any slots that are transitioned from the temporary entry point // to the method's at-the-time current, non-prestub entry point // - Any further changes to the method's entry point cause recorded slots to be backpatched in // BackpatchEntryPointSlots() // - In order for the FuncPtrStub to be backpatchable: // - After the FuncPtrStub is created and exposed, it is patched to point to the method's at-the-time current entry // point if necessary // - Any further changes to the method's entry point cause the FuncPtrStub to be backpatched in // BackpatchEntryPointSlots() // - In order for VSD entities to be backpatchable: // - A DispatchStub's entry point target is aligned and recorded for backpatching in BackpatchEntryPointSlots() // - A ResolveCacheEntry's entry point target is recorded for backpatching in BackpatchEntryPointSlots() // // Slot lifetime and management of recorded slots: // - A slot is recorded in the LoaderAllocator in which the slot is allocated, see // RecordAndBackpatchEntryPointSlot() // - An inherited slot that has a shorter lifetime than the MethodDesc, when recorded, needs to be accessible by the // MethodDesc for backpatching, so the dependent LoaderAllocator with the slot to backpatch is also recorded in the // MethodDesc's LoaderAllocator, see // MethodDescBackpatchInfo::AddDependentLoaderAllocator_Locked() // - At the end of a LoaderAllocator's lifetime, the LoaderAllocator is unregistered from dependency LoaderAllocators, // see MethodDescBackpatchInfoTracker::ClearDependencyMethodDescEntryPointSlots() // - When a MethodDesc's entry point changes, backpatching also includes iterating over recorded dependent // LoaderAllocators to backpatch the relevant slots recorded there, see BackpatchEntryPointSlots() // // Synchronization between entry point changes and backpatching slots // - A global lock is used to ensure that all recorded backpatchable slots corresponding to a MethodDesc point to the // same entry point, see DoBackpatch() and BackpatchEntryPointSlots() for examples // // Typical slot value transitions when tiered compilation is enabled: // - Initially, the slot contains the method's temporary entry point, which always points to the prestub (see above) // - After the tier 0 JIT completes, the slot is transitioned to the tier 0 entry point, and the slot is recorded for // backpatching // - When tiered compilation decides to begin counting calls for the method, the slot is transitioned to the temporary // entry point (call counting currently happens in the prestub) // - When the call count reaches the tier 1 threshold, the slot is transitioned to the tier 0 entry point and a tier 1 // JIT is scheduled // - After the tier 1 JIT completes, the slot is transitioned to the tier 1 entry point return // Policy g_pConfig->BackpatchEntryPointSlots() && // Functional requirement - The entry point must be through a vtable slot in the MethodTable that may be recorded // and backpatched IsVtableSlot() && // Functional requirement - True interface methods are not backpatched, see DoBackpatch() !(IsInterface() && !IsStatic()); #else // Entry point slot backpatch is disabled for CrossGen return false; #endif } public: bool MayHaveEntryPointSlotsToBackpatch() { WRAPPER_NO_CONTRACT; // This is the only case currently. In the future, a method that does not have a vtable slot may still record entry // point slots that need to be backpatched on entry point change, and in such cases the conditions here may be changed. return IsVersionableWithVtableSlotBackpatch(); } private: // Gets the prestub entry point to use for backpatching. Entry point slot backpatch uses this entry point as an oracle to // determine if the entry point actually changed and warrants backpatching. PCODE GetPrestubEntryPointToBackpatch() { WRAPPER_NO_CONTRACT; _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); // At the moment this is the only case, see MayHaveEntryPointSlotsToBackpatch() _ASSERTE(IsVersionableWithVtableSlotBackpatch()); return GetTemporaryEntryPoint(); } // Gets the entry point stored in the primary storage location for backpatching. Entry point slot backpatch uses this entry // point as an oracle to determine if the entry point actually changed and warrants backpatching. PCODE GetEntryPointToBackpatch_Locked() { WRAPPER_NO_CONTRACT; _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); // At the moment this is the only case, see MayHaveEntryPointSlotsToBackpatch() _ASSERTE(IsVersionableWithVtableSlotBackpatch()); return GetMethodEntryPoint(); } // Sets the entry point stored in the primary storage location for backpatching. Entry point slot backpatch uses this entry // point as an oracle to determine if the entry point actually changed and warrants backpatching. void SetEntryPointToBackpatch_Locked(PCODE entryPoint) { WRAPPER_NO_CONTRACT; _ASSERTE(MethodDescBackpatchInfoTracker::IsLockOwnedByCurrentThread()); _ASSERTE(entryPoint != NULL); _ASSERTE(MayHaveEntryPointSlotsToBackpatch()); // At the moment this is the only case, see MayHaveEntryPointSlotsToBackpatch(). If that changes in the future, this // function may have to handle other cases in SetCodeEntryPoint(). _ASSERTE(IsVersionableWithVtableSlotBackpatch()); SetMethodEntryPoint(entryPoint); } public: void RecordAndBackpatchEntryPointSlot(LoaderAllocator *slotLoaderAllocator, TADDR slot, EntryPointSlots::SlotType slotType); private: void RecordAndBackpatchEntryPointSlot_Locked(LoaderAllocator *mdLoaderAllocator, LoaderAllocator *slotLoaderAllocator, TADDR slot, EntryPointSlots::SlotType slotType, PCODE currentEntryPoint); public: bool TryBackpatchEntryPointSlotsFromPrestub(PCODE entryPoint) { WRAPPER_NO_CONTRACT; return TryBackpatchEntryPointSlots(entryPoint, false /* isPrestubEntryPoint */, true /* onlyFromPrestubEntryPoint */); } void BackpatchEntryPointSlots(PCODE entryPoint) { WRAPPER_NO_CONTRACT; BackpatchEntryPointSlots(entryPoint, false /* isPrestubEntryPoint */); } void BackpatchToResetEntryPointSlots() { WRAPPER_NO_CONTRACT; BackpatchEntryPointSlots(GetPrestubEntryPointToBackpatch(), true /* isPrestubEntryPoint */); } private: void BackpatchEntryPointSlots(PCODE entryPoint, bool isPrestubEntryPoint) { WRAPPER_NO_CONTRACT; #ifdef _DEBUG // workaround for release build unused variable error bool success = #endif TryBackpatchEntryPointSlots(entryPoint, isPrestubEntryPoint, false /* onlyFromPrestubEntryPoint */); _ASSERTE(success); } bool TryBackpatchEntryPointSlots(PCODE entryPoint, bool isPrestubEntryPoint, bool onlyFromPrestubEntryPoint); public: void TrySetInitialCodeEntryPointForVersionableMethod(PCODE entryPoint, bool mayHaveEntryPointSlotsToBackpatch); void SetCodeEntryPoint(PCODE entryPoint); void ResetCodeEntryPoint(); void ResetCodeEntryPointForEnC(); public: bool RequestedAggressiveOptimization() { WRAPPER_NO_CONTRACT; return IsIL() && // only makes sense for IL methods, and this implies !IsNoMetadata() IsMiAggressiveOptimization(GetImplAttrs()); } // Does this method force the NativeCodeSlot to stay fixed after it // is first initialized to native code? Consumers of the native code // pointer need to be very careful about if and when they cache it // if it is not stable. // // The stability of the native code pointer is separate from the // stability of the entrypoint. A stable entrypoint can be a precode // which dispatches to an unstable native code pointer. BOOL IsNativeCodeStableAfterInit() { LIMITED_METHOD_DAC_CONTRACT; #if defined(FEATURE_JIT_PITCHING) if (IsPitchable()) return false; #endif return !IsVersionable() && !IsEnCMethod(); } //Is this method currently pointing to native code that will never change? BOOL IsPointingToStableNativeCode() { LIMITED_METHOD_DAC_CONTRACT; if (!IsNativeCodeStableAfterInit()) return FALSE; return IsPointingToNativeCode(); } // Note: We are skipping the prestub based on addition information from the JIT. // (e.g. that the call is on same this ptr or that the this ptr is not null). // Thus we can end up with a running NGENed method for which IsPointingToNativeCode is false! BOOL IsPointingToNativeCode() { LIMITED_METHOD_DAC_CONTRACT; if (!HasStableEntryPoint()) return FALSE; if (!HasPrecode()) return TRUE; return GetPrecode()->IsPointingToNativeCode(GetNativeCode()); } // Be careful about races with profiler when using this method. The profiler can // replace preimplemented code of the method with jitted code. // Avoid code patterns like if(HasNativeCode()) { PCODE pCode = GetNativeCode(); ... }. // Use PCODE pCode = GetNativeCode(); if (pCode != NULL) { ... } instead. BOOL HasNativeCode() { LIMITED_METHOD_DAC_CONTRACT; return GetNativeCode() != NULL; } BOOL SetNativeCodeInterlocked(PCODE addr, PCODE pExpected = NULL); PTR_PCODE GetAddrOfNativeCodeSlot(); BOOL MayHaveNativeCode(); ULONG GetRVA(); public: // Returns address of code to call. The address is good for one immediate invocation only. // Use GetMultiCallableAddrOfCode() to get address that can be invoked multiple times. // // Only call GetSingleCallableAddrOfCode() if you can guarantee that no virtualization is // necessary, or if you can guarantee that it has already happened. For instance, the frame of a // stackwalk has obviously been virtualized as much as it will be. // PCODE GetSingleCallableAddrOfCode() { WRAPPER_NO_CONTRACT; _ASSERTE(!IsGenericMethodDefinition()); return GetMethodEntryPoint(); } // This one is used to implement "ldftn". PCODE GetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags = CORINFO_ACCESS_LDFTN); // Internal version of GetMultiCallableAddrOfCode. Returns NULL if attempt to acquire directly // callable entrypoint would result into unnecesary allocation of indirection stub. Caller should use // indirect call via slot in this case. PCODE TryGetMultiCallableAddrOfCode(CORINFO_ACCESS_FLAGS accessFlags); // These return an address after resolving "virtual methods" correctly, including any // handling of context proxies, other thunking layers and also including // instantiation of generic virtual methods if required. // The first one returns an address which cannot be invoked // multiple times. Use GetMultiCallableAddrOfVirtualizedCode() for that. // // The code that implements these was taken verbatim from elsewhere in the // codebase, and there may be subtle differences between the two, e.g. with // regard to thunking. PCODE GetSingleCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeHandle staticTH); PCODE GetMultiCallableAddrOfVirtualizedCode(OBJECTREF *orThis, TypeHandle staticTH); // The current method entrypoint. It is simply the value of the current method slot. // GetMethodEntryPoint() should be used to get an opaque method entrypoint, for instance // when copying or searching vtables. It should not be used to get address to call. // // GetSingleCallableAddrOfCode() and GetStableEntryPoint() are aliases with stricter preconditions. // Use of these aliases is as appropriate. // PCODE GetMethodEntryPoint(); //******************************************************************************* // Returns the address of the native code. PCODE GetNativeCode(); #if defined(FEATURE_JIT_PITCHING) bool IsPitchable(); void PitchNativeCode(); #endif //================================================================ // FindOrCreateAssociatedMethodDesc // // You might think that every MethodDef in the metadata had // one and only one MethodDesc in the source... Well, how wrong // you are :-) // // Some MethodDefs can be associated with more than one MethodDesc. // This can happen because: // (1) The method is an instance method in a struct, which // can be called with either an unboxed "this" pointer or // a "boxed" this pointer.. There is a different MethodDesc for // these two cases. // (2) The method is a generic method. There is one primary // MethodDesc for each generic method, called the GenericMethodDefinition. // This is the one stored in the vtable. New MethodDescs will // be created for instantiations according to the scheme described // elsewhere in this file. // There are also various other stubs associated with MethodDesc, but these stubs // do not result in new MethodDescs. // // All of the above MethodDescs are called "associates" of the primary MethodDesc. // Note that the primary MethodDesc for an instance method on a struct is // the one that accepts an unboxed "this" pointer. // // FindOrCreateAssociatedMethodDesc is the _primary_ routine // in the codebase for getting an associated MethodDesc from a primary MethodDesc. // You should treat this routine as a black box, i.e. just specify the right // parameters and it will do all the hard work of finding the right // MethodDesc for you. // // This routine can be used for "normal" MethodDescs that have nothing // to do with generics. For example, if you need an BoxedEntryPointStub then // you may call this routine to get it. It may also return // the Primary MethodDesc itself if that MethodDesc is suitable given the // parameters. // // NOTE: The behaviour of this method is not thoroughly defined // if pPrimaryMD is not really a "primary" MD. Primary MDs are: // 1. Primary MDs are:never a generic method instantiation, // but are instead the "uninstantiated" generic MD. // 2. Primary MDs are never instantiating stubs. // 3. Primary MDs are never BoxedEntryPointStubs. // // We assert if cases (1) or (2) occur. However, some places in the // code pass in an BoxedEntryPointStub when pPrimaryMD is a virtual/interface method on // a struct. These cases are confusing and should be rooted // out: it is probably preferable in terms // of correctness to pass in the the corresponding non-unboxing MD. // // allowCreate may be set to FALSE to enforce that the method searched // should already be in existence - thus preventing creation and GCs during // inappropriate times. // static MethodDesc* FindOrCreateAssociatedMethodDesc(MethodDesc* pPrimaryMD, MethodTable *pExactMT, BOOL forceBoxedEntryPoint, Instantiation methodInst, BOOL allowInstParam, BOOL forceRemotableMethod = FALSE, BOOL allowCreate = TRUE, ClassLoadLevel level = CLASS_LOADED); // Normalize methoddesc for reflection static MethodDesc* FindOrCreateAssociatedMethodDescForReflection(MethodDesc *pMethod, TypeHandle instType, Instantiation methodInst); // True if a MD is an funny BoxedEntryPointStub (not from the method table) or // an MD for a generic instantiation...In other words the MethodDescs and the // MethodTable are guaranteed to be "tightly-knit", i.e. if one is present in // an NGEN image then then other will be, and if one is "used" at runtime then // the other will be too. BOOL IsTightlyBoundToMethodTable(); // For method descriptors which are non-generic this is the identity function // (except it returns the primary descriptor, not an BoxedEntryPointStub). // // For a generic method definition C<T>.m<U> this will return // C<__Canon>.m<__Canon> // // allowCreate may be set to FALSE to enforce that the method searched // should already be in existence - thus preventing creation and GCs during // inappropriate times. // MethodDesc * FindOrCreateTypicalSharedInstantiation(BOOL allowCreate = TRUE); // Given an object and an method descriptor for an instantiation of // a virtualized generic method, get the // corresponding instantiation of the target of a call. MethodDesc *ResolveGenericVirtualMethod(OBJECTREF *orThis); private: ReturnKind ParseReturnKindFromSig(INDEBUG(bool supportStringConstructors = false)); public: // This method is used to restore ReturnKind using the class handle, it is fully supported only on x64 Ubuntu, // other platforms do not support multi-reg return case with pointers. // Use this method only when you can't hit this case // (like ComPlusMethodFrame::GcScanRoots) or when you can tolerate RT_Illegal return. // Also, on the other platforms for a single field struct return case // the function can't distinguish RT_Object and RT_ByRef. ReturnKind GetReturnKind(INDEBUG(bool supportStringConstructors = false)); public: // In general you don't want to call GetCallTarget - you want to // use either "call" directly or call MethodDesc::GetSingleCallableAddrOfVirtualizedCode and // then "CallTarget". Note that GetCallTarget is approximately GetSingleCallableAddrOfCode // but the additional wierdness that class-based-virtual calls (but not interface calls nor calls // on proxies) are resolved to their target. Because of this, many clients of "Call" (see above) // end up doing some resolution for interface calls and/or proxies themselves. PCODE GetCallTarget(OBJECTREF* pThisObj, TypeHandle ownerType = TypeHandle()); MethodImpl *GetMethodImpl(); TADDR GetFixupList(); void CheckRestore(ClassLoadLevel level = CLASS_LOADED); //================================================================ // Running the Prestub preparation step. // The stub produced by prestub requires method desc to be passed // in dedicated register. Used to implement stubs shared between // MethodDescs (e.g. PInvoke stubs) BOOL RequiresMethodDescCallingConvention(BOOL fEstimateForChunk = FALSE); // Returns true if the method has to have stable entrypoint always. BOOL RequiresStableEntryPoint(BOOL fEstimateForChunk = FALSE); // // Backpatch method slots // // Arguments: // pMT - cached value of code:MethodDesc::GetMethodTable() // pDispatchingMT - method table of the object that the method is being dispatched on, can be NULL. // fFullBackPatch - indicates whether to patch all possible slots, including the ones // expensive to patch // // Return value: // stable entry point (code:MethodDesc::GetStableEntryPoint()) // PCODE DoBackpatch(MethodTable * pMT, MethodTable * pDispatchingMT, BOOL fFullBackPatch); PCODE DoPrestub(MethodTable *pDispatchingMT, CallerGCMode callerGCMode = CallerGCMode::Unknown); VOID GetMethodInfo(SString &namespaceOrClassName, SString &methodName, SString &methodSignature); VOID GetMethodInfoWithNewSig(SString &namespaceOrClassName, SString &methodName, SString &methodSignature); VOID GetMethodInfoNoSig(SString &namespaceOrClassName, SString &methodName); VOID GetFullMethodInfo(SString& fullMethodSigName); typedef void (*WalkValueTypeParameterFnPtr)(Module *pModule, mdToken token, Module *pDefModule, mdToken tkDefToken, const SigParser *ptr, SigTypeContext *pTypeContext, void *pData); void WalkValueTypeParameters(MethodTable *pMT, WalkValueTypeParameterFnPtr function, void *pData); void PrepareForUseAsADependencyOfANativeImage() { WRAPPER_NO_CONTRACT; if (!HaveValueTypeParametersBeenWalked()) PrepareForUseAsADependencyOfANativeImageWorker(); } void PrepareForUseAsAFunctionPointer(); private: void PrepareForUseAsADependencyOfANativeImageWorker(); //================================================================ // The actual data stored in a MethodDesc follows. protected: enum { // There are flags available for use here (currently 5 flags bits are available); however, new bits are hard to come by, so any new flags bits should // have a fairly strong justification for existence. enum_flag3_TokenRemainderMask = 0x1FFF, // This must equal METHOD_TOKEN_REMAINDER_MASK calculated higher in this file. enum_flag3_ValueTypeParametersWalked = 0x2000, // Indicates that all typeref's in the signature of the method have been resolved // to typedefs (or that process failed). enum_flag3_ValueTypeParametersLoaded = 0x4000, // Indicates if the valuetype parameter types have been loaded. enum_flag3_DoesNotHaveEquivalentValuetypeParameters = 0x8000, // Indicates that we have verified that there are no equivalent valuetype parameters // for this method. }; UINT16 m_wFlags3AndTokenRemainder; BYTE m_chunkIndex; enum { // enum_flag2_HasPrecode implies that enum_flag2_HasStableEntryPoint is set. enum_flag2_HasStableEntryPoint = 0x01, // The method entrypoint is stable (either precode or actual code) enum_flag2_HasPrecode = 0x02, // Precode has been allocated for this method enum_flag2_IsUnboxingStub = 0x04, // unused = 0x08, enum_flag2_IsIntrinsic = 0x10, // Jit may expand method as an intrinsic enum_flag2_IsEligibleForTieredCompilation = 0x20, enum_flag2_RequiresCovariantReturnTypeChecking = 0x40 // unused = 0x80, }; BYTE m_bFlags2; // The slot number of this MethodDesc in the vtable array. // Note that we may store other information in the high bits if available -- // see enum_packedSlotLayout and mdcRequiresFullSlotNumber for details. WORD m_wSlotNumber; enum { enum_packedSlotLayout_SlotMask = 0x03FF, enum_packedSlotLayout_NameHashMask = 0xFC00 }; WORD m_wFlags; public: #ifdef DACCESS_COMPILE void EnumMemoryRegions(CLRDataEnumMemoryFlags flags); #endif public: inline DWORD GetClassification() const { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcClassification); } inline void SetClassification(DWORD classification) { LIMITED_METHOD_CONTRACT; _ASSERTE((m_wFlags & mdcClassification) == 0); m_wFlags |= classification; } inline BOOL HasNativeCodeSlot() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcHasNativeCodeSlot) != 0; } inline void SetHasNativeCodeSlot() { LIMITED_METHOD_CONTRACT; m_wFlags |= mdcHasNativeCodeSlot; } inline BOOL IsIntrinsic() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_IsIntrinsic) != 0; } inline void SetIsIntrinsic() { LIMITED_METHOD_CONTRACT; m_bFlags2 |= enum_flag2_IsIntrinsic; } BOOL RequiresCovariantReturnTypeChecking() { LIMITED_METHOD_DAC_CONTRACT; return (m_bFlags2 & enum_flag2_RequiresCovariantReturnTypeChecking) != 0; } void SetRequiresCovariantReturnTypeChecking() { LIMITED_METHOD_CONTRACT; m_bFlags2 |= enum_flag2_RequiresCovariantReturnTypeChecking; } static const BYTE s_ClassificationSizeTable[]; static SIZE_T GetBaseSize(DWORD classification) { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(classification < mdcClassificationCount); return s_ClassificationSizeTable[classification]; } SIZE_T GetBaseSize() { LIMITED_METHOD_DAC_CONTRACT; return GetBaseSize(GetClassification()); } SIZE_T SizeOf(); WORD InterlockedUpdateFlags3(WORD wMask, BOOL fSet); inline BOOL HaveValueTypeParametersBeenWalked() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags3AndTokenRemainder & enum_flag3_ValueTypeParametersWalked) != 0; } inline void SetValueTypeParametersWalked() { LIMITED_METHOD_CONTRACT; InterlockedUpdateFlags3(enum_flag3_ValueTypeParametersWalked, TRUE); } inline BOOL HaveValueTypeParametersBeenLoaded() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags3AndTokenRemainder & enum_flag3_ValueTypeParametersLoaded) != 0; } inline void SetValueTypeParametersLoaded() { LIMITED_METHOD_CONTRACT; InterlockedUpdateFlags3(enum_flag3_ValueTypeParametersLoaded, TRUE); } #ifdef FEATURE_TYPEEQUIVALENCE inline BOOL DoesNotHaveEquivalentValuetypeParameters() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags3AndTokenRemainder & enum_flag3_DoesNotHaveEquivalentValuetypeParameters) != 0; } inline void SetDoesNotHaveEquivalentValuetypeParameters() { LIMITED_METHOD_CONTRACT; InterlockedUpdateFlags3(enum_flag3_DoesNotHaveEquivalentValuetypeParameters, TRUE); } #endif // FEATURE_TYPEEQUIVALENCE // // Optional MethodDesc slots appear after the end of base MethodDesc in this order: // // class MethodImpl; // Present if HasMethodImplSlot() is true typedef PCODE NonVtableSlot; // Present if HasNonVtableSlot() is true typedef PCODE NativeCodeSlot; // Present if HasNativeCodeSlot() is true // Stub Dispatch code public: MethodDesc *GetInterfaceMD(); // StubMethodInfo for use in creating RuntimeMethodHandles REFLECTMETHODREF GetStubMethodInfo(); PrecodeType GetPrecodeType(); // --------------------------------------------------------------------------------- // IL based Code generation pipeline // --------------------------------------------------------------------------------- #ifndef DACCESS_COMPILE public: PCODE PrepareInitialCode(CallerGCMode callerGCMode = CallerGCMode::Unknown); PCODE PrepareCode(PrepareCodeConfig* pConfig); private: PCODE PrepareILBasedCode(PrepareCodeConfig* pConfig); PCODE GetPrecompiledCode(PrepareCodeConfig* pConfig, bool shouldTier); PCODE GetPrecompiledR2RCode(PrepareCodeConfig* pConfig); PCODE GetMulticoreJitCode(PrepareCodeConfig* pConfig, bool* pWasTier0); COR_ILMETHOD_DECODER* GetAndVerifyILHeader(PrepareCodeConfig* pConfig, COR_ILMETHOD_DECODER* pIlDecoderMemory); COR_ILMETHOD_DECODER* GetAndVerifyMetadataILHeader(PrepareCodeConfig* pConfig, COR_ILMETHOD_DECODER* pIlDecoderMemory); COR_ILMETHOD_DECODER* GetAndVerifyNoMetadataILHeader(); PCODE JitCompileCode(PrepareCodeConfig* pConfig); PCODE JitCompileCodeLockedEventWrapper(PrepareCodeConfig* pConfig, JitListLockEntry* pEntry); PCODE JitCompileCodeLocked(PrepareCodeConfig* pConfig, JitListLockEntry* pLockEntry, ULONG* pSizeOfCode, CORJIT_FLAGS* pFlags); #endif // DACCESS_COMPILE #ifdef HAVE_GCCOVER private: static CrstStatic m_GCCoverCrst; public: static void Init(); #endif }; #ifndef DACCESS_COMPILE class PrepareCodeConfig { public: PrepareCodeConfig(); PrepareCodeConfig(NativeCodeVersion nativeCodeVersion, BOOL needsMulticoreJitNotification, BOOL mayUsePrecompiledCode); MethodDesc* GetMethodDesc() const { LIMITED_METHOD_CONTRACT; return m_pMethodDesc; } NativeCodeVersion GetCodeVersion() const { LIMITED_METHOD_CONTRACT; return m_nativeCodeVersion; } BOOL NeedsMulticoreJitNotification(); BOOL MayUsePrecompiledCode(); virtual PCODE IsJitCancellationRequested(); virtual BOOL SetNativeCode(PCODE pCode, PCODE * ppAlternateCodeToUse); virtual COR_ILMETHOD* GetILHeader(); virtual CORJIT_FLAGS GetJitCompilationFlags(); #ifdef FEATURE_ON_STACK_REPLACEMENT virtual unsigned GetILOffset() const { return 0; } #endif BOOL ProfilerRejectedPrecompiledCode(); BOOL ReadyToRunRejectedPrecompiledCode(); void SetProfilerRejectedPrecompiledCode(); void SetReadyToRunRejectedPrecompiledCode(); CallerGCMode GetCallerGCMode(); void SetCallerGCMode(CallerGCMode mode); public: bool IsForMulticoreJit() const { WRAPPER_NO_CONTRACT; #ifdef FEATURE_MULTICOREJIT return m_isForMulticoreJit; #else return false; #endif } #ifdef FEATURE_MULTICOREJIT protected: void SetIsForMulticoreJit() { WRAPPER_NO_CONTRACT; m_isForMulticoreJit = true; } #endif #ifdef FEATURE_CODE_VERSIONING public: bool ProfilerMayHaveActivatedNonDefaultCodeVersion() const { WRAPPER_NO_CONTRACT; return m_profilerMayHaveActivatedNonDefaultCodeVersion; } void SetProfilerMayHaveActivatedNonDefaultCodeVersion() { WRAPPER_NO_CONTRACT; m_profilerMayHaveActivatedNonDefaultCodeVersion = true; } bool GeneratedOrLoadedNewCode() const { WRAPPER_NO_CONTRACT; return m_generatedOrLoadedNewCode; } void SetGeneratedOrLoadedNewCode() { WRAPPER_NO_CONTRACT; _ASSERTE(!m_generatedOrLoadedNewCode); m_generatedOrLoadedNewCode = true; } #endif #ifdef FEATURE_TIERED_COMPILATION public: bool WasTieringDisabledBeforeJitting() const { WRAPPER_NO_CONTRACT; return m_wasTieringDisabledBeforeJitting; } void SetWasTieringDisabledBeforeJitting() { WRAPPER_NO_CONTRACT; _ASSERTE(GetMethodDesc()->IsEligibleForTieredCompilation()); m_wasTieringDisabledBeforeJitting = true; } bool ShouldCountCalls() const { WRAPPER_NO_CONTRACT; return m_shouldCountCalls; } void SetShouldCountCalls() { WRAPPER_NO_CONTRACT; _ASSERTE(!m_shouldCountCalls); m_shouldCountCalls = true; } #endif public: enum class JitOptimizationTier : UINT8 { Unknown, // to identify older runtimes that would send this value MinOptJitted, Optimized, QuickJitted, OptimizedTier1, OptimizedTier1OSR, Count }; static JitOptimizationTier GetJitOptimizationTier(PrepareCodeConfig *config, MethodDesc *methodDesc); static const char *GetJitOptimizationTierStr(PrepareCodeConfig *config, MethodDesc *methodDesc); bool JitSwitchedToMinOpt() const { LIMITED_METHOD_CONTRACT; return m_jitSwitchedToMinOpt; } void SetJitSwitchedToMinOpt() { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_TIERED_COMPILATION m_jitSwitchedToOptimized = false; #endif m_jitSwitchedToMinOpt = true; } #ifdef FEATURE_TIERED_COMPILATION public: bool JitSwitchedToOptimized() const { LIMITED_METHOD_CONTRACT; return m_jitSwitchedToOptimized; } void SetJitSwitchedToOptimized() { LIMITED_METHOD_CONTRACT; if (!m_jitSwitchedToMinOpt) { m_jitSwitchedToOptimized = true; } } bool FinalizeOptimizationTierForTier0Load(); bool FinalizeOptimizationTierForTier0LoadOrJit(); #endif public: PrepareCodeConfig *GetNextInSameThread() const { LIMITED_METHOD_CONTRACT; return m_nextInSameThread; } void SetNextInSameThread(PrepareCodeConfig *config) { LIMITED_METHOD_CONTRACT; _ASSERTE(config == nullptr || m_nextInSameThread == nullptr); m_nextInSameThread = config; } protected: MethodDesc* m_pMethodDesc; NativeCodeVersion m_nativeCodeVersion; BOOL m_needsMulticoreJitNotification; BOOL m_mayUsePrecompiledCode; BOOL m_ProfilerRejectedPrecompiledCode; BOOL m_ReadyToRunRejectedPrecompiledCode; CallerGCMode m_callerGCMode; #ifdef FEATURE_MULTICOREJIT private: bool m_isForMulticoreJit; #endif #ifdef FEATURE_CODE_VERSIONING private: bool m_profilerMayHaveActivatedNonDefaultCodeVersion; bool m_generatedOrLoadedNewCode; #endif #ifdef FEATURE_TIERED_COMPILATION private: bool m_wasTieringDisabledBeforeJitting; bool m_shouldCountCalls; #endif private: bool m_jitSwitchedToMinOpt; // when it wasn't requested #ifdef FEATURE_TIERED_COMPILATION bool m_jitSwitchedToOptimized; // when a different tier was requested #endif PrepareCodeConfig *m_nextInSameThread; }; #ifdef FEATURE_CODE_VERSIONING class VersionedPrepareCodeConfig : public PrepareCodeConfig { public: VersionedPrepareCodeConfig(); VersionedPrepareCodeConfig(NativeCodeVersion codeVersion); HRESULT FinishConfiguration(); virtual PCODE IsJitCancellationRequested(); virtual COR_ILMETHOD* GetILHeader(); virtual CORJIT_FLAGS GetJitCompilationFlags(); private: ILCodeVersion m_ilCodeVersion; }; class PrepareCodeConfigBuffer { private: UINT8 m_buffer[sizeof(VersionedPrepareCodeConfig)]; public: PrepareCodeConfigBuffer(NativeCodeVersion codeVersion); public: PrepareCodeConfig *GetConfig() const { WRAPPER_NO_CONTRACT; return (PrepareCodeConfig *)m_buffer; } PrepareCodeConfigBuffer(const PrepareCodeConfigBuffer &) = delete; PrepareCodeConfigBuffer &operator =(const PrepareCodeConfigBuffer &) = delete; }; #endif // FEATURE_CODE_VERSIONING class MulticoreJitPrepareCodeConfig : public PrepareCodeConfig { private: bool m_wasTier0; public: MulticoreJitPrepareCodeConfig(MethodDesc* pMethod); bool WasTier0() const { LIMITED_METHOD_CONTRACT; return m_wasTier0; } void SetWasTier0() { LIMITED_METHOD_CONTRACT; m_wasTier0 = true; } virtual BOOL SetNativeCode(PCODE pCode, PCODE * ppAlternateCodeToUse) override; }; #endif // DACCESS_COMPILE /******************************************************************/ // A code:MethodDescChunk is a container that holds one or more code:MethodDesc. Logically it is just // compression. Basically fields that are common among methods descs in the chunk are stored in the chunk // and the MethodDescs themselves just store and index that allows them to find their Chunk. Semantically // a code:MethodDescChunk is just a set of code:MethodDesc. class MethodDescChunk { friend class MethodDesc; friend class CheckAsmOffsets; enum { enum_flag_TokenRangeMask = 0x07FF, // This must equal METHOD_TOKEN_RANGE_MASK calculated higher in this file // These are seperate to allow the flags space available and used to be obvious here // and for the logic that splits the token to be algorithmically generated based on the // #define enum_flag_HasCompactEntrypoints = 0x4000, // Compact temporary entry points // unused = 0x8000, }; public: // // Allocates methodDescCount identical MethodDescs in smallest possible number of chunks. // If methodDescCount is zero, one chunk with maximum number of MethodDescs is allocated. // static MethodDescChunk *CreateChunk(LoaderHeap *pHeap, DWORD methodDescCount, DWORD classification, BOOL fNonVtableSlot, BOOL fNativeCodeSlot, BOOL fComPlusCallInfo, MethodTable *initialMT, class AllocMemTracker *pamTracker); TADDR GetTemporaryEntryPoints() { LIMITED_METHOD_CONTRACT; return *(dac_cast<DPTR(TADDR)>(this) - 1); } PCODE GetTemporaryEntryPoint(int index); void EnsureTemporaryEntryPointsCreated(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (GetTemporaryEntryPoints() == NULL) CreateTemporaryEntryPoints(pLoaderAllocator, pamTracker); } void CreateTemporaryEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker); #ifdef HAS_COMPACT_ENTRYPOINTS // // There two implementation options for temporary entrypoints: // // (1) Compact entrypoints. They provide as dense entrypoints as possible, but can't be patched // to point to the final code. The call to unjitted method is indirect call via slot. // // (2) Precodes. The precode will be patched to point to the final code eventually, thus // the temporary entrypoint can be embedded in the code. The call to unjitted method is // direct call to direct jump. // // We use (1) for x86 and (2) for 64-bit to get the best performance on each platform. // For ARM (1) is used. TADDR AllocateCompactEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker); static MethodDesc* GetMethodDescFromCompactEntryPoint(PCODE addr, BOOL fSpeculative = FALSE); static SIZE_T SizeOfCompactEntryPoints(int count); static BOOL IsCompactEntryPointAtAddress(PCODE addr); #ifdef TARGET_ARM static int GetCompactEntryPointMaxCount (); #endif // TARGET_ARM #endif // HAS_COMPACT_ENTRYPOINTS FORCEINLINE PTR_MethodTable GetMethodTable() { LIMITED_METHOD_DAC_CONTRACT; return m_methodTable; } inline DPTR(PTR_MethodTable) GetMethodTablePtr() const { LIMITED_METHOD_DAC_CONTRACT; return dac_cast<DPTR(PTR_MethodTable)>(PTR_HOST_MEMBER_TADDR(MethodDescChunk, this, m_methodTable)); } #ifndef DACCESS_COMPILE inline void SetMethodTable(MethodTable * pMT) { LIMITED_METHOD_CONTRACT; _ASSERTE(m_methodTable == NULL); _ASSERTE(pMT != NULL); m_methodTable = pMT; } inline void SetSizeAndCount(SIZE_T sizeOfMethodDescs, COUNT_T methodDescCount) { LIMITED_METHOD_CONTRACT; _ASSERTE(FitsIn<BYTE>((sizeOfMethodDescs / MethodDesc::ALIGNMENT) - 1)); m_size = static_cast<BYTE>((sizeOfMethodDescs / MethodDesc::ALIGNMENT) - 1); _ASSERTE(SizeOf() == sizeof(MethodDescChunk) + sizeOfMethodDescs); _ASSERTE(FitsIn<BYTE>(methodDescCount - 1)); m_count = static_cast<BYTE>(methodDescCount - 1); _ASSERTE(GetCount() == methodDescCount); } void SetNextChunk(MethodDescChunk *chunk) { LIMITED_METHOD_CONTRACT; m_next = chunk; } #endif // !DACCESS_COMPILE PTR_MethodDescChunk GetNextChunk() { LIMITED_METHOD_CONTRACT; return m_next; } UINT32 GetCount() { LIMITED_METHOD_DAC_CONTRACT; return m_count + 1; } inline BOOL HasCompactEntryPoints() { LIMITED_METHOD_DAC_CONTRACT; #ifdef HAS_COMPACT_ENTRYPOINTS return (m_flagsAndTokenRange & enum_flag_HasCompactEntrypoints) != 0; #else return FALSE; #endif } inline UINT16 GetTokRange() { LIMITED_METHOD_DAC_CONTRACT; return m_flagsAndTokenRange & enum_flag_TokenRangeMask; } inline SIZE_T SizeOf() { LIMITED_METHOD_DAC_CONTRACT; return sizeof(MethodDescChunk) + (m_size + 1) * MethodDesc::ALIGNMENT; } inline MethodDesc *GetFirstMethodDesc() { LIMITED_METHOD_DAC_CONTRACT; return PTR_MethodDesc(dac_cast<TADDR>(this) + sizeof(MethodDescChunk)); } // Maximum size of one chunk (corresponts to the maximum of m_size = 0xFF) static const SIZE_T MaxSizeOfMethodDescs = 0x100 * MethodDesc::ALIGNMENT; #ifdef DACCESS_COMPILE void EnumMemoryRegions(CLRDataEnumMemoryFlags flags); #endif private: void SetHasCompactEntryPoints() { LIMITED_METHOD_CONTRACT; m_flagsAndTokenRange |= enum_flag_HasCompactEntrypoints; } void SetTokenRange(UINT16 tokenRange) { LIMITED_METHOD_CONTRACT; _ASSERTE((tokenRange & ~enum_flag_TokenRangeMask) == 0); static_assert_no_msg(enum_flag_TokenRangeMask == METHOD_TOKEN_RANGE_MASK); m_flagsAndTokenRange = (m_flagsAndTokenRange & ~enum_flag_TokenRangeMask) | tokenRange; } PTR_MethodTable m_methodTable; PTR_MethodDescChunk m_next; BYTE m_size; // The size of this chunk minus 1 (in multiples of MethodDesc::ALIGNMENT) BYTE m_count; // The number of MethodDescs in this chunk minus 1 UINT16 m_flagsAndTokenRange; // Followed by array of method descs... }; inline int MethodDesc::GetMethodDescIndex() const { LIMITED_METHOD_DAC_CONTRACT; return m_chunkIndex; } inline MethodDescChunk *MethodDesc::GetMethodDescChunk() const { LIMITED_METHOD_DAC_CONTRACT; return PTR_MethodDescChunk(dac_cast<TADDR>(this) - (sizeof(MethodDescChunk) + (GetMethodDescIndex() * MethodDesc::ALIGNMENT))); } MethodDesc* NonVirtualEntry2MethodDesc(PCODE entryPoint); // convert an entry point into a MethodDesc MethodDesc* Entry2MethodDesc(PCODE entryPoint, MethodTable *pMT); typedef DPTR(class StoredSigMethodDesc) PTR_StoredSigMethodDesc; class StoredSigMethodDesc : public MethodDesc { public: // Put the sig RVA in here - this allows us to avoid // touching the method desc table when CoreLib is prejitted. TADDR m_pSig; DWORD m_cSig; protected: // m_dwExtendedFlags is not used by StoredSigMethodDesc itself. // It is used by child classes. We allocate the space here to get // optimal layout. DWORD m_dwExtendedFlags; public: TADDR GetSigRVA() { LIMITED_METHOD_DAC_CONTRACT; return m_pSig; } bool HasStoredMethodSig(void) { LIMITED_METHOD_DAC_CONTRACT; return m_pSig != NULL; } PCCOR_SIGNATURE GetStoredMethodSig(DWORD* sigLen = NULL) { LIMITED_METHOD_DAC_CONTRACT; if (sigLen) { *sigLen = m_cSig; } #ifdef DACCESS_COMPILE return (PCCOR_SIGNATURE) DacInstantiateTypeByAddress(GetSigRVA(), m_cSig, true); #else // !DACCESS_COMPILE g_IBCLogger.LogNDirectCodeAccess(this); return (PCCOR_SIGNATURE) m_pSig; #endif // !DACCESS_COMPILE } void SetStoredMethodSig(PCCOR_SIGNATURE sig, DWORD sigBytes) { #ifndef DACCESS_COMPILE m_pSig = (TADDR)sig; m_cSig = sigBytes; #endif // !DACCESS_COMPILE } #ifdef DACCESS_COMPILE void EnumMemoryRegions(CLRDataEnumMemoryFlags flags); #endif }; //----------------------------------------------------------------------- // Operations specific to FCall methods. We use a derived class to get // the compiler involved in enforcing proper method type usage. // DO NOT ADD FIELDS TO THIS CLASS. //----------------------------------------------------------------------- class FCallMethodDesc : public MethodDesc { DWORD m_dwECallID; #ifdef TARGET_64BIT DWORD m_padding; #endif public: void SetECallID(DWORD dwID) { LIMITED_METHOD_CONTRACT; m_dwECallID = dwID; } DWORD GetECallID() { LIMITED_METHOD_CONTRACT; return m_dwECallID; } }; class HostCodeHeap; class LCGMethodResolver; typedef DPTR(LCGMethodResolver) PTR_LCGMethodResolver; class ILStubResolver; typedef DPTR(ILStubResolver) PTR_ILStubResolver; class DynamicResolver; typedef DPTR(DynamicResolver) PTR_DynamicResolver; class DynamicMethodDesc : public StoredSigMethodDesc { friend class ILStubCache; friend class ILStubState; friend class DynamicMethodTable; friend class MethodDesc; protected: PTR_CUTF8 m_pszMethodName; PTR_DynamicResolver m_pResolver; public: enum ILStubType : DWORD { StubNotSet = 0, StubCLRToNativeInterop, StubCLRToCOMInterop, StubNativeToCLRInterop, StubCOMToCLRInterop, StubStructMarshalInterop, #ifdef FEATURE_ARRAYSTUB_AS_IL StubArrayOp, #endif #ifdef FEATURE_MULTICASTSTUB_AS_IL StubMulticastDelegate, #endif StubWrapperDelegate, #ifdef FEATURE_INSTANTIATINGSTUB_AS_IL StubUnboxingIL, StubInstantiating, #endif StubTailCallStoreArgs, StubTailCallCallTarget, StubLast }; enum Flag : DWORD { // Flags for DynamicMethodDesc // Define new flags in descending order. This allows the IL type enumeration to increase naturally. FlagNone = 0x00000000, FlagPublic = 0x00000800, FlagStatic = 0x00001000, FlagRequiresCOM = 0x00002000, FlagIsLCGMethod = 0x00004000, FlagIsILStub = 0x00008000, FlagIsDelegate = 0x00010000, FlagIsCALLI = 0x00020000, FlagMask = 0x0003f800, StackArgSizeMask = 0xfffc0000, // native stack arg size for IL stubs ILStubTypeMask = ~(FlagMask | StackArgSizeMask) }; static_assert_no_msg((FlagMask & StubLast) == 0); static_assert_no_msg((StackArgSizeMask & FlagMask) == 0); // MethodDesc memory is acquired in an uninitialized state. // The first step should be to explicitly set the entire // flag state and then modify it. void InitializeFlags(DWORD flags) { m_dwExtendedFlags = flags; } bool HasFlags(DWORD flags) const { return !!(m_dwExtendedFlags & flags); } void SetFlags(DWORD flags) { m_dwExtendedFlags |= flags; } void ClearFlags(DWORD flags) { m_dwExtendedFlags = (m_dwExtendedFlags & ~flags); } ILStubType GetILStubType() const { ILStubType type = (ILStubType)(m_dwExtendedFlags & ILStubTypeMask); _ASSERTE(type == StubNotSet || HasFlags(FlagIsILStub)); return type; } void SetILStubType(ILStubType type) { _ASSERTE(HasFlags(FlagIsILStub)); m_dwExtendedFlags |= type; } public: bool IsILStub() const { LIMITED_METHOD_DAC_CONTRACT; return HasFlags(FlagIsILStub); } bool IsLCGMethod() const { LIMITED_METHOD_DAC_CONTRACT; return HasFlags(FlagIsLCGMethod); } inline PTR_DynamicResolver GetResolver(); inline PTR_LCGMethodResolver GetLCGMethodResolver(); inline PTR_ILStubResolver GetILStubResolver(); PTR_CUTF8 GetMethodName() { LIMITED_METHOD_DAC_CONTRACT; return m_pszMethodName; } // Based on the current flags, compute the equivalent as COR metadata. WORD GetAttrs() const { LIMITED_METHOD_CONTRACT; WORD asMetadata = 0; asMetadata |= HasFlags(FlagPublic) ? mdPublic : 0; asMetadata |= HasFlags(FlagStatic) ? mdStatic : 0; return asMetadata; } WORD GetNativeStackArgSize() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); return (WORD)((m_dwExtendedFlags & StackArgSizeMask) >> 16); } void SetNativeStackArgSize(WORD cbArgSize) { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); #if !defined(OSX_ARM64_ABI) _ASSERTE((cbArgSize % TARGET_POINTER_SIZE) == 0); #endif m_dwExtendedFlags = (m_dwExtendedFlags & ~StackArgSizeMask) | ((DWORD)cbArgSize << 16); } bool IsReverseStub() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); ILStubType type = GetILStubType(); return type == StubCOMToCLRInterop || type == StubNativeToCLRInterop; } bool IsStepThroughStub() const { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); bool isStepThrough = false; #ifdef FEATURE_INSTANTIATINGSTUB_AS_IL ILStubType type = GetILStubType(); isStepThrough = type == StubUnboxingIL || type == StubInstantiating; #endif // FEATURE_INSTANTIATINGSTUB_AS_IL return isStepThrough; } bool IsCLRToCOMStub() const { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); return !HasFlags(FlagStatic) && GetILStubType() == StubCLRToCOMInterop; } bool IsCOMToCLRStub() const { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); return !HasFlags(FlagStatic) && GetILStubType() == StubCOMToCLRInterop; } bool IsPInvokeStub() const { LIMITED_METHOD_CONTRACT; _ASSERTE(IsILStub()); return HasFlags(FlagStatic) && !HasFlags(FlagIsCALLI) && GetILStubType() == StubCLRToNativeInterop; } #ifdef FEATURE_MULTICASTSTUB_AS_IL bool IsMulticastStub() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); return GetILStubType() == DynamicMethodDesc::StubMulticastDelegate; } #endif bool IsWrapperDelegateStub() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); return GetILStubType() == DynamicMethodDesc::StubWrapperDelegate; } #ifdef FEATURE_INSTANTIATINGSTUB_AS_IL bool IsUnboxingILStub() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IsILStub()); return GetILStubType() == DynamicMethodDesc::StubUnboxingIL; } #endif // Whether the stub takes a context argument that is an interop MethodDesc. bool HasMDContextArg() const { LIMITED_METHOD_CONTRACT; return IsCLRToCOMStub() || (IsPInvokeStub() && !HasFlags(FlagIsDelegate)); } // // following implementations defined in DynamicMethod.cpp // void Destroy(); }; class ArrayMethodDesc : public StoredSigMethodDesc { public: // The VTABLE for an array look like // System.Object Vtable // System.Array Vtable // type[] Vtable // Get(<rank specific) // Set(<rank specific) // Address(<rank specific) // .ctor(int) // Possibly more enum { ARRAY_FUNC_GET = 0, ARRAY_FUNC_SET = 1, ARRAY_FUNC_ADDRESS = 2, ARRAY_FUNC_CTOR = 3, // Anything >= ARRAY_FUNC_CTOR is .ctor }; // Get the index of runtime provided array method DWORD GetArrayFuncIndex() { LIMITED_METHOD_DAC_CONTRACT; DWORD dwSlot = GetSlot(); DWORD dwVirtuals = GetMethodTable()->GetNumVirtuals(); _ASSERTE(dwSlot >= dwVirtuals); return dwSlot - dwVirtuals; } LPCUTF8 GetMethodName(); DWORD GetAttrs(); }; #ifdef HAS_NDIRECT_IMPORT_PRECODE typedef NDirectImportPrecode NDirectImportThunkGlue; #else // HAS_NDIRECT_IMPORT_PRECODE class NDirectImportThunkGlue { PVOID m_dummy; // Dummy field to make the alignment right public: LPVOID GetEntrypoint() { LIMITED_METHOD_CONTRACT; return NULL; } void Init(MethodDesc *pMethod) { LIMITED_METHOD_CONTRACT; } }; #endif // HAS_NDIRECT_IMPORT_PRECODE typedef DPTR(NDirectImportThunkGlue) PTR_NDirectImportThunkGlue; // // This struct consolidates the writeable parts of the NDirectMethodDesc // so that we can eventually layout a read-only NDirectMethodDesc with a pointer // to the writeable parts in an ngen image // class NDirectWriteableData { public: // The JIT generates an indirect call through this location in some cases. // Initialized to NDirectImportThunkGlue. Patched to the true target or // host interceptor stub or alignment thunk after linking. LPVOID m_pNDirectTarget; }; typedef DPTR(NDirectWriteableData) PTR_NDirectWriteableData; //----------------------------------------------------------------------- // Operations specific to NDirect methods. We use a derived class to get // the compiler involved in enforcing proper method type usage. // DO NOT ADD FIELDS TO THIS CLASS. //----------------------------------------------------------------------- class NDirectMethodDesc : public MethodDesc { public: struct temp1 { // If we are hosted, stack imbalance MDA is active, or alignment thunks are needed, // we will intercept m_pNDirectTarget. The true target is saved here. LPVOID m_pNativeNDirectTarget; // Information about the entrypoint PTR_CUTF8 m_pszEntrypointName; union { PTR_CUTF8 m_pszLibName; DWORD m_dwECallID; // ECallID for QCalls }; // The writeable part of the methoddesc. PTR_NDirectWriteableData m_pWriteableData; #ifdef HAS_NDIRECT_IMPORT_PRECODE PTR_NDirectImportThunkGlue m_pImportThunkGlue; #else // HAS_NDIRECT_IMPORT_PRECODE NDirectImportThunkGlue m_ImportThunkGlue; #endif // HAS_NDIRECT_IMPORT_PRECODE ULONG m_DefaultDllImportSearchPathsAttributeValue; // DefaultDllImportSearchPathsAttribute is saved. // Various attributes needed at runtime. WORD m_wFlags; #if defined(TARGET_X86) // Size of outgoing arguments (on stack). Note that in order to get the @n stdcall name decoration, WORD m_cbStackArgumentSize; #endif // defined(TARGET_X86) } ndirect; enum Flags { // There are two groups of flag bits here each which gets initialized // at different times. // // Group 1: The init group. // // This group is set during MethodDesc construction. No race issues // here since they are initialized before the MD is ever published // and never change after that. kEarlyBound = 0x0001, // IJW managed->unmanaged thunk. Standard [sysimport] stuff otherwise. kHasSuppressUnmanagedCodeAccess = 0x0002, kDefaultDllImportSearchPathsIsCached = 0x0004, // set if we cache attribute value. // kUnusedMask = 0x0008 // // Group 2: The runtime group. // // This group is set during runtime potentially by multiple threads // at the same time. All flags in this category has to be set via interlocked operation. // kIsMarshalingRequiredCached = 0x0010, // Set if we have cached the results of marshaling required computation kCachedMarshalingRequired = 0x0020, // The result of the marshaling required computation kNativeAnsi = 0x0040, kLastError = 0x0080, // setLastError keyword specified kNativeNoMangle = 0x0100, // nomangle keyword specified kVarArgs = 0x0200, kStdCall = 0x0400, kThisCall = 0x0800, kIsQCall = 0x1000, kDefaultDllImportSearchPathsStatus = 0x2000, // either method has custom attribute or not. kNDirectPopulated = 0x8000, // Indicate if the NDirect has been fully populated. }; // Resolve the import to the NDirect target and set it on the NDirectMethodDesc. static void* ResolveAndSetNDirectTarget(_In_ NDirectMethodDesc* pMD); // Attempt to import the NDirect target if a GC transition is suppressed. static BOOL TryResolveNDirectTargetForNoGCTransition(_In_ MethodDesc* pMD, _Out_ void** ndirectTarget); // Retrieves the cached result of marshaling required computation, or performs the computation // if the result is not cached yet. BOOL MarshalingRequired() { STANDARD_VM_CONTRACT; if ((ndirect.m_wFlags & kIsMarshalingRequiredCached) == 0) { // Compute the flag and cache the result InterlockedSetNDirectFlags(kIsMarshalingRequiredCached | (ComputeMarshalingRequired() ? kCachedMarshalingRequired : 0)); } _ASSERTE((ndirect.m_wFlags & kIsMarshalingRequiredCached) != 0); return (ndirect.m_wFlags & kCachedMarshalingRequired) != 0; } BOOL ComputeMarshalingRequired(); // Atomically set specified flags. Only setting of the bits is supported. void InterlockedSetNDirectFlags(WORD wFlags); void SetIsEarlyBound() { LIMITED_METHOD_CONTRACT; ndirect.m_wFlags |= kEarlyBound; } BOOL IsEarlyBound() { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kEarlyBound) != 0; } BOOL IsNativeAnsi() const { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kNativeAnsi) != 0; } BOOL IsNativeNoMangled() const { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kNativeNoMangle) != 0; } PTR_CUTF8 GetLibNameRaw() { LIMITED_METHOD_DAC_CONTRACT; return ndirect.m_pszLibName; } #ifndef DACCESS_COMPILE LPCUTF8 GetLibName() const { LIMITED_METHOD_CONTRACT; return IsQCall() ? "QCall" : ndirect.m_pszLibName; } #endif // !DACCESS_COMPILE PTR_CUTF8 GetEntrypointName() const { LIMITED_METHOD_DAC_CONTRACT; return ndirect.m_pszEntrypointName; } BOOL IsVarArgs() const { LIMITED_METHOD_DAC_CONTRACT; return (ndirect.m_wFlags & kVarArgs) != 0; } BOOL IsStdCall() const { LIMITED_METHOD_DAC_CONTRACT; return (ndirect.m_wFlags & kStdCall) != 0; } BOOL IsThisCall() const { LIMITED_METHOD_DAC_CONTRACT; return (ndirect.m_wFlags & kThisCall) != 0; } // Returns TRUE if this MethodDesc is internal call from CoreLib to VM BOOL IsQCall() const { LIMITED_METHOD_DAC_CONTRACT; return (ndirect.m_wFlags & kIsQCall) != 0; } BOOL HasDefaultDllImportSearchPathsAttribute(); BOOL IsDefaultDllImportSearchPathsAttributeCached() { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kDefaultDllImportSearchPathsIsCached) != 0; } BOOL IsPopulated() { LIMITED_METHOD_CONTRACT; return (ndirect.m_wFlags & kNDirectPopulated) != 0; } ULONG DefaultDllImportSearchPathsAttributeCachedValue() { LIMITED_METHOD_CONTRACT; return ndirect.m_DefaultDllImportSearchPathsAttributeValue & 0xFFFFFFFD; } BOOL DllImportSearchAssemblyDirectory() { LIMITED_METHOD_CONTRACT; return (ndirect.m_DefaultDllImportSearchPathsAttributeValue & 0x2) != 0; } PTR_NDirectWriteableData GetWriteableData() const { LIMITED_METHOD_DAC_CONTRACT; return ndirect.m_pWriteableData; } PTR_NDirectImportThunkGlue GetNDirectImportThunkGlue() { LIMITED_METHOD_DAC_CONTRACT; return ndirect.m_pImportThunkGlue; } LPVOID GetNDirectTarget() { LIMITED_METHOD_CONTRACT; _ASSERTE(IsNDirect()); return GetWriteableData()->m_pNDirectTarget; } LPVOID GetNativeNDirectTarget() { LIMITED_METHOD_CONTRACT; _ASSERTE(IsNDirect()); _ASSERTE_IMPL(!NDirectTargetIsImportThunk()); LPVOID pNativeNDirectTarget = ndirect.m_pNativeNDirectTarget; if (pNativeNDirectTarget != NULL) return pNativeNDirectTarget; return GetNDirectTarget(); } VOID SetNDirectTarget(LPVOID pTarget); #ifndef DACCESS_COMPILE BOOL NDirectTargetIsImportThunk() { WRAPPER_NO_CONTRACT; _ASSERTE(IsNDirect()); return (GetNDirectTarget() == GetNDirectImportThunkGlue()->GetEntrypoint()); } #endif // !DACCESS_COMPILE // Find the entry point name and function address // based on the module and data from NDirectMethodDesc // LPVOID FindEntryPoint(NATIVE_LIBRARY_HANDLE hMod); #ifdef TARGET_WINDOWS private: FARPROC FindEntryPointWithMangling(NATIVE_LIBRARY_HANDLE mod, PTR_CUTF8 entryPointName); FARPROC FindEntryPointWithSuffix(NATIVE_LIBRARY_HANDLE mod, PTR_CUTF8 entryPointName, char suffix); #endif public: void SetStackArgumentSize(WORD cbDstBuffer, CorInfoCallConvExtension unmgdCallConv) { LIMITED_METHOD_CONTRACT; #if defined(TARGET_X86) // thiscall passes the this pointer in ECX if (unmgdCallConv == CorInfoCallConvExtension::Thiscall) { _ASSERTE(cbDstBuffer >= sizeof(SLOT)); cbDstBuffer -= sizeof(SLOT); } // Don't write to the field if it's already initialized to avoid creating private pages (NGEN) if (ndirect.m_cbStackArgumentSize == 0xFFFF) { ndirect.m_cbStackArgumentSize = cbDstBuffer; } else { _ASSERTE(ndirect.m_cbStackArgumentSize == cbDstBuffer); } #endif // defined(TARGET_X86) } #if defined(TARGET_X86) void EnsureStackArgumentSize(); WORD GetStackArgumentSize() const { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(ndirect.m_cbStackArgumentSize != 0xFFFF); // If we have a methoddesc, stackArgSize is the number of bytes of // the outgoing marshalling buffer. return ndirect.m_cbStackArgumentSize; } #endif // defined(TARGET_X86) VOID InitEarlyBoundNDirectTarget(); // In AppDomains, we can trigger declarer's cctor when we link the P/Invoke, // which takes care of inlined calls as well. See code:NDirect.NDirectLink. // Although the cctor is guaranteed to run in the shared domain before the // target is invoked, we will trigger it at link time as well because linking // may depend on it - cctor may change the target DLL, DLL search path etc. BOOL IsClassConstructorTriggeredAtLinkTime() { LIMITED_METHOD_CONTRACT; MethodTable * pMT = GetMethodTable(); // Try to avoid touching the EEClass if possible if (pMT->IsClassPreInited()) return FALSE; return !pMT->GetClass()->IsBeforeFieldInit(); } }; //class NDirectMethodDesc //----------------------------------------------------------------------- // Operations specific to EEImplCall methods. We use a derived class to get // the compiler involved in enforcing proper method type usage. // // For now, the only EE impl is the delegate Invoke method. If we // add other EE impl types in the future, may need a discriminator // field here. //----------------------------------------------------------------------- class EEImplMethodDesc : public StoredSigMethodDesc { }; #ifdef FEATURE_COMINTEROP // This is the extra information needed to be associated with a method in order to use it for // CLR->COM calls. It is currently used by code:ComPlusCallMethodDesc (ordinary CLR->COM calls), // code:InstantiatedMethodDesc (optional field, CLR->COM calls on shared generic interfaces), // and code:DelegateEEClass (delegate->COM calls for WinRT). typedef DPTR(struct ComPlusCallInfo) PTR_ComPlusCallInfo; struct ComPlusCallInfo { // Returns ComPlusCallInfo associated with a method. pMD must be a ComPlusCallMethodDesc or // EEImplMethodDesc that has already been initialized for COM interop. inline static ComPlusCallInfo *FromMethodDesc(MethodDesc *pMD); enum Flags { kHasSuppressUnmanagedCodeAccess = 0x1, kRequiresArgumentWrapping = 0x2, }; union { // IL stub for CLR to COM call PCODE m_pILStub; // MethodDesc of the COM event provider to forward the call to (COM event interfaces) MethodDesc *m_pEventProviderMD; }; // method table of the interface which this represents PTR_MethodTable m_pInterfaceMT; // We need only 3 bits here, see enum Flags below. BYTE m_flags; // ComSlot() (is cached when we first invoke the method and generate // the stubs for it. There's probably a better place to do this // caching but I'm not sure I know all the places these things are // created.) WORD m_cachedComSlot; PCODE * GetAddrOfILStubField() { LIMITED_METHOD_CONTRACT; return &m_pILStub; } #ifdef TARGET_X86 // Size of outgoing arguments (on stack). This is currently used only // on x86 when we have an InlinedCallFrame representing a CLR->COM call. WORD m_cbStackArgumentSize; void InitStackArgumentSize() { LIMITED_METHOD_CONTRACT; m_cbStackArgumentSize = 0xFFFF; } void SetStackArgumentSize(WORD cbDstBuffer) { LIMITED_METHOD_CONTRACT; // Don't write to the field if it's already initialized to avoid creating private pages (NGEN) if (m_cbStackArgumentSize == 0xFFFF) { m_cbStackArgumentSize = cbDstBuffer; } _ASSERTE(m_cbStackArgumentSize == cbDstBuffer); } WORD GetStackArgumentSize() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(m_cbStackArgumentSize != 0xFFFF); return m_cbStackArgumentSize; } LPVOID m_pRetThunk; #else // TARGET_X86 void InitStackArgumentSize() { LIMITED_METHOD_CONTRACT; } void SetStackArgumentSize(WORD cbDstBuffer) { LIMITED_METHOD_CONTRACT; } #endif // TARGET_X86 }; //----------------------------------------------------------------------- // Operations specific to ComPlusCall methods. We use a derived class to get // the compiler involved in enforcing proper method type usage. // DO NOT ADD FIELDS TO THIS CLASS. //----------------------------------------------------------------------- class ComPlusCallMethodDesc : public MethodDesc { public: ComPlusCallInfo *m_pComPlusCallInfo; // initialized in code:ComPlusCall.PopulateComPlusCallMethodDesc void InitRetThunk(); void InitComEventCallInfo(); PCODE * GetAddrOfILStubField() { LIMITED_METHOD_CONTRACT; return m_pComPlusCallInfo->GetAddrOfILStubField(); } MethodTable* GetInterfaceMethodTable() { LIMITED_METHOD_CONTRACT; _ASSERTE(m_pComPlusCallInfo->m_pInterfaceMT != NULL); return m_pComPlusCallInfo->m_pInterfaceMT; } MethodDesc* GetEventProviderMD() { LIMITED_METHOD_CONTRACT; return m_pComPlusCallInfo->m_pEventProviderMD; } BOOL RequiresArgumentWrapping() { LIMITED_METHOD_CONTRACT; return (m_pComPlusCallInfo->m_flags & ComPlusCallInfo::kRequiresArgumentWrapping) != 0; } void SetLateBoundFlags(BYTE newFlags) { LIMITED_METHOD_CONTRACT; FastInterlockOr(reinterpret_cast<DWORD *>(&m_pComPlusCallInfo->m_flags), newFlags); } #ifdef TARGET_X86 WORD GetStackArgumentSize() { LIMITED_METHOD_DAC_CONTRACT; return m_pComPlusCallInfo->GetStackArgumentSize(); } void SetStackArgumentSize(WORD cbDstBuffer) { LIMITED_METHOD_CONTRACT; m_pComPlusCallInfo->SetStackArgumentSize(cbDstBuffer); } #else // TARGET_X86 void SetStackArgumentSize(WORD cbDstBuffer) { LIMITED_METHOD_CONTRACT; } #endif // TARGET_X86 }; #endif // FEATURE_COMINTEROP //----------------------------------------------------------------------- // InstantiatedMethodDesc's are used for generics and // come in four flavours, discriminated by the // low order bits of the first field: // // 00 --> GenericMethodDefinition // 01 --> UnsharedMethodInstantiation // 10 --> SharedMethodInstantiation // 11 --> WrapperStubWithInstantiations - and unboxing or instantiating stub // // A SharedMethodInstantiation descriptor extends MethodDesc // with a pointer to dictionary layout and a representative instantiation. // // A GenericMethodDefinition is the instantiation of a // generic method at its formals, used for verifying the method and // also for reflection. // // A WrapperStubWithInstantiations extends MethodDesc with: // (1) a method instantiation // (2) an "underlying" method descriptor. // A WrapperStubWithInstantiations may be placed in a MethodChunk for // a method table which specifies an exact instantiation for the class/struct. // A WrapperStubWithInstantiations may be either // an BoxedEntryPointStub or an exact-instantiation stub. // // Exact-instantiation stubs are used as extra type-context parameters. When // used as an entry, instantiating stubs pass an instantiation // dictionary on to the underlying method. These entries are required to // implement ldftn instructions on instantiations of shared generic // methods, as the InstantiatingStub's pointer does not expect a // dictionary argument; instead, it passes itself on to the shared // code as the dictionary. // // An UnsharedMethodInstantiation contains just an instantiation. // These are fully-specialized wrt method and class type parameters. // These satisfy (!IMD_IsGenericMethodDefinition() && // !IMD_IsSharedByGenericMethodInstantiations() && // !IMD_IsWrapperStubWithInstantiations()) // // Note that plain MethodDescs may represent shared code w.r.t. class type // parameters (see MethodDesc::IsSharedByGenericInstantiations()). //----------------------------------------------------------------------- class InstantiatedMethodDesc : public MethodDesc { public: // All varities of InstantiatedMethodDesc's support this method. BOOL IMD_HasMethodInstantiation() { LIMITED_METHOD_DAC_CONTRACT; if (IMD_IsGenericMethodDefinition()) return TRUE; else return m_pPerInstInfo != NULL; } // All varieties of InstantiatedMethodDesc's support this method. Instantiation IMD_GetMethodInstantiation() { LIMITED_METHOD_DAC_CONTRACT; // No lock needed here. In the case of a generic dictionary expansion, the values of the old dictionary // slots are copied to the newly allocated dictionary, and the old dictionary is kept around. Whether we // return the old or new dictionary here, the values of the instantiation arguments will always be the same. return Instantiation(IMD_GetMethodDictionary()->GetInstantiation(), m_wNumGenericArgs); } PTR_Dictionary IMD_GetMethodDictionary() { LIMITED_METHOD_DAC_CONTRACT; return m_pPerInstInfo; } PTR_Dictionary IMD_GetMethodDictionaryNonNull() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(m_pPerInstInfo != NULL); return m_pPerInstInfo; } BOOL IMD_IsGenericMethodDefinition() { LIMITED_METHOD_DAC_CONTRACT; return((m_wFlags2 & KindMask) == GenericMethodDefinition); } BOOL IMD_IsSharedByGenericMethodInstantiations() { LIMITED_METHOD_DAC_CONTRACT; return((m_wFlags2 & KindMask) == SharedMethodInstantiation); } BOOL IMD_IsWrapperStubWithInstantiations() { LIMITED_METHOD_DAC_CONTRACT; return((m_wFlags2 & KindMask) == WrapperStubWithInstantiations); } BOOL IMD_IsEnCAddedMethod() { LIMITED_METHOD_CONTRACT; #ifdef EnC_SUPPORTED return((m_wFlags2 & KindMask) == EnCAddedMethod); #else return FALSE; #endif } #ifdef FEATURE_COMINTEROP void IMD_SetupGenericComPlusCall() { LIMITED_METHOD_CONTRACT; IMD_GetComPlusCallInfo()->InitStackArgumentSize(); } PTR_ComPlusCallInfo IMD_GetComPlusCallInfo() { LIMITED_METHOD_CONTRACT; _ASSERTE(IsGenericComPlusCall()); SIZE_T size = s_ClassificationSizeTable[m_wFlags & (mdcClassification | mdcHasNonVtableSlot | mdcMethodImpl | mdcHasNativeCodeSlot)]; return dac_cast<PTR_ComPlusCallInfo>(dac_cast<TADDR>(this) + size); } #endif // FEATURE_COMINTEROP PTR_DictionaryLayout GetDictLayoutRaw() { LIMITED_METHOD_DAC_CONTRACT; return m_pDictLayout; } PTR_MethodDesc IMD_GetWrappedMethodDesc() { LIMITED_METHOD_DAC_CONTRACT; _ASSERTE(IMD_IsWrapperStubWithInstantiations()); return m_pWrappedMethodDesc; } #ifndef DACCESS_COMPILE // Get the dictionary layout, if there is one DictionaryLayout* IMD_GetDictionaryLayout() { WRAPPER_NO_CONTRACT; if (IMD_IsWrapperStubWithInstantiations() && IMD_HasMethodInstantiation()) { InstantiatedMethodDesc* pIMD = IMD_GetWrappedMethodDesc()->AsInstantiatedMethodDesc(); return pIMD->m_pDictLayout; } else if (IMD_IsSharedByGenericMethodInstantiations()) return m_pDictLayout; else return NULL; } void IMD_SetDictionaryLayout(DictionaryLayout* pNewLayout) { WRAPPER_NO_CONTRACT; if (IMD_IsWrapperStubWithInstantiations() && IMD_HasMethodInstantiation()) { InstantiatedMethodDesc* pIMD = IMD_GetWrappedMethodDesc()->AsInstantiatedMethodDesc(); pIMD->m_pDictLayout = pNewLayout; } else if (IMD_IsSharedByGenericMethodInstantiations()) { m_pDictLayout = pNewLayout; } } #endif // !DACCESS_COMPILE // Setup the IMD as shared code void SetupSharedMethodInstantiation(DWORD numGenericArgs, TypeHandle *pPerInstInfo, DictionaryLayout *pDL); // Setup the IMD as unshared code void SetupUnsharedMethodInstantiation(DWORD numGenericArgs, TypeHandle *pInst); // Setup the IMD as the special MethodDesc for a "generic" method void SetupGenericMethodDefinition(IMDInternalImport *pIMDII, LoaderAllocator* pAllocator, AllocMemTracker *pamTracker, Module *pModule, mdMethodDef tok); // Setup the IMD as a wrapper around another method desc void SetupWrapperStubWithInstantiations(MethodDesc* wrappedMD,DWORD numGenericArgs, TypeHandle *pGenericMethodInst); #ifdef EnC_SUPPORTED void SetupEnCAddedMethod() { LIMITED_METHOD_CONTRACT; m_wFlags2 = EnCAddedMethod; } #endif private: enum { KindMask = 0x07, GenericMethodDefinition = 0x00, UnsharedMethodInstantiation = 0x01, SharedMethodInstantiation = 0x02, WrapperStubWithInstantiations = 0x03, #ifdef EnC_SUPPORTED // Non-virtual method added through EditAndContinue. EnCAddedMethod = 0x07, #endif // EnC_SUPPORTED Unrestored = 0x08, #ifdef FEATURE_COMINTEROP HasComPlusCallInfo = 0x10, // this IMD contains an optional ComPlusCallInfo #endif // FEATURE_COMINTEROP }; friend class MethodDesc; // this fields are currently accessed by MethodDesc::Save/Restore etc. union { PTR_DictionaryLayout m_pDictLayout; //SharedMethodInstantiation PTR_MethodDesc m_pWrappedMethodDesc; // For WrapperStubWithInstantiations }; public: // <TODO>make private: JITinterface.cpp accesses through this </TODO> // Note we can't steal bits off m_pPerInstInfo as the JIT generates code to access through it!! // Type parameters to method (exact) // For non-unboxing instantiating stubs this is actually // a dictionary and further slots may hang off the end of the // instantiation. // // For generic method definitions that are not the typical method definition (e.g. C<int>.m<U>) // this field is null; to obtain the instantiation use LoadMethodInstantiation PTR_Dictionary m_pPerInstInfo; //SHARED private: WORD m_wFlags2; WORD m_wNumGenericArgs; public: static InstantiatedMethodDesc *FindOrCreateExactClassMethod(MethodTable *pExactMT, MethodDesc *pCanonicalMD); static InstantiatedMethodDesc* FindLoadedInstantiatedMethodDesc(MethodTable *pMT, mdMethodDef methodDef, Instantiation methodInst, BOOL getSharedNotStub); private: static InstantiatedMethodDesc *NewInstantiatedMethodDesc(MethodTable *pMT, MethodDesc* pGenericMDescInRepMT, MethodDesc* pSharedMDescForStub, Instantiation methodInst, BOOL getSharedNotStub); }; inline PTR_MethodTable MethodDesc::GetMethodTable_NoLogging() const { LIMITED_METHOD_DAC_CONTRACT; MethodDescChunk *pChunk = GetMethodDescChunk(); PREFIX_ASSUME(pChunk != NULL); return pChunk->GetMethodTable(); } inline PTR_MethodTable MethodDesc::GetMethodTable() const { LIMITED_METHOD_DAC_CONTRACT; g_IBCLogger.LogMethodDescAccess(this); return GetMethodTable_NoLogging(); } inline DPTR(PTR_MethodTable) MethodDesc::GetMethodTablePtr() const { LIMITED_METHOD_DAC_CONTRACT; MethodDescChunk *pChunk = GetMethodDescChunk(); PREFIX_ASSUME(pChunk != NULL); return pChunk->GetMethodTablePtr(); } inline MethodTable* MethodDesc::GetCanonicalMethodTable() { LIMITED_METHOD_DAC_CONTRACT; return GetMethodTable()->GetCanonicalMethodTable(); } inline mdMethodDef MethodDesc::GetMemberDef_NoLogging() const { LIMITED_METHOD_DAC_CONTRACT; MethodDescChunk *pChunk = GetMethodDescChunk(); PREFIX_ASSUME(pChunk != NULL); UINT16 tokrange = pChunk->GetTokRange(); UINT16 tokremainder = m_wFlags3AndTokenRemainder & enum_flag3_TokenRemainderMask; static_assert_no_msg(enum_flag3_TokenRemainderMask == METHOD_TOKEN_REMAINDER_MASK); return MergeToken(tokrange, tokremainder); } inline mdMethodDef MethodDesc::GetMemberDef() const { LIMITED_METHOD_DAC_CONTRACT; g_IBCLogger.LogMethodDescAccess(this); return GetMemberDef_NoLogging(); } // Set the offset of this method desc in a chunk table (which allows us // to work back to the method table/module pointer stored at the head of // the table. inline void MethodDesc::SetChunkIndex(MethodDescChunk * pChunk) { WRAPPER_NO_CONTRACT; // Calculate the offset (mod 8) from the chunk table header. SIZE_T offset = (BYTE*)this - (BYTE*)pChunk->GetFirstMethodDesc(); _ASSERTE((offset & ALIGNMENT_MASK) == 0); offset >>= ALIGNMENT_SHIFT; // Make sure that we did not overflow the BYTE _ASSERTE(offset == (BYTE)offset); m_chunkIndex = (BYTE)offset; // Make sure that the MethodDescChunk is setup correctly _ASSERTE(GetMethodDescChunk() == pChunk); } inline void MethodDesc::SetMemberDef(mdMethodDef mb) { WRAPPER_NO_CONTRACT; UINT16 tokrange; UINT16 tokremainder; SplitToken(mb, &tokrange, &tokremainder); _ASSERTE((tokremainder & ~enum_flag3_TokenRemainderMask) == 0); m_wFlags3AndTokenRemainder = (m_wFlags3AndTokenRemainder & ~enum_flag3_TokenRemainderMask) | tokremainder; if (GetMethodDescIndex() == 0) { GetMethodDescChunk()->SetTokenRange(tokrange); } #ifdef _DEBUG if (mb != 0) { _ASSERTE(GetMemberDef_NoLogging() == mb); } #endif } #ifdef _DEBUG inline BOOL MethodDesc::SanityCheck() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; // Sanity test - we don't care about the result we just want it to not AV. return GetMethodTable() == m_pDebugMethodTable && this->GetModule() != NULL; } #endif // _DEBUG inline BOOL MethodDesc::IsEnCAddedMethod() { LIMITED_METHOD_DAC_CONTRACT; return (GetClassification() == mcInstantiated) && AsInstantiatedMethodDesc()->IMD_IsEnCAddedMethod(); } inline BOOL MethodDesc::HasNonVtableSlot() { LIMITED_METHOD_DAC_CONTRACT; return (m_wFlags & mdcHasNonVtableSlot) != 0; } inline Instantiation MethodDesc::GetMethodInstantiation() const { LIMITED_METHOD_DAC_CONTRACT; return (GetClassification() == mcInstantiated) ? AsInstantiatedMethodDesc()->IMD_GetMethodInstantiation() : Instantiation(); } inline Instantiation MethodDesc::GetClassInstantiation() const { LIMITED_METHOD_DAC_CONTRACT; return GetMethodTable()->GetInstantiation(); } inline BOOL MethodDesc::IsGenericMethodDefinition() const { LIMITED_METHOD_DAC_CONTRACT; g_IBCLogger.LogMethodDescAccess(this); return GetClassification() == mcInstantiated && AsInstantiatedMethodDesc()->IMD_IsGenericMethodDefinition(); } // True if the method descriptor is an instantiation of a generic method. inline BOOL MethodDesc::HasMethodInstantiation() const { LIMITED_METHOD_DAC_CONTRACT; return mcInstantiated == GetClassification() && AsInstantiatedMethodDesc()->IMD_HasMethodInstantiation(); } #if defined(FEATURE_GDBJIT) class CalledMethod { private: MethodDesc * m_pMD; void * m_CallAddr; CalledMethod * m_pNext; public: CalledMethod(MethodDesc *pMD, void * addr, CalledMethod * next) : m_pMD(pMD), m_CallAddr(addr), m_pNext(next) {} ~CalledMethod() {} MethodDesc * GetMethodDesc() { return m_pMD; } void * GetCallAddr() { return m_CallAddr; } CalledMethod * GetNext() { return m_pNext; } }; #endif #include "method.inl" #endif // !_METHOD_H
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/methodtablebuilder.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // File: METHODTABLEBUILDER.CPP // // // // ============================================================================ #include "common.h" #include "methodtablebuilder.h" #include "sigbuilder.h" #include "dllimport.h" #include "fieldmarshaler.h" #include "encee.h" #include "ecmakey.h" #include "customattribute.h" #include "typestring.h" //******************************************************************************* // Helper functions to sort GCdescs by offset (decending order) int __cdecl compareCGCDescSeries(const void *arg1, const void *arg2) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; CGCDescSeries* gcInfo1 = (CGCDescSeries*) arg1; CGCDescSeries* gcInfo2 = (CGCDescSeries*) arg2; return (int)(gcInfo2->GetSeriesOffset() - gcInfo1->GetSeriesOffset()); } //******************************************************************************* const char* FormatSig(MethodDesc* pMD, LoaderHeap *pHeap, AllocMemTracker *pamTracker); #ifdef _DEBUG unsigned g_dupMethods = 0; #endif // _DEBUG //========================================================================== // This function is very specific about how it constructs a EEClass. It first // determines the necessary size of the vtable and the number of statics that // this class requires. The necessary memory is then allocated for a EEClass // and its vtable and statics. The class members are then initialized and // the memory is then returned to the caller // // LPEEClass CreateClass() // // Parameters : // [in] scope - scope of the current class not the one requested to be opened // [in] cl - class token of the class to be created. // [out] ppEEClass - pointer to pointer to hold the address of the EEClass // allocated in this function. // Return : returns an HRESULT indicating the success of this function. // // This parameter has been removed but might need to be reinstated if the // global for the metadata loader is removed. // [in] pIMLoad - MetaDataLoader class/object for the current scope. //========================================================================== /*static*/ EEClass * MethodTableBuilder::CreateClass( Module *pModule, mdTypeDef cl, BOOL fHasLayout, BOOL fDelegate, BOOL fIsEnum, const MethodTableBuilder::bmtGenericsInfo *bmtGenericsInfo, LoaderAllocator * pAllocator, AllocMemTracker *pamTracker) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(!(fHasLayout && fDelegate)); PRECONDITION(!(fHasLayout && fIsEnum)); PRECONDITION(CheckPointer(bmtGenericsInfo)); } CONTRACTL_END; EEClass *pEEClass = NULL; IMDInternalImport *pInternalImport; //<TODO>============================================================================ // vtabsize and static size need to be converted from pointer sizes to #'s // of bytes this will be very important for 64 bit NT! // We will need to call on IMetaDataLoad to get these sizes and fill out the // tables // From the classref call on metadata to resolve the classref and check scope // to make sure that this class is in the same scope otherwise we need to open // a new scope and possibly file. // if the scopes are different call the code to load a new file and get the new scope // scopes are the same so we can use the existing scope to get the class info // This method needs to be fleshed out.more it currently just returns enough // space for the defined EEClass and the vtable and statics are not set. //=============================================================================</TODO> if (fHasLayout) { pEEClass = new (pAllocator->GetLowFrequencyHeap(), pamTracker) LayoutEEClass(); } else if (fDelegate) { pEEClass = new (pAllocator->GetLowFrequencyHeap(), pamTracker) DelegateEEClass(); } else { pEEClass = new (pAllocator->GetLowFrequencyHeap(), pamTracker) EEClass(sizeof(EEClass)); } DWORD dwAttrClass = 0; mdToken tkExtends = mdTokenNil; // Set up variance info if (bmtGenericsInfo->pVarianceInfo) { // Variance info is an optional field on EEClass, so ensure the optional field descriptor has been // allocated. EnsureOptionalFieldsAreAllocated(pEEClass, pamTracker, pAllocator->GetLowFrequencyHeap()); pEEClass->SetVarianceInfo((BYTE*) pamTracker->Track( pAllocator->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(bmtGenericsInfo->GetNumGenericArgs())))); memcpy(pEEClass->GetVarianceInfo(), bmtGenericsInfo->pVarianceInfo, bmtGenericsInfo->GetNumGenericArgs()); } pInternalImport = pModule->GetMDImport(); if (pInternalImport == NULL) COMPlusThrowHR(COR_E_TYPELOAD); IfFailThrow(pInternalImport->GetTypeDefProps( cl, &dwAttrClass, &tkExtends)); pEEClass->m_dwAttrClass = dwAttrClass; // MDVal check: can't be both tdSequentialLayout and tdExplicitLayout if((dwAttrClass & tdLayoutMask) == tdLayoutMask) COMPlusThrowHR(COR_E_TYPELOAD); if (IsTdInterface(dwAttrClass)) { // MDVal check: must have nil tkExtends and must be tdAbstract if((tkExtends & 0x00FFFFFF)||(!IsTdAbstract(dwAttrClass))) COMPlusThrowHR(COR_E_TYPELOAD); } if (fHasLayout) pEEClass->SetHasLayout(); if (IsTdWindowsRuntime(dwAttrClass)) { COMPlusThrowHR(COR_E_TYPELOAD); } #ifdef _DEBUG pModule->GetClassLoader()->m_dwDebugClasses++; #endif return pEEClass; } //******************************************************************************* // // Create a hash of all methods in this class. The hash is from method name to MethodDesc. // MethodTableBuilder::MethodNameHash * MethodTableBuilder::CreateMethodChainHash( MethodTable *pMT) { STANDARD_VM_CONTRACT; MethodNameHash *pHash = new (GetStackingAllocator()) MethodNameHash(); pHash->Init(pMT->GetNumVirtuals(), GetStackingAllocator()); unsigned numVirtuals = GetParentMethodTable()->GetNumVirtuals(); for (unsigned i = 0; i < numVirtuals; ++i) { bmtMethodSlot &slot = (*bmtParent->pSlotTable)[i]; bmtRTMethod * pMethod = slot.Decl().AsRTMethod(); const MethodSignature &sig = pMethod->GetMethodSignature(); pHash->Insert(sig.GetName(), pMethod); } // Success return pHash; } //******************************************************************************* // // Find a method in this class hierarchy - used ONLY by the loader during layout. Do not use at runtime. // // *ppMemberSignature must be NULL on entry - it and *pcMemberSignature may or may not be filled out // // ppMethodDesc will be filled out with NULL if no matching method in the hierarchy is found. // // Returns FALSE if there was an error of some kind. // // pMethodConstraintsMatch receives the result of comparing the method constraints. MethodTableBuilder::bmtRTMethod * MethodTableBuilder::LoaderFindMethodInParentClass( const MethodSignature & methodSig, BOOL * pMethodConstraintsMatch) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(methodSig.GetModule())); PRECONDITION(CheckPointer(methodSig.GetSignature())); PRECONDITION(HasParent()); PRECONDITION(methodSig.GetSignatureLength() != 0); } CONTRACTL_END; //#if 0 MethodNameHash::HashEntry * pEntry; // Have we created a hash of all the methods in the class chain? if (bmtParent->pParentMethodHash == NULL) { // There may be such a method, so we will now create a hash table to reduce the pain for // further lookups // <TODO> Are we really sure that this is worth doing? </TODO> bmtParent->pParentMethodHash = CreateMethodChainHash(GetParentMethodTable()); } // We have a hash table, so use it pEntry = bmtParent->pParentMethodHash->Lookup(methodSig.GetName()); // Traverse the chain of all methods with this name while (pEntry != NULL) { bmtRTMethod * pEntryMethod = pEntry->m_data; const MethodSignature & entrySig = pEntryMethod->GetMethodSignature(); // Note instantiation info { if (methodSig.Equivalent(entrySig)) { if (pMethodConstraintsMatch != NULL) { // Check the constraints are consistent, // and return the result to the caller. // We do this here to avoid recalculating pSubst. *pMethodConstraintsMatch = MetaSig::CompareMethodConstraints( &methodSig.GetSubstitution(), methodSig.GetModule(), methodSig.GetToken(), &entrySig.GetSubstitution(), entrySig.GetModule(), entrySig.GetToken()); } return pEntryMethod; } } // Advance to next item in the hash chain which has the same name pEntry = bmtParent->pParentMethodHash->FindNext(pEntry); } //#endif //@TODO: Move to this code, as the use of a HashTable is broken; overriding semantics //@TODO: require matching against the most-derived slot of a given name and signature, //@TODO: (which deals specifically with newslot methods with identical name and sig), but //@TODO: HashTables are by definition unordered and so we've only been getting by with the //@TODO: implementation being compatible with the order in which methods were added to //@TODO: the HashTable in CreateMethodChainHash. #if 0 bmtParentInfo::Iterator it(bmtParent->IterateSlots()); it.MoveTo(static_cast<size_t>(GetParentMethodTable()->GetNumVirtuals())); while (it.Prev()) { bmtMethodHandle decl(it->Decl()); const MethodSignature &declSig(decl.GetMethodSignature()); if (declSig == methodSig) { if (pMethodConstraintsMatch != NULL) { // Check the constraints are consistent, // and return the result to the caller. // We do this here to avoid recalculating pSubst. *pMethodConstraintsMatch = MetaSig::CompareMethodConstraints( &methodSig.GetSubstitution(), methodSig.GetModule(), methodSig.GetToken(), &declSig.GetSubstitution(), declSig.GetModule(), declSig.GetToken()); } return decl.AsRTMethod(); } } #endif // 0 return NULL; } //******************************************************************************* // // Given an interface map to fill out, expand pNewInterface (and its sub-interfaces) into it, increasing // pdwInterfaceListSize as appropriate, and avoiding duplicates. // void MethodTableBuilder::ExpandApproxInterface( bmtInterfaceInfo * bmtInterface, // out parameter, various parts cumulatively written to. const Substitution * pNewInterfaceSubstChain, MethodTable * pNewInterface, InterfaceDeclarationScope declScope COMMA_INDEBUG(MethodTable * dbg_pClassMT)) { STANDARD_VM_CONTRACT; if (pNewInterface->HasVirtualStaticMethods()) { bmtProp->fHasVirtualStaticMethods = TRUE; } //#ExpandingInterfaces // We expand the tree of inherited interfaces into a set by adding the // current node BEFORE expanding the parents of the current node. // ****** This must be consistent with code:ExpandExactInterface ******* // ****** This must be consistent with code:ClassCompat::MethodTableBuilder::BuildInteropVTable_ExpandInterface ******* // The interface list contains the fully expanded set of interfaces from the parent then // we start adding all the interfaces we declare. We need to know which interfaces // we declare but do not need duplicates of the ones we declare. This means we can // duplicate our parent entries. // Is it already present in the list? for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtInterfaceEntry * pItfEntry = &bmtInterface->pInterfaceMap[i]; bmtRTType * pItfType = pItfEntry->GetInterfaceType(); // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions(pItfType->GetMethodTable(), pNewInterface, &pItfType->GetSubstitution(), pNewInterfaceSubstChain, &newVisited)) { if (declScope.fIsInterfaceDeclaredOnType) { pItfEntry->IsDeclaredOnType() = true; } #ifdef _DEBUG //#InjectInterfaceDuplicates_ApproxInterfaces // We can inject duplicate interfaces in check builds. // Has to be in sync with code:#InjectInterfaceDuplicates_Main if (((dbg_pClassMT == NULL) && bmtInterface->dbg_fShouldInjectInterfaceDuplicates) || ((dbg_pClassMT != NULL) && dbg_pClassMT->Debug_HasInjectedInterfaceDuplicates())) { // The injected duplicate interface should have the same status 'ImplementedByParent' as // the original interface (can be false if the interface is implemented indirectly twice) declScope.fIsInterfaceDeclaredOnParent = pItfEntry->IsImplementedByParent(); // Just pretend we didn't find this match, but mark all duplicates as 'DeclaredOnType' if // needed continue; } #endif //_DEBUG return; // found it, don't add it again } } bmtRTType * pNewItfType = new (GetStackingAllocator()) bmtRTType(*pNewInterfaceSubstChain, pNewInterface); if (bmtInterface->dwInterfaceMapSize >= bmtInterface->dwInterfaceMapAllocated) { // // Grow the array of interfaces // S_UINT32 dwNewAllocated = S_UINT32(2) * S_UINT32(bmtInterface->dwInterfaceMapAllocated) + S_UINT32(5); if (dwNewAllocated.IsOverflow()) { BuildMethodTableThrowException(COR_E_OVERFLOW); } S_SIZE_T safeSize = S_SIZE_T(sizeof(bmtInterfaceEntry)) * S_SIZE_T(dwNewAllocated.Value()); if (safeSize.IsOverflow()) { BuildMethodTableThrowException(COR_E_OVERFLOW); } bmtInterfaceEntry * pNewMap = (bmtInterfaceEntry *)new (GetStackingAllocator()) BYTE[safeSize.Value()]; memcpy(pNewMap, bmtInterface->pInterfaceMap, sizeof(bmtInterfaceEntry) * bmtInterface->dwInterfaceMapAllocated); bmtInterface->pInterfaceMap = pNewMap; bmtInterface->dwInterfaceMapAllocated = dwNewAllocated.Value(); } // The interface map memory was just allocated as an array of bytes, so we use // in place new to init the new map entry. No need to do anything with the result, // so just chuck it. CONSISTENCY_CHECK(bmtInterface->dwInterfaceMapSize < bmtInterface->dwInterfaceMapAllocated); new ((void *)&bmtInterface->pInterfaceMap[bmtInterface->dwInterfaceMapSize]) bmtInterfaceEntry(pNewItfType, declScope); bmtInterface->dwInterfaceMapSize++; // Checking for further expanded interfaces isn't necessary for the system module, as we can rely on the C# compiler // to have found all of the interfaces that the type implements, and to place them in the interface list itself. Also // we can assume no ambiguous interfaces // Code related to this is marked with #SpecialCorelibInterfaceExpansionAlgorithm if (!(GetModule()->IsSystem() && IsValueClass())) { // Make sure to pass in the substitution from the new itf type created above as // these methods assume that substitutions are allocated in the stacking heap, // not the stack. InterfaceDeclarationScope declaredItfScope(declScope.fIsInterfaceDeclaredOnParent, false); ExpandApproxDeclaredInterfaces( bmtInterface, bmtTypeHandle(pNewItfType), declaredItfScope COMMA_INDEBUG(dbg_pClassMT)); } } // MethodTableBuilder::ExpandApproxInterface //******************************************************************************* // Arguments: // dbg_pClassMT - Class on which the interfaces are declared (either explicitly or implicitly). // It will never be an interface. It may be NULL (if it is the type being built). void MethodTableBuilder::ExpandApproxDeclaredInterfaces( bmtInterfaceInfo * bmtInterface, // out parameter, various parts cumulatively written to. bmtTypeHandle thType, InterfaceDeclarationScope declScope COMMA_INDEBUG(MethodTable * dbg_pClassMT)) { STANDARD_VM_CONTRACT; _ASSERTE((dbg_pClassMT == NULL) || !dbg_pClassMT->IsInterface()); HRESULT hr; // Iterate the list of interfaces declared by thType and add them to the map. InterfaceImplEnum ie(thType.GetModule(), thType.GetTypeDefToken(), &thType.GetSubstitution()); while ((hr = ie.Next()) == S_OK) { MethodTable *pGenericIntf = ClassLoader::LoadApproxTypeThrowing( thType.GetModule(), ie.CurrentToken(), NULL, NULL).GetMethodTable(); CONSISTENCY_CHECK(pGenericIntf->IsInterface()); ExpandApproxInterface(bmtInterface, ie.CurrentSubst(), pGenericIntf, declScope COMMA_INDEBUG(dbg_pClassMT)); } if (FAILED(hr)) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } // MethodTableBuilder::ExpandApproxDeclaredInterfaces //******************************************************************************* void MethodTableBuilder::ExpandApproxInheritedInterfaces( bmtInterfaceInfo * bmtInterface, bmtRTType * pParentType) { STANDARD_VM_CONTRACT; // Expand interfaces in superclasses first. Interfaces inherited from parents // must have identical indexes as in the parent. bmtRTType * pParentOfParent = pParentType->GetParentType(); //#InterfaceMap_SupersetOfParent // We have to load parent's interface map the same way the parent did it (as open type). // Further code depends on this: // code:#InterfaceMap_UseParentInterfaceImplementations // We check that it is truth: // code:#ApproxInterfaceMap_SupersetOfParent // code:#ExactInterfaceMap_SupersetOfParent // //#InterfaceMap_CanonicalSupersetOfParent // Note that canonical instantiation of parent can have different interface instantiations in the // interface map than derived type: // class MyClass<T> : MyBase<string, T>, I<T> // class MyBase<U, V> : I<U> // Type MyClass<_Canon> has MyBase<_Canon,_Canon> as parent. The interface maps are: // MyBase<_Canon,_Canon> ... I<_Canon> // MyClass<_Canon> ... I<string> (#1) // I<_Canon> (#2) // The I's instantiation I<string> (#1) in MyClass and I<_Canon> from MyBase are not the same // instantiations. // Backup parent substitution Substitution parentSubstitution = pParentType->GetSubstitution(); // Make parent an open type pParentType->SetSubstitution(Substitution()); if (pParentOfParent != NULL) { ExpandApproxInheritedInterfaces(bmtInterface, pParentOfParent); } InterfaceDeclarationScope declScope(true, false); ExpandApproxDeclaredInterfaces( bmtInterface, bmtTypeHandle(pParentType), declScope COMMA_INDEBUG(pParentType->GetMethodTable())); // Make sure we loaded the same number of interfaces as the parent type itself CONSISTENCY_CHECK(pParentType->GetMethodTable()->GetNumInterfaces() == bmtInterface->dwInterfaceMapSize); // Restore parent's substitution pParentType->SetSubstitution(parentSubstitution); } // MethodTableBuilder::ExpandApproxInheritedInterfaces //******************************************************************************* // Fill out a fully expanded interface map, such that if we are declared to // implement I3, and I3 extends I1,I2, then I1,I2 are added to our list if // they are not already present. void MethodTableBuilder::LoadApproxInterfaceMap() { STANDARD_VM_CONTRACT; bmtInterface->dwInterfaceMapSize = 0; #ifdef _DEBUG //#InjectInterfaceDuplicates_Main // We will inject duplicate interfaces in check builds if env. var. // COMPLUS_INTERNAL_TypeLoader_InjectInterfaceDuplicates is set to TRUE for all types (incl. non-generic // types). // This should allow us better test coverage of duplicates in interface map. // // The duplicates are legal for some types: // A<T> : I<T> // B<U,V> : A<U>, I<V> // C : B<int,int> // where the interface maps are: // A<T> ... 1 item: I<T> // A<int> ... 1 item: I<int> // B<U,V> ... 2 items: I<U>, I<V> // B<int,int> ... 2 items: I<int>, I<int> // B<_Canon,_Canon> ... 2 items: I<_Canon>, I<_Canon> // B<string,string> ... 2 items: I<string>, I<string> // C ... 2 items: I<int>, I<int> // Note: C had only 1 item (I<int>) in CLR 2.0 RTM/SP1/SP2 and early in CLR 4.0. // // We will create duplicate from every re-implemented interface (incl. non-generic): // code:#InjectInterfaceDuplicates_ApproxInterfaces // code:#InjectInterfaceDuplicates_LoadExactInterfaceMap // code:#InjectInterfaceDuplicates_ExactInterfaces // // Note that we don't have to do anything for COM, because COM has its own interface map // (code:InteropMethodTableData)which is independent on type's interface map and is created only from // non-generic interfaces (see code:ClassCompat::MethodTableBuilder::BuildInteropVTable_InterfaceList) // We need to keep track which interface duplicates were injected. Right now its either all interfaces // (declared on the type being built, not inheritted) or none. In the future we could inject duplicates // just for some of them. bmtInterface->dbg_fShouldInjectInterfaceDuplicates = (CLRConfig::GetConfigValue(CLRConfig::INTERNAL_TypeLoader_InjectInterfaceDuplicates) != 0); if (bmtGenerics->Debug_GetTypicalMethodTable() != NULL) { // It's safer to require that all instantiations have the same injected interface duplicates. // In future we could inject different duplicates for various non-shared instantiations. // Use the same injection status as typical instantiation bmtInterface->dbg_fShouldInjectInterfaceDuplicates = bmtGenerics->Debug_GetTypicalMethodTable()->Debug_HasInjectedInterfaceDuplicates(); if (GetModule() == g_pObjectClass->GetModule()) { // CoreLib has some weird hardcoded information about interfaces (e.g. // code:CEEPreloader::ApplyTypeDependencyForSZArrayHelper), so we don't inject duplicates into // CoreLib types bmtInterface->dbg_fShouldInjectInterfaceDuplicates = FALSE; } } #endif //_DEBUG // First inherit all the parent's interfaces. This is important, because our interface map must // list the interfaces in identical order to our parent. // // <NICE> we should document the reasons why. One reason is that DispatchMapTypeIDs can be indexes // into the list </NICE> if (HasParent()) { ExpandApproxInheritedInterfaces(bmtInterface, GetParentType()); #ifdef _DEBUG //#ApproxInterfaceMap_SupersetOfParent // Check that parent's interface map is the same as what we just computed // See code:#InterfaceMap_SupersetOfParent { MethodTable * pParentMT = GetParentMethodTable(); _ASSERTE(pParentMT->GetNumInterfaces() == bmtInterface->dwInterfaceMapSize); MethodTable::InterfaceMapIterator parentInterfacesIterator = pParentMT->IterateInterfaceMap(); UINT32 nInterfaceIndex = 0; while (parentInterfacesIterator.Next()) { // Compare TypeDefs of the parent's interface and this interface (full MT comparison is in // code:#ExactInterfaceMap_SupersetOfParent) OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOAD_APPROXPARENTS); _ASSERTE(parentInterfacesIterator.GetInterfaceInfo()->GetApproxMethodTable(pParentMT->GetLoaderModule())->HasSameTypeDefAs( bmtInterface->pInterfaceMap[nInterfaceIndex].GetInterfaceType()->GetMethodTable())); nInterfaceIndex++; } _ASSERTE(nInterfaceIndex == bmtInterface->dwInterfaceMapSize); } #endif //_DEBUG } // Now add in any freshly declared interfaces, possibly augmenting the flags InterfaceDeclarationScope declScope(false, true); ExpandApproxDeclaredInterfaces( bmtInterface, bmtInternal->pType, declScope COMMA_INDEBUG(NULL)); } // MethodTableBuilder::LoadApproxInterfaceMap //******************************************************************************* // Fills array of TypeIDs with all duplicate occurrences of pDeclIntfMT in the interface map. // // Arguments: // rg/c DispatchMapTypeIDs - Array of TypeIDs and its count of elements. // pcIfaceDuplicates - Number of duplicate occurrences of the interface in the interface map (ideally <= // count of elements TypeIDs. // // Note: If the passed rgDispatchMapTypeIDs array is smaller than the number of duplicates, fills it // with the duplicates that fit and returns number of all existing duplicates (not just those fileld in the // array) in pcIfaceDuplicates. // void MethodTableBuilder::ComputeDispatchMapTypeIDs( MethodTable * pDeclInftMT, const Substitution * pDeclIntfSubst, DispatchMapTypeID * rgDispatchMapTypeIDs, UINT32 cDispatchMapTypeIDs, UINT32 * pcIfaceDuplicates) { STANDARD_VM_CONTRACT; _ASSERTE(pDeclInftMT->IsInterface()); // Count of interface duplicates (also used as index into TypeIDs array) *pcIfaceDuplicates = 0; for (DWORD idx = 0; idx < bmtInterface->dwInterfaceMapSize; idx++) { bmtInterfaceEntry * pItfEntry = &bmtInterface->pInterfaceMap[idx]; bmtRTType * pItfType = pItfEntry->GetInterfaceType(); // Type Equivalence is forbidden in interface type ids. TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions(pItfType->GetMethodTable(), pDeclInftMT, &pItfType->GetSubstitution(), pDeclIntfSubst, &newVisited)) { // We found another occurrence of this interface // Can we fit it into the TypeID array? if (*pcIfaceDuplicates < cDispatchMapTypeIDs) { rgDispatchMapTypeIDs[*pcIfaceDuplicates] = DispatchMapTypeID::InterfaceClassID(idx); } // Increase number of duplicate interfaces (*pcIfaceDuplicates)++; } } } // MethodTableBuilder::ComputeDispatchMapTypeIDs //******************************************************************************* /*static*/ VOID DECLSPEC_NORETURN MethodTableBuilder::BuildMethodTableThrowException( HRESULT hr, const bmtErrorInfo & bmtError) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END LPCUTF8 pszClassName, pszNameSpace; if (FAILED(bmtError.pModule->GetMDImport()->GetNameOfTypeDef(bmtError.cl, &pszClassName, &pszNameSpace))) { pszClassName = pszNameSpace = "Invalid TypeDef record"; } if (IsNilToken(bmtError.dMethodDefInError) && (bmtError.szMethodNameForError == NULL)) { if (hr == E_OUTOFMEMORY) { COMPlusThrowOM(); } else bmtError.pModule->GetAssembly()->ThrowTypeLoadException( pszNameSpace, pszClassName, bmtError.resIDWhy); } else { LPCUTF8 szMethodName; if (bmtError.szMethodNameForError == NULL) { if (FAILED((bmtError.pModule->GetMDImport())->GetNameOfMethodDef(bmtError.dMethodDefInError, &szMethodName))) { szMethodName = "Invalid MethodDef record"; } } else { szMethodName = bmtError.szMethodNameForError; } bmtError.pModule->GetAssembly()->ThrowTypeLoadException( pszNameSpace, pszClassName, szMethodName, bmtError.resIDWhy); } } // MethodTableBuilder::BuildMethodTableThrowException //******************************************************************************* void MethodTableBuilder::SetBMTData( LoaderAllocator *bmtAllocator, bmtErrorInfo *bmtError, bmtProperties *bmtProp, bmtVtable *bmtVT, bmtParentInfo *bmtParent, bmtInterfaceInfo *bmtInterface, bmtMetaDataInfo *bmtMetaData, bmtMethodInfo *bmtMethod, bmtMethAndFieldDescs *bmtMFDescs, bmtFieldPlacement *bmtFP, bmtInternalInfo *bmtInternal, bmtGCSeriesInfo *bmtGCSeries, bmtMethodImplInfo *bmtMethodImpl, const bmtGenericsInfo *bmtGenerics, bmtEnumFieldInfo *bmtEnumFields) { LIMITED_METHOD_CONTRACT; this->bmtAllocator = bmtAllocator; this->bmtError = bmtError; this->bmtProp = bmtProp; this->bmtVT = bmtVT; this->bmtParent = bmtParent; this->bmtInterface = bmtInterface; this->bmtMetaData = bmtMetaData; this->bmtMethod = bmtMethod; this->bmtMFDescs = bmtMFDescs; this->bmtFP = bmtFP; this->bmtInternal = bmtInternal; this->bmtGCSeries = bmtGCSeries; this->bmtMethodImpl = bmtMethodImpl; this->bmtGenerics = bmtGenerics; this->bmtEnumFields = bmtEnumFields; } //******************************************************************************* // Used by MethodTableBuilder MethodTableBuilder::bmtRTType * MethodTableBuilder::CreateTypeChain( MethodTable * pMT, const Substitution & subst) { CONTRACTL { STANDARD_VM_CHECK; INSTANCE_CHECK; PRECONDITION(CheckPointer(GetStackingAllocator())); PRECONDITION(CheckPointer(pMT)); } CONTRACTL_END; pMT = pMT->GetCanonicalMethodTable(); bmtRTType * pType = new (GetStackingAllocator()) bmtRTType(subst, pMT); MethodTable * pMTParent = pMT->GetParentMethodTable(); if (pMTParent != NULL) { pType->SetParentType( CreateTypeChain( pMTParent, pMT->GetSubstitutionForParent(&pType->GetSubstitution()))); } return pType; } //******************************************************************************* /* static */ MethodTableBuilder::bmtRTType * MethodTableBuilder::bmtRTType::FindType( bmtRTType * pType, MethodTable * pTargetMT) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pType)); PRECONDITION(CheckPointer(pTargetMT)); } CONTRACTL_END; pTargetMT = pTargetMT->GetCanonicalMethodTable(); while (pType != NULL && pType->GetMethodTable()->GetCanonicalMethodTable() != pTargetMT) { pType = pType->GetParentType(); } return pType; } //******************************************************************************* mdTypeDef MethodTableBuilder::bmtRTType::GetEnclosingTypeToken() const { STANDARD_VM_CONTRACT; mdTypeDef tok = mdTypeDefNil; if (IsNested()) { // This is guaranteed to succeed because the EEClass would not have been // set as nested unless a valid token was stored in metadata. if (FAILED(GetModule()->GetMDImport()->GetNestedClassProps( GetTypeDefToken(), &tok))) { return mdTypeDefNil; } } return tok; } //******************************************************************************* /*static*/ bool MethodTableBuilder::MethodSignature::NamesEqual( const MethodSignature & sig1, const MethodSignature & sig2) { STANDARD_VM_CONTRACT; if (sig1.GetNameHash() != sig2.GetNameHash()) { return false; } if (strcmp(sig1.GetName(), sig2.GetName()) != 0) { return false; } return true; } //******************************************************************************* /*static*/ bool MethodTableBuilder::MethodSignature::SignaturesEquivalent( const MethodSignature & sig1, const MethodSignature & sig2, BOOL allowCovariantReturn) { STANDARD_VM_CONTRACT; return !!MetaSig::CompareMethodSigs( sig1.GetSignature(), static_cast<DWORD>(sig1.GetSignatureLength()), sig1.GetModule(), &sig1.GetSubstitution(), sig2.GetSignature(), static_cast<DWORD>(sig2.GetSignatureLength()), sig2.GetModule(), &sig2.GetSubstitution(), allowCovariantReturn); } //******************************************************************************* /*static*/ bool MethodTableBuilder::MethodSignature::SignaturesExactlyEqual( const MethodSignature & sig1, const MethodSignature & sig2) { STANDARD_VM_CONTRACT; TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); return !!MetaSig::CompareMethodSigs( sig1.GetSignature(), static_cast<DWORD>(sig1.GetSignatureLength()), sig1.GetModule(), &sig1.GetSubstitution(), sig2.GetSignature(), static_cast<DWORD>(sig2.GetSignatureLength()), sig2.GetModule(), &sig2.GetSubstitution(), FALSE, &newVisited); } //******************************************************************************* bool MethodTableBuilder::MethodSignature::Equivalent( const MethodSignature &rhs) const { STANDARD_VM_CONTRACT; return NamesEqual(*this, rhs) && SignaturesEquivalent(*this, rhs, FALSE); } //******************************************************************************* bool MethodTableBuilder::MethodSignature::ExactlyEqual( const MethodSignature &rhs) const { STANDARD_VM_CONTRACT; return NamesEqual(*this, rhs) && SignaturesExactlyEqual(*this, rhs); } //******************************************************************************* void MethodTableBuilder::MethodSignature::GetMethodAttributes() const { STANDARD_VM_CONTRACT; IMDInternalImport * pIMD = GetModule()->GetMDImport(); if (TypeFromToken(GetToken()) == mdtMethodDef) { DWORD cSig; if (FAILED(pIMD->GetNameAndSigOfMethodDef(GetToken(), &m_pSig, &cSig, &m_szName))) { // We have empty name or signature on error, do nothing } m_cSig = static_cast<size_t>(cSig); } else { CONSISTENCY_CHECK(TypeFromToken(m_tok) == mdtMemberRef); DWORD cSig; if (FAILED(pIMD->GetNameAndSigOfMemberRef(GetToken(), &m_pSig, &cSig, &m_szName))) { // We have empty name or signature on error, do nothing } m_cSig = static_cast<size_t>(cSig); } } //******************************************************************************* UINT32 MethodTableBuilder::MethodSignature::GetNameHash() const { STANDARD_VM_CONTRACT; CheckGetMethodAttributes(); if (m_nameHash == INVALID_NAME_HASH) { ULONG nameHash = HashStringA(GetName()); if (nameHash == INVALID_NAME_HASH) { nameHash /= 2; } m_nameHash = nameHash; } return m_nameHash; } //******************************************************************************* MethodTableBuilder::bmtMDType::bmtMDType( bmtRTType * pParentType, Module * pModule, mdTypeDef tok, const SigTypeContext & sigContext) : m_pParentType(pParentType), m_pModule(pModule), m_tok(tok), m_enclTok(mdTypeDefNil), m_sigContext(sigContext), m_subst(), m_dwAttrs(0), m_pMT(NULL) { STANDARD_VM_CONTRACT; IfFailThrow(m_pModule->GetMDImport()->GetTypeDefProps(m_tok, &m_dwAttrs, NULL)); HRESULT hr = m_pModule->GetMDImport()->GetNestedClassProps(m_tok, &m_enclTok); if (FAILED(hr)) { if (hr != CLDB_E_RECORD_NOTFOUND) { ThrowHR(hr); } // Just in case GetNestedClassProps sets the out param to some other value m_enclTok = mdTypeDefNil; } } //******************************************************************************* MethodTableBuilder::bmtRTMethod::bmtRTMethod( bmtRTType * pOwningType, MethodDesc * pMD) : m_pOwningType(pOwningType), m_pMD(pMD), m_methodSig(pMD->GetModule(), pMD->GetMemberDef(), &pOwningType->GetSubstitution()) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; } //******************************************************************************* MethodTableBuilder::bmtMDMethod::bmtMDMethod( bmtMDType * pOwningType, mdMethodDef tok, DWORD dwDeclAttrs, DWORD dwImplAttrs, DWORD dwRVA, METHOD_TYPE type, METHOD_IMPL_TYPE implType) : m_pOwningType(pOwningType), m_dwDeclAttrs(dwDeclAttrs), m_dwImplAttrs(dwImplAttrs), m_dwRVA(dwRVA), m_type(type), m_implType(implType), m_methodSig(pOwningType->GetModule(), tok, &pOwningType->GetSubstitution()), m_pMD(NULL), m_pUnboxedMD(NULL), m_slotIndex(INVALID_SLOT_INDEX), m_unboxedSlotIndex(INVALID_SLOT_INDEX) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; } //******************************************************************************* void MethodTableBuilder::ImportParentMethods() { STANDARD_VM_CONTRACT; if (!HasParent()) { // If there's no parent, there's no methods to import return; } SLOT_INDEX numMethods = static_cast<SLOT_INDEX> (GetParentMethodTable()->GetNumMethods()); bmtParent->pSlotTable = new (GetStackingAllocator()) bmtMethodSlotTable(numMethods, GetStackingAllocator()); MethodTable::MethodIterator it(GetParentMethodTable()); for (;it.IsValid(); it.Next()) { MethodDesc * pDeclDesc = NULL; MethodTable * pDeclMT = NULL; MethodDesc * pImplDesc = NULL; MethodTable * pImplMT = NULL; if (it.IsVirtual()) { pDeclDesc = it.GetDeclMethodDesc(); pDeclMT = pDeclDesc->GetMethodTable(); pImplDesc = it.GetMethodDesc(); pImplMT = pImplDesc->GetMethodTable(); } else { pDeclDesc = pImplDesc = it.GetMethodDesc(); pDeclMT = pImplMT = it.GetMethodDesc()->GetMethodTable(); } CONSISTENCY_CHECK(CheckPointer(pDeclDesc)); CONSISTENCY_CHECK(CheckPointer(pImplDesc)); // Create and assign to each slot bmtMethodSlot newSlot; newSlot.Decl() = new (GetStackingAllocator()) bmtRTMethod(bmtRTType::FindType(GetParentType(), pDeclMT), pDeclDesc); if (pDeclDesc == pImplDesc) { newSlot.Impl() = newSlot.Decl(); } else { newSlot.Impl() = new (GetStackingAllocator()) bmtRTMethod(bmtRTType::FindType(GetParentType(), pImplMT), pImplDesc); } if (!bmtParent->pSlotTable->AddMethodSlot(newSlot)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } } //******************************************************************************* void MethodTableBuilder::CopyParentVtable() { STANDARD_VM_CONTRACT; if (!HasParent()) { return; } for (bmtParentInfo::Iterator it = bmtParent->IterateSlots(); !it.AtEnd() && it.CurrentIndex() < GetParentMethodTable()->GetNumVirtuals(); ++it) { if (!bmtVT->pSlotTable->AddMethodSlot(*it)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); ++bmtVT->cVirtualSlots; ++bmtVT->cTotalSlots; } } //******************************************************************************* // Determine if this is the special SIMD type System.Numerics.Vector<T>, whose // size is determined dynamically based on the hardware and the presence of JIT // support. // If so: // - Update the NumInstanceFieldBytes on the bmtFieldPlacement. // - Update the m_cbNativeSize and m_cbManagedSize if HasLayout() is true. // Return a BOOL result to indicate whether the size has been updated. // BOOL MethodTableBuilder::CheckIfSIMDAndUpdateSize() { STANDARD_VM_CONTRACT; #if defined(TARGET_X86) || defined(TARGET_AMD64) if (!bmtProp->fIsIntrinsicType) return false; if (bmtFP->NumInstanceFieldBytes != 16) return false; LPCUTF8 className; LPCUTF8 nameSpace; if (FAILED(GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetTypeDefToken(), &className, &nameSpace))) return false; if (strcmp(className, "Vector`1") != 0 || strcmp(nameSpace, "System.Numerics") != 0) return false; if (!TargetHasAVXSupport()) return false; EEJitManager *jitMgr = ExecutionManager::GetEEJitManager(); if (jitMgr->LoadJIT()) { CORJIT_FLAGS cpuCompileFlags = jitMgr->GetCPUCompileFlags(); if (cpuCompileFlags.IsSet(CORJIT_FLAGS::CORJIT_FLAG_FEATURE_SIMD)) { unsigned intrinsicSIMDVectorLength = jitMgr->m_jit->getMaxIntrinsicSIMDVectorLength(cpuCompileFlags); if (intrinsicSIMDVectorLength != 0) { bmtFP->NumInstanceFieldBytes = intrinsicSIMDVectorLength; if (HasLayout()) { GetLayoutInfo()->m_cbManagedSize = intrinsicSIMDVectorLength; } return true; } } } #endif // defined(TARGET_X86) || defined(TARGET_AMD64) return false; } //******************************************************************************* void MethodTableBuilder::bmtInterfaceEntry::CreateSlotTable( StackingAllocator * pStackingAllocator) { STANDARD_VM_CONTRACT; CONSISTENCY_CHECK(m_pImplTable == NULL); SLOT_INDEX cSlots = (SLOT_INDEX)GetInterfaceType()->GetMethodTable()->GetNumVirtuals(); SLOT_INDEX cSlotsTotal = cSlots; if (GetInterfaceType()->GetMethodTable()->HasVirtualStaticMethods()) { MethodTable::MethodIterator it(GetInterfaceType()->GetMethodTable()); for (; it.IsValid(); it.Next()) { MethodDesc *pDeclMD = it.GetDeclMethodDesc(); if (pDeclMD->IsStatic() && pDeclMD->IsVirtual()) { cSlotsTotal++; } } } bmtInterfaceSlotImpl * pST = new (pStackingAllocator) bmtInterfaceSlotImpl[cSlotsTotal]; MethodTable::MethodIterator it(GetInterfaceType()->GetMethodTable()); for (; it.IsValid(); it.Next()) { MethodDesc *pDeclMD = it.GetDeclMethodDesc(); if (!pDeclMD->IsVirtual()) { continue; } bmtRTMethod * pCurMethod = new (pStackingAllocator) bmtRTMethod(GetInterfaceType(), it.GetDeclMethodDesc()); if (pDeclMD->IsStatic()) { pST[cSlots + m_cImplTableStatics++] = bmtInterfaceSlotImpl(pCurMethod, INVALID_SLOT_INDEX); } else { CONSISTENCY_CHECK(m_cImplTable == it.GetSlotNumber()); pST[m_cImplTable++] = bmtInterfaceSlotImpl(pCurMethod, INVALID_SLOT_INDEX); } } m_pImplTable = pST; } #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif // _PREFAST_ //--------------------------------------------------------------------------------------- // // Builds the method table, allocates MethodDesc, handles overloaded members, attempts to compress // interface storage. All dependent classes must already be resolved! // MethodTable * MethodTableBuilder::BuildMethodTableThrowing( LoaderAllocator * pAllocator, Module * pLoaderModule, Module * pModule, mdToken cl, BuildingInterfaceInfo_t * pBuildingInterfaceList, const LayoutRawFieldInfo * pLayoutRawFieldInfos, MethodTable * pParentMethodTable, const bmtGenericsInfo * bmtGenericsInfo, SigPointer parentInst, WORD cBuildingInterfaceList) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(GetHalfBakedClass())); PRECONDITION(CheckPointer(bmtGenericsInfo)); } CONTRACTL_END; pModule->EnsureLibraryLoaded(); // The following structs, defined as private members of MethodTableBuilder, contain the necessary local // parameters needed for BuildMethodTable Look at the struct definitions for a detailed list of all // parameters available to BuildMethodTableThrowing. SetBMTData( pAllocator, new (GetStackingAllocator()) bmtErrorInfo(), new (GetStackingAllocator()) bmtProperties(), new (GetStackingAllocator()) bmtVtable(), new (GetStackingAllocator()) bmtParentInfo(), new (GetStackingAllocator()) bmtInterfaceInfo(), new (GetStackingAllocator()) bmtMetaDataInfo(), new (GetStackingAllocator()) bmtMethodInfo(), new (GetStackingAllocator()) bmtMethAndFieldDescs(), new (GetStackingAllocator()) bmtFieldPlacement(), new (GetStackingAllocator()) bmtInternalInfo(), new (GetStackingAllocator()) bmtGCSeriesInfo(), new (GetStackingAllocator()) bmtMethodImplInfo(), bmtGenericsInfo, new (GetStackingAllocator()) bmtEnumFieldInfo(pModule->GetMDImport())); //Initialize structs bmtError->resIDWhy = IDS_CLASSLOAD_GENERAL; // Set the reason and the offending method def. If the method information bmtError->pThrowable = NULL; bmtError->pModule = pModule; bmtError->cl = cl; bmtInternal->pInternalImport = pModule->GetMDImport(); bmtInternal->pModule = pModule; bmtInternal->pParentMT = pParentMethodTable; // Create the chain of bmtRTType for the parent types. This allows all imported // parent methods to be associated with their declaring types, and as such it is // easy to access the appropriate Substitution when comparing signatures. bmtRTType * pParent = NULL; if (pParentMethodTable != NULL) { Substitution * pParentSubst = new (GetStackingAllocator()) Substitution(pModule, parentInst, NULL); pParent = CreateTypeChain(pParentMethodTable, *pParentSubst); } // Now create the bmtMDType for the type being built. bmtInternal->pType = new (GetStackingAllocator()) bmtMDType(pParent, pModule, cl, bmtGenericsInfo->typeContext); // If not NULL, it means there are some by-value fields, and this contains an entry for each inst #ifdef _DEBUG // Set debug class name string for easier debugging. LPCUTF8 className; LPCUTF8 nameSpace; if (FAILED(GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetTypeDefToken(), &className, &nameSpace))) { className = nameSpace = "Invalid TypeDef record"; } { S_SIZE_T safeLen = S_SIZE_T(sizeof(char))*(S_SIZE_T(strlen(className)) + S_SIZE_T(strlen(nameSpace)) + S_SIZE_T(2)); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); char *name = (char*) AllocateFromHighFrequencyHeap(safeLen); strcpy_s(name, len, nameSpace); if (strlen(nameSpace) > 0) { name[strlen(nameSpace)] = '.'; name[strlen(nameSpace) + 1] = '\0'; } strcat_s(name, len, className); GetHalfBakedClass()->SetDebugClassName(name); } if (g_pConfig->ShouldBreakOnClassBuild(className)) { CONSISTENCY_CHECK_MSGF(false, ("BreakOnClassBuild: typename '%s' ", className)); GetHalfBakedClass()->m_fDebuggingClass = TRUE; } LPCUTF8 pszDebugName,pszDebugNamespace; if (FAILED(pModule->GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetTypeDefToken(), &pszDebugName, &pszDebugNamespace))) { pszDebugName = pszDebugNamespace = "Invalid TypeDef record"; } StackSString debugName(SString::Utf8, pszDebugName); // If there is an instantiation, update the debug name to include instantiation type names. if (bmtGenerics->HasInstantiation()) { StackSString debugName(SString::Utf8, GetDebugClassName()); TypeString::AppendInst(debugName, bmtGenerics->GetInstantiation(), TypeString::FormatBasic); StackScratchBuffer buff; const char* pDebugNameUTF8 = debugName.GetUTF8(buff); S_SIZE_T safeLen = S_SIZE_T(strlen(pDebugNameUTF8)) + S_SIZE_T(1); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); char *name = (char*) AllocateFromLowFrequencyHeap(safeLen); strcpy_s(name, len, pDebugNameUTF8); GetHalfBakedClass()->SetDebugClassName(name); pszDebugName = (LPCUTF8)name; } LOG((LF_CLASSLOADER, LL_INFO1000, "Loading class \"%s%s%S\" from module \"%ws\" in domain 0x%p %s\n", *pszDebugNamespace ? pszDebugNamespace : "", *pszDebugNamespace ? NAMESPACE_SEPARATOR_STR : "", debugName.GetUnicode(), pModule->GetDebugName(), pModule->GetDomain(), (pModule->IsSystem()) ? "System Domain" : "" )); #endif // _DEBUG // If this is CoreLib, then don't perform some sanity checks on the layout bmtProp->fNoSanityChecks = pModule->IsSystem() || #ifdef FEATURE_READYTORUN // No sanity checks for ready-to-run compiled images if possible (pModule->IsReadyToRun() && pModule->GetReadyToRunInfo()->SkipTypeValidation()) || #endif // No sanity checks for real generic instantiations !bmtGenerics->IsTypicalTypeDefinition(); // Interfaces have a parent class of Object, but we don't really want to inherit all of // Object's virtual methods, so pretend we don't have a parent class - at the bottom of this // function we reset the parent class if (IsInterface()) { bmtInternal->pType->SetParentType(NULL); bmtInternal->pParentMT = NULL; } unsigned totalDeclaredFieldSize=0; // Check to see if the class is a valuetype; but we don't want to mark System.Enum // as a ValueType. To accomplish this, the check takes advantage of the fact // that System.ValueType and System.Enum are loaded one immediately after the // other in that order, and so if the parent MethodTable is System.ValueType and // the System.Enum MethodTable is unset, then we must be building System.Enum and // so we don't mark it as a ValueType. if(HasParent() && ((g_pEnumClass != NULL && GetParentMethodTable() == g_pValueTypeClass) || GetParentMethodTable() == g_pEnumClass)) { bmtProp->fIsValueClass = true; HRESULT hr = GetCustomAttribute(bmtInternal->pType->GetTypeDefToken(), WellKnownAttribute::UnsafeValueType, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { SetUnsafeValueClass(); } hr = GetCustomAttribute(bmtInternal->pType->GetTypeDefToken(), WellKnownAttribute::IsByRefLike, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { bmtFP->fIsByRefLikeType = true; } } // Check to see if the class is an enumeration. No fancy checks like the one immediately // above for value types are necessary here. if(HasParent() && GetParentMethodTable() == g_pEnumClass) { bmtProp->fIsEnum = true; // Ensure we don't have generic enums, or at least enums that have a // different number of type parameters from their enclosing class. // The goal is to ensure that the enum's values can't depend on the // type parameters in any way. And we don't see any need for an // enum to have additional type parameters. if (bmtGenerics->GetNumGenericArgs() != 0) { // Nested enums can have generic type parameters from their enclosing class. // CLS rules require type parameters to be propagated to nested types. // Note that class G<T> { enum E { } } will produce "G`1+E<T>". // We want to disallow class G<T> { enum E<T, U> { } } // Perhaps the IL equivalent of class G<T> { enum E { } } should be legal. if (!IsNested()) { BuildMethodTableThrowException(IDS_CLASSLOAD_ENUM_EXTRA_GENERIC_TYPE_PARAM); } mdTypeDef tdEnclosing = mdTypeDefNil; HRESULT hr = GetMDImport()->GetNestedClassProps(GetCl(), &tdEnclosing); if (FAILED(hr)) ThrowHR(hr, BFA_UNABLE_TO_GET_NESTED_PROPS); HENUMInternalHolder hEnumGenericPars(GetMDImport()); if (FAILED(hEnumGenericPars.EnumInitNoThrow(mdtGenericParam, tdEnclosing))) { GetAssembly()->ThrowTypeLoadException(GetMDImport(), tdEnclosing, IDS_CLASSLOAD_BADFORMAT); } if (hEnumGenericPars.EnumGetCount() != bmtGenerics->GetNumGenericArgs()) { BuildMethodTableThrowException(IDS_CLASSLOAD_ENUM_EXTRA_GENERIC_TYPE_PARAM); } } } // If this type is marked by [Intrinsic] attribute, it may be specially treated by the runtime/compiler // SIMD types have [Intrinsic] attribute, for example // // We check this here fairly early to ensure other downstream checks on these types can be slightly more efficient. if (GetModule()->IsSystem()) { HRESULT hr = GetCustomAttribute(bmtInternal->pType->GetTypeDefToken(), WellKnownAttribute::Intrinsic, NULL, NULL); if (hr == S_OK) { bmtProp->fIsIntrinsicType = true; } } #if defined(TARGET_X86) || defined(TARGET_AMD64) || defined(TARGET_ARM64) if (bmtProp->fIsIntrinsicType && !bmtGenerics->HasInstantiation()) { LPCUTF8 className; LPCUTF8 nameSpace; HRESULT hr = GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetTypeDefToken(), &className, &nameSpace); if (bmtInternal->pType->IsNested()) { IfFailThrow(GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetEnclosingTypeToken(), NULL, &nameSpace)); } #if defined(TARGET_ARM64) // All the funtions in System.Runtime.Intrinsics.Arm are hardware intrinsics. if (hr == S_OK && strcmp(nameSpace, "System.Runtime.Intrinsics.Arm") == 0) #else // All the funtions in System.Runtime.Intrinsics.X86 are hardware intrinsics. if (hr == S_OK && (strcmp(nameSpace, "System.Runtime.Intrinsics.X86") == 0)) #endif { bmtProp->fIsHardwareIntrinsic = true; } } #endif // Com Import classes are special. These types must derive from System.Object, // and we then substitute the parent with System._ComObject. if (IsComImport() && !IsEnum() && !IsInterface() && !IsValueClass() && !IsDelegate()) { #ifdef FEATURE_COMINTEROP // ComImport classes must extend from Object MethodTable* pMTParent = GetParentMethodTable(); if ((pMTParent == NULL) || (pMTParent != g_pObjectClass)) { BuildMethodTableThrowException(IDS_CLASSLOAD_CANTEXTEND); } if (HasLayout()) { // ComImport classes cannot have layout information. BuildMethodTableThrowException(IDS_CLASSLOAD_COMIMPCANNOTHAVELAYOUT); } if (g_pBaseCOMObject != NULL) { // We could have had COM interop classes derive from System._ComObject, // but instead we have them derive from System.Object, have them set the // ComImport bit in the type attributes, and then we swap out the parent // type under the covers. bmtInternal->pType->SetParentType(CreateTypeChain(g_pBaseCOMObject, Substitution())); bmtInternal->pParentMT = g_pBaseCOMObject; } #endif // if the current class is imported bmtProp->fIsComObjectType = true; } #ifdef FEATURE_COMINTEROP // Check for special COM interop types. CheckForSpecialTypes(); CheckForTypeEquivalence(cBuildingInterfaceList, pBuildingInterfaceList); if (HasParent()) { // Types that inherit from com object types are themselves com object types. if (GetParentMethodTable()->IsComObjectType()) { // if the parent class is of ComObjectType // so is the child bmtProp->fIsComObjectType = true; } #ifdef FEATURE_TYPEEQUIVALENCE // If your parent is type equivalent then so are you if (GetParentMethodTable()->HasTypeEquivalence()) { bmtProp->fHasTypeEquivalence = true; } #endif } #endif // FEATURE_COMINTEROP if (!HasParent() && !IsInterface()) { if(g_pObjectClass != NULL) { if(!IsGlobalClass()) { // Non object derived types that are not the global class are prohibited by spec BuildMethodTableThrowException(IDS_CLASSLOAD_PARENTNULL); } } } // NOTE: This appears to be the earliest point during class loading that other classes MUST be loaded // resolve unresolved interfaces, determine an upper bound on the size of the interface map, // and determine the size of the largest interface (in # slots) ResolveInterfaces(cBuildingInterfaceList, pBuildingInterfaceList); // Enumerate this class's methodImpls EnumerateMethodImpls(); // Enumerate this class's methods and fields EnumerateClassMethods(); ValidateMethods(); EnumerateClassFields(); // Import the slots of the parent for use in placing this type's methods. ImportParentMethods(); // This will allocate the working versions of the VTable and NonVTable in bmtVT AllocateWorkingSlotTables(); // Allocate a MethodDesc* for each method (needed later when doing interfaces), and a FieldDesc* for each field AllocateFieldDescs(); // Copy the parent's vtable into the current type's vtable CopyParentVtable(); bmtVT->pDispatchMapBuilder = new (GetStackingAllocator()) DispatchMapBuilder(GetStackingAllocator()); // Determine vtable placement for each member in this class PlaceVirtualMethods(); PlaceNonVirtualMethods(); // Allocate MethodDescs (expects methods placed methods) AllocAndInitMethodDescs(); if (IsInterface()) { // // We need to process/place method impls for default interface method overrides. // We won't build dispatch map for interfaces, though. // ProcessMethodImpls(); PlaceMethodImpls(); } else { // // If we are a class, then there may be some unplaced vtable methods (which are by definition // interface methods, otherwise they'd already have been placed). Place as many unplaced methods // as possible, in the order preferred by interfaces. However, do not allow any duplicates - once // a method has been placed, it cannot be placed again - if we are unable to neatly place an interface, // create duplicate slots for it starting at dwCurrentDuplicateVtableSlot. Fill out the interface // map for all interfaces as they are placed. // // If we are an interface, then all methods are already placed. Fill out the interface map for // interfaces as they are placed. // ComputeInterfaceMapEquivalenceSet(); PlaceInterfaceMethods(); ProcessMethodImpls(); ProcessInexactMethodImpls(); PlaceMethodImpls(); if (!bmtProp->fNoSanityChecks) { // Now that interface method implementation have been fully resolved, // we need to make sure that type constraints are also met. ValidateInterfaceMethodConstraints(); } } // Verify that we have not overflowed the number of slots. if (!FitsInU2((UINT64)bmtVT->pSlotTable->GetSlotCount())) { BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } // ensure we didn't overflow the temporary vtable _ASSERTE(bmtVT->pSlotTable->GetSlotCount() <= bmtVT->dwMaxVtableSize); // Allocate and initialize the dictionary for the type. This will be filled out later // with the final values. AllocAndInitDictionary(); //////////////////////////////////////////////////////////////////////////////////////////////// // Fields // // We decide here if we need a dynamic entry for our statics. We need it here because // the offsets of our fields will depend on this. For the dynamic case (which requires // an extra indirection (indirect depending of methodtable) we'll allocate the slot // in setupmethodtable if (((pAllocator->IsCollectible() || pModule->IsReflection() || bmtGenerics->HasInstantiation() || !pModule->IsStaticStoragePrepared(cl)) && (bmtVT->GetClassCtorSlotIndex() != INVALID_SLOT_INDEX || bmtEnumFields->dwNumStaticFields !=0)) #ifdef EnC_SUPPORTED // Classes in modules that have been edited (would do on class level if there were a // way to tell if the class had been edited) also have dynamic statics as the number // of statics might have changed, so can't use the static module-wide storage || (pModule->IsEditAndContinueEnabled() && ((EditAndContinueModule*)pModule)->GetApplyChangesCount() > CorDB_DEFAULT_ENC_FUNCTION_VERSION) #endif // EnC_SUPPORTED ) { // We will need a dynamic id bmtProp->fDynamicStatics = true; if (bmtGenerics->HasInstantiation()) { bmtProp->fGenericsStatics = true; } } // If not NULL, it means there are some by-value fields, and this contains an entry for each instance or static field, // which is NULL if not a by value field, and points to the EEClass of the field if a by value field. Instance fields // come first, statics come second. MethodTable ** pByValueClassCache = NULL; // Go thru all fields and initialize their FieldDescs. InitializeFieldDescs(GetApproxFieldDescListRaw(), pLayoutRawFieldInfos, bmtInternal, bmtGenerics, bmtMetaData, bmtEnumFields, bmtError, &pByValueClassCache, bmtMFDescs, bmtFP, &totalDeclaredFieldSize); // Place regular static fields PlaceRegularStaticFields(); // Place thread static fields PlaceThreadStaticFields(); LOG((LF_CODESHARING, LL_INFO10000, "Placing %d statics (%d handles) for class %s.\n", GetNumStaticFields(), GetNumHandleRegularStatics() + GetNumHandleThreadStatics(), pszDebugName)); if (IsBlittable() || IsManagedSequential()) { bmtFP->NumGCPointerSeries = 0; bmtFP->NumInstanceGCPointerFields = 0; _ASSERTE(HasLayout()); bmtFP->NumInstanceFieldBytes = GetLayoutInfo()->m_cbManagedSize; // For simple Blittable types we still need to check if they have any overlapping // fields and call the method SetHasOverLayedFields() when they are detected. // if (HasExplicitFieldOffsetLayout()) { _ASSERTE(!bmtGenerics->fContainsGenericVariables); // A simple Blittable type can't ever be an open generic type. HandleExplicitLayout(pByValueClassCache); } } else { _ASSERTE(!IsBlittable()); // HandleExplicitLayout fails for the GenericTypeDefinition when // it will succeed for some particular instantiations. // Thus we only do explicit layout for real instantiations, e.g. C<int>, not // the open types such as the GenericTypeDefinition C<!0> or any // of the "fake" types involving generic type variables which are // used for reflection and verification, e.g. C<List<!0>>. // if (!bmtGenerics->fContainsGenericVariables && HasExplicitFieldOffsetLayout()) { HandleExplicitLayout(pByValueClassCache); } else { // Place instance fields PlaceInstanceFields(pByValueClassCache); } } if (CheckIfSIMDAndUpdateSize()) { totalDeclaredFieldSize = bmtFP->NumInstanceFieldBytes; } // We enforce that all value classes have non-zero size if (IsValueClass() && bmtFP->NumInstanceFieldBytes == 0) { BuildMethodTableThrowException(IDS_CLASSLOAD_ZEROSIZE); } if (bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA) { // Verify self-referencing statics with RVA (now when the ValueType size is known) VerifySelfReferencingStaticValueTypeFields_WithRVA(pByValueClassCache); } // Now setup the method table SetupMethodTable2(pLoaderModule); MethodTable * pMT = GetHalfBakedMethodTable(); #ifdef FEATURE_64BIT_ALIGNMENT if (GetHalfBakedClass()->IsAlign8Candidate()) pMT->SetRequiresAlign8(); #endif if (bmtGenerics->pVarianceInfo != NULL) { pMT->SetHasVariance(); } if (bmtFP->NumRegularStaticGCBoxedFields != 0) { pMT->SetHasBoxedRegularStatics(); } if (bmtFP->fIsByRefLikeType) { pMT->SetIsByRefLike(); } if (IsValueClass()) { if (bmtFP->NumInstanceFieldBytes != totalDeclaredFieldSize || HasOverLayedField()) GetHalfBakedClass()->SetIsNotTightlyPacked(); #ifdef FEATURE_HFA GetHalfBakedClass()->CheckForHFA(pByValueClassCache); #endif #ifdef UNIX_AMD64_ABI #ifdef FEATURE_HFA #error "Can't have FEATURE_HFA and UNIX_AMD64_ABI defined at the same time." #endif // FEATURE_HFA SystemVAmd64CheckForPassStructInRegister(); #endif // UNIX_AMD64_ABI } #ifdef _DEBUG pMT->SetDebugClassName(GetDebugClassName()); #endif #ifdef FEATURE_COMINTEROP if (IsInterface()) { GetCoClassAttribInfo(); } #endif // FEATURE_COMINTEROP if (HasExplicitFieldOffsetLayout()) // Perform relevant GC calculations for tdexplicit HandleGCForExplicitLayout(); else // Perform relevant GC calculations for value classes HandleGCForValueClasses(pByValueClassCache); // GC reqires the series to be sorted. // TODO: fix it so that we emit them in the correct order in the first place. if (pMT->ContainsPointers()) { CGCDesc* gcDesc = CGCDesc::GetCGCDescFromMT(pMT); qsort(gcDesc->GetLowestSeries(), (int)gcDesc->GetNumSeries(), sizeof(CGCDescSeries), compareCGCDescSeries); } SetFinalizationSemantics(); // Allocate dynamic slot if necessary if (bmtProp->fDynamicStatics) { if (bmtProp->fGenericsStatics) { FieldDesc* pStaticFieldDescs = NULL; if (bmtEnumFields->dwNumStaticFields != 0) { pStaticFieldDescs = pMT->GetApproxFieldDescListRaw() + bmtEnumFields->dwNumInstanceFields; } pMT->SetupGenericsStaticsInfo(pStaticFieldDescs); } else { // Get an id for the dynamic class. We store it in the class because // no class that is persisted in ngen should have it (ie, if the class is ngened // The id is stored in an optional field so we need to ensure an optional field descriptor has // been allocated for this EEClass instance. EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, pAllocator->GetLowFrequencyHeap()); SetModuleDynamicID(GetModule()->AllocateDynamicEntry(pMT)); } } // // if there are context or thread static set the info in the method table optional members // // Check for the RemotingProxy Attribute // structs with GC pointers MUST be pointer sized aligned because the GC assumes it if (IsValueClass() && pMT->ContainsPointers() && (bmtFP->NumInstanceFieldBytes % TARGET_POINTER_SIZE != 0)) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsInterface()) { // Reset parent class pMT->SetParentMethodTable (g_pObjectClass); } #ifdef _DEBUG // Reset the debug method names for BoxedEntryPointStubs // so they reflect the very best debug information for the methods { DeclaredMethodIterator methIt(*this); while (methIt.Next()) { if (methIt->GetUnboxedMethodDesc() != NULL) { { MethodDesc *pMD = methIt->GetUnboxedMethodDesc(); StackSString name(SString::Utf8); TypeString::AppendMethodDebug(name, pMD); StackScratchBuffer buff; const char* pDebugNameUTF8 = name.GetUTF8(buff); S_SIZE_T safeLen = S_SIZE_T(strlen(pDebugNameUTF8)) + S_SIZE_T(1); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); pMD->m_pszDebugMethodName = (char*) AllocateFromLowFrequencyHeap(safeLen); _ASSERTE(pMD->m_pszDebugMethodName); strcpy_s((char *) pMD->m_pszDebugMethodName, len, pDebugNameUTF8); } { MethodDesc *pMD = methIt->GetMethodDesc(); StackSString name(SString::Utf8); TypeString::AppendMethodDebug(name, pMD); StackScratchBuffer buff; const char* pDebugNameUTF8 = name.GetUTF8(buff); S_SIZE_T safeLen = S_SIZE_T(strlen(pDebugNameUTF8))+S_SIZE_T(1); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); pMD->m_pszDebugMethodName = (char*) AllocateFromLowFrequencyHeap(safeLen); _ASSERTE(pMD->m_pszDebugMethodName); strcpy_s((char *) pMD->m_pszDebugMethodName, len, pDebugNameUTF8); } } } } #endif // _DEBUG //If this is a value type, then propagate the UnsafeValueTypeAttribute from //its instance members to this type. if (IsValueClass() && !IsUnsafeValueClass()) { ApproxFieldDescIterator fields(GetHalfBakedMethodTable(), ApproxFieldDescIterator::INSTANCE_FIELDS ); FieldDesc * current; while (NULL != (current = fields.Next())) { CONSISTENCY_CHECK(!current->IsStatic()); if (current->GetFieldType() == ELEMENT_TYPE_VALUETYPE) { TypeHandle th = current->LookupApproxFieldTypeHandle(); CONSISTENCY_CHECK(!th.IsNull()); if (th.AsMethodTable()->GetClass()->IsUnsafeValueClass()) { SetUnsafeValueClass(); break; } } } } if (!IsValueClass()) { #ifdef FEATURE_ICASTABLE if (g_pICastableInterface != NULL && pMT->CanCastToInterface(g_pICastableInterface)) { pMT->SetICastable(); } #endif // FEATURE_ICASTABLE if (g_pIDynamicInterfaceCastableInterface != NULL && pMT->CanCastToInterface(g_pIDynamicInterfaceCastableInterface)) { pMT->SetIDynamicInterfaceCastable(); } } #ifdef FEATURE_OBJCMARSHAL // Check if this type has a finalizer and then if it is a referenced tracked type. if (pMT->HasFinalizer() && !IsValueClass() && !IsInterface() && !IsDelegate()) { BOOL isTrackedReference = FALSE; if (HasParent()) { MethodTable * pParentClass = GetParentMethodTable(); PREFIX_ASSUME(pParentClass != NULL); isTrackedReference = pParentClass->IsTrackedReferenceWithFinalizer(); } if (!isTrackedReference) { HRESULT hr = GetCustomAttribute(bmtInternal->pType->GetTypeDefToken(), WellKnownAttribute::ObjectiveCTrackedTypeAttribute, NULL, NULL); isTrackedReference = hr == S_OK ? TRUE : FALSE; } if (isTrackedReference) pMT->SetIsTrackedReferenceWithFinalizer(); } #endif // FEATURE_OBJCMARSHAL // Grow the typedef ridmap in advance as we can't afford to // fail once we set the resolve bit pModule->EnsureTypeDefCanBeStored(bmtInternal->pType->GetTypeDefToken()); // Grow the tables in advance so that RID map filling cannot fail // once we're past the commit point. EnsureRIDMapsCanBeFilled(); { // NOTE. NOTE!! the EEclass can now be accessed by other threads. // Do NOT place any initialization after this point. // You may NOT fail the call after this point. FAULT_FORBID(); CANNOTTHROWCOMPLUSEXCEPTION(); /* GetMemTracker()->SuppressRelease(); */ } #ifdef _DEBUG if (g_pConfig->ShouldDumpOnClassLoad(pszDebugName)) { LOG((LF_ALWAYS, LL_ALWAYS, "Method table summary for '%s':\n", pszDebugName)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of static fields: %d\n", bmtEnumFields->dwNumStaticFields)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of instance fields: %d\n", bmtEnumFields->dwNumInstanceFields)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of static obj ref fields: %d\n", bmtEnumFields->dwNumStaticObjRefFields)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of static boxed fields: %d\n", bmtEnumFields->dwNumStaticBoxedFields)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of declared fields: %d\n", NumDeclaredFields())); LOG((LF_ALWAYS, LL_ALWAYS, "Number of declared methods: %d\n", NumDeclaredMethods())); LOG((LF_ALWAYS, LL_ALWAYS, "Number of declared non-abstract methods: %d\n", bmtMethod->dwNumDeclaredNonAbstractMethods)); pMT->Debug_DumpInterfaceMap("Approximate"); pMT->DebugDumpVtable(pszDebugName, FALSE); pMT->DebugDumpFieldLayout(pszDebugName, FALSE); pMT->DebugDumpGCDesc(pszDebugName, FALSE); pMT->Debug_DumpDispatchMap(); } #endif //_DEBUG STRESS_LOG3(LF_CLASSLOADER, LL_INFO1000, "MethodTableBuilder: finished method table for module %p token %x = %pT \n", pModule, GetCl(), GetHalfBakedMethodTable()); return GetHalfBakedMethodTable(); } // MethodTableBuilder::BuildMethodTableThrowing #ifdef _PREFAST_ #pragma warning(pop) #endif //--------------------------------------------------------------------------------------- // // Resolve unresolved interfaces, determine an upper bound on the size of the interface map. // VOID MethodTableBuilder::ResolveInterfaces( WORD cBuildingInterfaceList, BuildingInterfaceInfo_t * pBuildingInterfaceList) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtAllocator)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; // resolve unresolved interfaces and determine the size of the largest interface (in # slots) LoadApproxInterfaceMap(); // Inherit parental slot counts //@TODO: This doesn't belong here. if (HasParent()) { MethodTable * pParentClass = GetParentMethodTable(); PREFIX_ASSUME(pParentClass != NULL); bmtParent->NumParentPointerSeries = pParentClass->ContainsPointers() ? (DWORD)CGCDesc::GetCGCDescFromMT(pParentClass)->GetNumSeries() : 0; if (pParentClass->HasFieldsWhichMustBeInited()) { SetHasFieldsWhichMustBeInited(); } #ifdef FEATURE_READYTORUN if (!(IsValueClass() || (pParentClass == g_pObjectClass))) { CheckLayoutDependsOnOtherModules(pParentClass); } #endif } else { bmtParent->NumParentPointerSeries = 0; } } // MethodTableBuilder::ResolveInterfaces //******************************************************************************* /* static */ int __cdecl MethodTableBuilder::bmtMetaDataInfo::MethodImplTokenPair::Compare( const void *elem1, const void *elem2) { STATIC_CONTRACT_LEAF; MethodImplTokenPair *e1 = (MethodImplTokenPair *)elem1; MethodImplTokenPair *e2 = (MethodImplTokenPair *)elem2; if (e1->methodBody < e2->methodBody) return -1; else if (e1->methodBody > e2->methodBody) return 1; else if (e1->methodDecl < e2->methodDecl) return -1; else if (e1->methodDecl > e2->methodDecl) return 1; else return 0; } //******************************************************************************* /* static */ BOOL MethodTableBuilder::bmtMetaDataInfo::MethodImplTokenPair::Equal( const MethodImplTokenPair *elem1, const MethodImplTokenPair *elem2) { STATIC_CONTRACT_LEAF; return ((elem1->methodBody == elem2->methodBody) && (elem1->methodDecl == elem2->methodDecl)); } //******************************************************************************* BOOL MethodTableBuilder::IsEligibleForCovariantReturns(mdToken methodDeclToken) { STANDARD_VM_CONTRACT; // // Note on covariant return types: right now we only support covariant returns for MethodImpls on // classes, where the MethodDecl is also on a class. Interface methods are not supported. // We will also allow covariant return types if both the MethodImpl and MethodDecl are not on the same type. // HRESULT hr = S_OK; IMDInternalImport* pMDInternalImport = GetMDImport(); // First, check if the type with the MethodImpl is a class. if (IsValueClass() || IsInterface()) return FALSE; mdToken tkParent; hr = pMDInternalImport->GetParentToken(methodDeclToken, &tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); // Second, check that the type with the MethodImpl is not the same as the type with the MethodDecl if (GetCl() == tkParent) return FALSE; // Finally, check that the type with the MethodDecl is not an interface. To do so, we need to compute the TypeDef // token of the type with the MethodDecl, as well as its module, in order to use the metadata to check if the type // is an interface. mdToken declTypeDefToken = mdTokenNil; Module* pDeclModule = GetModule(); if (TypeFromToken(tkParent) == mdtTypeRef || TypeFromToken(tkParent) == mdtTypeDef) { if (!ClassLoader::ResolveTokenToTypeDefThrowing(GetModule(), tkParent, &pDeclModule, &declTypeDefToken)) return FALSE; } else if (TypeFromToken(tkParent) == mdtTypeSpec) { ULONG cbTypeSig; PCCOR_SIGNATURE pTypeSig; hr = pMDInternalImport->GetSigFromToken(tkParent, &cbTypeSig, &pTypeSig); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); SigParser parser(pTypeSig, cbTypeSig); CorElementType elementType; IfFailThrow(parser.GetElemType(&elementType)); if (elementType == ELEMENT_TYPE_GENERICINST) { IfFailThrow(parser.GetElemType(&elementType)); } if (elementType == ELEMENT_TYPE_CLASS) { mdToken declTypeDefOrRefToken; IfFailThrow(parser.GetToken(&declTypeDefOrRefToken)); if (!ClassLoader::ResolveTokenToTypeDefThrowing(GetModule(), declTypeDefOrRefToken, &pDeclModule, &declTypeDefToken)) return FALSE; } } if (declTypeDefToken == mdTokenNil) return FALSE; // Now that we have computed the TypeDef token and the module, check its attributes to verify it is not an interface. DWORD attr; hr = pDeclModule->GetMDImport()->GetTypeDefProps(declTypeDefToken, &attr, NULL); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); return !IsTdInterface(attr); } //******************************************************************************* VOID MethodTableBuilder::EnumerateMethodImpls() { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; IMDInternalImport * pMDInternalImport = GetMDImport(); DWORD rid, maxRidMD, maxRidMR; HENUMInternalMethodImplHolder hEnumMethodImpl(pMDInternalImport); hr = hEnumMethodImpl.EnumMethodImplInitNoThrow(GetCl()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // This gets the count out of the metadata interface. bmtMethod->dwNumberMethodImpls = hEnumMethodImpl.EnumMethodImplGetCount(); bmtMethod->dwNumberInexactMethodImplCandidates = 0; // This is the first pass. In this we will simply enumerate the token pairs and fill in // the data structures. In addition, we'll sort the list and eliminate duplicates. if (bmtMethod->dwNumberMethodImpls > 0) { // // Allocate the structures to keep track of the token pairs // bmtMetaData->rgMethodImplTokens = new (GetStackingAllocator()) bmtMetaDataInfo::MethodImplTokenPair[bmtMethod->dwNumberMethodImpls]; // Iterate through each MethodImpl declared on this class for (DWORD i = 0; i < bmtMethod->dwNumberMethodImpls; i++) { hr = hEnumMethodImpl.EnumMethodImplNext( &bmtMetaData->rgMethodImplTokens[i].methodBody, &bmtMetaData->rgMethodImplTokens[i].methodDecl); bmtMetaData->rgMethodImplTokens[i].fConsiderDuringInexactMethodImplProcessing = false; bmtMetaData->rgMethodImplTokens[i].fThrowIfUnmatchedDuringInexactMethodImplProcessing = false; bmtMetaData->rgMethodImplTokens[i].interfaceEquivalenceSet = 0; bmtMetaData->rgMethodImplTokens[i].fRequiresCovariantReturnTypeChecking = false; if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // Grab the next set of body/decl tokens if (hr == S_FALSE) { // In the odd case that the enumerator fails before we've reached the total reported // entries, let's reset the count and just break out. (Should we throw?) bmtMethod->dwNumberMethodImpls = i; break; } } // No need to do any sorting or duplicate elimination if there's not two or more methodImpls if (bmtMethod->dwNumberMethodImpls > 1) { // Now sort qsort(bmtMetaData->rgMethodImplTokens, bmtMethod->dwNumberMethodImpls, sizeof(bmtMetaDataInfo::MethodImplTokenPair), &bmtMetaDataInfo::MethodImplTokenPair::Compare); // Now eliminate duplicates for (DWORD i = 0; i < bmtMethod->dwNumberMethodImpls - 1; i++) { CONSISTENCY_CHECK((i + 1) < bmtMethod->dwNumberMethodImpls); bmtMetaDataInfo::MethodImplTokenPair *e1 = &bmtMetaData->rgMethodImplTokens[i]; bmtMetaDataInfo::MethodImplTokenPair *e2 = &bmtMetaData->rgMethodImplTokens[i + 1]; // If the pair are equal, eliminate the first one, and reduce the total count by one. if (bmtMetaDataInfo::MethodImplTokenPair::Equal(e1, e2)) { DWORD dwCopyNum = bmtMethod->dwNumberMethodImpls - (i + 1); memcpy(e1, e2, dwCopyNum * sizeof(bmtMetaDataInfo::MethodImplTokenPair)); bmtMethod->dwNumberMethodImpls--; CONSISTENCY_CHECK(bmtMethod->dwNumberMethodImpls > 0); } } } } if (bmtMethod->dwNumberMethodImpls != 0) { // // Allocate the structures to keep track of the impl matches // bmtMetaData->pMethodDeclSubsts = new (GetStackingAllocator()) Substitution[bmtMethod->dwNumberMethodImpls]; // These are used for verification maxRidMD = pMDInternalImport->GetCountWithTokenKind(mdtMethodDef); maxRidMR = pMDInternalImport->GetCountWithTokenKind(mdtMemberRef); // Iterate through each MethodImpl declared on this class for (DWORD i = 0; i < bmtMethod->dwNumberMethodImpls; i++) { PCCOR_SIGNATURE pSigDecl = NULL; PCCOR_SIGNATURE pSigBody = NULL; ULONG cbSigDecl; ULONG cbSigBody; mdToken tkParent; mdToken theBody, theDecl; Substitution theDeclSubst(GetModule(), SigPointer(), NULL); // this can get updated later below. theBody = bmtMetaData->rgMethodImplTokens[i].methodBody; theDecl = bmtMetaData->rgMethodImplTokens[i].methodDecl; // IMPLEMENTATION LIMITATION: currently, we require that the body of a methodImpl // belong to the current type. This is because we need to allocate a different // type of MethodDesc for bodies that are part of methodImpls. if (TypeFromToken(theBody) != mdtMethodDef) { hr = FindMethodDeclarationForMethodImpl( theBody, &theBody, TRUE); if (FAILED(hr)) { BuildMethodTableThrowException(hr, IDS_CLASSLOAD_MI_ILLEGAL_BODY, mdMethodDefNil); } // Make sure to update the stored token with the resolved token. bmtMetaData->rgMethodImplTokens[i].methodBody = theBody; } if (TypeFromToken(theBody) != mdtMethodDef) { BuildMethodTableThrowException(BFA_METHODDECL_NOT_A_METHODDEF); } CONSISTENCY_CHECK(theBody == bmtMetaData->rgMethodImplTokens[i].methodBody); // // Now that the tokens of Decl and Body are obtained, do the MD validation // rid = RidFromToken(theDecl); // Perform initial rudimentary validation of the token. Full token verification // will be done in TestMethodImpl when placing the methodImpls. if (TypeFromToken(theDecl) == mdtMethodDef) { // Decl must be valid token if ((rid == 0) || (rid > maxRidMD)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL); } // Get signature and length if (FAILED(pMDInternalImport->GetSigOfMethodDef(theDecl, &cbSigDecl, &pSigDecl))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } // The token is not a MethodDef (likely a MemberRef) else { // Decl must be valid token if ((TypeFromToken(theDecl) != mdtMemberRef) || (rid == 0) || (rid > maxRidMR)) { bmtError->resIDWhy = IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL; BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL); } // Get signature and length LPCSTR szDeclName; if (FAILED(pMDInternalImport->GetNameAndSigOfMemberRef(theDecl, &pSigDecl, &cbSigDecl, &szDeclName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } // Get parent hr = pMDInternalImport->GetParentToken(theDecl,&tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); theDeclSubst = Substitution(tkParent, GetModule(), NULL); } // Perform initial rudimentary validation of the token. Full token verification // will be done in TestMethodImpl when placing the methodImpls. { // Body must be valid token rid = RidFromToken(theBody); if ((rid == 0)||(rid > maxRidMD)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_BODY); } // Body's parent must be this class hr = pMDInternalImport->GetParentToken(theBody,&tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); if(tkParent != GetCl()) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_BODY); } } // Decl's and Body's signatures must match if(pSigDecl && cbSigDecl) { if (FAILED(pMDInternalImport->GetSigOfMethodDef(theBody, &cbSigBody, &pSigBody)) || (pSigBody == NULL) || (cbSigBody == 0)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MISSING_SIG_BODY); } // Can't use memcmp because there may be two AssemblyRefs // in this scope, pointing to the same assembly, etc.). BOOL compatibleSignatures = MetaSig::CompareMethodSigs(pSigDecl, cbSigDecl, GetModule(), &theDeclSubst, pSigBody, cbSigBody, GetModule(), NULL, FALSE); if (!compatibleSignatures && IsEligibleForCovariantReturns(theDecl)) { if (MetaSig::CompareMethodSigs(pSigDecl, cbSigDecl, GetModule(), &theDeclSubst, pSigBody, cbSigBody, GetModule(), NULL, TRUE)) { // Signatures matched, except for the return type. Flag that MethodImpl to check the return type at a later // stage for compatibility, and treat it as compatible for now. // For compatibility rules, see ECMA I.8.7.1. We will use the MethodTable::CanCastTo() at a later stage to validate // compatibilities of the return types according to these rules. compatibleSignatures = TRUE; bmtMetaData->rgMethodImplTokens[i].fRequiresCovariantReturnTypeChecking = true; bmtMetaData->fHasCovariantOverride = true; } } if (!compatibleSignatures) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_BODY_DECL_MISMATCH); } } else { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MISSING_SIG_DECL); } bmtMetaData->pMethodDeclSubsts[i] = theDeclSubst; } } } // MethodTableBuilder::EnumerateMethodImpls //******************************************************************************* // // Find a method declaration that must reside in the scope passed in. This method cannot be called if // the reference travels to another scope. // // Protect against finding a declaration that lives within // us (the type being created) // HRESULT MethodTableBuilder::FindMethodDeclarationForMethodImpl( mdToken pToken, // Token that is being located (MemberRef or MemberDef) mdToken* pDeclaration, // [OUT] Method definition for Member BOOL fSameClass) // Does the declaration need to be in this class { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; IMDInternalImport *pMDInternalImport = GetMDImport(); PCCOR_SIGNATURE pSig; // Signature of Member DWORD cSig; LPCUTF8 szMember = NULL; // The token should be a member ref or def. If it is a ref then we need to travel // back to us hopefully. if(TypeFromToken(pToken) == mdtMemberRef) { // Get the parent mdToken typeref; if (FAILED(pMDInternalImport->GetParentOfMemberRef(pToken, &typeref))) { BAD_FORMAT_NOTHROW_ASSERT(!"Invalid MemberRef record"); IfFailRet(COR_E_TYPELOAD); } GOTPARENT: if (TypeFromToken(typeref) == mdtMethodDef) { // If parent is a method def then this is a varags method mdTypeDef typeDef; IfFailRet(pMDInternalImport->GetParentToken(typeref, &typeDef)); if (TypeFromToken(typeDef) != mdtTypeDef) { // A mdtMethodDef must be parented by a mdtTypeDef BAD_FORMAT_NOTHROW_ASSERT(!"MethodDef without TypeDef as Parent"); IfFailRet(COR_E_TYPELOAD); } BAD_FORMAT_NOTHROW_ASSERT(typeDef == GetCl()); // This is the real method we are overriding *pDeclaration = typeref; } else if (TypeFromToken(typeref) == mdtTypeSpec) { // Added so that method impls can refer to instantiated interfaces or classes if (FAILED(pMDInternalImport->GetSigFromToken(typeref, &cSig, &pSig))) { BAD_FORMAT_NOTHROW_ASSERT(!"Invalid TypeSpec record"); IfFailRet(COR_E_TYPELOAD); } CorElementType elemType = (CorElementType) *pSig++; if (elemType == ELEMENT_TYPE_GENERICINST) { // If this is a generic inst, we expect that the next elem is ELEMENT_TYPE_CLASS, // which is handled in the case below. elemType = (CorElementType) *pSig++; BAD_FORMAT_NOTHROW_ASSERT(elemType == ELEMENT_TYPE_CLASS); } if (elemType == ELEMENT_TYPE_CLASS) { // This covers E_T_GENERICINST and E_T_CLASS typespec formats. We don't expect // any other kinds to come through here. CorSigUncompressToken(pSig, &typeref); } else { // This is an unrecognized signature format. BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MI_BAD_SIG, mdMethodDefNil); } goto GOTPARENT; } else { // Verify that the ref points back to us mdToken tkDef = mdTokenNil; if (TypeFromToken(typeref) == mdtTypeRef) { // We only get here when we know the token does not reference a type in a different scope. LPCUTF8 pszNameSpace; LPCUTF8 pszClassName; if (FAILED(pMDInternalImport->GetNameOfTypeRef(typeref, &pszNameSpace, &pszClassName))) { IfFailRet(COR_E_TYPELOAD); } mdToken tkRes; if (FAILED(pMDInternalImport->GetResolutionScopeOfTypeRef(typeref, &tkRes))) { IfFailRet(COR_E_TYPELOAD); } hr = pMDInternalImport->FindTypeDef(pszNameSpace, pszClassName, (TypeFromToken(tkRes) == mdtTypeRef) ? tkRes : mdTokenNil, &tkDef); if (FAILED(hr)) { IfFailRet(COR_E_TYPELOAD); } } else if (TypeFromToken(typeref) == mdtTypeDef) { // We get a typedef when the parent of the token is a typespec to the type. tkDef = typeref; } else { CONSISTENCY_CHECK_MSGF(FALSE, ("Invalid methodimpl signature in class %s.", GetDebugClassName())); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MI_BAD_SIG, mdMethodDefNil); } if (fSameClass && tkDef != GetCl()) { // If we required that the typedef be the same type as the current class, // and it doesn't match, we need to return a failure result. IfFailRet(COR_E_TYPELOAD); } IfFailRet(pMDInternalImport->GetNameAndSigOfMemberRef(pToken, &pSig, &cSig, &szMember)); if (isCallConv( MetaSig::GetCallingConvention(Signature(pSig, cSig)), IMAGE_CEE_CS_CALLCONV_FIELD)) { return VLDTR_E_MR_BADCALLINGCONV; } hr = pMDInternalImport->FindMethodDef( tkDef, szMember, pSig, cSig, pDeclaration); IfFailRet(hr); } } else if (TypeFromToken(pToken) == mdtMethodDef) { mdTypeDef typeDef; // Verify that we are the parent hr = pMDInternalImport->GetParentToken(pToken, &typeDef); IfFailRet(hr); if(typeDef != GetCl()) { IfFailRet(COR_E_TYPELOAD); } *pDeclaration = pToken; } else { IfFailRet(COR_E_TYPELOAD); } return hr; } #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif // _PREFAST_ //--------------------------------------------------------------------------------------- // // Used by BuildMethodTable // // Enumerate this class's members // VOID MethodTableBuilder::EnumerateClassMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtError)); } CONTRACTL_END; HRESULT hr = S_OK; DWORD i; IMDInternalImport *pMDInternalImport = GetMDImport(); mdToken tok; DWORD dwMemberAttrs; BOOL fIsClassEnum = IsEnum(); BOOL fIsClassInterface = IsInterface(); BOOL fIsClassValueType = IsValueClass(); BOOL fIsClassComImport = IsComImport(); BOOL fIsClassNotAbstract = (IsTdAbstract(GetAttrClass()) == 0); PCCOR_SIGNATURE pMemberSignature; ULONG cMemberSignature; // // Run through the method list and calculate the following: // # methods. // # "other" methods (i.e. static or private) // # non-other methods // HENUMInternalHolder hEnumMethod(pMDInternalImport); hr = hEnumMethod.EnumInitNoThrow(mdtMethodDef, GetCl()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // Allocate an array to contain the method tokens as well as information about the methods. DWORD cMethAndGaps = hEnumMethod.EnumGetCount(); if ((DWORD)MAX_SLOT_INDEX <= cMethAndGaps) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); bmtMethod->m_cMaxDeclaredMethods = (SLOT_INDEX)cMethAndGaps; bmtMethod->m_cDeclaredMethods = 0; bmtMethod->m_rgDeclaredMethods = new (GetStackingAllocator()) bmtMDMethod *[bmtMethod->m_cMaxDeclaredMethods]; enum { SeenCtor = 1, SeenInvoke = 2, SeenBeginInvoke = 4, SeenEndInvoke = 8}; unsigned delegateMethodsSeen = 0; for (i = 0; i < cMethAndGaps; i++) { ULONG dwMethodRVA; DWORD dwImplFlags; METHOD_TYPE type; METHOD_IMPL_TYPE implType; LPSTR strMethodName; #ifdef FEATURE_TYPEEQUIVALENCE // TypeEquivalent structs must not have methods if (bmtProp->fIsTypeEquivalent && fIsClassValueType) { BuildMethodTableThrowException(IDS_CLASSLOAD_EQUIVALENTSTRUCTMETHODS); } #endif // // Go to the next method and retrieve its attributes. // hEnumMethod.EnumNext(&tok); DWORD rid = RidFromToken(tok); if ((rid == 0)||(rid > pMDInternalImport->GetCountWithTokenKind(mdtMethodDef))) { BuildMethodTableThrowException(BFA_METHOD_TOKEN_OUT_OF_RANGE); } if (FAILED(pMDInternalImport->GetSigOfMethodDef(tok, &cMemberSignature, &pMemberSignature))) { BuildMethodTableThrowException(hr, BFA_BAD_SIGNATURE, mdMethodDefNil); } if (FAILED(pMDInternalImport->GetMethodDefProps(tok, &dwMemberAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } bool isVtblGap = false; if (IsMdRTSpecialName(dwMemberAttrs) || IsMdVirtual(dwMemberAttrs) || IsDelegate()) { if (FAILED(pMDInternalImport->GetNameOfMethodDef(tok, (LPCSTR *)&strMethodName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if(IsStrLongerThan(strMethodName,MAX_CLASS_NAME)) { BuildMethodTableThrowException(BFA_METHOD_NAME_TOO_LONG); } isVtblGap = IsMdRTSpecialName(dwMemberAttrs) && strncmp(strMethodName, "_VtblGap", 8) == 0; } else { strMethodName = NULL; } // Signature validation if (!bmtProp->fNoSanityChecks && !isVtblGap) { hr = validateTokenSig(tok,pMemberSignature,cMemberSignature,dwMemberAttrs,pMDInternalImport); if (FAILED(hr)) { BuildMethodTableThrowException(hr, BFA_BAD_SIGNATURE, mdMethodDefNil); } } DWORD numGenericMethodArgs = 0; { SigParser genericArgParser(pMemberSignature, cMemberSignature); uint32_t ulCallConv; hr = genericArgParser.GetCallingConvInfo(&ulCallConv); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // Only read the generic parameter table if the method signature is generic if (ulCallConv & IMAGE_CEE_CS_CALLCONV_GENERIC) { HENUMInternalHolder hEnumTyPars(pMDInternalImport); hr = hEnumTyPars.EnumInitNoThrow(mdtGenericParam, tok); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } numGenericMethodArgs = hEnumTyPars.EnumGetCount(); // We do not want to support context-bound objects with generic methods. if (numGenericMethodArgs != 0) { HENUMInternalHolder hEnumGenericPars(pMDInternalImport); hEnumGenericPars.EnumInit(mdtGenericParam, tok); for (unsigned methIdx = 0; methIdx < numGenericMethodArgs; methIdx++) { mdGenericParam tkTyPar; pMDInternalImport->EnumNext(&hEnumGenericPars, &tkTyPar); DWORD flags; if (FAILED(pMDInternalImport->GetGenericParamProps(tkTyPar, NULL, &flags, NULL, NULL, NULL))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (0 != (flags & ~(gpVarianceMask | gpSpecialConstraintMask))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } switch (flags & gpVarianceMask) { case gpNonVariant: break; case gpCovariant: // intentional fallthru case gpContravariant: BuildMethodTableThrowException(VLDTR_E_GP_ILLEGAL_VARIANT_MVAR); break; default: BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } } } } // // We need to check if there are any gaps in the vtable. These are // represented by methods with the mdSpecial flag and a name of the form // _VTblGap_nnn (to represent nnn empty slots) or _VTblGap (to represent a // single empty slot). // if (isVtblGap) { // // This slot doesn't really exist, don't add it to the method // table. Instead it represents one or more empty slots, encoded // in the method name. Locate the beginning of the count in the // name. There are these points to consider: // There may be no count present at all (in which case the // count is taken as one). // There may be an additional count just after Gap but before // the '_'. We ignore this. // LPCSTR pos = strMethodName + 8; // Skip optional number. while (IS_DIGIT(*pos)) pos++; WORD n = 0; // Check for presence of count. if (*pos == '\0') { n = 1; } else { if (*pos != '_') { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } // Skip '_'. pos++; // Read count. bool fReadAtLeastOneDigit = false; while (IS_DIGIT(*pos)) { _ASSERTE(n < 6552); n *= 10; n += DIGIT_TO_INT(*pos); pos++; fReadAtLeastOneDigit = true; } // Check for end of name. if (*pos != '\0' || !fReadAtLeastOneDigit) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } } #ifdef FEATURE_COMINTEROP // Record vtable gap in mapping list. The map is an optional field, so ensure we've allocated // these fields first. EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); if (GetHalfBakedClass()->GetSparseCOMInteropVTableMap() == NULL) GetHalfBakedClass()->SetSparseCOMInteropVTableMap(new SparseVTableMap()); GetHalfBakedClass()->GetSparseCOMInteropVTableMap()->RecordGap((WORD)NumDeclaredMethods(), n); bmtProp->fSparse = true; #endif // FEATURE_COMINTEROP continue; } // // This is a real method so add it to the enumeration of methods. We now need to retrieve // information on the method and store it for later use. // if (FAILED(pMDInternalImport->GetMethodImplProps(tok, &dwMethodRVA, &dwImplFlags))) { BuildMethodTableThrowException( COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } // Check for the presence of virtual static methods if (IsMdVirtual(dwMemberAttrs) && IsMdStatic(dwMemberAttrs)) { bmtProp->fHasVirtualStaticMethods = TRUE; } // // But first - minimal flags validity checks // // No methods in Enums! #ifndef _DEBUG // Don't run the minimal validity checks for the system dll/r2r dlls (except in debug builds so we don't build a bad system dll) if (!bmtProp->fNoSanityChecks) #endif { if (fIsClassEnum) { BuildMethodTableThrowException(BFA_METHOD_IN_A_ENUM); } // RVA : 0 if (dwMethodRVA != 0) { if(fIsClassComImport) { BuildMethodTableThrowException(BFA_METHOD_WITH_NONZERO_RVA); } if(IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_ABSTRACT_METHOD_WITH_RVA); } if(IsMiRuntime(dwImplFlags)) { BuildMethodTableThrowException(BFA_RUNTIME_METHOD_WITH_RVA); } if(IsMiInternalCall(dwImplFlags)) { BuildMethodTableThrowException(BFA_INTERNAL_METHOD_WITH_RVA); } } // Abstract / not abstract if(IsMdAbstract(dwMemberAttrs)) { if(fIsClassNotAbstract) { BuildMethodTableThrowException(BFA_AB_METHOD_IN_AB_CLASS); } if(!IsMdVirtual(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONVIRT_AB_METHOD); } } else if(fIsClassInterface) { if (IsMdRTSpecialName(dwMemberAttrs)) { CONSISTENCY_CHECK(CheckPointer(strMethodName)); if (strcmp(strMethodName, COR_CCTOR_METHOD_NAME)) { BuildMethodTableThrowException(BFA_NONAB_NONCCTOR_METHOD_ON_INT); } } } // Virtual / not virtual if(IsMdVirtual(dwMemberAttrs)) { if(IsMdPinvokeImpl(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_PINVOKE_METHOD); } if(IsMdStatic(dwMemberAttrs)) { if (!fIsClassInterface) { // Static virtual methods are only allowed to exist in interfaces BuildMethodTableThrowException(BFA_VIRTUAL_STATIC_METHOD); } } if(strMethodName && (0==strcmp(strMethodName, COR_CTOR_METHOD_NAME))) { BuildMethodTableThrowException(BFA_VIRTUAL_INSTANCE_CTOR); } } // Some interface checks. // We only need them if default interface method support is disabled or if this is fragile crossgen #if !defined(FEATURE_DEFAULT_INTERFACES) if (fIsClassInterface) { if (IsMdVirtual(dwMemberAttrs)) { if (!IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_NONAB_INT_METHOD); } } else { // Instance method if (!IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONVIRT_INST_INT_METHOD); } } } #endif // !defined(FEATURE_DEFAULT_INTERFACES) // No synchronized methods in ValueTypes if(fIsClassValueType && IsMiSynchronized(dwImplFlags)) { BuildMethodTableThrowException(BFA_SYNC_METHOD_IN_VT); } // Global methods: if(IsGlobalClass()) { if(!IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONSTATIC_GLOBAL_METHOD); } if (strMethodName) //<TODO>@todo: investigate mc++ generating null name</TODO> { if(0==strcmp(strMethodName, COR_CTOR_METHOD_NAME)) { BuildMethodTableThrowException(BFA_GLOBAL_INST_CTOR); } } } //@GENERICS: // Generic methods or methods in generic classes // may not be part of a COM Import class, PInvoke, internal call outside CoreLib. if ((bmtGenerics->GetNumGenericArgs() != 0 || numGenericMethodArgs != 0) && ( #ifdef FEATURE_COMINTEROP fIsClassComImport || bmtProp->fComEventItfType || #endif // FEATURE_COMINTEROP IsMdPinvokeImpl(dwMemberAttrs) || (IsMiInternalCall(dwImplFlags) && !GetModule()->IsSystem()))) { BuildMethodTableThrowException(BFA_BAD_PLACE_FOR_GENERIC_METHOD); } // Generic methods may not be marked "runtime". However note that // methods in generic delegate classes are, hence we don't apply this to // methods in generic classes in general. if (numGenericMethodArgs != 0 && IsMiRuntime(dwImplFlags)) { BuildMethodTableThrowException(BFA_GENERIC_METHOD_RUNTIME_IMPL); } // Check the appearance of covariant and contravariant in the method signature // Note that variance is only supported for interfaces, and these rules are not // checked for non-virtual static methods as they cannot be called variantly. if ((bmtGenerics->pVarianceInfo != NULL) && (IsMdVirtual(dwMemberAttrs) || !IsMdStatic(dwMemberAttrs))) { SigPointer sp(pMemberSignature, cMemberSignature); uint32_t callConv; IfFailThrow(sp.GetCallingConvInfo(&callConv)); if (callConv & IMAGE_CEE_CS_CALLCONV_GENERIC) IfFailThrow(sp.GetData(NULL)); uint32_t numArgs; IfFailThrow(sp.GetData(&numArgs)); // Return type behaves covariantly if (!EEClass::CheckVarianceInSig( bmtGenerics->GetNumGenericArgs(), bmtGenerics->pVarianceInfo, GetModule(), sp, gpCovariant)) { BuildMethodTableThrowException(IDS_CLASSLOAD_VARIANCE_IN_METHOD_RESULT, tok); } IfFailThrow(sp.SkipExactlyOne()); for (uint32_t j = 0; j < numArgs; j++) { // Argument types behave contravariantly if (!EEClass::CheckVarianceInSig(bmtGenerics->GetNumGenericArgs(), bmtGenerics->pVarianceInfo, GetModule(), sp, gpContravariant)) { BuildMethodTableThrowException(IDS_CLASSLOAD_VARIANCE_IN_METHOD_ARG, tok); } IfFailThrow(sp.SkipExactlyOne()); } } } // // Determine the method's type // if (IsReallyMdPinvokeImpl(dwMemberAttrs) || IsMiInternalCall(dwImplFlags)) { hr = NDirect::HasNAT_LAttribute(pMDInternalImport, tok, dwMemberAttrs); // There was a problem querying for the attribute if (FAILED(hr)) { BuildMethodTableThrowException(hr, IDS_CLASSLOAD_BADPINVOKE, tok); } // The attribute is not present if (hr == S_FALSE) { #ifdef FEATURE_COMINTEROP if (fIsClassComImport || bmtProp->fComEventItfType) { // ComImport classes have methods which are just used // for implementing all interfaces the class supports type = METHOD_TYPE_COMINTEROP; // constructor is special if (IsMdRTSpecialName(dwMemberAttrs)) { // Note: Method name (.ctor) will be checked in code:ValidateMethods type = METHOD_TYPE_FCALL; } } else #endif //FEATURE_COMINTEROP if (dwMethodRVA == 0) { type = METHOD_TYPE_FCALL; } else { type = METHOD_TYPE_NDIRECT; } } // The NAT_L attribute is present, marking this method as NDirect else { CONSISTENCY_CHECK(hr == S_OK); type = METHOD_TYPE_NDIRECT; } } else if (IsMiRuntime(dwImplFlags)) { // currently the only runtime implemented functions are delegate instance methods if (!IsDelegate() || IsMdStatic(dwMemberAttrs) || IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_BAD_RUNTIME_IMPL); } unsigned newDelegateMethodSeen = 0; if (IsMdRTSpecialName(dwMemberAttrs)) // .ctor { if (strcmp(strMethodName, COR_CTOR_METHOD_NAME) != 0 || IsMdVirtual(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_BAD_FLAGS_ON_DELEGATE); } newDelegateMethodSeen = SeenCtor; type = METHOD_TYPE_FCALL; } else { if (strcmp(strMethodName, "Invoke") == 0) newDelegateMethodSeen = SeenInvoke; else if (strcmp(strMethodName, "BeginInvoke") == 0) newDelegateMethodSeen = SeenBeginInvoke; else if (strcmp(strMethodName, "EndInvoke") == 0) newDelegateMethodSeen = SeenEndInvoke; else { BuildMethodTableThrowException(BFA_UNKNOWN_DELEGATE_METHOD); } type = METHOD_TYPE_EEIMPL; } // If we get here we have either set newDelegateMethodSeen or we have thrown a BMT exception _ASSERTE(newDelegateMethodSeen != 0); if ((delegateMethodsSeen & newDelegateMethodSeen) != 0) { BuildMethodTableThrowException(BFA_DUPLICATE_DELEGATE_METHOD); } delegateMethodsSeen |= newDelegateMethodSeen; } else if (numGenericMethodArgs != 0) { //We use an instantiated method desc to represent a generic method type = METHOD_TYPE_INSTANTIATED; } else if (fIsClassInterface) { #ifdef FEATURE_COMINTEROP if (IsMdStatic(dwMemberAttrs)) { // Static methods in interfaces need nothing special. type = METHOD_TYPE_NORMAL; } else if (bmtGenerics->GetNumGenericArgs() != 0 && (bmtGenerics->fSharedByGenericInstantiations)) { // Methods in instantiated interfaces need nothing special - they are not visible from COM etc. type = METHOD_TYPE_NORMAL; } else if (bmtProp->fIsMngStandardItf) { // If the interface is a standard managed interface then allocate space for an FCall method desc. type = METHOD_TYPE_FCALL; } else if (IsMdAbstract(dwMemberAttrs)) { // If COM interop is supported then all other interface MDs may be // accessed via COM interop. mcComInterop MDs have an additional // pointer-sized field pointing to COM interop data which are // allocated lazily when/if the MD actually gets used for interop. type = METHOD_TYPE_COMINTEROP; } else #endif // !FEATURE_COMINTEROP { // This codepath is used by remoting type = METHOD_TYPE_NORMAL; } } else { type = METHOD_TYPE_NORMAL; } // Generic methods should always be METHOD_TYPE_INSTANTIATED if ((numGenericMethodArgs != 0) && (type != METHOD_TYPE_INSTANTIATED)) { BuildMethodTableThrowException(BFA_GENERIC_METHODS_INST); } // count how many overrides this method does All methods bodies are defined // on this type so we can just compare the tok with the body token found // from the overrides. implType = METHOD_IMPL_NOT; for (DWORD impls = 0; impls < bmtMethod->dwNumberMethodImpls; impls++) { if (bmtMetaData->rgMethodImplTokens[impls].methodBody == tok) { implType = METHOD_IMPL; break; } } // For delegates we don't allow any non-runtime implemented bodies // for any of the four special methods if (IsDelegate() && !IsMiRuntime(dwImplFlags)) { if ((strcmp(strMethodName, COR_CTOR_METHOD_NAME) == 0) || (strcmp(strMethodName, "Invoke") == 0) || (strcmp(strMethodName, "BeginInvoke") == 0) || (strcmp(strMethodName, "EndInvoke") == 0) ) { BuildMethodTableThrowException(BFA_ILLEGAL_DELEGATE_METHOD); } } // // Create a new bmtMDMethod representing this method and add it to the // declared method list. // bmtMDMethod * pNewMethod = new (GetStackingAllocator()) bmtMDMethod( bmtInternal->pType, tok, dwMemberAttrs, dwImplFlags, dwMethodRVA, type, implType); bmtMethod->AddDeclaredMethod(pNewMethod); // // Update the count of the various types of methods. // bmtVT->dwMaxVtableSize++; // Increment the number of non-abstract declared methods if (!IsMdAbstract(dwMemberAttrs)) { bmtMethod->dwNumDeclaredNonAbstractMethods++; } } if (bmtMethod->dwNumDeclaredNonAbstractMethods == 0) { GetHalfBakedClass()->SetHasOnlyAbstractMethods(); } // Check to see that we have all of the required delegate methods (ECMA 13.6 Delegates) if (IsDelegate()) { // Do we have all four special delegate methods // or just the two special delegate methods if ((delegateMethodsSeen != (SeenCtor | SeenInvoke | SeenBeginInvoke | SeenEndInvoke)) && (delegateMethodsSeen != (SeenCtor | SeenInvoke)) ) { BuildMethodTableThrowException(BFA_MISSING_DELEGATE_METHOD); } } if (i != cMethAndGaps) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_METHOD_COUNT, mdTokenNil); } #ifdef FEATURE_COMINTEROP // // If the interface is sparse, we need to finalize the mapping list by // telling it how many real methods we found. // if (bmtProp->fSparse) { GetHalfBakedClass()->GetSparseCOMInteropVTableMap()->FinalizeMapping(NumDeclaredMethods()); } #endif // FEATURE_COMINTEROP } // MethodTableBuilder::EnumerateClassMethods #ifdef _PREFAST_ #pragma warning(pop) #endif //******************************************************************************* // // Run through the field list and calculate the following: // # static fields // # static fields that contain object refs. // # instance fields // VOID MethodTableBuilder::EnumerateClassFields() { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; DWORD i; IMDInternalImport *pMDInternalImport = GetMDImport(); mdToken tok; DWORD dwMemberAttrs; bmtEnumFields->dwNumStaticFields = 0; bmtEnumFields->dwNumStaticObjRefFields = 0; bmtEnumFields->dwNumStaticBoxedFields = 0; bmtEnumFields->dwNumThreadStaticFields = 0; bmtEnumFields->dwNumThreadStaticObjRefFields = 0; bmtEnumFields->dwNumThreadStaticBoxedFields = 0; bmtEnumFields->dwNumInstanceFields = 0; HENUMInternalHolder hEnumField(pMDInternalImport); hr = hEnumField.EnumInitNoThrow(mdtFieldDef, GetCl()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } bmtMetaData->cFields = hEnumField.EnumGetCount(); // Retrieve the fields and store them in a temp array. bmtMetaData->pFields = new (GetStackingAllocator()) mdToken[bmtMetaData->cFields]; bmtMetaData->pFieldAttrs = new (GetStackingAllocator()) DWORD[bmtMetaData->cFields]; DWORD dwFieldLiteralInitOnly = fdLiteral | fdInitOnly; DWORD dwMaxFieldDefRid = pMDInternalImport->GetCountWithTokenKind(mdtFieldDef); for (i = 0; hEnumField.EnumNext(&tok); i++) { // // Retrieve the attributes of the field. // DWORD rid = RidFromToken(tok); if ((rid == 0)||(rid > dwMaxFieldDefRid)) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, BFA_BAD_FIELD_TOKEN, mdTokenNil); } if (FAILED(pMDInternalImport->GetFieldDefProps(tok, &dwMemberAttrs))) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, BFA_BAD_FIELD_TOKEN, tok); } // // Store the field and its attributes in the bmtMetaData structure for later use. // bmtMetaData->pFields[i] = tok; bmtMetaData->pFieldAttrs[i] = dwMemberAttrs; if((dwMemberAttrs & fdFieldAccessMask)==fdFieldAccessMask) { BuildMethodTableThrowException(BFA_INVALID_FIELD_ACC_FLAGS); } if((dwMemberAttrs & dwFieldLiteralInitOnly)==dwFieldLiteralInitOnly) { BuildMethodTableThrowException(BFA_FIELD_LITERAL_AND_INIT); } // can only have static global fields if(IsGlobalClass()) { if(!IsFdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONSTATIC_GLOBAL_FIELD); } } // // Update the count of the various types of fields. // if (IsFdStatic(dwMemberAttrs)) { if (!IsFdLiteral(dwMemberAttrs)) { #ifdef FEATURE_TYPEEQUIVALENCE if (bmtProp->fIsTypeEquivalent) { BuildMethodTableThrowException(IDS_CLASSLOAD_EQUIVALENTSTRUCTFIELDS); } #endif bmtEnumFields->dwNumStaticFields++; // If this static field is thread static, then we need // to increment bmtEnumFields->dwNumThreadStaticFields hr = GetCustomAttribute(tok, WellKnownAttribute::ThreadStatic, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { // It's a thread static, so increment the count bmtEnumFields->dwNumThreadStaticFields++; } } } else { #ifdef FEATURE_TYPEEQUIVALENCE if (!IsFdPublic(dwMemberAttrs) && bmtProp->fIsTypeEquivalent) { BuildMethodTableThrowException(IDS_CLASSLOAD_EQUIVALENTSTRUCTFIELDS); } #endif if (!IsFdLiteral(dwMemberAttrs)) { bmtEnumFields->dwNumInstanceFields++; } if(IsInterface()) { BuildMethodTableThrowException(BFA_INSTANCE_FIELD_IN_INT); } } } if (i != bmtMetaData->cFields) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD_COUNT, mdTokenNil); } if(IsEnum() && (bmtEnumFields->dwNumInstanceFields==0)) { BuildMethodTableThrowException(BFA_INSTANCE_FIELD_IN_ENUM); } bmtEnumFields->dwNumDeclaredFields = bmtEnumFields->dwNumStaticFields + bmtEnumFields->dwNumInstanceFields; } //******************************************************************************* // // Used by BuildMethodTable // // Determines the maximum size of the vtable and allocates the temporary storage arrays // Also copies the parent's vtable into the working vtable. // VOID MethodTableBuilder::AllocateWorkingSlotTables() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtAllocator)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtFP)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; // Allocate a FieldDesc* for each field bmtMFDescs->ppFieldDescList = new (GetStackingAllocator()) FieldDesc*[bmtMetaData->cFields]; ZeroMemory(bmtMFDescs->ppFieldDescList, bmtMetaData->cFields * sizeof(FieldDesc *)); // Create a temporary function table (we don't know how large the vtable will be until the very end, // since we don't yet know how many declared methods are overrides vs. newslots). if (IsValueClass()) { // ValueClass virtuals are converted into non-virtual methods and the virtual slots // become unboxing stubs that forward to these new non-virtual methods. This has the // side effect of doubling the number of slots introduced by newslot virtuals. bmtVT->dwMaxVtableSize += NumDeclaredMethods(); } _ASSERTE(!HasParent() || (bmtInterface->dwInterfaceMapSize - GetParentMethodTable()->GetNumInterfaces()) >= 0); if (HasParent()) { // Add parent vtable size. <TODO> This should actually be the parent's virtual method count. </TODO> bmtVT->dwMaxVtableSize += bmtParent->pSlotTable->GetSlotCount(); } S_SLOT_INDEX cMaxSlots = AsClrSafeInt(bmtVT->dwMaxVtableSize) + AsClrSafeInt(NumDeclaredMethods()); if (cMaxSlots.IsOverflow() || MAX_SLOT_INDEX < cMaxSlots.Value()) cMaxSlots = S_SLOT_INDEX(MAX_SLOT_INDEX); // Allocate the temporary vtable bmtVT->pSlotTable = new (GetStackingAllocator()) bmtMethodSlotTable(cMaxSlots.Value(), GetStackingAllocator()); if (HasParent()) { #if 0 // @<TODO>todo: Figure out the right way to override Equals for value // types only. // // This is broken because // (a) g_pObjectClass->FindMethod("Equals", &gsig_IM_Obj_RetBool); will return // the EqualsValue method // (b) When CoreLib has been preloaded (and thus the munge already done // ahead of time), we cannot easily find both methods // to compute EqualsAddr & EqualsSlot // // For now, the Equals method has a runtime check to see if it's // comparing value types. //</TODO> // If it is a value type, over ride a few of the base class methods. if (IsValueClass()) { static WORD EqualsSlot; // If we haven't been through here yet, get some stuff from the Object class definition. if (EqualsSlot == NULL) { // Get the slot of the Equals method. MethodDesc *pEqualsMD = g_pObjectClass->FindMethod("Equals", &gsig_IM_Obj_RetBool); THROW_BAD_FORMAT_MAYBE(pEqualsMD != NULL, 0, this); EqualsSlot = pEqualsMD->GetSlot(); // Get the address of the EqualsValue method. MethodDesc *pEqualsValueMD = g_pObjectClass->FindMethod("EqualsValue", &gsig_IM_Obj_RetBool); THROW_BAD_FORMAT_MAYBE(pEqualsValueMD != NULL, 0, this); // Patch the EqualsValue method desc in a dangerous way to // look like the Equals method desc. pEqualsValueMD->SetSlot(EqualsSlot); pEqualsValueMD->SetMemberDef(pEqualsMD->GetMemberDef()); } // Override the valuetype "Equals" with "EqualsValue". bmtVT->SetMethodDescForSlot(EqualsSlot, EqualsSlot); } #endif // 0 } S_UINT32 cEntries = S_UINT32(2) * S_UINT32(NumDeclaredMethods()); if (cEntries.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } } //******************************************************************************* // // Used by BuildMethodTable // // Allocate a MethodDesc* for each method (needed later when doing interfaces), and a FieldDesc* for each field // VOID MethodTableBuilder::AllocateFieldDescs() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtAllocator)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtFP)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; // We'll be counting the # fields of each size as we go along for (DWORD i = 0; i <= MAX_LOG2_PRIMITIVE_FIELD_SIZE; i++) { bmtFP->NumRegularStaticFieldsOfSize[i] = 0; bmtFP->NumThreadStaticFieldsOfSize[i] = 0; bmtFP->NumInstanceFieldsOfSize[i] = 0; } // // Allocate blocks of MethodDescs and FieldDescs for all declared methods and fields // // In order to avoid allocating a field pointing back to the method // table in every single method desc, we allocate memory in the // following manner: // o Field descs get a single contiguous block. // o Method descs of different sizes (normal vs NDirect) are // allocated in different MethodDescChunks. // o Each method desc chunk starts with a header, and has // at most MAX_ method descs (if there are more // method descs of a given size, multiple chunks are allocated). // This way method descs can use an 8-bit offset field to locate the // pointer to their method table. // ///////////////////////////////////////////////////////////////// // Allocate fields if (NumDeclaredFields() > 0) { GetHalfBakedClass()->SetFieldDescList((FieldDesc *) AllocateFromHighFrequencyHeap(S_SIZE_T(NumDeclaredFields()) * S_SIZE_T(sizeof(FieldDesc)))); INDEBUG(GetClassLoader()->m_dwDebugFieldDescs += NumDeclaredFields();) INDEBUG(GetClassLoader()->m_dwFieldDescData += (NumDeclaredFields() * sizeof(FieldDesc));) } } #ifdef FEATURE_DOUBLE_ALIGNMENT_HINT //******************************************************************************* // // Heuristic to determine if we should have instances of this class 8 byte aligned // BOOL MethodTableBuilder::ShouldAlign8(DWORD dwR8Fields, DWORD dwTotalFields) { LIMITED_METHOD_CONTRACT; return dwR8Fields*2>dwTotalFields && dwR8Fields>=2; } #endif //******************************************************************************* BOOL MethodTableBuilder::IsSelfReferencingStaticValueTypeField(mdToken dwByValueClassToken, bmtInternalInfo* bmtInternal, const bmtGenericsInfo *bmtGenerics, PCCOR_SIGNATURE pMemberSignature, DWORD cMemberSignature) { STANDARD_VM_CONTRACT; if (dwByValueClassToken != this->GetCl()) { return FALSE; } if (!bmtGenerics->HasInstantiation()) { return TRUE; } // The value class is generic. Check that the signature of the field // is _exactly_ equivalent to VC<!0, !1, !2, ...>. Do this by consing up a fake // signature. DWORD nGenericArgs = bmtGenerics->GetNumGenericArgs(); CONSISTENCY_CHECK(nGenericArgs != 0); SigBuilder sigBuilder; sigBuilder.AppendElementType(ELEMENT_TYPE_GENERICINST); sigBuilder.AppendElementType(ELEMENT_TYPE_VALUETYPE); sigBuilder.AppendToken(dwByValueClassToken); sigBuilder.AppendData(nGenericArgs); for (unsigned int typearg = 0; typearg < nGenericArgs; typearg++) { sigBuilder.AppendElementType(ELEMENT_TYPE_VAR); sigBuilder.AppendData(typearg); } DWORD cFakeSig; PCCOR_SIGNATURE pFakeSig = (PCCOR_SIGNATURE)sigBuilder.GetSignature(&cFakeSig); PCCOR_SIGNATURE pFieldSig = pMemberSignature + 1; // skip the CALLCONV_FIELD return MetaSig::CompareElementType(pFakeSig, pFieldSig, pFakeSig + cFakeSig, pMemberSignature + cMemberSignature, GetModule(), GetModule(), NULL, NULL, FALSE); } //******************************************************************************* // // Used pByValueClass cache to mark self-references // static BOOL IsSelfRef(MethodTable * pMT) { return pMT == (MethodTable *)-1; } //******************************************************************************* // // Used by BuildMethodTable // // Go thru all fields and initialize their FieldDescs. // #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif // _PREFAST_ VOID MethodTableBuilder::InitializeFieldDescs(FieldDesc *pFieldDescList, const LayoutRawFieldInfo* pLayoutRawFieldInfos, bmtInternalInfo* bmtInternal, const bmtGenericsInfo* bmtGenerics, bmtMetaDataInfo* bmtMetaData, bmtEnumFieldInfo* bmtEnumFields, bmtErrorInfo* bmtError, MethodTable *** pByValueClassCache, bmtMethAndFieldDescs* bmtMFDescs, bmtFieldPlacement* bmtFP, unsigned* totalDeclaredSize) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtGenerics)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(pByValueClassCache)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtFP)); PRECONDITION(CheckPointer(totalDeclaredSize)); } CONTRACTL_END; DWORD i; IMDInternalImport * pInternalImport = GetMDImport(); // to avoid multiple dereferencings //======================================================================== // BEGIN: // Go thru all fields and initialize their FieldDescs. //======================================================================== DWORD dwCurrentDeclaredField = 0; DWORD dwCurrentStaticField = 0; DWORD dwCurrentThreadStaticField = 0; DWORD dwR8Fields = 0; // Number of R8's the class has #ifdef FEATURE_64BIT_ALIGNMENT // Track whether any field in this type requires 8-byte alignment BOOL fFieldRequiresAlign8 = HasParent() ? GetParentMethodTable()->RequiresAlign8() : FALSE; #endif for (i = 0; i < bmtMetaData->cFields; i++) { PCCOR_SIGNATURE pMemberSignature; DWORD cMemberSignature; DWORD dwMemberAttrs; dwMemberAttrs = bmtMetaData->pFieldAttrs[i]; BOOL fIsStatic = IsFdStatic(dwMemberAttrs); // We don't store static final primitive fields in the class layout if (IsFdLiteral(dwMemberAttrs)) continue; if (!IsFdPublic(dwMemberAttrs)) SetHasNonPublicFields(); if (IsFdNotSerialized(dwMemberAttrs)) SetCannotBeBlittedByObjectCloner(); IfFailThrow(pInternalImport->GetSigOfFieldDef(bmtMetaData->pFields[i], &cMemberSignature, &pMemberSignature)); // Signature validation IfFailThrow(validateTokenSig(bmtMetaData->pFields[i],pMemberSignature,cMemberSignature,dwMemberAttrs,pInternalImport)); FieldDesc * pFD; DWORD dwLog2FieldSize = 0; BOOL bCurrentFieldIsGCPointer = FALSE; mdToken dwByValueClassToken = 0; MethodTable * pByValueClass = NULL; BOOL fIsByValue = FALSE; BOOL fIsThreadStatic = FALSE; BOOL fHasRVA = FALSE; MetaSig fsig(pMemberSignature, cMemberSignature, GetModule(), &bmtGenerics->typeContext, MetaSig::sigField); CorElementType ElementType = fsig.NextArg(); // Get type if (!isCallConv(fsig.GetCallingConvention(), IMAGE_CEE_CS_CALLCONV_FIELD)) { IfFailThrow(COR_E_TYPELOAD); } // Determine if a static field is special i.e. RVA based, local to // a thread or a context if (fIsStatic) { if (IsFdHasFieldRVA(dwMemberAttrs)) { fHasRVA = TRUE; } HRESULT hr; hr = GetCustomAttribute(bmtMetaData->pFields[i], WellKnownAttribute::ThreadStatic, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { fIsThreadStatic = TRUE; } if (ElementType == ELEMENT_TYPE_VALUETYPE) { hr = GetCustomAttribute(bmtMetaData->pFields[i], WellKnownAttribute::FixedAddressValueType, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { bmtFP->fHasFixedAddressValueTypes = true; } } // Do some sanity checks that we are not mixing context and thread // relative statics. if (fHasRVA && fIsThreadStatic) { IfFailThrow(COR_E_TYPELOAD); } if (bmtFP->fHasFixedAddressValueTypes && GetAssembly()->IsCollectible()) { BuildMethodTableThrowException(IDS_CLASSLOAD_COLLECTIBLEFIXEDVTATTR); } } GOT_ELEMENT_TYPE: // Type to store in FieldDesc - we don't want to have extra case statements for // ELEMENT_TYPE_STRING, SDARRAY etc., so we convert all object types to CLASS. // Also, BOOLEAN, CHAR are converted to U1, I2. CorElementType FieldDescElementType = ElementType; switch (ElementType) { case ELEMENT_TYPE_I1: case ELEMENT_TYPE_U1: { dwLog2FieldSize = 0; break; } case ELEMENT_TYPE_I2: case ELEMENT_TYPE_U2: { dwLog2FieldSize = 1; break; } case ELEMENT_TYPE_I4: case ELEMENT_TYPE_U4: IN_TARGET_32BIT(case ELEMENT_TYPE_I:) IN_TARGET_32BIT(case ELEMENT_TYPE_U:) case ELEMENT_TYPE_R4: { dwLog2FieldSize = 2; break; } case ELEMENT_TYPE_BOOLEAN: { // FieldDescElementType = ELEMENT_TYPE_U1; dwLog2FieldSize = 0; break; } case ELEMENT_TYPE_CHAR: { // FieldDescElementType = ELEMENT_TYPE_U2; dwLog2FieldSize = 1; break; } case ELEMENT_TYPE_R8: { dwR8Fields++; // Deliberate fall through... FALLTHROUGH; } case ELEMENT_TYPE_I8: case ELEMENT_TYPE_U8: IN_TARGET_64BIT(case ELEMENT_TYPE_I:) IN_TARGET_64BIT(case ELEMENT_TYPE_U:) { #ifdef FEATURE_64BIT_ALIGNMENT // Record that this field requires alignment for Int64/UInt64. if(!fIsStatic) fFieldRequiresAlign8 = true; #endif dwLog2FieldSize = 3; break; } case ELEMENT_TYPE_FNPTR: case ELEMENT_TYPE_PTR: // ptrs are unmanaged scalars, for layout { dwLog2FieldSize = LOG2_PTRSIZE; break; } case ELEMENT_TYPE_BYREF: { dwLog2FieldSize = LOG2_PTRSIZE; if (fIsStatic) { // Byref-like types cannot be used for static fields BuildMethodTableThrowException(IDS_CLASSLOAD_BYREFLIKE_STATICFIELD); } if (!bmtFP->fIsByRefLikeType) { // Non-byref-like types cannot contain byref-like instance fields BuildMethodTableThrowException(IDS_CLASSLOAD_BYREFLIKE_INSTANCEFIELD); } break; } case ELEMENT_TYPE_TYPEDBYREF: { goto IS_VALUETYPE; } // Class type variable (method type variables aren't allowed in fields) // These only occur in open types used for verification/reflection. case ELEMENT_TYPE_VAR: case ELEMENT_TYPE_MVAR: // deliberate drop through - do fake field layout case ELEMENT_TYPE_STRING: case ELEMENT_TYPE_SZARRAY: // single dim, zero case ELEMENT_TYPE_ARRAY: // all other arrays case ELEMENT_TYPE_CLASS: // objectrefs case ELEMENT_TYPE_OBJECT: { dwLog2FieldSize = LOG2_PTRSIZE; bCurrentFieldIsGCPointer = TRUE; FieldDescElementType = ELEMENT_TYPE_CLASS; if (!fIsStatic) { SetHasFieldsWhichMustBeInited(); if (ElementType != ELEMENT_TYPE_STRING) SetCannotBeBlittedByObjectCloner(); } else { // EnumerateFieldDescs already counted the total number of static vs. instance // fields, now we're further subdividing the static field count by GC and non-GC. bmtEnumFields->dwNumStaticObjRefFields++; if (fIsThreadStatic) bmtEnumFields->dwNumThreadStaticObjRefFields++; } break; } case ELEMENT_TYPE_VALUETYPE: // a byvalue class field { Module * pTokenModule; dwByValueClassToken = fsig.GetArgProps().PeekValueTypeTokenClosed(GetModule(), &bmtGenerics->typeContext, &pTokenModule); // By-value class BAD_FORMAT_NOTHROW_ASSERT(dwByValueClassToken != 0); if (this->IsValueClass() && (pTokenModule == GetModule())) { if (TypeFromToken(dwByValueClassToken) == mdtTypeRef) { // It's a typeref - check if it's a class that has a static field of itself LPCUTF8 pszNameSpace; LPCUTF8 pszClassName; if (FAILED(pInternalImport->GetNameOfTypeRef(dwByValueClassToken, &pszNameSpace, &pszClassName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsStrLongerThan((char *)pszClassName, MAX_CLASS_NAME) || IsStrLongerThan((char *)pszNameSpace, MAX_CLASS_NAME) || (strlen(pszClassName) + strlen(pszNameSpace) + 1 >= MAX_CLASS_NAME)) { BuildMethodTableThrowException(BFA_TYPEREG_NAME_TOO_LONG, mdMethodDefNil); } mdToken tkRes; if (FAILED(pInternalImport->GetResolutionScopeOfTypeRef(dwByValueClassToken, &tkRes))) { BuildMethodTableThrowException(BFA_BAD_TYPEREF_TOKEN, dwByValueClassToken); } if (TypeFromToken(tkRes) == mdtTypeRef) { if (!pInternalImport->IsValidToken(tkRes)) { BuildMethodTableThrowException(BFA_BAD_TYPEREF_TOKEN, mdMethodDefNil); } } else { tkRes = mdTokenNil; } if (FAILED(pInternalImport->FindTypeDef(pszNameSpace, pszClassName, tkRes, &dwByValueClassToken))) { dwByValueClassToken = mdTokenNil; } } // If field is static typeref BOOL selfref = IsSelfReferencingStaticValueTypeField(dwByValueClassToken, bmtInternal, bmtGenerics, pMemberSignature, cMemberSignature); if (selfref) { // immediately self-referential fields must be static. if (!fIsStatic) { BuildMethodTableThrowException(IDS_CLASSLOAD_VALUEINSTANCEFIELD, mdMethodDefNil); } if (!IsValueClass()) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MUST_BE_BYVAL, mdTokenNil); } pByValueClass = (MethodTable *)-1; } } // If 'this' is a value class } // TypedReference shares the rest of the code here IS_VALUETYPE: { fIsByValue = TRUE; // It's not self-referential so try to load it if (pByValueClass == NULL) { // Loading a non-self-ref valuetype field. OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOAD_APPROXPARENTS); // We load the approximate type of the field to avoid recursion problems. // MethodTable::DoFullyLoad() will later load it fully pByValueClass = fsig.GetArgProps().GetTypeHandleThrowing(GetModule(), &bmtGenerics->typeContext, ClassLoader::LoadTypes, CLASS_LOAD_APPROXPARENTS, TRUE ).GetMethodTable(); } // #FieldDescTypeMorph IF it is an enum, strip it down to its underlying type if (IsSelfRef(pByValueClass) ? IsEnum() : pByValueClass->IsEnum()) { if (IsSelfRef(pByValueClass)) { // It is self-referencing enum (ValueType) static field - it is forbidden in the ECMA spec, but supported by CLR since v1 // Note: literal static fields are skipped early in this loop if (bmtMFDescs->ppFieldDescList[0] == NULL) { // The field is defined before (the only) instance field // AppCompat with 3.5 SP1 and 4.0 RTM behavior BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } // We will treat the field type as if it was its underlying type (we know its size and will check correctly RVA with the size // later in this method) // Therefore we do not have to run code:VerifySelfReferencingStaticValueTypeFields_WithRVA or code:#SelfReferencingStaticValueTypeField_Checks } BAD_FORMAT_NOTHROW_ASSERT((IsSelfRef(pByValueClass) ? bmtEnumFields->dwNumInstanceFields : pByValueClass->GetNumInstanceFields()) == 1); // enums must have exactly one field FieldDesc * enumField = IsSelfRef(pByValueClass) ? bmtMFDescs->ppFieldDescList[0] : pByValueClass->GetApproxFieldDescListRaw(); BAD_FORMAT_NOTHROW_ASSERT(!enumField->IsStatic()); // no real static fields on enums ElementType = enumField->GetFieldType(); BAD_FORMAT_NOTHROW_ASSERT(ElementType != ELEMENT_TYPE_VALUETYPE); fIsByValue = FALSE; // we're going to treat it as the underlying type now goto GOT_ELEMENT_TYPE; } // Check ByRefLike fields if (!IsSelfRef(pByValueClass) && pByValueClass->IsByRefLike()) { if (fIsStatic) { // Byref-like types cannot be used for static fields BuildMethodTableThrowException(IDS_CLASSLOAD_BYREFLIKE_STATICFIELD); } if (!bmtFP->fIsByRefLikeType) { // Non-byref-like types cannot contain byref-like instance fields BuildMethodTableThrowException(IDS_CLASSLOAD_BYREFLIKE_INSTANCEFIELD); } } if (!IsSelfRef(pByValueClass) && pByValueClass->GetClass()->HasNonPublicFields()) { // If a class has a field of type ValueType with non-public fields in it, // the class must "inherit" this characteristic SetHasNonPublicFields(); } if (!fHasRVA) { if (!fIsStatic) { // Inherit instance attributes EEClass * pFieldClass = pByValueClass->GetClass(); #ifdef FEATURE_64BIT_ALIGNMENT // If a value type requires 8-byte alignment this requirement must be inherited by any // class/struct that embeds it as a field. if (pFieldClass->IsAlign8Candidate()) fFieldRequiresAlign8 = true; #endif if (pFieldClass->HasNonPublicFields()) SetHasNonPublicFields(); if (pFieldClass->HasFieldsWhichMustBeInited()) SetHasFieldsWhichMustBeInited(); #ifdef FEATURE_READYTORUN if (!(pByValueClass->IsTruePrimitive() || pByValueClass->IsEnum())) { CheckLayoutDependsOnOtherModules(pByValueClass); } #endif } else { // Increment the number of static fields that contain object references. bmtEnumFields->dwNumStaticBoxedFields++; if (fIsThreadStatic) bmtEnumFields->dwNumThreadStaticBoxedFields++; } } if (*pByValueClassCache == NULL) { DWORD dwNumFields = bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields; *pByValueClassCache = new (GetStackingAllocator()) MethodTable * [dwNumFields]; memset (*pByValueClassCache, 0, dwNumFields * sizeof(MethodTable **)); } // Thread static fields come after instance fields and regular static fields in this list if (fIsThreadStatic) { (*pByValueClassCache)[bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields + dwCurrentThreadStaticField] = pByValueClass; // make sure to record the correct size for static field // layout dwLog2FieldSize = LOG2_PTRSIZE; // handle } // Regular static fields come after instance fields in this list else if (fIsStatic) { (*pByValueClassCache)[bmtEnumFields->dwNumInstanceFields + dwCurrentStaticField] = pByValueClass; // make sure to record the correct size for static field // layout dwLog2FieldSize = LOG2_PTRSIZE; // handle } else { (*pByValueClassCache)[dwCurrentDeclaredField] = pByValueClass; dwLog2FieldSize = 0; // unused } break; } default: { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } } if (!fIsStatic) { pFD = &pFieldDescList[dwCurrentDeclaredField]; *totalDeclaredSize += (1 << dwLog2FieldSize); } else /* (dwMemberAttrs & mdStatic) */ { if (fIsThreadStatic) { pFD = &pFieldDescList[bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields + dwCurrentThreadStaticField]; } else { pFD = &pFieldDescList[bmtEnumFields->dwNumInstanceFields + dwCurrentStaticField]; } } bmtMFDescs->ppFieldDescList[i] = pFD; const LayoutRawFieldInfo *pLayoutFieldInfo = NULL; if (HasLayout()) { const LayoutRawFieldInfo *pwalk = pLayoutRawFieldInfos; while (pwalk->m_MD != mdFieldDefNil) { if (pwalk->m_MD == bmtMetaData->pFields[i]) { pLayoutFieldInfo = pwalk; break; } pwalk++; } } LPCSTR pszFieldName = NULL; #ifdef _DEBUG if (FAILED(pInternalImport->GetNameOfFieldDef(bmtMetaData->pFields[i], &pszFieldName))) { pszFieldName = "Invalid FieldDef record"; } #endif // #InitCall Initialize contents of the field descriptor called from pFD->Init( bmtMetaData->pFields[i], FieldDescElementType, dwMemberAttrs, fIsStatic, fHasRVA, fIsThreadStatic, pszFieldName ); // We're using FieldDesc::m_pMTOfEnclosingClass to temporarily store the field's size. // if (fIsByValue) { if (!fIsStatic && (IsBlittable() || HasExplicitFieldOffsetLayout())) { (DWORD_PTR &)pFD->m_pMTOfEnclosingClass = (*pByValueClassCache)[dwCurrentDeclaredField]->GetNumInstanceFieldBytes(); if (pLayoutFieldInfo) IfFailThrow(pFD->SetOffset(pLayoutFieldInfo->m_placement.m_offset)); else pFD->SetOffset(FIELD_OFFSET_VALUE_CLASS); } else if (!fIsStatic && IsManagedSequential()) { (DWORD_PTR &)pFD->m_pMTOfEnclosingClass = (*pByValueClassCache)[dwCurrentDeclaredField]->GetNumInstanceFieldBytes(); IfFailThrow(pFD->SetOffset(pLayoutFieldInfo->m_placement.m_offset)); } else { // static value class fields hold a handle, which is ptr sized // (instance field layout ignores this value) (DWORD_PTR&)(pFD->m_pMTOfEnclosingClass) = LOG2_PTRSIZE; pFD->SetOffset(FIELD_OFFSET_VALUE_CLASS); } } else { (DWORD_PTR &)(pFD->m_pMTOfEnclosingClass) = (size_t)dwLog2FieldSize; // -1 (FIELD_OFFSET_UNPLACED) means that this is a non-GC field that has not yet been placed // -2 (FIELD_OFFSET_UNPLACED_GC_PTR) means that this is a GC pointer field that has not yet been placed // If there is any kind of explicit layout information for this field, use it. If not, then // mark it as either GC or non-GC and as unplaced; it will get placed later on in an optimized way. if ((IsBlittable() || HasExplicitFieldOffsetLayout()) && !fIsStatic) IfFailThrow(pFD->SetOffset(pLayoutFieldInfo->m_placement.m_offset)); else if (IsManagedSequential() && !fIsStatic) IfFailThrow(pFD->SetOffset(pLayoutFieldInfo->m_placement.m_offset)); else if (bCurrentFieldIsGCPointer) pFD->SetOffset(FIELD_OFFSET_UNPLACED_GC_PTR); else pFD->SetOffset(FIELD_OFFSET_UNPLACED); } if (!fIsStatic) { if (!fIsByValue) { if (++bmtFP->NumInstanceFieldsOfSize[dwLog2FieldSize] == 1) bmtFP->FirstInstanceFieldOfSize[dwLog2FieldSize] = dwCurrentDeclaredField; } dwCurrentDeclaredField++; if (bCurrentFieldIsGCPointer) { bmtFP->NumInstanceGCPointerFields++; } } else /* static fields */ { // Static fields are stored in the vtable after the vtable and interface slots. We don't // know how large the vtable will be, so we will have to fixup the slot number by // <vtable + interface size> later. if (fIsThreadStatic) { dwCurrentThreadStaticField++; } else { dwCurrentStaticField++; } if (fHasRVA) { if (FieldDescElementType == ELEMENT_TYPE_CLASS) { // RVA fields are not allowed to have GC pointers. BAD_FORMAT_NOTHROW_ASSERT(!"ObjectRef in an RVA field"); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } if (FieldDescElementType == ELEMENT_TYPE_VALUETYPE) { if (IsSelfRef(pByValueClass)) { // We will verify self-referencing statics after the loop through all fields - see code:#SelfReferencingStaticValueTypeField_Checks bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA = TRUE; } else { if (pByValueClass->GetClass()->HasFieldsWhichMustBeInited()) { // RVA fields are not allowed to have GC pointers. BAD_FORMAT_NOTHROW_ASSERT(!"ObjectRef in an RVA field"); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } } } // Set the field offset DWORD rva; IfFailThrow(pInternalImport->GetFieldRVA(pFD->GetMemberDef(), &rva)); // The PE should be loaded by now. _ASSERT(GetModule()->GetPEAssembly()->IsLoaded()); DWORD fldSize; if (FieldDescElementType == ELEMENT_TYPE_VALUETYPE) { if (IsSelfRef(pByValueClass)) { _ASSERTE(bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA); // We do not known the size yet _ASSERTE(bmtFP->NumInstanceFieldBytes == 0); // We will check just the RVA with size 0 now, the full size verification will happen in code:VerifySelfReferencingStaticValueTypeFields_WithRVA fldSize = 0; } else { fldSize = pByValueClass->GetNumInstanceFieldBytes(); } } else { fldSize = GetSizeForCorElementType(FieldDescElementType); } pFD->SetOffsetRVA(rva); } else if (fIsThreadStatic) { bmtFP->NumThreadStaticFieldsOfSize[dwLog2FieldSize]++; if (bCurrentFieldIsGCPointer) bmtFP->NumThreadStaticGCPointerFields++; if (fIsByValue) bmtFP->NumThreadStaticGCBoxedFields++; } else { bmtFP->NumRegularStaticFieldsOfSize[dwLog2FieldSize]++; if (bCurrentFieldIsGCPointer) bmtFP->NumRegularStaticGCPointerFields++; if (fIsByValue) bmtFP->NumRegularStaticGCBoxedFields++; } } } // We processed all fields //#SelfReferencingStaticValueTypeField_Checks if (bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA) { // The type has self-referencing static ValueType field with RVA, do more checks now that depend on all fields being processed // For enums we already checked its underlying type, we should not get here _ASSERTE(!IsEnum()); if (HasFieldsWhichMustBeInited()) { // RVA fields are not allowed to have GC pointers. BAD_FORMAT_NOTHROW_ASSERT(!"ObjectRef in an RVA self-referencing static field"); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } } DWORD dwNumInstanceFields = dwCurrentDeclaredField + (HasParent() ? GetParentMethodTable()->GetNumInstanceFields() : 0); DWORD dwNumStaticFields = bmtEnumFields->dwNumStaticFields; DWORD dwNumThreadStaticFields = bmtEnumFields->dwNumThreadStaticFields; if (!FitsIn<WORD>(dwNumInstanceFields) || !FitsIn<WORD>(dwNumStaticFields)) { // An implementation limitation means that it's an error if there are greater that MAX_WORD fields. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } GetHalfBakedClass()->SetNumInstanceFields((WORD)dwNumInstanceFields); GetHalfBakedClass()->SetNumStaticFields((WORD)dwNumStaticFields); GetHalfBakedClass()->SetNumThreadStaticFields((WORD)dwNumThreadStaticFields); if (bmtFP->fHasFixedAddressValueTypes) { // To make things simpler, if the class has any field with this requirement, we'll set // all the statics to have this property. This allows us to only need to persist one bit // for the ngen case. GetHalfBakedClass()->SetHasFixedAddressVTStatics(); } #ifdef FEATURE_64BIT_ALIGNMENT // For types with layout we drop any 64-bit alignment requirement if the packing size was less than 8 // bytes (this mimics what the native compiler does and ensures we match up calling conventions during // interop). // We don't do this for types that are marked as sequential but end up with auto-layout due to containing pointers, // as auto-layout ignores any Pack directives. if (HasLayout() && (HasExplicitFieldOffsetLayout() || IsManagedSequential()) && GetLayoutInfo()->GetPackingSize() < 8) { fFieldRequiresAlign8 = false; } if (fFieldRequiresAlign8) { SetAlign8Candidate(); } #endif // FEATURE_64BIT_ALIGNMENT #ifdef FEATURE_DOUBLE_ALIGNMENT_HINT if (ShouldAlign8(dwR8Fields, dwNumInstanceFields)) { SetAlign8Candidate(); } #endif // FEATURE_DOUBLE_ALIGNMENT_HINT //======================================================================== // END: // Go thru all fields and initialize their FieldDescs. //======================================================================== return; } // MethodTableBuilder::InitializeFieldDescs #ifdef _PREFAST_ #pragma warning(pop) #endif //******************************************************************************* // Verify self-referencing static ValueType fields with RVA (when the size of the ValueType is known). void MethodTableBuilder::VerifySelfReferencingStaticValueTypeFields_WithRVA( MethodTable ** pByValueClassCache) { STANDARD_VM_CONTRACT; _ASSERTE(bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA); // Enum's static self-referencing fields have been verified as the underlying type of the enum, we should not get here for them _ASSERTE(!IsEnum()); // The size of the ValueType should be known at this point (the caller throws if it is 0) _ASSERTE(bmtFP->NumInstanceFieldBytes != 0); FieldDesc * pFieldDescList = GetApproxFieldDescListRaw(); DWORD nFirstThreadStaticFieldIndex = bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields; for (DWORD i = bmtEnumFields->dwNumInstanceFields; i < nFirstThreadStaticFieldIndex; i++) { FieldDesc * pFD = &pFieldDescList[i]; _ASSERTE(pFD->IsStatic()); if (pFD->IsRVA() && pFD->IsByValue()) { _ASSERTE(pByValueClassCache[i] != NULL); if (IsSelfRef(pByValueClassCache[i])) { DWORD rva; IfFailThrow(GetMDImport()->GetFieldRVA(pFD->GetMemberDef(), &rva)); } } } } // MethodTableBuilder::VerifySelfReferencingStaticValueTypeFields_WithRVA //******************************************************************************* // Returns true if hEnclosingTypeCandidate encloses, at any arbitrary depth, // hNestedTypeCandidate; returns false otherwise. bool MethodTableBuilder::IsEnclosingNestedTypePair( bmtTypeHandle hEnclosingTypeCandidate, bmtTypeHandle hNestedTypeCandidate) { STANDARD_VM_CONTRACT; CONSISTENCY_CHECK(!hEnclosingTypeCandidate.IsNull()); CONSISTENCY_CHECK(!hNestedTypeCandidate.IsNull()); CONSISTENCY_CHECK(!bmtTypeHandle::Equal(hEnclosingTypeCandidate, hNestedTypeCandidate)); Module * pModule = hEnclosingTypeCandidate.GetModule(); if (pModule != hNestedTypeCandidate.GetModule()) { // If the modules aren't the same, then there's no way // hBase could be an enclosing type of hChild. We make // this check early so that the code can deal with only // one Module and IMDInternalImport instance and can avoid // extra checks. return false; } IMDInternalImport * pMDImport = pModule->GetMDImport(); mdTypeDef tkEncl = hEnclosingTypeCandidate.GetTypeDefToken(); mdTypeDef tkNest = hNestedTypeCandidate.GetTypeDefToken(); while (tkEncl != tkNest) { // Do this using the metadata APIs because MethodTableBuilder does // not construct type representations for enclosing type chains. if (FAILED(pMDImport->GetNestedClassProps(tkNest, &tkNest))) { // tokNest is not a nested type. return false; } } // tkNest's enclosing type is tkEncl, so we've shown that // hEnclosingTypeCandidate encloses hNestedTypeCandidate return true; } //******************************************************************************* // Given an arbitrary nesting+subclassing pattern like this: // // class C1 { // private virtual void Foo() { ... } // class C2 : C1 { // ... // class CN : CN-1 { // private override void Foo() { ... } // } // ... // } // } // // this method will return true, where hChild == N and hBase == C1 // // Note that there is no requirement that a type derive from its immediately // enclosing type, but can skip a level, such as this example: // // class A // { // private virtual void Foo() { } // public class B // { // public class C : A // { // private override void Foo() { } // } // } // } // // NOTE: IMPORTANT: This code assumes that hBase is indeed a base type of hChild, // and behaviour is undefined if this is not the case. bool MethodTableBuilder::IsBaseTypeAlsoEnclosingType( bmtTypeHandle hBase, bmtTypeHandle hChild) { STANDARD_VM_CONTRACT; CONSISTENCY_CHECK(!hBase.IsNull()); CONSISTENCY_CHECK(!hChild.IsNull()); CONSISTENCY_CHECK(!bmtTypeHandle::Equal(hBase, hChild)); // The idea of this algorithm is that if we climb the inheritance chain // starting at hChild then we'll eventually hit hBase. If we check that // for every (hParent, hChild) pair in the chain that hParent encloses // hChild, then we've shown that hBase encloses hChild. while (!bmtTypeHandle::Equal(hBase, hChild)) { CONSISTENCY_CHECK(!hChild.GetParentType().IsNull()); bmtTypeHandle hParent(hChild.GetParentType()); if (!IsEnclosingNestedTypePair(hParent, hChild)) { // First, the parent type must enclose the child type. // If this is not the case we fail immediately. return false; } // Move up one in the inheritance chain, and try again. hChild = hParent; } // If the loop worked itself from the original hChild all the way // up to hBase, then we know that for every (hParent, hChild) // pair in the chain that hParent enclosed hChild, and so we know // that hBase encloses the original hChild return true; } //******************************************************************************* BOOL MethodTableBuilder::TestOverrideForAccessibility( bmtMethodHandle hParentMethod, bmtTypeHandle hChildType) { STANDARD_VM_CONTRACT; bmtTypeHandle hParentType(hParentMethod.GetOwningType()); Module * pParentModule = hParentType.GetModule(); Module * pChildModule = hChildType.GetModule(); Assembly * pParentAssembly = pParentModule->GetAssembly(); Assembly * pChildAssembly = pChildModule->GetAssembly(); BOOL isSameAssembly = (pChildAssembly == pParentAssembly); DWORD dwParentAttrs = hParentMethod.GetDeclAttrs(); // AKA "strict bit". This means that overridability is tightly bound to accessibility. if (IsMdCheckAccessOnOverride(dwParentAttrs)) { // Same Assembly if (isSameAssembly || pParentAssembly->GrantsFriendAccessTo(pChildAssembly, hParentMethod.GetMethodDesc()) || pChildAssembly->IgnoresAccessChecksTo(pParentAssembly)) { // Can always override any method that has accessibility greater than mdPrivate if ((dwParentAttrs & mdMemberAccessMask) > mdPrivate) { // Fall through } // Generally, types cannot override inherited mdPrivate methods, except: // Types can access enclosing type's private members, so it can // override them if the nested type extends its enclosing type. else if ((dwParentAttrs & mdMemberAccessMask) == mdPrivate && IsBaseTypeAlsoEnclosingType(hParentType, hChildType)) { // Fall through } else { return FALSE; } } // Cross-Assembly else { // If the method marks itself as check visibility the the method must be // public, FamORAssem, or family if((dwParentAttrs & mdMemberAccessMask) <= mdAssem) { return FALSE; } } } return TRUE; } //******************************************************************************* VOID MethodTableBuilder::TestOverRide(bmtMethodHandle hParentMethod, bmtMethodHandle hChildMethod) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(IsMdVirtual(hParentMethod.GetDeclAttrs())); PRECONDITION(IsMdVirtual(hChildMethod.GetDeclAttrs())); } CONTRACTL_END; DWORD dwAttrs = hChildMethod.GetDeclAttrs(); DWORD dwParentAttrs = hParentMethod.GetDeclAttrs(); Module *pModule = hChildMethod.GetOwningType().GetModule(); Module *pParentModule = hParentMethod.GetOwningType().GetModule(); Assembly *pAssembly = pModule->GetAssembly(); Assembly *pParentAssembly = pParentModule->GetAssembly(); BOOL isSameModule = (pModule == pParentModule); BOOL isSameAssembly = (pAssembly == pParentAssembly); if (!TestOverrideForAccessibility(hParentMethod, hChildMethod.GetOwningType())) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ACCESS_FAILURE, hChildMethod.GetMethodSignature().GetToken()); } // // Refer to Partition II, 9.3.3 for more information on what is permitted. // enum WIDENING_STATUS { e_NO, // NO e_YES, // YES e_SA, // YES, but only when same assembly e_NSA, // YES, but only when NOT same assembly e_SM, // YES, but only when same module }; static_assert_no_msg(mdPrivateScope == 0x00); static_assert_no_msg(mdPrivate == 0x01); static_assert_no_msg(mdFamANDAssem == 0x02); static_assert_no_msg(mdAssem == 0x03); static_assert_no_msg(mdFamily == 0x04); static_assert_no_msg(mdFamORAssem == 0x05); static_assert_no_msg(mdPublic == 0x06); static const DWORD dwCount = mdPublic - mdPrivateScope + 1; static const WIDENING_STATUS rgWideningTable[dwCount][dwCount] = // | Base type // Subtype | mdPrivateScope mdPrivate mdFamANDAssem mdAssem mdFamily mdFamORAssem mdPublic // --------------+------------------------------------------------------------------------------------------------------- /*mdPrivateScope | */ { { e_SM, e_NO, e_NO, e_NO, e_NO, e_NO, e_NO }, /*mdPrivate | */ { e_SM, e_YES, e_NO, e_NO, e_NO, e_NO, e_NO }, /*mdFamANDAssem | */ { e_SM, e_YES, e_SA, e_NO, e_NO, e_NO, e_NO }, /*mdAssem | */ { e_SM, e_YES, e_SA, e_SA, e_NO, e_NO, e_NO }, /*mdFamily | */ { e_SM, e_YES, e_YES, e_NO, e_YES, e_NSA, e_NO }, /*mdFamORAssem | */ { e_SM, e_YES, e_YES, e_SA, e_YES, e_YES, e_NO }, /*mdPublic | */ { e_SM, e_YES, e_YES, e_YES, e_YES, e_YES, e_YES } }; DWORD idxParent = (dwParentAttrs & mdMemberAccessMask) - mdPrivateScope; DWORD idxMember = (dwAttrs & mdMemberAccessMask) - mdPrivateScope; CONSISTENCY_CHECK(idxParent < dwCount); CONSISTENCY_CHECK(idxMember < dwCount); WIDENING_STATUS entry = rgWideningTable[idxMember][idxParent]; if (entry == e_NO || (entry == e_SA && !isSameAssembly && !pParentAssembly->GrantsFriendAccessTo(pAssembly, hParentMethod.GetMethodDesc()) && !pAssembly->IgnoresAccessChecksTo(pParentAssembly)) || (entry == e_NSA && isSameAssembly) || (entry == e_SM && !isSameModule) ) { BuildMethodTableThrowException(IDS_CLASSLOAD_REDUCEACCESS, hChildMethod.GetMethodSignature().GetToken()); } return; } //******************************************************************************* VOID MethodTableBuilder::TestMethodImpl( bmtMethodHandle hDeclMethod, bmtMethodHandle hImplMethod) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(!hDeclMethod.IsNull()); PRECONDITION(!hImplMethod.IsNull()); } CONTRACTL_END Module * pDeclModule = hDeclMethod.GetOwningType().GetModule(); Module * pImplModule = hImplMethod.GetOwningType().GetModule(); mdTypeDef tokDecl = hDeclMethod.GetMethodSignature().GetToken(); mdTypeDef tokImpl = hImplMethod.GetMethodSignature().GetToken(); BOOL isSameModule = pDeclModule->Equals(pImplModule); IMDInternalImport *pIMDDecl = pDeclModule->GetMDImport(); IMDInternalImport *pIMDImpl = pImplModule->GetMDImport(); DWORD dwDeclAttrs; if (FAILED(pIMDDecl->GetMethodDefProps(tokDecl, &dwDeclAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } DWORD dwImplAttrs; if (FAILED(pIMDImpl->GetMethodDefProps(tokImpl, &dwImplAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } HRESULT hr = COR_E_TYPELOAD; if (!IsMdVirtual(dwDeclAttrs)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_NONVIRTUAL_DECL); } if ((IsMdVirtual(dwImplAttrs) && IsMdStatic(dwImplAttrs)) || (!IsMdVirtual(dwImplAttrs) && !IsMdStatic(dwImplAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MUSTBEVIRTUAL); } // Virtual methods on classes/valuetypes cannot be static if (IsMdStatic(dwDeclAttrs) && !hDeclMethod.GetOwningType().IsInterface()) { BuildMethodTableThrowException(IDS_CLASSLOAD_STATICVIRTUAL); } if ((!!IsMdStatic(dwImplAttrs)) != (!!IsMdStatic(dwDeclAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_STATICVIRTUAL); } if (IsMdFinal(dwDeclAttrs)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_FINAL_DECL); } // Interface method body that has methodimpl should always be final if (IsInterface() && !IsMdFinal(dwImplAttrs)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_FINAL_IMPL); } // Since MethodImpl's do not affect the visibility of the Decl method, there's // no need to check. // If Decl's parent is other than this class, Decl must not be private mdTypeDef tkImplParent = mdTypeDefNil; mdTypeDef tkDeclParent = mdTypeDefNil; if (FAILED(hr = pIMDDecl->GetParentToken(tokDecl, &tkDeclParent))) { BuildMethodTableThrowException(hr, *bmtError); } if (FAILED(hr = pIMDImpl->GetParentToken(tokImpl, &tkImplParent))) { BuildMethodTableThrowException(hr, *bmtError); } // Make sure that we test for accessibility restrictions only if the decl is // not within our own type, as we are allowed to methodImpl a private with the // strict bit set if it is in our own type. if (!isSameModule || tkDeclParent != tkImplParent) { if (!TestOverrideForAccessibility(hDeclMethod, hImplMethod.GetOwningType())) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ACCESS_FAILURE, tokImpl); } // Decl's parent must not be tdSealed mdToken tkGrandParentDummyVar; DWORD dwDeclTypeAttrs; if (FAILED(hr = pIMDDecl->GetTypeDefProps(tkDeclParent, &dwDeclTypeAttrs, &tkGrandParentDummyVar))) { BuildMethodTableThrowException(hr, *bmtError); } if (IsTdSealed(dwDeclTypeAttrs)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_SEALED_DECL); } } return; } //******************************************************************************* // // Used by BuildMethodTable // VOID MethodTableBuilder::ValidateMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtMethodImpl)); PRECONDITION(CheckPointer(bmtVT)); } CONTRACTL_END; // Used to keep track of located default and type constructors. CONSISTENCY_CHECK(bmtVT->pCCtor == NULL); CONSISTENCY_CHECK(bmtVT->pDefaultCtor == NULL); // Fetch the hard-coded signatures for the type constructor and the // default constructor and create MethodSignature objects for both at // the method level so this does not happen for every specialname // method. Signature sig; sig = CoreLibBinder::GetSignature(&gsig_SM_RetVoid); MethodSignature cctorSig(CoreLibBinder::GetModule(), COR_CCTOR_METHOD_NAME, sig.GetRawSig(), sig.GetRawSigLen()); sig = CoreLibBinder::GetSignature(&gsig_IM_RetVoid); MethodSignature defaultCtorSig(CoreLibBinder::GetModule(), COR_CTOR_METHOD_NAME, sig.GetRawSig(), sig.GetRawSigLen()); Module * pModule = GetModule(); DeclaredMethodIterator it(*this); while (it.Next()) { // The RVA is only valid/testable if it has not been overwritten // for something like edit-and-continue // Complete validation of non-zero RVAs is done later inside MethodDesc::GetILHeader. if ((it.RVA() == 0) && (pModule->GetDynamicIL(it.Token(), FALSE) == NULL)) { // for IL code that is implemented here must have a valid code RVA // this came up due to a linker bug where the ImplFlags/DescrOffset were // being set to null and we weren't coping with it if((IsMiIL(it.ImplFlags()) || IsMiOPTIL(it.ImplFlags())) && !IsMdAbstract(it.Attrs()) && !IsReallyMdPinvokeImpl(it.Attrs()) && !IsMiInternalCall(it.ImplFlags())) { BuildMethodTableThrowException(IDS_CLASSLOAD_MISSINGMETHODRVA, it.Token()); } } if (IsMdRTSpecialName(it.Attrs())) { if (IsMdVirtual(it.Attrs())) { // Virtual specialname methods are illegal BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // Constructors (.ctor) and class initialisers (.cctor) are special const MethodSignature &curSig(it->GetMethodSignature()); if (IsMdStatic(it.Attrs())) { // The only rtSpecialName static method allowed is the .cctor if (!curSig.ExactlyEqual(cctorSig)) { // Bad method BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // Remember it for later bmtVT->pCCtor = *it; } else { if(!MethodSignature::NamesEqual(curSig, defaultCtorSig)) { // The only rtSpecialName instance methods allowed are .ctors BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // .ctor must return void MetaSig methodMetaSig(curSig.GetSignature(), static_cast<DWORD>(curSig.GetSignatureLength()), curSig.GetModule(), NULL); if (methodMetaSig.GetReturnType() != ELEMENT_TYPE_VOID) { // All constructors must have a void return type BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // See if this is a default constructor. If so, remember it for later. if (curSig.ExactlyEqual(defaultCtorSig)) { bmtVT->pDefaultCtor = *it; } } } // Make sure that fcalls have a 0 rva. This is assumed by the prejit fixup logic if (it.MethodType() == METHOD_TYPE_FCALL && it.RVA() != 0) { BuildMethodTableThrowException(BFA_ECALLS_MUST_HAVE_ZERO_RVA, it.Token()); } // check for proper use of the Managed and native flags if (IsMiManaged(it.ImplFlags())) { if (IsMiIL(it.ImplFlags()) || IsMiRuntime(it.ImplFlags())) // IsMiOPTIL(it.ImplFlags()) no longer supported { // No need to set code address, pre stub used automatically. } else { if (IsMiNative(it.ImplFlags())) { // For now simply disallow managed native code if you turn this on you have to at least // insure that we have SkipVerificationPermission or equivalent BuildMethodTableThrowException(BFA_MANAGED_NATIVE_NYI, it.Token()); } else { BuildMethodTableThrowException(BFA_BAD_IMPL_FLAGS, it.Token()); } } } else { if (IsMiNative(it.ImplFlags()) && IsGlobalClass()) { // global function unmanaged entrypoint via IJW thunk was handled // above. } else { BuildMethodTableThrowException(IDS_CLASSLOAD_BAD_UNMANAGED_RVA, it.Token()); } if (it.MethodType() != METHOD_TYPE_NDIRECT) { BuildMethodTableThrowException(BFA_BAD_UNMANAGED_ENTRY_POINT); } } // Vararg methods are not allowed inside generic classes // and nor can they be generic methods. if (bmtGenerics->GetNumGenericArgs() > 0 || (it.MethodType() == METHOD_TYPE_INSTANTIATED) ) { DWORD cMemberSignature; PCCOR_SIGNATURE pMemberSignature = it.GetSig(&cMemberSignature); // We've been trying to avoid asking for the signature - now we need it if (pMemberSignature == NULL) { pMemberSignature = it.GetSig(&cMemberSignature); } if (MetaSig::IsVarArg(Signature(pMemberSignature, cMemberSignature))) { BuildMethodTableThrowException(BFA_GENCODE_NOT_BE_VARARG); } } if (IsMdVirtual(it.Attrs()) && IsMdPublic(it.Attrs()) && it.Name() == NULL) { BuildMethodTableThrowException(IDS_CLASSLOAD_NOMETHOD_NAME); } if (it.IsMethodImpl()) { if (!IsMdVirtual(it.Attrs()) && !IsMdStatic(it.Attrs())) { // Non-virtual methods may only participate in a methodImpl pair when // they are static and they implement a virtual static interface method. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MUSTBEVIRTUAL, it.Token()); } } // Virtual static methods are only allowed on interfaces and they must be abstract. if (IsMdStatic(it.Attrs()) && IsMdVirtual(it.Attrs())) { if (!IsInterface()) { BuildMethodTableThrowException(IDS_CLASSLOAD_STATICVIRTUAL, it.Token()); } } } } //******************************************************************************* // Essentially, this is a helper method that combines calls to InitMethodDesc and // SetSecurityFlagsOnMethod. It then assigns the newly initialized MethodDesc to // the bmtMDMethod. VOID MethodTableBuilder::InitNewMethodDesc( bmtMDMethod * pMethod, MethodDesc * pNewMD) { STANDARD_VM_CONTRACT; // // First, set all flags that control layout of optional slots // pNewMD->SetClassification(GetMethodClassification(pMethod->GetMethodType())); if (pMethod->GetMethodImplType() == METHOD_IMPL) pNewMD->SetHasMethodImplSlot(); if (pMethod->GetSlotIndex() >= bmtVT->cVtableSlots) pNewMD->SetHasNonVtableSlot(); if (NeedsNativeCodeSlot(pMethod)) pNewMD->SetHasNativeCodeSlot(); // Now we know the classification we can allocate the correct type of // method desc and perform any classification specific initialization. LPCSTR pName = pMethod->GetMethodSignature().GetName(); if (pName == NULL) { if (FAILED(GetMDImport()->GetNameOfMethodDef(pMethod->GetMethodSignature().GetToken(), &pName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } #ifdef _DEBUG LPCUTF8 pszDebugMethodName; if (FAILED(GetMDImport()->GetNameOfMethodDef(pMethod->GetMethodSignature().GetToken(), &pszDebugMethodName))) { pszDebugMethodName = "Invalid MethodDef record"; } S_SIZE_T safeLen = S_SIZE_T(strlen(pszDebugMethodName)) + S_SIZE_T(1); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); LPCUTF8 pszDebugMethodNameCopy = (char*) AllocateFromLowFrequencyHeap(safeLen); strcpy_s((char *) pszDebugMethodNameCopy, len, pszDebugMethodName); #endif // _DEBUG // Do the init specific to each classification of MethodDesc & assign some common fields InitMethodDesc(pNewMD, GetMethodClassification(pMethod->GetMethodType()), pMethod->GetMethodSignature().GetToken(), pMethod->GetImplAttrs(), pMethod->GetDeclAttrs(), FALSE, pMethod->GetRVA(), GetMDImport(), pName COMMA_INDEBUG(pszDebugMethodNameCopy) COMMA_INDEBUG(GetDebugClassName()) COMMA_INDEBUG("") // FIX this happens on global methods, give better info ); pMethod->SetMethodDesc(pNewMD); bmtRTMethod * pParentMethod = NULL; if (HasParent()) { SLOT_INDEX idx = pMethod->GetSlotIndex(); CONSISTENCY_CHECK(idx != INVALID_SLOT_INDEX); if (idx < GetParentMethodTable()->GetNumVirtuals()) { pParentMethod = (*bmtParent->pSlotTable)[idx].Decl().AsRTMethod(); } } // Turn off inlining for any calls // that are marked in the metadata as not being inlineable. if(IsMiNoInlining(pMethod->GetImplAttrs())) { pNewMD->SetNotInline(true); } // Check for methods marked as [Intrinsic] if (GetModule()->IsSystem()) { if (bmtProp->fIsHardwareIntrinsic || (S_OK == GetCustomAttribute(pMethod->GetMethodSignature().GetToken(), WellKnownAttribute::Intrinsic, NULL, NULL))) { pNewMD->SetIsIntrinsic(); } } pNewMD->SetSlot(pMethod->GetSlotIndex()); } //******************************************************************************* // Determine vtable placement for each non-virtual in the class, while also // looking for default and type constructors. VOID MethodTableBuilder::PlaceNonVirtualMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtMethodImpl)); PRECONDITION(CheckPointer(bmtVT)); } CONTRACTL_END; INDEBUG(bmtVT->SealVirtualSlotSection();) // // For each non-virtual method, place the method in the next available non-virtual method slot. // // Place the cctor and default ctor first. code::MethodTableGetCCtorSlot and code:MethodTable::GetDefaultCtorSlot // depends on this. if (bmtVT->pCCtor != NULL) { if (!bmtVT->AddNonVirtualMethod(bmtVT->pCCtor)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } if (bmtVT->pDefaultCtor != NULL) { if (!bmtVT->AddNonVirtualMethod(bmtVT->pDefaultCtor)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } // We use slot during remoting and to map methods between generic instantiations // (see MethodTable::GetParallelMethodDesc). The current implementation // of this mechanism requires real slots. BOOL fCanHaveNonVtableSlots = (bmtGenerics->GetNumGenericArgs() == 0) && !IsInterface(); // Flag to avoid second pass when possible BOOL fHasNonVtableSlots = FALSE; // // Place all methods that require real vtable slot first. This is necessary so // that they get consequitive slot numbers right after virtual slots. // DeclaredMethodIterator it(*this); while (it.Next()) { // Skip methods that are placed already if (it->GetSlotIndex() != INVALID_SLOT_INDEX) continue; #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(it.Name())) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", it.Name())); #endif // _DEBUG if (!fCanHaveNonVtableSlots || it->GetMethodType() == METHOD_TYPE_INSTANTIATED) { // We use slot during remoting and to map methods between generic instantiations // (see MethodTable::GetParallelMethodDesc). The current implementation // of this mechanism requires real slots. } else { // This method does not need real vtable slot fHasNonVtableSlots = TRUE; continue; } // This will update slot index in bmtMDMethod if (!bmtVT->AddNonVirtualMethod(*it)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } // Remeber last real vtable slot bmtVT->cVtableSlots = bmtVT->cTotalSlots; // Are there any Non-vtable slots to place? if (!fHasNonVtableSlots) return; // // Now, place the remaining methods. They will get non-vtable slot. // DeclaredMethodIterator it2(*this); while (it2.Next()) { // Skip methods that are placed already if (it2->GetSlotIndex() != INVALID_SLOT_INDEX) continue; if (!bmtVT->AddNonVirtualMethod(*it2)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } } //******************************************************************************* // Determine vtable placement for each virtual member in this class. VOID MethodTableBuilder::PlaceVirtualMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtMethodImpl)); PRECONDITION(CheckPointer(bmtVT)); } CONTRACTL_END; #ifdef _DEBUG LPCUTF8 pszDebugName, pszDebugNamespace; if (FAILED(GetMDImport()->GetNameOfTypeDef(GetCl(), &pszDebugName, &pszDebugNamespace))) { pszDebugName = pszDebugNamespace = "Invalid TypeDef record"; } #endif // _DEBUG // // For each virtual method // - If the method is not declared as newslot, search all virtual methods in the parent // type for an override candidate. // - If such a candidate is found, test to see if the override is valid. If // the override is not valid, throw TypeLoadException // - If a candidate is found above, place the method in the inherited slot as both // the Decl and the Impl. // - Else, place the method in the next available empty vtable slot. // DeclaredMethodIterator it(*this); while (it.Next()) { if (!IsMdVirtual(it.Attrs()) || IsMdStatic(it.Attrs())) { // Only processing declared virtual instance methods continue; } #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(it.Name())) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", it.Name())); #endif // _DEBUG // If this member is a method which overrides a parent method, it will be set to non-NULL bmtRTMethod * pParentMethod = NULL; // Hash that a method with this name exists in this class // Note that ctors and static ctors are not added to the table BOOL fMethodConstraintsMatch = FALSE; // If the member is marked with a new slot we do not need to find it in the parent if (HasParent() && !IsMdNewSlot(it.Attrs())) { // Attempt to find the method with this name and signature in the parent class. // This method may or may not create pParentMethodHash (if it does not already exist). // It also may or may not fill in pMemberSignature/cMemberSignature. // An error is only returned when we can not create the hash. // NOTE: This operation touches metadata pParentMethod = LoaderFindMethodInParentClass( it->GetMethodSignature(), bmtProp->fNoSanityChecks ? NULL : &fMethodConstraintsMatch); if (pParentMethod != NULL) { // Found an override candidate DWORD dwParentAttrs = pParentMethod->GetDeclAttrs(); if (!IsMdVirtual(dwParentAttrs)) { // Can't override a non-virtual methods BuildMethodTableThrowException(BFA_NONVIRT_NO_SEARCH, it.Token()); } if(IsMdFinal(dwParentAttrs)) { // Can't override a final methods BuildMethodTableThrowException(IDS_CLASSLOAD_MI_FINAL_DECL, it.Token()); } if(!bmtProp->fNoSanityChecks) { TestOverRide(bmtMethodHandle(pParentMethod), bmtMethodHandle(*it)); if (!fMethodConstraintsMatch) { BuildMethodTableThrowException( IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_IMPLICIT_OVERRIDE, it.Token()); } } } } // vtable method if (IsInterface()) { CONSISTENCY_CHECK(pParentMethod == NULL); // Also sets new slot number on bmtRTMethod and MethodDesc if (!bmtVT->AddVirtualMethod(*it)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } else if (pParentMethod != NULL) { bmtVT->SetVirtualMethodOverride(pParentMethod->GetSlotIndex(), *it); } else { if (!bmtVT->AddVirtualMethod(*it)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } } } // Given an interface map entry, and a name+signature, compute the method on the interface // that the name+signature corresponds to. Used by ProcessMethodImpls and ProcessInexactMethodImpls // Always returns the first match that it finds. Affects the ambiguities in code:#ProcessInexactMethodImpls_Ambiguities MethodTableBuilder::bmtMethodHandle MethodTableBuilder::FindDeclMethodOnInterfaceEntry(bmtInterfaceEntry *pItfEntry, MethodSignature &declSig, bool searchForStaticMethods) { STANDARD_VM_CONTRACT; bmtMethodHandle declMethod; bmtInterfaceEntry::InterfaceSlotIterator slotIt = pItfEntry->IterateInterfaceSlots(GetStackingAllocator(), searchForStaticMethods); // Check for exact match for (; !slotIt.AtEnd(); slotIt.Next()) { bmtRTMethod * pCurDeclMethod = slotIt->Decl().AsRTMethod(); if (declSig.ExactlyEqual(pCurDeclMethod->GetMethodSignature().GetSignatureWithoutSubstitution())) { declMethod = slotIt->Decl(); break; } } slotIt.ResetToStart(); // Check for equivalent match if exact match wasn't found if (declMethod.IsNull()) { for (; !slotIt.AtEnd(); slotIt.Next()) { bmtRTMethod * pCurDeclMethod = slotIt->Decl().AsRTMethod(); // Type Equivalence is forbidden in MethodImpl MemberRefs if (declSig.Equivalent(pCurDeclMethod->GetMethodSignature().GetSignatureWithoutSubstitution())) { declMethod = slotIt->Decl(); break; } } } return declMethod; } //******************************************************************************* // // Used by BuildMethodTable // Process the list of inexact method impls generated during ProcessMethodImpls. // This list is used to cause a methodImpl to an interface to override // methods on several equivalent interfaces in the interface map. This logic is necessary // so that in the presence of an embedded interface the behavior appears to mimic // the behavior if the interface was not embedded. // // In particular, the logic here is to handle cases such as // // Assembly A // [TypeIdentifier("x","y")] // interface I' // { void Method(); } // interface IOther : I' {} // // Assembly B // [TypeIdentifier("x","y")] // interface I // { void Method(); } // class Test : I, IOther // { // void I.Method() // {} // } // // In this case, there is one method, and one methodimpl, but there are 2 interfaces on the class that both // require an implementation of their method. The correct semantic for type equivalence, is that any // methodimpl directly targeting a method on an interface must be respected, and if it also applies to a type // equivalent interface method, then if that method was not methodimpl'd directly, then the methodimpl should apply // there as well. The ProcessInexactMethodImpls function does this secondary MethodImpl mapping. // //#ProcessInexactMethodImpls_Ambiguities // In the presence of ambiguities, such as there are 3 equivalent interfaces implemented on a class and 2 methodimpls, // we will apply the 2 method impls exactly to appropriate interface methods, and arbitrarily pick one to apply to the // other interface. This is clearly ambiguous, but tricky to detect in the type loader efficiently, and should hopefully // not cause too many problems. // VOID MethodTableBuilder::ProcessInexactMethodImpls() { STANDARD_VM_CONTRACT; if (bmtMethod->dwNumberInexactMethodImplCandidates == 0) return; DeclaredMethodIterator it(*this); while (it.Next()) { // Non-virtual methods cannot be classified as methodImpl - we should have thrown an // error before reaching this point. CONSISTENCY_CHECK(!(!IsMdVirtual(it.Attrs()) && it.IsMethodImpl())); if (!IsMdVirtual(it.Attrs())) { // Only virtual methods can participate in methodImpls continue; } if(!it.IsMethodImpl()) { // Skip methods which are not the bodies of MethodImpl specifications continue; } // If this method serves as the BODY of a MethodImpl specification, then // we should iterate all the MethodImpl's for this class and see just how many // of them this method participates in as the BODY. for(DWORD m = 0; m < bmtMethod->dwNumberMethodImpls; m++) { // Inexact matching logic only works on MethodImpls that have been opted into inexactness by ProcessMethodImpls. if (!bmtMetaData->rgMethodImplTokens[m].fConsiderDuringInexactMethodImplProcessing) { continue; } // If the methodimpl we are working with does not match this method, continue to next methodimpl if(it.Token() != bmtMetaData->rgMethodImplTokens[m].methodBody) { continue; } bool fMatchFound = false; LPCUTF8 szName = NULL; PCCOR_SIGNATURE pSig = NULL; ULONG cbSig; mdToken mdDecl = bmtMetaData->rgMethodImplTokens[m].methodDecl; if (TypeFromToken(mdDecl) == mdtMethodDef) { // Different methods are aused to access MethodDef and MemberRef // names and signatures. if (FAILED(GetMDImport()->GetNameOfMethodDef(mdDecl, &szName)) || FAILED(GetMDImport()->GetSigOfMethodDef(mdDecl, &cbSig, &pSig))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } else { if (FAILED(GetMDImport()->GetNameAndSigOfMemberRef(mdDecl, &pSig, &cbSig, &szName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } MethodSignature declSig(GetModule(), szName, pSig, cbSig, NULL); bmtInterfaceEntry * pItfEntry = NULL; for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { if (bmtInterface->pInterfaceMap[i].GetInterfaceEquivalenceSet() != bmtMetaData->rgMethodImplTokens[m].interfaceEquivalenceSet) continue; bmtMethodHandle declMethod; pItfEntry = &bmtInterface->pInterfaceMap[i]; // Search for declmethod on this interface declMethod = FindDeclMethodOnInterfaceEntry(pItfEntry, declSig); // If we didn't find a match, continue on to next interface in the equivalence set if (declMethod.IsNull()) continue; if (!IsMdVirtual(declMethod.GetDeclAttrs())) { // Make sure the decl is virtual BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MUSTBEVIRTUAL, it.Token()); } fMatchFound = true; bool fPreexistingImplFound = false; // Check to ensure there isn't already a matching declMethod in the method impl list for (DWORD iMethodImpl = 0; iMethodImpl < bmtMethodImpl->pIndex; iMethodImpl++) { if (bmtMethodImpl->GetDeclarationMethod(iMethodImpl) == declMethod) { fPreexistingImplFound = true; break; } } // Search for other matches if (fPreexistingImplFound) continue; if (bmtMetaData->rgMethodImplTokens[m].fRequiresCovariantReturnTypeChecking) { it->GetMethodDesc()->SetRequiresCovariantReturnTypeChecking(); } // Otherwise, record the method impl discovery if the match is bmtMethodImpl->AddMethodImpl(*it, declMethod, bmtMetaData->rgMethodImplTokens[m].methodDecl, GetStackingAllocator()); } if (!fMatchFound && bmtMetaData->rgMethodImplTokens[m].fThrowIfUnmatchedDuringInexactMethodImplProcessing) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_DECLARATIONNOTFOUND, it.Token()); } } } } //******************************************************************************* // // Used by BuildMethodTable // VOID MethodTableBuilder::ProcessMethodImpls() { STANDARD_VM_CONTRACT; if (bmtMetaData->fHasCovariantOverride) { GetHalfBakedClass()->SetHasCovariantOverride(); } if (GetParentMethodTable() != NULL) { EEClass* parentClass = GetParentMethodTable()->GetClass(); if (parentClass->HasCovariantOverride()) GetHalfBakedClass()->SetHasCovariantOverride(); if (parentClass->HasVTableMethodImpl()) GetHalfBakedClass()->SetHasVTableMethodImpl(); } if (bmtMethod->dwNumberMethodImpls == 0) return; HRESULT hr = S_OK; DeclaredMethodIterator it(*this); while (it.Next()) { if (!IsMdVirtual(it.Attrs()) && it.IsMethodImpl() && bmtProp->fNoSanityChecks) { // Non-virtual methods can only be classified as methodImpl when implementing // static virtual methods. CONSISTENCY_CHECK(IsMdStatic(it.Attrs())); continue; } // If this method serves as the BODY of a MethodImpl specification, then // we should iterate all the MethodImpl's for this class and see just how many // of them this method participates in as the BODY. if(it.IsMethodImpl()) { for(DWORD m = 0; m < bmtMethod->dwNumberMethodImpls; m++) { if(it.Token() == bmtMetaData->rgMethodImplTokens[m].methodBody) { mdToken mdDecl = bmtMetaData->rgMethodImplTokens[m].methodDecl; bmtMethodHandle declMethod; // Get the parent token for the decl method token mdToken tkParent = mdTypeDefNil; if (TypeFromToken(mdDecl) == mdtMethodDef || TypeFromToken(mdDecl) == mdtMemberRef) { if (FAILED(hr = GetMDImport()->GetParentToken(mdDecl,&tkParent))) { BuildMethodTableThrowException(hr, *bmtError); } } if (GetCl() == tkParent) { // The DECL has been declared within the class that we're currently building. hr = S_OK; if(bmtError->pThrowable != NULL) { *(bmtError->pThrowable) = NULL; } if(TypeFromToken(mdDecl) != mdtMethodDef) { if (FAILED(hr = FindMethodDeclarationForMethodImpl( mdDecl, &mdDecl, TRUE))) { BuildMethodTableThrowException(hr, *bmtError); } } CONSISTENCY_CHECK(TypeFromToken(mdDecl) == mdtMethodDef); declMethod = bmtMethod->FindDeclaredMethodByToken(mdDecl); } else { // We can't call GetDescFromMemberDefOrRef here because this // method depends on a fully-loaded type, including parent types, // which is not always guaranteed. In particular, it requires that // the instantiation dictionary be filled. The solution is the following: // 1. Load the approximate type that the method belongs to. // 2. Get or create the correct substitution for the type involved // 3. Iterate the introduced methods on that type looking for a matching // method. LPCUTF8 szName = NULL; PCCOR_SIGNATURE pSig = NULL; ULONG cbSig; if (TypeFromToken(mdDecl) == mdtMethodDef) { // Different methods are aused to access MethodDef and MemberRef // names and signatures. if (FAILED(GetMDImport()->GetNameOfMethodDef(mdDecl, &szName)) || FAILED(GetMDImport()->GetSigOfMethodDef(mdDecl, &cbSig, &pSig))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } else { if (FAILED(GetMDImport()->GetNameAndSigOfMemberRef(mdDecl, &pSig, &cbSig, &szName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } Substitution *pDeclSubst = &bmtMetaData->pMethodDeclSubsts[m]; MethodTable * pDeclMT = NULL; MethodSignature declSig(GetModule(), szName, pSig, cbSig, NULL); { // 1. Load the approximate type. // Block for the LoadsTypeViolation. CONTRACT_VIOLATION(LoadsTypeViolation); pDeclMT = ClassLoader::LoadTypeDefOrRefOrSpecThrowing( GetModule(), tkParent, &bmtGenerics->typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_APPROXPARENTS, TRUE).GetMethodTable()->GetCanonicalMethodTable(); } { // 2. Get or create the correct substitution if (pDeclMT->IsInterface()) { // If the declaration method is a part of an interface, search through // the interface map to find the matching interface so we can provide // the correct substitution chain. bmtRTType *pDeclType = NULL; bmtInterfaceEntry * pItfEntry = NULL; for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtRTType * pCurItf = bmtInterface->pInterfaceMap[i].GetInterfaceType(); // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions( pCurItf->GetMethodTable(), pDeclMT, &pCurItf->GetSubstitution(), pDeclSubst, &newVisited)) { pItfEntry = &bmtInterface->pInterfaceMap[i]; pDeclType = pCurItf; break; } } if (IsInterface()) { if (pDeclType == NULL) { // Interface is not implemented by this type. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_NOTIMPLEMENTED, it.Token()); } } else { if (pDeclType == NULL) { DWORD equivalenceSet = 0; for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtRTType * pCurItf = bmtInterface->pInterfaceMap[i].GetInterfaceType(); // Type Equivalence is respected for this comparision as we just need to find an // equivalent interface, the particular interface is unimportant if (MetaSig::CompareTypeDefsUnderSubstitutions( pCurItf->GetMethodTable(), pDeclMT, &pCurItf->GetSubstitution(), pDeclSubst, NULL)) { equivalenceSet = bmtInterface->pInterfaceMap[i].GetInterfaceEquivalenceSet(); pItfEntry = &bmtInterface->pInterfaceMap[i]; break; } } if (equivalenceSet == 0) { // Interface is not implemented by this type. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_NOTIMPLEMENTED, it.Token()); } // Interface is not implemented by this type exactly. We need to consider this MethodImpl on non exact interface matches, // as the only match may be one of the non-exact matches bmtMetaData->rgMethodImplTokens[m].fConsiderDuringInexactMethodImplProcessing = true; bmtMetaData->rgMethodImplTokens[m].fThrowIfUnmatchedDuringInexactMethodImplProcessing = true; bmtMetaData->rgMethodImplTokens[m].interfaceEquivalenceSet = equivalenceSet; bmtMethod->dwNumberInexactMethodImplCandidates++; continue; // Move on to other MethodImpls } else { // This method impl may need to match other methods during inexact processing if (pItfEntry->InEquivalenceSetWithMultipleEntries()) { bmtMetaData->rgMethodImplTokens[m].fConsiderDuringInexactMethodImplProcessing = true; bmtMetaData->rgMethodImplTokens[m].fThrowIfUnmatchedDuringInexactMethodImplProcessing = false; bmtMetaData->rgMethodImplTokens[m].interfaceEquivalenceSet = pItfEntry->GetInterfaceEquivalenceSet(); bmtMethod->dwNumberInexactMethodImplCandidates++; } } } // 3. Find the matching method. declMethod = FindDeclMethodOnInterfaceEntry(pItfEntry, declSig, !IsMdVirtual(it.Attrs())); // Search for statics when the impl is non-virtual } else { GetHalfBakedClass()->SetHasVTableMethodImpl(); declMethod = FindDeclMethodOnClassInHierarchy(it, pDeclMT, declSig); } if (declMethod.IsNull()) { // Would prefer to let this fall out to the BuildMethodTableThrowException // below, but due to v2.0 and earlier behaviour throwing a MissingMethodException, // primarily because this code used to be a simple call to // MemberLoader::GetDescFromMemberDefOrRef (see above for reason why), // we must continue to do the same. MemberLoader::ThrowMissingMethodException( pDeclMT, declSig.GetName(), declSig.GetModule(), declSig.GetSignature(), static_cast<DWORD>(declSig.GetSignatureLength()), &bmtGenerics->typeContext); } } } if (declMethod.IsNull()) { // Method not found, throw. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_DECLARATIONNOTFOUND, it.Token()); } if (!IsMdVirtual(declMethod.GetDeclAttrs())) { // Make sure the decl is virtual BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MUSTBEVIRTUAL, it.Token()); } if (!IsMdVirtual(it.Attrs()) && it.IsMethodImpl() && IsMdStatic(it.Attrs())) { // Non-virtual methods can only be classified as methodImpl when implementing // static virtual methods. ValidateStaticMethodImpl(declMethod, *it);//bmtMethodHandle(pCurImplMethod)); continue; } if (bmtMetaData->rgMethodImplTokens[m].fRequiresCovariantReturnTypeChecking) { it->GetMethodDesc()->SetRequiresCovariantReturnTypeChecking(); } bmtMethodImpl->AddMethodImpl(*it, declMethod, mdDecl, GetStackingAllocator()); } } } } /* end ... for each member */ } MethodTableBuilder::bmtMethodHandle MethodTableBuilder::FindDeclMethodOnClassInHierarchy(const DeclaredMethodIterator& it, MethodTable * pDeclMT, MethodSignature &declSig) { bmtRTType * pDeclType = NULL; bmtMethodHandle declMethod; // Assume the MethodTable is a parent of the current type, // and create the substitution chain to match it. for (bmtRTType *pCur = GetParentType(); pCur != NULL; pCur = pCur->GetParentType()) { if (pCur->GetMethodTable() == pDeclMT) { pDeclType = pCur; break; } } // Instead of using the Substitution chain that reaches back to the type being loaded, instead // use a substitution chain that points back to the open type associated with the memberref of the declsig. Substitution emptySubstitution; Substitution* pDeclTypeSubstitution = &emptySubstitution; DWORD lengthOfSubstitutionChainHandled = pDeclType->GetSubstitution().GetLength(); if (pDeclType == NULL) { // Method's type is not a parent. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_DECLARATIONNOTFOUND, it.Token()); } // 3. Find the matching method. bmtRTType *pCurDeclType = pDeclType; do { // Update the substitution in use for matching the method. If the substitution length is greater // than the previously processed data, add onto the end of the chain. { DWORD declTypeSubstitionLength = pCurDeclType->GetSubstitution().GetLength(); if (declTypeSubstitionLength > lengthOfSubstitutionChainHandled) { void *pNewSubstitutionMem = _alloca(sizeof(Substitution)); Substitution substitutionToClone = pCurDeclType->GetSubstitution(); Substitution *pNewSubstitution = new(pNewSubstitutionMem) Substitution(substitutionToClone.GetModule(), substitutionToClone.GetInst(), pDeclTypeSubstitution); pDeclTypeSubstitution = pNewSubstitution; lengthOfSubstitutionChainHandled = declTypeSubstitionLength; } } // two pass algorithm. search for exact matches followed // by equivalent matches. for (int iPass = 0; (iPass < 2) && (declMethod.IsNull()); iPass++) { MethodTable *pCurDeclMT = pCurDeclType->GetMethodTable(); MethodTable::IntroducedMethodIterator methIt(pCurDeclMT); for(; methIt.IsValid(); methIt.Next()) { MethodDesc * pCurMD = methIt.GetMethodDesc(); if (pCurDeclMT != pDeclMT) { // If the method isn't on the declaring type, then it must be virtual. if (!pCurMD->IsVirtual()) continue; } if (strcmp(declSig.GetName(), pCurMD->GetName()) == 0) { PCCOR_SIGNATURE pCurMDSig; DWORD cbCurMDSig; pCurMD->GetSig(&pCurMDSig, &cbCurMDSig); // First pass searches for declaration methods should not use type equivalence TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareMethodSigs( declSig.GetSignature(), static_cast<DWORD>(declSig.GetSignatureLength()), declSig.GetModule(), NULL, // Do not use the substitution of declSig, as we have adjusted the pDeclTypeSubstitution such that it must not be used. pCurMDSig, cbCurMDSig, pCurMD->GetModule(), pDeclTypeSubstitution, FALSE, iPass == 0 ? &newVisited : NULL)) { declMethod = (*bmtParent->pSlotTable)[pCurMD->GetSlot()].Decl(); break; } } } } pCurDeclType = pCurDeclType->GetParentType(); } while ((pCurDeclType != NULL) && (declMethod.IsNull())); return declMethod; } //******************************************************************************* // InitMethodDesc takes a pointer to space that's already allocated for the // particular type of MethodDesc, and initializes based on the other info. // This factors logic between PlaceMembers (the regular code path) & AddMethod // (Edit & Continue (EnC) code path) so we don't have to maintain separate copies. VOID MethodTableBuilder::InitMethodDesc( MethodDesc * pNewMD, // This is should actually be of the correct sub-type, based on Classification DWORD Classification, mdToken tok, DWORD dwImplFlags, DWORD dwMemberAttrs, BOOL fEnC, DWORD RVA, // Only needed for NDirect case IMDInternalImport * pIMDII, // Needed for NDirect, EEImpl(Delegate) cases LPCSTR pMethodName // Only needed for mcEEImpl (Delegate) case COMMA_INDEBUG(LPCUTF8 pszDebugMethodName) COMMA_INDEBUG(LPCUTF8 pszDebugClassName) COMMA_INDEBUG(LPCUTF8 pszDebugMethodSignature) ) { CONTRACTL { THROWS; if (fEnC) { GC_NOTRIGGER; } else { GC_TRIGGERS; } MODE_ANY; } CONTRACTL_END; LOG((LF_CORDB, LL_EVERYTHING, "EEC::IMD: pNewMD:0x%x for tok:0x%x (%s::%s)\n", pNewMD, tok, pszDebugClassName, pszDebugMethodName)); // Now we know the classification we can perform any classification specific initialization. // The method desc is zero inited by the caller. switch (Classification) { case mcNDirect: { // NDirect specific initialization. NDirectMethodDesc *pNewNMD = (NDirectMethodDesc*)pNewMD; // Allocate writeable data pNewNMD->ndirect.m_pWriteableData = (NDirectWriteableData*) AllocateFromHighFrequencyHeap(S_SIZE_T(sizeof(NDirectWriteableData))); #ifdef HAS_NDIRECT_IMPORT_PRECODE pNewNMD->ndirect.m_pImportThunkGlue = Precode::Allocate(PRECODE_NDIRECT_IMPORT, pNewMD, GetLoaderAllocator(), GetMemTracker())->AsNDirectImportPrecode(); #else // !HAS_NDIRECT_IMPORT_PRECODE pNewNMD->GetNDirectImportThunkGlue()->Init(pNewNMD); #endif // !HAS_NDIRECT_IMPORT_PRECODE #if defined(TARGET_X86) pNewNMD->ndirect.m_cbStackArgumentSize = 0xFFFF; #endif // defined(TARGET_X86) // If the RVA of a native method is set, this is an early-bound IJW call if (RVA != 0 && IsMiUnmanaged(dwImplFlags) && IsMiNative(dwImplFlags)) { // Note that we cannot initialize the stub directly now in the general case, // as LoadLibrary may not have been performed yet. pNewNMD->SetIsEarlyBound(); } pNewNMD->GetWriteableData()->m_pNDirectTarget = pNewNMD->GetNDirectImportThunkGlue()->GetEntrypoint(); } break; case mcFCall: break; case mcEEImpl: // For the Invoke method we will set a standard invoke method. BAD_FORMAT_NOTHROW_ASSERT(IsDelegate()); // For the asserts, either the pointer is NULL (since the class hasn't // been constructed yet), or we're in EnC mode, meaning that the class // does exist, but we may be re-assigning the field to point to an // updated MethodDesc // It is not allowed for EnC to replace one of the runtime builtin methods if (strcmp(pMethodName, "Invoke") == 0) { BAD_FORMAT_NOTHROW_ASSERT(((DelegateEEClass*)GetHalfBakedClass())->m_pInvokeMethod == NULL); ((DelegateEEClass*)GetHalfBakedClass())->m_pInvokeMethod = pNewMD; } else if (strcmp(pMethodName, "BeginInvoke") == 0) { BAD_FORMAT_NOTHROW_ASSERT(((DelegateEEClass*)GetHalfBakedClass())->m_pBeginInvokeMethod == NULL); ((DelegateEEClass*)GetHalfBakedClass())->m_pBeginInvokeMethod = pNewMD; } else if (strcmp(pMethodName, "EndInvoke") == 0) { BAD_FORMAT_NOTHROW_ASSERT(((DelegateEEClass*)GetHalfBakedClass())->m_pEndInvokeMethod == NULL); ((DelegateEEClass*)GetHalfBakedClass())->m_pEndInvokeMethod = pNewMD; } else { BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // StoredSig specific intialization { StoredSigMethodDesc *pNewSMD = (StoredSigMethodDesc*) pNewMD;; DWORD cSig; PCCOR_SIGNATURE pSig; if (FAILED(pIMDII->GetSigOfMethodDef(tok, &cSig, &pSig))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } pNewSMD->SetStoredMethodSig(pSig, cSig); } break; #ifdef FEATURE_COMINTEROP case mcComInterop: #endif // FEATURE_COMINTEROP case mcIL: break; case mcInstantiated: #ifdef EnC_SUPPORTED if (fEnC) { // We reuse the instantiated methoddescs to get the slot InstantiatedMethodDesc* pNewIMD = (InstantiatedMethodDesc*) pNewMD; pNewIMD->SetupEnCAddedMethod(); } else #endif // EnC_SUPPORTED { // Initialize the typical instantiation. InstantiatedMethodDesc* pNewIMD = (InstantiatedMethodDesc*) pNewMD; //data has the same lifetime as method table, use our allocator pNewIMD->SetupGenericMethodDefinition(pIMDII, GetLoaderAllocator(), GetMemTracker(), GetModule(), tok); } break; default: BAD_FORMAT_NOTHROW_ASSERT(!"Failed to set a method desc classification"); } // Check the method desc's classification. _ASSERTE(pNewMD->GetClassification() == Classification); pNewMD->SetMemberDef(tok); if (IsMdStatic(dwMemberAttrs)) pNewMD->SetStatic(); #ifdef _DEBUG // Mark as many methods as synchronized as possible. // // Note that this can easily cause programs to deadlock, and that // should not be treated as a bug in the program. static ConfigDWORD stressSynchronized; DWORD stressSynchronizedVal = stressSynchronized.val(CLRConfig::INTERNAL_stressSynchronized); bool isStressSynchronized = stressSynchronizedVal && pNewMD->IsIL() && // Synchronized is not supported on Ecalls, NDirect method, etc // IsValueClass() and IsEnum() do not work for System.ValueType and System.Enum themselves ((g_pValueTypeClass != NULL && g_pEnumClass != NULL && !IsValueClass()) || // Can not synchronize on byref "this" IsMdStatic(dwMemberAttrs)) && // IsStatic() blows up in _DEBUG as pNewMD is not fully inited g_pObjectClass != NULL; // Ignore Object:* since "this" could be a boxed object // stressSynchronized=1 turns off the stress in the system domain to reduce // the chances of spurious deadlocks. Deadlocks in user code can still occur. // stressSynchronized=2 will probably cause more deadlocks, and is not recommended if (stressSynchronizedVal == 1 && GetAssembly()->IsSystem()) isStressSynchronized = false; if (IsMiSynchronized(dwImplFlags) || isStressSynchronized) #else // !_DEBUG if (IsMiSynchronized(dwImplFlags)) #endif // !_DEBUG pNewMD->SetSynchronized(); #ifdef _DEBUG pNewMD->m_pszDebugMethodName = (LPUTF8)pszDebugMethodName; pNewMD->m_pszDebugClassName = (LPUTF8)pszDebugClassName; pNewMD->m_pDebugMethodTable = GetHalfBakedMethodTable(); if (pszDebugMethodSignature == NULL) pNewMD->m_pszDebugMethodSignature = FormatSig(pNewMD,pNewMD->GetLoaderAllocator()->GetLowFrequencyHeap(),GetMemTracker()); else pNewMD->m_pszDebugMethodSignature = pszDebugMethodSignature; #endif // _DEBUG } // MethodTableBuilder::InitMethodDesc //******************************************************************************* // // Used by BuildMethodTable // VOID MethodTableBuilder::AddMethodImplDispatchMapping( DispatchMapTypeID typeID, SLOT_INDEX slotNumber, bmtMDMethod * pImplMethod) { STANDARD_VM_CONTRACT; MethodDesc * pMDImpl = pImplMethod->GetMethodDesc(); // Look for an existing entry in the map. DispatchMapBuilder::Iterator it(bmtVT->pDispatchMapBuilder); if (bmtVT->pDispatchMapBuilder->Find(typeID, slotNumber, it)) { // Throw if this entry has already previously been MethodImpl'd. if (it.IsMethodImpl()) { // NOTE: This is where we check for duplicate overrides. This is the easiest place to check // because duplicate overrides could in fact have separate MemberRefs to the same // member and so just comparing tokens at the very start would not be enough. if (it.GetTargetMD() != pMDImpl) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MULTIPLEOVERRIDES, pMDImpl->GetMemberDef()); } } // This is the first MethodImpl. That's ok. else { it.SetTarget(pMDImpl); it.SetIsMethodImpl(); } } // A mapping for this interface method does not exist, so insert it. else { bmtVT->pDispatchMapBuilder->InsertMDMapping( typeID, slotNumber, pMDImpl, TRUE); } // Save the entry into the vtable as well, if it isn't an interface methodImpl if (typeID == DispatchMapTypeID::ThisClassID()) { bmtVT->SetVirtualMethodImpl(slotNumber, pImplMethod); } } // MethodTableBuilder::AddMethodImplDispatchMapping //******************************************************************************* VOID MethodTableBuilder::MethodImplCompareSignatures( bmtMethodHandle hDecl, bmtMethodHandle hImpl, BOOL allowCovariantReturn, DWORD dwConstraintErrorCode) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(!hDecl.IsNull()); PRECONDITION(!hImpl.IsNull()); PRECONDITION(TypeFromToken(hDecl.GetMethodSignature().GetToken()) == mdtMethodDef); PRECONDITION(TypeFromToken(hImpl.GetMethodSignature().GetToken()) == mdtMethodDef); } CONTRACTL_END; const MethodSignature &declSig(hDecl.GetMethodSignature()); const MethodSignature &implSig(hImpl.GetMethodSignature()); if (!MethodSignature::SignaturesEquivalent(declSig, implSig, allowCovariantReturn)) { LOG((LF_CLASSLOADER, LL_INFO1000, "BADSIG placing MethodImpl: %x\n", declSig.GetToken())); BuildMethodTableThrowException(COR_E_TYPELOAD, IDS_CLASSLOAD_MI_BADSIGNATURE, declSig.GetToken()); } //now compare the method constraints if (!MetaSig::CompareMethodConstraints(&implSig.GetSubstitution(), implSig.GetModule(), implSig.GetToken(), &declSig.GetSubstitution(), declSig.GetModule(), declSig.GetToken())) { BuildMethodTableThrowException(dwConstraintErrorCode, implSig.GetToken()); } } //******************************************************************************* // We should have collected all the method impls. Cycle through them creating the method impl // structure that holds the information about which slots are overridden. VOID MethodTableBuilder::PlaceMethodImpls() { STANDARD_VM_CONTRACT; if(bmtMethodImpl->pIndex == 0) { return; } // Allocate some temporary storage. The number of overrides for a single method impl // cannot be greater then the number of vtable slots for classes. But for interfaces // it might contain overrides for other interface methods. DWORD dwMaxSlotSize = IsInterface() ? bmtMethod->dwNumberMethodImpls : bmtVT->cVirtualSlots; DWORD * slots = new (GetStackingAllocator()) DWORD[dwMaxSlotSize]; mdToken * tokens = new (GetStackingAllocator()) mdToken[dwMaxSlotSize]; MethodDesc ** replaced = new (GetStackingAllocator()) MethodDesc*[dwMaxSlotSize]; DWORD iEntry = 0; bmtMDMethod * pCurImplMethod = bmtMethodImpl->GetImplementationMethod(iEntry); DWORD slotIndex = 0; // The impls are sorted according to the method descs for the body of the method impl. // Loop through the impls until the next body is found. When a single body // has been done move the slots implemented and method descs replaced into the storage // found on the body method desc. while (true) { // collect information until we reach the next body tokens[slotIndex] = bmtMethodImpl->GetDeclarationToken(iEntry); // Get the declaration part of the method impl. It will either be a token // (declaration is on this type) or a method desc. bmtMethodHandle hDeclMethod = bmtMethodImpl->GetDeclarationMethod(iEntry); // Don't place static virtual method overrides in the vtable if (!IsMdStatic(hDeclMethod.GetDeclAttrs())) { if(hDeclMethod.IsMDMethod()) { // The declaration is on the type being built bmtMDMethod * pCurDeclMethod = hDeclMethod.AsMDMethod(); mdToken mdef = pCurDeclMethod->GetMethodSignature().GetToken(); if (bmtMethodImpl->IsBody(mdef)) { // A method declared on this class cannot be both a decl and an impl BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MULTIPLEOVERRIDES, mdef); } if (IsInterface()) { // Throws PlaceInterfaceDeclarationOnInterface( hDeclMethod, pCurImplMethod, slots, // Adds override to the slot and replaced arrays. replaced, &slotIndex, dwMaxSlotSize); // Increments count } else { // Throws PlaceLocalDeclarationOnClass( pCurDeclMethod, pCurImplMethod, slots, // Adds override to the slot and replaced arrays. replaced, &slotIndex, dwMaxSlotSize); // Increments count } } else { bmtRTMethod * pCurDeclMethod = hDeclMethod.AsRTMethod(); if (IsInterface()) { // Throws PlaceInterfaceDeclarationOnInterface( hDeclMethod, pCurImplMethod, slots, // Adds override to the slot and replaced arrays. replaced, &slotIndex, dwMaxSlotSize); // Increments count } else { // Do not use pDecl->IsInterface here as that asks the method table and the MT may not yet be set up. if (pCurDeclMethod->GetOwningType()->IsInterface()) { // Throws PlaceInterfaceDeclarationOnClass( pCurDeclMethod, pCurImplMethod); } else { // Throws PlaceParentDeclarationOnClass( pCurDeclMethod, pCurImplMethod, slots, replaced, &slotIndex, dwMaxSlotSize); // Increments count } } } } iEntry++; if(iEntry == bmtMethodImpl->pIndex) { // We hit the end of the list so dump the current data and leave WriteMethodImplData(pCurImplMethod, slotIndex, slots, tokens, replaced); break; } else { bmtMDMethod * pNextImplMethod = bmtMethodImpl->GetImplementationMethod(iEntry); if (pNextImplMethod != pCurImplMethod) { // If we're moving on to a new body, dump the current data and reset the counter WriteMethodImplData(pCurImplMethod, slotIndex, slots, tokens, replaced); slotIndex = 0; } pCurImplMethod = pNextImplMethod; } } // while(next != NULL) } // MethodTableBuilder::PlaceMethodImpls //******************************************************************************* VOID MethodTableBuilder::WriteMethodImplData( bmtMDMethod * pImplMethod, DWORD cSlots, DWORD * rgSlots, mdToken * rgTokens, MethodDesc ** rgDeclMD) { STANDARD_VM_CONTRACT; // Use the number of overrides to // push information on to the method desc. We store the slots that // are overridden and the method desc that is replaced. That way // when derived classes need to determine if the method is to be // overridden then it can check the name against the replaced // method desc not the bodies name. if (cSlots == 0) { //@TODO:NEWVTWORK: Determine methodImpl status so that we don't need this workaround. //@TODO:NEWVTWORK: This occurs when only interface decls are involved, since //@TODO:NEWVTWORK: these are stored in the dispatch map and not on the methoddesc. } else { MethodImpl * pImpl = pImplMethod->GetMethodDesc()->GetMethodImpl(); // Set the size of the info the MethodImpl needs to keep track of. pImpl->SetSize(GetLoaderAllocator()->GetHighFrequencyHeap(), GetMemTracker(), cSlots); if (!IsInterface()) { // If we are currently builting an interface, the slots here has no meaning and we can skip it // Sort the two arrays in slot index order // This is required in MethodImpl::FindSlotIndex and MethodImpl::Iterator as we'll be using // binary search later for (DWORD i = 0; i < cSlots; i++) { unsigned int min = i; for (DWORD j = i + 1; j < cSlots; j++) { if (rgSlots[j] < rgSlots[min]) { min = j; } } if (min != i) { MethodDesc * mTmp = rgDeclMD[i]; rgDeclMD[i] = rgDeclMD[min]; rgDeclMD[min] = mTmp; DWORD sTmp = rgSlots[i]; rgSlots[i] = rgSlots[min]; rgSlots[min] = sTmp; mdToken tTmp = rgTokens[i]; rgTokens[i] = rgTokens[min]; rgTokens[min] = tTmp; } } } // Go and set the method impl pImpl->SetData(rgSlots, rgTokens, rgDeclMD); GetHalfBakedClass()->SetContainsMethodImpls(); } } // MethodTableBuilder::WriteMethodImplData //******************************************************************************* VOID MethodTableBuilder::PlaceLocalDeclarationOnClass( bmtMDMethod * pDecl, bmtMDMethod * pImpl, DWORD * slots, MethodDesc ** replaced, DWORD * pSlotIndex, DWORD dwMaxSlotSize) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(bmtVT->pDispatchMapBuilder)); PRECONDITION(CheckPointer(pDecl)); PRECONDITION(CheckPointer(pImpl)); } CONTRACTL_END if (!bmtProp->fNoSanityChecks) { /////////////////////////////// // Verify the signatures match MethodImplCompareSignatures( pDecl, pImpl, FALSE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_LOCAL_METHOD_IMPL); /////////////////////////////// // Validate the method impl. TestMethodImpl( bmtMethodHandle(pDecl), bmtMethodHandle(pImpl)); } // Don't allow overrides for any of the four special runtime implemented delegate methods if (IsDelegate()) { LPCUTF8 strMethodName = pDecl->GetMethodSignature().GetName(); if ((strcmp(strMethodName, COR_CTOR_METHOD_NAME) == 0) || (strcmp(strMethodName, "Invoke") == 0) || (strcmp(strMethodName, "BeginInvoke") == 0) || (strcmp(strMethodName, "EndInvoke") == 0)) { BuildMethodTableThrowException( IDS_CLASSLOAD_MI_CANNOT_OVERRIDE, pDecl->GetMethodSignature().GetToken()); } } /////////////////// // Add the mapping // Call helper to add it. Will throw if decl is already MethodImpl'd CONSISTENCY_CHECK(pDecl->GetSlotIndex() == static_cast<SLOT_INDEX>(pDecl->GetMethodDesc()->GetSlot())); AddMethodImplDispatchMapping( DispatchMapTypeID::ThisClassID(), pDecl->GetSlotIndex(), pImpl); // We implement this slot, record it ASSERT(*pSlotIndex < dwMaxSlotSize); slots[*pSlotIndex] = pDecl->GetSlotIndex(); replaced[*pSlotIndex] = pDecl->GetMethodDesc(); // increment the counter (*pSlotIndex)++; } // MethodTableBuilder::PlaceLocalDeclarationOnClass //******************************************************************************* VOID MethodTableBuilder::PlaceInterfaceDeclarationOnClass( bmtRTMethod * pDecl, bmtMDMethod * pImpl) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pDecl)); PRECONDITION(CheckPointer(pImpl)); PRECONDITION(pDecl->GetMethodDesc()->IsInterface()); PRECONDITION(CheckPointer(bmtVT->pDispatchMapBuilder)); } CONTRACTL_END; MethodDesc * pDeclMD = pDecl->GetMethodDesc(); MethodTable * pDeclMT = pDeclMD->GetMethodTable(); // Note that the fact that pDecl is non-NULL means that we found the // declaration token to be owned by a declared interface for this type. if (!bmtProp->fNoSanityChecks) { /////////////////////////////// // Verify the signatures match MethodImplCompareSignatures( pDecl, pImpl, FALSE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_INTERFACE_METHOD_IMPL); /////////////////////////////// // Validate the method impl. TestMethodImpl( bmtMethodHandle(pDecl), bmtMethodHandle(pImpl)); } /////////////////// // Add the mapping // Note that we need only one DispatchMapTypeID for this interface (though there might be more if there // are duplicates). The first one is easy to get, but we could (in theory) use the last one or a random // one. // Q: Why don't we have to place this method for all duplicate interfaces? Because VSD knows about // duplicates and finds the right (latest) implementation for us - see // code:MethodTable::MethodDataInterfaceImpl::PopulateNextLevel#ProcessAllDuplicates. UINT32 cInterfaceDuplicates; DispatchMapTypeID firstDispatchMapTypeID; ComputeDispatchMapTypeIDs( pDeclMT, &pDecl->GetMethodSignature().GetSubstitution(), &firstDispatchMapTypeID, 1, &cInterfaceDuplicates); CONSISTENCY_CHECK(cInterfaceDuplicates >= 1); CONSISTENCY_CHECK(firstDispatchMapTypeID.IsImplementedInterface()); // Call helper to add it. Will throw if decl is already MethodImpl'd CONSISTENCY_CHECK(pDecl->GetSlotIndex() == static_cast<SLOT_INDEX>(pDecl->GetMethodDesc()->GetSlot())); AddMethodImplDispatchMapping( firstDispatchMapTypeID, pDecl->GetSlotIndex(), pImpl); #ifdef _DEBUG if (bmtInterface->dbg_fShouldInjectInterfaceDuplicates) { // We injected interface duplicates // We have to MethodImpl all interface duplicates as all duplicates are 'declared on type' (see // code:#InjectInterfaceDuplicates_ApproxInterfaces) DispatchMapTypeID * rgDispatchMapTypeIDs = (DispatchMapTypeID *)_alloca(sizeof(DispatchMapTypeID) * cInterfaceDuplicates); ComputeDispatchMapTypeIDs( pDeclMT, &pDecl->GetMethodSignature().GetSubstitution(), rgDispatchMapTypeIDs, cInterfaceDuplicates, &cInterfaceDuplicates); for (UINT32 nInterfaceDuplicate = 1; nInterfaceDuplicate < cInterfaceDuplicates; nInterfaceDuplicate++) { // Add MethodImpl record for each injected interface duplicate AddMethodImplDispatchMapping( rgDispatchMapTypeIDs[nInterfaceDuplicate], pDecl->GetSlotIndex(), pImpl); } } #endif //_DEBUG } // MethodTableBuilder::PlaceInterfaceDeclarationOnClass //******************************************************************************* VOID MethodTableBuilder::PlaceInterfaceDeclarationOnInterface( bmtMethodHandle hDecl, bmtMDMethod *pImpl, DWORD * slots, MethodDesc ** replaced, DWORD * pSlotIndex, DWORD dwMaxSlotSize) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pImpl)); PRECONDITION(IsInterface()); PRECONDITION(hDecl.GetMethodDesc()->IsInterface()); } CONTRACTL_END; MethodDesc * pDeclMD = hDecl.GetMethodDesc(); if (!bmtProp->fNoSanityChecks) { /////////////////////////////// // Verify the signatures match MethodImplCompareSignatures( hDecl, bmtMethodHandle(pImpl), FALSE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_INTERFACE_METHOD_IMPL); /////////////////////////////// // Validate the method impl. TestMethodImpl(hDecl, bmtMethodHandle(pImpl)); } // We implement this slot, record it ASSERT(*pSlotIndex < dwMaxSlotSize); slots[*pSlotIndex] = hDecl.GetSlotIndex(); replaced[*pSlotIndex] = pDeclMD; // increment the counter (*pSlotIndex)++; } // MethodTableBuilder::PlaceInterfaceDeclarationOnInterface //******************************************************************************* VOID MethodTableBuilder::PlaceParentDeclarationOnClass( bmtRTMethod * pDecl, bmtMDMethod * pImpl, DWORD * slots, MethodDesc** replaced, DWORD * pSlotIndex, DWORD dwMaxSlotSize) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pDecl)); PRECONDITION(CheckPointer(pImpl)); PRECONDITION(CheckPointer(bmtVT->pDispatchMapBuilder)); PRECONDITION(CheckPointer(GetParentMethodTable())); } CONTRACTL_END; MethodDesc * pDeclMD = pDecl->GetMethodDesc(); // Note that the fact that pDecl is non-NULL means that we found the // declaration token to be owned by a parent type. if (!bmtProp->fNoSanityChecks) { ///////////////////////////////////////// // Verify that the signatures match MethodImplCompareSignatures( pDecl, pImpl, TRUE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_PARENT_METHOD_IMPL); //////////////////////////////// // Verify rules of method impls TestMethodImpl( bmtMethodHandle(pDecl), bmtMethodHandle(pImpl)); } /////////////////// // Add the mapping // Call helper to add it. Will throw if DECL is already MethodImpl'd AddMethodImplDispatchMapping( DispatchMapTypeID::ThisClassID(), pDeclMD->GetSlot(), pImpl); // We implement this slot, record it ASSERT(*pSlotIndex < dwMaxSlotSize); slots[*pSlotIndex] = pDeclMD->GetSlot(); replaced[*pSlotIndex] = pDeclMD; // increment the counter (*pSlotIndex)++; } // MethodTableBuilder::PlaceParentDeclarationOnClass VOID MethodTableBuilder::ValidateStaticMethodImpl( bmtMethodHandle hDecl, bmtMethodHandle hImpl) { // While we don't want to place the static method impl declarations on the class/interface, we do // need to validate the method constraints and signature are compatible if (!bmtProp->fNoSanityChecks) { /////////////////////////////// // Verify the signatures match MethodImplCompareSignatures( hDecl, hImpl, FALSE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_INTERFACE_METHOD_IMPL); /////////////////////////////// // Validate the method impl. TestMethodImpl(hDecl, hImpl); } } //******************************************************************************* // This will validate that all interface methods that were matched during // layout also validate against type constraints. VOID MethodTableBuilder::ValidateInterfaceMethodConstraints() { STANDARD_VM_CONTRACT; DispatchMapBuilder::Iterator it(bmtVT->pDispatchMapBuilder); for (; it.IsValid(); it.Next()) { if (it.GetTypeID() != DispatchMapTypeID::ThisClassID()) { bmtRTType * pItf = bmtInterface->pInterfaceMap[it.GetTypeID().GetInterfaceNum()].GetInterfaceType(); // Grab the method token MethodTable * pMTItf = pItf->GetMethodTable(); CONSISTENCY_CHECK(CheckPointer(pMTItf->GetMethodDescForSlot(it.GetSlotNumber()))); mdMethodDef mdTok = pItf->GetMethodTable()->GetMethodDescForSlot(it.GetSlotNumber())->GetMemberDef(); // Default to the current module. The code immediately below determines if this // assumption is incorrect. Module * pTargetModule = GetModule(); // Get the module of the target method. Get it through the chunk to // avoid triggering the assert that MethodTable is non-NULL. It may // be null since it may belong to the type we're building right now. MethodDesc * pTargetMD = it.GetTargetMD(); // If pTargetMT is null, this indicates that the target MethodDesc belongs // to the current type. Otherwise, the MethodDesc MUST be owned by a parent // of the type we're building. BOOL fTargetIsOwnedByParent = pTargetMD->GetMethodTable() != NULL; // If the method is owned by a parent, we need to use the parent's module, // and we must construct the substitution chain all the way up to the parent. const Substitution *pSubstTgt = NULL; if (fTargetIsOwnedByParent) { CONSISTENCY_CHECK(CheckPointer(GetParentType())); bmtRTType *pTargetType = bmtRTType::FindType(GetParentType(), pTargetMD->GetMethodTable()); pSubstTgt = &pTargetType->GetSubstitution(); pTargetModule = pTargetType->GetModule(); } // Now compare the method constraints. if (!MetaSig::CompareMethodConstraints(pSubstTgt, pTargetModule, pTargetMD->GetMemberDef(), &pItf->GetSubstitution(), pMTItf->GetModule(), mdTok)) { LOG((LF_CLASSLOADER, LL_INFO1000, "BADCONSTRAINTS on interface method implementation: %x\n", pTargetMD)); // This exception will be due to an implicit implementation, since explicit errors // will be detected in MethodImplCompareSignatures (for now, anyway). CONSISTENCY_CHECK(!it.IsMethodImpl()); DWORD idsError = it.IsMethodImpl() ? IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_INTERFACE_METHOD_IMPL : IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_IMPLICIT_IMPLEMENTATION; if (fTargetIsOwnedByParent) { DefineFullyQualifiedNameForClass(); LPCUTF8 szClassName = GetFullyQualifiedNameForClassNestedAware(pTargetMD->GetMethodTable()); LPCUTF8 szMethodName = pTargetMD->GetName(); CQuickBytes qb; // allocate enough room for "<class>.<method>\0" size_t cchFullName = strlen(szClassName) + 1 + strlen(szMethodName) + 1; LPUTF8 szFullName = (LPUTF8) qb.AllocThrows(cchFullName); strcpy_s(szFullName, cchFullName, szClassName); strcat_s(szFullName, cchFullName, "."); strcat_s(szFullName, cchFullName, szMethodName); BuildMethodTableThrowException(idsError, szFullName); } else { BuildMethodTableThrowException(idsError, pTargetMD->GetMemberDef()); } } } } } // MethodTableBuilder::ValidateInterfaceMethodConstraints //******************************************************************************* // Used to allocate and initialize MethodDescs (both the boxed and unboxed entrypoints) VOID MethodTableBuilder::AllocAndInitMethodDescs() { STANDARD_VM_CONTRACT; // // Go over all MethodDescs and create smallest number of MethodDescChunks possible. // // Iterate over all methods and start a new chunk only if: // - Token range (upper 24 bits of the method token) has changed. // - The maximum size of the chunk has been reached. // int currentTokenRange = -1; // current token range SIZE_T sizeOfMethodDescs = 0; // current running size of methodDesc chunk int startIndex = 0; // start of the current chunk (index into bmtMethod array) DeclaredMethodIterator it(*this); while (it.Next()) { int tokenRange = GetTokenRange(it.Token()); // This code assumes that iterator returns tokens in ascending order. If this assumption does not hold, // the code will still work with small performance penalty (method desc chunk layout will be less efficient). _ASSERTE(tokenRange >= currentTokenRange); SIZE_T size = MethodDesc::GetBaseSize(GetMethodClassification(it->GetMethodType())); // Add size of optional slots if (it->GetMethodImplType() == METHOD_IMPL) size += sizeof(MethodImpl); if (it->GetSlotIndex() >= bmtVT->cVtableSlots) size += sizeof(MethodDesc::NonVtableSlot); // slot if (NeedsNativeCodeSlot(*it)) size += sizeof(MethodDesc::NativeCodeSlot); // See comment in AllocAndInitMethodDescChunk if (NeedsTightlyBoundUnboxingStub(*it)) { size *= 2; if (bmtGenerics->GetNumGenericArgs() == 0) { size += sizeof(MethodDesc::NonVtableSlot); } else { bmtVT->cVtableSlots++; } } if (tokenRange != currentTokenRange || sizeOfMethodDescs + size > MethodDescChunk::MaxSizeOfMethodDescs) { if (sizeOfMethodDescs != 0) { AllocAndInitMethodDescChunk(startIndex, it.CurrentIndex() - startIndex, sizeOfMethodDescs); startIndex = it.CurrentIndex(); } currentTokenRange = tokenRange; sizeOfMethodDescs = 0; } sizeOfMethodDescs += size; } if (sizeOfMethodDescs != 0) { AllocAndInitMethodDescChunk(startIndex, NumDeclaredMethods() - startIndex, sizeOfMethodDescs); } } //******************************************************************************* // Allocates and initializes one method desc chunk. // // Arguments: // startIndex - index of first method in bmtMethod array. // count - number of methods in this chunk (contiguous region from startIndex) // sizeOfMethodDescs - total expected size of MethodDescs in this chunk // // Used by AllocAndInitMethodDescs. // VOID MethodTableBuilder::AllocAndInitMethodDescChunk(COUNT_T startIndex, COUNT_T count, SIZE_T sizeOfMethodDescs) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(sizeOfMethodDescs <= MethodDescChunk::MaxSizeOfMethodDescs); } CONTRACTL_END; void * pMem = GetMemTracker()->Track( GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(TADDR) + sizeof(MethodDescChunk) + sizeOfMethodDescs))); // Skip pointer to temporary entrypoints MethodDescChunk * pChunk = (MethodDescChunk *)((BYTE*)pMem + sizeof(TADDR)); COUNT_T methodDescCount = 0; SIZE_T offset = sizeof(MethodDescChunk); #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:22019) // Suppress PREFast warning about integer underflow #endif // _PREFAST_ for (COUNT_T i = 0; i < count; i++) #ifdef _PREFAST_ #pragma warning(pop) #endif // _PREFAST_ { bmtMDMethod * pMDMethod = (*bmtMethod)[static_cast<SLOT_INDEX>(startIndex + i)]; MethodDesc * pMD = (MethodDesc *)((BYTE *)pChunk + offset); pMD->SetChunkIndex(pChunk); InitNewMethodDesc(pMDMethod, pMD); #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:22018) // Suppress PREFast warning about integer underflow #endif // _PREFAST_ offset += pMD->SizeOf(); #ifdef _PREFAST_ #pragma warning(pop) #endif // _PREFAST_ methodDescCount++; // If we're a value class, we want to create duplicate slots // and MethodDescs for all methods in the vtable // section (i.e. not non-virtual instance methods or statics). // In the name of uniformity it would be much nicer // if we created _all_ value class BoxedEntryPointStubs at this point. // However, non-virtual instance methods only require unboxing // stubs in the rare case that we create a delegate to such a // method, and thus it would be inefficient to create them on // loading: after all typical structs will have many non-virtual // instance methods. // // Unboxing stubs for non-virtual instance methods are created // in code:MethodDesc::FindOrCreateAssociatedMethodDesc. if (NeedsTightlyBoundUnboxingStub(pMDMethod)) { MethodDesc * pUnboxedMD = (MethodDesc *)((BYTE *)pChunk + offset); ////////////////////////////////// // Initialize the new MethodDesc // <NICE> memcpy operations on data structures like MethodDescs are extremely fragile // and should not be used. We should go to the effort of having proper constructors // in the MethodDesc class. </NICE> memcpy(pUnboxedMD, pMD, pMD->SizeOf()); // Reset the chunk index pUnboxedMD->SetChunkIndex(pChunk); if (bmtGenerics->GetNumGenericArgs() == 0) { pUnboxedMD->SetHasNonVtableSlot(); } ////////////////////////////////////////////////////////// // Modify the original MethodDesc to be an unboxing stub pMD->SetIsUnboxingStub(); //////////////////////////////////////////////////////////////////// // Add the new MethodDesc to the non-virtual portion of the vtable if (!bmtVT->AddUnboxedMethod(pMDMethod)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); pUnboxedMD->SetSlot(pMDMethod->GetUnboxedSlotIndex()); pMDMethod->SetUnboxedMethodDesc(pUnboxedMD); offset += pUnboxedMD->SizeOf(); methodDescCount++; } } _ASSERTE(offset == sizeof(MethodDescChunk) + sizeOfMethodDescs); pChunk->SetSizeAndCount((ULONG)sizeOfMethodDescs, methodDescCount); GetHalfBakedClass()->AddChunk(pChunk); } //******************************************************************************* BOOL MethodTableBuilder::NeedsTightlyBoundUnboxingStub(bmtMDMethod * pMDMethod) { STANDARD_VM_CONTRACT; return IsValueClass() && !IsMdStatic(pMDMethod->GetDeclAttrs()) && IsMdVirtual(pMDMethod->GetDeclAttrs()) && (pMDMethod->GetMethodType() != METHOD_TYPE_INSTANTIATED) && !IsMdRTSpecialName(pMDMethod->GetDeclAttrs()); } //******************************************************************************* BOOL MethodTableBuilder::NeedsNativeCodeSlot(bmtMDMethod * pMDMethod) { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_TIERED_COMPILATION // Keep in-sync with MethodDesc::DetermineAndSetIsEligibleForTieredCompilation() if ((g_pConfig->TieredCompilation() && // Policy - If QuickJit is disabled and the module does not have any pregenerated code, the method would be ineligible // for tiering currently to avoid some unnecessary overhead (g_pConfig->TieredCompilation_QuickJit() || GetModule()->IsReadyToRun()) && (pMDMethod->GetMethodType() == METHOD_TYPE_NORMAL || pMDMethod->GetMethodType() == METHOD_TYPE_INSTANTIATED)) #ifdef FEATURE_REJIT || // Methods that are R2R need precode if ReJIT is enabled. Keep this in sync with MethodDesc::IsEligibleForReJIT() (ReJitManager::IsReJITEnabled() && GetMethodClassification(pMDMethod->GetMethodType()) == mcIL && !GetModule()->IsCollectible() && !GetModule()->IsEditAndContinueEnabled()) #endif // FEATURE_REJIT ) { return TRUE; } #endif #ifdef FEATURE_DEFAULT_INTERFACES if (IsInterface()) { DWORD attrs = pMDMethod->GetDeclAttrs(); if (!IsMdStatic(attrs) && IsMdVirtual(attrs) && !IsMdAbstract(attrs)) { // Default interface method. Since interface methods currently need to have a precode, the native code slot will be // used to retrieve the native code entry point, instead of getting it from the precode, which is not reliable with // debuggers setting breakpoints. return TRUE; } } #endif #if defined(FEATURE_JIT_PITCHING) if ((CLRConfig::GetConfigValue(CLRConfig::INTERNAL_JitPitchEnabled) != 0) && (CLRConfig::GetConfigValue(CLRConfig::INTERNAL_JitPitchMemThreshold) != 0)) return TRUE; #endif return GetModule()->IsEditAndContinueEnabled(); } //******************************************************************************* VOID MethodTableBuilder::AllocAndInitDictionary() { STANDARD_VM_CONTRACT; // Allocate dictionary layout used by all compatible instantiations if (bmtGenerics->fSharedByGenericInstantiations && !bmtGenerics->fContainsGenericVariables) { // We use the number of methods as a heuristic for the number of slots in the dictionary // attached to shared class method tables. // If there are no declared methods then we have no slots, and we will never do any token lookups // // Heuristics // - Classes with a small number of methods (2-3) tend to be more likely to use new slots, // i.e. further methods tend to reuse slots from previous methods. // = treat all classes with only 2-3 methods as if they have an extra method. // - Classes with more generic parameters tend to use more slots. // = multiply by 1.5 for 2 params or more DWORD numMethodsAdjusted = (bmtMethod->dwNumDeclaredNonAbstractMethods == 0) ? 0 : (bmtMethod->dwNumDeclaredNonAbstractMethods < 3) ? 3 : bmtMethod->dwNumDeclaredNonAbstractMethods; _ASSERTE(bmtGenerics->GetNumGenericArgs() != 0); DWORD nTypeFactorBy2 = (bmtGenerics->GetNumGenericArgs() == 1) ? 2 : 3; DWORD estNumTypeSlots = (numMethodsAdjusted * nTypeFactorBy2 + 2) / 3; // estNumTypeSlots should fit in a WORD as long as we maintain the current // limit on the number of methods in a type (approx 2^16). _ASSERTE(FitsIn<WORD>(estNumTypeSlots)); WORD numTypeSlots = static_cast<WORD>(estNumTypeSlots); if (numTypeSlots > 0) { // Dictionary layout is an optional field on EEClass, so ensure the optional field descriptor has // been allocated. EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); GetHalfBakedClass()->SetDictionaryLayout(DictionaryLayout::Allocate(numTypeSlots, bmtAllocator, m_pAllocMemTracker)); } } } //******************************************************************************* // // Used by BuildMethodTable // // Compute the set of interfaces which are equivalent. Duplicates in the interface map // will be placed into different equivalence sets unless they participate in type equivalence. // This is a bit odd, but it turns out we only need to know about equivalence classes if // there is type equivalence involved in the interface, and not detecting, or detecting equivalence // in other cases does not result in differing behavior. // // By restricting the reasons for having equivalence matches, we reduce the algorithm from one which // is O(n*n) best case to an algorithm which will typically execute something more like O(m*n) best case time // where m is the number of generic interface (although still n*n in worst case). The assumption is that equivalent // and generic interfaces are relatively rare. VOID MethodTableBuilder::ComputeInterfaceMapEquivalenceSet() { STANDARD_VM_CONTRACT; UINT32 nextEquivalenceSet = 1; for (DWORD dwCurInterface = 0; dwCurInterface < bmtInterface->dwInterfaceMapSize; dwCurInterface++) { // Keep track of the current interface we are trying to calculate the equivalence set of bmtInterfaceEntry * pCurItfEntry = &bmtInterface->pInterfaceMap[dwCurInterface]; bmtRTType * pCurItf = pCurItfEntry->GetInterfaceType(); MethodTable * pCurItfMT = pCurItf->GetMethodTable(); const Substitution * pCurItfSubst = &pCurItf->GetSubstitution(); UINT32 currentEquivalenceSet = 0; // Only interfaces with type equivalence, or that are generic need to be compared for equivalence if (pCurItfMT->HasTypeEquivalence() || pCurItfMT->HasInstantiation()) { for (DWORD dwCurInterfaceCompare = 0; dwCurInterfaceCompare < dwCurInterface; dwCurInterfaceCompare++) { // Keep track of the current interface we are trying to calculate the equivalence set of bmtInterfaceEntry * pCompareItfEntry = &bmtInterface->pInterfaceMap[dwCurInterfaceCompare]; bmtRTType * pCompareItf = pCompareItfEntry->GetInterfaceType(); MethodTable * pCompareItfMT = pCompareItf->GetMethodTable(); const Substitution * pCompareItfSubst = &pCompareItf->GetSubstitution(); // Only interfaces with type equivalence, or that are generic need to be compared for equivalence if (pCompareItfMT->HasTypeEquivalence() || pCompareItfMT->HasInstantiation()) { if (MetaSig::CompareTypeDefsUnderSubstitutions(pCurItfMT, pCompareItfMT, pCurItfSubst, pCompareItfSubst, NULL)) { currentEquivalenceSet = pCompareItfEntry->GetInterfaceEquivalenceSet(); // Use the equivalence set of the interface map entry we just found pCurItfEntry->SetInterfaceEquivalenceSet(currentEquivalenceSet, true); // Update the interface map entry we just found to indicate that it is part of an equivalence // set with multiple entries. pCompareItfEntry->SetInterfaceEquivalenceSet(currentEquivalenceSet, true); break; } } } } // If we did not find an equivalent interface above, use the next available equivalence set indicator if (currentEquivalenceSet == 0) { pCurItfEntry->SetInterfaceEquivalenceSet(nextEquivalenceSet, false); nextEquivalenceSet++; } } } //******************************************************************************* // // Used by PlaceInterfaceMethods // // Given an interface in our interface map, and a particular method on that interface, place // a method from the parent types implementation of an equivalent interface into that method // slot. Used by PlaceInterfaceMethods to make equivalent interface implementations have the // same behavior as if the parent interface was implemented on this type instead of an equivalent interface. // // This logic is used in situations such as below. I and I' are equivalent interfaces // //# // class Base : I // {void I.Method() { } } // interface IOther : I' {} // class Derived : IOther // { virtual void Method() {}} // // We should Map I'.Method to Base.Method, not Derived.Method // // Another example // class Base : I // { virtual void Method() } // interface IOther : I' {} // class Derived : IOther // { virtual void Method() {}} // // We should map I'.Method to Base.Method, not Derived.Method // // class Base : I // {void I.Method() { } } // class Derived : I' // {} // // We should Map I'.Method to Base.Method, and not throw TypeLoadException // #ifdef FEATURE_COMINTEROP VOID MethodTableBuilder::PlaceMethodFromParentEquivalentInterfaceIntoInterfaceSlot( bmtInterfaceEntry::InterfaceSlotIterator & itfSlotIt, bmtInterfaceEntry * pCurItfEntry, DispatchMapTypeID ** prgInterfaceDispatchMapTypeIDs, DWORD dwCurInterface) { STANDARD_VM_CONTRACT; bmtRTMethod * pCurItfMethod = itfSlotIt->Decl().AsRTMethod(); if (itfSlotIt->Impl() != INVALID_SLOT_INDEX) { return; } // For every equivalent interface entry that was actually implemented by parent, then look at equivalent method slot on that entry // and if it matches and has a slot implementation, then record and continue for (DWORD dwEquivalentInterface = 0; (dwEquivalentInterface < bmtInterface->dwInterfaceMapSize) && (itfSlotIt->Impl() == INVALID_SLOT_INDEX); dwEquivalentInterface++) { bmtInterfaceEntry * pEquivItfEntry = &bmtInterface->pInterfaceMap[dwEquivalentInterface]; bmtRTType * pEquivItf = pEquivItfEntry->GetInterfaceType(); MethodTable * pEquivItfMT = pEquivItf->GetMethodTable(); const Substitution * pEquivItfSubst = &pEquivItf->GetSubstitution(); if (pEquivItfEntry->GetInterfaceEquivalenceSet() != pCurItfEntry->GetInterfaceEquivalenceSet()) { // Not equivalent continue; } if (!pEquivItfEntry->IsImplementedByParent()) { // Not implemented by parent continue; } WORD slot = static_cast<WORD>(itfSlotIt.CurrentIndex()); BOOL fFound = FALSE; // Determine which slot on the equivalent interface would map to the slot we are attempting to fill // in with an implementation. WORD otherMTSlot = GetEquivalentMethodSlot(pCurItfEntry->GetInterfaceType()->GetMethodTable(), pEquivItfEntry->GetInterfaceType()->GetMethodTable(), slot, &fFound); if (fFound) { UINT32 cInterfaceDuplicates; if (*prgInterfaceDispatchMapTypeIDs == NULL) { *prgInterfaceDispatchMapTypeIDs = new (GetStackingAllocator()) DispatchMapTypeID[bmtInterface->dwInterfaceMapSize]; } // Compute all TypeIDs for this interface (all duplicates in the interface map) ComputeDispatchMapTypeIDs( pEquivItfMT, pEquivItfSubst, *prgInterfaceDispatchMapTypeIDs, bmtInterface->dwInterfaceMapSize, &cInterfaceDuplicates); // There cannot be more duplicates than number of interfaces _ASSERTE(cInterfaceDuplicates <= bmtInterface->dwInterfaceMapSize); _ASSERTE(cInterfaceDuplicates > 0); // NOTE: This override does not cache the resulting MethodData object MethodTable::MethodDataWrapper hParentData; hParentData = MethodTable::GetMethodData( *prgInterfaceDispatchMapTypeIDs, cInterfaceDuplicates, pEquivItfMT, GetParentMethodTable()); SLOT_INDEX slotIndex = static_cast<SLOT_INDEX> (hParentData->GetImplSlotNumber(static_cast<UINT32>(otherMTSlot))); // Interface is implemented on parent abstract type and this particular slot was not implemented if (slotIndex == INVALID_SLOT_INDEX) { continue; } bmtMethodSlot & parentSlotImplementation = (*bmtParent->pSlotTable)[slotIndex]; bmtMethodHandle & parentImplementation = parentSlotImplementation.Impl(); // Check to verify that the equivalent slot on the equivalent interface actually matches the method // on the current interface. If not, then the slot is not a match, and we should search other interfaces // for an implementation of the method. if (!MethodSignature::SignaturesEquivalent(pCurItfMethod->GetMethodSignature(), parentImplementation.GetMethodSignature(), FALSE)) { continue; } itfSlotIt->Impl() = slotIndex; MethodDesc * pMD = hParentData->GetImplMethodDesc(static_cast<UINT32>(otherMTSlot)); DispatchMapTypeID dispatchMapTypeID = DispatchMapTypeID::InterfaceClassID(dwCurInterface); bmtVT->pDispatchMapBuilder->InsertMDMapping( dispatchMapTypeID, static_cast<UINT32>(itfSlotIt.CurrentIndex()), pMD, FALSE); } } } // MethodTableBuilder::PlaceMethodFromParentEquivalentInterfaceIntoInterfaceSlot #endif // FEATURE_COMINTEROP //******************************************************************************* // // Used by BuildMethodTable // // // If we are a class, then there may be some unplaced vtable methods (which are by definition // interface methods, otherwise they'd already have been placed). Place as many unplaced methods // as possible, in the order preferred by interfaces. However, do not allow any duplicates - once // a method has been placed, it cannot be placed again - if we are unable to neatly place an interface, // create duplicate slots for it starting at dwCurrentDuplicateVtableSlot. Fill out the interface // map for all interfaces as they are placed. // // If we are an interface, then all methods are already placed. Fill out the interface map for // interfaces as they are placed. // // BEHAVIOUR (based on Partition II: 11.2, not including MethodImpls) // C is current class, P is a parent class, I is the interface being implemented // // FOREACH interface I implemented by this class C // FOREACH method I::M // IF I is EXPLICITLY implemented by C // IF some method C::M matches I::M // USE C::M as implementation for I::M // ELIF we inherit a method P::M that matches I::M // USE P::M as implementation for I::M // ENDIF // ELSE // IF I::M lacks implementation // IF some method C::M matches I::M // USE C::M as implementation for I::M // ELIF we inherit a method P::M that matches I::M // USE P::M as implementation for I::M // ELIF I::M was implemented by the parent type with method Parent::M // USE Parent::M for the implementation of I::M // VSD does this by default if we really // // implemented I on the parent type, but // // equivalent interfaces need to make this // // explicit // ENDIF // ENDIF // ENDIF // ENDFOR // ENDFOR // VOID MethodTableBuilder::PlaceInterfaceMethods() { STANDARD_VM_CONTRACT; BOOL fParentInterface; DispatchMapTypeID * rgInterfaceDispatchMapTypeIDs = NULL; for (DWORD dwCurInterface = 0; dwCurInterface < bmtInterface->dwInterfaceMapSize; dwCurInterface++) { // Default to being implemented by the current class fParentInterface = FALSE; // Keep track of the current interface we are trying to place bmtInterfaceEntry * pCurItfEntry = &bmtInterface->pInterfaceMap[dwCurInterface]; bmtRTType * pCurItf = pCurItfEntry->GetInterfaceType(); MethodTable * pCurItfMT = pCurItf->GetMethodTable(); const Substitution * pCurItfSubst = &pCurItf->GetSubstitution(); // // There are three reasons why an interface could be in the implementation list // 1. Inherited from parent // 2. Explicitly declared in the implements list // 3. Implicitly declared through the implements list of an explicitly declared interface // // The reason these cases need to be distinguished is that an inherited interface that is // also explicitly redeclared in the implements list must be fully reimplemented using the // virtual methods of this type (thereby using matching methods in this type that may have // a different slot than an inherited method, but hidden it by name & sig); however all // implicitly redeclared interfaces should not be fully reimplemented if they were also // inherited from the parent. // // Example: // interface I1 : I2 // class A : I1 // class B : A, I1 // // In this example I1 must be fully reimplemented on B, but B can inherit the implementation // of I2. // if (pCurItfEntry->IsImplementedByParent()) { if (!pCurItfEntry->IsDeclaredOnType()) { fParentInterface = TRUE; } } bool fEquivalentInterfaceImplementedByParent = pCurItfEntry->IsImplementedByParent(); bool fEquivalentInterfaceDeclaredOnType = pCurItfEntry->IsDeclaredOnType(); if (pCurItfEntry->InEquivalenceSetWithMultipleEntries()) { for (DWORD dwEquivalentInterface = 0; dwEquivalentInterface < bmtInterface->dwInterfaceMapSize; dwEquivalentInterface++) { bmtInterfaceEntry * pEquivItfEntry = &bmtInterface->pInterfaceMap[dwEquivalentInterface]; if (pEquivItfEntry->GetInterfaceEquivalenceSet() != pCurItfEntry->GetInterfaceEquivalenceSet()) { // Not equivalent continue; } if (pEquivItfEntry->IsImplementedByParent()) { fEquivalentInterfaceImplementedByParent = true; } if (pEquivItfEntry->IsDeclaredOnType()) { fEquivalentInterfaceDeclaredOnType = true; } if (fEquivalentInterfaceDeclaredOnType && fEquivalentInterfaceImplementedByParent) break; } } bool fParentInterfaceEquivalent = fEquivalentInterfaceImplementedByParent && !fEquivalentInterfaceDeclaredOnType; CONSISTENCY_CHECK(!fParentInterfaceEquivalent || HasParent()); if (fParentInterfaceEquivalent) { // In the case the fParentInterface is TRUE, virtual overrides are enough and the interface // does not have to be explicitly (re)implemented. The only exception is if the parent is // abstract, in which case an inherited interface may not be fully implemented yet. // This is an optimization that allows us to skip the more expensive slot filling in below. // Note that the check here is for fParentInterface and not for fParentInterfaceEquivalent. // This is necessary as if the interface is not actually implemented on the parent type we will // need to fill in the slot table below. if (fParentInterface && !GetParentMethodTable()->IsAbstract()) { continue; } { // We will reach here in two cases. // 1 .The parent is abstract and the interface has been declared on the parent, // and possibly partially implemented, so we need to populate the // bmtInterfaceSlotImpl table for this interface with the implementation slot // information. // 2 .The the interface has not been declared on the parent, // but an equivalent interface has been. So we need to populate the // bmtInterfaceSlotImpl table for this interface with the implementation slot // information from one of the parent equivalent interfaces. We may or may not // find implementations for all of the methods on the interface on the parent type. // The parent type may or may not be abstract. MethodTable::MethodDataWrapper hParentData; CONSISTENCY_CHECK(CheckPointer(GetParentMethodTable())); if (rgInterfaceDispatchMapTypeIDs == NULL) { rgInterfaceDispatchMapTypeIDs = new (GetStackingAllocator()) DispatchMapTypeID[bmtInterface->dwInterfaceMapSize]; } if (pCurItfEntry->IsImplementedByParent()) { UINT32 cInterfaceDuplicates; // Compute all TypeIDs for this interface (all duplicates in the interface map) ComputeDispatchMapTypeIDs( pCurItfMT, pCurItfSubst, rgInterfaceDispatchMapTypeIDs, bmtInterface->dwInterfaceMapSize, &cInterfaceDuplicates); // There cannot be more duplicates than number of interfaces _ASSERTE(cInterfaceDuplicates <= bmtInterface->dwInterfaceMapSize); _ASSERTE(cInterfaceDuplicates > 0); //#InterfaceMap_UseParentInterfaceImplementations // We rely on the fact that interface map of parent type is subset of this type (incl. // duplicates), see code:#InterfaceMap_SupersetOfParent // NOTE: This override does not cache the resulting MethodData object hParentData = MethodTable::GetMethodData( rgInterfaceDispatchMapTypeIDs, cInterfaceDuplicates, pCurItfMT, GetParentMethodTable()); bmtInterfaceEntry::InterfaceSlotIterator itfSlotIt = pCurItfEntry->IterateInterfaceSlots(GetStackingAllocator()); for (; !itfSlotIt.AtEnd(); itfSlotIt.Next()) { itfSlotIt->Impl() = static_cast<SLOT_INDEX> (hParentData->GetImplSlotNumber(static_cast<UINT32>(itfSlotIt.CurrentIndex()))); } } #ifdef FEATURE_COMINTEROP else { // Iterate through the methods on the interface, and if they have a slot which was filled in // on an equivalent interface inherited from the parent fill in the appropriate slot. // This code path is only used when there is an implicit implementation of an interface // that was not implemented on a parent type, but there was an equivalent interface implemented // on a parent type. bmtInterfaceEntry::InterfaceSlotIterator itfSlotIt = pCurItfEntry->IterateInterfaceSlots(GetStackingAllocator()); for (; !itfSlotIt.AtEnd(); itfSlotIt.Next()) { PlaceMethodFromParentEquivalentInterfaceIntoInterfaceSlot(itfSlotIt, pCurItfEntry, &rgInterfaceDispatchMapTypeIDs, dwCurInterface); } } #endif // FEATURE_COMINTEROP } } // For each method declared in this interface bmtInterfaceEntry::InterfaceSlotIterator itfSlotIt = pCurItfEntry->IterateInterfaceSlots(GetStackingAllocator()); for (; !itfSlotIt.AtEnd(); ++itfSlotIt) { if (fParentInterfaceEquivalent) { if (itfSlotIt->Impl() != INVALID_SLOT_INDEX) { // If this interface is not explicitly declared on this class, and the interface slot has already been // given an implementation, then the only way to provide a new implementation is through an override // or through a MethodImpl. This is necessary in addition to the continue statement before this for // loop because an abstract interface can still have a partial implementation and it is necessary to // skip those interface slots that have already been satisfied. continue; } } BOOL fFoundMatchInBuildingClass = FALSE; bmtInterfaceSlotImpl & curItfSlot = *itfSlotIt; bmtRTMethod * pCurItfMethod = curItfSlot.Decl().AsRTMethod(); const MethodSignature & curItfMethodSig = pCurItfMethod->GetMethodSignature(); // // First, try to find the method explicitly declared in our class // DeclaredMethodIterator methIt(*this); while (methIt.Next()) { // Note that non-publics can legally be exposed via an interface, but only // through methodImpls. if (IsMdVirtual(methIt.Attrs()) && IsMdPublic(methIt.Attrs())) { #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(methIt.Name())) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", methIt.Name())); #endif // _DEBUG if (pCurItfMethod->GetMethodSignature().Equivalent(methIt->GetMethodSignature())) { fFoundMatchInBuildingClass = TRUE; curItfSlot.Impl() = methIt->GetSlotIndex(); DispatchMapTypeID dispatchMapTypeID = DispatchMapTypeID::InterfaceClassID(dwCurInterface); bmtVT->pDispatchMapBuilder->InsertMDMapping( dispatchMapTypeID, static_cast<UINT32>(itfSlotIt.CurrentIndex()), methIt->GetMethodDesc(), FALSE); break; } } } // end ... try to find method // // The ECMA CLR spec states that a type will inherit interface implementations // and that explicit re-declaration of an inherited interface will try to match // only newslot methods with methods in the re-declared interface (note that // this also takes care of matching against unsatisfied interface methods in // the abstract parent type scenario). // // So, if the interface was not declared on a parent and we haven't found a // newslot method declared on this type as a match, search all remaining // public virtual methods (including overrides declared on this type) for a // match. // // Please see bug VSW577403 and VSW593884 for details of this breaking change. // if (!fFoundMatchInBuildingClass && !fEquivalentInterfaceImplementedByParent) { if (HasParent()) { // Iterate backward through the parent's method table. This is important to // find the most derived method. bmtParentInfo::Iterator parentMethodIt = bmtParent->IterateSlots(); parentMethodIt.ResetToEnd(); while (parentMethodIt.Prev()) { bmtRTMethod * pCurParentMethod = parentMethodIt->Decl().AsRTMethod(); DWORD dwAttrs = pCurParentMethod->GetDeclAttrs(); if (!IsMdVirtual(dwAttrs) || !IsMdPublic(dwAttrs)) { // Only match mdPublic mdVirtual methods for interface implementation continue; } if (curItfMethodSig.Equivalent(pCurParentMethod->GetMethodSignature())) { fFoundMatchInBuildingClass = TRUE; curItfSlot.Impl() = pCurParentMethod->GetSlotIndex(); DispatchMapTypeID dispatchMapTypeID = DispatchMapTypeID::InterfaceClassID(dwCurInterface); bmtVT->pDispatchMapBuilder->InsertMDMapping( dispatchMapTypeID, static_cast<UINT32>(itfSlotIt.CurrentIndex()), pCurParentMethod->GetMethodDesc(), FALSE); break; } } // end ... try to find parent method } } // For type equivalent interfaces that had an equivalent interface implemented by their parent // and where the previous logic to fill in the method based on the virtual mappings on the type have // failed, we should attempt to get the mappings from the equivalent interfaces declared on parent types // of the type we are currently building. #ifdef FEATURE_COMINTEROP if (!fFoundMatchInBuildingClass && fEquivalentInterfaceImplementedByParent && !pCurItfEntry->IsImplementedByParent()) { PlaceMethodFromParentEquivalentInterfaceIntoInterfaceSlot(itfSlotIt, pCurItfEntry, &rgInterfaceDispatchMapTypeIDs, dwCurInterface); } #endif } } } // MethodTableBuilder::PlaceInterfaceMethods //******************************************************************************* // // Used by BuildMethodTable // // Place static fields // VOID MethodTableBuilder::PlaceRegularStaticFields() { STANDARD_VM_CONTRACT; DWORD i; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Placing statics for %s\n", this->GetDebugClassName())); // // Place gc refs and value types first, as they need to have handles created for them. // (Placing them together allows us to easily create the handles when Restoring the class, // and when initializing new DLS for the class.) // DWORD dwCumulativeStaticFieldPos = 0 ; DWORD dwCumulativeStaticGCFieldPos = 0; DWORD dwCumulativeStaticBoxFieldPos = 0; // We don't need to do any calculations for the gc refs or valuetypes, as they're // guaranteed to be aligned in ModuleStaticsInfo bmtFP->NumRegularStaticFieldsOfSize[LOG2_PTRSIZE] -= bmtFP->NumRegularStaticGCBoxedFields + bmtFP->NumRegularStaticGCPointerFields; // Place fields, largest first, padding so that each group is aligned to its natural size for (i = MAX_LOG2_PRIMITIVE_FIELD_SIZE; (signed int) i >= 0; i--) { // Fields of this size start at the next available location bmtFP->RegularStaticFieldStart[i] = dwCumulativeStaticFieldPos; dwCumulativeStaticFieldPos += (bmtFP->NumRegularStaticFieldsOfSize[i] << i); // Reset counters for the loop after this one bmtFP->NumRegularStaticFieldsOfSize[i] = 0; } if (dwCumulativeStaticFieldPos > FIELD_OFFSET_LAST_REAL_OFFSET) BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); DWORD dwNumHandleStatics = bmtFP->NumRegularStaticGCBoxedFields + bmtFP->NumRegularStaticGCPointerFields; if (!FitsIn<WORD>(dwNumHandleStatics)) { // Overflow. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } SetNumHandleRegularStatics(static_cast<WORD>(dwNumHandleStatics)); if (!FitsIn<WORD>(bmtFP->NumRegularStaticGCBoxedFields)) { // Overflow. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } SetNumBoxedRegularStatics(static_cast<WORD>(bmtFP->NumRegularStaticGCBoxedFields)); // Tell the module to give us the offsets we'll be using and commit space for us // if necessary DWORD dwNonGCOffset, dwGCOffset; GetModule()->GetOffsetsForRegularStaticData(bmtInternal->pType->GetTypeDefToken(), bmtProp->fDynamicStatics, GetNumHandleRegularStatics(), dwCumulativeStaticFieldPos, &dwGCOffset, &dwNonGCOffset); // Allocate boxed statics first ("x << LOG2_PTRSIZE" is equivalent to "x * sizeof(void *)") dwCumulativeStaticGCFieldPos = bmtFP->NumRegularStaticGCBoxedFields<<LOG2_PTRSIZE; FieldDesc *pFieldDescList = GetApproxFieldDescListRaw(); // Place static fields for (i = 0; i < bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields; i++) { FieldDesc * pCurField = &pFieldDescList[bmtEnumFields->dwNumInstanceFields+i]; DWORD dwLog2FieldSize = (DWORD)(DWORD_PTR&)pCurField->m_pMTOfEnclosingClass; // log2(field size) DWORD dwOffset = (DWORD) pCurField->m_dwOffset; // offset or type of field switch (dwOffset) { case FIELD_OFFSET_UNPLACED_GC_PTR: // Place GC reference static field pCurField->SetOffset(dwCumulativeStaticGCFieldPos + dwGCOffset); dwCumulativeStaticGCFieldPos += 1<<LOG2_PTRSIZE; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Field placed at GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; case FIELD_OFFSET_VALUE_CLASS: // Place boxed GC reference static field pCurField->SetOffset(dwCumulativeStaticBoxFieldPos + dwGCOffset); dwCumulativeStaticBoxFieldPos += 1<<LOG2_PTRSIZE; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Field placed at GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; case FIELD_OFFSET_UNPLACED: // Place non-GC static field pCurField->SetOffset(bmtFP->RegularStaticFieldStart[dwLog2FieldSize] + (bmtFP->NumRegularStaticFieldsOfSize[dwLog2FieldSize] << dwLog2FieldSize) + dwNonGCOffset); bmtFP->NumRegularStaticFieldsOfSize[dwLog2FieldSize]++; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Field placed at non GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; default: // RVA field break; } LOG((LF_CLASSLOADER, LL_INFO1000000, "Offset of %s: %i\n", pCurField->m_debugName, pCurField->GetOffset_NoLogging())); } if (bmtProp->fDynamicStatics) { _ASSERTE(dwNonGCOffset == 0 || // no statics at all dwNonGCOffset == OFFSETOF__DomainLocalModule__NormalDynamicEntry__m_pDataBlob); // We need space to point to the GC statics bmtProp->dwNonGCRegularStaticFieldBytes = dwCumulativeStaticFieldPos; } else { bmtProp->dwNonGCRegularStaticFieldBytes = 0; // Non dynamics shouldnt be using this } LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Static field bytes needed (0 is normal for non dynamic case)%i\n", bmtProp->dwNonGCRegularStaticFieldBytes)); } VOID MethodTableBuilder::PlaceThreadStaticFields() { STANDARD_VM_CONTRACT; DWORD i; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Placing ThreadStatics for %s\n", this->GetDebugClassName())); // // Place gc refs and value types first, as they need to have handles created for them. // (Placing them together allows us to easily create the handles when Restoring the class, // and when initializing new DLS for the class.) // DWORD dwCumulativeStaticFieldPos = 0 ; DWORD dwCumulativeStaticGCFieldPos = 0; DWORD dwCumulativeStaticBoxFieldPos = 0; // We don't need to do any calculations for the gc refs or valuetypes, as they're // guaranteed to be aligned in ModuleStaticsInfo bmtFP->NumThreadStaticFieldsOfSize[LOG2_PTRSIZE] -= bmtFP->NumThreadStaticGCBoxedFields + bmtFP->NumThreadStaticGCPointerFields; // Place fields, largest first, padding so that each group is aligned to its natural size for (i = MAX_LOG2_PRIMITIVE_FIELD_SIZE; (signed int) i >= 0; i--) { // Fields of this size start at the next available location bmtFP->ThreadStaticFieldStart[i] = dwCumulativeStaticFieldPos; dwCumulativeStaticFieldPos += (bmtFP->NumThreadStaticFieldsOfSize[i] << i); // Reset counters for the loop after this one bmtFP->NumThreadStaticFieldsOfSize[i] = 0; } if (dwCumulativeStaticFieldPos > FIELD_OFFSET_LAST_REAL_OFFSET) BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); DWORD dwNumHandleStatics = bmtFP->NumThreadStaticGCBoxedFields + bmtFP->NumThreadStaticGCPointerFields; if (!FitsIn<WORD>(dwNumHandleStatics)) { // Overflow. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } SetNumHandleThreadStatics(static_cast<WORD>(dwNumHandleStatics)); if (!FitsIn<WORD>(bmtFP->NumThreadStaticGCBoxedFields)) { // Overflow. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } SetNumBoxedThreadStatics(static_cast<WORD>(bmtFP->NumThreadStaticGCBoxedFields)); // Tell the module to give us the offsets we'll be using and commit space for us // if necessary DWORD dwNonGCOffset, dwGCOffset; GetModule()->GetOffsetsForThreadStaticData(bmtInternal->pType->GetTypeDefToken(), bmtProp->fDynamicStatics, GetNumHandleThreadStatics(), dwCumulativeStaticFieldPos, &dwGCOffset, &dwNonGCOffset); // Allocate boxed statics first ("x << LOG2_PTRSIZE" is equivalent to "x * sizeof(void *)") dwCumulativeStaticGCFieldPos = bmtFP->NumThreadStaticGCBoxedFields<<LOG2_PTRSIZE; FieldDesc *pFieldDescList = GetHalfBakedClass()->GetFieldDescList(); // Place static fields for (i = 0; i < bmtEnumFields->dwNumThreadStaticFields; i++) { FieldDesc * pCurField = &pFieldDescList[bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields + i]; DWORD dwLog2FieldSize = (DWORD)(DWORD_PTR&)pCurField->m_pMTOfEnclosingClass; // log2(field size) DWORD dwOffset = (DWORD) pCurField->m_dwOffset; // offset or type of field switch (dwOffset) { case FIELD_OFFSET_UNPLACED_GC_PTR: // Place GC reference static field pCurField->SetOffset(dwCumulativeStaticGCFieldPos + dwGCOffset); dwCumulativeStaticGCFieldPos += 1<<LOG2_PTRSIZE; LOG((LF_CLASSLOADER, LL_INFO10000, "THREAD STATICS: Field placed at GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; case FIELD_OFFSET_VALUE_CLASS: // Place boxed GC reference static field pCurField->SetOffset(dwCumulativeStaticBoxFieldPos + dwGCOffset); dwCumulativeStaticBoxFieldPos += 1<<LOG2_PTRSIZE; LOG((LF_CLASSLOADER, LL_INFO10000, "THREAD STATICS: Field placed at GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; case FIELD_OFFSET_UNPLACED: // Place non-GC static field pCurField->SetOffset(bmtFP->ThreadStaticFieldStart[dwLog2FieldSize] + (bmtFP->NumThreadStaticFieldsOfSize[dwLog2FieldSize] << dwLog2FieldSize) + dwNonGCOffset); bmtFP->NumThreadStaticFieldsOfSize[dwLog2FieldSize]++; LOG((LF_CLASSLOADER, LL_INFO10000, "THREAD STATICS: Field placed at non GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; default: // RVA field break; } LOG((LF_CLASSLOADER, LL_INFO1000000, "Offset of %s: %i\n", pCurField->m_debugName, pCurField->GetOffset_NoLogging())); } if (bmtProp->fDynamicStatics) { _ASSERTE(dwNonGCOffset == 0 || // no thread statics at all dwNonGCOffset == OFFSETOF__ThreadLocalModule__DynamicEntry__m_pDataBlob); // We need space to point to the GC statics bmtProp->dwNonGCThreadStaticFieldBytes = dwCumulativeStaticFieldPos; } else { bmtProp->dwNonGCThreadStaticFieldBytes = 0; // Non dynamics shouldnt be using this } LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: ThreadStatic field bytes needed (0 is normal for non dynamic case)%i\n", bmtProp->dwNonGCThreadStaticFieldBytes)); } //******************************************************************************* // // Used by BuildMethodTable // // Place instance fields // VOID MethodTableBuilder::PlaceInstanceFields(MethodTable ** pByValueClassCache) { STANDARD_VM_CONTRACT; DWORD i; //=============================================================== // BEGIN: Place instance fields //=============================================================== FieldDesc *pFieldDescList = GetHalfBakedClass()->GetFieldDescList(); DWORD dwCumulativeInstanceFieldPos; // Instance fields start right after the parent dwCumulativeInstanceFieldPos = HasParent() ? GetParentMethodTable()->GetNumInstanceFieldBytes() : 0; DWORD dwOffsetBias = 0; #ifdef FEATURE_64BIT_ALIGNMENT // On platforms where the alignment of 64-bit primitives is a requirement (but we're not guaranteed // this implicitly by the GC) field offset 0 is actually not 8-byte aligned in reference classes. // That's because all such platforms are currently 32-bit and the 4-byte MethodTable pointer pushes us // out of alignment. Ideally we'd solve this by arranging to have the object header allocated at a // 4-byte offset from an 8-byte boundary, but this is difficult to achieve for objects allocated on // the large object heap (which actually requires headers to be 8-byte aligned). // // So we adjust dwCumulativeInstanceFieldPos to account for the MethodTable* and our alignment // calculations will automatically adjust and add padding as necessary. We need to remove this // adjustment when setting the field offset in the field desc, however, since the rest of the system // expects that value to not include the MethodTable*. // // This happens only for reference classes: value type field 0 really does lie at offset 0 for unboxed // value types. We deal with boxed value types by allocating their headers mis-aligned (luckily for us // value types can never get large enough to allocate on the LOH). if (!IsValueClass()) { dwOffsetBias = TARGET_POINTER_SIZE; dwCumulativeInstanceFieldPos += dwOffsetBias; } #endif // FEATURE_64BIT_ALIGNMENT #ifdef FEATURE_READYTORUN if (NeedsAlignedBaseOffset()) { // READYTORUN: FUTURE: Use the minimum possible alignment, reduce padding when inheriting within same bubble DWORD dwAlignment = DATA_ALIGNMENT; #ifdef FEATURE_64BIT_ALIGNMENT if (GetHalfBakedClass()->IsAlign8Candidate()) dwAlignment = 8; #endif dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, dwAlignment); } #endif // FEATURE_READYTORUN // place small fields first if the parent have a number of field bytes that is not aligned if (!IS_ALIGNED(dwCumulativeInstanceFieldPos, DATA_ALIGNMENT)) { for (i = 0; i < MAX_LOG2_PRIMITIVE_FIELD_SIZE; i++) { DWORD j; if (IS_ALIGNED(dwCumulativeInstanceFieldPos, size_t{ 1 } << (i + 1))) continue; // check whether there are any bigger fields for (j = i + 1; j <= MAX_LOG2_PRIMITIVE_FIELD_SIZE; j++) { if (bmtFP->NumInstanceFieldsOfSize[j] != 0) break; } // nothing to gain if there are no bigger fields // (the subsequent loop will place fields from large to small fields) if (j > MAX_LOG2_PRIMITIVE_FIELD_SIZE) break; // check whether there are any small enough fields for (j = i; (signed int) j >= 0; j--) { if (bmtFP->NumInstanceFieldsOfSize[j] != 0) break; // TODO: since we will refuse to place GC references we should filter them out here. // otherwise the "back-filling" process stops completely. // (PlaceInstanceFields) // the following code would fix the issue (a replacement for the code above this comment): // if (bmtFP->NumInstanceFieldsOfSize[j] != 0 && // (j != LOG2SLOT || bmtFP->NumInstanceFieldsOfSize[j] > bmtFP->NumInstanceGCPointerFields)) // { // break; // } } // nothing to play with if there are no smaller fields if ((signed int) j < 0) break; // eventually go back and use the smaller field as filling i = j; CONSISTENCY_CHECK(bmtFP->NumInstanceFieldsOfSize[i] != 0); j = bmtFP->FirstInstanceFieldOfSize[i]; // Avoid reordering of gcfields if (i == LOG2SLOT) { for ( ; j < bmtEnumFields->dwNumInstanceFields; j++) { if ((pFieldDescList[j].GetOffset_NoLogging() == FIELD_OFFSET_UNPLACED) && ((DWORD_PTR&)pFieldDescList[j].m_pMTOfEnclosingClass == (size_t)i)) break; } // out of luck - can't reorder gc fields if (j >= bmtEnumFields->dwNumInstanceFields) break; } // Place the field dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, size_t{ 1 } << i); pFieldDescList[j].SetOffset(dwCumulativeInstanceFieldPos - dwOffsetBias); dwCumulativeInstanceFieldPos += (1 << i); // We've placed this field now, so there is now one less of this size field to place if (--bmtFP->NumInstanceFieldsOfSize[i] == 0) continue; // We are done in this round if we haven't picked the first field if (bmtFP->FirstInstanceFieldOfSize[i] != j) continue; // Update FirstInstanceFieldOfSize[i] to point to the next such field for (j = j+1; j < bmtEnumFields->dwNumInstanceFields; j++) { // The log of the field size is stored in the method table if ((DWORD_PTR&)pFieldDescList[j].m_pMTOfEnclosingClass == (size_t)i) { bmtFP->FirstInstanceFieldOfSize[i] = j; break; } } _ASSERTE(j < bmtEnumFields->dwNumInstanceFields); } } // Place fields, largest first for (i = MAX_LOG2_PRIMITIVE_FIELD_SIZE; (signed int) i >= 0; i--) { if (bmtFP->NumInstanceFieldsOfSize[i] == 0) continue; // Align instance fields if we aren't already #if defined(TARGET_X86) && defined(UNIX_X86_ABI) DWORD dwDataAlignment = min(1 << i, DATA_ALIGNMENT); #else DWORD dwDataAlignment = 1 << i; #endif dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, dwDataAlignment); // Fields of this size start at the next available location bmtFP->InstanceFieldStart[i] = dwCumulativeInstanceFieldPos; dwCumulativeInstanceFieldPos += (bmtFP->NumInstanceFieldsOfSize[i] << i); // Reset counters for the loop after this one bmtFP->NumInstanceFieldsOfSize[i] = 0; } // Make corrections to reserve space for GC Pointer Fields // // The GC Pointers simply take up the top part of the region associated // with fields of that size (GC pointers can be 64 bit on certain systems) if (bmtFP->NumInstanceGCPointerFields) { bmtFP->GCPointerFieldStart = bmtFP->InstanceFieldStart[LOG2SLOT] - dwOffsetBias; bmtFP->InstanceFieldStart[LOG2SLOT] = bmtFP->InstanceFieldStart[LOG2SLOT] + (bmtFP->NumInstanceGCPointerFields << LOG2SLOT); bmtFP->NumInstanceGCPointerFields = 0; // reset to zero here, counts up as pointer slots are assigned below } // Place instance fields - be careful not to place any already-placed fields for (i = 0; i < bmtEnumFields->dwNumInstanceFields; i++) { DWORD dwFieldSize = (DWORD)(DWORD_PTR&)pFieldDescList[i].m_pMTOfEnclosingClass; DWORD dwOffset; dwOffset = pFieldDescList[i].GetOffset_NoLogging(); // Don't place already-placed fields if ((dwOffset == FIELD_OFFSET_UNPLACED || dwOffset == FIELD_OFFSET_UNPLACED_GC_PTR || dwOffset == FIELD_OFFSET_VALUE_CLASS)) { if (dwOffset == FIELD_OFFSET_UNPLACED_GC_PTR) { pFieldDescList[i].SetOffset(bmtFP->GCPointerFieldStart + (bmtFP->NumInstanceGCPointerFields << LOG2SLOT)); bmtFP->NumInstanceGCPointerFields++; } else if (pFieldDescList[i].IsByValue() == FALSE) // it's a regular field { pFieldDescList[i].SetOffset(bmtFP->InstanceFieldStart[dwFieldSize] + (bmtFP->NumInstanceFieldsOfSize[dwFieldSize] << dwFieldSize) - dwOffsetBias); bmtFP->NumInstanceFieldsOfSize[dwFieldSize]++; } } } DWORD dwNumGCPointerSeries; // Save Number of pointer series if (bmtFP->NumInstanceGCPointerFields) dwNumGCPointerSeries = bmtParent->NumParentPointerSeries + 1; else dwNumGCPointerSeries = bmtParent->NumParentPointerSeries; bool containsGCPointers = bmtFP->NumInstanceGCPointerFields > 0; // Place by value class fields last // Update the number of GC pointer series // Calculate largest alignment requirement int largestAlignmentRequirement = 1; for (i = 0; i < bmtEnumFields->dwNumInstanceFields; i++) { if (pFieldDescList[i].IsByValue()) { MethodTable * pByValueMT = pByValueClassCache[i]; #if !defined(TARGET_64BIT) && (DATA_ALIGNMENT > 4) if (pByValueMT->GetNumInstanceFieldBytes() >= DATA_ALIGNMENT) { dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, DATA_ALIGNMENT); largestAlignmentRequirement = max(largestAlignmentRequirement, DATA_ALIGNMENT); } else #elif defined(FEATURE_64BIT_ALIGNMENT) if (pByValueMT->RequiresAlign8()) { dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, 8); largestAlignmentRequirement = max(largestAlignmentRequirement, 8); } else #endif // FEATURE_64BIT_ALIGNMENT if (pByValueMT->ContainsPointers()) { // this field type has GC pointers in it, which need to be pointer-size aligned // so do this if it has not been done already dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, TARGET_POINTER_SIZE); largestAlignmentRequirement = max(largestAlignmentRequirement, TARGET_POINTER_SIZE); containsGCPointers = true; } else { int fieldAlignmentRequirement = pByValueMT->GetFieldAlignmentRequirement(); largestAlignmentRequirement = max(largestAlignmentRequirement, fieldAlignmentRequirement); dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, fieldAlignmentRequirement); } pFieldDescList[i].SetOffset(dwCumulativeInstanceFieldPos - dwOffsetBias); dwCumulativeInstanceFieldPos += pByValueMT->GetNumInstanceFieldBytes(); if (pByValueMT->ContainsPointers()) { // Add pointer series for by-value classes dwNumGCPointerSeries += (DWORD)CGCDesc::GetCGCDescFromMT(pByValueMT)->GetNumSeries(); } } else { // non-value-type fields always require pointer alignment // This does not account for types that are marked IsAlign8Candidate due to 8-byte fields // but that is explicitly handled when we calculate the final alignment for the type. largestAlignmentRequirement = max(largestAlignmentRequirement, TARGET_POINTER_SIZE); } } // Can be unaligned DWORD dwNumInstanceFieldBytes = dwCumulativeInstanceFieldPos - dwOffsetBias; if (IsValueClass()) { // Like C++ we enforce that there can be no 0 length structures. // Thus for a value class with no fields, we 'pad' the length to be 1 if (dwNumInstanceFieldBytes == 0) dwNumInstanceFieldBytes = 1; // The JITs like to copy full machine words, // so if the size is bigger than a void* round it up to minAlign // and if the size is smaller than void* round it up to next power of two unsigned minAlign; #ifdef FEATURE_64BIT_ALIGNMENT if (GetHalfBakedClass()->IsAlign8Candidate()) { minAlign = 8; } else #endif // FEATURE_64BIT_ALIGNMENT if (dwNumInstanceFieldBytes > TARGET_POINTER_SIZE) { minAlign = containsGCPointers ? TARGET_POINTER_SIZE : (unsigned)largestAlignmentRequirement; } else { minAlign = 1; while (minAlign < dwNumInstanceFieldBytes) minAlign *= 2; } if (minAlign != min(dwNumInstanceFieldBytes, TARGET_POINTER_SIZE)) { EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); GetHalfBakedClass()->GetOptionalFields()->m_requiredFieldAlignment = (BYTE)minAlign; GetHalfBakedClass()->SetHasCustomFieldAlignment(); } dwNumInstanceFieldBytes = (dwNumInstanceFieldBytes + minAlign-1) & ~(minAlign-1); } if (dwNumInstanceFieldBytes > FIELD_OFFSET_LAST_REAL_OFFSET) { BuildMethodTableThrowException(IDS_CLASSLOAD_FIELDTOOLARGE); } bmtFP->NumInstanceFieldBytes = dwNumInstanceFieldBytes; bmtFP->NumGCPointerSeries = dwNumGCPointerSeries; //=============================================================== // END: Place instance fields //=============================================================== } //******************************************************************************* // this accesses the field size which is temporarily stored in m_pMTOfEnclosingClass // during class loading. Don't use any other time DWORD MethodTableBuilder::GetFieldSize(FieldDesc *pFD) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; // We should only be calling this while this class is being built. _ASSERTE(GetHalfBakedMethodTable() == 0); BAD_FORMAT_NOTHROW_ASSERT(! pFD->IsByValue() || HasExplicitFieldOffsetLayout()); if (pFD->IsByValue()) return (DWORD)(DWORD_PTR&)(pFD->m_pMTOfEnclosingClass); return (1 << (DWORD)(DWORD_PTR&)(pFD->m_pMTOfEnclosingClass)); } #ifdef UNIX_AMD64_ABI // checks whether the struct is enregisterable. void MethodTableBuilder::SystemVAmd64CheckForPassStructInRegister() { STANDARD_VM_CONTRACT; // This method should be called for valuetypes only _ASSERTE(IsValueClass()); TypeHandle th(GetHalfBakedMethodTable()); if (th.IsTypeDesc()) { // Not an enregisterable managed structure. return; } DWORD totalStructSize = bmtFP->NumInstanceFieldBytes; // If num of bytes for the fields is bigger than CLR_SYSTEMV_MAX_STRUCT_BYTES_TO_PASS_IN_REGISTERS // pass through stack if (totalStructSize > CLR_SYSTEMV_MAX_STRUCT_BYTES_TO_PASS_IN_REGISTERS) { LOG((LF_JIT, LL_EVERYTHING, "**** SystemVAmd64CheckForPassStructInRegister: struct %s is too big to pass in registers (%d bytes)\n", this->GetDebugClassName(), totalStructSize)); return; } const bool useNativeLayout = false; // Iterate through the fields and make sure they meet requirements to pass in registers SystemVStructRegisterPassingHelper helper((unsigned int)totalStructSize); if (GetHalfBakedMethodTable()->ClassifyEightBytes(&helper, 0, 0, useNativeLayout)) { // All the above tests passed. It's registers passed struct! GetHalfBakedMethodTable()->SetRegPassedStruct(); StoreEightByteClassification(&helper); } } // Store the eightbyte classification into the EEClass void MethodTableBuilder::StoreEightByteClassification(SystemVStructRegisterPassingHelper* helper) { EEClass* eeClass = GetHalfBakedMethodTable()->GetClass(); LoaderAllocator* pAllocator = MethodTableBuilder::GetLoaderAllocator(); AllocMemTracker* pamTracker = MethodTableBuilder::GetMemTracker(); EnsureOptionalFieldsAreAllocated(eeClass, pamTracker, pAllocator->GetLowFrequencyHeap()); eeClass->SetEightByteClassification(helper->eightByteCount, helper->eightByteClassifications, helper->eightByteSizes); } #endif // UNIX_AMD64_ABI //--------------------------------------------------------------------------------------- // // make sure that no object fields are overlapped incorrectly and define the // GC pointer series for the class. We are assuming that this class will always be laid out within // its enclosing class by the compiler in such a way that offset 0 will be the correct alignment // for object ref fields so we don't need to try to align it // VOID MethodTableBuilder::HandleExplicitLayout( MethodTable ** pByValueClassCache) { STANDARD_VM_CONTRACT; // Instance slice size is the total size of an instance, and is calculated as // the field whose offset and size add to the greatest number. UINT instanceSliceSize = 0; UINT i; for (i = 0; i < bmtMetaData->cFields; i++) { FieldDesc *pFD = bmtMFDescs->ppFieldDescList[i]; if (pFD == NULL || pFD->IsStatic()) { continue; } UINT fieldExtent = 0; if (!ClrSafeInt<UINT>::addition(pFD->GetOffset_NoLogging(), GetFieldSize(pFD), fieldExtent)) { BuildMethodTableThrowException(COR_E_OVERFLOW); } if (fieldExtent > instanceSliceSize) { instanceSliceSize = fieldExtent; } } CQuickBytes qb; PREFIX_ASSUME(sizeof(BYTE) == 1); BYTE *pFieldLayout = (BYTE*) qb.AllocThrows(instanceSliceSize * sizeof(BYTE)); for (i=0; i < instanceSliceSize; i++) { pFieldLayout[i] = empty; } // Go through each field and look for invalid layout. // (note that we are more permissive than what Ecma allows. We only disallow the minimum set necessary to // close security holes.) // // This is what we implement: // // 1. Verify that every OREF or BYREF is on a valid alignment. // 2. Verify that OREFs only overlap with other OREFs. // 3. Verify that BYREFs only overlap with other BYREFs. // 4. If an OREF does overlap with another OREF, the class is marked unverifiable. // 5. If a BYREF does overlap with another BYREF, the class is marked unverifiable. // 6. If an overlap of any kind occurs, the class will be marked NotTightlyPacked (affects ValueType.Equals()). // char emptyObject[TARGET_POINTER_SIZE]; char isObject[TARGET_POINTER_SIZE]; char isByRef[TARGET_POINTER_SIZE]; for (i = 0; i < TARGET_POINTER_SIZE; i++) { emptyObject[i] = empty; isObject[i] = oref; isByRef[i] = byref; } ExplicitClassTrust explicitClassTrust; UINT valueClassCacheIndex = ((UINT)(-1)); UINT badOffset = 0; FieldDesc * pFD = NULL; for (i = 0; i < bmtMetaData->cFields; i++) { // Note about this loop body: // // This loop is coded to make it as hard as possible to allow a field to be trusted when it shouldn't. // // Every path in this loop body must lead to an explicit decision as to whether the field nonoverlaps, // overlaps in a verifiable fashion, overlaps in a nonverifiable fashion or overlaps in a completely illegal fashion. // // It must call fieldTrust.SetTrust() with the appropriate result. If you don't call it, fieldTrust's destructor // will intentionally default to kNone and mark the entire class illegal. // // If your result is anything but kNone (class is illegal), you must also explicitly "continue" the loop. // There is a "break" at end of this loop body that will abort the loop if you don't do this. And // if you don't finish iterating through all the fields, this function will automatically mark the entire // class illegal. This rule is a vestige of an earlier version of this function. // This object's dtor will aggregate the trust decision for this field into the trust level for the class as a whole. ExplicitFieldTrustHolder fieldTrust(&explicitClassTrust); pFD = bmtMFDescs->ppFieldDescList[i]; if (pFD == NULL || pFD->IsStatic()) { fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); continue; } // "i" indexes all fields, valueClassCacheIndex indexes non-static fields only. Don't get them confused! valueClassCacheIndex++; CorElementType type = pFD->GetFieldType(); if (CorTypeInfo::IsObjRef(type) || CorTypeInfo::IsByRef(type)) { // Check that the field is pointer aligned if ((pFD->GetOffset_NoLogging() & ((ULONG)TARGET_POINTER_SIZE - 1)) != 0) { badOffset = pFD->GetOffset_NoLogging(); fieldTrust.SetTrust(ExplicitFieldTrust::kNone); // If we got here, OREF or BYREF field was not pointer aligned. THROW. break; } // Determine which tag type we are working with. bmtFieldLayoutTag tag; SIZE_T tagBlockSize; void* tagBlock; if (CorTypeInfo::IsObjRef(type)) { tagBlockSize = sizeof(isObject); tagBlock = (void*)isObject; tag = oref; } else { _ASSERTE(CorTypeInfo::IsByRef(type)); tagBlockSize = sizeof(isByRef); tagBlock = (void*)isByRef; tag = byref; } // Check if there is overlap with its own tag type if (memcmp((void *)&pFieldLayout[pFD->GetOffset_NoLogging()], tagBlock, tagBlockSize) == 0) { // If we got here, there is tag type overlap. We permit this but mark the class unverifiable. fieldTrust.SetTrust(ExplicitFieldTrust::kLegal); continue; } // check if typed layout is empty at this point if (memcmp((void *)&pFieldLayout[pFD->GetOffset_NoLogging()], (void *)emptyObject, sizeof(emptyObject)) == 0) { // If we got here, this tag type is overlapping no other fields (yet). // Record that these bytes now contain the current tag type. memset((void *)&pFieldLayout[pFD->GetOffset_NoLogging()], tag, tagBlockSize); fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); continue; } // If we got here, the tag overlaps something else. THROW. badOffset = pFD->GetOffset_NoLogging(); fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; } else { UINT fieldSize; if (!pFD->IsByValue()) { fieldSize = GetFieldSize(pFD); } else { MethodTable *pByValueMT = pByValueClassCache[valueClassCacheIndex]; if (pByValueMT->IsByRefLike() || pByValueMT->ContainsPointers()) { if ((pFD->GetOffset_NoLogging() & ((ULONG)TARGET_POINTER_SIZE - 1)) != 0) { // If we got here, then a ByRefLike valuetype or a valuetype containing an OREF was misaligned. badOffset = pFD->GetOffset_NoLogging(); fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; } ExplicitFieldTrust::TrustLevel trust = CheckValueClassLayout(pByValueMT, &pFieldLayout[pFD->GetOffset_NoLogging()]); fieldTrust.SetTrust(trust); if (trust != ExplicitFieldTrust::kNone) { continue; } else { // If we got here, then an OREF/BYREF inside the valuetype illegally overlapped a non-OREF field. THROW. badOffset = pFD->GetOffset_NoLogging(); break; } break; } // no pointers so fall through to do standard checking fieldSize = pByValueMT->GetNumInstanceFieldBytes(); } // If we got here, we are trying to place a non-OREF (or a valuetype composed of non-OREFs.) // Look for any orefs or byrefs under this field BYTE *loc = NULL; BYTE* currOffset = pFieldLayout + pFD->GetOffset_NoLogging(); BYTE* endOffset = currOffset + fieldSize; for (; currOffset < endOffset; ++currOffset) { if (*currOffset == oref || *currOffset == byref) { loc = currOffset; break; } } if (loc == NULL) { // If we have a nonoref in the range then we are doing an overlay if(memchr((void*)&pFieldLayout[pFD->GetOffset_NoLogging()], nonoref, fieldSize)) { fieldTrust.SetTrust(ExplicitFieldTrust::kVerifiable); } else { fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); } memset((void*)&pFieldLayout[pFD->GetOffset_NoLogging()], nonoref, fieldSize); continue; } // If we got here, we tried to place a non-OREF (or a valuetype composed of non-OREFs) // on top of an OREF/BYREF. THROW. badOffset = (UINT)(loc - pFieldLayout); fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; // anything else is an error } // We have to comment out this assert because otherwise, the compiler refuses to build because the _ASSERT is unreachable // (Thanks for nothing, compiler, that's what the assert is trying to enforce!) But the intent of the assert is correct. //_ASSERTE(!"You aren't supposed to be here. Some path inside the loop body did not execute an explicit break or continue."); // If we got here, some code above failed to execute an explicit "break" or "continue." This is a bug! To be safe, // we will put a catchall "break" here which will cause the typeload to abort (albeit with a probably misleading // error message.) break; } // for(;;) // We only break out of the loop above if we detected an error. if (i < bmtMetaData->cFields || !explicitClassTrust.IsLegal()) { ThrowFieldLayoutError(GetCl(), GetModule(), badOffset, IDS_CLASSLOAD_EXPLICIT_LAYOUT); } if (!explicitClassTrust.IsNonOverLayed()) { SetHasOverLayedFields(); } FindPointerSeriesExplicit(instanceSliceSize, pFieldLayout); // Fixup the offset to include parent as current offsets are relative to instance slice // Could do this earlier, but it's just easier to assume instance relative for most // of the earlier calculations // Instance fields start right after the parent S_UINT32 dwInstanceSliceOffset = S_UINT32(HasParent() ? GetParentMethodTable()->GetNumInstanceFieldBytes() : 0); if (bmtGCSeries->numSeries != 0) { dwInstanceSliceOffset.AlignUp(TARGET_POINTER_SIZE); } if (dwInstanceSliceOffset.IsOverflow()) { // addition overflow or cast truncation BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } S_UINT32 numInstanceFieldBytes = dwInstanceSliceOffset + S_UINT32(instanceSliceSize); if (IsValueClass()) { ULONG clstotalsize; if (FAILED(GetMDImport()->GetClassTotalSize(GetCl(), &clstotalsize))) { clstotalsize = 0; } if (clstotalsize != 0) { // size must be large enough to accomodate layout. If not, we use the layout size instead. if (!numInstanceFieldBytes.IsOverflow() && clstotalsize >= numInstanceFieldBytes.Value()) { numInstanceFieldBytes = S_UINT32(clstotalsize); } } else { // align up to the alignment requirements of the members of this value type. numInstanceFieldBytes.AlignUp(GetLayoutInfo()->m_ManagedLargestAlignmentRequirementOfAllMembers); if (numInstanceFieldBytes.IsOverflow()) { // addition overflow or cast truncation BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } } if (!numInstanceFieldBytes.IsOverflow() && numInstanceFieldBytes.Value() == 0) { // If we calculate a 0-byte size here, we should have also calculated a 0-byte size // in the initial layout algorithm. _ASSERTE(GetLayoutInfo()->IsZeroSized()); numInstanceFieldBytes = S_UINT32(1); } } // The GC requires that all valuetypes containing orefs be sized to a multiple of TARGET_POINTER_SIZE. if (bmtGCSeries->numSeries != 0) { numInstanceFieldBytes.AlignUp(TARGET_POINTER_SIZE); } if (numInstanceFieldBytes.IsOverflow()) { // addition overflow or cast truncation BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // Set the total size bmtFP->NumInstanceFieldBytes = numInstanceFieldBytes.Value(); for (i = 0; i < bmtMetaData->cFields; i++) { FieldDesc * pTempFD = bmtMFDescs->ppFieldDescList[i]; if ((pTempFD == NULL) || pTempFD->IsStatic()) { continue; } HRESULT hr = pTempFD->SetOffset(pTempFD->GetOffset_NoLogging() + dwInstanceSliceOffset.Value()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } } } // MethodTableBuilder::HandleExplicitLayout //******************************************************************************* // make sure that no object fields are overlapped incorrectly, returns the trust level /*static*/ ExplicitFieldTrust::TrustLevel MethodTableBuilder::CheckValueClassLayout(MethodTable * pMT, BYTE *pFieldLayout) { STANDARD_VM_CONTRACT; // ByRefLike types need to be checked for ByRef fields. if (pMT->IsByRefLike()) return CheckByRefLikeValueClassLayout(pMT, pFieldLayout); // This method assumes there is a GC desc associated with the MethodTable. _ASSERTE(pMT->ContainsPointers()); // Build a layout of the value class (vc). Don't know the sizes of all the fields easily, but // do know (a) vc is already consistent so don't need to check it's overlaps and // (b) size and location of all objectrefs. So build it by setting all non-oref // then fill in the orefs later UINT fieldSize = pMT->GetNumInstanceFieldBytes(); CQuickBytes qb; BYTE *vcLayout = (BYTE*) qb.AllocThrows(fieldSize * sizeof(BYTE)); memset((void*)vcLayout, nonoref, fieldSize); // use pointer series to locate the orefs CGCDesc* map = CGCDesc::GetCGCDescFromMT(pMT); CGCDescSeries *pSeries = map->GetLowestSeries(); for (SIZE_T j = 0; j < map->GetNumSeries(); j++) { CONSISTENCY_CHECK(pSeries <= map->GetHighestSeries()); memset((void*)&vcLayout[pSeries->GetSeriesOffset() - OBJECT_SIZE], oref, pSeries->GetSeriesSize() + pMT->GetBaseSize()); pSeries++; } ExplicitClassTrust explicitClassTrust; for (UINT i=0; i < fieldSize; i++) { ExplicitFieldTrustHolder fieldTrust(&explicitClassTrust); if (vcLayout[i] == oref) { switch (pFieldLayout[i]) { // oref <--> empty case empty: pFieldLayout[i] = oref; fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); break; // oref <--> nonoref case nonoref: fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; // oref <--> oref case oref: fieldTrust.SetTrust(ExplicitFieldTrust::kLegal); break; default: _ASSERTE(!"Can't get here."); } } else if (vcLayout[i] == nonoref) { switch (pFieldLayout[i]) { // nonoref <--> empty case empty: pFieldLayout[i] = nonoref; fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); break; // nonoref <--> nonoref case nonoref: fieldTrust.SetTrust(ExplicitFieldTrust::kVerifiable); break; // nonoref <--> oref case oref: fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; default: _ASSERTE(!"Can't get here."); } } else { _ASSERTE(!"Can't get here."); } } return explicitClassTrust.GetTrustLevel(); } //******************************************************************************* // make sure that no byref/object fields are overlapped, returns the trust level /*static*/ ExplicitFieldTrust::TrustLevel MethodTableBuilder::CheckByRefLikeValueClassLayout(MethodTable * pMT, BYTE *pFieldLayout) { STANDARD_VM_CONTRACT; _ASSERTE(pMT->IsByRefLike()); // ByReference<T> is an indication for a byref field, treat it as such. if (pMT->HasSameTypeDefAs(g_pByReferenceClass)) return MarkTagType(pFieldLayout, TARGET_POINTER_SIZE, byref); ExplicitClassTrust explicitClassTrust; ExplicitFieldTrust::TrustLevel trust; ApproxFieldDescIterator fieldIterator(pMT, ApproxFieldDescIterator::INSTANCE_FIELDS); for (FieldDesc *pFD = fieldIterator.Next(); pFD != NULL; pFD = fieldIterator.Next()) { ExplicitFieldTrustHolder fieldTrust(&explicitClassTrust); int fieldStartIndex = pFD->GetOffset(); if (pFD->GetFieldType() == ELEMENT_TYPE_VALUETYPE) { MethodTable *pFieldMT = pFD->GetApproxFieldTypeHandleThrowing().AsMethodTable(); trust = CheckValueClassLayout(pFieldMT, &pFieldLayout[fieldStartIndex]); } else if (pFD->IsObjRef()) { _ASSERTE(fieldStartIndex % TARGET_POINTER_SIZE == 0); trust = MarkTagType(&pFieldLayout[fieldStartIndex], TARGET_POINTER_SIZE, oref); } else if (pFD->IsByRef()) { _ASSERTE(fieldStartIndex % TARGET_POINTER_SIZE == 0); trust = MarkTagType(&pFieldLayout[fieldStartIndex], TARGET_POINTER_SIZE, byref); } else { trust = MarkTagType(&pFieldLayout[fieldStartIndex], pFD->GetSize(), nonoref); } fieldTrust.SetTrust(trust); // Some invalid overlap was detected. if (trust == ExplicitFieldTrust::kNone) break; } return explicitClassTrust.GetTrustLevel(); } //******************************************************************************* // Set the field's tag type and/or detect invalid overlap /*static*/ ExplicitFieldTrust::TrustLevel MethodTableBuilder::MarkTagType(BYTE* field, SIZE_T fieldSize, bmtFieldLayoutTag tagType) { STANDARD_VM_CONTRACT; _ASSERTE(field != NULL); _ASSERTE(fieldSize != 0); _ASSERTE(tagType != empty); ExplicitFieldTrust::TrustLevel trust = ExplicitFieldTrust::kMaxTrust; for (SIZE_T i = 0; i < fieldSize; ++i) { if (field[i] == empty) { // Nothing set for overlap, mark as requested. field[i] = tagType; } else if (field[i] == tagType) { // Only a overlapped nonoref tag is verifiable, all others are simply legal. ExplicitFieldTrust::TrustLevel overlapTrust = tagType == nonoref ? ExplicitFieldTrust::kVerifiable : ExplicitFieldTrust::kLegal; // The ExplicitFieldTrust enum is ranked in descending order of trust. // We always take the computed minimum trust level. trust = min(trust, overlapTrust); } else { // A non-equal overlap was detected. There is no trust for the type. trust = ExplicitFieldTrust::kNone; break; } } return trust; } //******************************************************************************* void MethodTableBuilder::FindPointerSeriesExplicit(UINT instanceSliceSize, BYTE *pFieldLayout) { STANDARD_VM_CONTRACT; // Allocate a structure to track the series. We know that the worst case is a // ref-non-ref-non, and since only ref series are recorded and non-ref series // are skipped, the max number of series is total instance size / 2 / sizeof(ref). // But watch out for the case where we have e.g. an instanceSlizeSize of 4. DWORD sz = (instanceSliceSize + (2 * TARGET_POINTER_SIZE) - 1); bmtGCSeries->pSeries = new bmtGCSeriesInfo::Series[sz/2/ TARGET_POINTER_SIZE]; BYTE *loc = pFieldLayout; BYTE *layoutEnd = pFieldLayout + instanceSliceSize; while (loc < layoutEnd) { // Find the next OREF entry. loc = (BYTE*)memchr((void*)loc, oref, layoutEnd-loc); if (loc == NULL) { break; } // Find the next non-OREF entry BYTE *cur = loc; while(cur < layoutEnd && *cur == oref) { cur++; } // so we have a GC series at loc for cur-loc bytes bmtGCSeries->pSeries[bmtGCSeries->numSeries].offset = (DWORD)(loc - pFieldLayout); bmtGCSeries->pSeries[bmtGCSeries->numSeries].len = (DWORD)(cur - loc); CONSISTENCY_CHECK(IS_ALIGNED(cur - loc, TARGET_POINTER_SIZE)); bmtGCSeries->numSeries++; loc = cur; } // Calculate the total series count including the parent, if a parent exists. bmtFP->NumGCPointerSeries = bmtParent->NumParentPointerSeries + bmtGCSeries->numSeries; } //******************************************************************************* VOID MethodTableBuilder::HandleGCForExplicitLayout() { STANDARD_VM_CONTRACT; MethodTable *pMT = GetHalfBakedMethodTable(); if (bmtFP->NumGCPointerSeries != 0) { pMT->SetContainsPointers(); // Copy the pointer series map from the parent CGCDesc::Init( (PVOID) pMT, bmtFP->NumGCPointerSeries ); if (bmtParent->NumParentPointerSeries != 0) { size_t ParentGCSize = CGCDesc::ComputeSize(bmtParent->NumParentPointerSeries); memcpy( (PVOID) (((BYTE*) pMT) - ParentGCSize), (PVOID) (((BYTE*) GetParentMethodTable()) - ParentGCSize), ParentGCSize - sizeof(size_t) // sizeof(size_t) is the NumSeries count ); } UINT32 dwInstanceSliceOffset = AlignUp(HasParent() ? GetParentMethodTable()->GetNumInstanceFieldBytes() : 0, TARGET_POINTER_SIZE); // Build the pointer series map for this pointers in this instance CGCDescSeries *pSeries = ((CGCDesc*)pMT)->GetLowestSeries(); for (UINT i=0; i < bmtGCSeries->numSeries; i++) { // See gcdesc.h for an explanation of why we adjust by subtracting BaseSize BAD_FORMAT_NOTHROW_ASSERT(pSeries <= CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries()); pSeries->SetSeriesSize( (size_t) bmtGCSeries->pSeries[i].len - (size_t) pMT->GetBaseSize() ); pSeries->SetSeriesOffset(bmtGCSeries->pSeries[i].offset + OBJECT_SIZE + dwInstanceSliceOffset); pSeries++; } // Adjust the inherited series - since the base size has increased by "# new field instance bytes", we need to // subtract that from all the series (since the series always has BaseSize subtracted for it - see gcdesc.h) CGCDescSeries *pHighest = CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries(); while (pSeries <= pHighest) { CONSISTENCY_CHECK(CheckPointer(GetParentMethodTable())); pSeries->SetSeriesSize( pSeries->GetSeriesSize() - ((size_t) pMT->GetBaseSize() - (size_t) GetParentMethodTable()->GetBaseSize()) ); pSeries++; } } delete [] bmtGCSeries->pSeries; bmtGCSeries->pSeries = NULL; } // MethodTableBuilder::HandleGCForExplicitLayout static BOOL InsertMethodTable( MethodTable *pNew, MethodTable **pArray, DWORD nArraySizeMax, DWORD *pNumAssigned) { LIMITED_METHOD_CONTRACT; for (DWORD j = 0; j < (*pNumAssigned); j++) { if (pNew == pArray[j]) { #ifdef _DEBUG LOG((LF_CLASSLOADER, LL_INFO1000, "GENERICS: Found duplicate interface %s (%p) at position %d out of %d\n", pNew->GetDebugClassName(), pNew, j, *pNumAssigned)); #endif return pNew->HasInstantiation(); // bail out - we found a duplicate instantiated interface } else { #ifdef _DEBUG LOG((LF_CLASSLOADER, LL_INFO1000, " GENERICS: InsertMethodTable ignored interface %s (%p) at position %d out of %d\n", pArray[j]->GetDebugClassName(), pArray[j], j, *pNumAssigned)); #endif } } if (*pNumAssigned >= nArraySizeMax) { LOG((LF_CLASSLOADER, LL_INFO1000, "GENERICS: Found interface %s (%p) exceeding size %d of interface array\n", pNew->GetDebugClassName(), pNew, nArraySizeMax)); return TRUE; } LOG((LF_CLASSLOADER, LL_INFO1000, "GENERICS: Inserting interface %s (%p) at position %d\n", pNew->GetDebugClassName(), pNew, *pNumAssigned)); pArray[(*pNumAssigned)++] = pNew; return FALSE; } // InsertMethodTable //******************************************************************************* // -------------------------------------------------------------------------------------------- // Copy virtual slots inherited from parent: // // In types created at runtime, inherited virtual slots are initialized using approximate parent // during method table building. This method will update them based on the exact parent. // In types loaded from NGen image, inherited virtual slots from cross-module parents are not // initialized. This method will initialize them based on the actually loaded exact parent // if necessary. /* static */ void MethodTableBuilder::CopyExactParentSlots(MethodTable *pMT, MethodTable *pApproxParentMT) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pMT)); } CONTRACTL_END; DWORD nParentVirtuals = pMT->GetNumParentVirtuals(); if (nParentVirtuals == 0) return; _ASSERTE(nParentVirtuals == pApproxParentMT->GetNumVirtuals()); // // Update all inherited virtual slots to match exact parent // if (!pMT->IsCanonicalMethodTable()) { // // Copy all slots for non-canonical methodtables to avoid touching methoddescs. // MethodTable * pCanonMT = pMT->GetCanonicalMethodTable(); // Do not write into vtable chunks shared with parent. It would introduce race // with code:MethodDesc::SetStableEntryPointInterlocked. // // Non-canonical method tables either share everything or nothing so it is sufficient to check // just the first indirection to detect sharing. if (pMT->GetVtableIndirections()[0] != pCanonMT->GetVtableIndirections()[0]) { MethodTable::MethodDataWrapper hCanonMTData(MethodTable::GetMethodData(pCanonMT, FALSE)); for (DWORD i = 0; i < nParentVirtuals; i++) { pMT->CopySlotFrom(i, hCanonMTData, pCanonMT); } } } else { MethodTable::MethodDataWrapper hMTData(MethodTable::GetMethodData(pMT, FALSE)); MethodTable * pParentMT = pMT->GetParentMethodTable(); MethodTable::MethodDataWrapper hParentMTData(MethodTable::GetMethodData(pParentMT, FALSE)); for (DWORD i = 0; i < nParentVirtuals; i++) { // fix up wrongly-inherited method descriptors MethodDesc* pMD = hMTData->GetImplMethodDesc(i); CONSISTENCY_CHECK(CheckPointer(pMD)); CONSISTENCY_CHECK(pMD == pMT->GetMethodDescForSlot(i)); if (pMD->GetMethodTable() == pMT) continue; // We need to re-inherit this slot from the exact parent. DWORD indirectionIndex = MethodTable::GetIndexOfVtableIndirection(i); if (pMT->GetVtableIndirections()[indirectionIndex] == pApproxParentMT->GetVtableIndirections()[indirectionIndex]) { // The slot lives in a chunk shared from the approximate parent MT // If so, we need to change to share the chunk from the exact parent MT _ASSERTE(MethodTable::CanShareVtableChunksFrom(pParentMT, pMT->GetLoaderModule())); pMT->GetVtableIndirections()[indirectionIndex] = pParentMT->GetVtableIndirections()[indirectionIndex]; i = MethodTable::GetEndSlotForVtableIndirection(indirectionIndex, nParentVirtuals) - 1; continue; } // The slot lives in an unshared chunk. We need to update the slot contents pMT->CopySlotFrom(i, hParentMTData, pParentMT); } } } // MethodTableBuilder::CopyExactParentSlots bool InstantiationIsAllTypeVariables(const Instantiation &inst) { for (auto i = inst.GetNumArgs(); i > 0;) { TypeHandle th = inst[--i]; if (!th.IsGenericVariable()) return false; } return true; } //******************************************************************************* /* static */ void MethodTableBuilder::LoadExactInterfaceMap(MethodTable *pMT) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pMT)); } CONTRACTL_END; BOOL hasInstantiatedInterfaces = FALSE; MethodTable::InterfaceMapIterator it = pMT->IterateInterfaceMap(); while (it.Next()) { if (it.GetInterfaceApprox()->HasInstantiation()) { hasInstantiatedInterfaces = TRUE; break; } } // If we have some instantiated interfaces, then we have lots more work to do... // In the worst case we have to use the metadata to // (a) load the exact interfaces and determine the order in which they // go. We do those by re-running the interface layout algorithm // and using metadata-comparisons to place interfaces in the list. // (b) do a check to see if any ambiguity in the interface dispatch map is introduced // by the instantiation // See code:#LoadExactInterfaceMap_Algorithm2 // // However, we can do something simpler: we just use // the loaded interface method tables to determine ordering. This can be done // if there are no duplicate instantiated interfaces in the interface // set. // See code:#LoadExactInterfaceMap_Algorithm1. if (!hasInstantiatedInterfaces) { return; } HRESULT hr; TypeHandle thisTH(pMT); SigTypeContext typeContext(thisTH); MethodTable *pParentMT = pMT->GetParentMethodTable(); //#LoadExactInterfaceMap_Algorithm1 // Exact interface instantiation loading TECHNIQUE 1. // (a) For interfaces inherited from an instantiated parent class, just copy down from exact parent // (b) Grab newly declared interfaces by loading and then copying down all their inherited parents // (c) But check for any exact duplicates along the way // (d) If no duplicates then we can use the computed interface map we've created // (e) If duplicates found then use the slow metadata-based technique code:#LoadExactInterfaceMap_Algorithm2 DWORD nInterfacesCount = pMT->GetNumInterfaces(); MethodTable **pExactMTs = (MethodTable**) _alloca(sizeof(MethodTable *) * nInterfacesCount); BOOL duplicates; bool retry = false; // Always use exact loading behavior with classes or shared generics, as they have to deal with inheritance, and the // inexact matching logic for classes would be more complex to write. // Also always use the exact loading behavior with any generic that contains generic variables, as the open type is used // to represent a type instantiated over its own generic variables, and the special marker type is currently the open type // and we make this case distinguishable by simply disallowing the optimization in those cases. bool retryWithExactInterfaces = !pMT->IsValueType() || pMT->IsSharedByGenericInstantiations() || pMT->ContainsGenericVariables(); DWORD nAssigned = 0; do { nAssigned = 0; retry = false; duplicates = false; if (pParentMT != NULL) { MethodTable::InterfaceMapIterator parentIt = pParentMT->IterateInterfaceMap(); while (parentIt.Next()) { duplicates |= InsertMethodTable(parentIt.GetInterface(pParentMT, CLASS_LOAD_EXACTPARENTS), pExactMTs, nInterfacesCount, &nAssigned); } } InterfaceImplEnum ie(pMT->GetModule(), pMT->GetCl(), NULL); while ((hr = ie.Next()) == S_OK) { MethodTable *pNewIntfMT = ClassLoader::LoadTypeDefOrRefOrSpecThrowing(pMT->GetModule(), ie.CurrentToken(), &typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_EXACTPARENTS, TRUE, (const Substitution*)0, retryWithExactInterfaces ? NULL : pMT).GetMethodTable(); bool uninstGenericCase = !retryWithExactInterfaces && pNewIntfMT->IsSpecialMarkerTypeForGenericCasting(); duplicates |= InsertMethodTable(pNewIntfMT, pExactMTs, nInterfacesCount, &nAssigned); // We have a special algorithm for interface maps in CoreLib, which doesn't expand interfaces, and assumes no ambiguous // duplicates. Code related to this is marked with #SpecialCorelibInterfaceExpansionAlgorithm if (!(pMT->GetModule()->IsSystem() && pMT->IsValueType())) { MethodTable::InterfaceMapIterator intIt = pNewIntfMT->IterateInterfaceMap(); while (intIt.Next()) { MethodTable *pItfPossiblyApprox = intIt.GetInterfaceApprox(); if (uninstGenericCase && pItfPossiblyApprox->HasInstantiation() && pItfPossiblyApprox->ContainsGenericVariables()) { // We allow a limited set of interface generic shapes with type variables. In particular, we require the // instantiations to be exactly simple type variables, and to have a relatively small number of generic arguments // so that the fallback instantiating logic works efficiently if (InstantiationIsAllTypeVariables(pItfPossiblyApprox->GetInstantiation()) && pItfPossiblyApprox->GetInstantiation().GetNumArgs() <= MethodTable::MaxGenericParametersForSpecialMarkerType) { pItfPossiblyApprox = ClassLoader::LoadTypeDefThrowing(pItfPossiblyApprox->GetModule(), pItfPossiblyApprox->GetCl(), ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef, 0, CLASS_LOAD_EXACTPARENTS).AsMethodTable(); } else { retry = true; break; } } duplicates |= InsertMethodTable(intIt.GetInterface(pNewIntfMT, CLASS_LOAD_EXACTPARENTS), pExactMTs, nInterfacesCount, &nAssigned); } } if (retry) break; } if (retry) { retryWithExactInterfaces = true; } } while (retry); if (FAILED(hr)) { pMT->GetAssembly()->ThrowTypeLoadException(pMT->GetMDImport(), pMT->GetCl(), IDS_CLASSLOAD_BADFORMAT); } #ifdef _DEBUG if (!pMT->GetModule()->IsSystem()) { duplicates |= CLRConfig::GetConfigValue(CLRConfig::INTERNAL_AlwaysUseMetadataInterfaceMapLayout); } //#InjectInterfaceDuplicates_LoadExactInterfaceMap // If we are injecting duplicates also for non-generic interfaces in check builds, we have to use // algorithm code:#LoadExactInterfaceMap_Algorithm2. // Has to be in sync with code:#InjectInterfaceDuplicates_Main. duplicates |= pMT->Debug_HasInjectedInterfaceDuplicates(); #endif // We have a special algorithm for interface maps in CoreLib, which doesn't expand interfaces, and assumes no ambiguous // duplicates. Code related to this is marked with #SpecialCorelibInterfaceExpansionAlgorithm _ASSERTE(!duplicates || !(pMT->GetModule()->IsSystem() && pMT->IsValueType())); CONSISTENCY_CHECK(duplicates || (nAssigned == pMT->GetNumInterfaces())); if (duplicates) { //#LoadExactInterfaceMap_Algorithm2 // Exact interface instantiation loading TECHNIQUE 2 - The exact instantiation has caused some duplicates to // appear in the interface map! This may not be an error: if the duplicates // were ones that arose because because of inheritance from // a parent type then we accept that. For example // class C<T> : I<T> // class D<T> : C<T>, I<string> // is acceptable even when loading D<string>. Note that in such a case // there will be two entries for I<string> in the final interface map for D<string>. // For dispatch the mappings in D take precedence. // // However we consider it an error if there is real ambiguity within // the interface definitions within the one class, e.g. // class E<T> : I<T>, I<string> // In this situation it is not defined how to dispatch calls to I<string>: would // we use the bindings for I<T> or I<string>? // // Because we may had duplicates the interface map we created above may not // be the correct one: for example for D<string> above we would have computed // a map with only one entry. This is incorrect: an exact instantiation's interface // map must have entries that match the ordering of the interface map in the generic case // (this is because code:#InterfaceMap_SupersetOfParent). // // So, in order to determine how to place the interfaces we need go back to // the metadata. We also do this to check if the presence of duplicates // has caused any potential ambiguity, i.e. the E<string> case above. // First we do a GetCheckpoint for the thread-based allocator. ExpandExactInheritedInterfaces allocates substitution chains // on the thread allocator rather than on the stack. ACQUIRE_STACKING_ALLOCATOR(pStackingAllocator); // *********************************************************** // ****** This must be consistent with code:ExpandApproxInterface etc. ******* // // The correlation to ExpandApproxInterfaces etc. simply drops out by how we // traverse interfaces. // *********************************************************** bmtExactInterfaceInfo bmtExactInterface; bmtExactInterface.pInterfaceSubstitution = new (pStackingAllocator) Substitution[pMT->GetNumInterfaces()]; bmtExactInterface.pExactMTs = pExactMTs; bmtExactInterface.nAssigned = 0; bmtExactInterface.typeContext = typeContext; // Do the interfaces inherited from a parent class if ((pParentMT != NULL) && (pParentMT->GetNumInterfaces() > 0)) { Substitution * pParentSubstForTypeLoad = new (pStackingAllocator) Substitution( pMT->GetSubstitutionForParent(NULL)); Substitution * pParentSubstForComparing = new (pStackingAllocator) Substitution( pMT->GetSubstitutionForParent(NULL)); ExpandExactInheritedInterfaces( &bmtExactInterface, pParentMT, pParentSubstForTypeLoad, pParentSubstForComparing, pStackingAllocator, retryWithExactInterfaces ? NULL : pMT); } #ifdef _DEBUG //#ExactInterfaceMap_SupersetOfParent // Check that parent's interface map is subset of this interface map // See code:#InterfaceMap_SupersetOfParent { _ASSERTE(pParentMT->GetNumInterfaces() == bmtExactInterface.nAssigned); MethodTable::InterfaceMapIterator parentInterfacesIterator = pParentMT->IterateInterfaceMap(); UINT32 nInterfaceIndex = 0; while (parentInterfacesIterator.Next()) { if (pMT->IsSharedByGenericInstantiations()) { // The type is a canonical instantiation (contains _Canon) // The interface instantiations of parent can be different (see // code:#InterfaceMap_CanonicalSupersetOfParent), therefore we cannot compare // MethodTables _ASSERTE(parentInterfacesIterator.GetInterfaceInfo()->GetApproxMethodTable(pParentMT->GetLoaderModule())->HasSameTypeDefAs( bmtExactInterface.pExactMTs[nInterfaceIndex])); } else { // It is not canonical instantiation, we can compare MethodTables _ASSERTE(parentInterfacesIterator.GetInterfaceApprox() == bmtExactInterface.pExactMTs[nInterfaceIndex]); } nInterfaceIndex++; } _ASSERTE(nInterfaceIndex == bmtExactInterface.nAssigned); } #endif //_DEBUG // If there are any __Canon instances in the type argument list, then we defer the // ambiguity checking until an exact instantiation. // As the C# compiler won't allow an ambiguous generic interface to be generated, we don't // need this logic for CoreLib. We can't use the sanity checks flag here, as these ambiguities // are specified to the exact instantiation in use, not just whether or not normal the type is // well formed in metadata. if (!pMT->IsSharedByGenericInstantiations() && !pMT->GetModule()->IsSystem()) { // There are no __Canon types in the instantiation, so do ambiguity check. bmtInterfaceAmbiguityCheckInfo bmtCheckInfo; bmtCheckInfo.pMT = pMT; bmtCheckInfo.ppInterfaceSubstitutionChains = new (pStackingAllocator) Substitution *[pMT->GetNumInterfaces()]; bmtCheckInfo.ppExactDeclaredInterfaces = new (pStackingAllocator) MethodTable *[pMT->GetNumInterfaces()]; bmtCheckInfo.nAssigned = 0; bmtCheckInfo.typeContext = typeContext; MethodTableBuilder::InterfacesAmbiguityCheck(&bmtCheckInfo, pMT->GetModule(), pMT->GetCl(), NULL, pStackingAllocator); } // OK, there is no ambiguity amongst the instantiated interfaces declared on this class. MethodTableBuilder::ExpandExactDeclaredInterfaces( &bmtExactInterface, pMT->GetModule(), pMT->GetCl(), NULL, NULL, pStackingAllocator, retryWithExactInterfaces ? NULL : pMT COMMA_INDEBUG(pMT)); CONSISTENCY_CHECK(bmtExactInterface.nAssigned == pMT->GetNumInterfaces()); // We cannot process interface duplicates on types with __Canon. The duplicates are processed on // exact types only if (!pMT->IsSharedByGenericInstantiations()) { // Process all pairs of duplicates in the interface map: // i.e. If there are 3 duplicates of the same interface at indexes: i1, i2 and i3, then // process pairs of indexes [i1,i2], [i1,i3] and [i2,i3]. // - Update 'declared on type' flag for those interfaces which duplicate is 'declared on type' // - Check interface method implementation ambiguity code:#DuplicateInterface_MethodAmbiguity for (DWORD nOriginalIndex = 0; nOriginalIndex < nInterfacesCount; nOriginalIndex++) { // Search for duplicates further in the interface map for (DWORD nDuplicateIndex = nOriginalIndex + 1; nDuplicateIndex < nInterfacesCount; nDuplicateIndex++) { if (pExactMTs[nOriginalIndex] != pExactMTs[nDuplicateIndex]) { // It's not a duplicate of original interface, skip it continue; } // We found a duplicate // Set 'declared on type' flag if either original or duplicate interface is // 'declared on type' if (pMT->IsInterfaceDeclaredOnClass(nOriginalIndex) || pMT->IsInterfaceDeclaredOnClass(nDuplicateIndex)) { // // Note that both checks are needed: // A<T> : I<T> // B<T,U> : A<T>, I<U> // C<T,U> : B<T,U>, I<T> // Reimplements interface from A<T> // After code:BuildMethodTableThrowing algorithm, this will happen: // B<int,int> will have interface map similar to B<T,U>: // I<int> ... not 'declared on type' // I<int> ... 'declared on type' // C<int,int> will have interface map similar to C<T,U>: // I<int> ... 'declared on type' // I<int> ... not 'declared on type' // pMT->SetInterfaceDeclaredOnClass(nOriginalIndex); pMT->SetInterfaceDeclaredOnClass(nDuplicateIndex); } //#DuplicateInterface_MethodAmbiguity // // In the ideal world we would now check for interface method implementation // ambiguity in the instantiation, but that would be a technical breaking change // (against 2.0 RTM/SP1). // Therefore we ALLOW when interface method is implemented twice through this // original and duplicate interface. // // This ambiguity pattern is therefore ALLOWED (can be expressed only in IL, not in C#): // I<T> // void Print(T t); // A<T> : I<T> // abstract class // B<T,U> : A<T>, I<U> // void Print(T t) { ... } // void Print(U u) { ... } // Now B<int,int> has 2 implementations of I<int>.Print(int), while B<int,char> is // fine. Therefore an instantiation can introduce ambiguity. #if 0 // Removing this code for now as it is a technical breaking change (against CLR 2.0 RTM/SP1). // We might decide later that we want to take this breaking change. // // Note that dispatch map entries are sorted by interface index and then interface // method slot index. // DispatchMapTypeID originalTypeID = DispatchMapTypeID::InterfaceClassID(nOriginalIndex); DispatchMap::EncodedMapIterator originalIt(pMT); // Find first entry for original interface while (originalIt.IsValid()) { DispatchMapEntry *pEntry = originalIt.Entry(); if (pEntry->GetTypeID().ToUINT32() >= originalTypeID.ToUINT32()) { // Found the place where original interface entries should be (dispatch map is // sorted) break; } originalIt.Next(); } DispatchMapTypeID duplicateTypeID = DispatchMapTypeID::InterfaceClassID(nDuplicateIndex); DispatchMap::EncodedMapIterator duplicateIt(pMT); // Find first entry for duplicate interface while (duplicateIt.IsValid()) { DispatchMapEntry *pEntry = duplicateIt.Entry(); if (pEntry->GetTypeID().ToUINT32() >= duplicateTypeID.ToUINT32()) { // Found the place where original interface entries should be (dispatch map is // sorted) break; } duplicateIt.Next(); } // Compare original and duplicate interface entries in the dispatch map if they contain // different implementation for the same interface method for (;;) { if (!originalIt.IsValid() || !duplicateIt.IsValid()) { // We reached end of one dispatch map iterator break; } DispatchMapEntry *pOriginalEntry = originalIt.Entry(); if (pOriginalEntry->GetTypeID().ToUINT32() != originalTypeID.ToUINT32()) { // We reached behind original interface entries break; } DispatchMapEntry *pDuplicateEntry = duplicateIt.Entry(); if (pDuplicateEntry->GetTypeID().ToUINT32() != duplicateTypeID.ToUINT32()) { // We reached behind duplicate interface entries break; } if (pOriginalEntry->GetSlotNumber() == pDuplicateEntry->GetSlotNumber()) { // Found duplicate implementation of interface method if (pOriginalEntry->GetTargetSlotNumber() != pDuplicateEntry->GetTargetSlotNumber()) { // Implementation of the slots is different bmtErrorInfo bmtError; bmtError.pModule = pMT->GetModule(); bmtError.cl = pMT->GetCl(); bmtError.resIDWhy = IDS_CLASSLOAD_MI_MULTIPLEOVERRIDES; bmtError.szMethodNameForError = NULL; bmtError.pThrowable = NULL; MethodDesc *pMD = pMT->GetMethodDescForSlot(pDuplicateEntry->GetTargetSlotNumber()); bmtError.dMethodDefInError = pMD->GetMemberDef(); BuildMethodTableThrowException(COR_E_TYPELOAD, bmtError); } // The method is implemented by the same slot on both interfaces (original and // duplicate) // Process next dispatch map entry originalIt.Next(); duplicateIt.Next(); continue; } // Move iterator representing smaller interface method slot index (the dispatch map // is sorted by slot indexes) if (pOriginalEntry->GetSlotNumber() < pDuplicateEntry->GetSlotNumber()) { originalIt.Next(); continue; } _ASSERTE(pOriginalEntry->GetSlotNumber() > pDuplicateEntry->GetSlotNumber()); duplicateIt.Next(); } #endif //0 } // All duplicates of this original interface were processed } // All pairs of duplicates in the interface map are processed } } // Duplicates in the interface map are resolved // OK, if we've got this far then pExactMTs should now hold the array of exact instantiated interfaces. MethodTable::InterfaceMapIterator thisIt = pMT->IterateInterfaceMap(); DWORD i = 0; while (thisIt.Next()) { #ifdef _DEBUG MethodTable *pNewMT = pExactMTs[i]; CONSISTENCY_CHECK(thisIt.HasSameTypeDefAs(pNewMT)); #endif // _DEBUG thisIt.SetInterface(pExactMTs[i]); i++; } } // MethodTableBuilder::LoadExactInterfaceMap //******************************************************************************* void MethodTableBuilder::ExpandExactInheritedInterfaces( bmtExactInterfaceInfo * bmtInfo, MethodTable * pMT, const Substitution * pSubstForTypeLoad, Substitution * pSubstForComparing, StackingAllocator * pStackingAllocator, MethodTable * pMTInterfaceMapOwner) { STANDARD_VM_CONTRACT; MethodTable *pParentMT = pMT->GetParentMethodTable(); // Backup type's substitution chain for comparing interfaces Substitution substForComparingBackup = *pSubstForComparing; // Make type an open type for comparing interfaces *pSubstForComparing = Substitution(); if (pParentMT) { // Chain parent's substitution for exact type load Substitution * pParentSubstForTypeLoad = new (pStackingAllocator) Substitution( pMT->GetSubstitutionForParent(pSubstForTypeLoad)); // Chain parent's substitution for comparing interfaces (note that this type is temporarily // considered as open type) Substitution * pParentSubstForComparing = new (pStackingAllocator) Substitution( pMT->GetSubstitutionForParent(pSubstForComparing)); ExpandExactInheritedInterfaces( bmtInfo, pParentMT, pParentSubstForTypeLoad, pParentSubstForComparing, pStackingAllocator, pMTInterfaceMapOwner); } ExpandExactDeclaredInterfaces( bmtInfo, pMT->GetModule(), pMT->GetCl(), pSubstForTypeLoad, pSubstForComparing, pStackingAllocator, pMTInterfaceMapOwner COMMA_INDEBUG(pMT)); // Restore type's subsitution chain for comparing interfaces *pSubstForComparing = substForComparingBackup; } // MethodTableBuilder::ExpandExactInheritedInterfaces //******************************************************************************* /* static */ void MethodTableBuilder::ExpandExactDeclaredInterfaces( bmtExactInterfaceInfo * bmtInfo, Module * pModule, mdToken typeDef, const Substitution * pSubstForTypeLoad, Substitution * pSubstForComparing, StackingAllocator * pStackingAllocator, MethodTable * pMTInterfaceMapOwner COMMA_INDEBUG(MethodTable * dbg_pClassMT)) { STANDARD_VM_CONTRACT; HRESULT hr; InterfaceImplEnum ie(pModule, typeDef, NULL); while ((hr = ie.Next()) == S_OK) { MethodTable * pInterface = ClassLoader::LoadTypeDefOrRefOrSpecThrowing( pModule, ie.CurrentToken(), &bmtInfo->typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_EXACTPARENTS, TRUE, pSubstForTypeLoad, pMTInterfaceMapOwner).GetMethodTable(); Substitution ifaceSubstForTypeLoad(ie.CurrentToken(), pModule, pSubstForTypeLoad); Substitution ifaceSubstForComparing(ie.CurrentToken(), pModule, pSubstForComparing); ExpandExactInterface( bmtInfo, pInterface, &ifaceSubstForTypeLoad, &ifaceSubstForComparing, pStackingAllocator, pMTInterfaceMapOwner COMMA_INDEBUG(dbg_pClassMT)); } if (FAILED(hr)) { pModule->GetAssembly()->ThrowTypeLoadException(pModule->GetMDImport(), typeDef, IDS_CLASSLOAD_BADFORMAT); } } // MethodTableBuilder::ExpandExactDeclaredInterfaces //******************************************************************************* void MethodTableBuilder::ExpandExactInterface( bmtExactInterfaceInfo * bmtInfo, MethodTable * pIntf, const Substitution * pSubstForTypeLoad_OnStack, // Allocated on stack! const Substitution * pSubstForComparing_OnStack, // Allocated on stack! StackingAllocator * pStackingAllocator, MethodTable * pMTInterfaceMapOwner COMMA_INDEBUG(MethodTable * dbg_pClassMT)) { STANDARD_VM_CONTRACT; // ****** This must be consistent with code:MethodTableBuilder::ExpandApproxInterface ****** // Is it already present according to the "generic" layout of the interfaces. // Note we use exactly the same algorithm as when we // determined the layout of the interface map for the "generic" version of the class. for (DWORD i = 0; i < bmtInfo->nAssigned; i++) { // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions(bmtInfo->pExactMTs[i], pIntf, &bmtInfo->pInterfaceSubstitution[i], pSubstForComparing_OnStack, &newVisited)) { #ifdef _DEBUG //#InjectInterfaceDuplicates_ExactInterfaces // We will inject duplicate interfaces in check builds. // Has to be in sync with code:#InjectInterfaceDuplicates_Main. if (dbg_pClassMT->Debug_HasInjectedInterfaceDuplicates()) { // Just pretend we didn't find this match break; } #endif //_DEBUG return; // found it, don't add it again } } // Add the interface and its sub-interfaces DWORD n = bmtInfo->nAssigned; bmtInfo->pExactMTs[n] = pIntf; bmtInfo->pInterfaceSubstitution[n] = *pSubstForComparing_OnStack; bmtInfo->nAssigned++; Substitution * pSubstForTypeLoad = new (pStackingAllocator) Substitution(*pSubstForTypeLoad_OnStack); ExpandExactDeclaredInterfaces( bmtInfo, pIntf->GetModule(), pIntf->GetCl(), pSubstForTypeLoad, &bmtInfo->pInterfaceSubstitution[n], pStackingAllocator, pMTInterfaceMapOwner COMMA_INDEBUG(dbg_pClassMT)); } // MethodTableBuilder::ExpandExactInterface //******************************************************************************* /* static */ void MethodTableBuilder::InterfacesAmbiguityCheck(bmtInterfaceAmbiguityCheckInfo *bmtCheckInfo, Module *pModule, mdToken typeDef, const Substitution *pSubstChain, StackingAllocator *pStackingAllocator) { STANDARD_VM_CONTRACT; HRESULT hr; InterfaceImplEnum ie(pModule, typeDef, pSubstChain); while ((hr = ie.Next()) == S_OK) { MethodTable *pInterface = ClassLoader::LoadTypeDefOrRefOrSpecThrowing(pModule, ie.CurrentToken(), &bmtCheckInfo->typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_EXACTPARENTS, TRUE, pSubstChain).GetMethodTable(); InterfaceAmbiguityCheck(bmtCheckInfo, ie.CurrentSubst(), pInterface, pStackingAllocator); } if (FAILED(hr)) { pModule->GetAssembly()->ThrowTypeLoadException(pModule->GetMDImport(), typeDef, IDS_CLASSLOAD_BADFORMAT); } } //******************************************************************************* void MethodTableBuilder::InterfaceAmbiguityCheck(bmtInterfaceAmbiguityCheckInfo *bmtCheckInfo, const Substitution *pItfSubstChain, MethodTable *pIntf, StackingAllocator *pStackingAllocator) { STANDARD_VM_CONTRACT; // Is it already in the generic version of the freshly declared interfaces. We // do this based on metadata, i.e. via the substitution chains. // Note we use exactly the same algorithm as when we // determined the layout of the interface map for the "generic" version of the class. for (DWORD i = 0; i < bmtCheckInfo->nAssigned; i++) { // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions(bmtCheckInfo->ppExactDeclaredInterfaces[i], pIntf, bmtCheckInfo->ppInterfaceSubstitutionChains[i], pItfSubstChain, &newVisited)) return; // found it, don't add it again } // OK, so it isn't a duplicate based on the generic IL, now check if the instantiation // makes it a duplicate. for (DWORD i = 0; i < bmtCheckInfo->nAssigned; i++) { if (bmtCheckInfo->ppExactDeclaredInterfaces[i] == pIntf) { bmtCheckInfo->pMT->GetModule()->GetAssembly()->ThrowTypeLoadException(bmtCheckInfo->pMT->GetMDImport(), bmtCheckInfo->pMT->GetCl(), IDS_CLASSLOAD_OVERLAPPING_INTERFACES); } } DWORD n = bmtCheckInfo->nAssigned; bmtCheckInfo->ppExactDeclaredInterfaces[n] = pIntf; bmtCheckInfo->ppInterfaceSubstitutionChains[n] = new (pStackingAllocator) Substitution[pItfSubstChain->GetLength()]; pItfSubstChain->CopyToArray(bmtCheckInfo->ppInterfaceSubstitutionChains[n]); bmtCheckInfo->nAssigned++; InterfacesAmbiguityCheck(bmtCheckInfo,pIntf->GetModule(),pIntf->GetCl(),pItfSubstChain, pStackingAllocator); } //******************************************************************************* void MethodTableBuilder::CheckForSystemTypes() { STANDARD_VM_CONTRACT; LPCUTF8 name, nameSpace; MethodTable * pMT = GetHalfBakedMethodTable(); EEClass * pClass = GetHalfBakedClass(); // We can exit early for generic types - there are just a few cases to check for. if (bmtGenerics->HasInstantiation()) { if (pMT->IsIntrinsicType() && pClass->HasLayout()) { if (FAILED(GetMDImport()->GetNameOfTypeDef(GetCl(), &name, &nameSpace))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (strcmp(nameSpace, g_IntrinsicsNS) == 0) { EEClassLayoutInfo * pLayout = pClass->GetLayoutInfo(); // The SIMD Hardware Intrinsic types correspond to fundamental data types in the underlying ABIs: // * Vector64<T>: __m64 // * Vector128<T>: __m128 // * Vector256<T>: __m256 // These __m128 and __m256 types, among other requirements, are special in that they must always // be aligned properly. if (strcmp(name, g_Vector64Name) == 0) { // The System V ABI for i386 defaults to 8-byte alignment for __m64, except for parameter passing, // where it has an alignment of 4. pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 8; // sizeof(__m64) } else if (strcmp(name, g_Vector128Name) == 0) { #ifdef TARGET_ARM // The Procedure Call Standard for ARM defaults to 8-byte alignment for __m128 pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 8; #else pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 16; // sizeof(__m128) #endif // TARGET_ARM } else if (strcmp(name, g_Vector256Name) == 0) { #ifdef TARGET_ARM // No such type exists for the Procedure Call Standard for ARM. We will default // to the same alignment as __m128, which is supported by the ABI. pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 8; #elif defined(TARGET_ARM64) // The Procedure Call Standard for ARM 64-bit (with SVE support) defaults to // 16-byte alignment for __m256. pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 16; #else pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 32; // sizeof(__m256) #endif // TARGET_ARM elif TARGET_ARM64 } else { // These types should be handled or explicitly skipped below to ensure that we don't // miss adding required ABI support for future types. _ASSERTE_MSG(FALSE, "Unhandled Hardware Intrinsic Type."); } return; } } if (g_pNullableClass != NULL) { _ASSERTE(g_pByReferenceClass != NULL); _ASSERTE(g_pByReferenceClass->IsByRefLike()); _ASSERTE(g_pNullableClass->IsNullable()); // Pre-compute whether the class is a Nullable<T> so that code:Nullable::IsNullableType is efficient // This is useful to the performance of boxing/unboxing a Nullable if (GetCl() == g_pNullableClass->GetCl()) pMT->SetIsNullable(); return; } } if (IsNested() || IsEnum()) return; if (FAILED(GetMDImport()->GetNameOfTypeDef(GetCl(), &name, &nameSpace))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsValueClass()) { // // Value types // // All special value types are in the system namespace if (strcmp(nameSpace, g_SystemNS) != 0) return; // Check if it is a primitive type CorElementType type = CorTypeInfo::FindPrimitiveType(name); if (type != ELEMENT_TYPE_END) { pMT->SetInternalCorElementType(type); pMT->SetIsTruePrimitive(); #if defined(TARGET_X86) && defined(UNIX_X86_ABI) switch (type) { // The System V ABI for i386 defines different packing for these types. case ELEMENT_TYPE_I8: case ELEMENT_TYPE_U8: case ELEMENT_TYPE_R8: { EEClassLayoutInfo * pLayout = pClass->GetLayoutInfo(); pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 4; break; } default: break; } #endif // TARGET_X86 && UNIX_X86_ABI #ifdef _DEBUG if (FAILED(GetMDImport()->GetNameOfTypeDef(GetCl(), &name, &nameSpace))) { name = nameSpace = "Invalid TypeDef record"; } LOG((LF_CLASSLOADER, LL_INFO10000, "%s::%s marked as primitive type %i\n", nameSpace, name, type)); #endif // _DEBUG } else if (strcmp(name, g_NullableName) == 0) { pMT->SetIsNullable(); } else if (strcmp(name, g_RuntimeArgumentHandleName) == 0) { pMT->SetInternalCorElementType (ELEMENT_TYPE_I); } else if (strcmp(name, g_RuntimeMethodHandleInternalName) == 0) { pMT->SetInternalCorElementType (ELEMENT_TYPE_I); } else if (strcmp(name, g_RuntimeFieldHandleInternalName) == 0) { pMT->SetInternalCorElementType (ELEMENT_TYPE_I); } } else { // // Reference types // if (strcmp(name, g_StringName) == 0 && strcmp(nameSpace, g_SystemNS) == 0) { // Strings are not "normal" objects, so we need to mess with their method table a bit // so that the GC can figure out how big each string is... DWORD baseSize = StringObject::GetBaseSize(); pMT->SetBaseSize(baseSize); GetHalfBakedClass()->SetBaseSizePadding(baseSize - bmtFP->NumInstanceFieldBytes); pMT->SetComponentSize(2); } else if (strcmp(name, g_CriticalFinalizerObjectName) == 0 && strcmp(nameSpace, g_ConstrainedExecutionNS) == 0) { // To introduce a class with a critical finalizer, // we'll set the bit here. pMT->SetHasCriticalFinalizer(); } #ifdef FEATURE_COMINTEROP else { bool bIsComObject = false; if (strcmp(name, g_ComObjectName) == 0 && strcmp(nameSpace, g_SystemNS) == 0) bIsComObject = true; if (bIsComObject) { // Make System.__ComObject a ComImport type // We can't do it using attribute as C# won't allow putting code in ComImport types pMT->SetComObjectType(); // COM objects need an optional field on the EEClass, so ensure this class instance has allocated // the optional field descriptor. EnsureOptionalFieldsAreAllocated(pClass, m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); } } #endif // FEATURE_COMINTEROP } } //========================================================================================== // Helper to create a new method table. This is the only // way to allocate a new MT. Don't try calling new / ctor. // Called from SetupMethodTable // This needs to be kept consistent with MethodTable::GetSavedExtent() MethodTable * MethodTableBuilder::AllocateNewMT( Module *pLoaderModule, DWORD dwVtableSlots, DWORD dwVirtuals, DWORD dwGCSize, DWORD dwNumInterfaces, DWORD dwNumDicts, DWORD cbInstAndDict, MethodTable *pMTParent, ClassLoader *pClassLoader, LoaderAllocator *pAllocator, BOOL isInterface, BOOL fDynamicStatics, BOOL fHasGenericsStaticsInfo, BOOL fHasVirtualStaticMethods #ifdef FEATURE_COMINTEROP , BOOL fHasDynamicInterfaceMap #endif , AllocMemTracker *pamTracker ) { CONTRACT (MethodTable*) { THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; DWORD dwNonVirtualSlots = dwVtableSlots - dwVirtuals; // GCSize must be aligned _ASSERTE(IS_ALIGNED(dwGCSize, sizeof(void*))); // size without the interface map S_SIZE_T cbTotalSize = S_SIZE_T(dwGCSize) + S_SIZE_T(sizeof(MethodTable)); // vtable cbTotalSize += MethodTable::GetNumVtableIndirections(dwVirtuals) * sizeof(MethodTable::VTableIndir_t); DWORD dwMultipurposeSlotsMask = 0; if (dwNumInterfaces != 0) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasInterfaceMap; if (dwNumDicts != 0) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasPerInstInfo; if (bmtVT->pDispatchMapBuilder->Count() > 0) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasDispatchMapSlot; if (dwNonVirtualSlots != 0) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasNonVirtualSlots; if (pLoaderModule != GetModule()) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasModuleOverride; // Add space for optional members here. Same as GetOptionalMembersSize() cbTotalSize += MethodTable::GetOptionalMembersAllocationSize(dwMultipurposeSlotsMask, fHasGenericsStaticsInfo, RidFromToken(GetCl()) >= METHODTABLE_TOKEN_OVERFLOW); // Interface map starts here S_SIZE_T offsetOfInterfaceMap = cbTotalSize; cbTotalSize += S_SIZE_T(dwNumInterfaces) * S_SIZE_T(sizeof(InterfaceInfo_t)); #ifdef FEATURE_COMINTEROP // DynamicInterfaceMap have an extra DWORD added to the end of the normal interface // map. This will be used to store the count of dynamically added interfaces // (the ones that are not in the metadata but are QI'ed for at runtime). cbTotalSize += S_SIZE_T(fHasDynamicInterfaceMap ? sizeof(DWORD_PTR) : 0); #endif // Dictionary pointers start here S_SIZE_T offsetOfInstAndDict = cbTotalSize; if (dwNumDicts != 0) { cbTotalSize += sizeof(GenericsDictInfo); cbTotalSize += S_SIZE_T(dwNumDicts) * S_SIZE_T(sizeof(MethodTable::PerInstInfoElem_t)); cbTotalSize += cbInstAndDict; } S_SIZE_T offsetOfUnsharedVtableChunks = cbTotalSize; BOOL canShareVtableChunks = pMTParent && MethodTable::CanShareVtableChunksFrom(pMTParent, pLoaderModule ); // If pMTParent has a generic instantiation, we cannot share its vtable chunks // This is because pMTParent is only approximate at this point, and MethodTableBuilder::CopyExactParentSlots // may swap in an exact parent that does not satisfy CanShareVtableChunksFrom if (pMTParent && pMTParent->HasInstantiation()) { canShareVtableChunks = FALSE; } // We will share any parent vtable chunk that does not contain a method we overrode (or introduced) // For the rest, we need to allocate space for (DWORD i = 0; i < dwVirtuals; i++) { if (!canShareVtableChunks || ChangesImplementationOfVirtualSlot(static_cast<SLOT_INDEX>(i))) { DWORD chunkStart = MethodTable::GetStartSlotForVtableIndirection(MethodTable::GetIndexOfVtableIndirection(i), dwVirtuals); DWORD chunkEnd = MethodTable::GetEndSlotForVtableIndirection(MethodTable::GetIndexOfVtableIndirection(i), dwVirtuals); cbTotalSize += S_SIZE_T(chunkEnd - chunkStart) * S_SIZE_T(sizeof(PCODE)); i = chunkEnd - 1; } } // Add space for the non-virtual slots array (pointed to by an optional member) if required // If there is only one non-virtual slot, we store it directly in the optional member and need no array S_SIZE_T offsetOfNonVirtualSlots = cbTotalSize; if (dwNonVirtualSlots > 1) { cbTotalSize += S_SIZE_T(dwNonVirtualSlots) * S_SIZE_T(sizeof(PCODE)); } BYTE *pData = (BYTE *)pamTracker->Track(pAllocator->GetHighFrequencyHeap()->AllocMem(cbTotalSize)); _ASSERTE(IS_ALIGNED(pData, TARGET_POINTER_SIZE)); // There should be no overflows if we have allocated the memory succesfully _ASSERTE(!cbTotalSize.IsOverflow()); MethodTable* pMT = (MethodTable*)(pData + dwGCSize); pMT->SetMultipurposeSlotsMask(dwMultipurposeSlotsMask); MethodTableWriteableData * pMTWriteableData = (MethodTableWriteableData *) (BYTE *) pamTracker->Track(pAllocator->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(MethodTableWriteableData)))); // Note: Memory allocated on loader heap is zero filled pMT->SetWriteableData(pMTWriteableData); // This also disables IBC logging until the type is sufficiently intitialized so // it needs to be done early pMTWriteableData->SetIsNotFullyLoadedForBuildMethodTable(); #ifdef _DEBUG pClassLoader->m_dwGCSize += dwGCSize; pClassLoader->m_dwInterfaceMapSize += (dwNumInterfaces * sizeof(InterfaceInfo_t)); pClassLoader->m_dwMethodTableSize += (DWORD)cbTotalSize.Value(); pClassLoader->m_dwVtableData += (dwVtableSlots * sizeof(PCODE)); #endif // _DEBUG // There should be no overflows if we have allocated the memory succesfully _ASSERTE(!offsetOfUnsharedVtableChunks.IsOverflow()); _ASSERTE(!offsetOfNonVirtualSlots.IsOverflow()); _ASSERTE(!offsetOfInterfaceMap.IsOverflow()); _ASSERTE(!offsetOfInstAndDict.IsOverflow()); // initialize the total number of slots pMT->SetNumVirtuals(static_cast<WORD>(dwVirtuals)); if (fHasVirtualStaticMethods) { pMT->SetHasVirtualStaticMethods(); } pMT->SetParentMethodTable(pMTParent); // Fill out the vtable indirection slots SIZE_T dwCurrentUnsharedSlotOffset = offsetOfUnsharedVtableChunks.Value(); MethodTable::VtableIndirectionSlotIterator it = pMT->IterateVtableIndirectionSlots(); while (it.Next()) { BOOL shared = canShareVtableChunks; // Recalculate whether we will share this chunk if (canShareVtableChunks) { for (DWORD i = it.GetStartSlot(); i < it.GetEndSlot(); i++) { if (ChangesImplementationOfVirtualSlot(static_cast<SLOT_INDEX>(i))) { shared = FALSE; break; } } } if (shared) { // Share the parent chunk _ASSERTE(it.GetEndSlot() <= pMTParent->GetNumVirtuals()); it.SetIndirectionSlot(pMTParent->GetVtableIndirections()[it.GetIndex()]); } else { // Use the locally allocated chunk it.SetIndirectionSlot((MethodTable::VTableIndir2_t *)(pData+dwCurrentUnsharedSlotOffset)); dwCurrentUnsharedSlotOffset += it.GetSize(); } } #ifdef FEATURE_COMINTEROP // Extensible RCW's are prefixed with the count of dynamic interfaces. if (fHasDynamicInterfaceMap) { _ASSERTE (dwNumInterfaces > 0); pMT->SetInterfaceMap ((WORD) (dwNumInterfaces), (InterfaceInfo_t*)(pData+offsetOfInterfaceMap.Value()+sizeof(DWORD_PTR))); *(((DWORD_PTR *)pMT->GetInterfaceMap()) - 1) = 0; } else #endif // FEATURE_COMINTEROP { // interface map is at the end of the vtable pMT->SetInterfaceMap ((WORD) dwNumInterfaces, (InterfaceInfo_t *)(pData+offsetOfInterfaceMap.Value())); } _ASSERTE(((WORD) dwNumInterfaces) == dwNumInterfaces); if (fDynamicStatics) { pMT->SetDynamicStatics(fHasGenericsStaticsInfo); } if (dwNonVirtualSlots > 0) { if (dwNonVirtualSlots > 1) { pMT->SetNonVirtualSlotsArray((PTR_PCODE)(pData+offsetOfNonVirtualSlots.Value())); } else { pMT->SetHasSingleNonVirtualSlot(); } } // the dictionary pointers follow the interface map if (dwNumDicts) { MethodTable::PerInstInfoElem_t *pPerInstInfo = (MethodTable::PerInstInfoElem_t *)(pData + offsetOfInstAndDict.Value() + sizeof(GenericsDictInfo)); pMT->SetPerInstInfo ( pPerInstInfo); // Fill in the dictionary for this type, if it's instantiated if (cbInstAndDict) { MethodTable::PerInstInfoElem_t *pPInstInfo = (MethodTable::PerInstInfoElem_t *)(pPerInstInfo + (dwNumDicts-1)); *pPInstInfo = (Dictionary*) (pPerInstInfo + dwNumDicts); } } #ifdef _DEBUG pMT->m_pWriteableData->m_dwLastVerifedGCCnt = (DWORD)-1; #endif // _DEBUG RETURN(pMT); } //******************************************************************************* // // Used by BuildMethodTable // // Setup the method table // #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif // _PREFAST_ VOID MethodTableBuilder::SetupMethodTable2( Module * pLoaderModule) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtGenerics)); } CONTRACTL_END; DWORD i; #ifdef FEATURE_COMINTEROP BOOL fHasDynamicInterfaceMap = bmtInterface->dwInterfaceMapSize > 0 && bmtProp->fIsComObjectType && (GetParentMethodTable() != g_pObjectClass); #endif // FEATURE_COMINTEROP EEClass *pClass = GetHalfBakedClass(); DWORD cbDictSlotSize = 0; DWORD cbDictAllocSize = 0; if (bmtGenerics->HasInstantiation()) { cbDictAllocSize = DictionaryLayout::GetDictionarySizeFromLayout(bmtGenerics->GetNumGenericArgs(), pClass->GetDictionaryLayout(), &cbDictSlotSize); } DWORD dwGCSize; if (bmtFP->NumGCPointerSeries > 0) { dwGCSize = (DWORD)CGCDesc::ComputeSize(bmtFP->NumGCPointerSeries); } else { dwGCSize = 0; } pClass->SetNumMethods(bmtVT->cTotalSlots); pClass->SetNumNonVirtualSlots(bmtVT->cVtableSlots - bmtVT->cVirtualSlots); // Now setup the method table // interface map is allocated along with the method table MethodTable *pMT = AllocateNewMT(pLoaderModule, bmtVT->cVtableSlots, bmtVT->cVirtualSlots, dwGCSize, bmtInterface->dwInterfaceMapSize, bmtGenerics->numDicts, cbDictAllocSize, GetParentMethodTable(), GetClassLoader(), bmtAllocator, IsInterface(), bmtProp->fDynamicStatics, bmtProp->fGenericsStatics, bmtProp->fHasVirtualStaticMethods, #ifdef FEATURE_COMINTEROP fHasDynamicInterfaceMap, #endif GetMemTracker()); pMT->SetClass(pClass); pClass->m_pMethodTable = pMT; m_pHalfBakedMT = pMT; #ifdef _DEBUG pMT->SetDebugClassName(GetDebugClassName()); #endif if (IsInterface()) pMT->SetIsInterface(); if (GetParentMethodTable() != NULL) { if (GetParentMethodTable()->HasModuleDependencies()) { pMT->SetHasModuleDependencies(); } else { Module * pModule = GetModule(); Module * pParentModule = GetParentMethodTable()->GetModule(); if (pModule != pParentModule) { pMT->SetHasModuleDependencies(); } } if (GetParentMethodTable()->HasPreciseInitCctors() || !pClass->IsBeforeFieldInit()) { pMT->SetHasPreciseInitCctors(); } } // Must be done early because various methods test HasInstantiation() and ContainsGenericVariables() if (bmtGenerics->GetNumGenericArgs() != 0) { pMT->SetHasInstantiation(bmtGenerics->fTypicalInstantiation, bmtGenerics->fSharedByGenericInstantiations); if (bmtGenerics->fContainsGenericVariables) pMT->SetContainsGenericVariables(); } if (bmtGenerics->numDicts != 0) { if (!FitsIn<WORD>(bmtGenerics->GetNumGenericArgs())) { BuildMethodTableThrowException(IDS_CLASSLOAD_TOOMANYGENERICARGS); } pMT->SetDictInfo(bmtGenerics->numDicts, static_cast<WORD>(bmtGenerics->GetNumGenericArgs())); } CONSISTENCY_CHECK(pMT->GetNumGenericArgs() == bmtGenerics->GetNumGenericArgs()); CONSISTENCY_CHECK(pMT->GetNumDicts() == bmtGenerics->numDicts); CONSISTENCY_CHECK(pMT->HasInstantiation() == bmtGenerics->HasInstantiation()); CONSISTENCY_CHECK(pMT->HasInstantiation() == !pMT->GetInstantiation().IsEmpty()); pMT->SetLoaderModule(pLoaderModule); pMT->SetLoaderAllocator(bmtAllocator); pMT->SetModule(GetModule()); pMT->SetInternalCorElementType (ELEMENT_TYPE_CLASS); SetNonGCRegularStaticFieldBytes (bmtProp->dwNonGCRegularStaticFieldBytes); SetNonGCThreadStaticFieldBytes (bmtProp->dwNonGCThreadStaticFieldBytes); #ifdef FEATURE_TYPEEQUIVALENCE if (bmtProp->fHasTypeEquivalence) { pMT->SetHasTypeEquivalence(); } #endif //FEATURE_TYPEEQUIVALENCE #ifdef FEATURE_COMINTEROP if (bmtProp->fSparse) pClass->SetSparseForCOMInterop(); #endif // FEATURE_COMINTEROP if (bmtVT->pCCtor != NULL) { pMT->SetHasClassConstructor(); CONSISTENCY_CHECK(pMT->GetClassConstructorSlot() == bmtVT->pCCtor->GetSlotIndex()); } if (bmtVT->pDefaultCtor != NULL) { pMT->SetHasDefaultConstructor(); CONSISTENCY_CHECK(pMT->GetDefaultConstructorSlot() == bmtVT->pDefaultCtor->GetSlotIndex()); } for (MethodDescChunk *pChunk = GetHalfBakedClass()->GetChunks(); pChunk != NULL; pChunk = pChunk->GetNextChunk()) { pChunk->SetMethodTable(pMT); } #ifdef _DEBUG { // disable ibc logging because we can assert in ComputerPreferredZapModule for partially constructed // generic types IBCLoggingDisabler disableLogging; DeclaredMethodIterator it(*this); while (it.Next()) { MethodDesc *pMD = it->GetMethodDesc(); if (pMD != NULL) { pMD->m_pDebugMethodTable = pMT; pMD->m_pszDebugMethodSignature = FormatSig(pMD, GetLoaderAllocator()->GetLowFrequencyHeap(), GetMemTracker()); } MethodDesc *pUnboxedMD = it->GetUnboxedMethodDesc(); if (pUnboxedMD != NULL) { pUnboxedMD->m_pDebugMethodTable = pMT; pUnboxedMD->m_pszDebugMethodSignature = FormatSig(pUnboxedMD, GetLoaderAllocator()->GetLowFrequencyHeap(), GetMemTracker()); } } } #endif // _DEBUG // Note that for value classes, the following calculation is only appropriate // when the instance is in its "boxed" state. if (!IsInterface()) { DWORD baseSize = Max<DWORD>(bmtFP->NumInstanceFieldBytes + OBJECT_BASESIZE, MIN_OBJECT_SIZE); baseSize = (baseSize + ALLOC_ALIGN_CONSTANT) & ~ALLOC_ALIGN_CONSTANT; // m_BaseSize must be aligned pMT->SetBaseSize(baseSize); GetHalfBakedClass()->SetBaseSizePadding(baseSize - bmtFP->NumInstanceFieldBytes); if (bmtProp->fIsComObjectType) { // Propagate the com specific info pMT->SetComObjectType(); #ifdef FEATURE_COMINTEROP // COM objects need an optional field on the EEClass, so ensure this class instance has allocated // the optional field descriptor. EnsureOptionalFieldsAreAllocated(pClass, m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); #endif // FEATURE_COMINTEROP } } else { #ifdef FEATURE_COMINTEROP // If this is an interface then we need to set the ComInterfaceType to // -1 to indicate we have not yet determined the interface type. pClass->SetComInterfaceType((CorIfaceAttr)-1); // If this is a special COM event interface, then mark the MT as such. if (bmtProp->fComEventItfType) { pClass->SetComEventItfType(); } #endif // FEATURE_COMINTEROP } _ASSERTE((pMT->IsInterface() == 0) == (IsInterface() == 0)); FieldDesc *pFieldDescList = pClass->GetFieldDescList(); // Set all field slots to point to the newly created MethodTable for (i = 0; i < (bmtEnumFields->dwNumStaticFields + bmtEnumFields->dwNumInstanceFields); i++) { pFieldDescList[i].m_pMTOfEnclosingClass = pMT; } // Fill in type parameters before looking up exact parent or fetching the types of any field descriptors! // This must come before the use of GetFieldType in the value class representation optimization below. if (bmtGenerics->GetNumGenericArgs() != 0) { // Space has already been allocated for the instantiation but the parameters haven't been filled in Instantiation destInst = pMT->GetInstantiation(); Instantiation inst = bmtGenerics->GetInstantiation(); // So fill them in... TypeHandle * pInstDest = (TypeHandle *)destInst.GetRawArgs(); for (DWORD j = 0; j < bmtGenerics->GetNumGenericArgs(); j++) { pInstDest[j] = inst[j]; } PTR_DictionaryLayout pLayout = pClass->GetDictionaryLayout(); if (pLayout != NULL) { _ASSERTE(pLayout->GetMaxSlots() > 0); PTR_Dictionary pDictionarySlots = pMT->GetPerInstInfo()[bmtGenerics->numDicts - 1]; DWORD* pSizeSlot = (DWORD*)(pDictionarySlots + bmtGenerics->GetNumGenericArgs()); *pSizeSlot = cbDictSlotSize; } } CorElementType normalizedType = ELEMENT_TYPE_CLASS; if (IsValueClass()) { if (IsEnum()) { if (GetNumInstanceFields() != 1 || !CorTypeInfo::IsPrimitiveType(pFieldDescList[0].GetFieldType())) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } CONSISTENCY_CHECK(!pFieldDescList[0].IsStatic()); normalizedType = pFieldDescList->GetFieldType(); } else { normalizedType = ELEMENT_TYPE_VALUETYPE; } } pMT->SetInternalCorElementType(normalizedType); if (bmtProp->fIsIntrinsicType) { pMT->SetIsIntrinsicType(); } if (GetModule()->IsSystem()) { CheckForSystemTypes(); } // Now fill in the real interface map with the approximate interfaces if (bmtInterface->dwInterfaceMapSize > 0) { // First ensure we have enough space to record extra flag information for each interface (we don't // record this directly into each interface map entry since these flags don't pack well due to // alignment). PVOID pExtraInterfaceInfo = NULL; SIZE_T cbExtraInterfaceInfo = MethodTable::GetExtraInterfaceInfoSize(bmtInterface->dwInterfaceMapSize); if (cbExtraInterfaceInfo) pExtraInterfaceInfo = GetMemTracker()->Track(GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(cbExtraInterfaceInfo))); // Call this even in the case where pExtraInterfaceInfo == NULL (certain cases are optimized and don't // require extra buffer space). pMT->InitializeExtraInterfaceInfo(pExtraInterfaceInfo); InterfaceInfo_t *pInterfaces = pMT->GetInterfaceMap(); CONSISTENCY_CHECK(CheckPointer(pInterfaces)); // Copy the interface map member by member so there is no junk in the padding. for (i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtInterfaceEntry * pEntry = &bmtInterface->pInterfaceMap[i]; if (pEntry->IsDeclaredOnType()) pMT->SetInterfaceDeclaredOnClass(i); _ASSERTE(!!pEntry->IsDeclaredOnType() == !!pMT->IsInterfaceDeclaredOnClass(i)); pInterfaces[i].SetMethodTable(pEntry->GetInterfaceType()->GetMethodTable()); } } pMT->SetCl(GetCl()); // The type is sufficiently initialized for most general purpose accessor methods to work. // Mark the type as restored to avoid avoid asserts. Note that this also enables IBC logging. pMT->GetWriteableDataForWrite_NoLogging()->SetIsRestoredForBuildMethodTable(); #ifdef _DEBUG // Store status if we tried to inject duplicate interfaces if (bmtInterface->dbg_fShouldInjectInterfaceDuplicates) pMT->Debug_SetHasInjectedInterfaceDuplicates(); #endif //_DEBUG // Keep bmtInterface data around since we no longer write the flags (IsDeclaredOnType and // IsImplementedByParent) into the interface map (these flags are only required during type loading). { for (MethodDescChunk *pChunk = GetHalfBakedClass()->GetChunks(); pChunk != NULL; pChunk = pChunk->GetNextChunk()) { // Make sure that temporary entrypoints are create for methods. NGEN uses temporary // entrypoints as surrogate keys for precodes. pChunk->EnsureTemporaryEntryPointsCreated(GetLoaderAllocator(), GetMemTracker()); } } { // copy onto the real vtable (methods only) //@GENERICS: Because we sometimes load an inexact parent (see ClassLoader::GetParent) the inherited slots might // come from the wrong place and need fixing up once we know the exact parent for (bmtVtable::Iterator slotIt = bmtVT->IterateSlots(); !slotIt.AtEnd(); ++slotIt) { SLOT_INDEX iCurSlot = static_cast<SLOT_INDEX>(slotIt.CurrentIndex()); // We want the unboxed MethodDesc if we're out of the virtual method range // and the method we're dealing with has an unboxing method. If so, then // the unboxing method was placed in the virtual section of the vtable and // we now need to place the unboxed version. MethodDesc * pMD = NULL; if (iCurSlot < bmtVT->cVirtualSlots || !slotIt->Impl().AsMDMethod()->IsUnboxing()) { pMD = slotIt->Impl().GetMethodDesc(); CONSISTENCY_CHECK(slotIt->Decl().GetSlotIndex() == iCurSlot); } else { pMD = slotIt->Impl().AsMDMethod()->GetUnboxedMethodDesc(); CONSISTENCY_CHECK(pMD->GetSlot() == iCurSlot); } CONSISTENCY_CHECK(CheckPointer(pMD)); if (pMD->GetMethodTable() != pMT) { // // Inherited slots // // Do not write into vtable chunks shared with parent. It would introduce race // with code:MethodDesc::SetStableEntryPointInterlocked. // DWORD indirectionIndex = MethodTable::GetIndexOfVtableIndirection(iCurSlot); if (GetParentMethodTable()->GetVtableIndirections()[indirectionIndex] != pMT->GetVtableIndirections()[indirectionIndex]) pMT->SetSlot(iCurSlot, pMD->GetInitialEntryPointForCopiedSlot()); } else { // // Owned slots // _ASSERTE(iCurSlot >= bmtVT->cVirtualSlots || ChangesImplementationOfVirtualSlot(iCurSlot)); PCODE addr = pMD->GetTemporaryEntryPoint(); _ASSERTE(addr != NULL); if (pMD->HasNonVtableSlot()) { *((PCODE *)pMD->GetAddrOfSlot()) = addr; } else { pMT->SetSlot(iCurSlot, addr); } if (pMD->GetSlot() == iCurSlot && pMD->RequiresStableEntryPoint()) { // The rest of the system assumes that certain methods always have stable entrypoints. // Create them now. pMD->GetOrCreatePrecode(); } } } } // If we have any entries, then finalize them and allocate the object in class loader heap DispatchMap *pDispatchMap = NULL; DispatchMapBuilder *pDispatchMapBuilder = bmtVT->pDispatchMapBuilder; CONSISTENCY_CHECK(CheckPointer(pDispatchMapBuilder)); if (pDispatchMapBuilder->Count() > 0) { // Create a map in stacking memory. BYTE * pbMap; UINT32 cbMap; DispatchMap::CreateEncodedMapping( pMT, pDispatchMapBuilder, pDispatchMapBuilder->GetAllocator(), &pbMap, &cbMap); // Now finalize the impltable and allocate the block in the low frequency loader heap size_t objSize = (size_t) DispatchMap::GetObjectSize(cbMap); void * pv = AllocateFromLowFrequencyHeap(S_SIZE_T(objSize)); _ASSERTE(pv != NULL); // Use placement new pDispatchMap = new (pv) DispatchMap(pbMap, cbMap); pMT->SetDispatchMap(pDispatchMap); #ifdef LOGGING g_sdStats.m_cDispatchMap++; g_sdStats.m_cbDispatchMap += (UINT32) objSize; LOG((LF_LOADER, LL_INFO1000, "SD: Dispatch map for %s: %d bytes for map, %d bytes total for object.\n", pMT->GetDebugClassName(), cbMap, objSize)); #endif // LOGGING } // GetMethodData by default will cache its result. However, in the case that we're // building a MethodTable, we aren't guaranteed that this type is going to successfully // load and so caching it would result in errors down the road since the memory and // type occupying the same memory location would very likely be incorrect. The second // argument specifies that GetMethodData should not cache the returned object. MethodTable::MethodDataWrapper hMTData(MethodTable::GetMethodData(pMT, FALSE)); if (!IsInterface()) { // Propagate inheritance. // NOTE: In the world of unfolded interface this was used to propagate overrides into // the unfolded interface vtables to make sure that overrides of virtual methods // also overrode the interface methods that they contributed to. This had the // unfortunate side-effect of also overwriting regular vtable slots that had been // methodimpl'd and as a result changed the meaning of methodimpl from "substitute // the body of method A with the body of method B" to "unify the slots of methods // A and B". But now compilers have come to rely on this side-effect and it can // not be brought back to its originally intended behaviour. // For every slot whose body comes from another slot (determined by getting the MethodDesc // for a slot and seeing if MethodDesc::GetSlot returns a different value than the slot // from which the MethodDesc was recovered), copy the value of the slot stated by the // MethodDesc over top of the current slot. // Because of the way slot unification works, we need to iterate the enture vtable until // no slots need updated. To understand this, imagine the following: // C1::M1 is overridden by C2::M2 // C1::M2 is methodImpled by C1::M3 // C1::M3 is overridden by C2::M3 // This should mean that C1::M1 is implemented by C2::M3, but if we didn't run the below // for loop a second time, this would not be propagated properly - it would only be placed // into the slot for C1::M2 and never make its way up to C1::M1. BOOL fChangeMade; do { fChangeMade = FALSE; for (i = 0; i < pMT->GetNumVirtuals(); i++) { MethodDesc* pMD = hMTData->GetImplMethodDesc(i); CONSISTENCY_CHECK(CheckPointer(pMD)); CONSISTENCY_CHECK(pMD == pMT->GetMethodDescForSlot(i)); // This indicates that the method body in this slot was copied here through a methodImpl. // Thus, copy the value of the slot from which the body originally came, in case it was // overridden, to make sure the two slots stay in sync. DWORD originalIndex = pMD->GetSlot(); if (originalIndex != i) { MethodDesc *pOriginalMD = hMTData->GetImplMethodDesc(originalIndex); CONSISTENCY_CHECK(CheckPointer(pOriginalMD)); CONSISTENCY_CHECK(pOriginalMD == pMT->GetMethodDescForSlot(originalIndex)); if (pMD != pOriginalMD) { // Copy the slot value in the method's original slot. pMT->SetSlot(i, pOriginalMD->GetInitialEntryPointForCopiedSlot()); hMTData->InvalidateCachedVirtualSlot(i); // Update the pMD to the new method desc we just copied over ourselves with. This will // be used in the check for missing method block below. pMD = pOriginalMD; // This method is now duplicate pMD->SetDuplicate(); INDEBUG(g_dupMethods++;) fChangeMade = TRUE; } } } } while (fChangeMade); } if (!bmtProp->fNoSanityChecks) VerifyVirtualMethodsImplemented(hMTData); #ifdef _DEBUG { for (bmtVtable::Iterator i = bmtVT->IterateSlots(); !i.AtEnd(); ++i) { _ASSERTE(i->Impl().GetMethodDesc() != NULL); } } #endif // _DEBUG #ifdef FEATURE_COMINTEROP // for ComObject types, i.e. if the class extends from a COM Imported // class // make sure any interface implementated by the COM Imported class // is overridden fully, (OR) not overridden at all.. if (bmtProp->fIsComObjectType) { MethodTable::InterfaceMapIterator intIt = pMT->IterateInterfaceMap(); while (intIt.Next()) { MethodTable* pIntfMT = intIt.GetInterface(pMT, pMT->GetLoadLevel()); if (pIntfMT->GetNumVirtuals() != 0) { BOOL hasComImportMethod = FALSE; BOOL hasManagedMethod = FALSE; // NOTE: Avoid caching the MethodData object for the type being built. MethodTable::MethodDataWrapper hItfImplData(MethodTable::GetMethodData(pIntfMT, pMT, FALSE)); MethodTable::MethodIterator it(hItfImplData); for (;it.IsValid(); it.Next()) { MethodDesc *pClsMD = NULL; // If we fail to find an _IMPLEMENTATION_ for the interface MD, then // we are a ComImportMethod, otherwise we still be a ComImportMethod or // we can be a ManagedMethod. DispatchSlot impl(it.GetTarget()); if (!impl.IsNull()) { pClsMD = it.GetMethodDesc(); CONSISTENCY_CHECK(!pClsMD->IsInterface()); if (pClsMD->GetClass()->IsComImport()) { hasComImportMethod = TRUE; } else { hasManagedMethod = TRUE; } } else { // Need to set the pClsMD for the error reporting below. pClsMD = it.GetDeclMethodDesc(); CONSISTENCY_CHECK(CheckPointer(pClsMD)); hasComImportMethod = TRUE; } // One and only one of the two must be set. if ((hasComImportMethod && hasManagedMethod) || (!hasComImportMethod && !hasManagedMethod)) { BuildMethodTableThrowException(IDS_EE_BAD_COMEXTENDS_CLASS, pClsMD->GetNameOnNonArrayClass()); } } } } } // For COM event interfaces, we need to make sure that all the methods are // methods to add or remove events. This means that they all need to take // a delegate derived class and have a void return type. if (bmtProp->fComEventItfType) { // COM event interfaces had better be interfaces. CONSISTENCY_CHECK(IsInterface()); // Go through all the methods and check the validity of the signature. // NOTE: Uses hMTData to avoid caching a MethodData object for the type being built. MethodTable::MethodIterator it(hMTData); for (;it.IsValid(); it.Next()) { MethodDesc* pMD = it.GetMethodDesc(); _ASSERTE(pMD); MetaSig Sig(pMD); { CONTRACT_VIOLATION(LoadsTypeViolation); if (Sig.GetReturnType() != ELEMENT_TYPE_VOID || Sig.NumFixedArgs() != 1 || Sig.NextArg() != ELEMENT_TYPE_CLASS || !Sig.GetLastTypeHandleThrowing().CanCastTo(TypeHandle(g_pDelegateClass))) { BuildMethodTableThrowException(IDS_EE_BAD_COMEVENTITF_CLASS, pMD->GetNameOnNonArrayClass()); } } } } #endif // FEATURE_COMINTEROP // If this class uses any VTS (Version Tolerant Serialization) features // (event callbacks or OptionalField attributes) we've previously cached the // additional information in the bmtMFDescs structure. Now it's time to add // this information as an optional extension to the MethodTable. } #ifdef _PREFAST_ #pragma warning(pop) #endif // Returns true if there is at least one default implementation for this interface method // We don't care about conflicts at this stage in order to avoid impact type load performance BOOL MethodTableBuilder::HasDefaultInterfaceImplementation(bmtRTType *pDeclType, MethodDesc *pDeclMD) { STANDARD_VM_CONTRACT; #ifdef FEATURE_DEFAULT_INTERFACES // If the interface method is already non-abstract, we are done if (!pDeclMD->IsAbstract()) return TRUE; // If the method is an abstract MethodImpl, this is a reabstraction: // // interface IFoo { void Frob() { } } // interface IBar : IFoo { abstract void IFoo.Frob() } // // We don't require these to have an implementation because they're final anyway. if (pDeclMD->IsMethodImpl()) { assert(pDeclMD->IsFinal()); return TRUE; } int targetSlot = pDeclMD->GetSlot(); // Iterate over all the interfaces this type implements bmtInterfaceEntry * pItfEntry = NULL; for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtRTType * pCurItf = bmtInterface->pInterfaceMap[i].GetInterfaceType(); Module * pCurIntfModule = pCurItf->GetMethodTable()->GetModule(); // Go over the methods on the interface MethodTable::IntroducedMethodIterator methIt(pCurItf->GetMethodTable()); for (; methIt.IsValid(); methIt.Next()) { MethodDesc * pPotentialImpl = methIt.GetMethodDesc(); // If this interface method is not a MethodImpl, it can't possibly implement // the interface method we are looking for if (!pPotentialImpl->IsMethodImpl()) continue; // Go over all the decls this MethodImpl is implementing MethodImpl::Iterator it(pPotentialImpl); for (; it.IsValid(); it.Next()) { MethodDesc *pPotentialDecl = it.GetMethodDesc(); // Check this is a decl with the right slot if (pPotentialDecl->GetSlot() != targetSlot) continue; // Find out what interface this default implementation is implementing mdToken tkParent; IfFailThrow(pCurIntfModule->GetMDImport()->GetParentToken(it.GetToken(), &tkParent)); // We can only load the approximate interface at this point MethodTable * pPotentialInterfaceMT = ClassLoader::LoadTypeDefOrRefOrSpecThrowing( pCurIntfModule, tkParent, &bmtGenerics->typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_APPROXPARENTS, TRUE).GetMethodTable()->GetCanonicalMethodTable(); // Is this a default implementation for the interface we are looking for? if (pDeclType->GetMethodTable()->HasSameTypeDefAs(pPotentialInterfaceMT)) { // If the type is not generic, matching defs are all we need if (!pDeclType->GetMethodTable()->HasInstantiation()) return TRUE; // If this is generic, we need to compare under substitutions Substitution curItfSubs(tkParent, pCurIntfModule, &pCurItf->GetSubstitution()); // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions( pPotentialInterfaceMT, pDeclType->GetMethodTable(), &curItfSubs, &pDeclType->GetSubstitution(), &newVisited)) { return TRUE; } } } } } #endif // FEATURE_DEFAULT_INTERFACES return FALSE; } void MethodTableBuilder::VerifyVirtualMethodsImplemented(MethodTable::MethodData * hMTData) { STANDARD_VM_CONTRACT; // // This verification is not applicable or required in many cases // if (IsAbstract() || IsInterface()) return; #ifdef FEATURE_COMINTEROP if (bmtProp->fIsComObjectType) return; #endif // FEATURE_COMINTEROP // Since interfaces aren't laid out in the vtable for stub dispatch, what we need to do // is try to find an implementation for every interface contract by iterating through // the interfaces not declared on a parent. BOOL fParentIsAbstract = FALSE; if (HasParent()) { fParentIsAbstract = GetParentMethodTable()->IsAbstract(); } // If the parent is abstract, we need to check that each virtual method is implemented if (fParentIsAbstract) { // NOTE: Uses hMTData to avoid caching a MethodData object for the type being built. MethodTable::MethodIterator it(hMTData); for (; it.IsValid() && it.IsVirtual(); it.Next()) { MethodDesc *pMD = it.GetMethodDesc(); if (pMD->IsAbstract()) { MethodDesc *pDeclMD = it.GetDeclMethodDesc(); BuildMethodTableThrowException(IDS_CLASSLOAD_NOTIMPLEMENTED, pDeclMD->GetNameOnNonArrayClass()); } } } DispatchMapTypeID * rgInterfaceDispatchMapTypeIDs = new (GetStackingAllocator()) DispatchMapTypeID[bmtInterface->dwInterfaceMapSize]; bmtInterfaceInfo::MapIterator intIt = bmtInterface->IterateInterfaceMap(); for (; !intIt.AtEnd(); intIt.Next()) { if (fParentIsAbstract || !intIt->IsImplementedByParent()) { // Compute all TypeIDs for this interface (all duplicates in the interface map) UINT32 cInterfaceDuplicates; ComputeDispatchMapTypeIDs( intIt->GetInterfaceType()->GetMethodTable(), &intIt->GetInterfaceType()->GetSubstitution(), rgInterfaceDispatchMapTypeIDs, bmtInterface->dwInterfaceMapSize, &cInterfaceDuplicates); _ASSERTE(cInterfaceDuplicates <= bmtInterface->dwInterfaceMapSize); _ASSERTE(cInterfaceDuplicates > 0); // NOTE: This override does not cache the resulting MethodData object. MethodTable::MethodDataWrapper hData(MethodTable::GetMethodData( rgInterfaceDispatchMapTypeIDs, cInterfaceDuplicates, intIt->GetInterfaceType()->GetMethodTable(), GetHalfBakedMethodTable())); MethodTable::MethodIterator it(hData); for (; it.IsValid() && it.IsVirtual(); it.Next()) { if (it.GetTarget().IsNull()) { MethodDesc *pMD = it.GetDeclMethodDesc(); if (!HasDefaultInterfaceImplementation(intIt->GetInterfaceType(), pMD)) BuildMethodTableThrowException(IDS_CLASSLOAD_NOTIMPLEMENTED, pMD->GetNameOnNonArrayClass()); } } } } } INT32 __stdcall IsDefined(Module *pModule, mdToken token, TypeHandle attributeClass) { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; BOOL isDefined = FALSE; IMDInternalImport *pInternalImport = pModule->GetMDImport(); BOOL isSealed = FALSE; HENUMInternalHolder hEnum(pInternalImport); TypeHandle caTH; // Get the enum first but don't get any values hEnum.EnumInit(mdtCustomAttribute, token); ULONG cMax = pInternalImport->EnumGetCount(&hEnum); if (cMax) { // we have something to look at if (!attributeClass.IsNull()) isSealed = attributeClass.GetMethodTable()->IsSealed(); // Loop through the Attributes and look for the requested one mdCustomAttribute cv; while (pInternalImport->EnumNext(&hEnum, &cv)) { // // fetch the ctor mdToken tkCtor; IfFailThrow(pInternalImport->GetCustomAttributeProps(cv, &tkCtor)); mdToken tkType = TypeFromToken(tkCtor); if(tkType != mdtMemberRef && tkType != mdtMethodDef) continue; // we only deal with the ctor case // // get the info to load the type, so we can check whether the current // attribute is a subtype of the requested attribute IfFailThrow(pInternalImport->GetParentToken(tkCtor, &tkType)); _ASSERTE(TypeFromToken(tkType) == mdtTypeRef || TypeFromToken(tkType) == mdtTypeDef); // load the type if (isSealed) { caTH=ClassLoader::LoadTypeDefOrRefThrowing(pModule, tkType, ClassLoader::ReturnNullIfNotFound, ClassLoader::FailIfUninstDefOrRef, TypeFromToken(tkType) == mdtTypeDef ? tdAllTypes : tdNoTypes); } else { caTH = ClassLoader::LoadTypeDefOrRefThrowing(pModule, tkType, ClassLoader::ReturnNullIfNotFound, ClassLoader::FailIfUninstDefOrRef); } if (caTH.IsNull()) continue; // a null class implies all custom attribute if (!attributeClass.IsNull()) { if (isSealed) { if (attributeClass != caTH) continue; } else { if (!caTH.CanCastTo(attributeClass)) continue; } } // // if we are here we got one isDefined = TRUE; break; } } return isDefined; } //******************************************************************************* VOID MethodTableBuilder::CheckForRemotingProxyAttrib() { STANDARD_VM_CONTRACT; } //******************************************************************************* // Checks for a bunch of special interface names and if it matches then it sets // bmtProp->fIsMngStandardItf to TRUE. Additionally, it checks to see if the // type is an interface and if it has ComEventInterfaceAttribute custom attribute // set, then it sets bmtProp->fComEventItfType to true. // // NOTE: This only does anything when COM interop is enabled. VOID MethodTableBuilder::CheckForSpecialTypes() { #ifdef FEATURE_COMINTEROP STANDARD_VM_CONTRACT; Module *pModule = GetModule(); IMDInternalImport *pMDImport = pModule->GetMDImport(); // Check to see if this type is a managed standard interface. All the managed // standard interfaces live in CoreLib so checking for that first // makes the strcmp that comes afterwards acceptable. if (pModule->IsSystem()) { if (IsInterface()) { LPCUTF8 pszClassName; LPCUTF8 pszClassNamespace; if (FAILED(pMDImport->GetNameOfTypeDef(GetCl(), &pszClassName, &pszClassNamespace))) { pszClassName = pszClassNamespace = NULL; } if ((pszClassName != NULL) && (pszClassNamespace != NULL)) { LPUTF8 pszFullyQualifiedName = NULL; MAKE_FULLY_QUALIFIED_NAME(pszFullyQualifiedName, pszClassNamespace, pszClassName); // This is just to give us a scope to break out of. do { #define MNGSTDITF_BEGIN_INTERFACE(FriendlyName, strMngItfName, strUCOMMngItfName, strCustomMarshalerName, strCustomMarshalerCookie, strManagedViewName, NativeItfIID, bCanCastOnNativeItfQI) \ if (strcmp(strMngItfName, pszFullyQualifiedName) == 0) \ { \ bmtProp->fIsMngStandardItf = true; \ break; \ } #define MNGSTDITF_DEFINE_METH_IMPL(FriendlyName, ECallMethName, MethName, MethSig, FcallDecl) #define MNGSTDITF_END_INTERFACE(FriendlyName) #include "mngstditflist.h" #undef MNGSTDITF_BEGIN_INTERFACE #undef MNGSTDITF_DEFINE_METH_IMPL #undef MNGSTDITF_END_INTERFACE } while (FALSE); } } } // Check to see if the type is a COM event interface (classic COM interop only). if (IsInterface()) { HRESULT hr = GetCustomAttribute(GetCl(), WellKnownAttribute::ComEventInterface, NULL, NULL); if (hr == S_OK) { bmtProp->fComEventItfType = true; } } #endif // FEATURE_COMINTEROP } #ifdef FEATURE_READYTORUN bool ModulesAreDistributedAsAnIndivisibleUnit(Module* module1, Module* module2) { if (module1 == module2) return true; bool nativeImagesIdentical = false; if (module1->GetCompositeNativeImage() != NULL) { return module1->GetCompositeNativeImage() == module2->GetCompositeNativeImage(); } return false; } //******************************************************************************* VOID MethodTableBuilder::CheckLayoutDependsOnOtherModules(MethodTable * pDependencyMT) { STANDARD_VM_CONTRACT; // These cases are expected to be handled by the caller _ASSERTE(!(pDependencyMT == g_pObjectClass || pDependencyMT->IsTruePrimitive() || ((g_pEnumClass != NULL) && pDependencyMT->IsEnum()))); // // WARNING: Changes in this algorithm are potential ReadyToRun breaking changes !!! // // Track whether field layout of this type depend on information outside its containing module and compilation unit // // It is a stronger condition than MethodTable::IsInheritanceChainLayoutFixedInCurrentVersionBubble(). // It has to remain fixed across versioning changes in the module dependencies. In particular, it does // not take into account NonVersionable attribute. Otherwise, adding NonVersionable attribute to existing // type would be ReadyToRun incompatible change. // bool modulesDefinedInSameDistributionUnit = ModulesAreDistributedAsAnIndivisibleUnit(pDependencyMT->GetModule(), GetModule()); bool dependsOnOtherModules = !modulesDefinedInSameDistributionUnit || pDependencyMT->GetClass()->HasLayoutDependsOnOtherModules(); if (dependsOnOtherModules) GetHalfBakedClass()->SetHasLayoutDependsOnOtherModules(); } BOOL MethodTableBuilder::NeedsAlignedBaseOffset() { STANDARD_VM_CONTRACT; // // WARNING: Changes in this algorithm are potential ReadyToRun breaking changes !!! // // This method returns whether the type needs aligned base offset in order to have layout resilient to // base class layout changes. // if (IsValueClass()) return FALSE; MethodTable * pParentMT = GetParentMethodTable(); // Trivial parents if (pParentMT == NULL || pParentMT == g_pObjectClass) return FALSE; // Always use the ReadyToRun field layout algorithm if the source IL image was ReadyToRun, independent on // whether ReadyToRun is actually enabled for the module. It is required to allow mixing and matching // ReadyToRun images with and without input bubble enabled. if (!GetModule()->GetPEAssembly()->IsReadyToRun()) { // Always use ReadyToRun field layout algorithm to produce ReadyToRun images return FALSE; } if (!ModulesAreDistributedAsAnIndivisibleUnit(GetModule(), pParentMT->GetModule()) || pParentMT->GetClass()->HasLayoutDependsOnOtherModules()) { return TRUE; } return FALSE; } #endif // FEATURE_READYTORUN //******************************************************************************* // // Used by BuildMethodTable // // Set the HasFinalizer and HasCriticalFinalizer flags // VOID MethodTableBuilder::SetFinalizationSemantics() { STANDARD_VM_CONTRACT; if (g_pObjectFinalizerMD && !IsInterface() && !IsValueClass()) { WORD slot = g_pObjectFinalizerMD->GetSlot(); // Objects not derived from Object will get marked as having a finalizer, if they have // sufficient virtual methods. This will only be an issue if they can be allocated // in the GC heap (which will cause all sorts of other problems). if (slot < bmtVT->cVirtualSlots && (*bmtVT)[slot].Impl().GetMethodDesc() != g_pObjectFinalizerMD) { GetHalfBakedMethodTable()->SetHasFinalizer(); // The need for a critical finalizer can be inherited from a parent. // Since we set this automatically for CriticalFinalizerObject // elsewhere, the code below is the means by which any derived class // picks up the attribute. if (HasParent() && GetParentMethodTable()->HasCriticalFinalizer()) { GetHalfBakedMethodTable()->SetHasCriticalFinalizer(); } } } } //******************************************************************************* // // Used by BuildMethodTable // // Perform relevant GC calculations for value classes // VOID MethodTableBuilder::HandleGCForValueClasses(MethodTable ** pByValueClassCache) { STANDARD_VM_CONTRACT; DWORD i; EEClass *pClass = GetHalfBakedClass(); MethodTable *pMT = GetHalfBakedMethodTable(); FieldDesc *pFieldDescList = pClass->GetFieldDescList(); // Note that for value classes, the following calculation is only appropriate // when the instance is in its "boxed" state. if (bmtFP->NumGCPointerSeries != 0) { CGCDescSeries *pSeries; CGCDescSeries *pHighest; pMT->SetContainsPointers(); // Copy the pointer series map from the parent CGCDesc::Init( (PVOID) pMT, bmtFP->NumGCPointerSeries ); if (bmtParent->NumParentPointerSeries != 0) { size_t ParentGCSize = CGCDesc::ComputeSize(bmtParent->NumParentPointerSeries); memcpy( (PVOID) (((BYTE*) pMT) - ParentGCSize), (PVOID) (((BYTE*) GetParentMethodTable()) - ParentGCSize), ParentGCSize - sizeof(size_t) // sizeof(size_t) is the NumSeries count ); } // Build the pointer series map for this pointers in this instance pSeries = ((CGCDesc*)pMT)->GetLowestSeries(); if (bmtFP->NumInstanceGCPointerFields) { // See gcdesc.h for an explanation of why we adjust by subtracting BaseSize pSeries->SetSeriesSize( (size_t) (bmtFP->NumInstanceGCPointerFields * TARGET_POINTER_SIZE) - (size_t) pMT->GetBaseSize()); pSeries->SetSeriesOffset(bmtFP->GCPointerFieldStart + OBJECT_SIZE); pSeries++; } // Insert GC info for fields which are by-value classes for (i = 0; i < bmtEnumFields->dwNumInstanceFields; i++) { if (pFieldDescList[i].IsByValue()) { MethodTable *pByValueMT = pByValueClassCache[i]; if (pByValueMT->ContainsPointers()) { // Offset of the by value class in the class we are building, does NOT include Object DWORD dwCurrentOffset = pFieldDescList[i].GetOffset_NoLogging(); // The by value class may have more than one pointer series CGCDescSeries * pByValueSeries = CGCDesc::GetCGCDescFromMT(pByValueMT)->GetLowestSeries(); SIZE_T dwNumByValueSeries = CGCDesc::GetCGCDescFromMT(pByValueMT)->GetNumSeries(); for (SIZE_T j = 0; j < dwNumByValueSeries; j++) { size_t cbSeriesSize; size_t cbSeriesOffset; _ASSERTE(pSeries <= CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries()); cbSeriesSize = pByValueSeries->GetSeriesSize(); // Add back the base size of the by value class, since it's being transplanted to this class cbSeriesSize += pByValueMT->GetBaseSize(); // Subtract the base size of the class we're building cbSeriesSize -= pMT->GetBaseSize(); // Set current series we're building pSeries->SetSeriesSize(cbSeriesSize); // Get offset into the value class of the first pointer field (includes a +Object) cbSeriesOffset = pByValueSeries->GetSeriesOffset(); // Add it to the offset of the by value class in our class cbSeriesOffset += dwCurrentOffset; pSeries->SetSeriesOffset(cbSeriesOffset); // Offset of field pSeries++; pByValueSeries++; } } } } // Adjust the inherited series - since the base size has increased by "# new field instance bytes", we need to // subtract that from all the series (since the series always has BaseSize subtracted for it - see gcdesc.h) pHighest = CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries(); while (pSeries <= pHighest) { CONSISTENCY_CHECK(CheckPointer(GetParentMethodTable())); pSeries->SetSeriesSize( pSeries->GetSeriesSize() - ((size_t) pMT->GetBaseSize() - (size_t) GetParentMethodTable()->GetBaseSize()) ); pSeries++; } _ASSERTE(pSeries-1 <= CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries()); } } //******************************************************************************* // // Used by BuildMethodTable // // Check for the presence of type equivalence. If present, make sure // it is permitted to be on this type. // void MethodTableBuilder::CheckForTypeEquivalence( WORD cBuildingInterfaceList, BuildingInterfaceInfo_t *pBuildingInterfaceList) { STANDARD_VM_CONTRACT; #ifdef FEATURE_TYPEEQUIVALENCE bmtProp->fIsTypeEquivalent = !!IsTypeDefEquivalent(GetCl(), GetModule()); if (bmtProp->fIsTypeEquivalent) { BOOL comImportOrEventInterface = IsComImport(); #ifdef FEATURE_COMINTEROP comImportOrEventInterface = comImportOrEventInterface || bmtProp->fComEventItfType; #endif // FEATURE_COMINTEROP BOOL fTypeEquivalentNotPermittedDueToType = !((comImportOrEventInterface && IsInterface()) || IsValueClass() || IsDelegate()); BOOL fTypeEquivalentNotPermittedDueToGenerics = bmtGenerics->HasInstantiation(); if (fTypeEquivalentNotPermittedDueToType || fTypeEquivalentNotPermittedDueToGenerics) { BuildMethodTableThrowException(IDS_CLASSLOAD_EQUIVALENTBADTYPE); } GetHalfBakedClass()->SetIsEquivalentType(); } bmtProp->fHasTypeEquivalence = bmtProp->fIsTypeEquivalent; if (!bmtProp->fHasTypeEquivalence) { // fHasTypeEquivalence flag is inherited from interfaces so we can quickly detect // types that implement type equivalent interfaces for (WORD i = 0; i < cBuildingInterfaceList; i++) { MethodTable *pItfMT = pBuildingInterfaceList[i].m_pMethodTable; if (pItfMT->HasTypeEquivalence()) { bmtProp->fHasTypeEquivalence = true; break; } } } if (!bmtProp->fHasTypeEquivalence) { // fHasTypeEquivalence flag is "inherited" from generic arguments so we can quickly detect // types like List<Str> where Str is a structure with the TypeIdentifierAttribute. if (bmtGenerics->HasInstantiation() && !bmtGenerics->IsTypicalTypeDefinition()) { Instantiation inst = bmtGenerics->GetInstantiation(); for (DWORD i = 0; i < inst.GetNumArgs(); i++) { if (inst[i].HasTypeEquivalence()) { bmtProp->fHasTypeEquivalence = true; break; } } } } #endif //FEATURE_TYPEEQUIVALENCE } //******************************************************************************* // // Used by BuildMethodTable // // Before we make the final leap, make sure we've allocated all memory needed to // fill out the RID maps. // VOID MethodTableBuilder::EnsureRIDMapsCanBeFilled() { STANDARD_VM_CONTRACT; DWORD i; // Rather than call Ensure***CanBeStored() hundreds of times, we // will call it once on the largest token we find. This relies // on an invariant that RidMaps don't use some kind of sparse // allocation. { mdMethodDef largest = mdMethodDefNil; DeclaredMethodIterator it(*this); while (it.Next()) { if (it.Token() > largest) { largest = it.Token(); } } if ( largest != mdMethodDefNil ) { GetModule()->EnsureMethodDefCanBeStored(largest); } } { mdFieldDef largest = mdFieldDefNil; for (i = 0; i < bmtMetaData->cFields; i++) { if (bmtMetaData->pFields[i] > largest) { largest = bmtMetaData->pFields[i]; } } if ( largest != mdFieldDefNil ) { GetModule()->EnsureFieldDefCanBeStored(largest); } } } #ifdef FEATURE_COMINTEROP //******************************************************************************* void MethodTableBuilder::GetCoClassAttribInfo() { STANDARD_VM_CONTRACT; // Retrieve the CoClassAttribute CA. HRESULT hr = GetCustomAttribute(GetCl(), WellKnownAttribute::CoClass, NULL, NULL); if (hr == S_OK) { // COM class interfaces may lazily populate the m_pCoClassForIntf field of EEClass. This field is // optional so we must ensure the optional field descriptor has been allocated. EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); SetIsComClassInterface(); } } #endif // FEATURE_COMINTEROP //******************************************************************************* void MethodTableBuilder::bmtMethodImplInfo::AddMethodImpl( bmtMDMethod * pImplMethod, bmtMethodHandle declMethod, mdToken declToken, StackingAllocator * pStackingAllocator) { STANDARD_VM_CONTRACT; CONSISTENCY_CHECK(CheckPointer(pImplMethod)); CONSISTENCY_CHECK(!declMethod.IsNull()); if (pIndex >= cMaxIndex) { DWORD newEntriesCount = 0; if (!ClrSafeInt<DWORD>::multiply(cMaxIndex, 2, newEntriesCount)) ThrowHR(COR_E_OVERFLOW); if (newEntriesCount == 0) newEntriesCount = 10; // If we have to grow this array, we will not free the old array before we clean up the BuildMethodTable operation // because this is a stacking allocator. However, the old array will get freed when all the stack allocator is freed. Entry *rgEntriesNew = new (pStackingAllocator) Entry[newEntriesCount]; memcpy(rgEntriesNew, rgEntries, sizeof(Entry) * cMaxIndex); // Start using newly allocated array. rgEntries = rgEntriesNew; cMaxIndex = newEntriesCount; } rgEntries[pIndex++] = Entry(pImplMethod, declMethod, declToken); } //******************************************************************************* // Returns TRUE if tok acts as a body for any methodImpl entry. FALSE, otherwise. BOOL MethodTableBuilder::bmtMethodImplInfo::IsBody(mdToken tok) { LIMITED_METHOD_CONTRACT; CONSISTENCY_CHECK(TypeFromToken(tok) == mdtMethodDef); for (DWORD i = 0; i < pIndex; i++) { if (GetBodyMethodDesc(i)->GetMemberDef() == tok) { return TRUE; } } return FALSE; } //******************************************************************************* BYTE * MethodTableBuilder::AllocateFromHighFrequencyHeap(S_SIZE_T cbMem) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; return (BYTE *)GetMemTracker()->Track( GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem(cbMem)); } //******************************************************************************* BYTE * MethodTableBuilder::AllocateFromLowFrequencyHeap(S_SIZE_T cbMem) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; return (BYTE *)GetMemTracker()->Track( GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(cbMem)); } //------------------------------------------------------------------------------- // Make best-case effort to obtain an image name for use in an error message. // // This routine must expect to be called before the this object is fully loaded. // It can return an empty if the name isn't available or the object isn't initialized // enough to get a name, but it mustn't crash. //------------------------------------------------------------------------------- LPCWSTR MethodTableBuilder::GetPathForErrorMessages() { STANDARD_VM_CONTRACT; return GetModule()->GetPathForErrorMessages(); } BOOL MethodTableBuilder::ChangesImplementationOfVirtualSlot(SLOT_INDEX idx) { STANDARD_VM_CONTRACT; BOOL fChangesImplementation = TRUE; _ASSERTE(idx < bmtVT->cVirtualSlots); if (HasParent() && idx < GetParentMethodTable()->GetNumVirtuals()) { _ASSERTE(idx < bmtParent->pSlotTable->GetSlotCount()); bmtMethodHandle VTImpl = (*bmtVT)[idx].Impl(); bmtMethodHandle ParentImpl = (*bmtParent)[idx].Impl(); fChangesImplementation = VTImpl != ParentImpl; // See code:MethodTableBuilder::SetupMethodTable2 and its logic // for handling MethodImpl's on parent classes which affect non interface // methods. if (!fChangesImplementation && (ParentImpl.GetSlotIndex() != idx)) fChangesImplementation = TRUE; // If the current vtable slot is MethodImpl, is it possible that it will be updated by // the ClassLoader::PropagateCovariantReturnMethodImplSlots. if (!fChangesImplementation && VTImpl.GetMethodDesc()->IsMethodImpl()) { // Note: to know exactly whether the slot will be updated or not, we would need to check the // PreserveBaseOverridesAttribute presence on the current vtable slot and in the worst case // on all of its ancestors. This is expensive, so we don't do that check here and accept // the fact that we get some false positives and end up sharing less vtable chunks. // Search the previous slots in the parent vtable for the same implementation. If it exists and it was // overriden, the ClassLoader::PropagateCovariantReturnMethodImplSlots will propagate the change to the current // slot (idx), so the implementation of it will change. MethodDesc* pParentMD = ParentImpl.GetMethodDesc(); for (SLOT_INDEX i = 0; i < idx; i++) { if ((*bmtParent)[i].Impl().GetMethodDesc() == pParentMD && (*bmtVT)[i].Impl().GetMethodDesc() != pParentMD) { fChangesImplementation = TRUE; break; } } } } return fChangesImplementation; } // Must be called prior to setting the value of any optional field on EEClass (on a debug build an assert will // fire if this invariant is violated). void MethodTableBuilder::EnsureOptionalFieldsAreAllocated(EEClass *pClass, AllocMemTracker *pamTracker, LoaderHeap *pHeap) { STANDARD_VM_CONTRACT; if (pClass->HasOptionalFields()) return; EEClassOptionalFields *pOptFields = (EEClassOptionalFields*) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(EEClassOptionalFields)))); // Initialize default values for all optional fields. pOptFields->Init(); // Attach optional fields to the class. pClass->AttachOptionalFields(pOptFields); } //--------------------------------------------------------------------------------------- // // Gather information about a generic type // - number of parameters // - variance annotations // - dictionaries // - sharability // //static void MethodTableBuilder::GatherGenericsInfo( Module * pModule, mdTypeDef cl, Instantiation inst, bmtGenericsInfo * bmtGenericsInfo, StackingAllocator*pStackingAllocator) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(GetThreadNULLOk() != NULL); PRECONDITION(CheckPointer(pModule)); PRECONDITION(CheckPointer(bmtGenericsInfo)); } CONTRACTL_END; IMDInternalImport * pInternalImport = pModule->GetMDImport(); // Enumerate the formal type parameters HENUMInternal hEnumGenericPars; HRESULT hr = pInternalImport->EnumInit(mdtGenericParam, cl, &hEnumGenericPars); if (FAILED(hr)) pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); DWORD numGenericArgs = pInternalImport->EnumGetCount(&hEnumGenericPars); // Work out what kind of EEClass we're creating w.r.t. generics. If there // are no generics involved this will be a VMFLAG_NONGENERIC. BOOL fHasVariance = FALSE; if (numGenericArgs > 0) { // Generic type verification { DWORD dwAttr; mdToken tkParent; if (FAILED(pInternalImport->GetTypeDefProps(cl, &dwAttr, &tkParent))) { pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // A generic with explicit layout is not allowed. if (IsTdExplicitLayout(dwAttr)) { pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_EXPLICIT_GENERIC); } } bmtGenericsInfo->numDicts = 1; mdGenericParam tkTyPar; bmtGenericsInfo->pVarianceInfo = new (pStackingAllocator) BYTE[numGenericArgs]; // If it has generic arguments but none have been specified, then load the instantiation at the formals if (inst.IsEmpty()) { bmtGenericsInfo->fTypicalInstantiation = TRUE; S_UINT32 scbAllocSize = S_UINT32(numGenericArgs) * S_UINT32(sizeof(TypeHandle)); TypeHandle * genericArgs = (TypeHandle *) pStackingAllocator->Alloc(scbAllocSize); inst = Instantiation(genericArgs, numGenericArgs); bmtGenericsInfo->fSharedByGenericInstantiations = FALSE; } else { bmtGenericsInfo->fTypicalInstantiation = FALSE; bmtGenericsInfo->fSharedByGenericInstantiations = TypeHandle::IsCanonicalSubtypeInstantiation(inst); _ASSERTE(bmtGenericsInfo->fSharedByGenericInstantiations == ClassLoader::IsSharableInstantiation(inst)); #ifdef _DEBUG // Set typical instantiation MethodTable { MethodTable * pTypicalInstantiationMT = pModule->LookupTypeDef(cl).AsMethodTable(); // Typical instantiation was already loaded by code:ClassLoader::LoadApproxTypeThrowing _ASSERTE(pTypicalInstantiationMT != NULL); bmtGenericsInfo->dbg_pTypicalInstantiationMT = pTypicalInstantiationMT; } #endif //_DEBUG } TypeHandle * pDestInst = (TypeHandle *)inst.GetRawArgs(); { // Protect multi-threaded access to Module.m_GenericParamToDescMap. Other threads may be loading the same type // to break type recursion dead-locks CrstHolder ch(&pModule->GetClassLoader()->m_AvailableTypesLock); for (unsigned int i = 0; i < numGenericArgs; i++) { pInternalImport->EnumNext(&hEnumGenericPars, &tkTyPar); DWORD flags; if (FAILED(pInternalImport->GetGenericParamProps(tkTyPar, NULL, &flags, NULL, NULL, NULL))) { pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } if (bmtGenericsInfo->fTypicalInstantiation) { // code:Module.m_GenericParamToDescMap maps generic parameter RIDs to TypeVarTypeDesc // instances so that we do not leak by allocating them all over again, if the type // repeatedly fails to load. TypeVarTypeDesc* pTypeVarTypeDesc = pModule->LookupGenericParam(tkTyPar); if (pTypeVarTypeDesc == NULL) { // Do NOT use the alloc tracker for this memory as we need it stay allocated even if the load fails. void* mem = (void*)pModule->GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(TypeVarTypeDesc))); pTypeVarTypeDesc = new (mem) TypeVarTypeDesc(pModule, cl, i, tkTyPar); pModule->StoreGenericParamThrowing(tkTyPar, pTypeVarTypeDesc); } pDestInst[i] = TypeHandle(pTypeVarTypeDesc); } DWORD varianceAnnotation = flags & gpVarianceMask; bmtGenericsInfo->pVarianceInfo[i] = static_cast<BYTE>(varianceAnnotation); if (varianceAnnotation != gpNonVariant) { if (varianceAnnotation != gpContravariant && varianceAnnotation != gpCovariant) { pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADVARIANCE); } else { fHasVariance = TRUE; } } } } if (!fHasVariance) bmtGenericsInfo->pVarianceInfo = NULL; } else { bmtGenericsInfo->fTypicalInstantiation = FALSE; bmtGenericsInfo->fSharedByGenericInstantiations = FALSE; bmtGenericsInfo->numDicts = 0; } bmtGenericsInfo->fContainsGenericVariables = MethodTable::ComputeContainsGenericVariables(inst); SigTypeContext typeContext(inst, Instantiation()); bmtGenericsInfo->typeContext = typeContext; } // MethodTableBuilder::GatherGenericsInfo //======================================================================= // This is invoked from the class loader while building the internal structures for a type // This function should check if explicit layout metadata exists. // // Returns: // TRUE - yes, there's layout metadata // FALSE - no, there's no layout. // fail - throws a typeload exception // // If TRUE, // *pNLType gets set to nltAnsi or nltUnicode // *pPackingSize declared packing size // *pfExplicitoffsets offsets explicit in metadata or computed? //======================================================================= BOOL HasLayoutMetadata(Assembly* pAssembly, IMDInternalImport* pInternalImport, mdTypeDef cl, MethodTable* pParentMT, BYTE* pPackingSize, BYTE* pNLTType, BOOL* pfExplicitOffsets) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; PRECONDITION(CheckPointer(pInternalImport)); PRECONDITION(CheckPointer(pPackingSize)); PRECONDITION(CheckPointer(pNLTType)); PRECONDITION(CheckPointer(pfExplicitOffsets)); } CONTRACTL_END; HRESULT hr; ULONG clFlags; if (FAILED(pInternalImport->GetTypeDefProps(cl, &clFlags, NULL))) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } if (IsTdAutoLayout(clFlags)) { return FALSE; } else if (IsTdSequentialLayout(clFlags)) { *pfExplicitOffsets = FALSE; } else if (IsTdExplicitLayout(clFlags)) { *pfExplicitOffsets = TRUE; } else { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // We now know this class has seq. or explicit layout. Ensure the parent does too. if (pParentMT && !(pParentMT->IsObjectClass() || pParentMT->IsValueTypeClass()) && !(pParentMT->HasLayout())) pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); if (IsTdAnsiClass(clFlags)) { *pNLTType = nltAnsi; } else if (IsTdUnicodeClass(clFlags)) { *pNLTType = nltUnicode; } else if (IsTdAutoClass(clFlags)) { #ifdef TARGET_WINDOWS *pNLTType = nltUnicode; #else *pNLTType = nltAnsi; // We don't have a utf8 charset in metadata yet, but ANSI == UTF-8 off-Windows #endif } else { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } DWORD dwPackSize; hr = pInternalImport->GetClassPackSize(cl, &dwPackSize); if (FAILED(hr) || dwPackSize == 0) dwPackSize = DEFAULT_PACKING_SIZE; // This has to be reduced to a BYTE value, so we had better make sure it fits. If // not, we'll throw an exception instead of trying to munge the value to what we // think the user might want. if (!FitsInU1((UINT64)(dwPackSize))) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } *pPackingSize = (BYTE)dwPackSize; return TRUE; } //--------------------------------------------------------------------------------------- // // This service is called for normal classes -- and for the pseudo class we invent to // hold the module's public members. // //static TypeHandle ClassLoader::CreateTypeHandleForTypeDefThrowing( Module * pModule, mdTypeDef cl, Instantiation inst, AllocMemTracker * pamTracker) { CONTRACT(TypeHandle) { STANDARD_VM_CHECK; PRECONDITION(GetThreadNULLOk() != NULL); PRECONDITION(CheckPointer(pModule)); POSTCONDITION(!RETVAL.IsNull()); POSTCONDITION(CheckPointer(RETVAL.GetMethodTable())); } CONTRACT_END; MethodTable * pMT = NULL; MethodTable * pParentMethodTable = NULL; SigPointer parentInst; mdTypeDef tdEnclosing = mdTypeDefNil; DWORD cInterfaces; BuildingInterfaceInfo_t * pInterfaceBuildInfo = NULL; IMDInternalImport * pInternalImport = NULL; LayoutRawFieldInfo * pLayoutRawFieldInfos = NULL; MethodTableBuilder::bmtGenericsInfo genericsInfo; Assembly * pAssembly = pModule->GetAssembly(); pInternalImport = pModule->GetMDImport(); if (TypeFromToken(cl) != mdtTypeDef || !pInternalImport->IsValidToken(cl)) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // GetCheckpoint for the thread-based allocator // This checkpoint provides a scope for all transient allocations of data structures // used during class loading. // <NICE> Ideally a debug/checked build should pass around tokens indicating the Checkpoint // being used and check these dynamically </NICE> ACQUIRE_STACKING_ALLOCATOR(pStackingAllocator); // Gather up generics info MethodTableBuilder::GatherGenericsInfo(pModule, cl, inst, &genericsInfo, pStackingAllocator); Module * pLoaderModule = pModule; if (!inst.IsEmpty()) { pLoaderModule = ClassLoader::ComputeLoaderModuleWorker( pModule, cl, inst, Instantiation()); pLoaderModule->GetLoaderAllocator()->EnsureInstantiation(pModule, inst); } LoaderAllocator * pAllocator = pLoaderModule->GetLoaderAllocator(); { // As this is loading a parent type, we are allowed to override the load type limit. OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOAD_APPROXPARENTS); pParentMethodTable = LoadApproxParentThrowing(pModule, cl, &parentInst, &genericsInfo.typeContext); } if (pParentMethodTable != NULL) { // Since methods on System.Array assume the layout of arrays, we can not allow // subclassing of arrays, it is sealed from the users point of view. // Value types and enums should be sealed - disable inheritting from them (we cannot require sealed // flag because of AppCompat) if (pParentMethodTable->IsSealed() || (pParentMethodTable == g_pArrayClass) || pParentMethodTable->IsValueType()) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_SEALEDPARENT); } DWORD dwTotalDicts = genericsInfo.numDicts + pParentMethodTable->GetNumDicts(); if (!FitsIn<WORD>(dwTotalDicts)) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_TOOMANYGENERICARGS); } genericsInfo.numDicts = static_cast<WORD>(dwTotalDicts); } GetEnclosingClassThrowing(pInternalImport, pModule, cl, &tdEnclosing); BYTE nstructPackingSize = 0, nstructNLT = 0; BOOL fExplicitOffsets = FALSE; // NOTE: HasLayoutMetadata does not load classes BOOL fHasLayout = !genericsInfo.fContainsGenericVariables && HasLayoutMetadata( pModule->GetAssembly(), pInternalImport, cl, pParentMethodTable, &nstructPackingSize, &nstructNLT, &fExplicitOffsets); BOOL fIsEnum = ((g_pEnumClass != NULL) && (pParentMethodTable == g_pEnumClass)); // enums may not have layout because they derive from g_pEnumClass and that has no layout // this is enforced by HasLayoutMetadata above _ASSERTE(!(fIsEnum && fHasLayout)); // This is a delegate class if it derives from MulticastDelegate (we do not allow single cast delegates) BOOL fIsDelegate = pParentMethodTable && pParentMethodTable == g_pMulticastDelegateClass; // Create a EEClass entry for it, filling out a few fields, such as the parent class token // (and the generic type should we be creating an instantiation) EEClass * pClass = MethodTableBuilder::CreateClass( pModule, cl, fHasLayout, fIsDelegate, fIsEnum, &genericsInfo, pAllocator, pamTracker); if ((pParentMethodTable != NULL) && (pParentMethodTable == g_pDelegateClass)) { // Note we do not allow single cast delegates if (pModule->GetAssembly() != SystemDomain::SystemAssembly()) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, BFA_CANNOT_INHERIT_FROM_DELEGATE); } #ifdef _DEBUG // Only MultiCastDelegate should inherit from Delegate LPCUTF8 className; LPCUTF8 nameSpace; if (FAILED(pInternalImport->GetNameOfTypeDef(cl, &className, &nameSpace))) { className = nameSpace = "Invalid TypeDef record"; } BAD_FORMAT_NOTHROW_ASSERT(strcmp(className, "MulticastDelegate") == 0); #endif } if (fIsDelegate) { if (!pClass->IsSealed()) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, BFA_DELEGATE_CLASS_NOTSEALED); } pClass->SetIsDelegate(); } if (tdEnclosing != mdTypeDefNil) { pClass->SetIsNested(); THROW_BAD_FORMAT_MAYBE(IsTdNested(pClass->GetProtection()), VLDTR_E_TD_ENCLNOTNESTED, pModule); } else if (IsTdNested(pClass->GetProtection())) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // We only permit generic interfaces and delegates to have variant type parameters if (genericsInfo.pVarianceInfo != NULL && !pClass->IsInterface() && !fIsDelegate) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_VARIANCE_CLASS); } // Now load all the interfaces HENUMInternalHolder hEnumInterfaceImpl(pInternalImport); hEnumInterfaceImpl.EnumInit(mdtInterfaceImpl, cl); cInterfaces = pInternalImport->EnumGetCount(&hEnumInterfaceImpl); if (cInterfaces != 0) { DWORD i; // Allocate the BuildingInterfaceList table pInterfaceBuildInfo = new (pStackingAllocator) BuildingInterfaceInfo_t[cInterfaces]; mdInterfaceImpl ii; for (i = 0; pInternalImport->EnumNext(&hEnumInterfaceImpl, &ii); i++) { // Get properties on this interface mdTypeRef crInterface; if (FAILED(pInternalImport->GetTypeOfInterfaceImpl(ii, &crInterface))) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // validate the token mdToken crIntType = (RidFromToken(crInterface) && pInternalImport->IsValidToken(crInterface)) ? TypeFromToken(crInterface) : 0; switch (crIntType) { case mdtTypeDef: case mdtTypeRef: case mdtTypeSpec: break; default: pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_INTERFACENULL); } TypeHandle intType; { OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOAD_APPROXPARENTS); intType = LoadApproxTypeThrowing(pModule, crInterface, NULL, &genericsInfo.typeContext); } pInterfaceBuildInfo[i].m_pMethodTable = intType.AsMethodTable(); if (pInterfaceBuildInfo[i].m_pMethodTable == NULL) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_INTERFACENULL); } // Ensure this is an interface if (!pInterfaceBuildInfo[i].m_pMethodTable->IsInterface()) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_NOTINTERFACE); } // Check interface for use of variant type parameters if ((genericsInfo.pVarianceInfo != NULL) && (TypeFromToken(crInterface) == mdtTypeSpec)) { ULONG cSig; PCCOR_SIGNATURE pSig; if (FAILED(pInternalImport->GetTypeSpecFromToken(crInterface, &pSig, &cSig))) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // Interfaces behave covariantly if (!EEClass::CheckVarianceInSig( genericsInfo.GetNumGenericArgs(), genericsInfo.pVarianceInfo, pModule, SigPointer(pSig, cSig), gpCovariant)) { pAssembly->ThrowTypeLoadException( pInternalImport, cl, IDS_CLASSLOAD_VARIANCE_IN_INTERFACE); } } } _ASSERTE(i == cInterfaces); } if (fHasLayout || /* Variant delegates should not have any instance fields of the variant. type parameter. For now, we just completely disallow all fields even if they are non-variant or static, as it is not a useful scenario. @TODO: A more logical place for this check would be in MethodTableBuilder::EnumerateClassMembers() */ (fIsDelegate && genericsInfo.pVarianceInfo)) { // check for fields and variance ULONG cFields; HENUMInternalHolder hEnumField(pInternalImport); hEnumField.EnumInit(mdtFieldDef, cl); cFields = pInternalImport->EnumGetCount(&hEnumField); if ((cFields != 0) && fIsDelegate && (genericsInfo.pVarianceInfo != NULL)) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_VARIANCE_IN_DELEGATE); } if (fHasLayout) { // Though we fail on this condition, we should never run into it. CONSISTENCY_CHECK(nstructPackingSize != 0); // MD Val check: PackingSize if((nstructPackingSize == 0) || (nstructPackingSize > 128) || (nstructPackingSize & (nstructPackingSize-1))) { THROW_BAD_FORMAT_MAYBE(!"ClassLayout:Invalid PackingSize", BFA_BAD_PACKING_SIZE, pModule); pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } pLayoutRawFieldInfos = (LayoutRawFieldInfo *)pStackingAllocator->Alloc( (S_UINT32(1) + S_UINT32(cFields)) * S_UINT32(sizeof(LayoutRawFieldInfo))); { // Warning: this can load classes CONTRACT_VIOLATION(LoadsTypeViolation); // Set a flag that allows us to break dead-locks that are result of the LoadsTypeViolation ThreadStateNCStackHolder tsNC(TRUE, Thread::TSNC_LoadsTypeViolation); EEClassLayoutInfo::CollectLayoutFieldMetadataThrowing( cl, nstructPackingSize, nstructNLT, fExplicitOffsets, pParentMethodTable, cFields, &hEnumField, pModule, &genericsInfo.typeContext, &(((LayoutEEClass *)pClass)->m_LayoutInfo), pLayoutRawFieldInfos, pAllocator, pamTracker); } } } // Resolve this class, given that we know now that all of its dependencies are loaded and resolved. // !!! This must be the last thing in this TRY block: if MethodTableBuilder succeeds, it has published the class // and there is no going back. MethodTableBuilder builder( NULL, pClass, pStackingAllocator, pamTracker); pMT = builder.BuildMethodTableThrowing( pAllocator, pLoaderModule, pModule, cl, pInterfaceBuildInfo, pLayoutRawFieldInfos, pParentMethodTable, &genericsInfo, parentInst, (WORD)cInterfaces); RETURN(TypeHandle(pMT)); } // ClassLoader::CreateTypeHandleForTypeDefThrowing
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // File: METHODTABLEBUILDER.CPP // // // // ============================================================================ #include "common.h" #include "methodtablebuilder.h" #include "sigbuilder.h" #include "dllimport.h" #include "fieldmarshaler.h" #include "encee.h" #include "ecmakey.h" #include "customattribute.h" #include "typestring.h" //******************************************************************************* // Helper functions to sort GCdescs by offset (decending order) int __cdecl compareCGCDescSeries(const void *arg1, const void *arg2) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; CGCDescSeries* gcInfo1 = (CGCDescSeries*) arg1; CGCDescSeries* gcInfo2 = (CGCDescSeries*) arg2; return (int)(gcInfo2->GetSeriesOffset() - gcInfo1->GetSeriesOffset()); } //******************************************************************************* const char* FormatSig(MethodDesc* pMD, LoaderHeap *pHeap, AllocMemTracker *pamTracker); #ifdef _DEBUG unsigned g_dupMethods = 0; #endif // _DEBUG //========================================================================== // This function is very specific about how it constructs a EEClass. It first // determines the necessary size of the vtable and the number of statics that // this class requires. The necessary memory is then allocated for a EEClass // and its vtable and statics. The class members are then initialized and // the memory is then returned to the caller // // LPEEClass CreateClass() // // Parameters : // [in] scope - scope of the current class not the one requested to be opened // [in] cl - class token of the class to be created. // [out] ppEEClass - pointer to pointer to hold the address of the EEClass // allocated in this function. // Return : returns an HRESULT indicating the success of this function. // // This parameter has been removed but might need to be reinstated if the // global for the metadata loader is removed. // [in] pIMLoad - MetaDataLoader class/object for the current scope. //========================================================================== /*static*/ EEClass * MethodTableBuilder::CreateClass( Module *pModule, mdTypeDef cl, BOOL fHasLayout, BOOL fDelegate, BOOL fIsEnum, const MethodTableBuilder::bmtGenericsInfo *bmtGenericsInfo, LoaderAllocator * pAllocator, AllocMemTracker *pamTracker) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(!(fHasLayout && fDelegate)); PRECONDITION(!(fHasLayout && fIsEnum)); PRECONDITION(CheckPointer(bmtGenericsInfo)); } CONTRACTL_END; EEClass *pEEClass = NULL; IMDInternalImport *pInternalImport; //<TODO>============================================================================ // vtabsize and static size need to be converted from pointer sizes to #'s // of bytes this will be very important for 64 bit NT! // We will need to call on IMetaDataLoad to get these sizes and fill out the // tables // From the classref call on metadata to resolve the classref and check scope // to make sure that this class is in the same scope otherwise we need to open // a new scope and possibly file. // if the scopes are different call the code to load a new file and get the new scope // scopes are the same so we can use the existing scope to get the class info // This method needs to be fleshed out.more it currently just returns enough // space for the defined EEClass and the vtable and statics are not set. //=============================================================================</TODO> if (fHasLayout) { pEEClass = new (pAllocator->GetLowFrequencyHeap(), pamTracker) LayoutEEClass(); } else if (fDelegate) { pEEClass = new (pAllocator->GetLowFrequencyHeap(), pamTracker) DelegateEEClass(); } else { pEEClass = new (pAllocator->GetLowFrequencyHeap(), pamTracker) EEClass(sizeof(EEClass)); } DWORD dwAttrClass = 0; mdToken tkExtends = mdTokenNil; // Set up variance info if (bmtGenericsInfo->pVarianceInfo) { // Variance info is an optional field on EEClass, so ensure the optional field descriptor has been // allocated. EnsureOptionalFieldsAreAllocated(pEEClass, pamTracker, pAllocator->GetLowFrequencyHeap()); pEEClass->SetVarianceInfo((BYTE*) pamTracker->Track( pAllocator->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(bmtGenericsInfo->GetNumGenericArgs())))); memcpy(pEEClass->GetVarianceInfo(), bmtGenericsInfo->pVarianceInfo, bmtGenericsInfo->GetNumGenericArgs()); } pInternalImport = pModule->GetMDImport(); if (pInternalImport == NULL) COMPlusThrowHR(COR_E_TYPELOAD); IfFailThrow(pInternalImport->GetTypeDefProps( cl, &dwAttrClass, &tkExtends)); pEEClass->m_dwAttrClass = dwAttrClass; // MDVal check: can't be both tdSequentialLayout and tdExplicitLayout if((dwAttrClass & tdLayoutMask) == tdLayoutMask) COMPlusThrowHR(COR_E_TYPELOAD); if (IsTdInterface(dwAttrClass)) { // MDVal check: must have nil tkExtends and must be tdAbstract if((tkExtends & 0x00FFFFFF)||(!IsTdAbstract(dwAttrClass))) COMPlusThrowHR(COR_E_TYPELOAD); } if (fHasLayout) pEEClass->SetHasLayout(); if (IsTdWindowsRuntime(dwAttrClass)) { COMPlusThrowHR(COR_E_TYPELOAD); } #ifdef _DEBUG pModule->GetClassLoader()->m_dwDebugClasses++; #endif return pEEClass; } //******************************************************************************* // // Create a hash of all methods in this class. The hash is from method name to MethodDesc. // MethodTableBuilder::MethodNameHash * MethodTableBuilder::CreateMethodChainHash( MethodTable *pMT) { STANDARD_VM_CONTRACT; MethodNameHash *pHash = new (GetStackingAllocator()) MethodNameHash(); pHash->Init(pMT->GetNumVirtuals(), GetStackingAllocator()); unsigned numVirtuals = GetParentMethodTable()->GetNumVirtuals(); for (unsigned i = 0; i < numVirtuals; ++i) { bmtMethodSlot &slot = (*bmtParent->pSlotTable)[i]; bmtRTMethod * pMethod = slot.Decl().AsRTMethod(); const MethodSignature &sig = pMethod->GetMethodSignature(); pHash->Insert(sig.GetName(), pMethod); } // Success return pHash; } //******************************************************************************* // // Find a method in this class hierarchy - used ONLY by the loader during layout. Do not use at runtime. // // *ppMemberSignature must be NULL on entry - it and *pcMemberSignature may or may not be filled out // // ppMethodDesc will be filled out with NULL if no matching method in the hierarchy is found. // // Returns FALSE if there was an error of some kind. // // pMethodConstraintsMatch receives the result of comparing the method constraints. MethodTableBuilder::bmtRTMethod * MethodTableBuilder::LoaderFindMethodInParentClass( const MethodSignature & methodSig, BOOL * pMethodConstraintsMatch) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(methodSig.GetModule())); PRECONDITION(CheckPointer(methodSig.GetSignature())); PRECONDITION(HasParent()); PRECONDITION(methodSig.GetSignatureLength() != 0); } CONTRACTL_END; //#if 0 MethodNameHash::HashEntry * pEntry; // Have we created a hash of all the methods in the class chain? if (bmtParent->pParentMethodHash == NULL) { // There may be such a method, so we will now create a hash table to reduce the pain for // further lookups // <TODO> Are we really sure that this is worth doing? </TODO> bmtParent->pParentMethodHash = CreateMethodChainHash(GetParentMethodTable()); } // We have a hash table, so use it pEntry = bmtParent->pParentMethodHash->Lookup(methodSig.GetName()); // Traverse the chain of all methods with this name while (pEntry != NULL) { bmtRTMethod * pEntryMethod = pEntry->m_data; const MethodSignature & entrySig = pEntryMethod->GetMethodSignature(); // Note instantiation info { if (methodSig.Equivalent(entrySig)) { if (pMethodConstraintsMatch != NULL) { // Check the constraints are consistent, // and return the result to the caller. // We do this here to avoid recalculating pSubst. *pMethodConstraintsMatch = MetaSig::CompareMethodConstraints( &methodSig.GetSubstitution(), methodSig.GetModule(), methodSig.GetToken(), &entrySig.GetSubstitution(), entrySig.GetModule(), entrySig.GetToken()); } return pEntryMethod; } } // Advance to next item in the hash chain which has the same name pEntry = bmtParent->pParentMethodHash->FindNext(pEntry); } //#endif //@TODO: Move to this code, as the use of a HashTable is broken; overriding semantics //@TODO: require matching against the most-derived slot of a given name and signature, //@TODO: (which deals specifically with newslot methods with identical name and sig), but //@TODO: HashTables are by definition unordered and so we've only been getting by with the //@TODO: implementation being compatible with the order in which methods were added to //@TODO: the HashTable in CreateMethodChainHash. #if 0 bmtParentInfo::Iterator it(bmtParent->IterateSlots()); it.MoveTo(static_cast<size_t>(GetParentMethodTable()->GetNumVirtuals())); while (it.Prev()) { bmtMethodHandle decl(it->Decl()); const MethodSignature &declSig(decl.GetMethodSignature()); if (declSig == methodSig) { if (pMethodConstraintsMatch != NULL) { // Check the constraints are consistent, // and return the result to the caller. // We do this here to avoid recalculating pSubst. *pMethodConstraintsMatch = MetaSig::CompareMethodConstraints( &methodSig.GetSubstitution(), methodSig.GetModule(), methodSig.GetToken(), &declSig.GetSubstitution(), declSig.GetModule(), declSig.GetToken()); } return decl.AsRTMethod(); } } #endif // 0 return NULL; } //******************************************************************************* // // Given an interface map to fill out, expand pNewInterface (and its sub-interfaces) into it, increasing // pdwInterfaceListSize as appropriate, and avoiding duplicates. // void MethodTableBuilder::ExpandApproxInterface( bmtInterfaceInfo * bmtInterface, // out parameter, various parts cumulatively written to. const Substitution * pNewInterfaceSubstChain, MethodTable * pNewInterface, InterfaceDeclarationScope declScope COMMA_INDEBUG(MethodTable * dbg_pClassMT)) { STANDARD_VM_CONTRACT; if (pNewInterface->HasVirtualStaticMethods()) { bmtProp->fHasVirtualStaticMethods = TRUE; } //#ExpandingInterfaces // We expand the tree of inherited interfaces into a set by adding the // current node BEFORE expanding the parents of the current node. // ****** This must be consistent with code:ExpandExactInterface ******* // ****** This must be consistent with code:ClassCompat::MethodTableBuilder::BuildInteropVTable_ExpandInterface ******* // The interface list contains the fully expanded set of interfaces from the parent then // we start adding all the interfaces we declare. We need to know which interfaces // we declare but do not need duplicates of the ones we declare. This means we can // duplicate our parent entries. // Is it already present in the list? for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtInterfaceEntry * pItfEntry = &bmtInterface->pInterfaceMap[i]; bmtRTType * pItfType = pItfEntry->GetInterfaceType(); // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions(pItfType->GetMethodTable(), pNewInterface, &pItfType->GetSubstitution(), pNewInterfaceSubstChain, &newVisited)) { if (declScope.fIsInterfaceDeclaredOnType) { pItfEntry->IsDeclaredOnType() = true; } #ifdef _DEBUG //#InjectInterfaceDuplicates_ApproxInterfaces // We can inject duplicate interfaces in check builds. // Has to be in sync with code:#InjectInterfaceDuplicates_Main if (((dbg_pClassMT == NULL) && bmtInterface->dbg_fShouldInjectInterfaceDuplicates) || ((dbg_pClassMT != NULL) && dbg_pClassMT->Debug_HasInjectedInterfaceDuplicates())) { // The injected duplicate interface should have the same status 'ImplementedByParent' as // the original interface (can be false if the interface is implemented indirectly twice) declScope.fIsInterfaceDeclaredOnParent = pItfEntry->IsImplementedByParent(); // Just pretend we didn't find this match, but mark all duplicates as 'DeclaredOnType' if // needed continue; } #endif //_DEBUG return; // found it, don't add it again } } bmtRTType * pNewItfType = new (GetStackingAllocator()) bmtRTType(*pNewInterfaceSubstChain, pNewInterface); if (bmtInterface->dwInterfaceMapSize >= bmtInterface->dwInterfaceMapAllocated) { // // Grow the array of interfaces // S_UINT32 dwNewAllocated = S_UINT32(2) * S_UINT32(bmtInterface->dwInterfaceMapAllocated) + S_UINT32(5); if (dwNewAllocated.IsOverflow()) { BuildMethodTableThrowException(COR_E_OVERFLOW); } S_SIZE_T safeSize = S_SIZE_T(sizeof(bmtInterfaceEntry)) * S_SIZE_T(dwNewAllocated.Value()); if (safeSize.IsOverflow()) { BuildMethodTableThrowException(COR_E_OVERFLOW); } bmtInterfaceEntry * pNewMap = (bmtInterfaceEntry *)new (GetStackingAllocator()) BYTE[safeSize.Value()]; memcpy(pNewMap, bmtInterface->pInterfaceMap, sizeof(bmtInterfaceEntry) * bmtInterface->dwInterfaceMapAllocated); bmtInterface->pInterfaceMap = pNewMap; bmtInterface->dwInterfaceMapAllocated = dwNewAllocated.Value(); } // The interface map memory was just allocated as an array of bytes, so we use // in place new to init the new map entry. No need to do anything with the result, // so just chuck it. CONSISTENCY_CHECK(bmtInterface->dwInterfaceMapSize < bmtInterface->dwInterfaceMapAllocated); new ((void *)&bmtInterface->pInterfaceMap[bmtInterface->dwInterfaceMapSize]) bmtInterfaceEntry(pNewItfType, declScope); bmtInterface->dwInterfaceMapSize++; // Checking for further expanded interfaces isn't necessary for the system module, as we can rely on the C# compiler // to have found all of the interfaces that the type implements, and to place them in the interface list itself. Also // we can assume no ambiguous interfaces // Code related to this is marked with #SpecialCorelibInterfaceExpansionAlgorithm if (!(GetModule()->IsSystem() && IsValueClass())) { // Make sure to pass in the substitution from the new itf type created above as // these methods assume that substitutions are allocated in the stacking heap, // not the stack. InterfaceDeclarationScope declaredItfScope(declScope.fIsInterfaceDeclaredOnParent, false); ExpandApproxDeclaredInterfaces( bmtInterface, bmtTypeHandle(pNewItfType), declaredItfScope COMMA_INDEBUG(dbg_pClassMT)); } } // MethodTableBuilder::ExpandApproxInterface //******************************************************************************* // Arguments: // dbg_pClassMT - Class on which the interfaces are declared (either explicitly or implicitly). // It will never be an interface. It may be NULL (if it is the type being built). void MethodTableBuilder::ExpandApproxDeclaredInterfaces( bmtInterfaceInfo * bmtInterface, // out parameter, various parts cumulatively written to. bmtTypeHandle thType, InterfaceDeclarationScope declScope COMMA_INDEBUG(MethodTable * dbg_pClassMT)) { STANDARD_VM_CONTRACT; _ASSERTE((dbg_pClassMT == NULL) || !dbg_pClassMT->IsInterface()); HRESULT hr; // Iterate the list of interfaces declared by thType and add them to the map. InterfaceImplEnum ie(thType.GetModule(), thType.GetTypeDefToken(), &thType.GetSubstitution()); while ((hr = ie.Next()) == S_OK) { MethodTable *pGenericIntf = ClassLoader::LoadApproxTypeThrowing( thType.GetModule(), ie.CurrentToken(), NULL, NULL).GetMethodTable(); CONSISTENCY_CHECK(pGenericIntf->IsInterface()); ExpandApproxInterface(bmtInterface, ie.CurrentSubst(), pGenericIntf, declScope COMMA_INDEBUG(dbg_pClassMT)); } if (FAILED(hr)) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } // MethodTableBuilder::ExpandApproxDeclaredInterfaces //******************************************************************************* void MethodTableBuilder::ExpandApproxInheritedInterfaces( bmtInterfaceInfo * bmtInterface, bmtRTType * pParentType) { STANDARD_VM_CONTRACT; // Expand interfaces in superclasses first. Interfaces inherited from parents // must have identical indexes as in the parent. bmtRTType * pParentOfParent = pParentType->GetParentType(); //#InterfaceMap_SupersetOfParent // We have to load parent's interface map the same way the parent did it (as open type). // Further code depends on this: // code:#InterfaceMap_UseParentInterfaceImplementations // We check that it is truth: // code:#ApproxInterfaceMap_SupersetOfParent // code:#ExactInterfaceMap_SupersetOfParent // //#InterfaceMap_CanonicalSupersetOfParent // Note that canonical instantiation of parent can have different interface instantiations in the // interface map than derived type: // class MyClass<T> : MyBase<string, T>, I<T> // class MyBase<U, V> : I<U> // Type MyClass<_Canon> has MyBase<_Canon,_Canon> as parent. The interface maps are: // MyBase<_Canon,_Canon> ... I<_Canon> // MyClass<_Canon> ... I<string> (#1) // I<_Canon> (#2) // The I's instantiation I<string> (#1) in MyClass and I<_Canon> from MyBase are not the same // instantiations. // Backup parent substitution Substitution parentSubstitution = pParentType->GetSubstitution(); // Make parent an open type pParentType->SetSubstitution(Substitution()); if (pParentOfParent != NULL) { ExpandApproxInheritedInterfaces(bmtInterface, pParentOfParent); } InterfaceDeclarationScope declScope(true, false); ExpandApproxDeclaredInterfaces( bmtInterface, bmtTypeHandle(pParentType), declScope COMMA_INDEBUG(pParentType->GetMethodTable())); // Make sure we loaded the same number of interfaces as the parent type itself CONSISTENCY_CHECK(pParentType->GetMethodTable()->GetNumInterfaces() == bmtInterface->dwInterfaceMapSize); // Restore parent's substitution pParentType->SetSubstitution(parentSubstitution); } // MethodTableBuilder::ExpandApproxInheritedInterfaces //******************************************************************************* // Fill out a fully expanded interface map, such that if we are declared to // implement I3, and I3 extends I1,I2, then I1,I2 are added to our list if // they are not already present. void MethodTableBuilder::LoadApproxInterfaceMap() { STANDARD_VM_CONTRACT; bmtInterface->dwInterfaceMapSize = 0; #ifdef _DEBUG //#InjectInterfaceDuplicates_Main // We will inject duplicate interfaces in check builds if env. var. // COMPLUS_INTERNAL_TypeLoader_InjectInterfaceDuplicates is set to TRUE for all types (incl. non-generic // types). // This should allow us better test coverage of duplicates in interface map. // // The duplicates are legal for some types: // A<T> : I<T> // B<U,V> : A<U>, I<V> // C : B<int,int> // where the interface maps are: // A<T> ... 1 item: I<T> // A<int> ... 1 item: I<int> // B<U,V> ... 2 items: I<U>, I<V> // B<int,int> ... 2 items: I<int>, I<int> // B<_Canon,_Canon> ... 2 items: I<_Canon>, I<_Canon> // B<string,string> ... 2 items: I<string>, I<string> // C ... 2 items: I<int>, I<int> // Note: C had only 1 item (I<int>) in CLR 2.0 RTM/SP1/SP2 and early in CLR 4.0. // // We will create duplicate from every re-implemented interface (incl. non-generic): // code:#InjectInterfaceDuplicates_ApproxInterfaces // code:#InjectInterfaceDuplicates_LoadExactInterfaceMap // code:#InjectInterfaceDuplicates_ExactInterfaces // // Note that we don't have to do anything for COM, because COM has its own interface map // (code:InteropMethodTableData)which is independent on type's interface map and is created only from // non-generic interfaces (see code:ClassCompat::MethodTableBuilder::BuildInteropVTable_InterfaceList) // We need to keep track which interface duplicates were injected. Right now its either all interfaces // (declared on the type being built, not inheritted) or none. In the future we could inject duplicates // just for some of them. bmtInterface->dbg_fShouldInjectInterfaceDuplicates = (CLRConfig::GetConfigValue(CLRConfig::INTERNAL_TypeLoader_InjectInterfaceDuplicates) != 0); if (bmtGenerics->Debug_GetTypicalMethodTable() != NULL) { // It's safer to require that all instantiations have the same injected interface duplicates. // In future we could inject different duplicates for various non-shared instantiations. // Use the same injection status as typical instantiation bmtInterface->dbg_fShouldInjectInterfaceDuplicates = bmtGenerics->Debug_GetTypicalMethodTable()->Debug_HasInjectedInterfaceDuplicates(); if (GetModule() == g_pObjectClass->GetModule()) { // CoreLib has some weird hardcoded information about interfaces (e.g. // code:CEEPreloader::ApplyTypeDependencyForSZArrayHelper), so we don't inject duplicates into // CoreLib types bmtInterface->dbg_fShouldInjectInterfaceDuplicates = FALSE; } } #endif //_DEBUG // First inherit all the parent's interfaces. This is important, because our interface map must // list the interfaces in identical order to our parent. // // <NICE> we should document the reasons why. One reason is that DispatchMapTypeIDs can be indexes // into the list </NICE> if (HasParent()) { ExpandApproxInheritedInterfaces(bmtInterface, GetParentType()); #ifdef _DEBUG //#ApproxInterfaceMap_SupersetOfParent // Check that parent's interface map is the same as what we just computed // See code:#InterfaceMap_SupersetOfParent { MethodTable * pParentMT = GetParentMethodTable(); _ASSERTE(pParentMT->GetNumInterfaces() == bmtInterface->dwInterfaceMapSize); MethodTable::InterfaceMapIterator parentInterfacesIterator = pParentMT->IterateInterfaceMap(); UINT32 nInterfaceIndex = 0; while (parentInterfacesIterator.Next()) { // Compare TypeDefs of the parent's interface and this interface (full MT comparison is in // code:#ExactInterfaceMap_SupersetOfParent) OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOAD_APPROXPARENTS); _ASSERTE(parentInterfacesIterator.GetInterfaceInfo()->GetApproxMethodTable(pParentMT->GetLoaderModule())->HasSameTypeDefAs( bmtInterface->pInterfaceMap[nInterfaceIndex].GetInterfaceType()->GetMethodTable())); nInterfaceIndex++; } _ASSERTE(nInterfaceIndex == bmtInterface->dwInterfaceMapSize); } #endif //_DEBUG } // Now add in any freshly declared interfaces, possibly augmenting the flags InterfaceDeclarationScope declScope(false, true); ExpandApproxDeclaredInterfaces( bmtInterface, bmtInternal->pType, declScope COMMA_INDEBUG(NULL)); } // MethodTableBuilder::LoadApproxInterfaceMap //******************************************************************************* // Fills array of TypeIDs with all duplicate occurrences of pDeclIntfMT in the interface map. // // Arguments: // rg/c DispatchMapTypeIDs - Array of TypeIDs and its count of elements. // pcIfaceDuplicates - Number of duplicate occurrences of the interface in the interface map (ideally <= // count of elements TypeIDs. // // Note: If the passed rgDispatchMapTypeIDs array is smaller than the number of duplicates, fills it // with the duplicates that fit and returns number of all existing duplicates (not just those fileld in the // array) in pcIfaceDuplicates. // void MethodTableBuilder::ComputeDispatchMapTypeIDs( MethodTable * pDeclInftMT, const Substitution * pDeclIntfSubst, DispatchMapTypeID * rgDispatchMapTypeIDs, UINT32 cDispatchMapTypeIDs, UINT32 * pcIfaceDuplicates) { STANDARD_VM_CONTRACT; _ASSERTE(pDeclInftMT->IsInterface()); // Count of interface duplicates (also used as index into TypeIDs array) *pcIfaceDuplicates = 0; for (DWORD idx = 0; idx < bmtInterface->dwInterfaceMapSize; idx++) { bmtInterfaceEntry * pItfEntry = &bmtInterface->pInterfaceMap[idx]; bmtRTType * pItfType = pItfEntry->GetInterfaceType(); // Type Equivalence is forbidden in interface type ids. TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions(pItfType->GetMethodTable(), pDeclInftMT, &pItfType->GetSubstitution(), pDeclIntfSubst, &newVisited)) { // We found another occurrence of this interface // Can we fit it into the TypeID array? if (*pcIfaceDuplicates < cDispatchMapTypeIDs) { rgDispatchMapTypeIDs[*pcIfaceDuplicates] = DispatchMapTypeID::InterfaceClassID(idx); } // Increase number of duplicate interfaces (*pcIfaceDuplicates)++; } } } // MethodTableBuilder::ComputeDispatchMapTypeIDs //******************************************************************************* /*static*/ VOID DECLSPEC_NORETURN MethodTableBuilder::BuildMethodTableThrowException( HRESULT hr, const bmtErrorInfo & bmtError) { CONTRACTL { THROWS; GC_TRIGGERS; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END LPCUTF8 pszClassName, pszNameSpace; if (FAILED(bmtError.pModule->GetMDImport()->GetNameOfTypeDef(bmtError.cl, &pszClassName, &pszNameSpace))) { pszClassName = pszNameSpace = "Invalid TypeDef record"; } if (IsNilToken(bmtError.dMethodDefInError) && (bmtError.szMethodNameForError == NULL)) { if (hr == E_OUTOFMEMORY) { COMPlusThrowOM(); } else bmtError.pModule->GetAssembly()->ThrowTypeLoadException( pszNameSpace, pszClassName, bmtError.resIDWhy); } else { LPCUTF8 szMethodName; if (bmtError.szMethodNameForError == NULL) { if (FAILED((bmtError.pModule->GetMDImport())->GetNameOfMethodDef(bmtError.dMethodDefInError, &szMethodName))) { szMethodName = "Invalid MethodDef record"; } } else { szMethodName = bmtError.szMethodNameForError; } bmtError.pModule->GetAssembly()->ThrowTypeLoadException( pszNameSpace, pszClassName, szMethodName, bmtError.resIDWhy); } } // MethodTableBuilder::BuildMethodTableThrowException //******************************************************************************* void MethodTableBuilder::SetBMTData( LoaderAllocator *bmtAllocator, bmtErrorInfo *bmtError, bmtProperties *bmtProp, bmtVtable *bmtVT, bmtParentInfo *bmtParent, bmtInterfaceInfo *bmtInterface, bmtMetaDataInfo *bmtMetaData, bmtMethodInfo *bmtMethod, bmtMethAndFieldDescs *bmtMFDescs, bmtFieldPlacement *bmtFP, bmtInternalInfo *bmtInternal, bmtGCSeriesInfo *bmtGCSeries, bmtMethodImplInfo *bmtMethodImpl, const bmtGenericsInfo *bmtGenerics, bmtEnumFieldInfo *bmtEnumFields) { LIMITED_METHOD_CONTRACT; this->bmtAllocator = bmtAllocator; this->bmtError = bmtError; this->bmtProp = bmtProp; this->bmtVT = bmtVT; this->bmtParent = bmtParent; this->bmtInterface = bmtInterface; this->bmtMetaData = bmtMetaData; this->bmtMethod = bmtMethod; this->bmtMFDescs = bmtMFDescs; this->bmtFP = bmtFP; this->bmtInternal = bmtInternal; this->bmtGCSeries = bmtGCSeries; this->bmtMethodImpl = bmtMethodImpl; this->bmtGenerics = bmtGenerics; this->bmtEnumFields = bmtEnumFields; } //******************************************************************************* // Used by MethodTableBuilder MethodTableBuilder::bmtRTType * MethodTableBuilder::CreateTypeChain( MethodTable * pMT, const Substitution & subst) { CONTRACTL { STANDARD_VM_CHECK; INSTANCE_CHECK; PRECONDITION(CheckPointer(GetStackingAllocator())); PRECONDITION(CheckPointer(pMT)); } CONTRACTL_END; pMT = pMT->GetCanonicalMethodTable(); bmtRTType * pType = new (GetStackingAllocator()) bmtRTType(subst, pMT); MethodTable * pMTParent = pMT->GetParentMethodTable(); if (pMTParent != NULL) { pType->SetParentType( CreateTypeChain( pMTParent, pMT->GetSubstitutionForParent(&pType->GetSubstitution()))); } return pType; } //******************************************************************************* /* static */ MethodTableBuilder::bmtRTType * MethodTableBuilder::bmtRTType::FindType( bmtRTType * pType, MethodTable * pTargetMT) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pType)); PRECONDITION(CheckPointer(pTargetMT)); } CONTRACTL_END; pTargetMT = pTargetMT->GetCanonicalMethodTable(); while (pType != NULL && pType->GetMethodTable()->GetCanonicalMethodTable() != pTargetMT) { pType = pType->GetParentType(); } return pType; } //******************************************************************************* mdTypeDef MethodTableBuilder::bmtRTType::GetEnclosingTypeToken() const { STANDARD_VM_CONTRACT; mdTypeDef tok = mdTypeDefNil; if (IsNested()) { // This is guaranteed to succeed because the EEClass would not have been // set as nested unless a valid token was stored in metadata. if (FAILED(GetModule()->GetMDImport()->GetNestedClassProps( GetTypeDefToken(), &tok))) { return mdTypeDefNil; } } return tok; } //******************************************************************************* /*static*/ bool MethodTableBuilder::MethodSignature::NamesEqual( const MethodSignature & sig1, const MethodSignature & sig2) { STANDARD_VM_CONTRACT; if (sig1.GetNameHash() != sig2.GetNameHash()) { return false; } if (strcmp(sig1.GetName(), sig2.GetName()) != 0) { return false; } return true; } //******************************************************************************* /*static*/ bool MethodTableBuilder::MethodSignature::SignaturesEquivalent( const MethodSignature & sig1, const MethodSignature & sig2, BOOL allowCovariantReturn) { STANDARD_VM_CONTRACT; return !!MetaSig::CompareMethodSigs( sig1.GetSignature(), static_cast<DWORD>(sig1.GetSignatureLength()), sig1.GetModule(), &sig1.GetSubstitution(), sig2.GetSignature(), static_cast<DWORD>(sig2.GetSignatureLength()), sig2.GetModule(), &sig2.GetSubstitution(), allowCovariantReturn); } //******************************************************************************* /*static*/ bool MethodTableBuilder::MethodSignature::SignaturesExactlyEqual( const MethodSignature & sig1, const MethodSignature & sig2) { STANDARD_VM_CONTRACT; TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); return !!MetaSig::CompareMethodSigs( sig1.GetSignature(), static_cast<DWORD>(sig1.GetSignatureLength()), sig1.GetModule(), &sig1.GetSubstitution(), sig2.GetSignature(), static_cast<DWORD>(sig2.GetSignatureLength()), sig2.GetModule(), &sig2.GetSubstitution(), FALSE, &newVisited); } //******************************************************************************* bool MethodTableBuilder::MethodSignature::Equivalent( const MethodSignature &rhs) const { STANDARD_VM_CONTRACT; return NamesEqual(*this, rhs) && SignaturesEquivalent(*this, rhs, FALSE); } //******************************************************************************* bool MethodTableBuilder::MethodSignature::ExactlyEqual( const MethodSignature &rhs) const { STANDARD_VM_CONTRACT; return NamesEqual(*this, rhs) && SignaturesExactlyEqual(*this, rhs); } //******************************************************************************* void MethodTableBuilder::MethodSignature::GetMethodAttributes() const { STANDARD_VM_CONTRACT; IMDInternalImport * pIMD = GetModule()->GetMDImport(); if (TypeFromToken(GetToken()) == mdtMethodDef) { DWORD cSig; if (FAILED(pIMD->GetNameAndSigOfMethodDef(GetToken(), &m_pSig, &cSig, &m_szName))) { // We have empty name or signature on error, do nothing } m_cSig = static_cast<size_t>(cSig); } else { CONSISTENCY_CHECK(TypeFromToken(m_tok) == mdtMemberRef); DWORD cSig; if (FAILED(pIMD->GetNameAndSigOfMemberRef(GetToken(), &m_pSig, &cSig, &m_szName))) { // We have empty name or signature on error, do nothing } m_cSig = static_cast<size_t>(cSig); } } //******************************************************************************* UINT32 MethodTableBuilder::MethodSignature::GetNameHash() const { STANDARD_VM_CONTRACT; CheckGetMethodAttributes(); if (m_nameHash == INVALID_NAME_HASH) { ULONG nameHash = HashStringA(GetName()); if (nameHash == INVALID_NAME_HASH) { nameHash /= 2; } m_nameHash = nameHash; } return m_nameHash; } //******************************************************************************* MethodTableBuilder::bmtMDType::bmtMDType( bmtRTType * pParentType, Module * pModule, mdTypeDef tok, const SigTypeContext & sigContext) : m_pParentType(pParentType), m_pModule(pModule), m_tok(tok), m_enclTok(mdTypeDefNil), m_sigContext(sigContext), m_subst(), m_dwAttrs(0), m_pMT(NULL) { STANDARD_VM_CONTRACT; IfFailThrow(m_pModule->GetMDImport()->GetTypeDefProps(m_tok, &m_dwAttrs, NULL)); HRESULT hr = m_pModule->GetMDImport()->GetNestedClassProps(m_tok, &m_enclTok); if (FAILED(hr)) { if (hr != CLDB_E_RECORD_NOTFOUND) { ThrowHR(hr); } // Just in case GetNestedClassProps sets the out param to some other value m_enclTok = mdTypeDefNil; } } //******************************************************************************* MethodTableBuilder::bmtRTMethod::bmtRTMethod( bmtRTType * pOwningType, MethodDesc * pMD) : m_pOwningType(pOwningType), m_pMD(pMD), m_methodSig(pMD->GetModule(), pMD->GetMemberDef(), &pOwningType->GetSubstitution()) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; } //******************************************************************************* MethodTableBuilder::bmtMDMethod::bmtMDMethod( bmtMDType * pOwningType, mdMethodDef tok, DWORD dwDeclAttrs, DWORD dwImplAttrs, DWORD dwRVA, METHOD_TYPE type, METHOD_IMPL_TYPE implType) : m_pOwningType(pOwningType), m_dwDeclAttrs(dwDeclAttrs), m_dwImplAttrs(dwImplAttrs), m_dwRVA(dwRVA), m_type(type), m_implType(implType), m_methodSig(pOwningType->GetModule(), tok, &pOwningType->GetSubstitution()), m_pMD(NULL), m_pUnboxedMD(NULL), m_slotIndex(INVALID_SLOT_INDEX), m_unboxedSlotIndex(INVALID_SLOT_INDEX) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; } //******************************************************************************* void MethodTableBuilder::ImportParentMethods() { STANDARD_VM_CONTRACT; if (!HasParent()) { // If there's no parent, there's no methods to import return; } SLOT_INDEX numMethods = static_cast<SLOT_INDEX> (GetParentMethodTable()->GetNumMethods()); bmtParent->pSlotTable = new (GetStackingAllocator()) bmtMethodSlotTable(numMethods, GetStackingAllocator()); MethodTable::MethodIterator it(GetParentMethodTable()); for (;it.IsValid(); it.Next()) { MethodDesc * pDeclDesc = NULL; MethodTable * pDeclMT = NULL; MethodDesc * pImplDesc = NULL; MethodTable * pImplMT = NULL; if (it.IsVirtual()) { pDeclDesc = it.GetDeclMethodDesc(); pDeclMT = pDeclDesc->GetMethodTable(); pImplDesc = it.GetMethodDesc(); pImplMT = pImplDesc->GetMethodTable(); } else { pDeclDesc = pImplDesc = it.GetMethodDesc(); pDeclMT = pImplMT = it.GetMethodDesc()->GetMethodTable(); } CONSISTENCY_CHECK(CheckPointer(pDeclDesc)); CONSISTENCY_CHECK(CheckPointer(pImplDesc)); // Create and assign to each slot bmtMethodSlot newSlot; newSlot.Decl() = new (GetStackingAllocator()) bmtRTMethod(bmtRTType::FindType(GetParentType(), pDeclMT), pDeclDesc); if (pDeclDesc == pImplDesc) { newSlot.Impl() = newSlot.Decl(); } else { newSlot.Impl() = new (GetStackingAllocator()) bmtRTMethod(bmtRTType::FindType(GetParentType(), pImplMT), pImplDesc); } if (!bmtParent->pSlotTable->AddMethodSlot(newSlot)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } } //******************************************************************************* void MethodTableBuilder::CopyParentVtable() { STANDARD_VM_CONTRACT; if (!HasParent()) { return; } for (bmtParentInfo::Iterator it = bmtParent->IterateSlots(); !it.AtEnd() && it.CurrentIndex() < GetParentMethodTable()->GetNumVirtuals(); ++it) { if (!bmtVT->pSlotTable->AddMethodSlot(*it)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); ++bmtVT->cVirtualSlots; ++bmtVT->cTotalSlots; } } //******************************************************************************* // Determine if this is the special SIMD type System.Numerics.Vector<T>, whose // size is determined dynamically based on the hardware and the presence of JIT // support. // If so: // - Update the NumInstanceFieldBytes on the bmtFieldPlacement. // - Update the m_cbNativeSize and m_cbManagedSize if HasLayout() is true. // Return a BOOL result to indicate whether the size has been updated. // BOOL MethodTableBuilder::CheckIfSIMDAndUpdateSize() { STANDARD_VM_CONTRACT; #if defined(TARGET_X86) || defined(TARGET_AMD64) if (!bmtProp->fIsIntrinsicType) return false; if (bmtFP->NumInstanceFieldBytes != 16) return false; LPCUTF8 className; LPCUTF8 nameSpace; if (FAILED(GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetTypeDefToken(), &className, &nameSpace))) return false; if (strcmp(className, "Vector`1") != 0 || strcmp(nameSpace, "System.Numerics") != 0) return false; if (!TargetHasAVXSupport()) return false; EEJitManager *jitMgr = ExecutionManager::GetEEJitManager(); if (jitMgr->LoadJIT()) { CORJIT_FLAGS cpuCompileFlags = jitMgr->GetCPUCompileFlags(); if (cpuCompileFlags.IsSet(CORJIT_FLAGS::CORJIT_FLAG_FEATURE_SIMD)) { unsigned intrinsicSIMDVectorLength = jitMgr->m_jit->getMaxIntrinsicSIMDVectorLength(cpuCompileFlags); if (intrinsicSIMDVectorLength != 0) { bmtFP->NumInstanceFieldBytes = intrinsicSIMDVectorLength; if (HasLayout()) { GetLayoutInfo()->m_cbManagedSize = intrinsicSIMDVectorLength; } return true; } } } #endif // defined(TARGET_X86) || defined(TARGET_AMD64) return false; } //******************************************************************************* void MethodTableBuilder::bmtInterfaceEntry::CreateSlotTable( StackingAllocator * pStackingAllocator) { STANDARD_VM_CONTRACT; CONSISTENCY_CHECK(m_pImplTable == NULL); SLOT_INDEX cSlots = (SLOT_INDEX)GetInterfaceType()->GetMethodTable()->GetNumVirtuals(); SLOT_INDEX cSlotsTotal = cSlots; if (GetInterfaceType()->GetMethodTable()->HasVirtualStaticMethods()) { MethodTable::MethodIterator it(GetInterfaceType()->GetMethodTable()); for (; it.IsValid(); it.Next()) { MethodDesc *pDeclMD = it.GetDeclMethodDesc(); if (pDeclMD->IsStatic() && pDeclMD->IsVirtual()) { cSlotsTotal++; } } } bmtInterfaceSlotImpl * pST = new (pStackingAllocator) bmtInterfaceSlotImpl[cSlotsTotal]; MethodTable::MethodIterator it(GetInterfaceType()->GetMethodTable()); for (; it.IsValid(); it.Next()) { MethodDesc *pDeclMD = it.GetDeclMethodDesc(); if (!pDeclMD->IsVirtual()) { continue; } bmtRTMethod * pCurMethod = new (pStackingAllocator) bmtRTMethod(GetInterfaceType(), it.GetDeclMethodDesc()); if (pDeclMD->IsStatic()) { pST[cSlots + m_cImplTableStatics++] = bmtInterfaceSlotImpl(pCurMethod, INVALID_SLOT_INDEX); } else { CONSISTENCY_CHECK(m_cImplTable == it.GetSlotNumber()); pST[m_cImplTable++] = bmtInterfaceSlotImpl(pCurMethod, INVALID_SLOT_INDEX); } } m_pImplTable = pST; } #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif // _PREFAST_ //--------------------------------------------------------------------------------------- // // Builds the method table, allocates MethodDesc, handles overloaded members, attempts to compress // interface storage. All dependent classes must already be resolved! // MethodTable * MethodTableBuilder::BuildMethodTableThrowing( LoaderAllocator * pAllocator, Module * pLoaderModule, Module * pModule, mdToken cl, BuildingInterfaceInfo_t * pBuildingInterfaceList, const LayoutRawFieldInfo * pLayoutRawFieldInfos, MethodTable * pParentMethodTable, const bmtGenericsInfo * bmtGenericsInfo, SigPointer parentInst, WORD cBuildingInterfaceList) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(GetHalfBakedClass())); PRECONDITION(CheckPointer(bmtGenericsInfo)); } CONTRACTL_END; pModule->EnsureLibraryLoaded(); // The following structs, defined as private members of MethodTableBuilder, contain the necessary local // parameters needed for BuildMethodTable Look at the struct definitions for a detailed list of all // parameters available to BuildMethodTableThrowing. SetBMTData( pAllocator, new (GetStackingAllocator()) bmtErrorInfo(), new (GetStackingAllocator()) bmtProperties(), new (GetStackingAllocator()) bmtVtable(), new (GetStackingAllocator()) bmtParentInfo(), new (GetStackingAllocator()) bmtInterfaceInfo(), new (GetStackingAllocator()) bmtMetaDataInfo(), new (GetStackingAllocator()) bmtMethodInfo(), new (GetStackingAllocator()) bmtMethAndFieldDescs(), new (GetStackingAllocator()) bmtFieldPlacement(), new (GetStackingAllocator()) bmtInternalInfo(), new (GetStackingAllocator()) bmtGCSeriesInfo(), new (GetStackingAllocator()) bmtMethodImplInfo(), bmtGenericsInfo, new (GetStackingAllocator()) bmtEnumFieldInfo(pModule->GetMDImport())); //Initialize structs bmtError->resIDWhy = IDS_CLASSLOAD_GENERAL; // Set the reason and the offending method def. If the method information bmtError->pThrowable = NULL; bmtError->pModule = pModule; bmtError->cl = cl; bmtInternal->pInternalImport = pModule->GetMDImport(); bmtInternal->pModule = pModule; bmtInternal->pParentMT = pParentMethodTable; // Create the chain of bmtRTType for the parent types. This allows all imported // parent methods to be associated with their declaring types, and as such it is // easy to access the appropriate Substitution when comparing signatures. bmtRTType * pParent = NULL; if (pParentMethodTable != NULL) { Substitution * pParentSubst = new (GetStackingAllocator()) Substitution(pModule, parentInst, NULL); pParent = CreateTypeChain(pParentMethodTable, *pParentSubst); } // Now create the bmtMDType for the type being built. bmtInternal->pType = new (GetStackingAllocator()) bmtMDType(pParent, pModule, cl, bmtGenericsInfo->typeContext); // If not NULL, it means there are some by-value fields, and this contains an entry for each inst #ifdef _DEBUG // Set debug class name string for easier debugging. LPCUTF8 className; LPCUTF8 nameSpace; if (FAILED(GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetTypeDefToken(), &className, &nameSpace))) { className = nameSpace = "Invalid TypeDef record"; } { S_SIZE_T safeLen = S_SIZE_T(sizeof(char))*(S_SIZE_T(strlen(className)) + S_SIZE_T(strlen(nameSpace)) + S_SIZE_T(2)); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); char *name = (char*) AllocateFromHighFrequencyHeap(safeLen); strcpy_s(name, len, nameSpace); if (strlen(nameSpace) > 0) { name[strlen(nameSpace)] = '.'; name[strlen(nameSpace) + 1] = '\0'; } strcat_s(name, len, className); GetHalfBakedClass()->SetDebugClassName(name); } if (g_pConfig->ShouldBreakOnClassBuild(className)) { CONSISTENCY_CHECK_MSGF(false, ("BreakOnClassBuild: typename '%s' ", className)); GetHalfBakedClass()->m_fDebuggingClass = TRUE; } LPCUTF8 pszDebugName,pszDebugNamespace; if (FAILED(pModule->GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetTypeDefToken(), &pszDebugName, &pszDebugNamespace))) { pszDebugName = pszDebugNamespace = "Invalid TypeDef record"; } StackSString debugName(SString::Utf8, pszDebugName); // If there is an instantiation, update the debug name to include instantiation type names. if (bmtGenerics->HasInstantiation()) { StackSString debugName(SString::Utf8, GetDebugClassName()); TypeString::AppendInst(debugName, bmtGenerics->GetInstantiation(), TypeString::FormatBasic); StackScratchBuffer buff; const char* pDebugNameUTF8 = debugName.GetUTF8(buff); S_SIZE_T safeLen = S_SIZE_T(strlen(pDebugNameUTF8)) + S_SIZE_T(1); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); char *name = (char*) AllocateFromLowFrequencyHeap(safeLen); strcpy_s(name, len, pDebugNameUTF8); GetHalfBakedClass()->SetDebugClassName(name); pszDebugName = (LPCUTF8)name; } LOG((LF_CLASSLOADER, LL_INFO1000, "Loading class \"%s%s%S\" from module \"%ws\" in domain 0x%p %s\n", *pszDebugNamespace ? pszDebugNamespace : "", *pszDebugNamespace ? NAMESPACE_SEPARATOR_STR : "", debugName.GetUnicode(), pModule->GetDebugName(), pModule->GetDomain(), (pModule->IsSystem()) ? "System Domain" : "" )); #endif // _DEBUG // If this is CoreLib, then don't perform some sanity checks on the layout bmtProp->fNoSanityChecks = pModule->IsSystem() || #ifdef FEATURE_READYTORUN // No sanity checks for ready-to-run compiled images if possible (pModule->IsReadyToRun() && pModule->GetReadyToRunInfo()->SkipTypeValidation()) || #endif // No sanity checks for real generic instantiations !bmtGenerics->IsTypicalTypeDefinition(); // Interfaces have a parent class of Object, but we don't really want to inherit all of // Object's virtual methods, so pretend we don't have a parent class - at the bottom of this // function we reset the parent class if (IsInterface()) { bmtInternal->pType->SetParentType(NULL); bmtInternal->pParentMT = NULL; } unsigned totalDeclaredFieldSize=0; // Check to see if the class is a valuetype; but we don't want to mark System.Enum // as a ValueType. To accomplish this, the check takes advantage of the fact // that System.ValueType and System.Enum are loaded one immediately after the // other in that order, and so if the parent MethodTable is System.ValueType and // the System.Enum MethodTable is unset, then we must be building System.Enum and // so we don't mark it as a ValueType. if(HasParent() && ((g_pEnumClass != NULL && GetParentMethodTable() == g_pValueTypeClass) || GetParentMethodTable() == g_pEnumClass)) { bmtProp->fIsValueClass = true; HRESULT hr = GetCustomAttribute(bmtInternal->pType->GetTypeDefToken(), WellKnownAttribute::UnsafeValueType, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { SetUnsafeValueClass(); } hr = GetCustomAttribute(bmtInternal->pType->GetTypeDefToken(), WellKnownAttribute::IsByRefLike, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { bmtFP->fIsByRefLikeType = true; } } // Check to see if the class is an enumeration. No fancy checks like the one immediately // above for value types are necessary here. if(HasParent() && GetParentMethodTable() == g_pEnumClass) { bmtProp->fIsEnum = true; // Ensure we don't have generic enums, or at least enums that have a // different number of type parameters from their enclosing class. // The goal is to ensure that the enum's values can't depend on the // type parameters in any way. And we don't see any need for an // enum to have additional type parameters. if (bmtGenerics->GetNumGenericArgs() != 0) { // Nested enums can have generic type parameters from their enclosing class. // CLS rules require type parameters to be propagated to nested types. // Note that class G<T> { enum E { } } will produce "G`1+E<T>". // We want to disallow class G<T> { enum E<T, U> { } } // Perhaps the IL equivalent of class G<T> { enum E { } } should be legal. if (!IsNested()) { BuildMethodTableThrowException(IDS_CLASSLOAD_ENUM_EXTRA_GENERIC_TYPE_PARAM); } mdTypeDef tdEnclosing = mdTypeDefNil; HRESULT hr = GetMDImport()->GetNestedClassProps(GetCl(), &tdEnclosing); if (FAILED(hr)) ThrowHR(hr, BFA_UNABLE_TO_GET_NESTED_PROPS); HENUMInternalHolder hEnumGenericPars(GetMDImport()); if (FAILED(hEnumGenericPars.EnumInitNoThrow(mdtGenericParam, tdEnclosing))) { GetAssembly()->ThrowTypeLoadException(GetMDImport(), tdEnclosing, IDS_CLASSLOAD_BADFORMAT); } if (hEnumGenericPars.EnumGetCount() != bmtGenerics->GetNumGenericArgs()) { BuildMethodTableThrowException(IDS_CLASSLOAD_ENUM_EXTRA_GENERIC_TYPE_PARAM); } } } // If this type is marked by [Intrinsic] attribute, it may be specially treated by the runtime/compiler // SIMD types have [Intrinsic] attribute, for example // // We check this here fairly early to ensure other downstream checks on these types can be slightly more efficient. if (GetModule()->IsSystem()) { HRESULT hr = GetCustomAttribute(bmtInternal->pType->GetTypeDefToken(), WellKnownAttribute::Intrinsic, NULL, NULL); if (hr == S_OK) { bmtProp->fIsIntrinsicType = true; } } #if defined(TARGET_X86) || defined(TARGET_AMD64) || defined(TARGET_ARM64) if (bmtProp->fIsIntrinsicType && !bmtGenerics->HasInstantiation()) { LPCUTF8 className; LPCUTF8 nameSpace; HRESULT hr = GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetTypeDefToken(), &className, &nameSpace); if (bmtInternal->pType->IsNested()) { IfFailThrow(GetMDImport()->GetNameOfTypeDef(bmtInternal->pType->GetEnclosingTypeToken(), NULL, &nameSpace)); } #if defined(TARGET_ARM64) // All the funtions in System.Runtime.Intrinsics.Arm are hardware intrinsics. if (hr == S_OK && strcmp(nameSpace, "System.Runtime.Intrinsics.Arm") == 0) #else // All the funtions in System.Runtime.Intrinsics.X86 are hardware intrinsics. if (hr == S_OK && (strcmp(nameSpace, "System.Runtime.Intrinsics.X86") == 0)) #endif { bmtProp->fIsHardwareIntrinsic = true; } } #endif // Com Import classes are special. These types must derive from System.Object, // and we then substitute the parent with System._ComObject. if (IsComImport() && !IsEnum() && !IsInterface() && !IsValueClass() && !IsDelegate()) { #ifdef FEATURE_COMINTEROP // ComImport classes must extend from Object MethodTable* pMTParent = GetParentMethodTable(); if ((pMTParent == NULL) || (pMTParent != g_pObjectClass)) { BuildMethodTableThrowException(IDS_CLASSLOAD_CANTEXTEND); } if (HasLayout()) { // ComImport classes cannot have layout information. BuildMethodTableThrowException(IDS_CLASSLOAD_COMIMPCANNOTHAVELAYOUT); } if (g_pBaseCOMObject != NULL) { // We could have had COM interop classes derive from System._ComObject, // but instead we have them derive from System.Object, have them set the // ComImport bit in the type attributes, and then we swap out the parent // type under the covers. bmtInternal->pType->SetParentType(CreateTypeChain(g_pBaseCOMObject, Substitution())); bmtInternal->pParentMT = g_pBaseCOMObject; } #endif // if the current class is imported bmtProp->fIsComObjectType = true; } #ifdef FEATURE_COMINTEROP // Check for special COM interop types. CheckForSpecialTypes(); CheckForTypeEquivalence(cBuildingInterfaceList, pBuildingInterfaceList); if (HasParent()) { // Types that inherit from com object types are themselves com object types. if (GetParentMethodTable()->IsComObjectType()) { // if the parent class is of ComObjectType // so is the child bmtProp->fIsComObjectType = true; } #ifdef FEATURE_TYPEEQUIVALENCE // If your parent is type equivalent then so are you if (GetParentMethodTable()->HasTypeEquivalence()) { bmtProp->fHasTypeEquivalence = true; } #endif } #endif // FEATURE_COMINTEROP if (!HasParent() && !IsInterface()) { if(g_pObjectClass != NULL) { if(!IsGlobalClass()) { // Non object derived types that are not the global class are prohibited by spec BuildMethodTableThrowException(IDS_CLASSLOAD_PARENTNULL); } } } // NOTE: This appears to be the earliest point during class loading that other classes MUST be loaded // resolve unresolved interfaces, determine an upper bound on the size of the interface map, // and determine the size of the largest interface (in # slots) ResolveInterfaces(cBuildingInterfaceList, pBuildingInterfaceList); // Enumerate this class's methodImpls EnumerateMethodImpls(); // Enumerate this class's methods and fields EnumerateClassMethods(); ValidateMethods(); EnumerateClassFields(); // Import the slots of the parent for use in placing this type's methods. ImportParentMethods(); // This will allocate the working versions of the VTable and NonVTable in bmtVT AllocateWorkingSlotTables(); // Allocate a MethodDesc* for each method (needed later when doing interfaces), and a FieldDesc* for each field AllocateFieldDescs(); // Copy the parent's vtable into the current type's vtable CopyParentVtable(); bmtVT->pDispatchMapBuilder = new (GetStackingAllocator()) DispatchMapBuilder(GetStackingAllocator()); // Determine vtable placement for each member in this class PlaceVirtualMethods(); PlaceNonVirtualMethods(); // Allocate MethodDescs (expects methods placed methods) AllocAndInitMethodDescs(); if (IsInterface()) { // // We need to process/place method impls for default interface method overrides. // We won't build dispatch map for interfaces, though. // ProcessMethodImpls(); PlaceMethodImpls(); } else { // // If we are a class, then there may be some unplaced vtable methods (which are by definition // interface methods, otherwise they'd already have been placed). Place as many unplaced methods // as possible, in the order preferred by interfaces. However, do not allow any duplicates - once // a method has been placed, it cannot be placed again - if we are unable to neatly place an interface, // create duplicate slots for it starting at dwCurrentDuplicateVtableSlot. Fill out the interface // map for all interfaces as they are placed. // // If we are an interface, then all methods are already placed. Fill out the interface map for // interfaces as they are placed. // ComputeInterfaceMapEquivalenceSet(); PlaceInterfaceMethods(); ProcessMethodImpls(); ProcessInexactMethodImpls(); PlaceMethodImpls(); if (!bmtProp->fNoSanityChecks) { // Now that interface method implementation have been fully resolved, // we need to make sure that type constraints are also met. ValidateInterfaceMethodConstraints(); } } // Verify that we have not overflowed the number of slots. if (!FitsInU2((UINT64)bmtVT->pSlotTable->GetSlotCount())) { BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } // ensure we didn't overflow the temporary vtable _ASSERTE(bmtVT->pSlotTable->GetSlotCount() <= bmtVT->dwMaxVtableSize); // Allocate and initialize the dictionary for the type. This will be filled out later // with the final values. AllocAndInitDictionary(); //////////////////////////////////////////////////////////////////////////////////////////////// // Fields // // We decide here if we need a dynamic entry for our statics. We need it here because // the offsets of our fields will depend on this. For the dynamic case (which requires // an extra indirection (indirect depending of methodtable) we'll allocate the slot // in setupmethodtable if (((pAllocator->IsCollectible() || pModule->IsReflection() || bmtGenerics->HasInstantiation() || !pModule->IsStaticStoragePrepared(cl)) && (bmtVT->GetClassCtorSlotIndex() != INVALID_SLOT_INDEX || bmtEnumFields->dwNumStaticFields !=0)) #ifdef EnC_SUPPORTED // Classes in modules that have been edited (would do on class level if there were a // way to tell if the class had been edited) also have dynamic statics as the number // of statics might have changed, so can't use the static module-wide storage || (pModule->IsEditAndContinueEnabled() && ((EditAndContinueModule*)pModule)->GetApplyChangesCount() > CorDB_DEFAULT_ENC_FUNCTION_VERSION) #endif // EnC_SUPPORTED ) { // We will need a dynamic id bmtProp->fDynamicStatics = true; if (bmtGenerics->HasInstantiation()) { bmtProp->fGenericsStatics = true; } } // If not NULL, it means there are some by-value fields, and this contains an entry for each instance or static field, // which is NULL if not a by value field, and points to the EEClass of the field if a by value field. Instance fields // come first, statics come second. MethodTable ** pByValueClassCache = NULL; // Go thru all fields and initialize their FieldDescs. InitializeFieldDescs(GetApproxFieldDescListRaw(), pLayoutRawFieldInfos, bmtInternal, bmtGenerics, bmtMetaData, bmtEnumFields, bmtError, &pByValueClassCache, bmtMFDescs, bmtFP, &totalDeclaredFieldSize); // Place regular static fields PlaceRegularStaticFields(); // Place thread static fields PlaceThreadStaticFields(); LOG((LF_CODESHARING, LL_INFO10000, "Placing %d statics (%d handles) for class %s.\n", GetNumStaticFields(), GetNumHandleRegularStatics() + GetNumHandleThreadStatics(), pszDebugName)); if (IsBlittable() || IsManagedSequential()) { bmtFP->NumGCPointerSeries = 0; bmtFP->NumInstanceGCPointerFields = 0; _ASSERTE(HasLayout()); bmtFP->NumInstanceFieldBytes = GetLayoutInfo()->m_cbManagedSize; // For simple Blittable types we still need to check if they have any overlapping // fields and call the method SetHasOverLayedFields() when they are detected. // if (HasExplicitFieldOffsetLayout()) { _ASSERTE(!bmtGenerics->fContainsGenericVariables); // A simple Blittable type can't ever be an open generic type. HandleExplicitLayout(pByValueClassCache); } } else { _ASSERTE(!IsBlittable()); // HandleExplicitLayout fails for the GenericTypeDefinition when // it will succeed for some particular instantiations. // Thus we only do explicit layout for real instantiations, e.g. C<int>, not // the open types such as the GenericTypeDefinition C<!0> or any // of the "fake" types involving generic type variables which are // used for reflection and verification, e.g. C<List<!0>>. // if (!bmtGenerics->fContainsGenericVariables && HasExplicitFieldOffsetLayout()) { HandleExplicitLayout(pByValueClassCache); } else { // Place instance fields PlaceInstanceFields(pByValueClassCache); } } if (CheckIfSIMDAndUpdateSize()) { totalDeclaredFieldSize = bmtFP->NumInstanceFieldBytes; } // We enforce that all value classes have non-zero size if (IsValueClass() && bmtFP->NumInstanceFieldBytes == 0) { BuildMethodTableThrowException(IDS_CLASSLOAD_ZEROSIZE); } if (bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA) { // Verify self-referencing statics with RVA (now when the ValueType size is known) VerifySelfReferencingStaticValueTypeFields_WithRVA(pByValueClassCache); } // Now setup the method table SetupMethodTable2(pLoaderModule); MethodTable * pMT = GetHalfBakedMethodTable(); #ifdef FEATURE_64BIT_ALIGNMENT if (GetHalfBakedClass()->IsAlign8Candidate()) pMT->SetRequiresAlign8(); #endif if (bmtGenerics->pVarianceInfo != NULL) { pMT->SetHasVariance(); } if (bmtFP->NumRegularStaticGCBoxedFields != 0) { pMT->SetHasBoxedRegularStatics(); } if (bmtFP->fIsByRefLikeType) { pMT->SetIsByRefLike(); } if (IsValueClass()) { if (bmtFP->NumInstanceFieldBytes != totalDeclaredFieldSize || HasOverLayedField()) GetHalfBakedClass()->SetIsNotTightlyPacked(); #ifdef FEATURE_HFA GetHalfBakedClass()->CheckForHFA(pByValueClassCache); #endif #ifdef UNIX_AMD64_ABI #ifdef FEATURE_HFA #error "Can't have FEATURE_HFA and UNIX_AMD64_ABI defined at the same time." #endif // FEATURE_HFA SystemVAmd64CheckForPassStructInRegister(); #endif // UNIX_AMD64_ABI } #ifdef _DEBUG pMT->SetDebugClassName(GetDebugClassName()); #endif #ifdef FEATURE_COMINTEROP if (IsInterface()) { GetCoClassAttribInfo(); } #endif // FEATURE_COMINTEROP if (HasExplicitFieldOffsetLayout()) // Perform relevant GC calculations for tdexplicit HandleGCForExplicitLayout(); else // Perform relevant GC calculations for value classes HandleGCForValueClasses(pByValueClassCache); // GC reqires the series to be sorted. // TODO: fix it so that we emit them in the correct order in the first place. if (pMT->ContainsPointers()) { CGCDesc* gcDesc = CGCDesc::GetCGCDescFromMT(pMT); qsort(gcDesc->GetLowestSeries(), (int)gcDesc->GetNumSeries(), sizeof(CGCDescSeries), compareCGCDescSeries); } SetFinalizationSemantics(); // Allocate dynamic slot if necessary if (bmtProp->fDynamicStatics) { if (bmtProp->fGenericsStatics) { FieldDesc* pStaticFieldDescs = NULL; if (bmtEnumFields->dwNumStaticFields != 0) { pStaticFieldDescs = pMT->GetApproxFieldDescListRaw() + bmtEnumFields->dwNumInstanceFields; } pMT->SetupGenericsStaticsInfo(pStaticFieldDescs); } else { // Get an id for the dynamic class. We store it in the class because // no class that is persisted in ngen should have it (ie, if the class is ngened // The id is stored in an optional field so we need to ensure an optional field descriptor has // been allocated for this EEClass instance. EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, pAllocator->GetLowFrequencyHeap()); SetModuleDynamicID(GetModule()->AllocateDynamicEntry(pMT)); } } // // if there are context or thread static set the info in the method table optional members // // Check for the RemotingProxy Attribute // structs with GC pointers MUST be pointer sized aligned because the GC assumes it if (IsValueClass() && pMT->ContainsPointers() && (bmtFP->NumInstanceFieldBytes % TARGET_POINTER_SIZE != 0)) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsInterface()) { // Reset parent class pMT->SetParentMethodTable (g_pObjectClass); } #ifdef _DEBUG // Reset the debug method names for BoxedEntryPointStubs // so they reflect the very best debug information for the methods { DeclaredMethodIterator methIt(*this); while (methIt.Next()) { if (methIt->GetUnboxedMethodDesc() != NULL) { { MethodDesc *pMD = methIt->GetUnboxedMethodDesc(); StackSString name(SString::Utf8); TypeString::AppendMethodDebug(name, pMD); StackScratchBuffer buff; const char* pDebugNameUTF8 = name.GetUTF8(buff); S_SIZE_T safeLen = S_SIZE_T(strlen(pDebugNameUTF8)) + S_SIZE_T(1); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); pMD->m_pszDebugMethodName = (char*) AllocateFromLowFrequencyHeap(safeLen); _ASSERTE(pMD->m_pszDebugMethodName); strcpy_s((char *) pMD->m_pszDebugMethodName, len, pDebugNameUTF8); } { MethodDesc *pMD = methIt->GetMethodDesc(); StackSString name(SString::Utf8); TypeString::AppendMethodDebug(name, pMD); StackScratchBuffer buff; const char* pDebugNameUTF8 = name.GetUTF8(buff); S_SIZE_T safeLen = S_SIZE_T(strlen(pDebugNameUTF8))+S_SIZE_T(1); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); pMD->m_pszDebugMethodName = (char*) AllocateFromLowFrequencyHeap(safeLen); _ASSERTE(pMD->m_pszDebugMethodName); strcpy_s((char *) pMD->m_pszDebugMethodName, len, pDebugNameUTF8); } } } } #endif // _DEBUG //If this is a value type, then propagate the UnsafeValueTypeAttribute from //its instance members to this type. if (IsValueClass() && !IsUnsafeValueClass()) { ApproxFieldDescIterator fields(GetHalfBakedMethodTable(), ApproxFieldDescIterator::INSTANCE_FIELDS ); FieldDesc * current; while (NULL != (current = fields.Next())) { CONSISTENCY_CHECK(!current->IsStatic()); if (current->GetFieldType() == ELEMENT_TYPE_VALUETYPE) { TypeHandle th = current->LookupApproxFieldTypeHandle(); CONSISTENCY_CHECK(!th.IsNull()); if (th.AsMethodTable()->GetClass()->IsUnsafeValueClass()) { SetUnsafeValueClass(); break; } } } } if (!IsValueClass()) { #ifdef FEATURE_ICASTABLE if (g_pICastableInterface != NULL && pMT->CanCastToInterface(g_pICastableInterface)) { pMT->SetICastable(); } #endif // FEATURE_ICASTABLE if (g_pIDynamicInterfaceCastableInterface != NULL && pMT->CanCastToInterface(g_pIDynamicInterfaceCastableInterface)) { pMT->SetIDynamicInterfaceCastable(); } } #ifdef FEATURE_OBJCMARSHAL // Check if this type has a finalizer and then if it is a referenced tracked type. if (pMT->HasFinalizer() && !IsValueClass() && !IsInterface() && !IsDelegate()) { BOOL isTrackedReference = FALSE; if (HasParent()) { MethodTable * pParentClass = GetParentMethodTable(); PREFIX_ASSUME(pParentClass != NULL); isTrackedReference = pParentClass->IsTrackedReferenceWithFinalizer(); } if (!isTrackedReference) { HRESULT hr = GetCustomAttribute(bmtInternal->pType->GetTypeDefToken(), WellKnownAttribute::ObjectiveCTrackedTypeAttribute, NULL, NULL); isTrackedReference = hr == S_OK ? TRUE : FALSE; } if (isTrackedReference) pMT->SetIsTrackedReferenceWithFinalizer(); } #endif // FEATURE_OBJCMARSHAL // Grow the typedef ridmap in advance as we can't afford to // fail once we set the resolve bit pModule->EnsureTypeDefCanBeStored(bmtInternal->pType->GetTypeDefToken()); // Grow the tables in advance so that RID map filling cannot fail // once we're past the commit point. EnsureRIDMapsCanBeFilled(); { // NOTE. NOTE!! the EEclass can now be accessed by other threads. // Do NOT place any initialization after this point. // You may NOT fail the call after this point. FAULT_FORBID(); CANNOTTHROWCOMPLUSEXCEPTION(); /* GetMemTracker()->SuppressRelease(); */ } #ifdef _DEBUG if (g_pConfig->ShouldDumpOnClassLoad(pszDebugName)) { LOG((LF_ALWAYS, LL_ALWAYS, "Method table summary for '%s':\n", pszDebugName)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of static fields: %d\n", bmtEnumFields->dwNumStaticFields)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of instance fields: %d\n", bmtEnumFields->dwNumInstanceFields)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of static obj ref fields: %d\n", bmtEnumFields->dwNumStaticObjRefFields)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of static boxed fields: %d\n", bmtEnumFields->dwNumStaticBoxedFields)); LOG((LF_ALWAYS, LL_ALWAYS, "Number of declared fields: %d\n", NumDeclaredFields())); LOG((LF_ALWAYS, LL_ALWAYS, "Number of declared methods: %d\n", NumDeclaredMethods())); LOG((LF_ALWAYS, LL_ALWAYS, "Number of declared non-abstract methods: %d\n", bmtMethod->dwNumDeclaredNonAbstractMethods)); pMT->Debug_DumpInterfaceMap("Approximate"); pMT->DebugDumpVtable(pszDebugName, FALSE); pMT->DebugDumpFieldLayout(pszDebugName, FALSE); pMT->DebugDumpGCDesc(pszDebugName, FALSE); pMT->Debug_DumpDispatchMap(); } #endif //_DEBUG STRESS_LOG3(LF_CLASSLOADER, LL_INFO1000, "MethodTableBuilder: finished method table for module %p token %x = %pT \n", pModule, GetCl(), GetHalfBakedMethodTable()); return GetHalfBakedMethodTable(); } // MethodTableBuilder::BuildMethodTableThrowing #ifdef _PREFAST_ #pragma warning(pop) #endif //--------------------------------------------------------------------------------------- // // Resolve unresolved interfaces, determine an upper bound on the size of the interface map. // VOID MethodTableBuilder::ResolveInterfaces( WORD cBuildingInterfaceList, BuildingInterfaceInfo_t * pBuildingInterfaceList) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtAllocator)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; // resolve unresolved interfaces and determine the size of the largest interface (in # slots) LoadApproxInterfaceMap(); // Inherit parental slot counts //@TODO: This doesn't belong here. if (HasParent()) { MethodTable * pParentClass = GetParentMethodTable(); PREFIX_ASSUME(pParentClass != NULL); bmtParent->NumParentPointerSeries = pParentClass->ContainsPointers() ? (DWORD)CGCDesc::GetCGCDescFromMT(pParentClass)->GetNumSeries() : 0; if (pParentClass->HasFieldsWhichMustBeInited()) { SetHasFieldsWhichMustBeInited(); } #ifdef FEATURE_READYTORUN if (!(IsValueClass() || (pParentClass == g_pObjectClass))) { CheckLayoutDependsOnOtherModules(pParentClass); } #endif } else { bmtParent->NumParentPointerSeries = 0; } } // MethodTableBuilder::ResolveInterfaces //******************************************************************************* /* static */ int __cdecl MethodTableBuilder::bmtMetaDataInfo::MethodImplTokenPair::Compare( const void *elem1, const void *elem2) { STATIC_CONTRACT_LEAF; MethodImplTokenPair *e1 = (MethodImplTokenPair *)elem1; MethodImplTokenPair *e2 = (MethodImplTokenPair *)elem2; if (e1->methodBody < e2->methodBody) return -1; else if (e1->methodBody > e2->methodBody) return 1; else if (e1->methodDecl < e2->methodDecl) return -1; else if (e1->methodDecl > e2->methodDecl) return 1; else return 0; } //******************************************************************************* /* static */ BOOL MethodTableBuilder::bmtMetaDataInfo::MethodImplTokenPair::Equal( const MethodImplTokenPair *elem1, const MethodImplTokenPair *elem2) { STATIC_CONTRACT_LEAF; return ((elem1->methodBody == elem2->methodBody) && (elem1->methodDecl == elem2->methodDecl)); } //******************************************************************************* BOOL MethodTableBuilder::IsEligibleForCovariantReturns(mdToken methodDeclToken) { STANDARD_VM_CONTRACT; // // Note on covariant return types: right now we only support covariant returns for MethodImpls on // classes, where the MethodDecl is also on a class. Interface methods are not supported. // We will also allow covariant return types if both the MethodImpl and MethodDecl are not on the same type. // HRESULT hr = S_OK; IMDInternalImport* pMDInternalImport = GetMDImport(); // First, check if the type with the MethodImpl is a class. if (IsValueClass() || IsInterface()) return FALSE; mdToken tkParent; hr = pMDInternalImport->GetParentToken(methodDeclToken, &tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); // Second, check that the type with the MethodImpl is not the same as the type with the MethodDecl if (GetCl() == tkParent) return FALSE; // Finally, check that the type with the MethodDecl is not an interface. To do so, we need to compute the TypeDef // token of the type with the MethodDecl, as well as its module, in order to use the metadata to check if the type // is an interface. mdToken declTypeDefToken = mdTokenNil; Module* pDeclModule = GetModule(); if (TypeFromToken(tkParent) == mdtTypeRef || TypeFromToken(tkParent) == mdtTypeDef) { if (!ClassLoader::ResolveTokenToTypeDefThrowing(GetModule(), tkParent, &pDeclModule, &declTypeDefToken)) return FALSE; } else if (TypeFromToken(tkParent) == mdtTypeSpec) { ULONG cbTypeSig; PCCOR_SIGNATURE pTypeSig; hr = pMDInternalImport->GetSigFromToken(tkParent, &cbTypeSig, &pTypeSig); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); SigParser parser(pTypeSig, cbTypeSig); CorElementType elementType; IfFailThrow(parser.GetElemType(&elementType)); if (elementType == ELEMENT_TYPE_GENERICINST) { IfFailThrow(parser.GetElemType(&elementType)); } if (elementType == ELEMENT_TYPE_CLASS) { mdToken declTypeDefOrRefToken; IfFailThrow(parser.GetToken(&declTypeDefOrRefToken)); if (!ClassLoader::ResolveTokenToTypeDefThrowing(GetModule(), declTypeDefOrRefToken, &pDeclModule, &declTypeDefToken)) return FALSE; } } if (declTypeDefToken == mdTokenNil) return FALSE; // Now that we have computed the TypeDef token and the module, check its attributes to verify it is not an interface. DWORD attr; hr = pDeclModule->GetMDImport()->GetTypeDefProps(declTypeDefToken, &attr, NULL); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); return !IsTdInterface(attr); } //******************************************************************************* VOID MethodTableBuilder::EnumerateMethodImpls() { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; IMDInternalImport * pMDInternalImport = GetMDImport(); DWORD rid, maxRidMD, maxRidMR; HENUMInternalMethodImplHolder hEnumMethodImpl(pMDInternalImport); hr = hEnumMethodImpl.EnumMethodImplInitNoThrow(GetCl()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // This gets the count out of the metadata interface. bmtMethod->dwNumberMethodImpls = hEnumMethodImpl.EnumMethodImplGetCount(); bmtMethod->dwNumberInexactMethodImplCandidates = 0; // This is the first pass. In this we will simply enumerate the token pairs and fill in // the data structures. In addition, we'll sort the list and eliminate duplicates. if (bmtMethod->dwNumberMethodImpls > 0) { // // Allocate the structures to keep track of the token pairs // bmtMetaData->rgMethodImplTokens = new (GetStackingAllocator()) bmtMetaDataInfo::MethodImplTokenPair[bmtMethod->dwNumberMethodImpls]; // Iterate through each MethodImpl declared on this class for (DWORD i = 0; i < bmtMethod->dwNumberMethodImpls; i++) { hr = hEnumMethodImpl.EnumMethodImplNext( &bmtMetaData->rgMethodImplTokens[i].methodBody, &bmtMetaData->rgMethodImplTokens[i].methodDecl); bmtMetaData->rgMethodImplTokens[i].fConsiderDuringInexactMethodImplProcessing = false; bmtMetaData->rgMethodImplTokens[i].fThrowIfUnmatchedDuringInexactMethodImplProcessing = false; bmtMetaData->rgMethodImplTokens[i].interfaceEquivalenceSet = 0; bmtMetaData->rgMethodImplTokens[i].fRequiresCovariantReturnTypeChecking = false; if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // Grab the next set of body/decl tokens if (hr == S_FALSE) { // In the odd case that the enumerator fails before we've reached the total reported // entries, let's reset the count and just break out. (Should we throw?) bmtMethod->dwNumberMethodImpls = i; break; } } // No need to do any sorting or duplicate elimination if there's not two or more methodImpls if (bmtMethod->dwNumberMethodImpls > 1) { // Now sort qsort(bmtMetaData->rgMethodImplTokens, bmtMethod->dwNumberMethodImpls, sizeof(bmtMetaDataInfo::MethodImplTokenPair), &bmtMetaDataInfo::MethodImplTokenPair::Compare); // Now eliminate duplicates for (DWORD i = 0; i < bmtMethod->dwNumberMethodImpls - 1; i++) { CONSISTENCY_CHECK((i + 1) < bmtMethod->dwNumberMethodImpls); bmtMetaDataInfo::MethodImplTokenPair *e1 = &bmtMetaData->rgMethodImplTokens[i]; bmtMetaDataInfo::MethodImplTokenPair *e2 = &bmtMetaData->rgMethodImplTokens[i + 1]; // If the pair are equal, eliminate the first one, and reduce the total count by one. if (bmtMetaDataInfo::MethodImplTokenPair::Equal(e1, e2)) { DWORD dwCopyNum = bmtMethod->dwNumberMethodImpls - (i + 1); memcpy(e1, e2, dwCopyNum * sizeof(bmtMetaDataInfo::MethodImplTokenPair)); bmtMethod->dwNumberMethodImpls--; CONSISTENCY_CHECK(bmtMethod->dwNumberMethodImpls > 0); } } } } if (bmtMethod->dwNumberMethodImpls != 0) { // // Allocate the structures to keep track of the impl matches // bmtMetaData->pMethodDeclSubsts = new (GetStackingAllocator()) Substitution[bmtMethod->dwNumberMethodImpls]; // These are used for verification maxRidMD = pMDInternalImport->GetCountWithTokenKind(mdtMethodDef); maxRidMR = pMDInternalImport->GetCountWithTokenKind(mdtMemberRef); // Iterate through each MethodImpl declared on this class for (DWORD i = 0; i < bmtMethod->dwNumberMethodImpls; i++) { PCCOR_SIGNATURE pSigDecl = NULL; PCCOR_SIGNATURE pSigBody = NULL; ULONG cbSigDecl; ULONG cbSigBody; mdToken tkParent; mdToken theBody, theDecl; Substitution theDeclSubst(GetModule(), SigPointer(), NULL); // this can get updated later below. theBody = bmtMetaData->rgMethodImplTokens[i].methodBody; theDecl = bmtMetaData->rgMethodImplTokens[i].methodDecl; // IMPLEMENTATION LIMITATION: currently, we require that the body of a methodImpl // belong to the current type. This is because we need to allocate a different // type of MethodDesc for bodies that are part of methodImpls. if (TypeFromToken(theBody) != mdtMethodDef) { hr = FindMethodDeclarationForMethodImpl( theBody, &theBody, TRUE); if (FAILED(hr)) { BuildMethodTableThrowException(hr, IDS_CLASSLOAD_MI_ILLEGAL_BODY, mdMethodDefNil); } // Make sure to update the stored token with the resolved token. bmtMetaData->rgMethodImplTokens[i].methodBody = theBody; } if (TypeFromToken(theBody) != mdtMethodDef) { BuildMethodTableThrowException(BFA_METHODDECL_NOT_A_METHODDEF); } CONSISTENCY_CHECK(theBody == bmtMetaData->rgMethodImplTokens[i].methodBody); // // Now that the tokens of Decl and Body are obtained, do the MD validation // rid = RidFromToken(theDecl); // Perform initial rudimentary validation of the token. Full token verification // will be done in TestMethodImpl when placing the methodImpls. if (TypeFromToken(theDecl) == mdtMethodDef) { // Decl must be valid token if ((rid == 0) || (rid > maxRidMD)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL); } // Get signature and length if (FAILED(pMDInternalImport->GetSigOfMethodDef(theDecl, &cbSigDecl, &pSigDecl))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } // The token is not a MethodDef (likely a MemberRef) else { // Decl must be valid token if ((TypeFromToken(theDecl) != mdtMemberRef) || (rid == 0) || (rid > maxRidMR)) { bmtError->resIDWhy = IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL; BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL); } // Get signature and length LPCSTR szDeclName; if (FAILED(pMDInternalImport->GetNameAndSigOfMemberRef(theDecl, &pSigDecl, &cbSigDecl, &szDeclName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } // Get parent hr = pMDInternalImport->GetParentToken(theDecl,&tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); theDeclSubst = Substitution(tkParent, GetModule(), NULL); } // Perform initial rudimentary validation of the token. Full token verification // will be done in TestMethodImpl when placing the methodImpls. { // Body must be valid token rid = RidFromToken(theBody); if ((rid == 0)||(rid > maxRidMD)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_BODY); } // Body's parent must be this class hr = pMDInternalImport->GetParentToken(theBody,&tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); if(tkParent != GetCl()) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_BODY); } } // Decl's and Body's signatures must match if(pSigDecl && cbSigDecl) { if (FAILED(pMDInternalImport->GetSigOfMethodDef(theBody, &cbSigBody, &pSigBody)) || (pSigBody == NULL) || (cbSigBody == 0)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MISSING_SIG_BODY); } // Can't use memcmp because there may be two AssemblyRefs // in this scope, pointing to the same assembly, etc.). BOOL compatibleSignatures = MetaSig::CompareMethodSigs(pSigDecl, cbSigDecl, GetModule(), &theDeclSubst, pSigBody, cbSigBody, GetModule(), NULL, FALSE); if (!compatibleSignatures && IsEligibleForCovariantReturns(theDecl)) { if (MetaSig::CompareMethodSigs(pSigDecl, cbSigDecl, GetModule(), &theDeclSubst, pSigBody, cbSigBody, GetModule(), NULL, TRUE)) { // Signatures matched, except for the return type. Flag that MethodImpl to check the return type at a later // stage for compatibility, and treat it as compatible for now. // For compatibility rules, see ECMA I.8.7.1. We will use the MethodTable::CanCastTo() at a later stage to validate // compatibilities of the return types according to these rules. compatibleSignatures = TRUE; bmtMetaData->rgMethodImplTokens[i].fRequiresCovariantReturnTypeChecking = true; bmtMetaData->fHasCovariantOverride = true; } } if (!compatibleSignatures) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_BODY_DECL_MISMATCH); } } else { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MISSING_SIG_DECL); } bmtMetaData->pMethodDeclSubsts[i] = theDeclSubst; } } } // MethodTableBuilder::EnumerateMethodImpls //******************************************************************************* // // Find a method declaration that must reside in the scope passed in. This method cannot be called if // the reference travels to another scope. // // Protect against finding a declaration that lives within // us (the type being created) // HRESULT MethodTableBuilder::FindMethodDeclarationForMethodImpl( mdToken pToken, // Token that is being located (MemberRef or MemberDef) mdToken* pDeclaration, // [OUT] Method definition for Member BOOL fSameClass) // Does the declaration need to be in this class { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; IMDInternalImport *pMDInternalImport = GetMDImport(); PCCOR_SIGNATURE pSig; // Signature of Member DWORD cSig; LPCUTF8 szMember = NULL; // The token should be a member ref or def. If it is a ref then we need to travel // back to us hopefully. if(TypeFromToken(pToken) == mdtMemberRef) { // Get the parent mdToken typeref; if (FAILED(pMDInternalImport->GetParentOfMemberRef(pToken, &typeref))) { BAD_FORMAT_NOTHROW_ASSERT(!"Invalid MemberRef record"); IfFailRet(COR_E_TYPELOAD); } GOTPARENT: if (TypeFromToken(typeref) == mdtMethodDef) { // If parent is a method def then this is a varags method mdTypeDef typeDef; IfFailRet(pMDInternalImport->GetParentToken(typeref, &typeDef)); if (TypeFromToken(typeDef) != mdtTypeDef) { // A mdtMethodDef must be parented by a mdtTypeDef BAD_FORMAT_NOTHROW_ASSERT(!"MethodDef without TypeDef as Parent"); IfFailRet(COR_E_TYPELOAD); } BAD_FORMAT_NOTHROW_ASSERT(typeDef == GetCl()); // This is the real method we are overriding *pDeclaration = typeref; } else if (TypeFromToken(typeref) == mdtTypeSpec) { // Added so that method impls can refer to instantiated interfaces or classes if (FAILED(pMDInternalImport->GetSigFromToken(typeref, &cSig, &pSig))) { BAD_FORMAT_NOTHROW_ASSERT(!"Invalid TypeSpec record"); IfFailRet(COR_E_TYPELOAD); } CorElementType elemType = (CorElementType) *pSig++; if (elemType == ELEMENT_TYPE_GENERICINST) { // If this is a generic inst, we expect that the next elem is ELEMENT_TYPE_CLASS, // which is handled in the case below. elemType = (CorElementType) *pSig++; BAD_FORMAT_NOTHROW_ASSERT(elemType == ELEMENT_TYPE_CLASS); } if (elemType == ELEMENT_TYPE_CLASS) { // This covers E_T_GENERICINST and E_T_CLASS typespec formats. We don't expect // any other kinds to come through here. CorSigUncompressToken(pSig, &typeref); } else { // This is an unrecognized signature format. BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MI_BAD_SIG, mdMethodDefNil); } goto GOTPARENT; } else { // Verify that the ref points back to us mdToken tkDef = mdTokenNil; if (TypeFromToken(typeref) == mdtTypeRef) { // We only get here when we know the token does not reference a type in a different scope. LPCUTF8 pszNameSpace; LPCUTF8 pszClassName; if (FAILED(pMDInternalImport->GetNameOfTypeRef(typeref, &pszNameSpace, &pszClassName))) { IfFailRet(COR_E_TYPELOAD); } mdToken tkRes; if (FAILED(pMDInternalImport->GetResolutionScopeOfTypeRef(typeref, &tkRes))) { IfFailRet(COR_E_TYPELOAD); } hr = pMDInternalImport->FindTypeDef(pszNameSpace, pszClassName, (TypeFromToken(tkRes) == mdtTypeRef) ? tkRes : mdTokenNil, &tkDef); if (FAILED(hr)) { IfFailRet(COR_E_TYPELOAD); } } else if (TypeFromToken(typeref) == mdtTypeDef) { // We get a typedef when the parent of the token is a typespec to the type. tkDef = typeref; } else { CONSISTENCY_CHECK_MSGF(FALSE, ("Invalid methodimpl signature in class %s.", GetDebugClassName())); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MI_BAD_SIG, mdMethodDefNil); } if (fSameClass && tkDef != GetCl()) { // If we required that the typedef be the same type as the current class, // and it doesn't match, we need to return a failure result. IfFailRet(COR_E_TYPELOAD); } IfFailRet(pMDInternalImport->GetNameAndSigOfMemberRef(pToken, &pSig, &cSig, &szMember)); if (isCallConv( MetaSig::GetCallingConvention(Signature(pSig, cSig)), IMAGE_CEE_CS_CALLCONV_FIELD)) { return VLDTR_E_MR_BADCALLINGCONV; } hr = pMDInternalImport->FindMethodDef( tkDef, szMember, pSig, cSig, pDeclaration); IfFailRet(hr); } } else if (TypeFromToken(pToken) == mdtMethodDef) { mdTypeDef typeDef; // Verify that we are the parent hr = pMDInternalImport->GetParentToken(pToken, &typeDef); IfFailRet(hr); if(typeDef != GetCl()) { IfFailRet(COR_E_TYPELOAD); } *pDeclaration = pToken; } else { IfFailRet(COR_E_TYPELOAD); } return hr; } #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif // _PREFAST_ //--------------------------------------------------------------------------------------- // // Used by BuildMethodTable // // Enumerate this class's members // VOID MethodTableBuilder::EnumerateClassMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtError)); } CONTRACTL_END; HRESULT hr = S_OK; DWORD i; IMDInternalImport *pMDInternalImport = GetMDImport(); mdToken tok; DWORD dwMemberAttrs; BOOL fIsClassEnum = IsEnum(); BOOL fIsClassInterface = IsInterface(); BOOL fIsClassValueType = IsValueClass(); BOOL fIsClassComImport = IsComImport(); BOOL fIsClassNotAbstract = (IsTdAbstract(GetAttrClass()) == 0); PCCOR_SIGNATURE pMemberSignature; ULONG cMemberSignature; // // Run through the method list and calculate the following: // # methods. // # "other" methods (i.e. static or private) // # non-other methods // HENUMInternalHolder hEnumMethod(pMDInternalImport); hr = hEnumMethod.EnumInitNoThrow(mdtMethodDef, GetCl()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // Allocate an array to contain the method tokens as well as information about the methods. DWORD cMethAndGaps = hEnumMethod.EnumGetCount(); if ((DWORD)MAX_SLOT_INDEX <= cMethAndGaps) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); bmtMethod->m_cMaxDeclaredMethods = (SLOT_INDEX)cMethAndGaps; bmtMethod->m_cDeclaredMethods = 0; bmtMethod->m_rgDeclaredMethods = new (GetStackingAllocator()) bmtMDMethod *[bmtMethod->m_cMaxDeclaredMethods]; enum { SeenCtor = 1, SeenInvoke = 2, SeenBeginInvoke = 4, SeenEndInvoke = 8}; unsigned delegateMethodsSeen = 0; for (i = 0; i < cMethAndGaps; i++) { ULONG dwMethodRVA; DWORD dwImplFlags; METHOD_TYPE type; METHOD_IMPL_TYPE implType; LPSTR strMethodName; #ifdef FEATURE_TYPEEQUIVALENCE // TypeEquivalent structs must not have methods if (bmtProp->fIsTypeEquivalent && fIsClassValueType) { BuildMethodTableThrowException(IDS_CLASSLOAD_EQUIVALENTSTRUCTMETHODS); } #endif // // Go to the next method and retrieve its attributes. // hEnumMethod.EnumNext(&tok); DWORD rid = RidFromToken(tok); if ((rid == 0)||(rid > pMDInternalImport->GetCountWithTokenKind(mdtMethodDef))) { BuildMethodTableThrowException(BFA_METHOD_TOKEN_OUT_OF_RANGE); } if (FAILED(pMDInternalImport->GetSigOfMethodDef(tok, &cMemberSignature, &pMemberSignature))) { BuildMethodTableThrowException(hr, BFA_BAD_SIGNATURE, mdMethodDefNil); } if (FAILED(pMDInternalImport->GetMethodDefProps(tok, &dwMemberAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } bool isVtblGap = false; if (IsMdRTSpecialName(dwMemberAttrs) || IsMdVirtual(dwMemberAttrs) || IsDelegate()) { if (FAILED(pMDInternalImport->GetNameOfMethodDef(tok, (LPCSTR *)&strMethodName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if(IsStrLongerThan(strMethodName,MAX_CLASS_NAME)) { BuildMethodTableThrowException(BFA_METHOD_NAME_TOO_LONG); } isVtblGap = IsMdRTSpecialName(dwMemberAttrs) && strncmp(strMethodName, "_VtblGap", 8) == 0; } else { strMethodName = NULL; } // Signature validation if (!bmtProp->fNoSanityChecks && !isVtblGap) { hr = validateTokenSig(tok,pMemberSignature,cMemberSignature,dwMemberAttrs,pMDInternalImport); if (FAILED(hr)) { BuildMethodTableThrowException(hr, BFA_BAD_SIGNATURE, mdMethodDefNil); } } DWORD numGenericMethodArgs = 0; { SigParser genericArgParser(pMemberSignature, cMemberSignature); uint32_t ulCallConv; hr = genericArgParser.GetCallingConvInfo(&ulCallConv); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // Only read the generic parameter table if the method signature is generic if (ulCallConv & IMAGE_CEE_CS_CALLCONV_GENERIC) { HENUMInternalHolder hEnumTyPars(pMDInternalImport); hr = hEnumTyPars.EnumInitNoThrow(mdtGenericParam, tok); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } numGenericMethodArgs = hEnumTyPars.EnumGetCount(); // We do not want to support context-bound objects with generic methods. if (numGenericMethodArgs != 0) { HENUMInternalHolder hEnumGenericPars(pMDInternalImport); hEnumGenericPars.EnumInit(mdtGenericParam, tok); for (unsigned methIdx = 0; methIdx < numGenericMethodArgs; methIdx++) { mdGenericParam tkTyPar; pMDInternalImport->EnumNext(&hEnumGenericPars, &tkTyPar); DWORD flags; if (FAILED(pMDInternalImport->GetGenericParamProps(tkTyPar, NULL, &flags, NULL, NULL, NULL))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (0 != (flags & ~(gpVarianceMask | gpSpecialConstraintMask))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } switch (flags & gpVarianceMask) { case gpNonVariant: break; case gpCovariant: // intentional fallthru case gpContravariant: BuildMethodTableThrowException(VLDTR_E_GP_ILLEGAL_VARIANT_MVAR); break; default: BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } } } } // // We need to check if there are any gaps in the vtable. These are // represented by methods with the mdSpecial flag and a name of the form // _VTblGap_nnn (to represent nnn empty slots) or _VTblGap (to represent a // single empty slot). // if (isVtblGap) { // // This slot doesn't really exist, don't add it to the method // table. Instead it represents one or more empty slots, encoded // in the method name. Locate the beginning of the count in the // name. There are these points to consider: // There may be no count present at all (in which case the // count is taken as one). // There may be an additional count just after Gap but before // the '_'. We ignore this. // LPCSTR pos = strMethodName + 8; // Skip optional number. while (IS_DIGIT(*pos)) pos++; WORD n = 0; // Check for presence of count. if (*pos == '\0') { n = 1; } else { if (*pos != '_') { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } // Skip '_'. pos++; // Read count. bool fReadAtLeastOneDigit = false; while (IS_DIGIT(*pos)) { _ASSERTE(n < 6552); n *= 10; n += DIGIT_TO_INT(*pos); pos++; fReadAtLeastOneDigit = true; } // Check for end of name. if (*pos != '\0' || !fReadAtLeastOneDigit) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } } #ifdef FEATURE_COMINTEROP // Record vtable gap in mapping list. The map is an optional field, so ensure we've allocated // these fields first. EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); if (GetHalfBakedClass()->GetSparseCOMInteropVTableMap() == NULL) GetHalfBakedClass()->SetSparseCOMInteropVTableMap(new SparseVTableMap()); GetHalfBakedClass()->GetSparseCOMInteropVTableMap()->RecordGap((WORD)NumDeclaredMethods(), n); bmtProp->fSparse = true; #endif // FEATURE_COMINTEROP continue; } // // This is a real method so add it to the enumeration of methods. We now need to retrieve // information on the method and store it for later use. // if (FAILED(pMDInternalImport->GetMethodImplProps(tok, &dwMethodRVA, &dwImplFlags))) { BuildMethodTableThrowException( COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } // Check for the presence of virtual static methods if (IsMdVirtual(dwMemberAttrs) && IsMdStatic(dwMemberAttrs)) { bmtProp->fHasVirtualStaticMethods = TRUE; } // // But first - minimal flags validity checks // // No methods in Enums! #ifndef _DEBUG // Don't run the minimal validity checks for the system dll/r2r dlls (except in debug builds so we don't build a bad system dll) if (!bmtProp->fNoSanityChecks) #endif { if (fIsClassEnum) { BuildMethodTableThrowException(BFA_METHOD_IN_A_ENUM); } // RVA : 0 if (dwMethodRVA != 0) { if(fIsClassComImport) { BuildMethodTableThrowException(BFA_METHOD_WITH_NONZERO_RVA); } if(IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_ABSTRACT_METHOD_WITH_RVA); } if(IsMiRuntime(dwImplFlags)) { BuildMethodTableThrowException(BFA_RUNTIME_METHOD_WITH_RVA); } if(IsMiInternalCall(dwImplFlags)) { BuildMethodTableThrowException(BFA_INTERNAL_METHOD_WITH_RVA); } } // Abstract / not abstract if(IsMdAbstract(dwMemberAttrs)) { if(fIsClassNotAbstract) { BuildMethodTableThrowException(BFA_AB_METHOD_IN_AB_CLASS); } if(!IsMdVirtual(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONVIRT_AB_METHOD); } } else if(fIsClassInterface) { if (IsMdRTSpecialName(dwMemberAttrs)) { CONSISTENCY_CHECK(CheckPointer(strMethodName)); if (strcmp(strMethodName, COR_CCTOR_METHOD_NAME)) { BuildMethodTableThrowException(BFA_NONAB_NONCCTOR_METHOD_ON_INT); } } } // Virtual / not virtual if(IsMdVirtual(dwMemberAttrs)) { if(IsMdPinvokeImpl(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_PINVOKE_METHOD); } if(IsMdStatic(dwMemberAttrs)) { if (!fIsClassInterface) { // Static virtual methods are only allowed to exist in interfaces BuildMethodTableThrowException(BFA_VIRTUAL_STATIC_METHOD); } } if(strMethodName && (0==strcmp(strMethodName, COR_CTOR_METHOD_NAME))) { BuildMethodTableThrowException(BFA_VIRTUAL_INSTANCE_CTOR); } } // Some interface checks. // We only need them if default interface method support is disabled or if this is fragile crossgen #if !defined(FEATURE_DEFAULT_INTERFACES) if (fIsClassInterface) { if (IsMdVirtual(dwMemberAttrs)) { if (!IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_NONAB_INT_METHOD); } } else { // Instance method if (!IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONVIRT_INST_INT_METHOD); } } } #endif // !defined(FEATURE_DEFAULT_INTERFACES) // No synchronized methods in ValueTypes if(fIsClassValueType && IsMiSynchronized(dwImplFlags)) { BuildMethodTableThrowException(BFA_SYNC_METHOD_IN_VT); } // Global methods: if(IsGlobalClass()) { if(!IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONSTATIC_GLOBAL_METHOD); } if (strMethodName) //<TODO>@todo: investigate mc++ generating null name</TODO> { if(0==strcmp(strMethodName, COR_CTOR_METHOD_NAME)) { BuildMethodTableThrowException(BFA_GLOBAL_INST_CTOR); } } } //@GENERICS: // Generic methods or methods in generic classes // may not be part of a COM Import class, PInvoke, internal call outside CoreLib. if ((bmtGenerics->GetNumGenericArgs() != 0 || numGenericMethodArgs != 0) && ( #ifdef FEATURE_COMINTEROP fIsClassComImport || bmtProp->fComEventItfType || #endif // FEATURE_COMINTEROP IsMdPinvokeImpl(dwMemberAttrs) || (IsMiInternalCall(dwImplFlags) && !GetModule()->IsSystem()))) { BuildMethodTableThrowException(BFA_BAD_PLACE_FOR_GENERIC_METHOD); } // Generic methods may not be marked "runtime". However note that // methods in generic delegate classes are, hence we don't apply this to // methods in generic classes in general. if (numGenericMethodArgs != 0 && IsMiRuntime(dwImplFlags)) { BuildMethodTableThrowException(BFA_GENERIC_METHOD_RUNTIME_IMPL); } // Check the appearance of covariant and contravariant in the method signature // Note that variance is only supported for interfaces, and these rules are not // checked for non-virtual static methods as they cannot be called variantly. if ((bmtGenerics->pVarianceInfo != NULL) && (IsMdVirtual(dwMemberAttrs) || !IsMdStatic(dwMemberAttrs))) { SigPointer sp(pMemberSignature, cMemberSignature); uint32_t callConv; IfFailThrow(sp.GetCallingConvInfo(&callConv)); if (callConv & IMAGE_CEE_CS_CALLCONV_GENERIC) IfFailThrow(sp.GetData(NULL)); uint32_t numArgs; IfFailThrow(sp.GetData(&numArgs)); // Return type behaves covariantly if (!EEClass::CheckVarianceInSig( bmtGenerics->GetNumGenericArgs(), bmtGenerics->pVarianceInfo, GetModule(), sp, gpCovariant)) { BuildMethodTableThrowException(IDS_CLASSLOAD_VARIANCE_IN_METHOD_RESULT, tok); } IfFailThrow(sp.SkipExactlyOne()); for (uint32_t j = 0; j < numArgs; j++) { // Argument types behave contravariantly if (!EEClass::CheckVarianceInSig(bmtGenerics->GetNumGenericArgs(), bmtGenerics->pVarianceInfo, GetModule(), sp, gpContravariant)) { BuildMethodTableThrowException(IDS_CLASSLOAD_VARIANCE_IN_METHOD_ARG, tok); } IfFailThrow(sp.SkipExactlyOne()); } } } // // Determine the method's type // if (IsReallyMdPinvokeImpl(dwMemberAttrs) || IsMiInternalCall(dwImplFlags)) { hr = NDirect::HasNAT_LAttribute(pMDInternalImport, tok, dwMemberAttrs); // There was a problem querying for the attribute if (FAILED(hr)) { BuildMethodTableThrowException(hr, IDS_CLASSLOAD_BADPINVOKE, tok); } // The attribute is not present if (hr == S_FALSE) { #ifdef FEATURE_COMINTEROP if (fIsClassComImport || bmtProp->fComEventItfType) { // ComImport classes have methods which are just used // for implementing all interfaces the class supports type = METHOD_TYPE_COMINTEROP; // constructor is special if (IsMdRTSpecialName(dwMemberAttrs)) { // Note: Method name (.ctor) will be checked in code:ValidateMethods type = METHOD_TYPE_FCALL; } } else #endif //FEATURE_COMINTEROP if (dwMethodRVA == 0) { type = METHOD_TYPE_FCALL; } else { type = METHOD_TYPE_NDIRECT; } } // The NAT_L attribute is present, marking this method as NDirect else { CONSISTENCY_CHECK(hr == S_OK); type = METHOD_TYPE_NDIRECT; } } else if (IsMiRuntime(dwImplFlags)) { // currently the only runtime implemented functions are delegate instance methods if (!IsDelegate() || IsMdStatic(dwMemberAttrs) || IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_BAD_RUNTIME_IMPL); } unsigned newDelegateMethodSeen = 0; if (IsMdRTSpecialName(dwMemberAttrs)) // .ctor { if (strcmp(strMethodName, COR_CTOR_METHOD_NAME) != 0 || IsMdVirtual(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_BAD_FLAGS_ON_DELEGATE); } newDelegateMethodSeen = SeenCtor; type = METHOD_TYPE_FCALL; } else { if (strcmp(strMethodName, "Invoke") == 0) newDelegateMethodSeen = SeenInvoke; else if (strcmp(strMethodName, "BeginInvoke") == 0) newDelegateMethodSeen = SeenBeginInvoke; else if (strcmp(strMethodName, "EndInvoke") == 0) newDelegateMethodSeen = SeenEndInvoke; else { BuildMethodTableThrowException(BFA_UNKNOWN_DELEGATE_METHOD); } type = METHOD_TYPE_EEIMPL; } // If we get here we have either set newDelegateMethodSeen or we have thrown a BMT exception _ASSERTE(newDelegateMethodSeen != 0); if ((delegateMethodsSeen & newDelegateMethodSeen) != 0) { BuildMethodTableThrowException(BFA_DUPLICATE_DELEGATE_METHOD); } delegateMethodsSeen |= newDelegateMethodSeen; } else if (numGenericMethodArgs != 0) { //We use an instantiated method desc to represent a generic method type = METHOD_TYPE_INSTANTIATED; } else if (fIsClassInterface) { #ifdef FEATURE_COMINTEROP if (IsMdStatic(dwMemberAttrs)) { // Static methods in interfaces need nothing special. type = METHOD_TYPE_NORMAL; } else if (bmtGenerics->GetNumGenericArgs() != 0 && (bmtGenerics->fSharedByGenericInstantiations)) { // Methods in instantiated interfaces need nothing special - they are not visible from COM etc. type = METHOD_TYPE_NORMAL; } else if (bmtProp->fIsMngStandardItf) { // If the interface is a standard managed interface then allocate space for an FCall method desc. type = METHOD_TYPE_FCALL; } else if (IsMdAbstract(dwMemberAttrs)) { // If COM interop is supported then all other interface MDs may be // accessed via COM interop. mcComInterop MDs have an additional // pointer-sized field pointing to COM interop data which are // allocated lazily when/if the MD actually gets used for interop. type = METHOD_TYPE_COMINTEROP; } else #endif // !FEATURE_COMINTEROP { // This codepath is used by remoting type = METHOD_TYPE_NORMAL; } } else { type = METHOD_TYPE_NORMAL; } // Generic methods should always be METHOD_TYPE_INSTANTIATED if ((numGenericMethodArgs != 0) && (type != METHOD_TYPE_INSTANTIATED)) { BuildMethodTableThrowException(BFA_GENERIC_METHODS_INST); } // count how many overrides this method does All methods bodies are defined // on this type so we can just compare the tok with the body token found // from the overrides. implType = METHOD_IMPL_NOT; for (DWORD impls = 0; impls < bmtMethod->dwNumberMethodImpls; impls++) { if (bmtMetaData->rgMethodImplTokens[impls].methodBody == tok) { implType = METHOD_IMPL; break; } } // For delegates we don't allow any non-runtime implemented bodies // for any of the four special methods if (IsDelegate() && !IsMiRuntime(dwImplFlags)) { if ((strcmp(strMethodName, COR_CTOR_METHOD_NAME) == 0) || (strcmp(strMethodName, "Invoke") == 0) || (strcmp(strMethodName, "BeginInvoke") == 0) || (strcmp(strMethodName, "EndInvoke") == 0) ) { BuildMethodTableThrowException(BFA_ILLEGAL_DELEGATE_METHOD); } } // // Create a new bmtMDMethod representing this method and add it to the // declared method list. // bmtMDMethod * pNewMethod = new (GetStackingAllocator()) bmtMDMethod( bmtInternal->pType, tok, dwMemberAttrs, dwImplFlags, dwMethodRVA, type, implType); bmtMethod->AddDeclaredMethod(pNewMethod); // // Update the count of the various types of methods. // bmtVT->dwMaxVtableSize++; // Increment the number of non-abstract declared methods if (!IsMdAbstract(dwMemberAttrs)) { bmtMethod->dwNumDeclaredNonAbstractMethods++; } } if (bmtMethod->dwNumDeclaredNonAbstractMethods == 0) { GetHalfBakedClass()->SetHasOnlyAbstractMethods(); } // Check to see that we have all of the required delegate methods (ECMA 13.6 Delegates) if (IsDelegate()) { // Do we have all four special delegate methods // or just the two special delegate methods if ((delegateMethodsSeen != (SeenCtor | SeenInvoke | SeenBeginInvoke | SeenEndInvoke)) && (delegateMethodsSeen != (SeenCtor | SeenInvoke)) ) { BuildMethodTableThrowException(BFA_MISSING_DELEGATE_METHOD); } } if (i != cMethAndGaps) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_METHOD_COUNT, mdTokenNil); } #ifdef FEATURE_COMINTEROP // // If the interface is sparse, we need to finalize the mapping list by // telling it how many real methods we found. // if (bmtProp->fSparse) { GetHalfBakedClass()->GetSparseCOMInteropVTableMap()->FinalizeMapping(NumDeclaredMethods()); } #endif // FEATURE_COMINTEROP } // MethodTableBuilder::EnumerateClassMethods #ifdef _PREFAST_ #pragma warning(pop) #endif //******************************************************************************* // // Run through the field list and calculate the following: // # static fields // # static fields that contain object refs. // # instance fields // VOID MethodTableBuilder::EnumerateClassFields() { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; DWORD i; IMDInternalImport *pMDInternalImport = GetMDImport(); mdToken tok; DWORD dwMemberAttrs; bmtEnumFields->dwNumStaticFields = 0; bmtEnumFields->dwNumStaticObjRefFields = 0; bmtEnumFields->dwNumStaticBoxedFields = 0; bmtEnumFields->dwNumThreadStaticFields = 0; bmtEnumFields->dwNumThreadStaticObjRefFields = 0; bmtEnumFields->dwNumThreadStaticBoxedFields = 0; bmtEnumFields->dwNumInstanceFields = 0; HENUMInternalHolder hEnumField(pMDInternalImport); hr = hEnumField.EnumInitNoThrow(mdtFieldDef, GetCl()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } bmtMetaData->cFields = hEnumField.EnumGetCount(); // Retrieve the fields and store them in a temp array. bmtMetaData->pFields = new (GetStackingAllocator()) mdToken[bmtMetaData->cFields]; bmtMetaData->pFieldAttrs = new (GetStackingAllocator()) DWORD[bmtMetaData->cFields]; DWORD dwFieldLiteralInitOnly = fdLiteral | fdInitOnly; DWORD dwMaxFieldDefRid = pMDInternalImport->GetCountWithTokenKind(mdtFieldDef); for (i = 0; hEnumField.EnumNext(&tok); i++) { // // Retrieve the attributes of the field. // DWORD rid = RidFromToken(tok); if ((rid == 0)||(rid > dwMaxFieldDefRid)) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, BFA_BAD_FIELD_TOKEN, mdTokenNil); } if (FAILED(pMDInternalImport->GetFieldDefProps(tok, &dwMemberAttrs))) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, BFA_BAD_FIELD_TOKEN, tok); } // // Store the field and its attributes in the bmtMetaData structure for later use. // bmtMetaData->pFields[i] = tok; bmtMetaData->pFieldAttrs[i] = dwMemberAttrs; if((dwMemberAttrs & fdFieldAccessMask)==fdFieldAccessMask) { BuildMethodTableThrowException(BFA_INVALID_FIELD_ACC_FLAGS); } if((dwMemberAttrs & dwFieldLiteralInitOnly)==dwFieldLiteralInitOnly) { BuildMethodTableThrowException(BFA_FIELD_LITERAL_AND_INIT); } // can only have static global fields if(IsGlobalClass()) { if(!IsFdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONSTATIC_GLOBAL_FIELD); } } // // Update the count of the various types of fields. // if (IsFdStatic(dwMemberAttrs)) { if (!IsFdLiteral(dwMemberAttrs)) { #ifdef FEATURE_TYPEEQUIVALENCE if (bmtProp->fIsTypeEquivalent) { BuildMethodTableThrowException(IDS_CLASSLOAD_EQUIVALENTSTRUCTFIELDS); } #endif bmtEnumFields->dwNumStaticFields++; // If this static field is thread static, then we need // to increment bmtEnumFields->dwNumThreadStaticFields hr = GetCustomAttribute(tok, WellKnownAttribute::ThreadStatic, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { // It's a thread static, so increment the count bmtEnumFields->dwNumThreadStaticFields++; } } } else { #ifdef FEATURE_TYPEEQUIVALENCE if (!IsFdPublic(dwMemberAttrs) && bmtProp->fIsTypeEquivalent) { BuildMethodTableThrowException(IDS_CLASSLOAD_EQUIVALENTSTRUCTFIELDS); } #endif if (!IsFdLiteral(dwMemberAttrs)) { bmtEnumFields->dwNumInstanceFields++; } if(IsInterface()) { BuildMethodTableThrowException(BFA_INSTANCE_FIELD_IN_INT); } } } if (i != bmtMetaData->cFields) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD_COUNT, mdTokenNil); } if(IsEnum() && (bmtEnumFields->dwNumInstanceFields==0)) { BuildMethodTableThrowException(BFA_INSTANCE_FIELD_IN_ENUM); } bmtEnumFields->dwNumDeclaredFields = bmtEnumFields->dwNumStaticFields + bmtEnumFields->dwNumInstanceFields; } //******************************************************************************* // // Used by BuildMethodTable // // Determines the maximum size of the vtable and allocates the temporary storage arrays // Also copies the parent's vtable into the working vtable. // VOID MethodTableBuilder::AllocateWorkingSlotTables() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtAllocator)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtFP)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; // Allocate a FieldDesc* for each field bmtMFDescs->ppFieldDescList = new (GetStackingAllocator()) FieldDesc*[bmtMetaData->cFields]; ZeroMemory(bmtMFDescs->ppFieldDescList, bmtMetaData->cFields * sizeof(FieldDesc *)); // Create a temporary function table (we don't know how large the vtable will be until the very end, // since we don't yet know how many declared methods are overrides vs. newslots). if (IsValueClass()) { // ValueClass virtuals are converted into non-virtual methods and the virtual slots // become unboxing stubs that forward to these new non-virtual methods. This has the // side effect of doubling the number of slots introduced by newslot virtuals. bmtVT->dwMaxVtableSize += NumDeclaredMethods(); } _ASSERTE(!HasParent() || (bmtInterface->dwInterfaceMapSize - GetParentMethodTable()->GetNumInterfaces()) >= 0); if (HasParent()) { // Add parent vtable size. <TODO> This should actually be the parent's virtual method count. </TODO> bmtVT->dwMaxVtableSize += bmtParent->pSlotTable->GetSlotCount(); } S_SLOT_INDEX cMaxSlots = AsClrSafeInt(bmtVT->dwMaxVtableSize) + AsClrSafeInt(NumDeclaredMethods()); if (cMaxSlots.IsOverflow() || MAX_SLOT_INDEX < cMaxSlots.Value()) cMaxSlots = S_SLOT_INDEX(MAX_SLOT_INDEX); // Allocate the temporary vtable bmtVT->pSlotTable = new (GetStackingAllocator()) bmtMethodSlotTable(cMaxSlots.Value(), GetStackingAllocator()); if (HasParent()) { #if 0 // @<TODO>todo: Figure out the right way to override Equals for value // types only. // // This is broken because // (a) g_pObjectClass->FindMethod("Equals", &gsig_IM_Obj_RetBool); will return // the EqualsValue method // (b) When CoreLib has been preloaded (and thus the munge already done // ahead of time), we cannot easily find both methods // to compute EqualsAddr & EqualsSlot // // For now, the Equals method has a runtime check to see if it's // comparing value types. //</TODO> // If it is a value type, over ride a few of the base class methods. if (IsValueClass()) { static WORD EqualsSlot; // If we haven't been through here yet, get some stuff from the Object class definition. if (EqualsSlot == NULL) { // Get the slot of the Equals method. MethodDesc *pEqualsMD = g_pObjectClass->FindMethod("Equals", &gsig_IM_Obj_RetBool); THROW_BAD_FORMAT_MAYBE(pEqualsMD != NULL, 0, this); EqualsSlot = pEqualsMD->GetSlot(); // Get the address of the EqualsValue method. MethodDesc *pEqualsValueMD = g_pObjectClass->FindMethod("EqualsValue", &gsig_IM_Obj_RetBool); THROW_BAD_FORMAT_MAYBE(pEqualsValueMD != NULL, 0, this); // Patch the EqualsValue method desc in a dangerous way to // look like the Equals method desc. pEqualsValueMD->SetSlot(EqualsSlot); pEqualsValueMD->SetMemberDef(pEqualsMD->GetMemberDef()); } // Override the valuetype "Equals" with "EqualsValue". bmtVT->SetMethodDescForSlot(EqualsSlot, EqualsSlot); } #endif // 0 } S_UINT32 cEntries = S_UINT32(2) * S_UINT32(NumDeclaredMethods()); if (cEntries.IsOverflow()) { ThrowHR(COR_E_OVERFLOW); } } //******************************************************************************* // // Used by BuildMethodTable // // Allocate a MethodDesc* for each method (needed later when doing interfaces), and a FieldDesc* for each field // VOID MethodTableBuilder::AllocateFieldDescs() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtAllocator)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtFP)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; // We'll be counting the # fields of each size as we go along for (DWORD i = 0; i <= MAX_LOG2_PRIMITIVE_FIELD_SIZE; i++) { bmtFP->NumRegularStaticFieldsOfSize[i] = 0; bmtFP->NumThreadStaticFieldsOfSize[i] = 0; bmtFP->NumInstanceFieldsOfSize[i] = 0; } // // Allocate blocks of MethodDescs and FieldDescs for all declared methods and fields // // In order to avoid allocating a field pointing back to the method // table in every single method desc, we allocate memory in the // following manner: // o Field descs get a single contiguous block. // o Method descs of different sizes (normal vs NDirect) are // allocated in different MethodDescChunks. // o Each method desc chunk starts with a header, and has // at most MAX_ method descs (if there are more // method descs of a given size, multiple chunks are allocated). // This way method descs can use an 8-bit offset field to locate the // pointer to their method table. // ///////////////////////////////////////////////////////////////// // Allocate fields if (NumDeclaredFields() > 0) { GetHalfBakedClass()->SetFieldDescList((FieldDesc *) AllocateFromHighFrequencyHeap(S_SIZE_T(NumDeclaredFields()) * S_SIZE_T(sizeof(FieldDesc)))); INDEBUG(GetClassLoader()->m_dwDebugFieldDescs += NumDeclaredFields();) INDEBUG(GetClassLoader()->m_dwFieldDescData += (NumDeclaredFields() * sizeof(FieldDesc));) } } #ifdef FEATURE_DOUBLE_ALIGNMENT_HINT //******************************************************************************* // // Heuristic to determine if we should have instances of this class 8 byte aligned // BOOL MethodTableBuilder::ShouldAlign8(DWORD dwR8Fields, DWORD dwTotalFields) { LIMITED_METHOD_CONTRACT; return dwR8Fields*2>dwTotalFields && dwR8Fields>=2; } #endif //******************************************************************************* BOOL MethodTableBuilder::IsSelfReferencingStaticValueTypeField(mdToken dwByValueClassToken, bmtInternalInfo* bmtInternal, const bmtGenericsInfo *bmtGenerics, PCCOR_SIGNATURE pMemberSignature, DWORD cMemberSignature) { STANDARD_VM_CONTRACT; if (dwByValueClassToken != this->GetCl()) { return FALSE; } if (!bmtGenerics->HasInstantiation()) { return TRUE; } // The value class is generic. Check that the signature of the field // is _exactly_ equivalent to VC<!0, !1, !2, ...>. Do this by consing up a fake // signature. DWORD nGenericArgs = bmtGenerics->GetNumGenericArgs(); CONSISTENCY_CHECK(nGenericArgs != 0); SigBuilder sigBuilder; sigBuilder.AppendElementType(ELEMENT_TYPE_GENERICINST); sigBuilder.AppendElementType(ELEMENT_TYPE_VALUETYPE); sigBuilder.AppendToken(dwByValueClassToken); sigBuilder.AppendData(nGenericArgs); for (unsigned int typearg = 0; typearg < nGenericArgs; typearg++) { sigBuilder.AppendElementType(ELEMENT_TYPE_VAR); sigBuilder.AppendData(typearg); } DWORD cFakeSig; PCCOR_SIGNATURE pFakeSig = (PCCOR_SIGNATURE)sigBuilder.GetSignature(&cFakeSig); PCCOR_SIGNATURE pFieldSig = pMemberSignature + 1; // skip the CALLCONV_FIELD return MetaSig::CompareElementType(pFakeSig, pFieldSig, pFakeSig + cFakeSig, pMemberSignature + cMemberSignature, GetModule(), GetModule(), NULL, NULL, FALSE); } //******************************************************************************* // // Used pByValueClass cache to mark self-references // static BOOL IsSelfRef(MethodTable * pMT) { return pMT == (MethodTable *)-1; } //******************************************************************************* // // Used by BuildMethodTable // // Go thru all fields and initialize their FieldDescs. // #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif // _PREFAST_ VOID MethodTableBuilder::InitializeFieldDescs(FieldDesc *pFieldDescList, const LayoutRawFieldInfo* pLayoutRawFieldInfos, bmtInternalInfo* bmtInternal, const bmtGenericsInfo* bmtGenerics, bmtMetaDataInfo* bmtMetaData, bmtEnumFieldInfo* bmtEnumFields, bmtErrorInfo* bmtError, MethodTable *** pByValueClassCache, bmtMethAndFieldDescs* bmtMFDescs, bmtFieldPlacement* bmtFP, unsigned* totalDeclaredSize) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtGenerics)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(pByValueClassCache)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtFP)); PRECONDITION(CheckPointer(totalDeclaredSize)); } CONTRACTL_END; DWORD i; IMDInternalImport * pInternalImport = GetMDImport(); // to avoid multiple dereferencings //======================================================================== // BEGIN: // Go thru all fields and initialize their FieldDescs. //======================================================================== DWORD dwCurrentDeclaredField = 0; DWORD dwCurrentStaticField = 0; DWORD dwCurrentThreadStaticField = 0; DWORD dwR8Fields = 0; // Number of R8's the class has #ifdef FEATURE_64BIT_ALIGNMENT // Track whether any field in this type requires 8-byte alignment BOOL fFieldRequiresAlign8 = HasParent() ? GetParentMethodTable()->RequiresAlign8() : FALSE; #endif for (i = 0; i < bmtMetaData->cFields; i++) { PCCOR_SIGNATURE pMemberSignature; DWORD cMemberSignature; DWORD dwMemberAttrs; dwMemberAttrs = bmtMetaData->pFieldAttrs[i]; BOOL fIsStatic = IsFdStatic(dwMemberAttrs); // We don't store static final primitive fields in the class layout if (IsFdLiteral(dwMemberAttrs)) continue; if (!IsFdPublic(dwMemberAttrs)) SetHasNonPublicFields(); if (IsFdNotSerialized(dwMemberAttrs)) SetCannotBeBlittedByObjectCloner(); IfFailThrow(pInternalImport->GetSigOfFieldDef(bmtMetaData->pFields[i], &cMemberSignature, &pMemberSignature)); // Signature validation IfFailThrow(validateTokenSig(bmtMetaData->pFields[i],pMemberSignature,cMemberSignature,dwMemberAttrs,pInternalImport)); FieldDesc * pFD; DWORD dwLog2FieldSize = 0; BOOL bCurrentFieldIsGCPointer = FALSE; mdToken dwByValueClassToken = 0; MethodTable * pByValueClass = NULL; BOOL fIsByValue = FALSE; BOOL fIsThreadStatic = FALSE; BOOL fHasRVA = FALSE; MetaSig fsig(pMemberSignature, cMemberSignature, GetModule(), &bmtGenerics->typeContext, MetaSig::sigField); CorElementType ElementType = fsig.NextArg(); // Get type if (!isCallConv(fsig.GetCallingConvention(), IMAGE_CEE_CS_CALLCONV_FIELD)) { IfFailThrow(COR_E_TYPELOAD); } // Determine if a static field is special i.e. RVA based, local to // a thread or a context if (fIsStatic) { if (IsFdHasFieldRVA(dwMemberAttrs)) { fHasRVA = TRUE; } HRESULT hr; hr = GetCustomAttribute(bmtMetaData->pFields[i], WellKnownAttribute::ThreadStatic, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { fIsThreadStatic = TRUE; } if (ElementType == ELEMENT_TYPE_VALUETYPE) { hr = GetCustomAttribute(bmtMetaData->pFields[i], WellKnownAttribute::FixedAddressValueType, NULL, NULL); IfFailThrow(hr); if (hr == S_OK) { bmtFP->fHasFixedAddressValueTypes = true; } } // Do some sanity checks that we are not mixing context and thread // relative statics. if (fHasRVA && fIsThreadStatic) { IfFailThrow(COR_E_TYPELOAD); } if (bmtFP->fHasFixedAddressValueTypes && GetAssembly()->IsCollectible()) { BuildMethodTableThrowException(IDS_CLASSLOAD_COLLECTIBLEFIXEDVTATTR); } } GOT_ELEMENT_TYPE: // Type to store in FieldDesc - we don't want to have extra case statements for // ELEMENT_TYPE_STRING, SDARRAY etc., so we convert all object types to CLASS. // Also, BOOLEAN, CHAR are converted to U1, I2. CorElementType FieldDescElementType = ElementType; switch (ElementType) { case ELEMENT_TYPE_I1: case ELEMENT_TYPE_U1: { dwLog2FieldSize = 0; break; } case ELEMENT_TYPE_I2: case ELEMENT_TYPE_U2: { dwLog2FieldSize = 1; break; } case ELEMENT_TYPE_I4: case ELEMENT_TYPE_U4: IN_TARGET_32BIT(case ELEMENT_TYPE_I:) IN_TARGET_32BIT(case ELEMENT_TYPE_U:) case ELEMENT_TYPE_R4: { dwLog2FieldSize = 2; break; } case ELEMENT_TYPE_BOOLEAN: { // FieldDescElementType = ELEMENT_TYPE_U1; dwLog2FieldSize = 0; break; } case ELEMENT_TYPE_CHAR: { // FieldDescElementType = ELEMENT_TYPE_U2; dwLog2FieldSize = 1; break; } case ELEMENT_TYPE_R8: { dwR8Fields++; // Deliberate fall through... FALLTHROUGH; } case ELEMENT_TYPE_I8: case ELEMENT_TYPE_U8: IN_TARGET_64BIT(case ELEMENT_TYPE_I:) IN_TARGET_64BIT(case ELEMENT_TYPE_U:) { #ifdef FEATURE_64BIT_ALIGNMENT // Record that this field requires alignment for Int64/UInt64. if(!fIsStatic) fFieldRequiresAlign8 = true; #endif dwLog2FieldSize = 3; break; } case ELEMENT_TYPE_FNPTR: case ELEMENT_TYPE_PTR: // ptrs are unmanaged scalars, for layout { dwLog2FieldSize = LOG2_PTRSIZE; break; } case ELEMENT_TYPE_BYREF: { dwLog2FieldSize = LOG2_PTRSIZE; if (fIsStatic) { // Byref-like types cannot be used for static fields BuildMethodTableThrowException(IDS_CLASSLOAD_BYREFLIKE_STATICFIELD); } if (!bmtFP->fIsByRefLikeType) { // Non-byref-like types cannot contain byref-like instance fields BuildMethodTableThrowException(IDS_CLASSLOAD_BYREFLIKE_INSTANCEFIELD); } break; } case ELEMENT_TYPE_TYPEDBYREF: { goto IS_VALUETYPE; } // Class type variable (method type variables aren't allowed in fields) // These only occur in open types used for verification/reflection. case ELEMENT_TYPE_VAR: case ELEMENT_TYPE_MVAR: // deliberate drop through - do fake field layout case ELEMENT_TYPE_STRING: case ELEMENT_TYPE_SZARRAY: // single dim, zero case ELEMENT_TYPE_ARRAY: // all other arrays case ELEMENT_TYPE_CLASS: // objectrefs case ELEMENT_TYPE_OBJECT: { dwLog2FieldSize = LOG2_PTRSIZE; bCurrentFieldIsGCPointer = TRUE; FieldDescElementType = ELEMENT_TYPE_CLASS; if (!fIsStatic) { SetHasFieldsWhichMustBeInited(); if (ElementType != ELEMENT_TYPE_STRING) SetCannotBeBlittedByObjectCloner(); } else { // EnumerateFieldDescs already counted the total number of static vs. instance // fields, now we're further subdividing the static field count by GC and non-GC. bmtEnumFields->dwNumStaticObjRefFields++; if (fIsThreadStatic) bmtEnumFields->dwNumThreadStaticObjRefFields++; } break; } case ELEMENT_TYPE_VALUETYPE: // a byvalue class field { Module * pTokenModule; dwByValueClassToken = fsig.GetArgProps().PeekValueTypeTokenClosed(GetModule(), &bmtGenerics->typeContext, &pTokenModule); // By-value class BAD_FORMAT_NOTHROW_ASSERT(dwByValueClassToken != 0); if (this->IsValueClass() && (pTokenModule == GetModule())) { if (TypeFromToken(dwByValueClassToken) == mdtTypeRef) { // It's a typeref - check if it's a class that has a static field of itself LPCUTF8 pszNameSpace; LPCUTF8 pszClassName; if (FAILED(pInternalImport->GetNameOfTypeRef(dwByValueClassToken, &pszNameSpace, &pszClassName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsStrLongerThan((char *)pszClassName, MAX_CLASS_NAME) || IsStrLongerThan((char *)pszNameSpace, MAX_CLASS_NAME) || (strlen(pszClassName) + strlen(pszNameSpace) + 1 >= MAX_CLASS_NAME)) { BuildMethodTableThrowException(BFA_TYPEREG_NAME_TOO_LONG, mdMethodDefNil); } mdToken tkRes; if (FAILED(pInternalImport->GetResolutionScopeOfTypeRef(dwByValueClassToken, &tkRes))) { BuildMethodTableThrowException(BFA_BAD_TYPEREF_TOKEN, dwByValueClassToken); } if (TypeFromToken(tkRes) == mdtTypeRef) { if (!pInternalImport->IsValidToken(tkRes)) { BuildMethodTableThrowException(BFA_BAD_TYPEREF_TOKEN, mdMethodDefNil); } } else { tkRes = mdTokenNil; } if (FAILED(pInternalImport->FindTypeDef(pszNameSpace, pszClassName, tkRes, &dwByValueClassToken))) { dwByValueClassToken = mdTokenNil; } } // If field is static typeref BOOL selfref = IsSelfReferencingStaticValueTypeField(dwByValueClassToken, bmtInternal, bmtGenerics, pMemberSignature, cMemberSignature); if (selfref) { // immediately self-referential fields must be static. if (!fIsStatic) { BuildMethodTableThrowException(IDS_CLASSLOAD_VALUEINSTANCEFIELD, mdMethodDefNil); } if (!IsValueClass()) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MUST_BE_BYVAL, mdTokenNil); } pByValueClass = (MethodTable *)-1; } } // If 'this' is a value class } // TypedReference shares the rest of the code here IS_VALUETYPE: { fIsByValue = TRUE; // It's not self-referential so try to load it if (pByValueClass == NULL) { // Loading a non-self-ref valuetype field. OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOAD_APPROXPARENTS); // We load the approximate type of the field to avoid recursion problems. // MethodTable::DoFullyLoad() will later load it fully pByValueClass = fsig.GetArgProps().GetTypeHandleThrowing(GetModule(), &bmtGenerics->typeContext, ClassLoader::LoadTypes, CLASS_LOAD_APPROXPARENTS, TRUE ).GetMethodTable(); } // #FieldDescTypeMorph IF it is an enum, strip it down to its underlying type if (IsSelfRef(pByValueClass) ? IsEnum() : pByValueClass->IsEnum()) { if (IsSelfRef(pByValueClass)) { // It is self-referencing enum (ValueType) static field - it is forbidden in the ECMA spec, but supported by CLR since v1 // Note: literal static fields are skipped early in this loop if (bmtMFDescs->ppFieldDescList[0] == NULL) { // The field is defined before (the only) instance field // AppCompat with 3.5 SP1 and 4.0 RTM behavior BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } // We will treat the field type as if it was its underlying type (we know its size and will check correctly RVA with the size // later in this method) // Therefore we do not have to run code:VerifySelfReferencingStaticValueTypeFields_WithRVA or code:#SelfReferencingStaticValueTypeField_Checks } BAD_FORMAT_NOTHROW_ASSERT((IsSelfRef(pByValueClass) ? bmtEnumFields->dwNumInstanceFields : pByValueClass->GetNumInstanceFields()) == 1); // enums must have exactly one field FieldDesc * enumField = IsSelfRef(pByValueClass) ? bmtMFDescs->ppFieldDescList[0] : pByValueClass->GetApproxFieldDescListRaw(); BAD_FORMAT_NOTHROW_ASSERT(!enumField->IsStatic()); // no real static fields on enums ElementType = enumField->GetFieldType(); BAD_FORMAT_NOTHROW_ASSERT(ElementType != ELEMENT_TYPE_VALUETYPE); fIsByValue = FALSE; // we're going to treat it as the underlying type now goto GOT_ELEMENT_TYPE; } // Check ByRefLike fields if (!IsSelfRef(pByValueClass) && pByValueClass->IsByRefLike()) { if (fIsStatic) { // Byref-like types cannot be used for static fields BuildMethodTableThrowException(IDS_CLASSLOAD_BYREFLIKE_STATICFIELD); } if (!bmtFP->fIsByRefLikeType) { // Non-byref-like types cannot contain byref-like instance fields BuildMethodTableThrowException(IDS_CLASSLOAD_BYREFLIKE_INSTANCEFIELD); } } if (!IsSelfRef(pByValueClass) && pByValueClass->GetClass()->HasNonPublicFields()) { // If a class has a field of type ValueType with non-public fields in it, // the class must "inherit" this characteristic SetHasNonPublicFields(); } if (!fHasRVA) { if (!fIsStatic) { // Inherit instance attributes EEClass * pFieldClass = pByValueClass->GetClass(); #ifdef FEATURE_64BIT_ALIGNMENT // If a value type requires 8-byte alignment this requirement must be inherited by any // class/struct that embeds it as a field. if (pFieldClass->IsAlign8Candidate()) fFieldRequiresAlign8 = true; #endif if (pFieldClass->HasNonPublicFields()) SetHasNonPublicFields(); if (pFieldClass->HasFieldsWhichMustBeInited()) SetHasFieldsWhichMustBeInited(); #ifdef FEATURE_READYTORUN if (!(pByValueClass->IsTruePrimitive() || pByValueClass->IsEnum())) { CheckLayoutDependsOnOtherModules(pByValueClass); } #endif } else { // Increment the number of static fields that contain object references. bmtEnumFields->dwNumStaticBoxedFields++; if (fIsThreadStatic) bmtEnumFields->dwNumThreadStaticBoxedFields++; } } if (*pByValueClassCache == NULL) { DWORD dwNumFields = bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields; *pByValueClassCache = new (GetStackingAllocator()) MethodTable * [dwNumFields]; memset (*pByValueClassCache, 0, dwNumFields * sizeof(MethodTable **)); } // Thread static fields come after instance fields and regular static fields in this list if (fIsThreadStatic) { (*pByValueClassCache)[bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields + dwCurrentThreadStaticField] = pByValueClass; // make sure to record the correct size for static field // layout dwLog2FieldSize = LOG2_PTRSIZE; // handle } // Regular static fields come after instance fields in this list else if (fIsStatic) { (*pByValueClassCache)[bmtEnumFields->dwNumInstanceFields + dwCurrentStaticField] = pByValueClass; // make sure to record the correct size for static field // layout dwLog2FieldSize = LOG2_PTRSIZE; // handle } else { (*pByValueClassCache)[dwCurrentDeclaredField] = pByValueClass; dwLog2FieldSize = 0; // unused } break; } default: { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } } if (!fIsStatic) { pFD = &pFieldDescList[dwCurrentDeclaredField]; *totalDeclaredSize += (1 << dwLog2FieldSize); } else /* (dwMemberAttrs & mdStatic) */ { if (fIsThreadStatic) { pFD = &pFieldDescList[bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields + dwCurrentThreadStaticField]; } else { pFD = &pFieldDescList[bmtEnumFields->dwNumInstanceFields + dwCurrentStaticField]; } } bmtMFDescs->ppFieldDescList[i] = pFD; const LayoutRawFieldInfo *pLayoutFieldInfo = NULL; if (HasLayout()) { const LayoutRawFieldInfo *pwalk = pLayoutRawFieldInfos; while (pwalk->m_MD != mdFieldDefNil) { if (pwalk->m_MD == bmtMetaData->pFields[i]) { pLayoutFieldInfo = pwalk; break; } pwalk++; } } LPCSTR pszFieldName = NULL; #ifdef _DEBUG if (FAILED(pInternalImport->GetNameOfFieldDef(bmtMetaData->pFields[i], &pszFieldName))) { pszFieldName = "Invalid FieldDef record"; } #endif // #InitCall Initialize contents of the field descriptor called from pFD->Init( bmtMetaData->pFields[i], FieldDescElementType, dwMemberAttrs, fIsStatic, fHasRVA, fIsThreadStatic, pszFieldName ); // We're using FieldDesc::m_pMTOfEnclosingClass to temporarily store the field's size. // if (fIsByValue) { if (!fIsStatic && (IsBlittable() || HasExplicitFieldOffsetLayout())) { (DWORD_PTR &)pFD->m_pMTOfEnclosingClass = (*pByValueClassCache)[dwCurrentDeclaredField]->GetNumInstanceFieldBytes(); if (pLayoutFieldInfo) IfFailThrow(pFD->SetOffset(pLayoutFieldInfo->m_placement.m_offset)); else pFD->SetOffset(FIELD_OFFSET_VALUE_CLASS); } else if (!fIsStatic && IsManagedSequential()) { (DWORD_PTR &)pFD->m_pMTOfEnclosingClass = (*pByValueClassCache)[dwCurrentDeclaredField]->GetNumInstanceFieldBytes(); IfFailThrow(pFD->SetOffset(pLayoutFieldInfo->m_placement.m_offset)); } else { // static value class fields hold a handle, which is ptr sized // (instance field layout ignores this value) (DWORD_PTR&)(pFD->m_pMTOfEnclosingClass) = LOG2_PTRSIZE; pFD->SetOffset(FIELD_OFFSET_VALUE_CLASS); } } else { (DWORD_PTR &)(pFD->m_pMTOfEnclosingClass) = (size_t)dwLog2FieldSize; // -1 (FIELD_OFFSET_UNPLACED) means that this is a non-GC field that has not yet been placed // -2 (FIELD_OFFSET_UNPLACED_GC_PTR) means that this is a GC pointer field that has not yet been placed // If there is any kind of explicit layout information for this field, use it. If not, then // mark it as either GC or non-GC and as unplaced; it will get placed later on in an optimized way. if ((IsBlittable() || HasExplicitFieldOffsetLayout()) && !fIsStatic) IfFailThrow(pFD->SetOffset(pLayoutFieldInfo->m_placement.m_offset)); else if (IsManagedSequential() && !fIsStatic) IfFailThrow(pFD->SetOffset(pLayoutFieldInfo->m_placement.m_offset)); else if (bCurrentFieldIsGCPointer) pFD->SetOffset(FIELD_OFFSET_UNPLACED_GC_PTR); else pFD->SetOffset(FIELD_OFFSET_UNPLACED); } if (!fIsStatic) { if (!fIsByValue) { if (++bmtFP->NumInstanceFieldsOfSize[dwLog2FieldSize] == 1) bmtFP->FirstInstanceFieldOfSize[dwLog2FieldSize] = dwCurrentDeclaredField; } dwCurrentDeclaredField++; if (bCurrentFieldIsGCPointer) { bmtFP->NumInstanceGCPointerFields++; } } else /* static fields */ { // Static fields are stored in the vtable after the vtable and interface slots. We don't // know how large the vtable will be, so we will have to fixup the slot number by // <vtable + interface size> later. if (fIsThreadStatic) { dwCurrentThreadStaticField++; } else { dwCurrentStaticField++; } if (fHasRVA) { if (FieldDescElementType == ELEMENT_TYPE_CLASS) { // RVA fields are not allowed to have GC pointers. BAD_FORMAT_NOTHROW_ASSERT(!"ObjectRef in an RVA field"); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } if (FieldDescElementType == ELEMENT_TYPE_VALUETYPE) { if (IsSelfRef(pByValueClass)) { // We will verify self-referencing statics after the loop through all fields - see code:#SelfReferencingStaticValueTypeField_Checks bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA = TRUE; } else { if (pByValueClass->GetClass()->HasFieldsWhichMustBeInited()) { // RVA fields are not allowed to have GC pointers. BAD_FORMAT_NOTHROW_ASSERT(!"ObjectRef in an RVA field"); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } } } // Set the field offset DWORD rva; IfFailThrow(pInternalImport->GetFieldRVA(pFD->GetMemberDef(), &rva)); // The PE should be loaded by now. _ASSERT(GetModule()->GetPEAssembly()->IsLoaded()); DWORD fldSize; if (FieldDescElementType == ELEMENT_TYPE_VALUETYPE) { if (IsSelfRef(pByValueClass)) { _ASSERTE(bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA); // We do not known the size yet _ASSERTE(bmtFP->NumInstanceFieldBytes == 0); // We will check just the RVA with size 0 now, the full size verification will happen in code:VerifySelfReferencingStaticValueTypeFields_WithRVA fldSize = 0; } else { fldSize = pByValueClass->GetNumInstanceFieldBytes(); } } else { fldSize = GetSizeForCorElementType(FieldDescElementType); } pFD->SetOffsetRVA(rva); } else if (fIsThreadStatic) { bmtFP->NumThreadStaticFieldsOfSize[dwLog2FieldSize]++; if (bCurrentFieldIsGCPointer) bmtFP->NumThreadStaticGCPointerFields++; if (fIsByValue) bmtFP->NumThreadStaticGCBoxedFields++; } else { bmtFP->NumRegularStaticFieldsOfSize[dwLog2FieldSize]++; if (bCurrentFieldIsGCPointer) bmtFP->NumRegularStaticGCPointerFields++; if (fIsByValue) bmtFP->NumRegularStaticGCBoxedFields++; } } } // We processed all fields //#SelfReferencingStaticValueTypeField_Checks if (bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA) { // The type has self-referencing static ValueType field with RVA, do more checks now that depend on all fields being processed // For enums we already checked its underlying type, we should not get here _ASSERTE(!IsEnum()); if (HasFieldsWhichMustBeInited()) { // RVA fields are not allowed to have GC pointers. BAD_FORMAT_NOTHROW_ASSERT(!"ObjectRef in an RVA self-referencing static field"); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } } DWORD dwNumInstanceFields = dwCurrentDeclaredField + (HasParent() ? GetParentMethodTable()->GetNumInstanceFields() : 0); DWORD dwNumStaticFields = bmtEnumFields->dwNumStaticFields; DWORD dwNumThreadStaticFields = bmtEnumFields->dwNumThreadStaticFields; if (!FitsIn<WORD>(dwNumInstanceFields) || !FitsIn<WORD>(dwNumStaticFields)) { // An implementation limitation means that it's an error if there are greater that MAX_WORD fields. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } GetHalfBakedClass()->SetNumInstanceFields((WORD)dwNumInstanceFields); GetHalfBakedClass()->SetNumStaticFields((WORD)dwNumStaticFields); GetHalfBakedClass()->SetNumThreadStaticFields((WORD)dwNumThreadStaticFields); if (bmtFP->fHasFixedAddressValueTypes) { // To make things simpler, if the class has any field with this requirement, we'll set // all the statics to have this property. This allows us to only need to persist one bit // for the ngen case. GetHalfBakedClass()->SetHasFixedAddressVTStatics(); } #ifdef FEATURE_64BIT_ALIGNMENT // For types with layout we drop any 64-bit alignment requirement if the packing size was less than 8 // bytes (this mimics what the native compiler does and ensures we match up calling conventions during // interop). // We don't do this for types that are marked as sequential but end up with auto-layout due to containing pointers, // as auto-layout ignores any Pack directives. if (HasLayout() && (HasExplicitFieldOffsetLayout() || IsManagedSequential()) && GetLayoutInfo()->GetPackingSize() < 8) { fFieldRequiresAlign8 = false; } if (fFieldRequiresAlign8) { SetAlign8Candidate(); } #endif // FEATURE_64BIT_ALIGNMENT #ifdef FEATURE_DOUBLE_ALIGNMENT_HINT if (ShouldAlign8(dwR8Fields, dwNumInstanceFields)) { SetAlign8Candidate(); } #endif // FEATURE_DOUBLE_ALIGNMENT_HINT //======================================================================== // END: // Go thru all fields and initialize their FieldDescs. //======================================================================== return; } // MethodTableBuilder::InitializeFieldDescs #ifdef _PREFAST_ #pragma warning(pop) #endif //******************************************************************************* // Verify self-referencing static ValueType fields with RVA (when the size of the ValueType is known). void MethodTableBuilder::VerifySelfReferencingStaticValueTypeFields_WithRVA( MethodTable ** pByValueClassCache) { STANDARD_VM_CONTRACT; _ASSERTE(bmtFP->fHasSelfReferencingStaticValueTypeField_WithRVA); // Enum's static self-referencing fields have been verified as the underlying type of the enum, we should not get here for them _ASSERTE(!IsEnum()); // The size of the ValueType should be known at this point (the caller throws if it is 0) _ASSERTE(bmtFP->NumInstanceFieldBytes != 0); FieldDesc * pFieldDescList = GetApproxFieldDescListRaw(); DWORD nFirstThreadStaticFieldIndex = bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields; for (DWORD i = bmtEnumFields->dwNumInstanceFields; i < nFirstThreadStaticFieldIndex; i++) { FieldDesc * pFD = &pFieldDescList[i]; _ASSERTE(pFD->IsStatic()); if (pFD->IsRVA() && pFD->IsByValue()) { _ASSERTE(pByValueClassCache[i] != NULL); if (IsSelfRef(pByValueClassCache[i])) { DWORD rva; IfFailThrow(GetMDImport()->GetFieldRVA(pFD->GetMemberDef(), &rva)); } } } } // MethodTableBuilder::VerifySelfReferencingStaticValueTypeFields_WithRVA //******************************************************************************* // Returns true if hEnclosingTypeCandidate encloses, at any arbitrary depth, // hNestedTypeCandidate; returns false otherwise. bool MethodTableBuilder::IsEnclosingNestedTypePair( bmtTypeHandle hEnclosingTypeCandidate, bmtTypeHandle hNestedTypeCandidate) { STANDARD_VM_CONTRACT; CONSISTENCY_CHECK(!hEnclosingTypeCandidate.IsNull()); CONSISTENCY_CHECK(!hNestedTypeCandidate.IsNull()); CONSISTENCY_CHECK(!bmtTypeHandle::Equal(hEnclosingTypeCandidate, hNestedTypeCandidate)); Module * pModule = hEnclosingTypeCandidate.GetModule(); if (pModule != hNestedTypeCandidate.GetModule()) { // If the modules aren't the same, then there's no way // hBase could be an enclosing type of hChild. We make // this check early so that the code can deal with only // one Module and IMDInternalImport instance and can avoid // extra checks. return false; } IMDInternalImport * pMDImport = pModule->GetMDImport(); mdTypeDef tkEncl = hEnclosingTypeCandidate.GetTypeDefToken(); mdTypeDef tkNest = hNestedTypeCandidate.GetTypeDefToken(); while (tkEncl != tkNest) { // Do this using the metadata APIs because MethodTableBuilder does // not construct type representations for enclosing type chains. if (FAILED(pMDImport->GetNestedClassProps(tkNest, &tkNest))) { // tokNest is not a nested type. return false; } } // tkNest's enclosing type is tkEncl, so we've shown that // hEnclosingTypeCandidate encloses hNestedTypeCandidate return true; } //******************************************************************************* // Given an arbitrary nesting+subclassing pattern like this: // // class C1 { // private virtual void Foo() { ... } // class C2 : C1 { // ... // class CN : CN-1 { // private override void Foo() { ... } // } // ... // } // } // // this method will return true, where hChild == N and hBase == C1 // // Note that there is no requirement that a type derive from its immediately // enclosing type, but can skip a level, such as this example: // // class A // { // private virtual void Foo() { } // public class B // { // public class C : A // { // private override void Foo() { } // } // } // } // // NOTE: IMPORTANT: This code assumes that hBase is indeed a base type of hChild, // and behaviour is undefined if this is not the case. bool MethodTableBuilder::IsBaseTypeAlsoEnclosingType( bmtTypeHandle hBase, bmtTypeHandle hChild) { STANDARD_VM_CONTRACT; CONSISTENCY_CHECK(!hBase.IsNull()); CONSISTENCY_CHECK(!hChild.IsNull()); CONSISTENCY_CHECK(!bmtTypeHandle::Equal(hBase, hChild)); // The idea of this algorithm is that if we climb the inheritance chain // starting at hChild then we'll eventually hit hBase. If we check that // for every (hParent, hChild) pair in the chain that hParent encloses // hChild, then we've shown that hBase encloses hChild. while (!bmtTypeHandle::Equal(hBase, hChild)) { CONSISTENCY_CHECK(!hChild.GetParentType().IsNull()); bmtTypeHandle hParent(hChild.GetParentType()); if (!IsEnclosingNestedTypePair(hParent, hChild)) { // First, the parent type must enclose the child type. // If this is not the case we fail immediately. return false; } // Move up one in the inheritance chain, and try again. hChild = hParent; } // If the loop worked itself from the original hChild all the way // up to hBase, then we know that for every (hParent, hChild) // pair in the chain that hParent enclosed hChild, and so we know // that hBase encloses the original hChild return true; } //******************************************************************************* BOOL MethodTableBuilder::TestOverrideForAccessibility( bmtMethodHandle hParentMethod, bmtTypeHandle hChildType) { STANDARD_VM_CONTRACT; bmtTypeHandle hParentType(hParentMethod.GetOwningType()); Module * pParentModule = hParentType.GetModule(); Module * pChildModule = hChildType.GetModule(); Assembly * pParentAssembly = pParentModule->GetAssembly(); Assembly * pChildAssembly = pChildModule->GetAssembly(); BOOL isSameAssembly = (pChildAssembly == pParentAssembly); DWORD dwParentAttrs = hParentMethod.GetDeclAttrs(); // AKA "strict bit". This means that overridability is tightly bound to accessibility. if (IsMdCheckAccessOnOverride(dwParentAttrs)) { // Same Assembly if (isSameAssembly || pParentAssembly->GrantsFriendAccessTo(pChildAssembly, hParentMethod.GetMethodDesc()) || pChildAssembly->IgnoresAccessChecksTo(pParentAssembly)) { // Can always override any method that has accessibility greater than mdPrivate if ((dwParentAttrs & mdMemberAccessMask) > mdPrivate) { // Fall through } // Generally, types cannot override inherited mdPrivate methods, except: // Types can access enclosing type's private members, so it can // override them if the nested type extends its enclosing type. else if ((dwParentAttrs & mdMemberAccessMask) == mdPrivate && IsBaseTypeAlsoEnclosingType(hParentType, hChildType)) { // Fall through } else { return FALSE; } } // Cross-Assembly else { // If the method marks itself as check visibility the the method must be // public, FamORAssem, or family if((dwParentAttrs & mdMemberAccessMask) <= mdAssem) { return FALSE; } } } return TRUE; } //******************************************************************************* VOID MethodTableBuilder::TestOverRide(bmtMethodHandle hParentMethod, bmtMethodHandle hChildMethod) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(IsMdVirtual(hParentMethod.GetDeclAttrs())); PRECONDITION(IsMdVirtual(hChildMethod.GetDeclAttrs())); } CONTRACTL_END; DWORD dwAttrs = hChildMethod.GetDeclAttrs(); DWORD dwParentAttrs = hParentMethod.GetDeclAttrs(); Module *pModule = hChildMethod.GetOwningType().GetModule(); Module *pParentModule = hParentMethod.GetOwningType().GetModule(); Assembly *pAssembly = pModule->GetAssembly(); Assembly *pParentAssembly = pParentModule->GetAssembly(); BOOL isSameModule = (pModule == pParentModule); BOOL isSameAssembly = (pAssembly == pParentAssembly); if (!TestOverrideForAccessibility(hParentMethod, hChildMethod.GetOwningType())) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ACCESS_FAILURE, hChildMethod.GetMethodSignature().GetToken()); } // // Refer to Partition II, 9.3.3 for more information on what is permitted. // enum WIDENING_STATUS { e_NO, // NO e_YES, // YES e_SA, // YES, but only when same assembly e_NSA, // YES, but only when NOT same assembly e_SM, // YES, but only when same module }; static_assert_no_msg(mdPrivateScope == 0x00); static_assert_no_msg(mdPrivate == 0x01); static_assert_no_msg(mdFamANDAssem == 0x02); static_assert_no_msg(mdAssem == 0x03); static_assert_no_msg(mdFamily == 0x04); static_assert_no_msg(mdFamORAssem == 0x05); static_assert_no_msg(mdPublic == 0x06); static const DWORD dwCount = mdPublic - mdPrivateScope + 1; static const WIDENING_STATUS rgWideningTable[dwCount][dwCount] = // | Base type // Subtype | mdPrivateScope mdPrivate mdFamANDAssem mdAssem mdFamily mdFamORAssem mdPublic // --------------+------------------------------------------------------------------------------------------------------- /*mdPrivateScope | */ { { e_SM, e_NO, e_NO, e_NO, e_NO, e_NO, e_NO }, /*mdPrivate | */ { e_SM, e_YES, e_NO, e_NO, e_NO, e_NO, e_NO }, /*mdFamANDAssem | */ { e_SM, e_YES, e_SA, e_NO, e_NO, e_NO, e_NO }, /*mdAssem | */ { e_SM, e_YES, e_SA, e_SA, e_NO, e_NO, e_NO }, /*mdFamily | */ { e_SM, e_YES, e_YES, e_NO, e_YES, e_NSA, e_NO }, /*mdFamORAssem | */ { e_SM, e_YES, e_YES, e_SA, e_YES, e_YES, e_NO }, /*mdPublic | */ { e_SM, e_YES, e_YES, e_YES, e_YES, e_YES, e_YES } }; DWORD idxParent = (dwParentAttrs & mdMemberAccessMask) - mdPrivateScope; DWORD idxMember = (dwAttrs & mdMemberAccessMask) - mdPrivateScope; CONSISTENCY_CHECK(idxParent < dwCount); CONSISTENCY_CHECK(idxMember < dwCount); WIDENING_STATUS entry = rgWideningTable[idxMember][idxParent]; if (entry == e_NO || (entry == e_SA && !isSameAssembly && !pParentAssembly->GrantsFriendAccessTo(pAssembly, hParentMethod.GetMethodDesc()) && !pAssembly->IgnoresAccessChecksTo(pParentAssembly)) || (entry == e_NSA && isSameAssembly) || (entry == e_SM && !isSameModule) ) { BuildMethodTableThrowException(IDS_CLASSLOAD_REDUCEACCESS, hChildMethod.GetMethodSignature().GetToken()); } return; } //******************************************************************************* VOID MethodTableBuilder::TestMethodImpl( bmtMethodHandle hDeclMethod, bmtMethodHandle hImplMethod) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(!hDeclMethod.IsNull()); PRECONDITION(!hImplMethod.IsNull()); } CONTRACTL_END Module * pDeclModule = hDeclMethod.GetOwningType().GetModule(); Module * pImplModule = hImplMethod.GetOwningType().GetModule(); mdTypeDef tokDecl = hDeclMethod.GetMethodSignature().GetToken(); mdTypeDef tokImpl = hImplMethod.GetMethodSignature().GetToken(); BOOL isSameModule = pDeclModule->Equals(pImplModule); IMDInternalImport *pIMDDecl = pDeclModule->GetMDImport(); IMDInternalImport *pIMDImpl = pImplModule->GetMDImport(); DWORD dwDeclAttrs; if (FAILED(pIMDDecl->GetMethodDefProps(tokDecl, &dwDeclAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } DWORD dwImplAttrs; if (FAILED(pIMDImpl->GetMethodDefProps(tokImpl, &dwImplAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } HRESULT hr = COR_E_TYPELOAD; if (!IsMdVirtual(dwDeclAttrs)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_NONVIRTUAL_DECL); } if ((IsMdVirtual(dwImplAttrs) && IsMdStatic(dwImplAttrs)) || (!IsMdVirtual(dwImplAttrs) && !IsMdStatic(dwImplAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MUSTBEVIRTUAL); } // Virtual methods on classes/valuetypes cannot be static if (IsMdStatic(dwDeclAttrs) && !hDeclMethod.GetOwningType().IsInterface()) { BuildMethodTableThrowException(IDS_CLASSLOAD_STATICVIRTUAL); } if ((!!IsMdStatic(dwImplAttrs)) != (!!IsMdStatic(dwDeclAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_STATICVIRTUAL); } if (IsMdFinal(dwDeclAttrs)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_FINAL_DECL); } // Interface method body that has methodimpl should always be final if (IsInterface() && !IsMdFinal(dwImplAttrs)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_FINAL_IMPL); } // Since MethodImpl's do not affect the visibility of the Decl method, there's // no need to check. // If Decl's parent is other than this class, Decl must not be private mdTypeDef tkImplParent = mdTypeDefNil; mdTypeDef tkDeclParent = mdTypeDefNil; if (FAILED(hr = pIMDDecl->GetParentToken(tokDecl, &tkDeclParent))) { BuildMethodTableThrowException(hr, *bmtError); } if (FAILED(hr = pIMDImpl->GetParentToken(tokImpl, &tkImplParent))) { BuildMethodTableThrowException(hr, *bmtError); } // Make sure that we test for accessibility restrictions only if the decl is // not within our own type, as we are allowed to methodImpl a private with the // strict bit set if it is in our own type. if (!isSameModule || tkDeclParent != tkImplParent) { if (!TestOverrideForAccessibility(hDeclMethod, hImplMethod.GetOwningType())) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ACCESS_FAILURE, tokImpl); } // Decl's parent must not be tdSealed mdToken tkGrandParentDummyVar; DWORD dwDeclTypeAttrs; if (FAILED(hr = pIMDDecl->GetTypeDefProps(tkDeclParent, &dwDeclTypeAttrs, &tkGrandParentDummyVar))) { BuildMethodTableThrowException(hr, *bmtError); } if (IsTdSealed(dwDeclTypeAttrs)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_SEALED_DECL); } } return; } //******************************************************************************* // // Used by BuildMethodTable // VOID MethodTableBuilder::ValidateMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtMethodImpl)); PRECONDITION(CheckPointer(bmtVT)); } CONTRACTL_END; // Used to keep track of located default and type constructors. CONSISTENCY_CHECK(bmtVT->pCCtor == NULL); CONSISTENCY_CHECK(bmtVT->pDefaultCtor == NULL); // Fetch the hard-coded signatures for the type constructor and the // default constructor and create MethodSignature objects for both at // the method level so this does not happen for every specialname // method. Signature sig; sig = CoreLibBinder::GetSignature(&gsig_SM_RetVoid); MethodSignature cctorSig(CoreLibBinder::GetModule(), COR_CCTOR_METHOD_NAME, sig.GetRawSig(), sig.GetRawSigLen()); sig = CoreLibBinder::GetSignature(&gsig_IM_RetVoid); MethodSignature defaultCtorSig(CoreLibBinder::GetModule(), COR_CTOR_METHOD_NAME, sig.GetRawSig(), sig.GetRawSigLen()); Module * pModule = GetModule(); DeclaredMethodIterator it(*this); while (it.Next()) { // The RVA is only valid/testable if it has not been overwritten // for something like edit-and-continue // Complete validation of non-zero RVAs is done later inside MethodDesc::GetILHeader. if ((it.RVA() == 0) && (pModule->GetDynamicIL(it.Token(), FALSE) == NULL)) { // for IL code that is implemented here must have a valid code RVA // this came up due to a linker bug where the ImplFlags/DescrOffset were // being set to null and we weren't coping with it if((IsMiIL(it.ImplFlags()) || IsMiOPTIL(it.ImplFlags())) && !IsMdAbstract(it.Attrs()) && !IsReallyMdPinvokeImpl(it.Attrs()) && !IsMiInternalCall(it.ImplFlags())) { BuildMethodTableThrowException(IDS_CLASSLOAD_MISSINGMETHODRVA, it.Token()); } } if (IsMdRTSpecialName(it.Attrs())) { if (IsMdVirtual(it.Attrs())) { // Virtual specialname methods are illegal BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // Constructors (.ctor) and class initialisers (.cctor) are special const MethodSignature &curSig(it->GetMethodSignature()); if (IsMdStatic(it.Attrs())) { // The only rtSpecialName static method allowed is the .cctor if (!curSig.ExactlyEqual(cctorSig)) { // Bad method BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // Remember it for later bmtVT->pCCtor = *it; } else { if(!MethodSignature::NamesEqual(curSig, defaultCtorSig)) { // The only rtSpecialName instance methods allowed are .ctors BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // .ctor must return void MetaSig methodMetaSig(curSig.GetSignature(), static_cast<DWORD>(curSig.GetSignatureLength()), curSig.GetModule(), NULL); if (methodMetaSig.GetReturnType() != ELEMENT_TYPE_VOID) { // All constructors must have a void return type BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // See if this is a default constructor. If so, remember it for later. if (curSig.ExactlyEqual(defaultCtorSig)) { bmtVT->pDefaultCtor = *it; } } } // Make sure that fcalls have a 0 rva. This is assumed by the prejit fixup logic if (it.MethodType() == METHOD_TYPE_FCALL && it.RVA() != 0) { BuildMethodTableThrowException(BFA_ECALLS_MUST_HAVE_ZERO_RVA, it.Token()); } // check for proper use of the Managed and native flags if (IsMiManaged(it.ImplFlags())) { if (IsMiIL(it.ImplFlags()) || IsMiRuntime(it.ImplFlags())) // IsMiOPTIL(it.ImplFlags()) no longer supported { // No need to set code address, pre stub used automatically. } else { if (IsMiNative(it.ImplFlags())) { // For now simply disallow managed native code if you turn this on you have to at least // insure that we have SkipVerificationPermission or equivalent BuildMethodTableThrowException(BFA_MANAGED_NATIVE_NYI, it.Token()); } else { BuildMethodTableThrowException(BFA_BAD_IMPL_FLAGS, it.Token()); } } } else { if (IsMiNative(it.ImplFlags()) && IsGlobalClass()) { // global function unmanaged entrypoint via IJW thunk was handled // above. } else { BuildMethodTableThrowException(IDS_CLASSLOAD_BAD_UNMANAGED_RVA, it.Token()); } if (it.MethodType() != METHOD_TYPE_NDIRECT) { BuildMethodTableThrowException(BFA_BAD_UNMANAGED_ENTRY_POINT); } } // Vararg methods are not allowed inside generic classes // and nor can they be generic methods. if (bmtGenerics->GetNumGenericArgs() > 0 || (it.MethodType() == METHOD_TYPE_INSTANTIATED) ) { DWORD cMemberSignature; PCCOR_SIGNATURE pMemberSignature = it.GetSig(&cMemberSignature); // We've been trying to avoid asking for the signature - now we need it if (pMemberSignature == NULL) { pMemberSignature = it.GetSig(&cMemberSignature); } if (MetaSig::IsVarArg(Signature(pMemberSignature, cMemberSignature))) { BuildMethodTableThrowException(BFA_GENCODE_NOT_BE_VARARG); } } if (IsMdVirtual(it.Attrs()) && IsMdPublic(it.Attrs()) && it.Name() == NULL) { BuildMethodTableThrowException(IDS_CLASSLOAD_NOMETHOD_NAME); } if (it.IsMethodImpl()) { if (!IsMdVirtual(it.Attrs()) && !IsMdStatic(it.Attrs())) { // Non-virtual methods may only participate in a methodImpl pair when // they are static and they implement a virtual static interface method. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MUSTBEVIRTUAL, it.Token()); } } // Virtual static methods are only allowed on interfaces and they must be abstract. if (IsMdStatic(it.Attrs()) && IsMdVirtual(it.Attrs())) { if (!IsInterface()) { BuildMethodTableThrowException(IDS_CLASSLOAD_STATICVIRTUAL, it.Token()); } } } } //******************************************************************************* // Essentially, this is a helper method that combines calls to InitMethodDesc and // SetSecurityFlagsOnMethod. It then assigns the newly initialized MethodDesc to // the bmtMDMethod. VOID MethodTableBuilder::InitNewMethodDesc( bmtMDMethod * pMethod, MethodDesc * pNewMD) { STANDARD_VM_CONTRACT; // // First, set all flags that control layout of optional slots // pNewMD->SetClassification(GetMethodClassification(pMethod->GetMethodType())); if (pMethod->GetMethodImplType() == METHOD_IMPL) pNewMD->SetHasMethodImplSlot(); if (pMethod->GetSlotIndex() >= bmtVT->cVtableSlots) pNewMD->SetHasNonVtableSlot(); if (NeedsNativeCodeSlot(pMethod)) pNewMD->SetHasNativeCodeSlot(); // Now we know the classification we can allocate the correct type of // method desc and perform any classification specific initialization. LPCSTR pName = pMethod->GetMethodSignature().GetName(); if (pName == NULL) { if (FAILED(GetMDImport()->GetNameOfMethodDef(pMethod->GetMethodSignature().GetToken(), &pName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } #ifdef _DEBUG LPCUTF8 pszDebugMethodName; if (FAILED(GetMDImport()->GetNameOfMethodDef(pMethod->GetMethodSignature().GetToken(), &pszDebugMethodName))) { pszDebugMethodName = "Invalid MethodDef record"; } S_SIZE_T safeLen = S_SIZE_T(strlen(pszDebugMethodName)) + S_SIZE_T(1); if(safeLen.IsOverflow()) COMPlusThrowHR(COR_E_OVERFLOW); size_t len = safeLen.Value(); LPCUTF8 pszDebugMethodNameCopy = (char*) AllocateFromLowFrequencyHeap(safeLen); strcpy_s((char *) pszDebugMethodNameCopy, len, pszDebugMethodName); #endif // _DEBUG // Do the init specific to each classification of MethodDesc & assign some common fields InitMethodDesc(pNewMD, GetMethodClassification(pMethod->GetMethodType()), pMethod->GetMethodSignature().GetToken(), pMethod->GetImplAttrs(), pMethod->GetDeclAttrs(), FALSE, pMethod->GetRVA(), GetMDImport(), pName COMMA_INDEBUG(pszDebugMethodNameCopy) COMMA_INDEBUG(GetDebugClassName()) COMMA_INDEBUG("") // FIX this happens on global methods, give better info ); pMethod->SetMethodDesc(pNewMD); bmtRTMethod * pParentMethod = NULL; if (HasParent()) { SLOT_INDEX idx = pMethod->GetSlotIndex(); CONSISTENCY_CHECK(idx != INVALID_SLOT_INDEX); if (idx < GetParentMethodTable()->GetNumVirtuals()) { pParentMethod = (*bmtParent->pSlotTable)[idx].Decl().AsRTMethod(); } } // Turn off inlining for any calls // that are marked in the metadata as not being inlineable. if(IsMiNoInlining(pMethod->GetImplAttrs())) { pNewMD->SetNotInline(true); } // Check for methods marked as [Intrinsic] if (GetModule()->IsSystem()) { if (bmtProp->fIsHardwareIntrinsic || (S_OK == GetCustomAttribute(pMethod->GetMethodSignature().GetToken(), WellKnownAttribute::Intrinsic, NULL, NULL))) { pNewMD->SetIsIntrinsic(); } } pNewMD->SetSlot(pMethod->GetSlotIndex()); } //******************************************************************************* // Determine vtable placement for each non-virtual in the class, while also // looking for default and type constructors. VOID MethodTableBuilder::PlaceNonVirtualMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtMethodImpl)); PRECONDITION(CheckPointer(bmtVT)); } CONTRACTL_END; INDEBUG(bmtVT->SealVirtualSlotSection();) // // For each non-virtual method, place the method in the next available non-virtual method slot. // // Place the cctor and default ctor first. code::MethodTableGetCCtorSlot and code:MethodTable::GetDefaultCtorSlot // depends on this. if (bmtVT->pCCtor != NULL) { if (!bmtVT->AddNonVirtualMethod(bmtVT->pCCtor)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } if (bmtVT->pDefaultCtor != NULL) { if (!bmtVT->AddNonVirtualMethod(bmtVT->pDefaultCtor)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } // We use slot during remoting and to map methods between generic instantiations // (see MethodTable::GetParallelMethodDesc). The current implementation // of this mechanism requires real slots. BOOL fCanHaveNonVtableSlots = (bmtGenerics->GetNumGenericArgs() == 0) && !IsInterface(); // Flag to avoid second pass when possible BOOL fHasNonVtableSlots = FALSE; // // Place all methods that require real vtable slot first. This is necessary so // that they get consequitive slot numbers right after virtual slots. // DeclaredMethodIterator it(*this); while (it.Next()) { // Skip methods that are placed already if (it->GetSlotIndex() != INVALID_SLOT_INDEX) continue; #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(it.Name())) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", it.Name())); #endif // _DEBUG if (!fCanHaveNonVtableSlots || it->GetMethodType() == METHOD_TYPE_INSTANTIATED) { // We use slot during remoting and to map methods between generic instantiations // (see MethodTable::GetParallelMethodDesc). The current implementation // of this mechanism requires real slots. } else { // This method does not need real vtable slot fHasNonVtableSlots = TRUE; continue; } // This will update slot index in bmtMDMethod if (!bmtVT->AddNonVirtualMethod(*it)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } // Remeber last real vtable slot bmtVT->cVtableSlots = bmtVT->cTotalSlots; // Are there any Non-vtable slots to place? if (!fHasNonVtableSlots) return; // // Now, place the remaining methods. They will get non-vtable slot. // DeclaredMethodIterator it2(*this); while (it2.Next()) { // Skip methods that are placed already if (it2->GetSlotIndex() != INVALID_SLOT_INDEX) continue; if (!bmtVT->AddNonVirtualMethod(*it2)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } } //******************************************************************************* // Determine vtable placement for each virtual member in this class. VOID MethodTableBuilder::PlaceVirtualMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtMethodImpl)); PRECONDITION(CheckPointer(bmtVT)); } CONTRACTL_END; #ifdef _DEBUG LPCUTF8 pszDebugName, pszDebugNamespace; if (FAILED(GetMDImport()->GetNameOfTypeDef(GetCl(), &pszDebugName, &pszDebugNamespace))) { pszDebugName = pszDebugNamespace = "Invalid TypeDef record"; } #endif // _DEBUG // // For each virtual method // - If the method is not declared as newslot, search all virtual methods in the parent // type for an override candidate. // - If such a candidate is found, test to see if the override is valid. If // the override is not valid, throw TypeLoadException // - If a candidate is found above, place the method in the inherited slot as both // the Decl and the Impl. // - Else, place the method in the next available empty vtable slot. // DeclaredMethodIterator it(*this); while (it.Next()) { if (!IsMdVirtual(it.Attrs()) || IsMdStatic(it.Attrs())) { // Only processing declared virtual instance methods continue; } #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(it.Name())) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", it.Name())); #endif // _DEBUG // If this member is a method which overrides a parent method, it will be set to non-NULL bmtRTMethod * pParentMethod = NULL; // Hash that a method with this name exists in this class // Note that ctors and static ctors are not added to the table BOOL fMethodConstraintsMatch = FALSE; // If the member is marked with a new slot we do not need to find it in the parent if (HasParent() && !IsMdNewSlot(it.Attrs())) { // Attempt to find the method with this name and signature in the parent class. // This method may or may not create pParentMethodHash (if it does not already exist). // It also may or may not fill in pMemberSignature/cMemberSignature. // An error is only returned when we can not create the hash. // NOTE: This operation touches metadata pParentMethod = LoaderFindMethodInParentClass( it->GetMethodSignature(), bmtProp->fNoSanityChecks ? NULL : &fMethodConstraintsMatch); if (pParentMethod != NULL) { // Found an override candidate DWORD dwParentAttrs = pParentMethod->GetDeclAttrs(); if (!IsMdVirtual(dwParentAttrs)) { // Can't override a non-virtual methods BuildMethodTableThrowException(BFA_NONVIRT_NO_SEARCH, it.Token()); } if(IsMdFinal(dwParentAttrs)) { // Can't override a final methods BuildMethodTableThrowException(IDS_CLASSLOAD_MI_FINAL_DECL, it.Token()); } if(!bmtProp->fNoSanityChecks) { TestOverRide(bmtMethodHandle(pParentMethod), bmtMethodHandle(*it)); if (!fMethodConstraintsMatch) { BuildMethodTableThrowException( IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_IMPLICIT_OVERRIDE, it.Token()); } } } } // vtable method if (IsInterface()) { CONSISTENCY_CHECK(pParentMethod == NULL); // Also sets new slot number on bmtRTMethod and MethodDesc if (!bmtVT->AddVirtualMethod(*it)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } else if (pParentMethod != NULL) { bmtVT->SetVirtualMethodOverride(pParentMethod->GetSlotIndex(), *it); } else { if (!bmtVT->AddVirtualMethod(*it)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); } } } // Given an interface map entry, and a name+signature, compute the method on the interface // that the name+signature corresponds to. Used by ProcessMethodImpls and ProcessInexactMethodImpls // Always returns the first match that it finds. Affects the ambiguities in code:#ProcessInexactMethodImpls_Ambiguities MethodTableBuilder::bmtMethodHandle MethodTableBuilder::FindDeclMethodOnInterfaceEntry(bmtInterfaceEntry *pItfEntry, MethodSignature &declSig, bool searchForStaticMethods) { STANDARD_VM_CONTRACT; bmtMethodHandle declMethod; bmtInterfaceEntry::InterfaceSlotIterator slotIt = pItfEntry->IterateInterfaceSlots(GetStackingAllocator(), searchForStaticMethods); // Check for exact match for (; !slotIt.AtEnd(); slotIt.Next()) { bmtRTMethod * pCurDeclMethod = slotIt->Decl().AsRTMethod(); if (declSig.ExactlyEqual(pCurDeclMethod->GetMethodSignature().GetSignatureWithoutSubstitution())) { declMethod = slotIt->Decl(); break; } } slotIt.ResetToStart(); // Check for equivalent match if exact match wasn't found if (declMethod.IsNull()) { for (; !slotIt.AtEnd(); slotIt.Next()) { bmtRTMethod * pCurDeclMethod = slotIt->Decl().AsRTMethod(); // Type Equivalence is forbidden in MethodImpl MemberRefs if (declSig.Equivalent(pCurDeclMethod->GetMethodSignature().GetSignatureWithoutSubstitution())) { declMethod = slotIt->Decl(); break; } } } return declMethod; } //******************************************************************************* // // Used by BuildMethodTable // Process the list of inexact method impls generated during ProcessMethodImpls. // This list is used to cause a methodImpl to an interface to override // methods on several equivalent interfaces in the interface map. This logic is necessary // so that in the presence of an embedded interface the behavior appears to mimic // the behavior if the interface was not embedded. // // In particular, the logic here is to handle cases such as // // Assembly A // [TypeIdentifier("x","y")] // interface I' // { void Method(); } // interface IOther : I' {} // // Assembly B // [TypeIdentifier("x","y")] // interface I // { void Method(); } // class Test : I, IOther // { // void I.Method() // {} // } // // In this case, there is one method, and one methodimpl, but there are 2 interfaces on the class that both // require an implementation of their method. The correct semantic for type equivalence, is that any // methodimpl directly targeting a method on an interface must be respected, and if it also applies to a type // equivalent interface method, then if that method was not methodimpl'd directly, then the methodimpl should apply // there as well. The ProcessInexactMethodImpls function does this secondary MethodImpl mapping. // //#ProcessInexactMethodImpls_Ambiguities // In the presence of ambiguities, such as there are 3 equivalent interfaces implemented on a class and 2 methodimpls, // we will apply the 2 method impls exactly to appropriate interface methods, and arbitrarily pick one to apply to the // other interface. This is clearly ambiguous, but tricky to detect in the type loader efficiently, and should hopefully // not cause too many problems. // VOID MethodTableBuilder::ProcessInexactMethodImpls() { STANDARD_VM_CONTRACT; if (bmtMethod->dwNumberInexactMethodImplCandidates == 0) return; DeclaredMethodIterator it(*this); while (it.Next()) { // Non-virtual methods cannot be classified as methodImpl - we should have thrown an // error before reaching this point. CONSISTENCY_CHECK(!(!IsMdVirtual(it.Attrs()) && it.IsMethodImpl())); if (!IsMdVirtual(it.Attrs())) { // Only virtual methods can participate in methodImpls continue; } if(!it.IsMethodImpl()) { // Skip methods which are not the bodies of MethodImpl specifications continue; } // If this method serves as the BODY of a MethodImpl specification, then // we should iterate all the MethodImpl's for this class and see just how many // of them this method participates in as the BODY. for(DWORD m = 0; m < bmtMethod->dwNumberMethodImpls; m++) { // Inexact matching logic only works on MethodImpls that have been opted into inexactness by ProcessMethodImpls. if (!bmtMetaData->rgMethodImplTokens[m].fConsiderDuringInexactMethodImplProcessing) { continue; } // If the methodimpl we are working with does not match this method, continue to next methodimpl if(it.Token() != bmtMetaData->rgMethodImplTokens[m].methodBody) { continue; } bool fMatchFound = false; LPCUTF8 szName = NULL; PCCOR_SIGNATURE pSig = NULL; ULONG cbSig; mdToken mdDecl = bmtMetaData->rgMethodImplTokens[m].methodDecl; if (TypeFromToken(mdDecl) == mdtMethodDef) { // Different methods are aused to access MethodDef and MemberRef // names and signatures. if (FAILED(GetMDImport()->GetNameOfMethodDef(mdDecl, &szName)) || FAILED(GetMDImport()->GetSigOfMethodDef(mdDecl, &cbSig, &pSig))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } else { if (FAILED(GetMDImport()->GetNameAndSigOfMemberRef(mdDecl, &pSig, &cbSig, &szName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } MethodSignature declSig(GetModule(), szName, pSig, cbSig, NULL); bmtInterfaceEntry * pItfEntry = NULL; for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { if (bmtInterface->pInterfaceMap[i].GetInterfaceEquivalenceSet() != bmtMetaData->rgMethodImplTokens[m].interfaceEquivalenceSet) continue; bmtMethodHandle declMethod; pItfEntry = &bmtInterface->pInterfaceMap[i]; // Search for declmethod on this interface declMethod = FindDeclMethodOnInterfaceEntry(pItfEntry, declSig); // If we didn't find a match, continue on to next interface in the equivalence set if (declMethod.IsNull()) continue; if (!IsMdVirtual(declMethod.GetDeclAttrs())) { // Make sure the decl is virtual BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MUSTBEVIRTUAL, it.Token()); } fMatchFound = true; bool fPreexistingImplFound = false; // Check to ensure there isn't already a matching declMethod in the method impl list for (DWORD iMethodImpl = 0; iMethodImpl < bmtMethodImpl->pIndex; iMethodImpl++) { if (bmtMethodImpl->GetDeclarationMethod(iMethodImpl) == declMethod) { fPreexistingImplFound = true; break; } } // Search for other matches if (fPreexistingImplFound) continue; if (bmtMetaData->rgMethodImplTokens[m].fRequiresCovariantReturnTypeChecking) { it->GetMethodDesc()->SetRequiresCovariantReturnTypeChecking(); } // Otherwise, record the method impl discovery if the match is bmtMethodImpl->AddMethodImpl(*it, declMethod, bmtMetaData->rgMethodImplTokens[m].methodDecl, GetStackingAllocator()); } if (!fMatchFound && bmtMetaData->rgMethodImplTokens[m].fThrowIfUnmatchedDuringInexactMethodImplProcessing) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_DECLARATIONNOTFOUND, it.Token()); } } } } //******************************************************************************* // // Used by BuildMethodTable // VOID MethodTableBuilder::ProcessMethodImpls() { STANDARD_VM_CONTRACT; if (bmtMetaData->fHasCovariantOverride) { GetHalfBakedClass()->SetHasCovariantOverride(); } if (GetParentMethodTable() != NULL) { EEClass* parentClass = GetParentMethodTable()->GetClass(); if (parentClass->HasCovariantOverride()) GetHalfBakedClass()->SetHasCovariantOverride(); if (parentClass->HasVTableMethodImpl()) GetHalfBakedClass()->SetHasVTableMethodImpl(); } if (bmtMethod->dwNumberMethodImpls == 0) return; HRESULT hr = S_OK; DeclaredMethodIterator it(*this); while (it.Next()) { if (!IsMdVirtual(it.Attrs()) && it.IsMethodImpl() && bmtProp->fNoSanityChecks) { // Non-virtual methods can only be classified as methodImpl when implementing // static virtual methods. CONSISTENCY_CHECK(IsMdStatic(it.Attrs())); continue; } // If this method serves as the BODY of a MethodImpl specification, then // we should iterate all the MethodImpl's for this class and see just how many // of them this method participates in as the BODY. if(it.IsMethodImpl()) { for(DWORD m = 0; m < bmtMethod->dwNumberMethodImpls; m++) { if(it.Token() == bmtMetaData->rgMethodImplTokens[m].methodBody) { mdToken mdDecl = bmtMetaData->rgMethodImplTokens[m].methodDecl; bmtMethodHandle declMethod; // Get the parent token for the decl method token mdToken tkParent = mdTypeDefNil; if (TypeFromToken(mdDecl) == mdtMethodDef || TypeFromToken(mdDecl) == mdtMemberRef) { if (FAILED(hr = GetMDImport()->GetParentToken(mdDecl,&tkParent))) { BuildMethodTableThrowException(hr, *bmtError); } } if (GetCl() == tkParent) { // The DECL has been declared within the class that we're currently building. hr = S_OK; if(bmtError->pThrowable != NULL) { *(bmtError->pThrowable) = NULL; } if(TypeFromToken(mdDecl) != mdtMethodDef) { if (FAILED(hr = FindMethodDeclarationForMethodImpl( mdDecl, &mdDecl, TRUE))) { BuildMethodTableThrowException(hr, *bmtError); } } CONSISTENCY_CHECK(TypeFromToken(mdDecl) == mdtMethodDef); declMethod = bmtMethod->FindDeclaredMethodByToken(mdDecl); } else { // We can't call GetDescFromMemberDefOrRef here because this // method depends on a fully-loaded type, including parent types, // which is not always guaranteed. In particular, it requires that // the instantiation dictionary be filled. The solution is the following: // 1. Load the approximate type that the method belongs to. // 2. Get or create the correct substitution for the type involved // 3. Iterate the introduced methods on that type looking for a matching // method. LPCUTF8 szName = NULL; PCCOR_SIGNATURE pSig = NULL; ULONG cbSig; if (TypeFromToken(mdDecl) == mdtMethodDef) { // Different methods are aused to access MethodDef and MemberRef // names and signatures. if (FAILED(GetMDImport()->GetNameOfMethodDef(mdDecl, &szName)) || FAILED(GetMDImport()->GetSigOfMethodDef(mdDecl, &cbSig, &pSig))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } else { if (FAILED(GetMDImport()->GetNameAndSigOfMemberRef(mdDecl, &pSig, &cbSig, &szName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } Substitution *pDeclSubst = &bmtMetaData->pMethodDeclSubsts[m]; MethodTable * pDeclMT = NULL; MethodSignature declSig(GetModule(), szName, pSig, cbSig, NULL); { // 1. Load the approximate type. // Block for the LoadsTypeViolation. CONTRACT_VIOLATION(LoadsTypeViolation); pDeclMT = ClassLoader::LoadTypeDefOrRefOrSpecThrowing( GetModule(), tkParent, &bmtGenerics->typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_APPROXPARENTS, TRUE).GetMethodTable()->GetCanonicalMethodTable(); } { // 2. Get or create the correct substitution if (pDeclMT->IsInterface()) { // If the declaration method is a part of an interface, search through // the interface map to find the matching interface so we can provide // the correct substitution chain. bmtRTType *pDeclType = NULL; bmtInterfaceEntry * pItfEntry = NULL; for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtRTType * pCurItf = bmtInterface->pInterfaceMap[i].GetInterfaceType(); // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions( pCurItf->GetMethodTable(), pDeclMT, &pCurItf->GetSubstitution(), pDeclSubst, &newVisited)) { pItfEntry = &bmtInterface->pInterfaceMap[i]; pDeclType = pCurItf; break; } } if (IsInterface()) { if (pDeclType == NULL) { // Interface is not implemented by this type. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_NOTIMPLEMENTED, it.Token()); } } else { if (pDeclType == NULL) { DWORD equivalenceSet = 0; for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtRTType * pCurItf = bmtInterface->pInterfaceMap[i].GetInterfaceType(); // Type Equivalence is respected for this comparision as we just need to find an // equivalent interface, the particular interface is unimportant if (MetaSig::CompareTypeDefsUnderSubstitutions( pCurItf->GetMethodTable(), pDeclMT, &pCurItf->GetSubstitution(), pDeclSubst, NULL)) { equivalenceSet = bmtInterface->pInterfaceMap[i].GetInterfaceEquivalenceSet(); pItfEntry = &bmtInterface->pInterfaceMap[i]; break; } } if (equivalenceSet == 0) { // Interface is not implemented by this type. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_NOTIMPLEMENTED, it.Token()); } // Interface is not implemented by this type exactly. We need to consider this MethodImpl on non exact interface matches, // as the only match may be one of the non-exact matches bmtMetaData->rgMethodImplTokens[m].fConsiderDuringInexactMethodImplProcessing = true; bmtMetaData->rgMethodImplTokens[m].fThrowIfUnmatchedDuringInexactMethodImplProcessing = true; bmtMetaData->rgMethodImplTokens[m].interfaceEquivalenceSet = equivalenceSet; bmtMethod->dwNumberInexactMethodImplCandidates++; continue; // Move on to other MethodImpls } else { // This method impl may need to match other methods during inexact processing if (pItfEntry->InEquivalenceSetWithMultipleEntries()) { bmtMetaData->rgMethodImplTokens[m].fConsiderDuringInexactMethodImplProcessing = true; bmtMetaData->rgMethodImplTokens[m].fThrowIfUnmatchedDuringInexactMethodImplProcessing = false; bmtMetaData->rgMethodImplTokens[m].interfaceEquivalenceSet = pItfEntry->GetInterfaceEquivalenceSet(); bmtMethod->dwNumberInexactMethodImplCandidates++; } } } // 3. Find the matching method. declMethod = FindDeclMethodOnInterfaceEntry(pItfEntry, declSig, !IsMdVirtual(it.Attrs())); // Search for statics when the impl is non-virtual } else { GetHalfBakedClass()->SetHasVTableMethodImpl(); declMethod = FindDeclMethodOnClassInHierarchy(it, pDeclMT, declSig); } if (declMethod.IsNull()) { // Would prefer to let this fall out to the BuildMethodTableThrowException // below, but due to v2.0 and earlier behaviour throwing a MissingMethodException, // primarily because this code used to be a simple call to // MemberLoader::GetDescFromMemberDefOrRef (see above for reason why), // we must continue to do the same. MemberLoader::ThrowMissingMethodException( pDeclMT, declSig.GetName(), declSig.GetModule(), declSig.GetSignature(), static_cast<DWORD>(declSig.GetSignatureLength()), &bmtGenerics->typeContext); } } } if (declMethod.IsNull()) { // Method not found, throw. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_DECLARATIONNOTFOUND, it.Token()); } if (!IsMdVirtual(declMethod.GetDeclAttrs())) { // Make sure the decl is virtual BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MUSTBEVIRTUAL, it.Token()); } if (!IsMdVirtual(it.Attrs()) && it.IsMethodImpl() && IsMdStatic(it.Attrs())) { // Non-virtual methods can only be classified as methodImpl when implementing // static virtual methods. ValidateStaticMethodImpl(declMethod, *it);//bmtMethodHandle(pCurImplMethod)); continue; } if (bmtMetaData->rgMethodImplTokens[m].fRequiresCovariantReturnTypeChecking) { it->GetMethodDesc()->SetRequiresCovariantReturnTypeChecking(); } bmtMethodImpl->AddMethodImpl(*it, declMethod, mdDecl, GetStackingAllocator()); } } } } /* end ... for each member */ } MethodTableBuilder::bmtMethodHandle MethodTableBuilder::FindDeclMethodOnClassInHierarchy(const DeclaredMethodIterator& it, MethodTable * pDeclMT, MethodSignature &declSig) { bmtRTType * pDeclType = NULL; bmtMethodHandle declMethod; // Assume the MethodTable is a parent of the current type, // and create the substitution chain to match it. for (bmtRTType *pCur = GetParentType(); pCur != NULL; pCur = pCur->GetParentType()) { if (pCur->GetMethodTable() == pDeclMT) { pDeclType = pCur; break; } } // Instead of using the Substitution chain that reaches back to the type being loaded, instead // use a substitution chain that points back to the open type associated with the memberref of the declsig. Substitution emptySubstitution; Substitution* pDeclTypeSubstitution = &emptySubstitution; DWORD lengthOfSubstitutionChainHandled = pDeclType->GetSubstitution().GetLength(); if (pDeclType == NULL) { // Method's type is not a parent. BuildMethodTableThrowException(IDS_CLASSLOAD_MI_DECLARATIONNOTFOUND, it.Token()); } // 3. Find the matching method. bmtRTType *pCurDeclType = pDeclType; do { // Update the substitution in use for matching the method. If the substitution length is greater // than the previously processed data, add onto the end of the chain. { DWORD declTypeSubstitionLength = pCurDeclType->GetSubstitution().GetLength(); if (declTypeSubstitionLength > lengthOfSubstitutionChainHandled) { void *pNewSubstitutionMem = _alloca(sizeof(Substitution)); Substitution substitutionToClone = pCurDeclType->GetSubstitution(); Substitution *pNewSubstitution = new(pNewSubstitutionMem) Substitution(substitutionToClone.GetModule(), substitutionToClone.GetInst(), pDeclTypeSubstitution); pDeclTypeSubstitution = pNewSubstitution; lengthOfSubstitutionChainHandled = declTypeSubstitionLength; } } // two pass algorithm. search for exact matches followed // by equivalent matches. for (int iPass = 0; (iPass < 2) && (declMethod.IsNull()); iPass++) { MethodTable *pCurDeclMT = pCurDeclType->GetMethodTable(); MethodTable::IntroducedMethodIterator methIt(pCurDeclMT); for(; methIt.IsValid(); methIt.Next()) { MethodDesc * pCurMD = methIt.GetMethodDesc(); if (pCurDeclMT != pDeclMT) { // If the method isn't on the declaring type, then it must be virtual. if (!pCurMD->IsVirtual()) continue; } if (strcmp(declSig.GetName(), pCurMD->GetName()) == 0) { PCCOR_SIGNATURE pCurMDSig; DWORD cbCurMDSig; pCurMD->GetSig(&pCurMDSig, &cbCurMDSig); // First pass searches for declaration methods should not use type equivalence TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareMethodSigs( declSig.GetSignature(), static_cast<DWORD>(declSig.GetSignatureLength()), declSig.GetModule(), NULL, // Do not use the substitution of declSig, as we have adjusted the pDeclTypeSubstitution such that it must not be used. pCurMDSig, cbCurMDSig, pCurMD->GetModule(), pDeclTypeSubstitution, FALSE, iPass == 0 ? &newVisited : NULL)) { declMethod = (*bmtParent->pSlotTable)[pCurMD->GetSlot()].Decl(); break; } } } } pCurDeclType = pCurDeclType->GetParentType(); } while ((pCurDeclType != NULL) && (declMethod.IsNull())); return declMethod; } //******************************************************************************* // InitMethodDesc takes a pointer to space that's already allocated for the // particular type of MethodDesc, and initializes based on the other info. // This factors logic between PlaceMembers (the regular code path) & AddMethod // (Edit & Continue (EnC) code path) so we don't have to maintain separate copies. VOID MethodTableBuilder::InitMethodDesc( MethodDesc * pNewMD, // This is should actually be of the correct sub-type, based on Classification DWORD Classification, mdToken tok, DWORD dwImplFlags, DWORD dwMemberAttrs, BOOL fEnC, DWORD RVA, // Only needed for NDirect case IMDInternalImport * pIMDII, // Needed for NDirect, EEImpl(Delegate) cases LPCSTR pMethodName // Only needed for mcEEImpl (Delegate) case COMMA_INDEBUG(LPCUTF8 pszDebugMethodName) COMMA_INDEBUG(LPCUTF8 pszDebugClassName) COMMA_INDEBUG(LPCUTF8 pszDebugMethodSignature) ) { CONTRACTL { THROWS; if (fEnC) { GC_NOTRIGGER; } else { GC_TRIGGERS; } MODE_ANY; } CONTRACTL_END; LOG((LF_CORDB, LL_EVERYTHING, "EEC::IMD: pNewMD:0x%x for tok:0x%x (%s::%s)\n", pNewMD, tok, pszDebugClassName, pszDebugMethodName)); // Now we know the classification we can perform any classification specific initialization. // The method desc is zero inited by the caller. switch (Classification) { case mcNDirect: { // NDirect specific initialization. NDirectMethodDesc *pNewNMD = (NDirectMethodDesc*)pNewMD; // Allocate writeable data pNewNMD->ndirect.m_pWriteableData = (NDirectWriteableData*) AllocateFromHighFrequencyHeap(S_SIZE_T(sizeof(NDirectWriteableData))); #ifdef HAS_NDIRECT_IMPORT_PRECODE pNewNMD->ndirect.m_pImportThunkGlue = Precode::Allocate(PRECODE_NDIRECT_IMPORT, pNewMD, GetLoaderAllocator(), GetMemTracker())->AsNDirectImportPrecode(); #else // !HAS_NDIRECT_IMPORT_PRECODE pNewNMD->GetNDirectImportThunkGlue()->Init(pNewNMD); #endif // !HAS_NDIRECT_IMPORT_PRECODE #if defined(TARGET_X86) pNewNMD->ndirect.m_cbStackArgumentSize = 0xFFFF; #endif // defined(TARGET_X86) // If the RVA of a native method is set, this is an early-bound IJW call if (RVA != 0 && IsMiUnmanaged(dwImplFlags) && IsMiNative(dwImplFlags)) { // Note that we cannot initialize the stub directly now in the general case, // as LoadLibrary may not have been performed yet. pNewNMD->SetIsEarlyBound(); } pNewNMD->GetWriteableData()->m_pNDirectTarget = pNewNMD->GetNDirectImportThunkGlue()->GetEntrypoint(); } break; case mcFCall: break; case mcEEImpl: // For the Invoke method we will set a standard invoke method. BAD_FORMAT_NOTHROW_ASSERT(IsDelegate()); // For the asserts, either the pointer is NULL (since the class hasn't // been constructed yet), or we're in EnC mode, meaning that the class // does exist, but we may be re-assigning the field to point to an // updated MethodDesc // It is not allowed for EnC to replace one of the runtime builtin methods if (strcmp(pMethodName, "Invoke") == 0) { BAD_FORMAT_NOTHROW_ASSERT(((DelegateEEClass*)GetHalfBakedClass())->m_pInvokeMethod == NULL); ((DelegateEEClass*)GetHalfBakedClass())->m_pInvokeMethod = pNewMD; } else if (strcmp(pMethodName, "BeginInvoke") == 0) { BAD_FORMAT_NOTHROW_ASSERT(((DelegateEEClass*)GetHalfBakedClass())->m_pBeginInvokeMethod == NULL); ((DelegateEEClass*)GetHalfBakedClass())->m_pBeginInvokeMethod = pNewMD; } else if (strcmp(pMethodName, "EndInvoke") == 0) { BAD_FORMAT_NOTHROW_ASSERT(((DelegateEEClass*)GetHalfBakedClass())->m_pEndInvokeMethod == NULL); ((DelegateEEClass*)GetHalfBakedClass())->m_pEndInvokeMethod = pNewMD; } else { BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // StoredSig specific intialization { StoredSigMethodDesc *pNewSMD = (StoredSigMethodDesc*) pNewMD;; DWORD cSig; PCCOR_SIGNATURE pSig; if (FAILED(pIMDII->GetSigOfMethodDef(tok, &cSig, &pSig))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } pNewSMD->SetStoredMethodSig(pSig, cSig); } break; #ifdef FEATURE_COMINTEROP case mcComInterop: #endif // FEATURE_COMINTEROP case mcIL: break; case mcInstantiated: #ifdef EnC_SUPPORTED if (fEnC) { // We reuse the instantiated methoddescs to get the slot InstantiatedMethodDesc* pNewIMD = (InstantiatedMethodDesc*) pNewMD; pNewIMD->SetupEnCAddedMethod(); } else #endif // EnC_SUPPORTED { // Initialize the typical instantiation. InstantiatedMethodDesc* pNewIMD = (InstantiatedMethodDesc*) pNewMD; //data has the same lifetime as method table, use our allocator pNewIMD->SetupGenericMethodDefinition(pIMDII, GetLoaderAllocator(), GetMemTracker(), GetModule(), tok); } break; default: BAD_FORMAT_NOTHROW_ASSERT(!"Failed to set a method desc classification"); } // Check the method desc's classification. _ASSERTE(pNewMD->GetClassification() == Classification); pNewMD->SetMemberDef(tok); if (IsMdStatic(dwMemberAttrs)) pNewMD->SetStatic(); #ifdef _DEBUG // Mark as many methods as synchronized as possible. // // Note that this can easily cause programs to deadlock, and that // should not be treated as a bug in the program. static ConfigDWORD stressSynchronized; DWORD stressSynchronizedVal = stressSynchronized.val(CLRConfig::INTERNAL_stressSynchronized); bool isStressSynchronized = stressSynchronizedVal && pNewMD->IsIL() && // Synchronized is not supported on Ecalls, NDirect method, etc // IsValueClass() and IsEnum() do not work for System.ValueType and System.Enum themselves ((g_pValueTypeClass != NULL && g_pEnumClass != NULL && !IsValueClass()) || // Can not synchronize on byref "this" IsMdStatic(dwMemberAttrs)) && // IsStatic() blows up in _DEBUG as pNewMD is not fully inited g_pObjectClass != NULL; // Ignore Object:* since "this" could be a boxed object // stressSynchronized=1 turns off the stress in the system domain to reduce // the chances of spurious deadlocks. Deadlocks in user code can still occur. // stressSynchronized=2 will probably cause more deadlocks, and is not recommended if (stressSynchronizedVal == 1 && GetAssembly()->IsSystem()) isStressSynchronized = false; if (IsMiSynchronized(dwImplFlags) || isStressSynchronized) #else // !_DEBUG if (IsMiSynchronized(dwImplFlags)) #endif // !_DEBUG pNewMD->SetSynchronized(); #ifdef _DEBUG pNewMD->m_pszDebugMethodName = (LPUTF8)pszDebugMethodName; pNewMD->m_pszDebugClassName = (LPUTF8)pszDebugClassName; pNewMD->m_pDebugMethodTable = GetHalfBakedMethodTable(); if (pszDebugMethodSignature == NULL) pNewMD->m_pszDebugMethodSignature = FormatSig(pNewMD,pNewMD->GetLoaderAllocator()->GetLowFrequencyHeap(),GetMemTracker()); else pNewMD->m_pszDebugMethodSignature = pszDebugMethodSignature; #endif // _DEBUG } // MethodTableBuilder::InitMethodDesc //******************************************************************************* // // Used by BuildMethodTable // VOID MethodTableBuilder::AddMethodImplDispatchMapping( DispatchMapTypeID typeID, SLOT_INDEX slotNumber, bmtMDMethod * pImplMethod) { STANDARD_VM_CONTRACT; MethodDesc * pMDImpl = pImplMethod->GetMethodDesc(); // Look for an existing entry in the map. DispatchMapBuilder::Iterator it(bmtVT->pDispatchMapBuilder); if (bmtVT->pDispatchMapBuilder->Find(typeID, slotNumber, it)) { // Throw if this entry has already previously been MethodImpl'd. if (it.IsMethodImpl()) { // NOTE: This is where we check for duplicate overrides. This is the easiest place to check // because duplicate overrides could in fact have separate MemberRefs to the same // member and so just comparing tokens at the very start would not be enough. if (it.GetTargetMD() != pMDImpl) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MULTIPLEOVERRIDES, pMDImpl->GetMemberDef()); } } // This is the first MethodImpl. That's ok. else { it.SetTarget(pMDImpl); it.SetIsMethodImpl(); } } // A mapping for this interface method does not exist, so insert it. else { bmtVT->pDispatchMapBuilder->InsertMDMapping( typeID, slotNumber, pMDImpl, TRUE); } // Save the entry into the vtable as well, if it isn't an interface methodImpl if (typeID == DispatchMapTypeID::ThisClassID()) { bmtVT->SetVirtualMethodImpl(slotNumber, pImplMethod); } } // MethodTableBuilder::AddMethodImplDispatchMapping //******************************************************************************* VOID MethodTableBuilder::MethodImplCompareSignatures( bmtMethodHandle hDecl, bmtMethodHandle hImpl, BOOL allowCovariantReturn, DWORD dwConstraintErrorCode) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(!hDecl.IsNull()); PRECONDITION(!hImpl.IsNull()); PRECONDITION(TypeFromToken(hDecl.GetMethodSignature().GetToken()) == mdtMethodDef); PRECONDITION(TypeFromToken(hImpl.GetMethodSignature().GetToken()) == mdtMethodDef); } CONTRACTL_END; const MethodSignature &declSig(hDecl.GetMethodSignature()); const MethodSignature &implSig(hImpl.GetMethodSignature()); if (!MethodSignature::SignaturesEquivalent(declSig, implSig, allowCovariantReturn)) { LOG((LF_CLASSLOADER, LL_INFO1000, "BADSIG placing MethodImpl: %x\n", declSig.GetToken())); BuildMethodTableThrowException(COR_E_TYPELOAD, IDS_CLASSLOAD_MI_BADSIGNATURE, declSig.GetToken()); } //now compare the method constraints if (!MetaSig::CompareMethodConstraints(&implSig.GetSubstitution(), implSig.GetModule(), implSig.GetToken(), &declSig.GetSubstitution(), declSig.GetModule(), declSig.GetToken())) { BuildMethodTableThrowException(dwConstraintErrorCode, implSig.GetToken()); } } //******************************************************************************* // We should have collected all the method impls. Cycle through them creating the method impl // structure that holds the information about which slots are overridden. VOID MethodTableBuilder::PlaceMethodImpls() { STANDARD_VM_CONTRACT; if(bmtMethodImpl->pIndex == 0) { return; } // Allocate some temporary storage. The number of overrides for a single method impl // cannot be greater then the number of vtable slots for classes. But for interfaces // it might contain overrides for other interface methods. DWORD dwMaxSlotSize = IsInterface() ? bmtMethod->dwNumberMethodImpls : bmtVT->cVirtualSlots; DWORD * slots = new (GetStackingAllocator()) DWORD[dwMaxSlotSize]; mdToken * tokens = new (GetStackingAllocator()) mdToken[dwMaxSlotSize]; MethodDesc ** replaced = new (GetStackingAllocator()) MethodDesc*[dwMaxSlotSize]; DWORD iEntry = 0; bmtMDMethod * pCurImplMethod = bmtMethodImpl->GetImplementationMethod(iEntry); DWORD slotIndex = 0; // The impls are sorted according to the method descs for the body of the method impl. // Loop through the impls until the next body is found. When a single body // has been done move the slots implemented and method descs replaced into the storage // found on the body method desc. while (true) { // collect information until we reach the next body tokens[slotIndex] = bmtMethodImpl->GetDeclarationToken(iEntry); // Get the declaration part of the method impl. It will either be a token // (declaration is on this type) or a method desc. bmtMethodHandle hDeclMethod = bmtMethodImpl->GetDeclarationMethod(iEntry); // Don't place static virtual method overrides in the vtable if (!IsMdStatic(hDeclMethod.GetDeclAttrs())) { if(hDeclMethod.IsMDMethod()) { // The declaration is on the type being built bmtMDMethod * pCurDeclMethod = hDeclMethod.AsMDMethod(); mdToken mdef = pCurDeclMethod->GetMethodSignature().GetToken(); if (bmtMethodImpl->IsBody(mdef)) { // A method declared on this class cannot be both a decl and an impl BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MULTIPLEOVERRIDES, mdef); } if (IsInterface()) { // Throws PlaceInterfaceDeclarationOnInterface( hDeclMethod, pCurImplMethod, slots, // Adds override to the slot and replaced arrays. replaced, &slotIndex, dwMaxSlotSize); // Increments count } else { // Throws PlaceLocalDeclarationOnClass( pCurDeclMethod, pCurImplMethod, slots, // Adds override to the slot and replaced arrays. replaced, &slotIndex, dwMaxSlotSize); // Increments count } } else { bmtRTMethod * pCurDeclMethod = hDeclMethod.AsRTMethod(); if (IsInterface()) { // Throws PlaceInterfaceDeclarationOnInterface( hDeclMethod, pCurImplMethod, slots, // Adds override to the slot and replaced arrays. replaced, &slotIndex, dwMaxSlotSize); // Increments count } else { // Do not use pDecl->IsInterface here as that asks the method table and the MT may not yet be set up. if (pCurDeclMethod->GetOwningType()->IsInterface()) { // Throws PlaceInterfaceDeclarationOnClass( pCurDeclMethod, pCurImplMethod); } else { // Throws PlaceParentDeclarationOnClass( pCurDeclMethod, pCurImplMethod, slots, replaced, &slotIndex, dwMaxSlotSize); // Increments count } } } } iEntry++; if(iEntry == bmtMethodImpl->pIndex) { // We hit the end of the list so dump the current data and leave WriteMethodImplData(pCurImplMethod, slotIndex, slots, tokens, replaced); break; } else { bmtMDMethod * pNextImplMethod = bmtMethodImpl->GetImplementationMethod(iEntry); if (pNextImplMethod != pCurImplMethod) { // If we're moving on to a new body, dump the current data and reset the counter WriteMethodImplData(pCurImplMethod, slotIndex, slots, tokens, replaced); slotIndex = 0; } pCurImplMethod = pNextImplMethod; } } // while(next != NULL) } // MethodTableBuilder::PlaceMethodImpls //******************************************************************************* VOID MethodTableBuilder::WriteMethodImplData( bmtMDMethod * pImplMethod, DWORD cSlots, DWORD * rgSlots, mdToken * rgTokens, MethodDesc ** rgDeclMD) { STANDARD_VM_CONTRACT; // Use the number of overrides to // push information on to the method desc. We store the slots that // are overridden and the method desc that is replaced. That way // when derived classes need to determine if the method is to be // overridden then it can check the name against the replaced // method desc not the bodies name. if (cSlots == 0) { //@TODO:NEWVTWORK: Determine methodImpl status so that we don't need this workaround. //@TODO:NEWVTWORK: This occurs when only interface decls are involved, since //@TODO:NEWVTWORK: these are stored in the dispatch map and not on the methoddesc. } else { MethodImpl * pImpl = pImplMethod->GetMethodDesc()->GetMethodImpl(); // Set the size of the info the MethodImpl needs to keep track of. pImpl->SetSize(GetLoaderAllocator()->GetHighFrequencyHeap(), GetMemTracker(), cSlots); if (!IsInterface()) { // If we are currently builting an interface, the slots here has no meaning and we can skip it // Sort the two arrays in slot index order // This is required in MethodImpl::FindSlotIndex and MethodImpl::Iterator as we'll be using // binary search later for (DWORD i = 0; i < cSlots; i++) { unsigned int min = i; for (DWORD j = i + 1; j < cSlots; j++) { if (rgSlots[j] < rgSlots[min]) { min = j; } } if (min != i) { MethodDesc * mTmp = rgDeclMD[i]; rgDeclMD[i] = rgDeclMD[min]; rgDeclMD[min] = mTmp; DWORD sTmp = rgSlots[i]; rgSlots[i] = rgSlots[min]; rgSlots[min] = sTmp; mdToken tTmp = rgTokens[i]; rgTokens[i] = rgTokens[min]; rgTokens[min] = tTmp; } } } // Go and set the method impl pImpl->SetData(rgSlots, rgTokens, rgDeclMD); GetHalfBakedClass()->SetContainsMethodImpls(); } } // MethodTableBuilder::WriteMethodImplData //******************************************************************************* VOID MethodTableBuilder::PlaceLocalDeclarationOnClass( bmtMDMethod * pDecl, bmtMDMethod * pImpl, DWORD * slots, MethodDesc ** replaced, DWORD * pSlotIndex, DWORD dwMaxSlotSize) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(bmtVT->pDispatchMapBuilder)); PRECONDITION(CheckPointer(pDecl)); PRECONDITION(CheckPointer(pImpl)); } CONTRACTL_END if (!bmtProp->fNoSanityChecks) { /////////////////////////////// // Verify the signatures match MethodImplCompareSignatures( pDecl, pImpl, FALSE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_LOCAL_METHOD_IMPL); /////////////////////////////// // Validate the method impl. TestMethodImpl( bmtMethodHandle(pDecl), bmtMethodHandle(pImpl)); } // Don't allow overrides for any of the four special runtime implemented delegate methods if (IsDelegate()) { LPCUTF8 strMethodName = pDecl->GetMethodSignature().GetName(); if ((strcmp(strMethodName, COR_CTOR_METHOD_NAME) == 0) || (strcmp(strMethodName, "Invoke") == 0) || (strcmp(strMethodName, "BeginInvoke") == 0) || (strcmp(strMethodName, "EndInvoke") == 0)) { BuildMethodTableThrowException( IDS_CLASSLOAD_MI_CANNOT_OVERRIDE, pDecl->GetMethodSignature().GetToken()); } } /////////////////// // Add the mapping // Call helper to add it. Will throw if decl is already MethodImpl'd CONSISTENCY_CHECK(pDecl->GetSlotIndex() == static_cast<SLOT_INDEX>(pDecl->GetMethodDesc()->GetSlot())); AddMethodImplDispatchMapping( DispatchMapTypeID::ThisClassID(), pDecl->GetSlotIndex(), pImpl); // We implement this slot, record it ASSERT(*pSlotIndex < dwMaxSlotSize); slots[*pSlotIndex] = pDecl->GetSlotIndex(); replaced[*pSlotIndex] = pDecl->GetMethodDesc(); // increment the counter (*pSlotIndex)++; } // MethodTableBuilder::PlaceLocalDeclarationOnClass //******************************************************************************* VOID MethodTableBuilder::PlaceInterfaceDeclarationOnClass( bmtRTMethod * pDecl, bmtMDMethod * pImpl) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pDecl)); PRECONDITION(CheckPointer(pImpl)); PRECONDITION(pDecl->GetMethodDesc()->IsInterface()); PRECONDITION(CheckPointer(bmtVT->pDispatchMapBuilder)); } CONTRACTL_END; MethodDesc * pDeclMD = pDecl->GetMethodDesc(); MethodTable * pDeclMT = pDeclMD->GetMethodTable(); // Note that the fact that pDecl is non-NULL means that we found the // declaration token to be owned by a declared interface for this type. if (!bmtProp->fNoSanityChecks) { /////////////////////////////// // Verify the signatures match MethodImplCompareSignatures( pDecl, pImpl, FALSE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_INTERFACE_METHOD_IMPL); /////////////////////////////// // Validate the method impl. TestMethodImpl( bmtMethodHandle(pDecl), bmtMethodHandle(pImpl)); } /////////////////// // Add the mapping // Note that we need only one DispatchMapTypeID for this interface (though there might be more if there // are duplicates). The first one is easy to get, but we could (in theory) use the last one or a random // one. // Q: Why don't we have to place this method for all duplicate interfaces? Because VSD knows about // duplicates and finds the right (latest) implementation for us - see // code:MethodTable::MethodDataInterfaceImpl::PopulateNextLevel#ProcessAllDuplicates. UINT32 cInterfaceDuplicates; DispatchMapTypeID firstDispatchMapTypeID; ComputeDispatchMapTypeIDs( pDeclMT, &pDecl->GetMethodSignature().GetSubstitution(), &firstDispatchMapTypeID, 1, &cInterfaceDuplicates); CONSISTENCY_CHECK(cInterfaceDuplicates >= 1); CONSISTENCY_CHECK(firstDispatchMapTypeID.IsImplementedInterface()); // Call helper to add it. Will throw if decl is already MethodImpl'd CONSISTENCY_CHECK(pDecl->GetSlotIndex() == static_cast<SLOT_INDEX>(pDecl->GetMethodDesc()->GetSlot())); AddMethodImplDispatchMapping( firstDispatchMapTypeID, pDecl->GetSlotIndex(), pImpl); #ifdef _DEBUG if (bmtInterface->dbg_fShouldInjectInterfaceDuplicates) { // We injected interface duplicates // We have to MethodImpl all interface duplicates as all duplicates are 'declared on type' (see // code:#InjectInterfaceDuplicates_ApproxInterfaces) DispatchMapTypeID * rgDispatchMapTypeIDs = (DispatchMapTypeID *)_alloca(sizeof(DispatchMapTypeID) * cInterfaceDuplicates); ComputeDispatchMapTypeIDs( pDeclMT, &pDecl->GetMethodSignature().GetSubstitution(), rgDispatchMapTypeIDs, cInterfaceDuplicates, &cInterfaceDuplicates); for (UINT32 nInterfaceDuplicate = 1; nInterfaceDuplicate < cInterfaceDuplicates; nInterfaceDuplicate++) { // Add MethodImpl record for each injected interface duplicate AddMethodImplDispatchMapping( rgDispatchMapTypeIDs[nInterfaceDuplicate], pDecl->GetSlotIndex(), pImpl); } } #endif //_DEBUG } // MethodTableBuilder::PlaceInterfaceDeclarationOnClass //******************************************************************************* VOID MethodTableBuilder::PlaceInterfaceDeclarationOnInterface( bmtMethodHandle hDecl, bmtMDMethod *pImpl, DWORD * slots, MethodDesc ** replaced, DWORD * pSlotIndex, DWORD dwMaxSlotSize) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pImpl)); PRECONDITION(IsInterface()); PRECONDITION(hDecl.GetMethodDesc()->IsInterface()); } CONTRACTL_END; MethodDesc * pDeclMD = hDecl.GetMethodDesc(); if (!bmtProp->fNoSanityChecks) { /////////////////////////////// // Verify the signatures match MethodImplCompareSignatures( hDecl, bmtMethodHandle(pImpl), FALSE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_INTERFACE_METHOD_IMPL); /////////////////////////////// // Validate the method impl. TestMethodImpl(hDecl, bmtMethodHandle(pImpl)); } // We implement this slot, record it ASSERT(*pSlotIndex < dwMaxSlotSize); slots[*pSlotIndex] = hDecl.GetSlotIndex(); replaced[*pSlotIndex] = pDeclMD; // increment the counter (*pSlotIndex)++; } // MethodTableBuilder::PlaceInterfaceDeclarationOnInterface //******************************************************************************* VOID MethodTableBuilder::PlaceParentDeclarationOnClass( bmtRTMethod * pDecl, bmtMDMethod * pImpl, DWORD * slots, MethodDesc** replaced, DWORD * pSlotIndex, DWORD dwMaxSlotSize) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pDecl)); PRECONDITION(CheckPointer(pImpl)); PRECONDITION(CheckPointer(bmtVT->pDispatchMapBuilder)); PRECONDITION(CheckPointer(GetParentMethodTable())); } CONTRACTL_END; MethodDesc * pDeclMD = pDecl->GetMethodDesc(); // Note that the fact that pDecl is non-NULL means that we found the // declaration token to be owned by a parent type. if (!bmtProp->fNoSanityChecks) { ///////////////////////////////////////// // Verify that the signatures match MethodImplCompareSignatures( pDecl, pImpl, TRUE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_PARENT_METHOD_IMPL); //////////////////////////////// // Verify rules of method impls TestMethodImpl( bmtMethodHandle(pDecl), bmtMethodHandle(pImpl)); } /////////////////// // Add the mapping // Call helper to add it. Will throw if DECL is already MethodImpl'd AddMethodImplDispatchMapping( DispatchMapTypeID::ThisClassID(), pDeclMD->GetSlot(), pImpl); // We implement this slot, record it ASSERT(*pSlotIndex < dwMaxSlotSize); slots[*pSlotIndex] = pDeclMD->GetSlot(); replaced[*pSlotIndex] = pDeclMD; // increment the counter (*pSlotIndex)++; } // MethodTableBuilder::PlaceParentDeclarationOnClass VOID MethodTableBuilder::ValidateStaticMethodImpl( bmtMethodHandle hDecl, bmtMethodHandle hImpl) { // While we don't want to place the static method impl declarations on the class/interface, we do // need to validate the method constraints and signature are compatible if (!bmtProp->fNoSanityChecks) { /////////////////////////////// // Verify the signatures match MethodImplCompareSignatures( hDecl, hImpl, FALSE /* allowCovariantReturn */, IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_INTERFACE_METHOD_IMPL); /////////////////////////////// // Validate the method impl. TestMethodImpl(hDecl, hImpl); } } //******************************************************************************* // This will validate that all interface methods that were matched during // layout also validate against type constraints. VOID MethodTableBuilder::ValidateInterfaceMethodConstraints() { STANDARD_VM_CONTRACT; DispatchMapBuilder::Iterator it(bmtVT->pDispatchMapBuilder); for (; it.IsValid(); it.Next()) { if (it.GetTypeID() != DispatchMapTypeID::ThisClassID()) { bmtRTType * pItf = bmtInterface->pInterfaceMap[it.GetTypeID().GetInterfaceNum()].GetInterfaceType(); // Grab the method token MethodTable * pMTItf = pItf->GetMethodTable(); CONSISTENCY_CHECK(CheckPointer(pMTItf->GetMethodDescForSlot(it.GetSlotNumber()))); mdMethodDef mdTok = pItf->GetMethodTable()->GetMethodDescForSlot(it.GetSlotNumber())->GetMemberDef(); // Default to the current module. The code immediately below determines if this // assumption is incorrect. Module * pTargetModule = GetModule(); // Get the module of the target method. Get it through the chunk to // avoid triggering the assert that MethodTable is non-NULL. It may // be null since it may belong to the type we're building right now. MethodDesc * pTargetMD = it.GetTargetMD(); // If pTargetMT is null, this indicates that the target MethodDesc belongs // to the current type. Otherwise, the MethodDesc MUST be owned by a parent // of the type we're building. BOOL fTargetIsOwnedByParent = pTargetMD->GetMethodTable() != NULL; // If the method is owned by a parent, we need to use the parent's module, // and we must construct the substitution chain all the way up to the parent. const Substitution *pSubstTgt = NULL; if (fTargetIsOwnedByParent) { CONSISTENCY_CHECK(CheckPointer(GetParentType())); bmtRTType *pTargetType = bmtRTType::FindType(GetParentType(), pTargetMD->GetMethodTable()); pSubstTgt = &pTargetType->GetSubstitution(); pTargetModule = pTargetType->GetModule(); } // Now compare the method constraints. if (!MetaSig::CompareMethodConstraints(pSubstTgt, pTargetModule, pTargetMD->GetMemberDef(), &pItf->GetSubstitution(), pMTItf->GetModule(), mdTok)) { LOG((LF_CLASSLOADER, LL_INFO1000, "BADCONSTRAINTS on interface method implementation: %x\n", pTargetMD)); // This exception will be due to an implicit implementation, since explicit errors // will be detected in MethodImplCompareSignatures (for now, anyway). CONSISTENCY_CHECK(!it.IsMethodImpl()); DWORD idsError = it.IsMethodImpl() ? IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_INTERFACE_METHOD_IMPL : IDS_CLASSLOAD_CONSTRAINT_MISMATCH_ON_IMPLICIT_IMPLEMENTATION; if (fTargetIsOwnedByParent) { DefineFullyQualifiedNameForClass(); LPCUTF8 szClassName = GetFullyQualifiedNameForClassNestedAware(pTargetMD->GetMethodTable()); LPCUTF8 szMethodName = pTargetMD->GetName(); CQuickBytes qb; // allocate enough room for "<class>.<method>\0" size_t cchFullName = strlen(szClassName) + 1 + strlen(szMethodName) + 1; LPUTF8 szFullName = (LPUTF8) qb.AllocThrows(cchFullName); strcpy_s(szFullName, cchFullName, szClassName); strcat_s(szFullName, cchFullName, "."); strcat_s(szFullName, cchFullName, szMethodName); BuildMethodTableThrowException(idsError, szFullName); } else { BuildMethodTableThrowException(idsError, pTargetMD->GetMemberDef()); } } } } } // MethodTableBuilder::ValidateInterfaceMethodConstraints //******************************************************************************* // Used to allocate and initialize MethodDescs (both the boxed and unboxed entrypoints) VOID MethodTableBuilder::AllocAndInitMethodDescs() { STANDARD_VM_CONTRACT; // // Go over all MethodDescs and create smallest number of MethodDescChunks possible. // // Iterate over all methods and start a new chunk only if: // - Token range (upper 24 bits of the method token) has changed. // - The maximum size of the chunk has been reached. // int currentTokenRange = -1; // current token range SIZE_T sizeOfMethodDescs = 0; // current running size of methodDesc chunk int startIndex = 0; // start of the current chunk (index into bmtMethod array) DeclaredMethodIterator it(*this); while (it.Next()) { int tokenRange = GetTokenRange(it.Token()); // This code assumes that iterator returns tokens in ascending order. If this assumption does not hold, // the code will still work with small performance penalty (method desc chunk layout will be less efficient). _ASSERTE(tokenRange >= currentTokenRange); SIZE_T size = MethodDesc::GetBaseSize(GetMethodClassification(it->GetMethodType())); // Add size of optional slots if (it->GetMethodImplType() == METHOD_IMPL) size += sizeof(MethodImpl); if (it->GetSlotIndex() >= bmtVT->cVtableSlots) size += sizeof(MethodDesc::NonVtableSlot); // slot if (NeedsNativeCodeSlot(*it)) size += sizeof(MethodDesc::NativeCodeSlot); // See comment in AllocAndInitMethodDescChunk if (NeedsTightlyBoundUnboxingStub(*it)) { size *= 2; if (bmtGenerics->GetNumGenericArgs() == 0) { size += sizeof(MethodDesc::NonVtableSlot); } else { bmtVT->cVtableSlots++; } } if (tokenRange != currentTokenRange || sizeOfMethodDescs + size > MethodDescChunk::MaxSizeOfMethodDescs) { if (sizeOfMethodDescs != 0) { AllocAndInitMethodDescChunk(startIndex, it.CurrentIndex() - startIndex, sizeOfMethodDescs); startIndex = it.CurrentIndex(); } currentTokenRange = tokenRange; sizeOfMethodDescs = 0; } sizeOfMethodDescs += size; } if (sizeOfMethodDescs != 0) { AllocAndInitMethodDescChunk(startIndex, NumDeclaredMethods() - startIndex, sizeOfMethodDescs); } } //******************************************************************************* // Allocates and initializes one method desc chunk. // // Arguments: // startIndex - index of first method in bmtMethod array. // count - number of methods in this chunk (contiguous region from startIndex) // sizeOfMethodDescs - total expected size of MethodDescs in this chunk // // Used by AllocAndInitMethodDescs. // VOID MethodTableBuilder::AllocAndInitMethodDescChunk(COUNT_T startIndex, COUNT_T count, SIZE_T sizeOfMethodDescs) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(sizeOfMethodDescs <= MethodDescChunk::MaxSizeOfMethodDescs); } CONTRACTL_END; void * pMem = GetMemTracker()->Track( GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(TADDR) + sizeof(MethodDescChunk) + sizeOfMethodDescs))); // Skip pointer to temporary entrypoints MethodDescChunk * pChunk = (MethodDescChunk *)((BYTE*)pMem + sizeof(TADDR)); COUNT_T methodDescCount = 0; SIZE_T offset = sizeof(MethodDescChunk); #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:22019) // Suppress PREFast warning about integer underflow #endif // _PREFAST_ for (COUNT_T i = 0; i < count; i++) #ifdef _PREFAST_ #pragma warning(pop) #endif // _PREFAST_ { bmtMDMethod * pMDMethod = (*bmtMethod)[static_cast<SLOT_INDEX>(startIndex + i)]; MethodDesc * pMD = (MethodDesc *)((BYTE *)pChunk + offset); pMD->SetChunkIndex(pChunk); InitNewMethodDesc(pMDMethod, pMD); #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:22018) // Suppress PREFast warning about integer underflow #endif // _PREFAST_ offset += pMD->SizeOf(); #ifdef _PREFAST_ #pragma warning(pop) #endif // _PREFAST_ methodDescCount++; // If we're a value class, we want to create duplicate slots // and MethodDescs for all methods in the vtable // section (i.e. not non-virtual instance methods or statics). // In the name of uniformity it would be much nicer // if we created _all_ value class BoxedEntryPointStubs at this point. // However, non-virtual instance methods only require unboxing // stubs in the rare case that we create a delegate to such a // method, and thus it would be inefficient to create them on // loading: after all typical structs will have many non-virtual // instance methods. // // Unboxing stubs for non-virtual instance methods are created // in code:MethodDesc::FindOrCreateAssociatedMethodDesc. if (NeedsTightlyBoundUnboxingStub(pMDMethod)) { MethodDesc * pUnboxedMD = (MethodDesc *)((BYTE *)pChunk + offset); ////////////////////////////////// // Initialize the new MethodDesc // <NICE> memcpy operations on data structures like MethodDescs are extremely fragile // and should not be used. We should go to the effort of having proper constructors // in the MethodDesc class. </NICE> memcpy(pUnboxedMD, pMD, pMD->SizeOf()); // Reset the chunk index pUnboxedMD->SetChunkIndex(pChunk); if (bmtGenerics->GetNumGenericArgs() == 0) { pUnboxedMD->SetHasNonVtableSlot(); } ////////////////////////////////////////////////////////// // Modify the original MethodDesc to be an unboxing stub pMD->SetIsUnboxingStub(); //////////////////////////////////////////////////////////////////// // Add the new MethodDesc to the non-virtual portion of the vtable if (!bmtVT->AddUnboxedMethod(pMDMethod)) BuildMethodTableThrowException(IDS_CLASSLOAD_TOO_MANY_METHODS); pUnboxedMD->SetSlot(pMDMethod->GetUnboxedSlotIndex()); pMDMethod->SetUnboxedMethodDesc(pUnboxedMD); offset += pUnboxedMD->SizeOf(); methodDescCount++; } } _ASSERTE(offset == sizeof(MethodDescChunk) + sizeOfMethodDescs); pChunk->SetSizeAndCount(sizeOfMethodDescs, methodDescCount); GetHalfBakedClass()->AddChunk(pChunk); } //******************************************************************************* BOOL MethodTableBuilder::NeedsTightlyBoundUnboxingStub(bmtMDMethod * pMDMethod) { STANDARD_VM_CONTRACT; return IsValueClass() && !IsMdStatic(pMDMethod->GetDeclAttrs()) && IsMdVirtual(pMDMethod->GetDeclAttrs()) && (pMDMethod->GetMethodType() != METHOD_TYPE_INSTANTIATED) && !IsMdRTSpecialName(pMDMethod->GetDeclAttrs()); } //******************************************************************************* BOOL MethodTableBuilder::NeedsNativeCodeSlot(bmtMDMethod * pMDMethod) { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_TIERED_COMPILATION // Keep in-sync with MethodDesc::DetermineAndSetIsEligibleForTieredCompilation() if ((g_pConfig->TieredCompilation() && // Policy - If QuickJit is disabled and the module does not have any pregenerated code, the method would be ineligible // for tiering currently to avoid some unnecessary overhead (g_pConfig->TieredCompilation_QuickJit() || GetModule()->IsReadyToRun()) && (pMDMethod->GetMethodType() == METHOD_TYPE_NORMAL || pMDMethod->GetMethodType() == METHOD_TYPE_INSTANTIATED)) #ifdef FEATURE_REJIT || // Methods that are R2R need precode if ReJIT is enabled. Keep this in sync with MethodDesc::IsEligibleForReJIT() (ReJitManager::IsReJITEnabled() && GetMethodClassification(pMDMethod->GetMethodType()) == mcIL && !GetModule()->IsCollectible() && !GetModule()->IsEditAndContinueEnabled()) #endif // FEATURE_REJIT ) { return TRUE; } #endif #ifdef FEATURE_DEFAULT_INTERFACES if (IsInterface()) { DWORD attrs = pMDMethod->GetDeclAttrs(); if (!IsMdStatic(attrs) && IsMdVirtual(attrs) && !IsMdAbstract(attrs)) { // Default interface method. Since interface methods currently need to have a precode, the native code slot will be // used to retrieve the native code entry point, instead of getting it from the precode, which is not reliable with // debuggers setting breakpoints. return TRUE; } } #endif #if defined(FEATURE_JIT_PITCHING) if ((CLRConfig::GetConfigValue(CLRConfig::INTERNAL_JitPitchEnabled) != 0) && (CLRConfig::GetConfigValue(CLRConfig::INTERNAL_JitPitchMemThreshold) != 0)) return TRUE; #endif return GetModule()->IsEditAndContinueEnabled(); } //******************************************************************************* VOID MethodTableBuilder::AllocAndInitDictionary() { STANDARD_VM_CONTRACT; // Allocate dictionary layout used by all compatible instantiations if (bmtGenerics->fSharedByGenericInstantiations && !bmtGenerics->fContainsGenericVariables) { // We use the number of methods as a heuristic for the number of slots in the dictionary // attached to shared class method tables. // If there are no declared methods then we have no slots, and we will never do any token lookups // // Heuristics // - Classes with a small number of methods (2-3) tend to be more likely to use new slots, // i.e. further methods tend to reuse slots from previous methods. // = treat all classes with only 2-3 methods as if they have an extra method. // - Classes with more generic parameters tend to use more slots. // = multiply by 1.5 for 2 params or more DWORD numMethodsAdjusted = (bmtMethod->dwNumDeclaredNonAbstractMethods == 0) ? 0 : (bmtMethod->dwNumDeclaredNonAbstractMethods < 3) ? 3 : bmtMethod->dwNumDeclaredNonAbstractMethods; _ASSERTE(bmtGenerics->GetNumGenericArgs() != 0); DWORD nTypeFactorBy2 = (bmtGenerics->GetNumGenericArgs() == 1) ? 2 : 3; DWORD estNumTypeSlots = (numMethodsAdjusted * nTypeFactorBy2 + 2) / 3; // estNumTypeSlots should fit in a WORD as long as we maintain the current // limit on the number of methods in a type (approx 2^16). _ASSERTE(FitsIn<WORD>(estNumTypeSlots)); WORD numTypeSlots = static_cast<WORD>(estNumTypeSlots); if (numTypeSlots > 0) { // Dictionary layout is an optional field on EEClass, so ensure the optional field descriptor has // been allocated. EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); GetHalfBakedClass()->SetDictionaryLayout(DictionaryLayout::Allocate(numTypeSlots, bmtAllocator, m_pAllocMemTracker)); } } } //******************************************************************************* // // Used by BuildMethodTable // // Compute the set of interfaces which are equivalent. Duplicates in the interface map // will be placed into different equivalence sets unless they participate in type equivalence. // This is a bit odd, but it turns out we only need to know about equivalence classes if // there is type equivalence involved in the interface, and not detecting, or detecting equivalence // in other cases does not result in differing behavior. // // By restricting the reasons for having equivalence matches, we reduce the algorithm from one which // is O(n*n) best case to an algorithm which will typically execute something more like O(m*n) best case time // where m is the number of generic interface (although still n*n in worst case). The assumption is that equivalent // and generic interfaces are relatively rare. VOID MethodTableBuilder::ComputeInterfaceMapEquivalenceSet() { STANDARD_VM_CONTRACT; UINT32 nextEquivalenceSet = 1; for (DWORD dwCurInterface = 0; dwCurInterface < bmtInterface->dwInterfaceMapSize; dwCurInterface++) { // Keep track of the current interface we are trying to calculate the equivalence set of bmtInterfaceEntry * pCurItfEntry = &bmtInterface->pInterfaceMap[dwCurInterface]; bmtRTType * pCurItf = pCurItfEntry->GetInterfaceType(); MethodTable * pCurItfMT = pCurItf->GetMethodTable(); const Substitution * pCurItfSubst = &pCurItf->GetSubstitution(); UINT32 currentEquivalenceSet = 0; // Only interfaces with type equivalence, or that are generic need to be compared for equivalence if (pCurItfMT->HasTypeEquivalence() || pCurItfMT->HasInstantiation()) { for (DWORD dwCurInterfaceCompare = 0; dwCurInterfaceCompare < dwCurInterface; dwCurInterfaceCompare++) { // Keep track of the current interface we are trying to calculate the equivalence set of bmtInterfaceEntry * pCompareItfEntry = &bmtInterface->pInterfaceMap[dwCurInterfaceCompare]; bmtRTType * pCompareItf = pCompareItfEntry->GetInterfaceType(); MethodTable * pCompareItfMT = pCompareItf->GetMethodTable(); const Substitution * pCompareItfSubst = &pCompareItf->GetSubstitution(); // Only interfaces with type equivalence, or that are generic need to be compared for equivalence if (pCompareItfMT->HasTypeEquivalence() || pCompareItfMT->HasInstantiation()) { if (MetaSig::CompareTypeDefsUnderSubstitutions(pCurItfMT, pCompareItfMT, pCurItfSubst, pCompareItfSubst, NULL)) { currentEquivalenceSet = pCompareItfEntry->GetInterfaceEquivalenceSet(); // Use the equivalence set of the interface map entry we just found pCurItfEntry->SetInterfaceEquivalenceSet(currentEquivalenceSet, true); // Update the interface map entry we just found to indicate that it is part of an equivalence // set with multiple entries. pCompareItfEntry->SetInterfaceEquivalenceSet(currentEquivalenceSet, true); break; } } } } // If we did not find an equivalent interface above, use the next available equivalence set indicator if (currentEquivalenceSet == 0) { pCurItfEntry->SetInterfaceEquivalenceSet(nextEquivalenceSet, false); nextEquivalenceSet++; } } } //******************************************************************************* // // Used by PlaceInterfaceMethods // // Given an interface in our interface map, and a particular method on that interface, place // a method from the parent types implementation of an equivalent interface into that method // slot. Used by PlaceInterfaceMethods to make equivalent interface implementations have the // same behavior as if the parent interface was implemented on this type instead of an equivalent interface. // // This logic is used in situations such as below. I and I' are equivalent interfaces // //# // class Base : I // {void I.Method() { } } // interface IOther : I' {} // class Derived : IOther // { virtual void Method() {}} // // We should Map I'.Method to Base.Method, not Derived.Method // // Another example // class Base : I // { virtual void Method() } // interface IOther : I' {} // class Derived : IOther // { virtual void Method() {}} // // We should map I'.Method to Base.Method, not Derived.Method // // class Base : I // {void I.Method() { } } // class Derived : I' // {} // // We should Map I'.Method to Base.Method, and not throw TypeLoadException // #ifdef FEATURE_COMINTEROP VOID MethodTableBuilder::PlaceMethodFromParentEquivalentInterfaceIntoInterfaceSlot( bmtInterfaceEntry::InterfaceSlotIterator & itfSlotIt, bmtInterfaceEntry * pCurItfEntry, DispatchMapTypeID ** prgInterfaceDispatchMapTypeIDs, DWORD dwCurInterface) { STANDARD_VM_CONTRACT; bmtRTMethod * pCurItfMethod = itfSlotIt->Decl().AsRTMethod(); if (itfSlotIt->Impl() != INVALID_SLOT_INDEX) { return; } // For every equivalent interface entry that was actually implemented by parent, then look at equivalent method slot on that entry // and if it matches and has a slot implementation, then record and continue for (DWORD dwEquivalentInterface = 0; (dwEquivalentInterface < bmtInterface->dwInterfaceMapSize) && (itfSlotIt->Impl() == INVALID_SLOT_INDEX); dwEquivalentInterface++) { bmtInterfaceEntry * pEquivItfEntry = &bmtInterface->pInterfaceMap[dwEquivalentInterface]; bmtRTType * pEquivItf = pEquivItfEntry->GetInterfaceType(); MethodTable * pEquivItfMT = pEquivItf->GetMethodTable(); const Substitution * pEquivItfSubst = &pEquivItf->GetSubstitution(); if (pEquivItfEntry->GetInterfaceEquivalenceSet() != pCurItfEntry->GetInterfaceEquivalenceSet()) { // Not equivalent continue; } if (!pEquivItfEntry->IsImplementedByParent()) { // Not implemented by parent continue; } WORD slot = static_cast<WORD>(itfSlotIt.CurrentIndex()); BOOL fFound = FALSE; // Determine which slot on the equivalent interface would map to the slot we are attempting to fill // in with an implementation. WORD otherMTSlot = GetEquivalentMethodSlot(pCurItfEntry->GetInterfaceType()->GetMethodTable(), pEquivItfEntry->GetInterfaceType()->GetMethodTable(), slot, &fFound); if (fFound) { UINT32 cInterfaceDuplicates; if (*prgInterfaceDispatchMapTypeIDs == NULL) { *prgInterfaceDispatchMapTypeIDs = new (GetStackingAllocator()) DispatchMapTypeID[bmtInterface->dwInterfaceMapSize]; } // Compute all TypeIDs for this interface (all duplicates in the interface map) ComputeDispatchMapTypeIDs( pEquivItfMT, pEquivItfSubst, *prgInterfaceDispatchMapTypeIDs, bmtInterface->dwInterfaceMapSize, &cInterfaceDuplicates); // There cannot be more duplicates than number of interfaces _ASSERTE(cInterfaceDuplicates <= bmtInterface->dwInterfaceMapSize); _ASSERTE(cInterfaceDuplicates > 0); // NOTE: This override does not cache the resulting MethodData object MethodTable::MethodDataWrapper hParentData; hParentData = MethodTable::GetMethodData( *prgInterfaceDispatchMapTypeIDs, cInterfaceDuplicates, pEquivItfMT, GetParentMethodTable()); SLOT_INDEX slotIndex = static_cast<SLOT_INDEX> (hParentData->GetImplSlotNumber(static_cast<UINT32>(otherMTSlot))); // Interface is implemented on parent abstract type and this particular slot was not implemented if (slotIndex == INVALID_SLOT_INDEX) { continue; } bmtMethodSlot & parentSlotImplementation = (*bmtParent->pSlotTable)[slotIndex]; bmtMethodHandle & parentImplementation = parentSlotImplementation.Impl(); // Check to verify that the equivalent slot on the equivalent interface actually matches the method // on the current interface. If not, then the slot is not a match, and we should search other interfaces // for an implementation of the method. if (!MethodSignature::SignaturesEquivalent(pCurItfMethod->GetMethodSignature(), parentImplementation.GetMethodSignature(), FALSE)) { continue; } itfSlotIt->Impl() = slotIndex; MethodDesc * pMD = hParentData->GetImplMethodDesc(static_cast<UINT32>(otherMTSlot)); DispatchMapTypeID dispatchMapTypeID = DispatchMapTypeID::InterfaceClassID(dwCurInterface); bmtVT->pDispatchMapBuilder->InsertMDMapping( dispatchMapTypeID, static_cast<UINT32>(itfSlotIt.CurrentIndex()), pMD, FALSE); } } } // MethodTableBuilder::PlaceMethodFromParentEquivalentInterfaceIntoInterfaceSlot #endif // FEATURE_COMINTEROP //******************************************************************************* // // Used by BuildMethodTable // // // If we are a class, then there may be some unplaced vtable methods (which are by definition // interface methods, otherwise they'd already have been placed). Place as many unplaced methods // as possible, in the order preferred by interfaces. However, do not allow any duplicates - once // a method has been placed, it cannot be placed again - if we are unable to neatly place an interface, // create duplicate slots for it starting at dwCurrentDuplicateVtableSlot. Fill out the interface // map for all interfaces as they are placed. // // If we are an interface, then all methods are already placed. Fill out the interface map for // interfaces as they are placed. // // BEHAVIOUR (based on Partition II: 11.2, not including MethodImpls) // C is current class, P is a parent class, I is the interface being implemented // // FOREACH interface I implemented by this class C // FOREACH method I::M // IF I is EXPLICITLY implemented by C // IF some method C::M matches I::M // USE C::M as implementation for I::M // ELIF we inherit a method P::M that matches I::M // USE P::M as implementation for I::M // ENDIF // ELSE // IF I::M lacks implementation // IF some method C::M matches I::M // USE C::M as implementation for I::M // ELIF we inherit a method P::M that matches I::M // USE P::M as implementation for I::M // ELIF I::M was implemented by the parent type with method Parent::M // USE Parent::M for the implementation of I::M // VSD does this by default if we really // // implemented I on the parent type, but // // equivalent interfaces need to make this // // explicit // ENDIF // ENDIF // ENDIF // ENDFOR // ENDFOR // VOID MethodTableBuilder::PlaceInterfaceMethods() { STANDARD_VM_CONTRACT; BOOL fParentInterface; DispatchMapTypeID * rgInterfaceDispatchMapTypeIDs = NULL; for (DWORD dwCurInterface = 0; dwCurInterface < bmtInterface->dwInterfaceMapSize; dwCurInterface++) { // Default to being implemented by the current class fParentInterface = FALSE; // Keep track of the current interface we are trying to place bmtInterfaceEntry * pCurItfEntry = &bmtInterface->pInterfaceMap[dwCurInterface]; bmtRTType * pCurItf = pCurItfEntry->GetInterfaceType(); MethodTable * pCurItfMT = pCurItf->GetMethodTable(); const Substitution * pCurItfSubst = &pCurItf->GetSubstitution(); // // There are three reasons why an interface could be in the implementation list // 1. Inherited from parent // 2. Explicitly declared in the implements list // 3. Implicitly declared through the implements list of an explicitly declared interface // // The reason these cases need to be distinguished is that an inherited interface that is // also explicitly redeclared in the implements list must be fully reimplemented using the // virtual methods of this type (thereby using matching methods in this type that may have // a different slot than an inherited method, but hidden it by name & sig); however all // implicitly redeclared interfaces should not be fully reimplemented if they were also // inherited from the parent. // // Example: // interface I1 : I2 // class A : I1 // class B : A, I1 // // In this example I1 must be fully reimplemented on B, but B can inherit the implementation // of I2. // if (pCurItfEntry->IsImplementedByParent()) { if (!pCurItfEntry->IsDeclaredOnType()) { fParentInterface = TRUE; } } bool fEquivalentInterfaceImplementedByParent = pCurItfEntry->IsImplementedByParent(); bool fEquivalentInterfaceDeclaredOnType = pCurItfEntry->IsDeclaredOnType(); if (pCurItfEntry->InEquivalenceSetWithMultipleEntries()) { for (DWORD dwEquivalentInterface = 0; dwEquivalentInterface < bmtInterface->dwInterfaceMapSize; dwEquivalentInterface++) { bmtInterfaceEntry * pEquivItfEntry = &bmtInterface->pInterfaceMap[dwEquivalentInterface]; if (pEquivItfEntry->GetInterfaceEquivalenceSet() != pCurItfEntry->GetInterfaceEquivalenceSet()) { // Not equivalent continue; } if (pEquivItfEntry->IsImplementedByParent()) { fEquivalentInterfaceImplementedByParent = true; } if (pEquivItfEntry->IsDeclaredOnType()) { fEquivalentInterfaceDeclaredOnType = true; } if (fEquivalentInterfaceDeclaredOnType && fEquivalentInterfaceImplementedByParent) break; } } bool fParentInterfaceEquivalent = fEquivalentInterfaceImplementedByParent && !fEquivalentInterfaceDeclaredOnType; CONSISTENCY_CHECK(!fParentInterfaceEquivalent || HasParent()); if (fParentInterfaceEquivalent) { // In the case the fParentInterface is TRUE, virtual overrides are enough and the interface // does not have to be explicitly (re)implemented. The only exception is if the parent is // abstract, in which case an inherited interface may not be fully implemented yet. // This is an optimization that allows us to skip the more expensive slot filling in below. // Note that the check here is for fParentInterface and not for fParentInterfaceEquivalent. // This is necessary as if the interface is not actually implemented on the parent type we will // need to fill in the slot table below. if (fParentInterface && !GetParentMethodTable()->IsAbstract()) { continue; } { // We will reach here in two cases. // 1 .The parent is abstract and the interface has been declared on the parent, // and possibly partially implemented, so we need to populate the // bmtInterfaceSlotImpl table for this interface with the implementation slot // information. // 2 .The the interface has not been declared on the parent, // but an equivalent interface has been. So we need to populate the // bmtInterfaceSlotImpl table for this interface with the implementation slot // information from one of the parent equivalent interfaces. We may or may not // find implementations for all of the methods on the interface on the parent type. // The parent type may or may not be abstract. MethodTable::MethodDataWrapper hParentData; CONSISTENCY_CHECK(CheckPointer(GetParentMethodTable())); if (rgInterfaceDispatchMapTypeIDs == NULL) { rgInterfaceDispatchMapTypeIDs = new (GetStackingAllocator()) DispatchMapTypeID[bmtInterface->dwInterfaceMapSize]; } if (pCurItfEntry->IsImplementedByParent()) { UINT32 cInterfaceDuplicates; // Compute all TypeIDs for this interface (all duplicates in the interface map) ComputeDispatchMapTypeIDs( pCurItfMT, pCurItfSubst, rgInterfaceDispatchMapTypeIDs, bmtInterface->dwInterfaceMapSize, &cInterfaceDuplicates); // There cannot be more duplicates than number of interfaces _ASSERTE(cInterfaceDuplicates <= bmtInterface->dwInterfaceMapSize); _ASSERTE(cInterfaceDuplicates > 0); //#InterfaceMap_UseParentInterfaceImplementations // We rely on the fact that interface map of parent type is subset of this type (incl. // duplicates), see code:#InterfaceMap_SupersetOfParent // NOTE: This override does not cache the resulting MethodData object hParentData = MethodTable::GetMethodData( rgInterfaceDispatchMapTypeIDs, cInterfaceDuplicates, pCurItfMT, GetParentMethodTable()); bmtInterfaceEntry::InterfaceSlotIterator itfSlotIt = pCurItfEntry->IterateInterfaceSlots(GetStackingAllocator()); for (; !itfSlotIt.AtEnd(); itfSlotIt.Next()) { itfSlotIt->Impl() = static_cast<SLOT_INDEX> (hParentData->GetImplSlotNumber(static_cast<UINT32>(itfSlotIt.CurrentIndex()))); } } #ifdef FEATURE_COMINTEROP else { // Iterate through the methods on the interface, and if they have a slot which was filled in // on an equivalent interface inherited from the parent fill in the appropriate slot. // This code path is only used when there is an implicit implementation of an interface // that was not implemented on a parent type, but there was an equivalent interface implemented // on a parent type. bmtInterfaceEntry::InterfaceSlotIterator itfSlotIt = pCurItfEntry->IterateInterfaceSlots(GetStackingAllocator()); for (; !itfSlotIt.AtEnd(); itfSlotIt.Next()) { PlaceMethodFromParentEquivalentInterfaceIntoInterfaceSlot(itfSlotIt, pCurItfEntry, &rgInterfaceDispatchMapTypeIDs, dwCurInterface); } } #endif // FEATURE_COMINTEROP } } // For each method declared in this interface bmtInterfaceEntry::InterfaceSlotIterator itfSlotIt = pCurItfEntry->IterateInterfaceSlots(GetStackingAllocator()); for (; !itfSlotIt.AtEnd(); ++itfSlotIt) { if (fParentInterfaceEquivalent) { if (itfSlotIt->Impl() != INVALID_SLOT_INDEX) { // If this interface is not explicitly declared on this class, and the interface slot has already been // given an implementation, then the only way to provide a new implementation is through an override // or through a MethodImpl. This is necessary in addition to the continue statement before this for // loop because an abstract interface can still have a partial implementation and it is necessary to // skip those interface slots that have already been satisfied. continue; } } BOOL fFoundMatchInBuildingClass = FALSE; bmtInterfaceSlotImpl & curItfSlot = *itfSlotIt; bmtRTMethod * pCurItfMethod = curItfSlot.Decl().AsRTMethod(); const MethodSignature & curItfMethodSig = pCurItfMethod->GetMethodSignature(); // // First, try to find the method explicitly declared in our class // DeclaredMethodIterator methIt(*this); while (methIt.Next()) { // Note that non-publics can legally be exposed via an interface, but only // through methodImpls. if (IsMdVirtual(methIt.Attrs()) && IsMdPublic(methIt.Attrs())) { #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(methIt.Name())) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", methIt.Name())); #endif // _DEBUG if (pCurItfMethod->GetMethodSignature().Equivalent(methIt->GetMethodSignature())) { fFoundMatchInBuildingClass = TRUE; curItfSlot.Impl() = methIt->GetSlotIndex(); DispatchMapTypeID dispatchMapTypeID = DispatchMapTypeID::InterfaceClassID(dwCurInterface); bmtVT->pDispatchMapBuilder->InsertMDMapping( dispatchMapTypeID, static_cast<UINT32>(itfSlotIt.CurrentIndex()), methIt->GetMethodDesc(), FALSE); break; } } } // end ... try to find method // // The ECMA CLR spec states that a type will inherit interface implementations // and that explicit re-declaration of an inherited interface will try to match // only newslot methods with methods in the re-declared interface (note that // this also takes care of matching against unsatisfied interface methods in // the abstract parent type scenario). // // So, if the interface was not declared on a parent and we haven't found a // newslot method declared on this type as a match, search all remaining // public virtual methods (including overrides declared on this type) for a // match. // // Please see bug VSW577403 and VSW593884 for details of this breaking change. // if (!fFoundMatchInBuildingClass && !fEquivalentInterfaceImplementedByParent) { if (HasParent()) { // Iterate backward through the parent's method table. This is important to // find the most derived method. bmtParentInfo::Iterator parentMethodIt = bmtParent->IterateSlots(); parentMethodIt.ResetToEnd(); while (parentMethodIt.Prev()) { bmtRTMethod * pCurParentMethod = parentMethodIt->Decl().AsRTMethod(); DWORD dwAttrs = pCurParentMethod->GetDeclAttrs(); if (!IsMdVirtual(dwAttrs) || !IsMdPublic(dwAttrs)) { // Only match mdPublic mdVirtual methods for interface implementation continue; } if (curItfMethodSig.Equivalent(pCurParentMethod->GetMethodSignature())) { fFoundMatchInBuildingClass = TRUE; curItfSlot.Impl() = pCurParentMethod->GetSlotIndex(); DispatchMapTypeID dispatchMapTypeID = DispatchMapTypeID::InterfaceClassID(dwCurInterface); bmtVT->pDispatchMapBuilder->InsertMDMapping( dispatchMapTypeID, static_cast<UINT32>(itfSlotIt.CurrentIndex()), pCurParentMethod->GetMethodDesc(), FALSE); break; } } // end ... try to find parent method } } // For type equivalent interfaces that had an equivalent interface implemented by their parent // and where the previous logic to fill in the method based on the virtual mappings on the type have // failed, we should attempt to get the mappings from the equivalent interfaces declared on parent types // of the type we are currently building. #ifdef FEATURE_COMINTEROP if (!fFoundMatchInBuildingClass && fEquivalentInterfaceImplementedByParent && !pCurItfEntry->IsImplementedByParent()) { PlaceMethodFromParentEquivalentInterfaceIntoInterfaceSlot(itfSlotIt, pCurItfEntry, &rgInterfaceDispatchMapTypeIDs, dwCurInterface); } #endif } } } // MethodTableBuilder::PlaceInterfaceMethods //******************************************************************************* // // Used by BuildMethodTable // // Place static fields // VOID MethodTableBuilder::PlaceRegularStaticFields() { STANDARD_VM_CONTRACT; DWORD i; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Placing statics for %s\n", this->GetDebugClassName())); // // Place gc refs and value types first, as they need to have handles created for them. // (Placing them together allows us to easily create the handles when Restoring the class, // and when initializing new DLS for the class.) // DWORD dwCumulativeStaticFieldPos = 0 ; DWORD dwCumulativeStaticGCFieldPos = 0; DWORD dwCumulativeStaticBoxFieldPos = 0; // We don't need to do any calculations for the gc refs or valuetypes, as they're // guaranteed to be aligned in ModuleStaticsInfo bmtFP->NumRegularStaticFieldsOfSize[LOG2_PTRSIZE] -= bmtFP->NumRegularStaticGCBoxedFields + bmtFP->NumRegularStaticGCPointerFields; // Place fields, largest first, padding so that each group is aligned to its natural size for (i = MAX_LOG2_PRIMITIVE_FIELD_SIZE; (signed int) i >= 0; i--) { // Fields of this size start at the next available location bmtFP->RegularStaticFieldStart[i] = dwCumulativeStaticFieldPos; dwCumulativeStaticFieldPos += (bmtFP->NumRegularStaticFieldsOfSize[i] << i); // Reset counters for the loop after this one bmtFP->NumRegularStaticFieldsOfSize[i] = 0; } if (dwCumulativeStaticFieldPos > FIELD_OFFSET_LAST_REAL_OFFSET) BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); DWORD dwNumHandleStatics = bmtFP->NumRegularStaticGCBoxedFields + bmtFP->NumRegularStaticGCPointerFields; if (!FitsIn<WORD>(dwNumHandleStatics)) { // Overflow. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } SetNumHandleRegularStatics(static_cast<WORD>(dwNumHandleStatics)); if (!FitsIn<WORD>(bmtFP->NumRegularStaticGCBoxedFields)) { // Overflow. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } SetNumBoxedRegularStatics(static_cast<WORD>(bmtFP->NumRegularStaticGCBoxedFields)); // Tell the module to give us the offsets we'll be using and commit space for us // if necessary DWORD dwNonGCOffset, dwGCOffset; GetModule()->GetOffsetsForRegularStaticData(bmtInternal->pType->GetTypeDefToken(), bmtProp->fDynamicStatics, GetNumHandleRegularStatics(), dwCumulativeStaticFieldPos, &dwGCOffset, &dwNonGCOffset); // Allocate boxed statics first ("x << LOG2_PTRSIZE" is equivalent to "x * sizeof(void *)") dwCumulativeStaticGCFieldPos = bmtFP->NumRegularStaticGCBoxedFields<<LOG2_PTRSIZE; FieldDesc *pFieldDescList = GetApproxFieldDescListRaw(); // Place static fields for (i = 0; i < bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields; i++) { FieldDesc * pCurField = &pFieldDescList[bmtEnumFields->dwNumInstanceFields+i]; DWORD dwLog2FieldSize = (DWORD)(DWORD_PTR&)pCurField->m_pMTOfEnclosingClass; // log2(field size) DWORD dwOffset = (DWORD) pCurField->m_dwOffset; // offset or type of field switch (dwOffset) { case FIELD_OFFSET_UNPLACED_GC_PTR: // Place GC reference static field pCurField->SetOffset(dwCumulativeStaticGCFieldPos + dwGCOffset); dwCumulativeStaticGCFieldPos += 1<<LOG2_PTRSIZE; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Field placed at GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; case FIELD_OFFSET_VALUE_CLASS: // Place boxed GC reference static field pCurField->SetOffset(dwCumulativeStaticBoxFieldPos + dwGCOffset); dwCumulativeStaticBoxFieldPos += 1<<LOG2_PTRSIZE; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Field placed at GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; case FIELD_OFFSET_UNPLACED: // Place non-GC static field pCurField->SetOffset(bmtFP->RegularStaticFieldStart[dwLog2FieldSize] + (bmtFP->NumRegularStaticFieldsOfSize[dwLog2FieldSize] << dwLog2FieldSize) + dwNonGCOffset); bmtFP->NumRegularStaticFieldsOfSize[dwLog2FieldSize]++; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Field placed at non GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; default: // RVA field break; } LOG((LF_CLASSLOADER, LL_INFO1000000, "Offset of %s: %i\n", pCurField->m_debugName, pCurField->GetOffset_NoLogging())); } if (bmtProp->fDynamicStatics) { _ASSERTE(dwNonGCOffset == 0 || // no statics at all dwNonGCOffset == OFFSETOF__DomainLocalModule__NormalDynamicEntry__m_pDataBlob); // We need space to point to the GC statics bmtProp->dwNonGCRegularStaticFieldBytes = dwCumulativeStaticFieldPos; } else { bmtProp->dwNonGCRegularStaticFieldBytes = 0; // Non dynamics shouldnt be using this } LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Static field bytes needed (0 is normal for non dynamic case)%i\n", bmtProp->dwNonGCRegularStaticFieldBytes)); } VOID MethodTableBuilder::PlaceThreadStaticFields() { STANDARD_VM_CONTRACT; DWORD i; LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: Placing ThreadStatics for %s\n", this->GetDebugClassName())); // // Place gc refs and value types first, as they need to have handles created for them. // (Placing them together allows us to easily create the handles when Restoring the class, // and when initializing new DLS for the class.) // DWORD dwCumulativeStaticFieldPos = 0 ; DWORD dwCumulativeStaticGCFieldPos = 0; DWORD dwCumulativeStaticBoxFieldPos = 0; // We don't need to do any calculations for the gc refs or valuetypes, as they're // guaranteed to be aligned in ModuleStaticsInfo bmtFP->NumThreadStaticFieldsOfSize[LOG2_PTRSIZE] -= bmtFP->NumThreadStaticGCBoxedFields + bmtFP->NumThreadStaticGCPointerFields; // Place fields, largest first, padding so that each group is aligned to its natural size for (i = MAX_LOG2_PRIMITIVE_FIELD_SIZE; (signed int) i >= 0; i--) { // Fields of this size start at the next available location bmtFP->ThreadStaticFieldStart[i] = dwCumulativeStaticFieldPos; dwCumulativeStaticFieldPos += (bmtFP->NumThreadStaticFieldsOfSize[i] << i); // Reset counters for the loop after this one bmtFP->NumThreadStaticFieldsOfSize[i] = 0; } if (dwCumulativeStaticFieldPos > FIELD_OFFSET_LAST_REAL_OFFSET) BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); DWORD dwNumHandleStatics = bmtFP->NumThreadStaticGCBoxedFields + bmtFP->NumThreadStaticGCPointerFields; if (!FitsIn<WORD>(dwNumHandleStatics)) { // Overflow. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } SetNumHandleThreadStatics(static_cast<WORD>(dwNumHandleStatics)); if (!FitsIn<WORD>(bmtFP->NumThreadStaticGCBoxedFields)) { // Overflow. BuildMethodTableThrowException(IDS_EE_TOOMANYFIELDS); } SetNumBoxedThreadStatics(static_cast<WORD>(bmtFP->NumThreadStaticGCBoxedFields)); // Tell the module to give us the offsets we'll be using and commit space for us // if necessary DWORD dwNonGCOffset, dwGCOffset; GetModule()->GetOffsetsForThreadStaticData(bmtInternal->pType->GetTypeDefToken(), bmtProp->fDynamicStatics, GetNumHandleThreadStatics(), dwCumulativeStaticFieldPos, &dwGCOffset, &dwNonGCOffset); // Allocate boxed statics first ("x << LOG2_PTRSIZE" is equivalent to "x * sizeof(void *)") dwCumulativeStaticGCFieldPos = bmtFP->NumThreadStaticGCBoxedFields<<LOG2_PTRSIZE; FieldDesc *pFieldDescList = GetHalfBakedClass()->GetFieldDescList(); // Place static fields for (i = 0; i < bmtEnumFields->dwNumThreadStaticFields; i++) { FieldDesc * pCurField = &pFieldDescList[bmtEnumFields->dwNumInstanceFields + bmtEnumFields->dwNumStaticFields - bmtEnumFields->dwNumThreadStaticFields + i]; DWORD dwLog2FieldSize = (DWORD)(DWORD_PTR&)pCurField->m_pMTOfEnclosingClass; // log2(field size) DWORD dwOffset = (DWORD) pCurField->m_dwOffset; // offset or type of field switch (dwOffset) { case FIELD_OFFSET_UNPLACED_GC_PTR: // Place GC reference static field pCurField->SetOffset(dwCumulativeStaticGCFieldPos + dwGCOffset); dwCumulativeStaticGCFieldPos += 1<<LOG2_PTRSIZE; LOG((LF_CLASSLOADER, LL_INFO10000, "THREAD STATICS: Field placed at GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; case FIELD_OFFSET_VALUE_CLASS: // Place boxed GC reference static field pCurField->SetOffset(dwCumulativeStaticBoxFieldPos + dwGCOffset); dwCumulativeStaticBoxFieldPos += 1<<LOG2_PTRSIZE; LOG((LF_CLASSLOADER, LL_INFO10000, "THREAD STATICS: Field placed at GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; case FIELD_OFFSET_UNPLACED: // Place non-GC static field pCurField->SetOffset(bmtFP->ThreadStaticFieldStart[dwLog2FieldSize] + (bmtFP->NumThreadStaticFieldsOfSize[dwLog2FieldSize] << dwLog2FieldSize) + dwNonGCOffset); bmtFP->NumThreadStaticFieldsOfSize[dwLog2FieldSize]++; LOG((LF_CLASSLOADER, LL_INFO10000, "THREAD STATICS: Field placed at non GC offset 0x%x\n", pCurField->GetOffset_NoLogging())); break; default: // RVA field break; } LOG((LF_CLASSLOADER, LL_INFO1000000, "Offset of %s: %i\n", pCurField->m_debugName, pCurField->GetOffset_NoLogging())); } if (bmtProp->fDynamicStatics) { _ASSERTE(dwNonGCOffset == 0 || // no thread statics at all dwNonGCOffset == OFFSETOF__ThreadLocalModule__DynamicEntry__m_pDataBlob); // We need space to point to the GC statics bmtProp->dwNonGCThreadStaticFieldBytes = dwCumulativeStaticFieldPos; } else { bmtProp->dwNonGCThreadStaticFieldBytes = 0; // Non dynamics shouldnt be using this } LOG((LF_CLASSLOADER, LL_INFO10000, "STATICS: ThreadStatic field bytes needed (0 is normal for non dynamic case)%i\n", bmtProp->dwNonGCThreadStaticFieldBytes)); } //******************************************************************************* // // Used by BuildMethodTable // // Place instance fields // VOID MethodTableBuilder::PlaceInstanceFields(MethodTable ** pByValueClassCache) { STANDARD_VM_CONTRACT; DWORD i; //=============================================================== // BEGIN: Place instance fields //=============================================================== FieldDesc *pFieldDescList = GetHalfBakedClass()->GetFieldDescList(); DWORD dwCumulativeInstanceFieldPos; // Instance fields start right after the parent dwCumulativeInstanceFieldPos = HasParent() ? GetParentMethodTable()->GetNumInstanceFieldBytes() : 0; DWORD dwOffsetBias = 0; #ifdef FEATURE_64BIT_ALIGNMENT // On platforms where the alignment of 64-bit primitives is a requirement (but we're not guaranteed // this implicitly by the GC) field offset 0 is actually not 8-byte aligned in reference classes. // That's because all such platforms are currently 32-bit and the 4-byte MethodTable pointer pushes us // out of alignment. Ideally we'd solve this by arranging to have the object header allocated at a // 4-byte offset from an 8-byte boundary, but this is difficult to achieve for objects allocated on // the large object heap (which actually requires headers to be 8-byte aligned). // // So we adjust dwCumulativeInstanceFieldPos to account for the MethodTable* and our alignment // calculations will automatically adjust and add padding as necessary. We need to remove this // adjustment when setting the field offset in the field desc, however, since the rest of the system // expects that value to not include the MethodTable*. // // This happens only for reference classes: value type field 0 really does lie at offset 0 for unboxed // value types. We deal with boxed value types by allocating their headers mis-aligned (luckily for us // value types can never get large enough to allocate on the LOH). if (!IsValueClass()) { dwOffsetBias = TARGET_POINTER_SIZE; dwCumulativeInstanceFieldPos += dwOffsetBias; } #endif // FEATURE_64BIT_ALIGNMENT #ifdef FEATURE_READYTORUN if (NeedsAlignedBaseOffset()) { // READYTORUN: FUTURE: Use the minimum possible alignment, reduce padding when inheriting within same bubble DWORD dwAlignment = DATA_ALIGNMENT; #ifdef FEATURE_64BIT_ALIGNMENT if (GetHalfBakedClass()->IsAlign8Candidate()) dwAlignment = 8; #endif dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, dwAlignment); } #endif // FEATURE_READYTORUN // place small fields first if the parent have a number of field bytes that is not aligned if (!IS_ALIGNED(dwCumulativeInstanceFieldPos, DATA_ALIGNMENT)) { for (i = 0; i < MAX_LOG2_PRIMITIVE_FIELD_SIZE; i++) { DWORD j; if (IS_ALIGNED(dwCumulativeInstanceFieldPos, size_t{ 1 } << (i + 1))) continue; // check whether there are any bigger fields for (j = i + 1; j <= MAX_LOG2_PRIMITIVE_FIELD_SIZE; j++) { if (bmtFP->NumInstanceFieldsOfSize[j] != 0) break; } // nothing to gain if there are no bigger fields // (the subsequent loop will place fields from large to small fields) if (j > MAX_LOG2_PRIMITIVE_FIELD_SIZE) break; // check whether there are any small enough fields for (j = i; (signed int) j >= 0; j--) { if (bmtFP->NumInstanceFieldsOfSize[j] != 0) break; // TODO: since we will refuse to place GC references we should filter them out here. // otherwise the "back-filling" process stops completely. // (PlaceInstanceFields) // the following code would fix the issue (a replacement for the code above this comment): // if (bmtFP->NumInstanceFieldsOfSize[j] != 0 && // (j != LOG2SLOT || bmtFP->NumInstanceFieldsOfSize[j] > bmtFP->NumInstanceGCPointerFields)) // { // break; // } } // nothing to play with if there are no smaller fields if ((signed int) j < 0) break; // eventually go back and use the smaller field as filling i = j; CONSISTENCY_CHECK(bmtFP->NumInstanceFieldsOfSize[i] != 0); j = bmtFP->FirstInstanceFieldOfSize[i]; // Avoid reordering of gcfields if (i == LOG2SLOT) { for ( ; j < bmtEnumFields->dwNumInstanceFields; j++) { if ((pFieldDescList[j].GetOffset_NoLogging() == FIELD_OFFSET_UNPLACED) && ((DWORD_PTR&)pFieldDescList[j].m_pMTOfEnclosingClass == (size_t)i)) break; } // out of luck - can't reorder gc fields if (j >= bmtEnumFields->dwNumInstanceFields) break; } // Place the field dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, size_t{ 1 } << i); pFieldDescList[j].SetOffset(dwCumulativeInstanceFieldPos - dwOffsetBias); dwCumulativeInstanceFieldPos += (1 << i); // We've placed this field now, so there is now one less of this size field to place if (--bmtFP->NumInstanceFieldsOfSize[i] == 0) continue; // We are done in this round if we haven't picked the first field if (bmtFP->FirstInstanceFieldOfSize[i] != j) continue; // Update FirstInstanceFieldOfSize[i] to point to the next such field for (j = j+1; j < bmtEnumFields->dwNumInstanceFields; j++) { // The log of the field size is stored in the method table if ((DWORD_PTR&)pFieldDescList[j].m_pMTOfEnclosingClass == (size_t)i) { bmtFP->FirstInstanceFieldOfSize[i] = j; break; } } _ASSERTE(j < bmtEnumFields->dwNumInstanceFields); } } // Place fields, largest first for (i = MAX_LOG2_PRIMITIVE_FIELD_SIZE; (signed int) i >= 0; i--) { if (bmtFP->NumInstanceFieldsOfSize[i] == 0) continue; // Align instance fields if we aren't already #if defined(TARGET_X86) && defined(UNIX_X86_ABI) DWORD dwDataAlignment = min(1 << i, DATA_ALIGNMENT); #else DWORD dwDataAlignment = 1 << i; #endif dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, dwDataAlignment); // Fields of this size start at the next available location bmtFP->InstanceFieldStart[i] = dwCumulativeInstanceFieldPos; dwCumulativeInstanceFieldPos += (bmtFP->NumInstanceFieldsOfSize[i] << i); // Reset counters for the loop after this one bmtFP->NumInstanceFieldsOfSize[i] = 0; } // Make corrections to reserve space for GC Pointer Fields // // The GC Pointers simply take up the top part of the region associated // with fields of that size (GC pointers can be 64 bit on certain systems) if (bmtFP->NumInstanceGCPointerFields) { bmtFP->GCPointerFieldStart = bmtFP->InstanceFieldStart[LOG2SLOT] - dwOffsetBias; bmtFP->InstanceFieldStart[LOG2SLOT] = bmtFP->InstanceFieldStart[LOG2SLOT] + (bmtFP->NumInstanceGCPointerFields << LOG2SLOT); bmtFP->NumInstanceGCPointerFields = 0; // reset to zero here, counts up as pointer slots are assigned below } // Place instance fields - be careful not to place any already-placed fields for (i = 0; i < bmtEnumFields->dwNumInstanceFields; i++) { DWORD dwFieldSize = (DWORD)(DWORD_PTR&)pFieldDescList[i].m_pMTOfEnclosingClass; DWORD dwOffset; dwOffset = pFieldDescList[i].GetOffset_NoLogging(); // Don't place already-placed fields if ((dwOffset == FIELD_OFFSET_UNPLACED || dwOffset == FIELD_OFFSET_UNPLACED_GC_PTR || dwOffset == FIELD_OFFSET_VALUE_CLASS)) { if (dwOffset == FIELD_OFFSET_UNPLACED_GC_PTR) { pFieldDescList[i].SetOffset(bmtFP->GCPointerFieldStart + (bmtFP->NumInstanceGCPointerFields << LOG2SLOT)); bmtFP->NumInstanceGCPointerFields++; } else if (pFieldDescList[i].IsByValue() == FALSE) // it's a regular field { pFieldDescList[i].SetOffset(bmtFP->InstanceFieldStart[dwFieldSize] + (bmtFP->NumInstanceFieldsOfSize[dwFieldSize] << dwFieldSize) - dwOffsetBias); bmtFP->NumInstanceFieldsOfSize[dwFieldSize]++; } } } DWORD dwNumGCPointerSeries; // Save Number of pointer series if (bmtFP->NumInstanceGCPointerFields) dwNumGCPointerSeries = bmtParent->NumParentPointerSeries + 1; else dwNumGCPointerSeries = bmtParent->NumParentPointerSeries; bool containsGCPointers = bmtFP->NumInstanceGCPointerFields > 0; // Place by value class fields last // Update the number of GC pointer series // Calculate largest alignment requirement int largestAlignmentRequirement = 1; for (i = 0; i < bmtEnumFields->dwNumInstanceFields; i++) { if (pFieldDescList[i].IsByValue()) { MethodTable * pByValueMT = pByValueClassCache[i]; #if !defined(TARGET_64BIT) && (DATA_ALIGNMENT > 4) if (pByValueMT->GetNumInstanceFieldBytes() >= DATA_ALIGNMENT) { dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, DATA_ALIGNMENT); largestAlignmentRequirement = max(largestAlignmentRequirement, DATA_ALIGNMENT); } else #elif defined(FEATURE_64BIT_ALIGNMENT) if (pByValueMT->RequiresAlign8()) { dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, 8); largestAlignmentRequirement = max(largestAlignmentRequirement, 8); } else #endif // FEATURE_64BIT_ALIGNMENT if (pByValueMT->ContainsPointers()) { // this field type has GC pointers in it, which need to be pointer-size aligned // so do this if it has not been done already dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, TARGET_POINTER_SIZE); largestAlignmentRequirement = max(largestAlignmentRequirement, TARGET_POINTER_SIZE); containsGCPointers = true; } else { int fieldAlignmentRequirement = pByValueMT->GetFieldAlignmentRequirement(); largestAlignmentRequirement = max(largestAlignmentRequirement, fieldAlignmentRequirement); dwCumulativeInstanceFieldPos = (DWORD)ALIGN_UP(dwCumulativeInstanceFieldPos, fieldAlignmentRequirement); } pFieldDescList[i].SetOffset(dwCumulativeInstanceFieldPos - dwOffsetBias); dwCumulativeInstanceFieldPos += pByValueMT->GetNumInstanceFieldBytes(); if (pByValueMT->ContainsPointers()) { // Add pointer series for by-value classes dwNumGCPointerSeries += (DWORD)CGCDesc::GetCGCDescFromMT(pByValueMT)->GetNumSeries(); } } else { // non-value-type fields always require pointer alignment // This does not account for types that are marked IsAlign8Candidate due to 8-byte fields // but that is explicitly handled when we calculate the final alignment for the type. largestAlignmentRequirement = max(largestAlignmentRequirement, TARGET_POINTER_SIZE); } } // Can be unaligned DWORD dwNumInstanceFieldBytes = dwCumulativeInstanceFieldPos - dwOffsetBias; if (IsValueClass()) { // Like C++ we enforce that there can be no 0 length structures. // Thus for a value class with no fields, we 'pad' the length to be 1 if (dwNumInstanceFieldBytes == 0) dwNumInstanceFieldBytes = 1; // The JITs like to copy full machine words, // so if the size is bigger than a void* round it up to minAlign // and if the size is smaller than void* round it up to next power of two unsigned minAlign; #ifdef FEATURE_64BIT_ALIGNMENT if (GetHalfBakedClass()->IsAlign8Candidate()) { minAlign = 8; } else #endif // FEATURE_64BIT_ALIGNMENT if (dwNumInstanceFieldBytes > TARGET_POINTER_SIZE) { minAlign = containsGCPointers ? TARGET_POINTER_SIZE : (unsigned)largestAlignmentRequirement; } else { minAlign = 1; while (minAlign < dwNumInstanceFieldBytes) minAlign *= 2; } if (minAlign != min(dwNumInstanceFieldBytes, TARGET_POINTER_SIZE)) { EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); GetHalfBakedClass()->GetOptionalFields()->m_requiredFieldAlignment = (BYTE)minAlign; GetHalfBakedClass()->SetHasCustomFieldAlignment(); } dwNumInstanceFieldBytes = (dwNumInstanceFieldBytes + minAlign-1) & ~(minAlign-1); } if (dwNumInstanceFieldBytes > FIELD_OFFSET_LAST_REAL_OFFSET) { BuildMethodTableThrowException(IDS_CLASSLOAD_FIELDTOOLARGE); } bmtFP->NumInstanceFieldBytes = dwNumInstanceFieldBytes; bmtFP->NumGCPointerSeries = dwNumGCPointerSeries; //=============================================================== // END: Place instance fields //=============================================================== } //******************************************************************************* // this accesses the field size which is temporarily stored in m_pMTOfEnclosingClass // during class loading. Don't use any other time DWORD MethodTableBuilder::GetFieldSize(FieldDesc *pFD) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; // We should only be calling this while this class is being built. _ASSERTE(GetHalfBakedMethodTable() == 0); BAD_FORMAT_NOTHROW_ASSERT(! pFD->IsByValue() || HasExplicitFieldOffsetLayout()); if (pFD->IsByValue()) return (DWORD)(DWORD_PTR&)(pFD->m_pMTOfEnclosingClass); return (1 << (DWORD)(DWORD_PTR&)(pFD->m_pMTOfEnclosingClass)); } #ifdef UNIX_AMD64_ABI // checks whether the struct is enregisterable. void MethodTableBuilder::SystemVAmd64CheckForPassStructInRegister() { STANDARD_VM_CONTRACT; // This method should be called for valuetypes only _ASSERTE(IsValueClass()); TypeHandle th(GetHalfBakedMethodTable()); if (th.IsTypeDesc()) { // Not an enregisterable managed structure. return; } DWORD totalStructSize = bmtFP->NumInstanceFieldBytes; // If num of bytes for the fields is bigger than CLR_SYSTEMV_MAX_STRUCT_BYTES_TO_PASS_IN_REGISTERS // pass through stack if (totalStructSize > CLR_SYSTEMV_MAX_STRUCT_BYTES_TO_PASS_IN_REGISTERS) { LOG((LF_JIT, LL_EVERYTHING, "**** SystemVAmd64CheckForPassStructInRegister: struct %s is too big to pass in registers (%d bytes)\n", this->GetDebugClassName(), totalStructSize)); return; } const bool useNativeLayout = false; // Iterate through the fields and make sure they meet requirements to pass in registers SystemVStructRegisterPassingHelper helper((unsigned int)totalStructSize); if (GetHalfBakedMethodTable()->ClassifyEightBytes(&helper, 0, 0, useNativeLayout)) { // All the above tests passed. It's registers passed struct! GetHalfBakedMethodTable()->SetRegPassedStruct(); StoreEightByteClassification(&helper); } } // Store the eightbyte classification into the EEClass void MethodTableBuilder::StoreEightByteClassification(SystemVStructRegisterPassingHelper* helper) { EEClass* eeClass = GetHalfBakedMethodTable()->GetClass(); LoaderAllocator* pAllocator = MethodTableBuilder::GetLoaderAllocator(); AllocMemTracker* pamTracker = MethodTableBuilder::GetMemTracker(); EnsureOptionalFieldsAreAllocated(eeClass, pamTracker, pAllocator->GetLowFrequencyHeap()); eeClass->SetEightByteClassification(helper->eightByteCount, helper->eightByteClassifications, helper->eightByteSizes); } #endif // UNIX_AMD64_ABI //--------------------------------------------------------------------------------------- // // make sure that no object fields are overlapped incorrectly and define the // GC pointer series for the class. We are assuming that this class will always be laid out within // its enclosing class by the compiler in such a way that offset 0 will be the correct alignment // for object ref fields so we don't need to try to align it // VOID MethodTableBuilder::HandleExplicitLayout( MethodTable ** pByValueClassCache) { STANDARD_VM_CONTRACT; // Instance slice size is the total size of an instance, and is calculated as // the field whose offset and size add to the greatest number. UINT instanceSliceSize = 0; UINT i; for (i = 0; i < bmtMetaData->cFields; i++) { FieldDesc *pFD = bmtMFDescs->ppFieldDescList[i]; if (pFD == NULL || pFD->IsStatic()) { continue; } UINT fieldExtent = 0; if (!ClrSafeInt<UINT>::addition(pFD->GetOffset_NoLogging(), GetFieldSize(pFD), fieldExtent)) { BuildMethodTableThrowException(COR_E_OVERFLOW); } if (fieldExtent > instanceSliceSize) { instanceSliceSize = fieldExtent; } } CQuickBytes qb; PREFIX_ASSUME(sizeof(BYTE) == 1); BYTE *pFieldLayout = (BYTE*) qb.AllocThrows(instanceSliceSize * sizeof(BYTE)); for (i=0; i < instanceSliceSize; i++) { pFieldLayout[i] = empty; } // Go through each field and look for invalid layout. // (note that we are more permissive than what Ecma allows. We only disallow the minimum set necessary to // close security holes.) // // This is what we implement: // // 1. Verify that every OREF or BYREF is on a valid alignment. // 2. Verify that OREFs only overlap with other OREFs. // 3. Verify that BYREFs only overlap with other BYREFs. // 4. If an OREF does overlap with another OREF, the class is marked unverifiable. // 5. If a BYREF does overlap with another BYREF, the class is marked unverifiable. // 6. If an overlap of any kind occurs, the class will be marked NotTightlyPacked (affects ValueType.Equals()). // char emptyObject[TARGET_POINTER_SIZE]; char isObject[TARGET_POINTER_SIZE]; char isByRef[TARGET_POINTER_SIZE]; for (i = 0; i < TARGET_POINTER_SIZE; i++) { emptyObject[i] = empty; isObject[i] = oref; isByRef[i] = byref; } ExplicitClassTrust explicitClassTrust; UINT valueClassCacheIndex = ((UINT)(-1)); UINT badOffset = 0; FieldDesc * pFD = NULL; for (i = 0; i < bmtMetaData->cFields; i++) { // Note about this loop body: // // This loop is coded to make it as hard as possible to allow a field to be trusted when it shouldn't. // // Every path in this loop body must lead to an explicit decision as to whether the field nonoverlaps, // overlaps in a verifiable fashion, overlaps in a nonverifiable fashion or overlaps in a completely illegal fashion. // // It must call fieldTrust.SetTrust() with the appropriate result. If you don't call it, fieldTrust's destructor // will intentionally default to kNone and mark the entire class illegal. // // If your result is anything but kNone (class is illegal), you must also explicitly "continue" the loop. // There is a "break" at end of this loop body that will abort the loop if you don't do this. And // if you don't finish iterating through all the fields, this function will automatically mark the entire // class illegal. This rule is a vestige of an earlier version of this function. // This object's dtor will aggregate the trust decision for this field into the trust level for the class as a whole. ExplicitFieldTrustHolder fieldTrust(&explicitClassTrust); pFD = bmtMFDescs->ppFieldDescList[i]; if (pFD == NULL || pFD->IsStatic()) { fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); continue; } // "i" indexes all fields, valueClassCacheIndex indexes non-static fields only. Don't get them confused! valueClassCacheIndex++; CorElementType type = pFD->GetFieldType(); if (CorTypeInfo::IsObjRef(type) || CorTypeInfo::IsByRef(type)) { // Check that the field is pointer aligned if ((pFD->GetOffset_NoLogging() & ((ULONG)TARGET_POINTER_SIZE - 1)) != 0) { badOffset = pFD->GetOffset_NoLogging(); fieldTrust.SetTrust(ExplicitFieldTrust::kNone); // If we got here, OREF or BYREF field was not pointer aligned. THROW. break; } // Determine which tag type we are working with. bmtFieldLayoutTag tag; SIZE_T tagBlockSize; void* tagBlock; if (CorTypeInfo::IsObjRef(type)) { tagBlockSize = sizeof(isObject); tagBlock = (void*)isObject; tag = oref; } else { _ASSERTE(CorTypeInfo::IsByRef(type)); tagBlockSize = sizeof(isByRef); tagBlock = (void*)isByRef; tag = byref; } // Check if there is overlap with its own tag type if (memcmp((void *)&pFieldLayout[pFD->GetOffset_NoLogging()], tagBlock, tagBlockSize) == 0) { // If we got here, there is tag type overlap. We permit this but mark the class unverifiable. fieldTrust.SetTrust(ExplicitFieldTrust::kLegal); continue; } // check if typed layout is empty at this point if (memcmp((void *)&pFieldLayout[pFD->GetOffset_NoLogging()], (void *)emptyObject, sizeof(emptyObject)) == 0) { // If we got here, this tag type is overlapping no other fields (yet). // Record that these bytes now contain the current tag type. memset((void *)&pFieldLayout[pFD->GetOffset_NoLogging()], tag, tagBlockSize); fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); continue; } // If we got here, the tag overlaps something else. THROW. badOffset = pFD->GetOffset_NoLogging(); fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; } else { UINT fieldSize; if (!pFD->IsByValue()) { fieldSize = GetFieldSize(pFD); } else { MethodTable *pByValueMT = pByValueClassCache[valueClassCacheIndex]; if (pByValueMT->IsByRefLike() || pByValueMT->ContainsPointers()) { if ((pFD->GetOffset_NoLogging() & ((ULONG)TARGET_POINTER_SIZE - 1)) != 0) { // If we got here, then a ByRefLike valuetype or a valuetype containing an OREF was misaligned. badOffset = pFD->GetOffset_NoLogging(); fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; } ExplicitFieldTrust::TrustLevel trust = CheckValueClassLayout(pByValueMT, &pFieldLayout[pFD->GetOffset_NoLogging()]); fieldTrust.SetTrust(trust); if (trust != ExplicitFieldTrust::kNone) { continue; } else { // If we got here, then an OREF/BYREF inside the valuetype illegally overlapped a non-OREF field. THROW. badOffset = pFD->GetOffset_NoLogging(); break; } break; } // no pointers so fall through to do standard checking fieldSize = pByValueMT->GetNumInstanceFieldBytes(); } // If we got here, we are trying to place a non-OREF (or a valuetype composed of non-OREFs.) // Look for any orefs or byrefs under this field BYTE *loc = NULL; BYTE* currOffset = pFieldLayout + pFD->GetOffset_NoLogging(); BYTE* endOffset = currOffset + fieldSize; for (; currOffset < endOffset; ++currOffset) { if (*currOffset == oref || *currOffset == byref) { loc = currOffset; break; } } if (loc == NULL) { // If we have a nonoref in the range then we are doing an overlay if(memchr((void*)&pFieldLayout[pFD->GetOffset_NoLogging()], nonoref, fieldSize)) { fieldTrust.SetTrust(ExplicitFieldTrust::kVerifiable); } else { fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); } memset((void*)&pFieldLayout[pFD->GetOffset_NoLogging()], nonoref, fieldSize); continue; } // If we got here, we tried to place a non-OREF (or a valuetype composed of non-OREFs) // on top of an OREF/BYREF. THROW. badOffset = (UINT)(loc - pFieldLayout); fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; // anything else is an error } // We have to comment out this assert because otherwise, the compiler refuses to build because the _ASSERT is unreachable // (Thanks for nothing, compiler, that's what the assert is trying to enforce!) But the intent of the assert is correct. //_ASSERTE(!"You aren't supposed to be here. Some path inside the loop body did not execute an explicit break or continue."); // If we got here, some code above failed to execute an explicit "break" or "continue." This is a bug! To be safe, // we will put a catchall "break" here which will cause the typeload to abort (albeit with a probably misleading // error message.) break; } // for(;;) // We only break out of the loop above if we detected an error. if (i < bmtMetaData->cFields || !explicitClassTrust.IsLegal()) { ThrowFieldLayoutError(GetCl(), GetModule(), badOffset, IDS_CLASSLOAD_EXPLICIT_LAYOUT); } if (!explicitClassTrust.IsNonOverLayed()) { SetHasOverLayedFields(); } FindPointerSeriesExplicit(instanceSliceSize, pFieldLayout); // Fixup the offset to include parent as current offsets are relative to instance slice // Could do this earlier, but it's just easier to assume instance relative for most // of the earlier calculations // Instance fields start right after the parent S_UINT32 dwInstanceSliceOffset = S_UINT32(HasParent() ? GetParentMethodTable()->GetNumInstanceFieldBytes() : 0); if (bmtGCSeries->numSeries != 0) { dwInstanceSliceOffset.AlignUp(TARGET_POINTER_SIZE); } if (dwInstanceSliceOffset.IsOverflow()) { // addition overflow or cast truncation BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } S_UINT32 numInstanceFieldBytes = dwInstanceSliceOffset + S_UINT32(instanceSliceSize); if (IsValueClass()) { ULONG clstotalsize; if (FAILED(GetMDImport()->GetClassTotalSize(GetCl(), &clstotalsize))) { clstotalsize = 0; } if (clstotalsize != 0) { // size must be large enough to accomodate layout. If not, we use the layout size instead. if (!numInstanceFieldBytes.IsOverflow() && clstotalsize >= numInstanceFieldBytes.Value()) { numInstanceFieldBytes = S_UINT32(clstotalsize); } } else { // align up to the alignment requirements of the members of this value type. numInstanceFieldBytes.AlignUp(GetLayoutInfo()->m_ManagedLargestAlignmentRequirementOfAllMembers); if (numInstanceFieldBytes.IsOverflow()) { // addition overflow or cast truncation BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } } if (!numInstanceFieldBytes.IsOverflow() && numInstanceFieldBytes.Value() == 0) { // If we calculate a 0-byte size here, we should have also calculated a 0-byte size // in the initial layout algorithm. _ASSERTE(GetLayoutInfo()->IsZeroSized()); numInstanceFieldBytes = S_UINT32(1); } } // The GC requires that all valuetypes containing orefs be sized to a multiple of TARGET_POINTER_SIZE. if (bmtGCSeries->numSeries != 0) { numInstanceFieldBytes.AlignUp(TARGET_POINTER_SIZE); } if (numInstanceFieldBytes.IsOverflow()) { // addition overflow or cast truncation BuildMethodTableThrowException(IDS_CLASSLOAD_GENERAL); } // Set the total size bmtFP->NumInstanceFieldBytes = numInstanceFieldBytes.Value(); for (i = 0; i < bmtMetaData->cFields; i++) { FieldDesc * pTempFD = bmtMFDescs->ppFieldDescList[i]; if ((pTempFD == NULL) || pTempFD->IsStatic()) { continue; } HRESULT hr = pTempFD->SetOffset(pTempFD->GetOffset_NoLogging() + dwInstanceSliceOffset.Value()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } } } // MethodTableBuilder::HandleExplicitLayout //******************************************************************************* // make sure that no object fields are overlapped incorrectly, returns the trust level /*static*/ ExplicitFieldTrust::TrustLevel MethodTableBuilder::CheckValueClassLayout(MethodTable * pMT, BYTE *pFieldLayout) { STANDARD_VM_CONTRACT; // ByRefLike types need to be checked for ByRef fields. if (pMT->IsByRefLike()) return CheckByRefLikeValueClassLayout(pMT, pFieldLayout); // This method assumes there is a GC desc associated with the MethodTable. _ASSERTE(pMT->ContainsPointers()); // Build a layout of the value class (vc). Don't know the sizes of all the fields easily, but // do know (a) vc is already consistent so don't need to check it's overlaps and // (b) size and location of all objectrefs. So build it by setting all non-oref // then fill in the orefs later UINT fieldSize = pMT->GetNumInstanceFieldBytes(); CQuickBytes qb; BYTE *vcLayout = (BYTE*) qb.AllocThrows(fieldSize * sizeof(BYTE)); memset((void*)vcLayout, nonoref, fieldSize); // use pointer series to locate the orefs CGCDesc* map = CGCDesc::GetCGCDescFromMT(pMT); CGCDescSeries *pSeries = map->GetLowestSeries(); for (SIZE_T j = 0; j < map->GetNumSeries(); j++) { CONSISTENCY_CHECK(pSeries <= map->GetHighestSeries()); memset((void*)&vcLayout[pSeries->GetSeriesOffset() - OBJECT_SIZE], oref, pSeries->GetSeriesSize() + pMT->GetBaseSize()); pSeries++; } ExplicitClassTrust explicitClassTrust; for (UINT i=0; i < fieldSize; i++) { ExplicitFieldTrustHolder fieldTrust(&explicitClassTrust); if (vcLayout[i] == oref) { switch (pFieldLayout[i]) { // oref <--> empty case empty: pFieldLayout[i] = oref; fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); break; // oref <--> nonoref case nonoref: fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; // oref <--> oref case oref: fieldTrust.SetTrust(ExplicitFieldTrust::kLegal); break; default: _ASSERTE(!"Can't get here."); } } else if (vcLayout[i] == nonoref) { switch (pFieldLayout[i]) { // nonoref <--> empty case empty: pFieldLayout[i] = nonoref; fieldTrust.SetTrust(ExplicitFieldTrust::kNonOverLayed); break; // nonoref <--> nonoref case nonoref: fieldTrust.SetTrust(ExplicitFieldTrust::kVerifiable); break; // nonoref <--> oref case oref: fieldTrust.SetTrust(ExplicitFieldTrust::kNone); break; default: _ASSERTE(!"Can't get here."); } } else { _ASSERTE(!"Can't get here."); } } return explicitClassTrust.GetTrustLevel(); } //******************************************************************************* // make sure that no byref/object fields are overlapped, returns the trust level /*static*/ ExplicitFieldTrust::TrustLevel MethodTableBuilder::CheckByRefLikeValueClassLayout(MethodTable * pMT, BYTE *pFieldLayout) { STANDARD_VM_CONTRACT; _ASSERTE(pMT->IsByRefLike()); // ByReference<T> is an indication for a byref field, treat it as such. if (pMT->HasSameTypeDefAs(g_pByReferenceClass)) return MarkTagType(pFieldLayout, TARGET_POINTER_SIZE, byref); ExplicitClassTrust explicitClassTrust; ExplicitFieldTrust::TrustLevel trust; ApproxFieldDescIterator fieldIterator(pMT, ApproxFieldDescIterator::INSTANCE_FIELDS); for (FieldDesc *pFD = fieldIterator.Next(); pFD != NULL; pFD = fieldIterator.Next()) { ExplicitFieldTrustHolder fieldTrust(&explicitClassTrust); int fieldStartIndex = pFD->GetOffset(); if (pFD->GetFieldType() == ELEMENT_TYPE_VALUETYPE) { MethodTable *pFieldMT = pFD->GetApproxFieldTypeHandleThrowing().AsMethodTable(); trust = CheckValueClassLayout(pFieldMT, &pFieldLayout[fieldStartIndex]); } else if (pFD->IsObjRef()) { _ASSERTE(fieldStartIndex % TARGET_POINTER_SIZE == 0); trust = MarkTagType(&pFieldLayout[fieldStartIndex], TARGET_POINTER_SIZE, oref); } else if (pFD->IsByRef()) { _ASSERTE(fieldStartIndex % TARGET_POINTER_SIZE == 0); trust = MarkTagType(&pFieldLayout[fieldStartIndex], TARGET_POINTER_SIZE, byref); } else { trust = MarkTagType(&pFieldLayout[fieldStartIndex], pFD->GetSize(), nonoref); } fieldTrust.SetTrust(trust); // Some invalid overlap was detected. if (trust == ExplicitFieldTrust::kNone) break; } return explicitClassTrust.GetTrustLevel(); } //******************************************************************************* // Set the field's tag type and/or detect invalid overlap /*static*/ ExplicitFieldTrust::TrustLevel MethodTableBuilder::MarkTagType(BYTE* field, SIZE_T fieldSize, bmtFieldLayoutTag tagType) { STANDARD_VM_CONTRACT; _ASSERTE(field != NULL); _ASSERTE(fieldSize != 0); _ASSERTE(tagType != empty); ExplicitFieldTrust::TrustLevel trust = ExplicitFieldTrust::kMaxTrust; for (SIZE_T i = 0; i < fieldSize; ++i) { if (field[i] == empty) { // Nothing set for overlap, mark as requested. field[i] = tagType; } else if (field[i] == tagType) { // Only a overlapped nonoref tag is verifiable, all others are simply legal. ExplicitFieldTrust::TrustLevel overlapTrust = tagType == nonoref ? ExplicitFieldTrust::kVerifiable : ExplicitFieldTrust::kLegal; // The ExplicitFieldTrust enum is ranked in descending order of trust. // We always take the computed minimum trust level. trust = min(trust, overlapTrust); } else { // A non-equal overlap was detected. There is no trust for the type. trust = ExplicitFieldTrust::kNone; break; } } return trust; } //******************************************************************************* void MethodTableBuilder::FindPointerSeriesExplicit(UINT instanceSliceSize, BYTE *pFieldLayout) { STANDARD_VM_CONTRACT; // Allocate a structure to track the series. We know that the worst case is a // ref-non-ref-non, and since only ref series are recorded and non-ref series // are skipped, the max number of series is total instance size / 2 / sizeof(ref). // But watch out for the case where we have e.g. an instanceSlizeSize of 4. DWORD sz = (instanceSliceSize + (2 * TARGET_POINTER_SIZE) - 1); bmtGCSeries->pSeries = new bmtGCSeriesInfo::Series[sz/2/ TARGET_POINTER_SIZE]; BYTE *loc = pFieldLayout; BYTE *layoutEnd = pFieldLayout + instanceSliceSize; while (loc < layoutEnd) { // Find the next OREF entry. loc = (BYTE*)memchr((void*)loc, oref, layoutEnd-loc); if (loc == NULL) { break; } // Find the next non-OREF entry BYTE *cur = loc; while(cur < layoutEnd && *cur == oref) { cur++; } // so we have a GC series at loc for cur-loc bytes bmtGCSeries->pSeries[bmtGCSeries->numSeries].offset = (DWORD)(loc - pFieldLayout); bmtGCSeries->pSeries[bmtGCSeries->numSeries].len = (DWORD)(cur - loc); CONSISTENCY_CHECK(IS_ALIGNED(cur - loc, TARGET_POINTER_SIZE)); bmtGCSeries->numSeries++; loc = cur; } // Calculate the total series count including the parent, if a parent exists. bmtFP->NumGCPointerSeries = bmtParent->NumParentPointerSeries + bmtGCSeries->numSeries; } //******************************************************************************* VOID MethodTableBuilder::HandleGCForExplicitLayout() { STANDARD_VM_CONTRACT; MethodTable *pMT = GetHalfBakedMethodTable(); if (bmtFP->NumGCPointerSeries != 0) { pMT->SetContainsPointers(); // Copy the pointer series map from the parent CGCDesc::Init( (PVOID) pMT, bmtFP->NumGCPointerSeries ); if (bmtParent->NumParentPointerSeries != 0) { size_t ParentGCSize = CGCDesc::ComputeSize(bmtParent->NumParentPointerSeries); memcpy( (PVOID) (((BYTE*) pMT) - ParentGCSize), (PVOID) (((BYTE*) GetParentMethodTable()) - ParentGCSize), ParentGCSize - sizeof(size_t) // sizeof(size_t) is the NumSeries count ); } UINT32 dwInstanceSliceOffset = AlignUp(HasParent() ? GetParentMethodTable()->GetNumInstanceFieldBytes() : 0, TARGET_POINTER_SIZE); // Build the pointer series map for this pointers in this instance CGCDescSeries *pSeries = ((CGCDesc*)pMT)->GetLowestSeries(); for (UINT i=0; i < bmtGCSeries->numSeries; i++) { // See gcdesc.h for an explanation of why we adjust by subtracting BaseSize BAD_FORMAT_NOTHROW_ASSERT(pSeries <= CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries()); pSeries->SetSeriesSize( (size_t) bmtGCSeries->pSeries[i].len - (size_t) pMT->GetBaseSize() ); pSeries->SetSeriesOffset(bmtGCSeries->pSeries[i].offset + OBJECT_SIZE + dwInstanceSliceOffset); pSeries++; } // Adjust the inherited series - since the base size has increased by "# new field instance bytes", we need to // subtract that from all the series (since the series always has BaseSize subtracted for it - see gcdesc.h) CGCDescSeries *pHighest = CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries(); while (pSeries <= pHighest) { CONSISTENCY_CHECK(CheckPointer(GetParentMethodTable())); pSeries->SetSeriesSize( pSeries->GetSeriesSize() - ((size_t) pMT->GetBaseSize() - (size_t) GetParentMethodTable()->GetBaseSize()) ); pSeries++; } } delete [] bmtGCSeries->pSeries; bmtGCSeries->pSeries = NULL; } // MethodTableBuilder::HandleGCForExplicitLayout static BOOL InsertMethodTable( MethodTable *pNew, MethodTable **pArray, DWORD nArraySizeMax, DWORD *pNumAssigned) { LIMITED_METHOD_CONTRACT; for (DWORD j = 0; j < (*pNumAssigned); j++) { if (pNew == pArray[j]) { #ifdef _DEBUG LOG((LF_CLASSLOADER, LL_INFO1000, "GENERICS: Found duplicate interface %s (%p) at position %d out of %d\n", pNew->GetDebugClassName(), pNew, j, *pNumAssigned)); #endif return pNew->HasInstantiation(); // bail out - we found a duplicate instantiated interface } else { #ifdef _DEBUG LOG((LF_CLASSLOADER, LL_INFO1000, " GENERICS: InsertMethodTable ignored interface %s (%p) at position %d out of %d\n", pArray[j]->GetDebugClassName(), pArray[j], j, *pNumAssigned)); #endif } } if (*pNumAssigned >= nArraySizeMax) { LOG((LF_CLASSLOADER, LL_INFO1000, "GENERICS: Found interface %s (%p) exceeding size %d of interface array\n", pNew->GetDebugClassName(), pNew, nArraySizeMax)); return TRUE; } LOG((LF_CLASSLOADER, LL_INFO1000, "GENERICS: Inserting interface %s (%p) at position %d\n", pNew->GetDebugClassName(), pNew, *pNumAssigned)); pArray[(*pNumAssigned)++] = pNew; return FALSE; } // InsertMethodTable //******************************************************************************* // -------------------------------------------------------------------------------------------- // Copy virtual slots inherited from parent: // // In types created at runtime, inherited virtual slots are initialized using approximate parent // during method table building. This method will update them based on the exact parent. // In types loaded from NGen image, inherited virtual slots from cross-module parents are not // initialized. This method will initialize them based on the actually loaded exact parent // if necessary. /* static */ void MethodTableBuilder::CopyExactParentSlots(MethodTable *pMT, MethodTable *pApproxParentMT) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pMT)); } CONTRACTL_END; DWORD nParentVirtuals = pMT->GetNumParentVirtuals(); if (nParentVirtuals == 0) return; _ASSERTE(nParentVirtuals == pApproxParentMT->GetNumVirtuals()); // // Update all inherited virtual slots to match exact parent // if (!pMT->IsCanonicalMethodTable()) { // // Copy all slots for non-canonical methodtables to avoid touching methoddescs. // MethodTable * pCanonMT = pMT->GetCanonicalMethodTable(); // Do not write into vtable chunks shared with parent. It would introduce race // with code:MethodDesc::SetStableEntryPointInterlocked. // // Non-canonical method tables either share everything or nothing so it is sufficient to check // just the first indirection to detect sharing. if (pMT->GetVtableIndirections()[0] != pCanonMT->GetVtableIndirections()[0]) { MethodTable::MethodDataWrapper hCanonMTData(MethodTable::GetMethodData(pCanonMT, FALSE)); for (DWORD i = 0; i < nParentVirtuals; i++) { pMT->CopySlotFrom(i, hCanonMTData, pCanonMT); } } } else { MethodTable::MethodDataWrapper hMTData(MethodTable::GetMethodData(pMT, FALSE)); MethodTable * pParentMT = pMT->GetParentMethodTable(); MethodTable::MethodDataWrapper hParentMTData(MethodTable::GetMethodData(pParentMT, FALSE)); for (DWORD i = 0; i < nParentVirtuals; i++) { // fix up wrongly-inherited method descriptors MethodDesc* pMD = hMTData->GetImplMethodDesc(i); CONSISTENCY_CHECK(CheckPointer(pMD)); CONSISTENCY_CHECK(pMD == pMT->GetMethodDescForSlot(i)); if (pMD->GetMethodTable() == pMT) continue; // We need to re-inherit this slot from the exact parent. DWORD indirectionIndex = MethodTable::GetIndexOfVtableIndirection(i); if (pMT->GetVtableIndirections()[indirectionIndex] == pApproxParentMT->GetVtableIndirections()[indirectionIndex]) { // The slot lives in a chunk shared from the approximate parent MT // If so, we need to change to share the chunk from the exact parent MT _ASSERTE(MethodTable::CanShareVtableChunksFrom(pParentMT, pMT->GetLoaderModule())); pMT->GetVtableIndirections()[indirectionIndex] = pParentMT->GetVtableIndirections()[indirectionIndex]; i = MethodTable::GetEndSlotForVtableIndirection(indirectionIndex, nParentVirtuals) - 1; continue; } // The slot lives in an unshared chunk. We need to update the slot contents pMT->CopySlotFrom(i, hParentMTData, pParentMT); } } } // MethodTableBuilder::CopyExactParentSlots bool InstantiationIsAllTypeVariables(const Instantiation &inst) { for (auto i = inst.GetNumArgs(); i > 0;) { TypeHandle th = inst[--i]; if (!th.IsGenericVariable()) return false; } return true; } //******************************************************************************* /* static */ void MethodTableBuilder::LoadExactInterfaceMap(MethodTable *pMT) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(pMT)); } CONTRACTL_END; BOOL hasInstantiatedInterfaces = FALSE; MethodTable::InterfaceMapIterator it = pMT->IterateInterfaceMap(); while (it.Next()) { if (it.GetInterfaceApprox()->HasInstantiation()) { hasInstantiatedInterfaces = TRUE; break; } } // If we have some instantiated interfaces, then we have lots more work to do... // In the worst case we have to use the metadata to // (a) load the exact interfaces and determine the order in which they // go. We do those by re-running the interface layout algorithm // and using metadata-comparisons to place interfaces in the list. // (b) do a check to see if any ambiguity in the interface dispatch map is introduced // by the instantiation // See code:#LoadExactInterfaceMap_Algorithm2 // // However, we can do something simpler: we just use // the loaded interface method tables to determine ordering. This can be done // if there are no duplicate instantiated interfaces in the interface // set. // See code:#LoadExactInterfaceMap_Algorithm1. if (!hasInstantiatedInterfaces) { return; } HRESULT hr; TypeHandle thisTH(pMT); SigTypeContext typeContext(thisTH); MethodTable *pParentMT = pMT->GetParentMethodTable(); //#LoadExactInterfaceMap_Algorithm1 // Exact interface instantiation loading TECHNIQUE 1. // (a) For interfaces inherited from an instantiated parent class, just copy down from exact parent // (b) Grab newly declared interfaces by loading and then copying down all their inherited parents // (c) But check for any exact duplicates along the way // (d) If no duplicates then we can use the computed interface map we've created // (e) If duplicates found then use the slow metadata-based technique code:#LoadExactInterfaceMap_Algorithm2 DWORD nInterfacesCount = pMT->GetNumInterfaces(); MethodTable **pExactMTs = (MethodTable**) _alloca(sizeof(MethodTable *) * nInterfacesCount); BOOL duplicates; bool retry = false; // Always use exact loading behavior with classes or shared generics, as they have to deal with inheritance, and the // inexact matching logic for classes would be more complex to write. // Also always use the exact loading behavior with any generic that contains generic variables, as the open type is used // to represent a type instantiated over its own generic variables, and the special marker type is currently the open type // and we make this case distinguishable by simply disallowing the optimization in those cases. bool retryWithExactInterfaces = !pMT->IsValueType() || pMT->IsSharedByGenericInstantiations() || pMT->ContainsGenericVariables(); DWORD nAssigned = 0; do { nAssigned = 0; retry = false; duplicates = false; if (pParentMT != NULL) { MethodTable::InterfaceMapIterator parentIt = pParentMT->IterateInterfaceMap(); while (parentIt.Next()) { duplicates |= InsertMethodTable(parentIt.GetInterface(pParentMT, CLASS_LOAD_EXACTPARENTS), pExactMTs, nInterfacesCount, &nAssigned); } } InterfaceImplEnum ie(pMT->GetModule(), pMT->GetCl(), NULL); while ((hr = ie.Next()) == S_OK) { MethodTable *pNewIntfMT = ClassLoader::LoadTypeDefOrRefOrSpecThrowing(pMT->GetModule(), ie.CurrentToken(), &typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_EXACTPARENTS, TRUE, (const Substitution*)0, retryWithExactInterfaces ? NULL : pMT).GetMethodTable(); bool uninstGenericCase = !retryWithExactInterfaces && pNewIntfMT->IsSpecialMarkerTypeForGenericCasting(); duplicates |= InsertMethodTable(pNewIntfMT, pExactMTs, nInterfacesCount, &nAssigned); // We have a special algorithm for interface maps in CoreLib, which doesn't expand interfaces, and assumes no ambiguous // duplicates. Code related to this is marked with #SpecialCorelibInterfaceExpansionAlgorithm if (!(pMT->GetModule()->IsSystem() && pMT->IsValueType())) { MethodTable::InterfaceMapIterator intIt = pNewIntfMT->IterateInterfaceMap(); while (intIt.Next()) { MethodTable *pItfPossiblyApprox = intIt.GetInterfaceApprox(); if (uninstGenericCase && pItfPossiblyApprox->HasInstantiation() && pItfPossiblyApprox->ContainsGenericVariables()) { // We allow a limited set of interface generic shapes with type variables. In particular, we require the // instantiations to be exactly simple type variables, and to have a relatively small number of generic arguments // so that the fallback instantiating logic works efficiently if (InstantiationIsAllTypeVariables(pItfPossiblyApprox->GetInstantiation()) && pItfPossiblyApprox->GetInstantiation().GetNumArgs() <= MethodTable::MaxGenericParametersForSpecialMarkerType) { pItfPossiblyApprox = ClassLoader::LoadTypeDefThrowing(pItfPossiblyApprox->GetModule(), pItfPossiblyApprox->GetCl(), ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef, 0, CLASS_LOAD_EXACTPARENTS).AsMethodTable(); } else { retry = true; break; } } duplicates |= InsertMethodTable(intIt.GetInterface(pNewIntfMT, CLASS_LOAD_EXACTPARENTS), pExactMTs, nInterfacesCount, &nAssigned); } } if (retry) break; } if (retry) { retryWithExactInterfaces = true; } } while (retry); if (FAILED(hr)) { pMT->GetAssembly()->ThrowTypeLoadException(pMT->GetMDImport(), pMT->GetCl(), IDS_CLASSLOAD_BADFORMAT); } #ifdef _DEBUG if (!pMT->GetModule()->IsSystem()) { duplicates |= CLRConfig::GetConfigValue(CLRConfig::INTERNAL_AlwaysUseMetadataInterfaceMapLayout); } //#InjectInterfaceDuplicates_LoadExactInterfaceMap // If we are injecting duplicates also for non-generic interfaces in check builds, we have to use // algorithm code:#LoadExactInterfaceMap_Algorithm2. // Has to be in sync with code:#InjectInterfaceDuplicates_Main. duplicates |= pMT->Debug_HasInjectedInterfaceDuplicates(); #endif // We have a special algorithm for interface maps in CoreLib, which doesn't expand interfaces, and assumes no ambiguous // duplicates. Code related to this is marked with #SpecialCorelibInterfaceExpansionAlgorithm _ASSERTE(!duplicates || !(pMT->GetModule()->IsSystem() && pMT->IsValueType())); CONSISTENCY_CHECK(duplicates || (nAssigned == pMT->GetNumInterfaces())); if (duplicates) { //#LoadExactInterfaceMap_Algorithm2 // Exact interface instantiation loading TECHNIQUE 2 - The exact instantiation has caused some duplicates to // appear in the interface map! This may not be an error: if the duplicates // were ones that arose because because of inheritance from // a parent type then we accept that. For example // class C<T> : I<T> // class D<T> : C<T>, I<string> // is acceptable even when loading D<string>. Note that in such a case // there will be two entries for I<string> in the final interface map for D<string>. // For dispatch the mappings in D take precedence. // // However we consider it an error if there is real ambiguity within // the interface definitions within the one class, e.g. // class E<T> : I<T>, I<string> // In this situation it is not defined how to dispatch calls to I<string>: would // we use the bindings for I<T> or I<string>? // // Because we may had duplicates the interface map we created above may not // be the correct one: for example for D<string> above we would have computed // a map with only one entry. This is incorrect: an exact instantiation's interface // map must have entries that match the ordering of the interface map in the generic case // (this is because code:#InterfaceMap_SupersetOfParent). // // So, in order to determine how to place the interfaces we need go back to // the metadata. We also do this to check if the presence of duplicates // has caused any potential ambiguity, i.e. the E<string> case above. // First we do a GetCheckpoint for the thread-based allocator. ExpandExactInheritedInterfaces allocates substitution chains // on the thread allocator rather than on the stack. ACQUIRE_STACKING_ALLOCATOR(pStackingAllocator); // *********************************************************** // ****** This must be consistent with code:ExpandApproxInterface etc. ******* // // The correlation to ExpandApproxInterfaces etc. simply drops out by how we // traverse interfaces. // *********************************************************** bmtExactInterfaceInfo bmtExactInterface; bmtExactInterface.pInterfaceSubstitution = new (pStackingAllocator) Substitution[pMT->GetNumInterfaces()]; bmtExactInterface.pExactMTs = pExactMTs; bmtExactInterface.nAssigned = 0; bmtExactInterface.typeContext = typeContext; // Do the interfaces inherited from a parent class if ((pParentMT != NULL) && (pParentMT->GetNumInterfaces() > 0)) { Substitution * pParentSubstForTypeLoad = new (pStackingAllocator) Substitution( pMT->GetSubstitutionForParent(NULL)); Substitution * pParentSubstForComparing = new (pStackingAllocator) Substitution( pMT->GetSubstitutionForParent(NULL)); ExpandExactInheritedInterfaces( &bmtExactInterface, pParentMT, pParentSubstForTypeLoad, pParentSubstForComparing, pStackingAllocator, retryWithExactInterfaces ? NULL : pMT); } #ifdef _DEBUG //#ExactInterfaceMap_SupersetOfParent // Check that parent's interface map is subset of this interface map // See code:#InterfaceMap_SupersetOfParent { _ASSERTE(pParentMT->GetNumInterfaces() == bmtExactInterface.nAssigned); MethodTable::InterfaceMapIterator parentInterfacesIterator = pParentMT->IterateInterfaceMap(); UINT32 nInterfaceIndex = 0; while (parentInterfacesIterator.Next()) { if (pMT->IsSharedByGenericInstantiations()) { // The type is a canonical instantiation (contains _Canon) // The interface instantiations of parent can be different (see // code:#InterfaceMap_CanonicalSupersetOfParent), therefore we cannot compare // MethodTables _ASSERTE(parentInterfacesIterator.GetInterfaceInfo()->GetApproxMethodTable(pParentMT->GetLoaderModule())->HasSameTypeDefAs( bmtExactInterface.pExactMTs[nInterfaceIndex])); } else { // It is not canonical instantiation, we can compare MethodTables _ASSERTE(parentInterfacesIterator.GetInterfaceApprox() == bmtExactInterface.pExactMTs[nInterfaceIndex]); } nInterfaceIndex++; } _ASSERTE(nInterfaceIndex == bmtExactInterface.nAssigned); } #endif //_DEBUG // If there are any __Canon instances in the type argument list, then we defer the // ambiguity checking until an exact instantiation. // As the C# compiler won't allow an ambiguous generic interface to be generated, we don't // need this logic for CoreLib. We can't use the sanity checks flag here, as these ambiguities // are specified to the exact instantiation in use, not just whether or not normal the type is // well formed in metadata. if (!pMT->IsSharedByGenericInstantiations() && !pMT->GetModule()->IsSystem()) { // There are no __Canon types in the instantiation, so do ambiguity check. bmtInterfaceAmbiguityCheckInfo bmtCheckInfo; bmtCheckInfo.pMT = pMT; bmtCheckInfo.ppInterfaceSubstitutionChains = new (pStackingAllocator) Substitution *[pMT->GetNumInterfaces()]; bmtCheckInfo.ppExactDeclaredInterfaces = new (pStackingAllocator) MethodTable *[pMT->GetNumInterfaces()]; bmtCheckInfo.nAssigned = 0; bmtCheckInfo.typeContext = typeContext; MethodTableBuilder::InterfacesAmbiguityCheck(&bmtCheckInfo, pMT->GetModule(), pMT->GetCl(), NULL, pStackingAllocator); } // OK, there is no ambiguity amongst the instantiated interfaces declared on this class. MethodTableBuilder::ExpandExactDeclaredInterfaces( &bmtExactInterface, pMT->GetModule(), pMT->GetCl(), NULL, NULL, pStackingAllocator, retryWithExactInterfaces ? NULL : pMT COMMA_INDEBUG(pMT)); CONSISTENCY_CHECK(bmtExactInterface.nAssigned == pMT->GetNumInterfaces()); // We cannot process interface duplicates on types with __Canon. The duplicates are processed on // exact types only if (!pMT->IsSharedByGenericInstantiations()) { // Process all pairs of duplicates in the interface map: // i.e. If there are 3 duplicates of the same interface at indexes: i1, i2 and i3, then // process pairs of indexes [i1,i2], [i1,i3] and [i2,i3]. // - Update 'declared on type' flag for those interfaces which duplicate is 'declared on type' // - Check interface method implementation ambiguity code:#DuplicateInterface_MethodAmbiguity for (DWORD nOriginalIndex = 0; nOriginalIndex < nInterfacesCount; nOriginalIndex++) { // Search for duplicates further in the interface map for (DWORD nDuplicateIndex = nOriginalIndex + 1; nDuplicateIndex < nInterfacesCount; nDuplicateIndex++) { if (pExactMTs[nOriginalIndex] != pExactMTs[nDuplicateIndex]) { // It's not a duplicate of original interface, skip it continue; } // We found a duplicate // Set 'declared on type' flag if either original or duplicate interface is // 'declared on type' if (pMT->IsInterfaceDeclaredOnClass(nOriginalIndex) || pMT->IsInterfaceDeclaredOnClass(nDuplicateIndex)) { // // Note that both checks are needed: // A<T> : I<T> // B<T,U> : A<T>, I<U> // C<T,U> : B<T,U>, I<T> // Reimplements interface from A<T> // After code:BuildMethodTableThrowing algorithm, this will happen: // B<int,int> will have interface map similar to B<T,U>: // I<int> ... not 'declared on type' // I<int> ... 'declared on type' // C<int,int> will have interface map similar to C<T,U>: // I<int> ... 'declared on type' // I<int> ... not 'declared on type' // pMT->SetInterfaceDeclaredOnClass(nOriginalIndex); pMT->SetInterfaceDeclaredOnClass(nDuplicateIndex); } //#DuplicateInterface_MethodAmbiguity // // In the ideal world we would now check for interface method implementation // ambiguity in the instantiation, but that would be a technical breaking change // (against 2.0 RTM/SP1). // Therefore we ALLOW when interface method is implemented twice through this // original and duplicate interface. // // This ambiguity pattern is therefore ALLOWED (can be expressed only in IL, not in C#): // I<T> // void Print(T t); // A<T> : I<T> // abstract class // B<T,U> : A<T>, I<U> // void Print(T t) { ... } // void Print(U u) { ... } // Now B<int,int> has 2 implementations of I<int>.Print(int), while B<int,char> is // fine. Therefore an instantiation can introduce ambiguity. #if 0 // Removing this code for now as it is a technical breaking change (against CLR 2.0 RTM/SP1). // We might decide later that we want to take this breaking change. // // Note that dispatch map entries are sorted by interface index and then interface // method slot index. // DispatchMapTypeID originalTypeID = DispatchMapTypeID::InterfaceClassID(nOriginalIndex); DispatchMap::EncodedMapIterator originalIt(pMT); // Find first entry for original interface while (originalIt.IsValid()) { DispatchMapEntry *pEntry = originalIt.Entry(); if (pEntry->GetTypeID().ToUINT32() >= originalTypeID.ToUINT32()) { // Found the place where original interface entries should be (dispatch map is // sorted) break; } originalIt.Next(); } DispatchMapTypeID duplicateTypeID = DispatchMapTypeID::InterfaceClassID(nDuplicateIndex); DispatchMap::EncodedMapIterator duplicateIt(pMT); // Find first entry for duplicate interface while (duplicateIt.IsValid()) { DispatchMapEntry *pEntry = duplicateIt.Entry(); if (pEntry->GetTypeID().ToUINT32() >= duplicateTypeID.ToUINT32()) { // Found the place where original interface entries should be (dispatch map is // sorted) break; } duplicateIt.Next(); } // Compare original and duplicate interface entries in the dispatch map if they contain // different implementation for the same interface method for (;;) { if (!originalIt.IsValid() || !duplicateIt.IsValid()) { // We reached end of one dispatch map iterator break; } DispatchMapEntry *pOriginalEntry = originalIt.Entry(); if (pOriginalEntry->GetTypeID().ToUINT32() != originalTypeID.ToUINT32()) { // We reached behind original interface entries break; } DispatchMapEntry *pDuplicateEntry = duplicateIt.Entry(); if (pDuplicateEntry->GetTypeID().ToUINT32() != duplicateTypeID.ToUINT32()) { // We reached behind duplicate interface entries break; } if (pOriginalEntry->GetSlotNumber() == pDuplicateEntry->GetSlotNumber()) { // Found duplicate implementation of interface method if (pOriginalEntry->GetTargetSlotNumber() != pDuplicateEntry->GetTargetSlotNumber()) { // Implementation of the slots is different bmtErrorInfo bmtError; bmtError.pModule = pMT->GetModule(); bmtError.cl = pMT->GetCl(); bmtError.resIDWhy = IDS_CLASSLOAD_MI_MULTIPLEOVERRIDES; bmtError.szMethodNameForError = NULL; bmtError.pThrowable = NULL; MethodDesc *pMD = pMT->GetMethodDescForSlot(pDuplicateEntry->GetTargetSlotNumber()); bmtError.dMethodDefInError = pMD->GetMemberDef(); BuildMethodTableThrowException(COR_E_TYPELOAD, bmtError); } // The method is implemented by the same slot on both interfaces (original and // duplicate) // Process next dispatch map entry originalIt.Next(); duplicateIt.Next(); continue; } // Move iterator representing smaller interface method slot index (the dispatch map // is sorted by slot indexes) if (pOriginalEntry->GetSlotNumber() < pDuplicateEntry->GetSlotNumber()) { originalIt.Next(); continue; } _ASSERTE(pOriginalEntry->GetSlotNumber() > pDuplicateEntry->GetSlotNumber()); duplicateIt.Next(); } #endif //0 } // All duplicates of this original interface were processed } // All pairs of duplicates in the interface map are processed } } // Duplicates in the interface map are resolved // OK, if we've got this far then pExactMTs should now hold the array of exact instantiated interfaces. MethodTable::InterfaceMapIterator thisIt = pMT->IterateInterfaceMap(); DWORD i = 0; while (thisIt.Next()) { #ifdef _DEBUG MethodTable *pNewMT = pExactMTs[i]; CONSISTENCY_CHECK(thisIt.HasSameTypeDefAs(pNewMT)); #endif // _DEBUG thisIt.SetInterface(pExactMTs[i]); i++; } } // MethodTableBuilder::LoadExactInterfaceMap //******************************************************************************* void MethodTableBuilder::ExpandExactInheritedInterfaces( bmtExactInterfaceInfo * bmtInfo, MethodTable * pMT, const Substitution * pSubstForTypeLoad, Substitution * pSubstForComparing, StackingAllocator * pStackingAllocator, MethodTable * pMTInterfaceMapOwner) { STANDARD_VM_CONTRACT; MethodTable *pParentMT = pMT->GetParentMethodTable(); // Backup type's substitution chain for comparing interfaces Substitution substForComparingBackup = *pSubstForComparing; // Make type an open type for comparing interfaces *pSubstForComparing = Substitution(); if (pParentMT) { // Chain parent's substitution for exact type load Substitution * pParentSubstForTypeLoad = new (pStackingAllocator) Substitution( pMT->GetSubstitutionForParent(pSubstForTypeLoad)); // Chain parent's substitution for comparing interfaces (note that this type is temporarily // considered as open type) Substitution * pParentSubstForComparing = new (pStackingAllocator) Substitution( pMT->GetSubstitutionForParent(pSubstForComparing)); ExpandExactInheritedInterfaces( bmtInfo, pParentMT, pParentSubstForTypeLoad, pParentSubstForComparing, pStackingAllocator, pMTInterfaceMapOwner); } ExpandExactDeclaredInterfaces( bmtInfo, pMT->GetModule(), pMT->GetCl(), pSubstForTypeLoad, pSubstForComparing, pStackingAllocator, pMTInterfaceMapOwner COMMA_INDEBUG(pMT)); // Restore type's subsitution chain for comparing interfaces *pSubstForComparing = substForComparingBackup; } // MethodTableBuilder::ExpandExactInheritedInterfaces //******************************************************************************* /* static */ void MethodTableBuilder::ExpandExactDeclaredInterfaces( bmtExactInterfaceInfo * bmtInfo, Module * pModule, mdToken typeDef, const Substitution * pSubstForTypeLoad, Substitution * pSubstForComparing, StackingAllocator * pStackingAllocator, MethodTable * pMTInterfaceMapOwner COMMA_INDEBUG(MethodTable * dbg_pClassMT)) { STANDARD_VM_CONTRACT; HRESULT hr; InterfaceImplEnum ie(pModule, typeDef, NULL); while ((hr = ie.Next()) == S_OK) { MethodTable * pInterface = ClassLoader::LoadTypeDefOrRefOrSpecThrowing( pModule, ie.CurrentToken(), &bmtInfo->typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_EXACTPARENTS, TRUE, pSubstForTypeLoad, pMTInterfaceMapOwner).GetMethodTable(); Substitution ifaceSubstForTypeLoad(ie.CurrentToken(), pModule, pSubstForTypeLoad); Substitution ifaceSubstForComparing(ie.CurrentToken(), pModule, pSubstForComparing); ExpandExactInterface( bmtInfo, pInterface, &ifaceSubstForTypeLoad, &ifaceSubstForComparing, pStackingAllocator, pMTInterfaceMapOwner COMMA_INDEBUG(dbg_pClassMT)); } if (FAILED(hr)) { pModule->GetAssembly()->ThrowTypeLoadException(pModule->GetMDImport(), typeDef, IDS_CLASSLOAD_BADFORMAT); } } // MethodTableBuilder::ExpandExactDeclaredInterfaces //******************************************************************************* void MethodTableBuilder::ExpandExactInterface( bmtExactInterfaceInfo * bmtInfo, MethodTable * pIntf, const Substitution * pSubstForTypeLoad_OnStack, // Allocated on stack! const Substitution * pSubstForComparing_OnStack, // Allocated on stack! StackingAllocator * pStackingAllocator, MethodTable * pMTInterfaceMapOwner COMMA_INDEBUG(MethodTable * dbg_pClassMT)) { STANDARD_VM_CONTRACT; // ****** This must be consistent with code:MethodTableBuilder::ExpandApproxInterface ****** // Is it already present according to the "generic" layout of the interfaces. // Note we use exactly the same algorithm as when we // determined the layout of the interface map for the "generic" version of the class. for (DWORD i = 0; i < bmtInfo->nAssigned; i++) { // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions(bmtInfo->pExactMTs[i], pIntf, &bmtInfo->pInterfaceSubstitution[i], pSubstForComparing_OnStack, &newVisited)) { #ifdef _DEBUG //#InjectInterfaceDuplicates_ExactInterfaces // We will inject duplicate interfaces in check builds. // Has to be in sync with code:#InjectInterfaceDuplicates_Main. if (dbg_pClassMT->Debug_HasInjectedInterfaceDuplicates()) { // Just pretend we didn't find this match break; } #endif //_DEBUG return; // found it, don't add it again } } // Add the interface and its sub-interfaces DWORD n = bmtInfo->nAssigned; bmtInfo->pExactMTs[n] = pIntf; bmtInfo->pInterfaceSubstitution[n] = *pSubstForComparing_OnStack; bmtInfo->nAssigned++; Substitution * pSubstForTypeLoad = new (pStackingAllocator) Substitution(*pSubstForTypeLoad_OnStack); ExpandExactDeclaredInterfaces( bmtInfo, pIntf->GetModule(), pIntf->GetCl(), pSubstForTypeLoad, &bmtInfo->pInterfaceSubstitution[n], pStackingAllocator, pMTInterfaceMapOwner COMMA_INDEBUG(dbg_pClassMT)); } // MethodTableBuilder::ExpandExactInterface //******************************************************************************* /* static */ void MethodTableBuilder::InterfacesAmbiguityCheck(bmtInterfaceAmbiguityCheckInfo *bmtCheckInfo, Module *pModule, mdToken typeDef, const Substitution *pSubstChain, StackingAllocator *pStackingAllocator) { STANDARD_VM_CONTRACT; HRESULT hr; InterfaceImplEnum ie(pModule, typeDef, pSubstChain); while ((hr = ie.Next()) == S_OK) { MethodTable *pInterface = ClassLoader::LoadTypeDefOrRefOrSpecThrowing(pModule, ie.CurrentToken(), &bmtCheckInfo->typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_EXACTPARENTS, TRUE, pSubstChain).GetMethodTable(); InterfaceAmbiguityCheck(bmtCheckInfo, ie.CurrentSubst(), pInterface, pStackingAllocator); } if (FAILED(hr)) { pModule->GetAssembly()->ThrowTypeLoadException(pModule->GetMDImport(), typeDef, IDS_CLASSLOAD_BADFORMAT); } } //******************************************************************************* void MethodTableBuilder::InterfaceAmbiguityCheck(bmtInterfaceAmbiguityCheckInfo *bmtCheckInfo, const Substitution *pItfSubstChain, MethodTable *pIntf, StackingAllocator *pStackingAllocator) { STANDARD_VM_CONTRACT; // Is it already in the generic version of the freshly declared interfaces. We // do this based on metadata, i.e. via the substitution chains. // Note we use exactly the same algorithm as when we // determined the layout of the interface map for the "generic" version of the class. for (DWORD i = 0; i < bmtCheckInfo->nAssigned; i++) { // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions(bmtCheckInfo->ppExactDeclaredInterfaces[i], pIntf, bmtCheckInfo->ppInterfaceSubstitutionChains[i], pItfSubstChain, &newVisited)) return; // found it, don't add it again } // OK, so it isn't a duplicate based on the generic IL, now check if the instantiation // makes it a duplicate. for (DWORD i = 0; i < bmtCheckInfo->nAssigned; i++) { if (bmtCheckInfo->ppExactDeclaredInterfaces[i] == pIntf) { bmtCheckInfo->pMT->GetModule()->GetAssembly()->ThrowTypeLoadException(bmtCheckInfo->pMT->GetMDImport(), bmtCheckInfo->pMT->GetCl(), IDS_CLASSLOAD_OVERLAPPING_INTERFACES); } } DWORD n = bmtCheckInfo->nAssigned; bmtCheckInfo->ppExactDeclaredInterfaces[n] = pIntf; bmtCheckInfo->ppInterfaceSubstitutionChains[n] = new (pStackingAllocator) Substitution[pItfSubstChain->GetLength()]; pItfSubstChain->CopyToArray(bmtCheckInfo->ppInterfaceSubstitutionChains[n]); bmtCheckInfo->nAssigned++; InterfacesAmbiguityCheck(bmtCheckInfo,pIntf->GetModule(),pIntf->GetCl(),pItfSubstChain, pStackingAllocator); } //******************************************************************************* void MethodTableBuilder::CheckForSystemTypes() { STANDARD_VM_CONTRACT; LPCUTF8 name, nameSpace; MethodTable * pMT = GetHalfBakedMethodTable(); EEClass * pClass = GetHalfBakedClass(); // We can exit early for generic types - there are just a few cases to check for. if (bmtGenerics->HasInstantiation()) { if (pMT->IsIntrinsicType() && pClass->HasLayout()) { if (FAILED(GetMDImport()->GetNameOfTypeDef(GetCl(), &name, &nameSpace))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (strcmp(nameSpace, g_IntrinsicsNS) == 0) { EEClassLayoutInfo * pLayout = pClass->GetLayoutInfo(); // The SIMD Hardware Intrinsic types correspond to fundamental data types in the underlying ABIs: // * Vector64<T>: __m64 // * Vector128<T>: __m128 // * Vector256<T>: __m256 // These __m128 and __m256 types, among other requirements, are special in that they must always // be aligned properly. if (strcmp(name, g_Vector64Name) == 0) { // The System V ABI for i386 defaults to 8-byte alignment for __m64, except for parameter passing, // where it has an alignment of 4. pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 8; // sizeof(__m64) } else if (strcmp(name, g_Vector128Name) == 0) { #ifdef TARGET_ARM // The Procedure Call Standard for ARM defaults to 8-byte alignment for __m128 pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 8; #else pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 16; // sizeof(__m128) #endif // TARGET_ARM } else if (strcmp(name, g_Vector256Name) == 0) { #ifdef TARGET_ARM // No such type exists for the Procedure Call Standard for ARM. We will default // to the same alignment as __m128, which is supported by the ABI. pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 8; #elif defined(TARGET_ARM64) // The Procedure Call Standard for ARM 64-bit (with SVE support) defaults to // 16-byte alignment for __m256. pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 16; #else pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 32; // sizeof(__m256) #endif // TARGET_ARM elif TARGET_ARM64 } else { // These types should be handled or explicitly skipped below to ensure that we don't // miss adding required ABI support for future types. _ASSERTE_MSG(FALSE, "Unhandled Hardware Intrinsic Type."); } return; } } if (g_pNullableClass != NULL) { _ASSERTE(g_pByReferenceClass != NULL); _ASSERTE(g_pByReferenceClass->IsByRefLike()); _ASSERTE(g_pNullableClass->IsNullable()); // Pre-compute whether the class is a Nullable<T> so that code:Nullable::IsNullableType is efficient // This is useful to the performance of boxing/unboxing a Nullable if (GetCl() == g_pNullableClass->GetCl()) pMT->SetIsNullable(); return; } } if (IsNested() || IsEnum()) return; if (FAILED(GetMDImport()->GetNameOfTypeDef(GetCl(), &name, &nameSpace))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsValueClass()) { // // Value types // // All special value types are in the system namespace if (strcmp(nameSpace, g_SystemNS) != 0) return; // Check if it is a primitive type CorElementType type = CorTypeInfo::FindPrimitiveType(name); if (type != ELEMENT_TYPE_END) { pMT->SetInternalCorElementType(type); pMT->SetIsTruePrimitive(); #if defined(TARGET_X86) && defined(UNIX_X86_ABI) switch (type) { // The System V ABI for i386 defines different packing for these types. case ELEMENT_TYPE_I8: case ELEMENT_TYPE_U8: case ELEMENT_TYPE_R8: { EEClassLayoutInfo * pLayout = pClass->GetLayoutInfo(); pLayout->m_ManagedLargestAlignmentRequirementOfAllMembers = 4; break; } default: break; } #endif // TARGET_X86 && UNIX_X86_ABI #ifdef _DEBUG if (FAILED(GetMDImport()->GetNameOfTypeDef(GetCl(), &name, &nameSpace))) { name = nameSpace = "Invalid TypeDef record"; } LOG((LF_CLASSLOADER, LL_INFO10000, "%s::%s marked as primitive type %i\n", nameSpace, name, type)); #endif // _DEBUG } else if (strcmp(name, g_NullableName) == 0) { pMT->SetIsNullable(); } else if (strcmp(name, g_RuntimeArgumentHandleName) == 0) { pMT->SetInternalCorElementType (ELEMENT_TYPE_I); } else if (strcmp(name, g_RuntimeMethodHandleInternalName) == 0) { pMT->SetInternalCorElementType (ELEMENT_TYPE_I); } else if (strcmp(name, g_RuntimeFieldHandleInternalName) == 0) { pMT->SetInternalCorElementType (ELEMENT_TYPE_I); } } else { // // Reference types // if (strcmp(name, g_StringName) == 0 && strcmp(nameSpace, g_SystemNS) == 0) { // Strings are not "normal" objects, so we need to mess with their method table a bit // so that the GC can figure out how big each string is... DWORD baseSize = StringObject::GetBaseSize(); pMT->SetBaseSize(baseSize); GetHalfBakedClass()->SetBaseSizePadding(baseSize - bmtFP->NumInstanceFieldBytes); pMT->SetComponentSize(2); } else if (strcmp(name, g_CriticalFinalizerObjectName) == 0 && strcmp(nameSpace, g_ConstrainedExecutionNS) == 0) { // To introduce a class with a critical finalizer, // we'll set the bit here. pMT->SetHasCriticalFinalizer(); } #ifdef FEATURE_COMINTEROP else { bool bIsComObject = false; if (strcmp(name, g_ComObjectName) == 0 && strcmp(nameSpace, g_SystemNS) == 0) bIsComObject = true; if (bIsComObject) { // Make System.__ComObject a ComImport type // We can't do it using attribute as C# won't allow putting code in ComImport types pMT->SetComObjectType(); // COM objects need an optional field on the EEClass, so ensure this class instance has allocated // the optional field descriptor. EnsureOptionalFieldsAreAllocated(pClass, m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); } } #endif // FEATURE_COMINTEROP } } //========================================================================================== // Helper to create a new method table. This is the only // way to allocate a new MT. Don't try calling new / ctor. // Called from SetupMethodTable // This needs to be kept consistent with MethodTable::GetSavedExtent() MethodTable * MethodTableBuilder::AllocateNewMT( Module *pLoaderModule, DWORD dwVtableSlots, DWORD dwVirtuals, DWORD dwGCSize, DWORD dwNumInterfaces, DWORD dwNumDicts, DWORD cbInstAndDict, MethodTable *pMTParent, ClassLoader *pClassLoader, LoaderAllocator *pAllocator, BOOL isInterface, BOOL fDynamicStatics, BOOL fHasGenericsStaticsInfo, BOOL fHasVirtualStaticMethods #ifdef FEATURE_COMINTEROP , BOOL fHasDynamicInterfaceMap #endif , AllocMemTracker *pamTracker ) { CONTRACT (MethodTable*) { THROWS; GC_TRIGGERS; MODE_ANY; POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; DWORD dwNonVirtualSlots = dwVtableSlots - dwVirtuals; // GCSize must be aligned _ASSERTE(IS_ALIGNED(dwGCSize, sizeof(void*))); // size without the interface map S_SIZE_T cbTotalSize = S_SIZE_T(dwGCSize) + S_SIZE_T(sizeof(MethodTable)); // vtable cbTotalSize += MethodTable::GetNumVtableIndirections(dwVirtuals) * sizeof(MethodTable::VTableIndir_t); DWORD dwMultipurposeSlotsMask = 0; if (dwNumInterfaces != 0) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasInterfaceMap; if (dwNumDicts != 0) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasPerInstInfo; if (bmtVT->pDispatchMapBuilder->Count() > 0) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasDispatchMapSlot; if (dwNonVirtualSlots != 0) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasNonVirtualSlots; if (pLoaderModule != GetModule()) dwMultipurposeSlotsMask |= MethodTable::enum_flag_HasModuleOverride; // Add space for optional members here. Same as GetOptionalMembersSize() cbTotalSize += MethodTable::GetOptionalMembersAllocationSize(dwMultipurposeSlotsMask, fHasGenericsStaticsInfo, RidFromToken(GetCl()) >= METHODTABLE_TOKEN_OVERFLOW); // Interface map starts here S_SIZE_T offsetOfInterfaceMap = cbTotalSize; cbTotalSize += S_SIZE_T(dwNumInterfaces) * S_SIZE_T(sizeof(InterfaceInfo_t)); #ifdef FEATURE_COMINTEROP // DynamicInterfaceMap have an extra DWORD added to the end of the normal interface // map. This will be used to store the count of dynamically added interfaces // (the ones that are not in the metadata but are QI'ed for at runtime). cbTotalSize += S_SIZE_T(fHasDynamicInterfaceMap ? sizeof(DWORD_PTR) : 0); #endif // Dictionary pointers start here S_SIZE_T offsetOfInstAndDict = cbTotalSize; if (dwNumDicts != 0) { cbTotalSize += sizeof(GenericsDictInfo); cbTotalSize += S_SIZE_T(dwNumDicts) * S_SIZE_T(sizeof(MethodTable::PerInstInfoElem_t)); cbTotalSize += cbInstAndDict; } S_SIZE_T offsetOfUnsharedVtableChunks = cbTotalSize; BOOL canShareVtableChunks = pMTParent && MethodTable::CanShareVtableChunksFrom(pMTParent, pLoaderModule ); // If pMTParent has a generic instantiation, we cannot share its vtable chunks // This is because pMTParent is only approximate at this point, and MethodTableBuilder::CopyExactParentSlots // may swap in an exact parent that does not satisfy CanShareVtableChunksFrom if (pMTParent && pMTParent->HasInstantiation()) { canShareVtableChunks = FALSE; } // We will share any parent vtable chunk that does not contain a method we overrode (or introduced) // For the rest, we need to allocate space for (DWORD i = 0; i < dwVirtuals; i++) { if (!canShareVtableChunks || ChangesImplementationOfVirtualSlot(static_cast<SLOT_INDEX>(i))) { DWORD chunkStart = MethodTable::GetStartSlotForVtableIndirection(MethodTable::GetIndexOfVtableIndirection(i), dwVirtuals); DWORD chunkEnd = MethodTable::GetEndSlotForVtableIndirection(MethodTable::GetIndexOfVtableIndirection(i), dwVirtuals); cbTotalSize += S_SIZE_T(chunkEnd - chunkStart) * S_SIZE_T(sizeof(PCODE)); i = chunkEnd - 1; } } // Add space for the non-virtual slots array (pointed to by an optional member) if required // If there is only one non-virtual slot, we store it directly in the optional member and need no array S_SIZE_T offsetOfNonVirtualSlots = cbTotalSize; if (dwNonVirtualSlots > 1) { cbTotalSize += S_SIZE_T(dwNonVirtualSlots) * S_SIZE_T(sizeof(PCODE)); } BYTE *pData = (BYTE *)pamTracker->Track(pAllocator->GetHighFrequencyHeap()->AllocMem(cbTotalSize)); _ASSERTE(IS_ALIGNED(pData, TARGET_POINTER_SIZE)); // There should be no overflows if we have allocated the memory succesfully _ASSERTE(!cbTotalSize.IsOverflow()); MethodTable* pMT = (MethodTable*)(pData + dwGCSize); pMT->SetMultipurposeSlotsMask(dwMultipurposeSlotsMask); MethodTableWriteableData * pMTWriteableData = (MethodTableWriteableData *) (BYTE *) pamTracker->Track(pAllocator->GetHighFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(MethodTableWriteableData)))); // Note: Memory allocated on loader heap is zero filled pMT->SetWriteableData(pMTWriteableData); // This also disables IBC logging until the type is sufficiently intitialized so // it needs to be done early pMTWriteableData->SetIsNotFullyLoadedForBuildMethodTable(); #ifdef _DEBUG pClassLoader->m_dwGCSize += dwGCSize; pClassLoader->m_dwInterfaceMapSize += (dwNumInterfaces * sizeof(InterfaceInfo_t)); pClassLoader->m_dwMethodTableSize += (DWORD)cbTotalSize.Value(); pClassLoader->m_dwVtableData += (dwVtableSlots * sizeof(PCODE)); #endif // _DEBUG // There should be no overflows if we have allocated the memory succesfully _ASSERTE(!offsetOfUnsharedVtableChunks.IsOverflow()); _ASSERTE(!offsetOfNonVirtualSlots.IsOverflow()); _ASSERTE(!offsetOfInterfaceMap.IsOverflow()); _ASSERTE(!offsetOfInstAndDict.IsOverflow()); // initialize the total number of slots pMT->SetNumVirtuals(static_cast<WORD>(dwVirtuals)); if (fHasVirtualStaticMethods) { pMT->SetHasVirtualStaticMethods(); } pMT->SetParentMethodTable(pMTParent); // Fill out the vtable indirection slots SIZE_T dwCurrentUnsharedSlotOffset = offsetOfUnsharedVtableChunks.Value(); MethodTable::VtableIndirectionSlotIterator it = pMT->IterateVtableIndirectionSlots(); while (it.Next()) { BOOL shared = canShareVtableChunks; // Recalculate whether we will share this chunk if (canShareVtableChunks) { for (DWORD i = it.GetStartSlot(); i < it.GetEndSlot(); i++) { if (ChangesImplementationOfVirtualSlot(static_cast<SLOT_INDEX>(i))) { shared = FALSE; break; } } } if (shared) { // Share the parent chunk _ASSERTE(it.GetEndSlot() <= pMTParent->GetNumVirtuals()); it.SetIndirectionSlot(pMTParent->GetVtableIndirections()[it.GetIndex()]); } else { // Use the locally allocated chunk it.SetIndirectionSlot((MethodTable::VTableIndir2_t *)(pData+dwCurrentUnsharedSlotOffset)); dwCurrentUnsharedSlotOffset += it.GetSize(); } } #ifdef FEATURE_COMINTEROP // Extensible RCW's are prefixed with the count of dynamic interfaces. if (fHasDynamicInterfaceMap) { _ASSERTE (dwNumInterfaces > 0); pMT->SetInterfaceMap ((WORD) (dwNumInterfaces), (InterfaceInfo_t*)(pData+offsetOfInterfaceMap.Value()+sizeof(DWORD_PTR))); *(((DWORD_PTR *)pMT->GetInterfaceMap()) - 1) = 0; } else #endif // FEATURE_COMINTEROP { // interface map is at the end of the vtable pMT->SetInterfaceMap ((WORD) dwNumInterfaces, (InterfaceInfo_t *)(pData+offsetOfInterfaceMap.Value())); } _ASSERTE(((WORD) dwNumInterfaces) == dwNumInterfaces); if (fDynamicStatics) { pMT->SetDynamicStatics(fHasGenericsStaticsInfo); } if (dwNonVirtualSlots > 0) { if (dwNonVirtualSlots > 1) { pMT->SetNonVirtualSlotsArray((PTR_PCODE)(pData+offsetOfNonVirtualSlots.Value())); } else { pMT->SetHasSingleNonVirtualSlot(); } } // the dictionary pointers follow the interface map if (dwNumDicts) { MethodTable::PerInstInfoElem_t *pPerInstInfo = (MethodTable::PerInstInfoElem_t *)(pData + offsetOfInstAndDict.Value() + sizeof(GenericsDictInfo)); pMT->SetPerInstInfo ( pPerInstInfo); // Fill in the dictionary for this type, if it's instantiated if (cbInstAndDict) { MethodTable::PerInstInfoElem_t *pPInstInfo = (MethodTable::PerInstInfoElem_t *)(pPerInstInfo + (dwNumDicts-1)); *pPInstInfo = (Dictionary*) (pPerInstInfo + dwNumDicts); } } #ifdef _DEBUG pMT->m_pWriteableData->m_dwLastVerifedGCCnt = (DWORD)-1; #endif // _DEBUG RETURN(pMT); } //******************************************************************************* // // Used by BuildMethodTable // // Setup the method table // #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif // _PREFAST_ VOID MethodTableBuilder::SetupMethodTable2( Module * pLoaderModule) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtInternal)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtMFDescs)); PRECONDITION(CheckPointer(bmtEnumFields)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtMetaData)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtGenerics)); } CONTRACTL_END; DWORD i; #ifdef FEATURE_COMINTEROP BOOL fHasDynamicInterfaceMap = bmtInterface->dwInterfaceMapSize > 0 && bmtProp->fIsComObjectType && (GetParentMethodTable() != g_pObjectClass); #endif // FEATURE_COMINTEROP EEClass *pClass = GetHalfBakedClass(); DWORD cbDictSlotSize = 0; DWORD cbDictAllocSize = 0; if (bmtGenerics->HasInstantiation()) { cbDictAllocSize = DictionaryLayout::GetDictionarySizeFromLayout(bmtGenerics->GetNumGenericArgs(), pClass->GetDictionaryLayout(), &cbDictSlotSize); } DWORD dwGCSize; if (bmtFP->NumGCPointerSeries > 0) { dwGCSize = (DWORD)CGCDesc::ComputeSize(bmtFP->NumGCPointerSeries); } else { dwGCSize = 0; } pClass->SetNumMethods(bmtVT->cTotalSlots); pClass->SetNumNonVirtualSlots(bmtVT->cVtableSlots - bmtVT->cVirtualSlots); // Now setup the method table // interface map is allocated along with the method table MethodTable *pMT = AllocateNewMT(pLoaderModule, bmtVT->cVtableSlots, bmtVT->cVirtualSlots, dwGCSize, bmtInterface->dwInterfaceMapSize, bmtGenerics->numDicts, cbDictAllocSize, GetParentMethodTable(), GetClassLoader(), bmtAllocator, IsInterface(), bmtProp->fDynamicStatics, bmtProp->fGenericsStatics, bmtProp->fHasVirtualStaticMethods, #ifdef FEATURE_COMINTEROP fHasDynamicInterfaceMap, #endif GetMemTracker()); pMT->SetClass(pClass); pClass->m_pMethodTable = pMT; m_pHalfBakedMT = pMT; #ifdef _DEBUG pMT->SetDebugClassName(GetDebugClassName()); #endif if (IsInterface()) pMT->SetIsInterface(); if (GetParentMethodTable() != NULL) { if (GetParentMethodTable()->HasModuleDependencies()) { pMT->SetHasModuleDependencies(); } else { Module * pModule = GetModule(); Module * pParentModule = GetParentMethodTable()->GetModule(); if (pModule != pParentModule) { pMT->SetHasModuleDependencies(); } } if (GetParentMethodTable()->HasPreciseInitCctors() || !pClass->IsBeforeFieldInit()) { pMT->SetHasPreciseInitCctors(); } } // Must be done early because various methods test HasInstantiation() and ContainsGenericVariables() if (bmtGenerics->GetNumGenericArgs() != 0) { pMT->SetHasInstantiation(bmtGenerics->fTypicalInstantiation, bmtGenerics->fSharedByGenericInstantiations); if (bmtGenerics->fContainsGenericVariables) pMT->SetContainsGenericVariables(); } if (bmtGenerics->numDicts != 0) { if (!FitsIn<WORD>(bmtGenerics->GetNumGenericArgs())) { BuildMethodTableThrowException(IDS_CLASSLOAD_TOOMANYGENERICARGS); } pMT->SetDictInfo(bmtGenerics->numDicts, static_cast<WORD>(bmtGenerics->GetNumGenericArgs())); } CONSISTENCY_CHECK(pMT->GetNumGenericArgs() == bmtGenerics->GetNumGenericArgs()); CONSISTENCY_CHECK(pMT->GetNumDicts() == bmtGenerics->numDicts); CONSISTENCY_CHECK(pMT->HasInstantiation() == bmtGenerics->HasInstantiation()); CONSISTENCY_CHECK(pMT->HasInstantiation() == !pMT->GetInstantiation().IsEmpty()); pMT->SetLoaderModule(pLoaderModule); pMT->SetLoaderAllocator(bmtAllocator); pMT->SetModule(GetModule()); pMT->SetInternalCorElementType (ELEMENT_TYPE_CLASS); SetNonGCRegularStaticFieldBytes (bmtProp->dwNonGCRegularStaticFieldBytes); SetNonGCThreadStaticFieldBytes (bmtProp->dwNonGCThreadStaticFieldBytes); #ifdef FEATURE_TYPEEQUIVALENCE if (bmtProp->fHasTypeEquivalence) { pMT->SetHasTypeEquivalence(); } #endif //FEATURE_TYPEEQUIVALENCE #ifdef FEATURE_COMINTEROP if (bmtProp->fSparse) pClass->SetSparseForCOMInterop(); #endif // FEATURE_COMINTEROP if (bmtVT->pCCtor != NULL) { pMT->SetHasClassConstructor(); CONSISTENCY_CHECK(pMT->GetClassConstructorSlot() == bmtVT->pCCtor->GetSlotIndex()); } if (bmtVT->pDefaultCtor != NULL) { pMT->SetHasDefaultConstructor(); CONSISTENCY_CHECK(pMT->GetDefaultConstructorSlot() == bmtVT->pDefaultCtor->GetSlotIndex()); } for (MethodDescChunk *pChunk = GetHalfBakedClass()->GetChunks(); pChunk != NULL; pChunk = pChunk->GetNextChunk()) { pChunk->SetMethodTable(pMT); } #ifdef _DEBUG { // disable ibc logging because we can assert in ComputerPreferredZapModule for partially constructed // generic types IBCLoggingDisabler disableLogging; DeclaredMethodIterator it(*this); while (it.Next()) { MethodDesc *pMD = it->GetMethodDesc(); if (pMD != NULL) { pMD->m_pDebugMethodTable = pMT; pMD->m_pszDebugMethodSignature = FormatSig(pMD, GetLoaderAllocator()->GetLowFrequencyHeap(), GetMemTracker()); } MethodDesc *pUnboxedMD = it->GetUnboxedMethodDesc(); if (pUnboxedMD != NULL) { pUnboxedMD->m_pDebugMethodTable = pMT; pUnboxedMD->m_pszDebugMethodSignature = FormatSig(pUnboxedMD, GetLoaderAllocator()->GetLowFrequencyHeap(), GetMemTracker()); } } } #endif // _DEBUG // Note that for value classes, the following calculation is only appropriate // when the instance is in its "boxed" state. if (!IsInterface()) { DWORD baseSize = Max<DWORD>(bmtFP->NumInstanceFieldBytes + OBJECT_BASESIZE, MIN_OBJECT_SIZE); baseSize = (baseSize + ALLOC_ALIGN_CONSTANT) & ~ALLOC_ALIGN_CONSTANT; // m_BaseSize must be aligned pMT->SetBaseSize(baseSize); GetHalfBakedClass()->SetBaseSizePadding(baseSize - bmtFP->NumInstanceFieldBytes); if (bmtProp->fIsComObjectType) { // Propagate the com specific info pMT->SetComObjectType(); #ifdef FEATURE_COMINTEROP // COM objects need an optional field on the EEClass, so ensure this class instance has allocated // the optional field descriptor. EnsureOptionalFieldsAreAllocated(pClass, m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); #endif // FEATURE_COMINTEROP } } else { #ifdef FEATURE_COMINTEROP // If this is an interface then we need to set the ComInterfaceType to // -1 to indicate we have not yet determined the interface type. pClass->SetComInterfaceType((CorIfaceAttr)-1); // If this is a special COM event interface, then mark the MT as such. if (bmtProp->fComEventItfType) { pClass->SetComEventItfType(); } #endif // FEATURE_COMINTEROP } _ASSERTE((pMT->IsInterface() == 0) == (IsInterface() == 0)); FieldDesc *pFieldDescList = pClass->GetFieldDescList(); // Set all field slots to point to the newly created MethodTable for (i = 0; i < (bmtEnumFields->dwNumStaticFields + bmtEnumFields->dwNumInstanceFields); i++) { pFieldDescList[i].m_pMTOfEnclosingClass = pMT; } // Fill in type parameters before looking up exact parent or fetching the types of any field descriptors! // This must come before the use of GetFieldType in the value class representation optimization below. if (bmtGenerics->GetNumGenericArgs() != 0) { // Space has already been allocated for the instantiation but the parameters haven't been filled in Instantiation destInst = pMT->GetInstantiation(); Instantiation inst = bmtGenerics->GetInstantiation(); // So fill them in... TypeHandle * pInstDest = (TypeHandle *)destInst.GetRawArgs(); for (DWORD j = 0; j < bmtGenerics->GetNumGenericArgs(); j++) { pInstDest[j] = inst[j]; } PTR_DictionaryLayout pLayout = pClass->GetDictionaryLayout(); if (pLayout != NULL) { _ASSERTE(pLayout->GetMaxSlots() > 0); PTR_Dictionary pDictionarySlots = pMT->GetPerInstInfo()[bmtGenerics->numDicts - 1]; DWORD* pSizeSlot = (DWORD*)(pDictionarySlots + bmtGenerics->GetNumGenericArgs()); *pSizeSlot = cbDictSlotSize; } } CorElementType normalizedType = ELEMENT_TYPE_CLASS; if (IsValueClass()) { if (IsEnum()) { if (GetNumInstanceFields() != 1 || !CorTypeInfo::IsPrimitiveType(pFieldDescList[0].GetFieldType())) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_FIELD, mdTokenNil); } CONSISTENCY_CHECK(!pFieldDescList[0].IsStatic()); normalizedType = pFieldDescList->GetFieldType(); } else { normalizedType = ELEMENT_TYPE_VALUETYPE; } } pMT->SetInternalCorElementType(normalizedType); if (bmtProp->fIsIntrinsicType) { pMT->SetIsIntrinsicType(); } if (GetModule()->IsSystem()) { CheckForSystemTypes(); } // Now fill in the real interface map with the approximate interfaces if (bmtInterface->dwInterfaceMapSize > 0) { // First ensure we have enough space to record extra flag information for each interface (we don't // record this directly into each interface map entry since these flags don't pack well due to // alignment). PVOID pExtraInterfaceInfo = NULL; SIZE_T cbExtraInterfaceInfo = MethodTable::GetExtraInterfaceInfoSize(bmtInterface->dwInterfaceMapSize); if (cbExtraInterfaceInfo) pExtraInterfaceInfo = GetMemTracker()->Track(GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(cbExtraInterfaceInfo))); // Call this even in the case where pExtraInterfaceInfo == NULL (certain cases are optimized and don't // require extra buffer space). pMT->InitializeExtraInterfaceInfo(pExtraInterfaceInfo); InterfaceInfo_t *pInterfaces = pMT->GetInterfaceMap(); CONSISTENCY_CHECK(CheckPointer(pInterfaces)); // Copy the interface map member by member so there is no junk in the padding. for (i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtInterfaceEntry * pEntry = &bmtInterface->pInterfaceMap[i]; if (pEntry->IsDeclaredOnType()) pMT->SetInterfaceDeclaredOnClass(i); _ASSERTE(!!pEntry->IsDeclaredOnType() == !!pMT->IsInterfaceDeclaredOnClass(i)); pInterfaces[i].SetMethodTable(pEntry->GetInterfaceType()->GetMethodTable()); } } pMT->SetCl(GetCl()); // The type is sufficiently initialized for most general purpose accessor methods to work. // Mark the type as restored to avoid avoid asserts. Note that this also enables IBC logging. pMT->GetWriteableDataForWrite_NoLogging()->SetIsRestoredForBuildMethodTable(); #ifdef _DEBUG // Store status if we tried to inject duplicate interfaces if (bmtInterface->dbg_fShouldInjectInterfaceDuplicates) pMT->Debug_SetHasInjectedInterfaceDuplicates(); #endif //_DEBUG // Keep bmtInterface data around since we no longer write the flags (IsDeclaredOnType and // IsImplementedByParent) into the interface map (these flags are only required during type loading). { for (MethodDescChunk *pChunk = GetHalfBakedClass()->GetChunks(); pChunk != NULL; pChunk = pChunk->GetNextChunk()) { // Make sure that temporary entrypoints are create for methods. NGEN uses temporary // entrypoints as surrogate keys for precodes. pChunk->EnsureTemporaryEntryPointsCreated(GetLoaderAllocator(), GetMemTracker()); } } { // copy onto the real vtable (methods only) //@GENERICS: Because we sometimes load an inexact parent (see ClassLoader::GetParent) the inherited slots might // come from the wrong place and need fixing up once we know the exact parent for (bmtVtable::Iterator slotIt = bmtVT->IterateSlots(); !slotIt.AtEnd(); ++slotIt) { SLOT_INDEX iCurSlot = static_cast<SLOT_INDEX>(slotIt.CurrentIndex()); // We want the unboxed MethodDesc if we're out of the virtual method range // and the method we're dealing with has an unboxing method. If so, then // the unboxing method was placed in the virtual section of the vtable and // we now need to place the unboxed version. MethodDesc * pMD = NULL; if (iCurSlot < bmtVT->cVirtualSlots || !slotIt->Impl().AsMDMethod()->IsUnboxing()) { pMD = slotIt->Impl().GetMethodDesc(); CONSISTENCY_CHECK(slotIt->Decl().GetSlotIndex() == iCurSlot); } else { pMD = slotIt->Impl().AsMDMethod()->GetUnboxedMethodDesc(); CONSISTENCY_CHECK(pMD->GetSlot() == iCurSlot); } CONSISTENCY_CHECK(CheckPointer(pMD)); if (pMD->GetMethodTable() != pMT) { // // Inherited slots // // Do not write into vtable chunks shared with parent. It would introduce race // with code:MethodDesc::SetStableEntryPointInterlocked. // DWORD indirectionIndex = MethodTable::GetIndexOfVtableIndirection(iCurSlot); if (GetParentMethodTable()->GetVtableIndirections()[indirectionIndex] != pMT->GetVtableIndirections()[indirectionIndex]) pMT->SetSlot(iCurSlot, pMD->GetInitialEntryPointForCopiedSlot()); } else { // // Owned slots // _ASSERTE(iCurSlot >= bmtVT->cVirtualSlots || ChangesImplementationOfVirtualSlot(iCurSlot)); PCODE addr = pMD->GetTemporaryEntryPoint(); _ASSERTE(addr != NULL); if (pMD->HasNonVtableSlot()) { *((PCODE *)pMD->GetAddrOfSlot()) = addr; } else { pMT->SetSlot(iCurSlot, addr); } if (pMD->GetSlot() == iCurSlot && pMD->RequiresStableEntryPoint()) { // The rest of the system assumes that certain methods always have stable entrypoints. // Create them now. pMD->GetOrCreatePrecode(); } } } } // If we have any entries, then finalize them and allocate the object in class loader heap DispatchMap *pDispatchMap = NULL; DispatchMapBuilder *pDispatchMapBuilder = bmtVT->pDispatchMapBuilder; CONSISTENCY_CHECK(CheckPointer(pDispatchMapBuilder)); if (pDispatchMapBuilder->Count() > 0) { // Create a map in stacking memory. BYTE * pbMap; UINT32 cbMap; DispatchMap::CreateEncodedMapping( pMT, pDispatchMapBuilder, pDispatchMapBuilder->GetAllocator(), &pbMap, &cbMap); // Now finalize the impltable and allocate the block in the low frequency loader heap size_t objSize = (size_t) DispatchMap::GetObjectSize(cbMap); void * pv = AllocateFromLowFrequencyHeap(S_SIZE_T(objSize)); _ASSERTE(pv != NULL); // Use placement new pDispatchMap = new (pv) DispatchMap(pbMap, cbMap); pMT->SetDispatchMap(pDispatchMap); #ifdef LOGGING g_sdStats.m_cDispatchMap++; g_sdStats.m_cbDispatchMap += (UINT32) objSize; LOG((LF_LOADER, LL_INFO1000, "SD: Dispatch map for %s: %d bytes for map, %d bytes total for object.\n", pMT->GetDebugClassName(), cbMap, objSize)); #endif // LOGGING } // GetMethodData by default will cache its result. However, in the case that we're // building a MethodTable, we aren't guaranteed that this type is going to successfully // load and so caching it would result in errors down the road since the memory and // type occupying the same memory location would very likely be incorrect. The second // argument specifies that GetMethodData should not cache the returned object. MethodTable::MethodDataWrapper hMTData(MethodTable::GetMethodData(pMT, FALSE)); if (!IsInterface()) { // Propagate inheritance. // NOTE: In the world of unfolded interface this was used to propagate overrides into // the unfolded interface vtables to make sure that overrides of virtual methods // also overrode the interface methods that they contributed to. This had the // unfortunate side-effect of also overwriting regular vtable slots that had been // methodimpl'd and as a result changed the meaning of methodimpl from "substitute // the body of method A with the body of method B" to "unify the slots of methods // A and B". But now compilers have come to rely on this side-effect and it can // not be brought back to its originally intended behaviour. // For every slot whose body comes from another slot (determined by getting the MethodDesc // for a slot and seeing if MethodDesc::GetSlot returns a different value than the slot // from which the MethodDesc was recovered), copy the value of the slot stated by the // MethodDesc over top of the current slot. // Because of the way slot unification works, we need to iterate the enture vtable until // no slots need updated. To understand this, imagine the following: // C1::M1 is overridden by C2::M2 // C1::M2 is methodImpled by C1::M3 // C1::M3 is overridden by C2::M3 // This should mean that C1::M1 is implemented by C2::M3, but if we didn't run the below // for loop a second time, this would not be propagated properly - it would only be placed // into the slot for C1::M2 and never make its way up to C1::M1. BOOL fChangeMade; do { fChangeMade = FALSE; for (i = 0; i < pMT->GetNumVirtuals(); i++) { MethodDesc* pMD = hMTData->GetImplMethodDesc(i); CONSISTENCY_CHECK(CheckPointer(pMD)); CONSISTENCY_CHECK(pMD == pMT->GetMethodDescForSlot(i)); // This indicates that the method body in this slot was copied here through a methodImpl. // Thus, copy the value of the slot from which the body originally came, in case it was // overridden, to make sure the two slots stay in sync. DWORD originalIndex = pMD->GetSlot(); if (originalIndex != i) { MethodDesc *pOriginalMD = hMTData->GetImplMethodDesc(originalIndex); CONSISTENCY_CHECK(CheckPointer(pOriginalMD)); CONSISTENCY_CHECK(pOriginalMD == pMT->GetMethodDescForSlot(originalIndex)); if (pMD != pOriginalMD) { // Copy the slot value in the method's original slot. pMT->SetSlot(i, pOriginalMD->GetInitialEntryPointForCopiedSlot()); hMTData->InvalidateCachedVirtualSlot(i); // Update the pMD to the new method desc we just copied over ourselves with. This will // be used in the check for missing method block below. pMD = pOriginalMD; // This method is now duplicate pMD->SetDuplicate(); INDEBUG(g_dupMethods++;) fChangeMade = TRUE; } } } } while (fChangeMade); } if (!bmtProp->fNoSanityChecks) VerifyVirtualMethodsImplemented(hMTData); #ifdef _DEBUG { for (bmtVtable::Iterator i = bmtVT->IterateSlots(); !i.AtEnd(); ++i) { _ASSERTE(i->Impl().GetMethodDesc() != NULL); } } #endif // _DEBUG #ifdef FEATURE_COMINTEROP // for ComObject types, i.e. if the class extends from a COM Imported // class // make sure any interface implementated by the COM Imported class // is overridden fully, (OR) not overridden at all.. if (bmtProp->fIsComObjectType) { MethodTable::InterfaceMapIterator intIt = pMT->IterateInterfaceMap(); while (intIt.Next()) { MethodTable* pIntfMT = intIt.GetInterface(pMT, pMT->GetLoadLevel()); if (pIntfMT->GetNumVirtuals() != 0) { BOOL hasComImportMethod = FALSE; BOOL hasManagedMethod = FALSE; // NOTE: Avoid caching the MethodData object for the type being built. MethodTable::MethodDataWrapper hItfImplData(MethodTable::GetMethodData(pIntfMT, pMT, FALSE)); MethodTable::MethodIterator it(hItfImplData); for (;it.IsValid(); it.Next()) { MethodDesc *pClsMD = NULL; // If we fail to find an _IMPLEMENTATION_ for the interface MD, then // we are a ComImportMethod, otherwise we still be a ComImportMethod or // we can be a ManagedMethod. DispatchSlot impl(it.GetTarget()); if (!impl.IsNull()) { pClsMD = it.GetMethodDesc(); CONSISTENCY_CHECK(!pClsMD->IsInterface()); if (pClsMD->GetClass()->IsComImport()) { hasComImportMethod = TRUE; } else { hasManagedMethod = TRUE; } } else { // Need to set the pClsMD for the error reporting below. pClsMD = it.GetDeclMethodDesc(); CONSISTENCY_CHECK(CheckPointer(pClsMD)); hasComImportMethod = TRUE; } // One and only one of the two must be set. if ((hasComImportMethod && hasManagedMethod) || (!hasComImportMethod && !hasManagedMethod)) { BuildMethodTableThrowException(IDS_EE_BAD_COMEXTENDS_CLASS, pClsMD->GetNameOnNonArrayClass()); } } } } } // For COM event interfaces, we need to make sure that all the methods are // methods to add or remove events. This means that they all need to take // a delegate derived class and have a void return type. if (bmtProp->fComEventItfType) { // COM event interfaces had better be interfaces. CONSISTENCY_CHECK(IsInterface()); // Go through all the methods and check the validity of the signature. // NOTE: Uses hMTData to avoid caching a MethodData object for the type being built. MethodTable::MethodIterator it(hMTData); for (;it.IsValid(); it.Next()) { MethodDesc* pMD = it.GetMethodDesc(); _ASSERTE(pMD); MetaSig Sig(pMD); { CONTRACT_VIOLATION(LoadsTypeViolation); if (Sig.GetReturnType() != ELEMENT_TYPE_VOID || Sig.NumFixedArgs() != 1 || Sig.NextArg() != ELEMENT_TYPE_CLASS || !Sig.GetLastTypeHandleThrowing().CanCastTo(TypeHandle(g_pDelegateClass))) { BuildMethodTableThrowException(IDS_EE_BAD_COMEVENTITF_CLASS, pMD->GetNameOnNonArrayClass()); } } } } #endif // FEATURE_COMINTEROP // If this class uses any VTS (Version Tolerant Serialization) features // (event callbacks or OptionalField attributes) we've previously cached the // additional information in the bmtMFDescs structure. Now it's time to add // this information as an optional extension to the MethodTable. } #ifdef _PREFAST_ #pragma warning(pop) #endif // Returns true if there is at least one default implementation for this interface method // We don't care about conflicts at this stage in order to avoid impact type load performance BOOL MethodTableBuilder::HasDefaultInterfaceImplementation(bmtRTType *pDeclType, MethodDesc *pDeclMD) { STANDARD_VM_CONTRACT; #ifdef FEATURE_DEFAULT_INTERFACES // If the interface method is already non-abstract, we are done if (!pDeclMD->IsAbstract()) return TRUE; // If the method is an abstract MethodImpl, this is a reabstraction: // // interface IFoo { void Frob() { } } // interface IBar : IFoo { abstract void IFoo.Frob() } // // We don't require these to have an implementation because they're final anyway. if (pDeclMD->IsMethodImpl()) { assert(pDeclMD->IsFinal()); return TRUE; } int targetSlot = pDeclMD->GetSlot(); // Iterate over all the interfaces this type implements bmtInterfaceEntry * pItfEntry = NULL; for (DWORD i = 0; i < bmtInterface->dwInterfaceMapSize; i++) { bmtRTType * pCurItf = bmtInterface->pInterfaceMap[i].GetInterfaceType(); Module * pCurIntfModule = pCurItf->GetMethodTable()->GetModule(); // Go over the methods on the interface MethodTable::IntroducedMethodIterator methIt(pCurItf->GetMethodTable()); for (; methIt.IsValid(); methIt.Next()) { MethodDesc * pPotentialImpl = methIt.GetMethodDesc(); // If this interface method is not a MethodImpl, it can't possibly implement // the interface method we are looking for if (!pPotentialImpl->IsMethodImpl()) continue; // Go over all the decls this MethodImpl is implementing MethodImpl::Iterator it(pPotentialImpl); for (; it.IsValid(); it.Next()) { MethodDesc *pPotentialDecl = it.GetMethodDesc(); // Check this is a decl with the right slot if (pPotentialDecl->GetSlot() != targetSlot) continue; // Find out what interface this default implementation is implementing mdToken tkParent; IfFailThrow(pCurIntfModule->GetMDImport()->GetParentToken(it.GetToken(), &tkParent)); // We can only load the approximate interface at this point MethodTable * pPotentialInterfaceMT = ClassLoader::LoadTypeDefOrRefOrSpecThrowing( pCurIntfModule, tkParent, &bmtGenerics->typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::PermitUninstDefOrRef, ClassLoader::LoadTypes, CLASS_LOAD_APPROXPARENTS, TRUE).GetMethodTable()->GetCanonicalMethodTable(); // Is this a default implementation for the interface we are looking for? if (pDeclType->GetMethodTable()->HasSameTypeDefAs(pPotentialInterfaceMT)) { // If the type is not generic, matching defs are all we need if (!pDeclType->GetMethodTable()->HasInstantiation()) return TRUE; // If this is generic, we need to compare under substitutions Substitution curItfSubs(tkParent, pCurIntfModule, &pCurItf->GetSubstitution()); // Type Equivalence is not respected for this comparision as you can have multiple type equivalent interfaces on a class TokenPairList newVisited = TokenPairList::AdjustForTypeEquivalenceForbiddenScope(NULL); if (MetaSig::CompareTypeDefsUnderSubstitutions( pPotentialInterfaceMT, pDeclType->GetMethodTable(), &curItfSubs, &pDeclType->GetSubstitution(), &newVisited)) { return TRUE; } } } } } #endif // FEATURE_DEFAULT_INTERFACES return FALSE; } void MethodTableBuilder::VerifyVirtualMethodsImplemented(MethodTable::MethodData * hMTData) { STANDARD_VM_CONTRACT; // // This verification is not applicable or required in many cases // if (IsAbstract() || IsInterface()) return; #ifdef FEATURE_COMINTEROP if (bmtProp->fIsComObjectType) return; #endif // FEATURE_COMINTEROP // Since interfaces aren't laid out in the vtable for stub dispatch, what we need to do // is try to find an implementation for every interface contract by iterating through // the interfaces not declared on a parent. BOOL fParentIsAbstract = FALSE; if (HasParent()) { fParentIsAbstract = GetParentMethodTable()->IsAbstract(); } // If the parent is abstract, we need to check that each virtual method is implemented if (fParentIsAbstract) { // NOTE: Uses hMTData to avoid caching a MethodData object for the type being built. MethodTable::MethodIterator it(hMTData); for (; it.IsValid() && it.IsVirtual(); it.Next()) { MethodDesc *pMD = it.GetMethodDesc(); if (pMD->IsAbstract()) { MethodDesc *pDeclMD = it.GetDeclMethodDesc(); BuildMethodTableThrowException(IDS_CLASSLOAD_NOTIMPLEMENTED, pDeclMD->GetNameOnNonArrayClass()); } } } DispatchMapTypeID * rgInterfaceDispatchMapTypeIDs = new (GetStackingAllocator()) DispatchMapTypeID[bmtInterface->dwInterfaceMapSize]; bmtInterfaceInfo::MapIterator intIt = bmtInterface->IterateInterfaceMap(); for (; !intIt.AtEnd(); intIt.Next()) { if (fParentIsAbstract || !intIt->IsImplementedByParent()) { // Compute all TypeIDs for this interface (all duplicates in the interface map) UINT32 cInterfaceDuplicates; ComputeDispatchMapTypeIDs( intIt->GetInterfaceType()->GetMethodTable(), &intIt->GetInterfaceType()->GetSubstitution(), rgInterfaceDispatchMapTypeIDs, bmtInterface->dwInterfaceMapSize, &cInterfaceDuplicates); _ASSERTE(cInterfaceDuplicates <= bmtInterface->dwInterfaceMapSize); _ASSERTE(cInterfaceDuplicates > 0); // NOTE: This override does not cache the resulting MethodData object. MethodTable::MethodDataWrapper hData(MethodTable::GetMethodData( rgInterfaceDispatchMapTypeIDs, cInterfaceDuplicates, intIt->GetInterfaceType()->GetMethodTable(), GetHalfBakedMethodTable())); MethodTable::MethodIterator it(hData); for (; it.IsValid() && it.IsVirtual(); it.Next()) { if (it.GetTarget().IsNull()) { MethodDesc *pMD = it.GetDeclMethodDesc(); if (!HasDefaultInterfaceImplementation(intIt->GetInterfaceType(), pMD)) BuildMethodTableThrowException(IDS_CLASSLOAD_NOTIMPLEMENTED, pMD->GetNameOnNonArrayClass()); } } } } } INT32 __stdcall IsDefined(Module *pModule, mdToken token, TypeHandle attributeClass) { CONTRACTL { THROWS; GC_TRIGGERS; } CONTRACTL_END; BOOL isDefined = FALSE; IMDInternalImport *pInternalImport = pModule->GetMDImport(); BOOL isSealed = FALSE; HENUMInternalHolder hEnum(pInternalImport); TypeHandle caTH; // Get the enum first but don't get any values hEnum.EnumInit(mdtCustomAttribute, token); ULONG cMax = pInternalImport->EnumGetCount(&hEnum); if (cMax) { // we have something to look at if (!attributeClass.IsNull()) isSealed = attributeClass.GetMethodTable()->IsSealed(); // Loop through the Attributes and look for the requested one mdCustomAttribute cv; while (pInternalImport->EnumNext(&hEnum, &cv)) { // // fetch the ctor mdToken tkCtor; IfFailThrow(pInternalImport->GetCustomAttributeProps(cv, &tkCtor)); mdToken tkType = TypeFromToken(tkCtor); if(tkType != mdtMemberRef && tkType != mdtMethodDef) continue; // we only deal with the ctor case // // get the info to load the type, so we can check whether the current // attribute is a subtype of the requested attribute IfFailThrow(pInternalImport->GetParentToken(tkCtor, &tkType)); _ASSERTE(TypeFromToken(tkType) == mdtTypeRef || TypeFromToken(tkType) == mdtTypeDef); // load the type if (isSealed) { caTH=ClassLoader::LoadTypeDefOrRefThrowing(pModule, tkType, ClassLoader::ReturnNullIfNotFound, ClassLoader::FailIfUninstDefOrRef, TypeFromToken(tkType) == mdtTypeDef ? tdAllTypes : tdNoTypes); } else { caTH = ClassLoader::LoadTypeDefOrRefThrowing(pModule, tkType, ClassLoader::ReturnNullIfNotFound, ClassLoader::FailIfUninstDefOrRef); } if (caTH.IsNull()) continue; // a null class implies all custom attribute if (!attributeClass.IsNull()) { if (isSealed) { if (attributeClass != caTH) continue; } else { if (!caTH.CanCastTo(attributeClass)) continue; } } // // if we are here we got one isDefined = TRUE; break; } } return isDefined; } //******************************************************************************* VOID MethodTableBuilder::CheckForRemotingProxyAttrib() { STANDARD_VM_CONTRACT; } //******************************************************************************* // Checks for a bunch of special interface names and if it matches then it sets // bmtProp->fIsMngStandardItf to TRUE. Additionally, it checks to see if the // type is an interface and if it has ComEventInterfaceAttribute custom attribute // set, then it sets bmtProp->fComEventItfType to true. // // NOTE: This only does anything when COM interop is enabled. VOID MethodTableBuilder::CheckForSpecialTypes() { #ifdef FEATURE_COMINTEROP STANDARD_VM_CONTRACT; Module *pModule = GetModule(); IMDInternalImport *pMDImport = pModule->GetMDImport(); // Check to see if this type is a managed standard interface. All the managed // standard interfaces live in CoreLib so checking for that first // makes the strcmp that comes afterwards acceptable. if (pModule->IsSystem()) { if (IsInterface()) { LPCUTF8 pszClassName; LPCUTF8 pszClassNamespace; if (FAILED(pMDImport->GetNameOfTypeDef(GetCl(), &pszClassName, &pszClassNamespace))) { pszClassName = pszClassNamespace = NULL; } if ((pszClassName != NULL) && (pszClassNamespace != NULL)) { LPUTF8 pszFullyQualifiedName = NULL; MAKE_FULLY_QUALIFIED_NAME(pszFullyQualifiedName, pszClassNamespace, pszClassName); // This is just to give us a scope to break out of. do { #define MNGSTDITF_BEGIN_INTERFACE(FriendlyName, strMngItfName, strUCOMMngItfName, strCustomMarshalerName, strCustomMarshalerCookie, strManagedViewName, NativeItfIID, bCanCastOnNativeItfQI) \ if (strcmp(strMngItfName, pszFullyQualifiedName) == 0) \ { \ bmtProp->fIsMngStandardItf = true; \ break; \ } #define MNGSTDITF_DEFINE_METH_IMPL(FriendlyName, ECallMethName, MethName, MethSig, FcallDecl) #define MNGSTDITF_END_INTERFACE(FriendlyName) #include "mngstditflist.h" #undef MNGSTDITF_BEGIN_INTERFACE #undef MNGSTDITF_DEFINE_METH_IMPL #undef MNGSTDITF_END_INTERFACE } while (FALSE); } } } // Check to see if the type is a COM event interface (classic COM interop only). if (IsInterface()) { HRESULT hr = GetCustomAttribute(GetCl(), WellKnownAttribute::ComEventInterface, NULL, NULL); if (hr == S_OK) { bmtProp->fComEventItfType = true; } } #endif // FEATURE_COMINTEROP } #ifdef FEATURE_READYTORUN bool ModulesAreDistributedAsAnIndivisibleUnit(Module* module1, Module* module2) { if (module1 == module2) return true; bool nativeImagesIdentical = false; if (module1->GetCompositeNativeImage() != NULL) { return module1->GetCompositeNativeImage() == module2->GetCompositeNativeImage(); } return false; } //******************************************************************************* VOID MethodTableBuilder::CheckLayoutDependsOnOtherModules(MethodTable * pDependencyMT) { STANDARD_VM_CONTRACT; // These cases are expected to be handled by the caller _ASSERTE(!(pDependencyMT == g_pObjectClass || pDependencyMT->IsTruePrimitive() || ((g_pEnumClass != NULL) && pDependencyMT->IsEnum()))); // // WARNING: Changes in this algorithm are potential ReadyToRun breaking changes !!! // // Track whether field layout of this type depend on information outside its containing module and compilation unit // // It is a stronger condition than MethodTable::IsInheritanceChainLayoutFixedInCurrentVersionBubble(). // It has to remain fixed across versioning changes in the module dependencies. In particular, it does // not take into account NonVersionable attribute. Otherwise, adding NonVersionable attribute to existing // type would be ReadyToRun incompatible change. // bool modulesDefinedInSameDistributionUnit = ModulesAreDistributedAsAnIndivisibleUnit(pDependencyMT->GetModule(), GetModule()); bool dependsOnOtherModules = !modulesDefinedInSameDistributionUnit || pDependencyMT->GetClass()->HasLayoutDependsOnOtherModules(); if (dependsOnOtherModules) GetHalfBakedClass()->SetHasLayoutDependsOnOtherModules(); } BOOL MethodTableBuilder::NeedsAlignedBaseOffset() { STANDARD_VM_CONTRACT; // // WARNING: Changes in this algorithm are potential ReadyToRun breaking changes !!! // // This method returns whether the type needs aligned base offset in order to have layout resilient to // base class layout changes. // if (IsValueClass()) return FALSE; MethodTable * pParentMT = GetParentMethodTable(); // Trivial parents if (pParentMT == NULL || pParentMT == g_pObjectClass) return FALSE; // Always use the ReadyToRun field layout algorithm if the source IL image was ReadyToRun, independent on // whether ReadyToRun is actually enabled for the module. It is required to allow mixing and matching // ReadyToRun images with and without input bubble enabled. if (!GetModule()->GetPEAssembly()->IsReadyToRun()) { // Always use ReadyToRun field layout algorithm to produce ReadyToRun images return FALSE; } if (!ModulesAreDistributedAsAnIndivisibleUnit(GetModule(), pParentMT->GetModule()) || pParentMT->GetClass()->HasLayoutDependsOnOtherModules()) { return TRUE; } return FALSE; } #endif // FEATURE_READYTORUN //******************************************************************************* // // Used by BuildMethodTable // // Set the HasFinalizer and HasCriticalFinalizer flags // VOID MethodTableBuilder::SetFinalizationSemantics() { STANDARD_VM_CONTRACT; if (g_pObjectFinalizerMD && !IsInterface() && !IsValueClass()) { WORD slot = g_pObjectFinalizerMD->GetSlot(); // Objects not derived from Object will get marked as having a finalizer, if they have // sufficient virtual methods. This will only be an issue if they can be allocated // in the GC heap (which will cause all sorts of other problems). if (slot < bmtVT->cVirtualSlots && (*bmtVT)[slot].Impl().GetMethodDesc() != g_pObjectFinalizerMD) { GetHalfBakedMethodTable()->SetHasFinalizer(); // The need for a critical finalizer can be inherited from a parent. // Since we set this automatically for CriticalFinalizerObject // elsewhere, the code below is the means by which any derived class // picks up the attribute. if (HasParent() && GetParentMethodTable()->HasCriticalFinalizer()) { GetHalfBakedMethodTable()->SetHasCriticalFinalizer(); } } } } //******************************************************************************* // // Used by BuildMethodTable // // Perform relevant GC calculations for value classes // VOID MethodTableBuilder::HandleGCForValueClasses(MethodTable ** pByValueClassCache) { STANDARD_VM_CONTRACT; DWORD i; EEClass *pClass = GetHalfBakedClass(); MethodTable *pMT = GetHalfBakedMethodTable(); FieldDesc *pFieldDescList = pClass->GetFieldDescList(); // Note that for value classes, the following calculation is only appropriate // when the instance is in its "boxed" state. if (bmtFP->NumGCPointerSeries != 0) { CGCDescSeries *pSeries; CGCDescSeries *pHighest; pMT->SetContainsPointers(); // Copy the pointer series map from the parent CGCDesc::Init( (PVOID) pMT, bmtFP->NumGCPointerSeries ); if (bmtParent->NumParentPointerSeries != 0) { size_t ParentGCSize = CGCDesc::ComputeSize(bmtParent->NumParentPointerSeries); memcpy( (PVOID) (((BYTE*) pMT) - ParentGCSize), (PVOID) (((BYTE*) GetParentMethodTable()) - ParentGCSize), ParentGCSize - sizeof(size_t) // sizeof(size_t) is the NumSeries count ); } // Build the pointer series map for this pointers in this instance pSeries = ((CGCDesc*)pMT)->GetLowestSeries(); if (bmtFP->NumInstanceGCPointerFields) { // See gcdesc.h for an explanation of why we adjust by subtracting BaseSize pSeries->SetSeriesSize( (size_t) (bmtFP->NumInstanceGCPointerFields * TARGET_POINTER_SIZE) - (size_t) pMT->GetBaseSize()); pSeries->SetSeriesOffset(bmtFP->GCPointerFieldStart + OBJECT_SIZE); pSeries++; } // Insert GC info for fields which are by-value classes for (i = 0; i < bmtEnumFields->dwNumInstanceFields; i++) { if (pFieldDescList[i].IsByValue()) { MethodTable *pByValueMT = pByValueClassCache[i]; if (pByValueMT->ContainsPointers()) { // Offset of the by value class in the class we are building, does NOT include Object DWORD dwCurrentOffset = pFieldDescList[i].GetOffset_NoLogging(); // The by value class may have more than one pointer series CGCDescSeries * pByValueSeries = CGCDesc::GetCGCDescFromMT(pByValueMT)->GetLowestSeries(); SIZE_T dwNumByValueSeries = CGCDesc::GetCGCDescFromMT(pByValueMT)->GetNumSeries(); for (SIZE_T j = 0; j < dwNumByValueSeries; j++) { size_t cbSeriesSize; size_t cbSeriesOffset; _ASSERTE(pSeries <= CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries()); cbSeriesSize = pByValueSeries->GetSeriesSize(); // Add back the base size of the by value class, since it's being transplanted to this class cbSeriesSize += pByValueMT->GetBaseSize(); // Subtract the base size of the class we're building cbSeriesSize -= pMT->GetBaseSize(); // Set current series we're building pSeries->SetSeriesSize(cbSeriesSize); // Get offset into the value class of the first pointer field (includes a +Object) cbSeriesOffset = pByValueSeries->GetSeriesOffset(); // Add it to the offset of the by value class in our class cbSeriesOffset += dwCurrentOffset; pSeries->SetSeriesOffset(cbSeriesOffset); // Offset of field pSeries++; pByValueSeries++; } } } } // Adjust the inherited series - since the base size has increased by "# new field instance bytes", we need to // subtract that from all the series (since the series always has BaseSize subtracted for it - see gcdesc.h) pHighest = CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries(); while (pSeries <= pHighest) { CONSISTENCY_CHECK(CheckPointer(GetParentMethodTable())); pSeries->SetSeriesSize( pSeries->GetSeriesSize() - ((size_t) pMT->GetBaseSize() - (size_t) GetParentMethodTable()->GetBaseSize()) ); pSeries++; } _ASSERTE(pSeries-1 <= CGCDesc::GetCGCDescFromMT(pMT)->GetHighestSeries()); } } //******************************************************************************* // // Used by BuildMethodTable // // Check for the presence of type equivalence. If present, make sure // it is permitted to be on this type. // void MethodTableBuilder::CheckForTypeEquivalence( WORD cBuildingInterfaceList, BuildingInterfaceInfo_t *pBuildingInterfaceList) { STANDARD_VM_CONTRACT; #ifdef FEATURE_TYPEEQUIVALENCE bmtProp->fIsTypeEquivalent = !!IsTypeDefEquivalent(GetCl(), GetModule()); if (bmtProp->fIsTypeEquivalent) { BOOL comImportOrEventInterface = IsComImport(); #ifdef FEATURE_COMINTEROP comImportOrEventInterface = comImportOrEventInterface || bmtProp->fComEventItfType; #endif // FEATURE_COMINTEROP BOOL fTypeEquivalentNotPermittedDueToType = !((comImportOrEventInterface && IsInterface()) || IsValueClass() || IsDelegate()); BOOL fTypeEquivalentNotPermittedDueToGenerics = bmtGenerics->HasInstantiation(); if (fTypeEquivalentNotPermittedDueToType || fTypeEquivalentNotPermittedDueToGenerics) { BuildMethodTableThrowException(IDS_CLASSLOAD_EQUIVALENTBADTYPE); } GetHalfBakedClass()->SetIsEquivalentType(); } bmtProp->fHasTypeEquivalence = bmtProp->fIsTypeEquivalent; if (!bmtProp->fHasTypeEquivalence) { // fHasTypeEquivalence flag is inherited from interfaces so we can quickly detect // types that implement type equivalent interfaces for (WORD i = 0; i < cBuildingInterfaceList; i++) { MethodTable *pItfMT = pBuildingInterfaceList[i].m_pMethodTable; if (pItfMT->HasTypeEquivalence()) { bmtProp->fHasTypeEquivalence = true; break; } } } if (!bmtProp->fHasTypeEquivalence) { // fHasTypeEquivalence flag is "inherited" from generic arguments so we can quickly detect // types like List<Str> where Str is a structure with the TypeIdentifierAttribute. if (bmtGenerics->HasInstantiation() && !bmtGenerics->IsTypicalTypeDefinition()) { Instantiation inst = bmtGenerics->GetInstantiation(); for (DWORD i = 0; i < inst.GetNumArgs(); i++) { if (inst[i].HasTypeEquivalence()) { bmtProp->fHasTypeEquivalence = true; break; } } } } #endif //FEATURE_TYPEEQUIVALENCE } //******************************************************************************* // // Used by BuildMethodTable // // Before we make the final leap, make sure we've allocated all memory needed to // fill out the RID maps. // VOID MethodTableBuilder::EnsureRIDMapsCanBeFilled() { STANDARD_VM_CONTRACT; DWORD i; // Rather than call Ensure***CanBeStored() hundreds of times, we // will call it once on the largest token we find. This relies // on an invariant that RidMaps don't use some kind of sparse // allocation. { mdMethodDef largest = mdMethodDefNil; DeclaredMethodIterator it(*this); while (it.Next()) { if (it.Token() > largest) { largest = it.Token(); } } if ( largest != mdMethodDefNil ) { GetModule()->EnsureMethodDefCanBeStored(largest); } } { mdFieldDef largest = mdFieldDefNil; for (i = 0; i < bmtMetaData->cFields; i++) { if (bmtMetaData->pFields[i] > largest) { largest = bmtMetaData->pFields[i]; } } if ( largest != mdFieldDefNil ) { GetModule()->EnsureFieldDefCanBeStored(largest); } } } #ifdef FEATURE_COMINTEROP //******************************************************************************* void MethodTableBuilder::GetCoClassAttribInfo() { STANDARD_VM_CONTRACT; // Retrieve the CoClassAttribute CA. HRESULT hr = GetCustomAttribute(GetCl(), WellKnownAttribute::CoClass, NULL, NULL); if (hr == S_OK) { // COM class interfaces may lazily populate the m_pCoClassForIntf field of EEClass. This field is // optional so we must ensure the optional field descriptor has been allocated. EnsureOptionalFieldsAreAllocated(GetHalfBakedClass(), m_pAllocMemTracker, GetLoaderAllocator()->GetLowFrequencyHeap()); SetIsComClassInterface(); } } #endif // FEATURE_COMINTEROP //******************************************************************************* void MethodTableBuilder::bmtMethodImplInfo::AddMethodImpl( bmtMDMethod * pImplMethod, bmtMethodHandle declMethod, mdToken declToken, StackingAllocator * pStackingAllocator) { STANDARD_VM_CONTRACT; CONSISTENCY_CHECK(CheckPointer(pImplMethod)); CONSISTENCY_CHECK(!declMethod.IsNull()); if (pIndex >= cMaxIndex) { DWORD newEntriesCount = 0; if (!ClrSafeInt<DWORD>::multiply(cMaxIndex, 2, newEntriesCount)) ThrowHR(COR_E_OVERFLOW); if (newEntriesCount == 0) newEntriesCount = 10; // If we have to grow this array, we will not free the old array before we clean up the BuildMethodTable operation // because this is a stacking allocator. However, the old array will get freed when all the stack allocator is freed. Entry *rgEntriesNew = new (pStackingAllocator) Entry[newEntriesCount]; memcpy(rgEntriesNew, rgEntries, sizeof(Entry) * cMaxIndex); // Start using newly allocated array. rgEntries = rgEntriesNew; cMaxIndex = newEntriesCount; } rgEntries[pIndex++] = Entry(pImplMethod, declMethod, declToken); } //******************************************************************************* // Returns TRUE if tok acts as a body for any methodImpl entry. FALSE, otherwise. BOOL MethodTableBuilder::bmtMethodImplInfo::IsBody(mdToken tok) { LIMITED_METHOD_CONTRACT; CONSISTENCY_CHECK(TypeFromToken(tok) == mdtMethodDef); for (DWORD i = 0; i < pIndex; i++) { if (GetBodyMethodDesc(i)->GetMemberDef() == tok) { return TRUE; } } return FALSE; } //******************************************************************************* BYTE * MethodTableBuilder::AllocateFromHighFrequencyHeap(S_SIZE_T cbMem) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; return (BYTE *)GetMemTracker()->Track( GetLoaderAllocator()->GetHighFrequencyHeap()->AllocMem(cbMem)); } //******************************************************************************* BYTE * MethodTableBuilder::AllocateFromLowFrequencyHeap(S_SIZE_T cbMem) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; return (BYTE *)GetMemTracker()->Track( GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(cbMem)); } //------------------------------------------------------------------------------- // Make best-case effort to obtain an image name for use in an error message. // // This routine must expect to be called before the this object is fully loaded. // It can return an empty if the name isn't available or the object isn't initialized // enough to get a name, but it mustn't crash. //------------------------------------------------------------------------------- LPCWSTR MethodTableBuilder::GetPathForErrorMessages() { STANDARD_VM_CONTRACT; return GetModule()->GetPathForErrorMessages(); } BOOL MethodTableBuilder::ChangesImplementationOfVirtualSlot(SLOT_INDEX idx) { STANDARD_VM_CONTRACT; BOOL fChangesImplementation = TRUE; _ASSERTE(idx < bmtVT->cVirtualSlots); if (HasParent() && idx < GetParentMethodTable()->GetNumVirtuals()) { _ASSERTE(idx < bmtParent->pSlotTable->GetSlotCount()); bmtMethodHandle VTImpl = (*bmtVT)[idx].Impl(); bmtMethodHandle ParentImpl = (*bmtParent)[idx].Impl(); fChangesImplementation = VTImpl != ParentImpl; // See code:MethodTableBuilder::SetupMethodTable2 and its logic // for handling MethodImpl's on parent classes which affect non interface // methods. if (!fChangesImplementation && (ParentImpl.GetSlotIndex() != idx)) fChangesImplementation = TRUE; // If the current vtable slot is MethodImpl, is it possible that it will be updated by // the ClassLoader::PropagateCovariantReturnMethodImplSlots. if (!fChangesImplementation && VTImpl.GetMethodDesc()->IsMethodImpl()) { // Note: to know exactly whether the slot will be updated or not, we would need to check the // PreserveBaseOverridesAttribute presence on the current vtable slot and in the worst case // on all of its ancestors. This is expensive, so we don't do that check here and accept // the fact that we get some false positives and end up sharing less vtable chunks. // Search the previous slots in the parent vtable for the same implementation. If it exists and it was // overriden, the ClassLoader::PropagateCovariantReturnMethodImplSlots will propagate the change to the current // slot (idx), so the implementation of it will change. MethodDesc* pParentMD = ParentImpl.GetMethodDesc(); for (SLOT_INDEX i = 0; i < idx; i++) { if ((*bmtParent)[i].Impl().GetMethodDesc() == pParentMD && (*bmtVT)[i].Impl().GetMethodDesc() != pParentMD) { fChangesImplementation = TRUE; break; } } } } return fChangesImplementation; } // Must be called prior to setting the value of any optional field on EEClass (on a debug build an assert will // fire if this invariant is violated). void MethodTableBuilder::EnsureOptionalFieldsAreAllocated(EEClass *pClass, AllocMemTracker *pamTracker, LoaderHeap *pHeap) { STANDARD_VM_CONTRACT; if (pClass->HasOptionalFields()) return; EEClassOptionalFields *pOptFields = (EEClassOptionalFields*) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(EEClassOptionalFields)))); // Initialize default values for all optional fields. pOptFields->Init(); // Attach optional fields to the class. pClass->AttachOptionalFields(pOptFields); } //--------------------------------------------------------------------------------------- // // Gather information about a generic type // - number of parameters // - variance annotations // - dictionaries // - sharability // //static void MethodTableBuilder::GatherGenericsInfo( Module * pModule, mdTypeDef cl, Instantiation inst, bmtGenericsInfo * bmtGenericsInfo, StackingAllocator*pStackingAllocator) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(GetThreadNULLOk() != NULL); PRECONDITION(CheckPointer(pModule)); PRECONDITION(CheckPointer(bmtGenericsInfo)); } CONTRACTL_END; IMDInternalImport * pInternalImport = pModule->GetMDImport(); // Enumerate the formal type parameters HENUMInternal hEnumGenericPars; HRESULT hr = pInternalImport->EnumInit(mdtGenericParam, cl, &hEnumGenericPars); if (FAILED(hr)) pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); DWORD numGenericArgs = pInternalImport->EnumGetCount(&hEnumGenericPars); // Work out what kind of EEClass we're creating w.r.t. generics. If there // are no generics involved this will be a VMFLAG_NONGENERIC. BOOL fHasVariance = FALSE; if (numGenericArgs > 0) { // Generic type verification { DWORD dwAttr; mdToken tkParent; if (FAILED(pInternalImport->GetTypeDefProps(cl, &dwAttr, &tkParent))) { pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // A generic with explicit layout is not allowed. if (IsTdExplicitLayout(dwAttr)) { pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_EXPLICIT_GENERIC); } } bmtGenericsInfo->numDicts = 1; mdGenericParam tkTyPar; bmtGenericsInfo->pVarianceInfo = new (pStackingAllocator) BYTE[numGenericArgs]; // If it has generic arguments but none have been specified, then load the instantiation at the formals if (inst.IsEmpty()) { bmtGenericsInfo->fTypicalInstantiation = TRUE; S_UINT32 scbAllocSize = S_UINT32(numGenericArgs) * S_UINT32(sizeof(TypeHandle)); TypeHandle * genericArgs = (TypeHandle *) pStackingAllocator->Alloc(scbAllocSize); inst = Instantiation(genericArgs, numGenericArgs); bmtGenericsInfo->fSharedByGenericInstantiations = FALSE; } else { bmtGenericsInfo->fTypicalInstantiation = FALSE; bmtGenericsInfo->fSharedByGenericInstantiations = TypeHandle::IsCanonicalSubtypeInstantiation(inst); _ASSERTE(bmtGenericsInfo->fSharedByGenericInstantiations == ClassLoader::IsSharableInstantiation(inst)); #ifdef _DEBUG // Set typical instantiation MethodTable { MethodTable * pTypicalInstantiationMT = pModule->LookupTypeDef(cl).AsMethodTable(); // Typical instantiation was already loaded by code:ClassLoader::LoadApproxTypeThrowing _ASSERTE(pTypicalInstantiationMT != NULL); bmtGenericsInfo->dbg_pTypicalInstantiationMT = pTypicalInstantiationMT; } #endif //_DEBUG } TypeHandle * pDestInst = (TypeHandle *)inst.GetRawArgs(); { // Protect multi-threaded access to Module.m_GenericParamToDescMap. Other threads may be loading the same type // to break type recursion dead-locks CrstHolder ch(&pModule->GetClassLoader()->m_AvailableTypesLock); for (unsigned int i = 0; i < numGenericArgs; i++) { pInternalImport->EnumNext(&hEnumGenericPars, &tkTyPar); DWORD flags; if (FAILED(pInternalImport->GetGenericParamProps(tkTyPar, NULL, &flags, NULL, NULL, NULL))) { pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } if (bmtGenericsInfo->fTypicalInstantiation) { // code:Module.m_GenericParamToDescMap maps generic parameter RIDs to TypeVarTypeDesc // instances so that we do not leak by allocating them all over again, if the type // repeatedly fails to load. TypeVarTypeDesc* pTypeVarTypeDesc = pModule->LookupGenericParam(tkTyPar); if (pTypeVarTypeDesc == NULL) { // Do NOT use the alloc tracker for this memory as we need it stay allocated even if the load fails. void* mem = (void*)pModule->GetLoaderAllocator()->GetLowFrequencyHeap()->AllocMem(S_SIZE_T(sizeof(TypeVarTypeDesc))); pTypeVarTypeDesc = new (mem) TypeVarTypeDesc(pModule, cl, i, tkTyPar); pModule->StoreGenericParamThrowing(tkTyPar, pTypeVarTypeDesc); } pDestInst[i] = TypeHandle(pTypeVarTypeDesc); } DWORD varianceAnnotation = flags & gpVarianceMask; bmtGenericsInfo->pVarianceInfo[i] = static_cast<BYTE>(varianceAnnotation); if (varianceAnnotation != gpNonVariant) { if (varianceAnnotation != gpContravariant && varianceAnnotation != gpCovariant) { pModule->GetAssembly()->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADVARIANCE); } else { fHasVariance = TRUE; } } } } if (!fHasVariance) bmtGenericsInfo->pVarianceInfo = NULL; } else { bmtGenericsInfo->fTypicalInstantiation = FALSE; bmtGenericsInfo->fSharedByGenericInstantiations = FALSE; bmtGenericsInfo->numDicts = 0; } bmtGenericsInfo->fContainsGenericVariables = MethodTable::ComputeContainsGenericVariables(inst); SigTypeContext typeContext(inst, Instantiation()); bmtGenericsInfo->typeContext = typeContext; } // MethodTableBuilder::GatherGenericsInfo //======================================================================= // This is invoked from the class loader while building the internal structures for a type // This function should check if explicit layout metadata exists. // // Returns: // TRUE - yes, there's layout metadata // FALSE - no, there's no layout. // fail - throws a typeload exception // // If TRUE, // *pNLType gets set to nltAnsi or nltUnicode // *pPackingSize declared packing size // *pfExplicitoffsets offsets explicit in metadata or computed? //======================================================================= BOOL HasLayoutMetadata(Assembly* pAssembly, IMDInternalImport* pInternalImport, mdTypeDef cl, MethodTable* pParentMT, BYTE* pPackingSize, BYTE* pNLTType, BOOL* pfExplicitOffsets) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; PRECONDITION(CheckPointer(pInternalImport)); PRECONDITION(CheckPointer(pPackingSize)); PRECONDITION(CheckPointer(pNLTType)); PRECONDITION(CheckPointer(pfExplicitOffsets)); } CONTRACTL_END; HRESULT hr; ULONG clFlags; if (FAILED(pInternalImport->GetTypeDefProps(cl, &clFlags, NULL))) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } if (IsTdAutoLayout(clFlags)) { return FALSE; } else if (IsTdSequentialLayout(clFlags)) { *pfExplicitOffsets = FALSE; } else if (IsTdExplicitLayout(clFlags)) { *pfExplicitOffsets = TRUE; } else { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // We now know this class has seq. or explicit layout. Ensure the parent does too. if (pParentMT && !(pParentMT->IsObjectClass() || pParentMT->IsValueTypeClass()) && !(pParentMT->HasLayout())) pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); if (IsTdAnsiClass(clFlags)) { *pNLTType = nltAnsi; } else if (IsTdUnicodeClass(clFlags)) { *pNLTType = nltUnicode; } else if (IsTdAutoClass(clFlags)) { #ifdef TARGET_WINDOWS *pNLTType = nltUnicode; #else *pNLTType = nltAnsi; // We don't have a utf8 charset in metadata yet, but ANSI == UTF-8 off-Windows #endif } else { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } DWORD dwPackSize; hr = pInternalImport->GetClassPackSize(cl, &dwPackSize); if (FAILED(hr) || dwPackSize == 0) dwPackSize = DEFAULT_PACKING_SIZE; // This has to be reduced to a BYTE value, so we had better make sure it fits. If // not, we'll throw an exception instead of trying to munge the value to what we // think the user might want. if (!FitsInU1((UINT64)(dwPackSize))) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } *pPackingSize = (BYTE)dwPackSize; return TRUE; } //--------------------------------------------------------------------------------------- // // This service is called for normal classes -- and for the pseudo class we invent to // hold the module's public members. // //static TypeHandle ClassLoader::CreateTypeHandleForTypeDefThrowing( Module * pModule, mdTypeDef cl, Instantiation inst, AllocMemTracker * pamTracker) { CONTRACT(TypeHandle) { STANDARD_VM_CHECK; PRECONDITION(GetThreadNULLOk() != NULL); PRECONDITION(CheckPointer(pModule)); POSTCONDITION(!RETVAL.IsNull()); POSTCONDITION(CheckPointer(RETVAL.GetMethodTable())); } CONTRACT_END; MethodTable * pMT = NULL; MethodTable * pParentMethodTable = NULL; SigPointer parentInst; mdTypeDef tdEnclosing = mdTypeDefNil; DWORD cInterfaces; BuildingInterfaceInfo_t * pInterfaceBuildInfo = NULL; IMDInternalImport * pInternalImport = NULL; LayoutRawFieldInfo * pLayoutRawFieldInfos = NULL; MethodTableBuilder::bmtGenericsInfo genericsInfo; Assembly * pAssembly = pModule->GetAssembly(); pInternalImport = pModule->GetMDImport(); if (TypeFromToken(cl) != mdtTypeDef || !pInternalImport->IsValidToken(cl)) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // GetCheckpoint for the thread-based allocator // This checkpoint provides a scope for all transient allocations of data structures // used during class loading. // <NICE> Ideally a debug/checked build should pass around tokens indicating the Checkpoint // being used and check these dynamically </NICE> ACQUIRE_STACKING_ALLOCATOR(pStackingAllocator); // Gather up generics info MethodTableBuilder::GatherGenericsInfo(pModule, cl, inst, &genericsInfo, pStackingAllocator); Module * pLoaderModule = pModule; if (!inst.IsEmpty()) { pLoaderModule = ClassLoader::ComputeLoaderModuleWorker( pModule, cl, inst, Instantiation()); pLoaderModule->GetLoaderAllocator()->EnsureInstantiation(pModule, inst); } LoaderAllocator * pAllocator = pLoaderModule->GetLoaderAllocator(); { // As this is loading a parent type, we are allowed to override the load type limit. OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOAD_APPROXPARENTS); pParentMethodTable = LoadApproxParentThrowing(pModule, cl, &parentInst, &genericsInfo.typeContext); } if (pParentMethodTable != NULL) { // Since methods on System.Array assume the layout of arrays, we can not allow // subclassing of arrays, it is sealed from the users point of view. // Value types and enums should be sealed - disable inheritting from them (we cannot require sealed // flag because of AppCompat) if (pParentMethodTable->IsSealed() || (pParentMethodTable == g_pArrayClass) || pParentMethodTable->IsValueType()) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_SEALEDPARENT); } DWORD dwTotalDicts = genericsInfo.numDicts + pParentMethodTable->GetNumDicts(); if (!FitsIn<WORD>(dwTotalDicts)) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_TOOMANYGENERICARGS); } genericsInfo.numDicts = static_cast<WORD>(dwTotalDicts); } GetEnclosingClassThrowing(pInternalImport, pModule, cl, &tdEnclosing); BYTE nstructPackingSize = 0, nstructNLT = 0; BOOL fExplicitOffsets = FALSE; // NOTE: HasLayoutMetadata does not load classes BOOL fHasLayout = !genericsInfo.fContainsGenericVariables && HasLayoutMetadata( pModule->GetAssembly(), pInternalImport, cl, pParentMethodTable, &nstructPackingSize, &nstructNLT, &fExplicitOffsets); BOOL fIsEnum = ((g_pEnumClass != NULL) && (pParentMethodTable == g_pEnumClass)); // enums may not have layout because they derive from g_pEnumClass and that has no layout // this is enforced by HasLayoutMetadata above _ASSERTE(!(fIsEnum && fHasLayout)); // This is a delegate class if it derives from MulticastDelegate (we do not allow single cast delegates) BOOL fIsDelegate = pParentMethodTable && pParentMethodTable == g_pMulticastDelegateClass; // Create a EEClass entry for it, filling out a few fields, such as the parent class token // (and the generic type should we be creating an instantiation) EEClass * pClass = MethodTableBuilder::CreateClass( pModule, cl, fHasLayout, fIsDelegate, fIsEnum, &genericsInfo, pAllocator, pamTracker); if ((pParentMethodTable != NULL) && (pParentMethodTable == g_pDelegateClass)) { // Note we do not allow single cast delegates if (pModule->GetAssembly() != SystemDomain::SystemAssembly()) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, BFA_CANNOT_INHERIT_FROM_DELEGATE); } #ifdef _DEBUG // Only MultiCastDelegate should inherit from Delegate LPCUTF8 className; LPCUTF8 nameSpace; if (FAILED(pInternalImport->GetNameOfTypeDef(cl, &className, &nameSpace))) { className = nameSpace = "Invalid TypeDef record"; } BAD_FORMAT_NOTHROW_ASSERT(strcmp(className, "MulticastDelegate") == 0); #endif } if (fIsDelegate) { if (!pClass->IsSealed()) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, BFA_DELEGATE_CLASS_NOTSEALED); } pClass->SetIsDelegate(); } if (tdEnclosing != mdTypeDefNil) { pClass->SetIsNested(); THROW_BAD_FORMAT_MAYBE(IsTdNested(pClass->GetProtection()), VLDTR_E_TD_ENCLNOTNESTED, pModule); } else if (IsTdNested(pClass->GetProtection())) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // We only permit generic interfaces and delegates to have variant type parameters if (genericsInfo.pVarianceInfo != NULL && !pClass->IsInterface() && !fIsDelegate) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_VARIANCE_CLASS); } // Now load all the interfaces HENUMInternalHolder hEnumInterfaceImpl(pInternalImport); hEnumInterfaceImpl.EnumInit(mdtInterfaceImpl, cl); cInterfaces = pInternalImport->EnumGetCount(&hEnumInterfaceImpl); if (cInterfaces != 0) { DWORD i; // Allocate the BuildingInterfaceList table pInterfaceBuildInfo = new (pStackingAllocator) BuildingInterfaceInfo_t[cInterfaces]; mdInterfaceImpl ii; for (i = 0; pInternalImport->EnumNext(&hEnumInterfaceImpl, &ii); i++) { // Get properties on this interface mdTypeRef crInterface; if (FAILED(pInternalImport->GetTypeOfInterfaceImpl(ii, &crInterface))) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // validate the token mdToken crIntType = (RidFromToken(crInterface) && pInternalImport->IsValidToken(crInterface)) ? TypeFromToken(crInterface) : 0; switch (crIntType) { case mdtTypeDef: case mdtTypeRef: case mdtTypeSpec: break; default: pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_INTERFACENULL); } TypeHandle intType; { OVERRIDE_TYPE_LOAD_LEVEL_LIMIT(CLASS_LOAD_APPROXPARENTS); intType = LoadApproxTypeThrowing(pModule, crInterface, NULL, &genericsInfo.typeContext); } pInterfaceBuildInfo[i].m_pMethodTable = intType.AsMethodTable(); if (pInterfaceBuildInfo[i].m_pMethodTable == NULL) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_INTERFACENULL); } // Ensure this is an interface if (!pInterfaceBuildInfo[i].m_pMethodTable->IsInterface()) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_NOTINTERFACE); } // Check interface for use of variant type parameters if ((genericsInfo.pVarianceInfo != NULL) && (TypeFromToken(crInterface) == mdtTypeSpec)) { ULONG cSig; PCCOR_SIGNATURE pSig; if (FAILED(pInternalImport->GetTypeSpecFromToken(crInterface, &pSig, &cSig))) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } // Interfaces behave covariantly if (!EEClass::CheckVarianceInSig( genericsInfo.GetNumGenericArgs(), genericsInfo.pVarianceInfo, pModule, SigPointer(pSig, cSig), gpCovariant)) { pAssembly->ThrowTypeLoadException( pInternalImport, cl, IDS_CLASSLOAD_VARIANCE_IN_INTERFACE); } } } _ASSERTE(i == cInterfaces); } if (fHasLayout || /* Variant delegates should not have any instance fields of the variant. type parameter. For now, we just completely disallow all fields even if they are non-variant or static, as it is not a useful scenario. @TODO: A more logical place for this check would be in MethodTableBuilder::EnumerateClassMembers() */ (fIsDelegate && genericsInfo.pVarianceInfo)) { // check for fields and variance ULONG cFields; HENUMInternalHolder hEnumField(pInternalImport); hEnumField.EnumInit(mdtFieldDef, cl); cFields = pInternalImport->EnumGetCount(&hEnumField); if ((cFields != 0) && fIsDelegate && (genericsInfo.pVarianceInfo != NULL)) { pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_VARIANCE_IN_DELEGATE); } if (fHasLayout) { // Though we fail on this condition, we should never run into it. CONSISTENCY_CHECK(nstructPackingSize != 0); // MD Val check: PackingSize if((nstructPackingSize == 0) || (nstructPackingSize > 128) || (nstructPackingSize & (nstructPackingSize-1))) { THROW_BAD_FORMAT_MAYBE(!"ClassLayout:Invalid PackingSize", BFA_BAD_PACKING_SIZE, pModule); pAssembly->ThrowTypeLoadException(pInternalImport, cl, IDS_CLASSLOAD_BADFORMAT); } pLayoutRawFieldInfos = (LayoutRawFieldInfo *)pStackingAllocator->Alloc( (S_UINT32(1) + S_UINT32(cFields)) * S_UINT32(sizeof(LayoutRawFieldInfo))); { // Warning: this can load classes CONTRACT_VIOLATION(LoadsTypeViolation); // Set a flag that allows us to break dead-locks that are result of the LoadsTypeViolation ThreadStateNCStackHolder tsNC(TRUE, Thread::TSNC_LoadsTypeViolation); EEClassLayoutInfo::CollectLayoutFieldMetadataThrowing( cl, nstructPackingSize, nstructNLT, fExplicitOffsets, pParentMethodTable, cFields, &hEnumField, pModule, &genericsInfo.typeContext, &(((LayoutEEClass *)pClass)->m_LayoutInfo), pLayoutRawFieldInfos, pAllocator, pamTracker); } } } // Resolve this class, given that we know now that all of its dependencies are loaded and resolved. // !!! This must be the last thing in this TRY block: if MethodTableBuilder succeeds, it has published the class // and there is no going back. MethodTableBuilder builder( NULL, pClass, pStackingAllocator, pamTracker); pMT = builder.BuildMethodTableThrowing( pAllocator, pLoaderModule, pModule, cl, pInterfaceBuildInfo, pLayoutRawFieldInfos, pParentMethodTable, &genericsInfo, parentInst, (WORD)cInterfaces); RETURN(TypeHandle(pMT)); } // ClassLoader::CreateTypeHandleForTypeDefThrowing
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/typehash.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // File: typehash.cpp // // #include "common.h" #include "excep.h" #include "typehash.h" #include "eeconfig.h" #include "generics.h" #include "typestring.h" #include "typedesc.h" #include "typekey.h" #include "dacenumerablehash.inl" #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable:4244) #endif // _MSC_VER #ifndef DACCESS_COMPILE // ============================================================================ // Class hash table methods // ============================================================================ /* static */ EETypeHashTable *EETypeHashTable::Create(LoaderAllocator* pAllocator, Module *pModule, DWORD dwNumBuckets, AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END LoaderHeap *pHeap = pAllocator->GetLowFrequencyHeap(); EETypeHashTable *pThis = (EETypeHashTable*)pamTracker->Track(pHeap->AllocMem((S_SIZE_T)sizeof(EETypeHashTable))); new (pThis) EETypeHashTable(pModule, pHeap, dwNumBuckets); #ifdef _DEBUG pThis->InitUnseal(); #endif pThis->m_pAllocator = pAllocator; return pThis; } LoaderAllocator *EETypeHashTable::GetLoaderAllocator() { WRAPPER_NO_CONTRACT; if (m_pAllocator) { return m_pAllocator; } else { _ASSERTE(m_pModule != NULL); return GetModule()->GetLoaderAllocator(); } } #endif // #ifdef DACCESS_COMPILE void EETypeHashTable::Iterator::Reset() { WRAPPER_NO_CONTRACT; if (m_pTable) { #ifdef _DEBUG m_pTable->Unseal(); #endif m_pTable = NULL; } Init(); } void EETypeHashTable::Iterator::Init() { WRAPPER_NO_CONTRACT; #ifdef _DEBUG if (m_pTable) m_pTable->Seal(); // The table cannot be changing while it is being iterated #endif m_fIterating = false; } EETypeHashTable::Iterator::Iterator() { WRAPPER_NO_CONTRACT; m_pTable = NULL; Init(); } EETypeHashTable::Iterator::Iterator(EETypeHashTable * pTable) { WRAPPER_NO_CONTRACT; m_pTable = pTable; Init(); } EETypeHashTable::Iterator::~Iterator() { WRAPPER_NO_CONTRACT; #ifdef _DEBUG if (m_pTable) m_pTable->Unseal(); // Done with the iterator so we unseal #endif } BOOL EETypeHashTable::FindNext(Iterator *it, EETypeHashEntry **ppEntry) { LIMITED_METHOD_CONTRACT; if (!it->m_fIterating) { BaseInitIterator(&it->m_sIterator); it->m_fIterating = true; } *ppEntry = it->m_sIterator.Next(); return *ppEntry ? TRUE : FALSE; } DWORD EETypeHashTable::GetCount() { LIMITED_METHOD_CONTRACT; return BaseGetElementCount(); } static DWORD HashTypeHandle(TypeHandle t); // Calculate hash value for a type def or instantiated type def static DWORD HashPossiblyInstantiatedType(mdTypeDef token, Instantiation inst) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(TypeFromToken(token) == mdtTypeDef); SUPPORTS_DAC; } CONTRACTL_END INT_PTR dwHash = 5381; dwHash = ((dwHash << 5) + dwHash) ^ token; if (!inst.IsEmpty()) { // Hash n type parameters for (DWORD i = 0; i < inst.GetNumArgs(); i++) { dwHash = ((dwHash << 5) + dwHash) ^ inst[i].AsTAddr(); } } return dwHash; } // Calculate hash value for a function pointer type static DWORD HashFnPtrType(BYTE callConv, DWORD numArgs, TypeHandle *retAndArgTypes) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; INT_PTR dwHash = 5381; dwHash = ((dwHash << 5) + dwHash) ^ ELEMENT_TYPE_FNPTR; dwHash = ((dwHash << 5) + dwHash) ^ callConv; dwHash = ((dwHash << 5) + dwHash) ^ numArgs; for (DWORD i = 0; i <= numArgs; i++) { dwHash = ((dwHash << 5) + dwHash) ^ retAndArgTypes[i].AsTAddr(); } return dwHash; } // Calculate hash value for an array/pointer/byref type static DWORD HashParamType(CorElementType kind, TypeHandle typeParam) { WRAPPER_NO_CONTRACT; INT_PTR dwHash = 5381; dwHash = ((dwHash << 5) + dwHash) ^ kind; dwHash = ((dwHash << 5) + dwHash) ^ typeParam.AsTAddr(); return dwHash; } // Calculate hash value from type handle static DWORD HashTypeHandle(TypeHandle t) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(t)); PRECONDITION(!t.IsEncodedFixup()); SUPPORTS_DAC; } CONTRACTL_END; DWORD retVal = 0; if (t.HasTypeParam()) { retVal = HashParamType(t.GetInternalCorElementType(), t.GetTypeParam()); } else if (t.HasInstantiation()) { retVal = HashPossiblyInstantiatedType(t.GetCl(), t.GetInstantiation()); } else if (t.IsFnPtrType()) { FnPtrTypeDesc* pTD = t.AsFnPtrType(); retVal = HashFnPtrType(pTD->GetCallConv(), pTD->GetNumArgs(), pTD->GetRetAndArgTypesPointer()); } else if (t.IsGenericVariable()) { _ASSERTE(!"Generic variables are unexpected here."); retVal = t.AsTAddr(); } else retVal = HashPossiblyInstantiatedType(t.GetCl(), Instantiation()); return retVal; } // Calculate hash value from key DWORD HashTypeKey(TypeKey* pKey) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(pKey)); SUPPORTS_DAC; } CONTRACTL_END; if (pKey->GetKind() == ELEMENT_TYPE_CLASS) { return HashPossiblyInstantiatedType(pKey->GetTypeToken(), pKey->GetInstantiation()); } else if (pKey->GetKind() == ELEMENT_TYPE_FNPTR) { return HashFnPtrType(pKey->GetCallConv(), pKey->GetNumArgs(), pKey->GetRetAndArgTypes()); } else { return HashParamType(pKey->GetKind(), pKey->GetElementType()); } } // Look up a value in the hash table // // The logic is subtle: type handles in the hash table may not be // restored, but we need to compare components of the types (rank and // element type for arrays, generic type and instantiation for // instantiated types) against pKey // // We avoid restoring types during search by cracking the signature // encoding used by the zapper for out-of-module types e.g. in the // instantiation of an instantiated type. EETypeHashEntry_t *EETypeHashTable::FindItem(TypeKey* pKey) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(pKey)); SUPPORTS_DAC; } CONTRACTL_END; EETypeHashEntry_t * result = NULL; DWORD dwHash = HashTypeKey(pKey); EETypeHashEntry_t * pSearch; CorElementType kind = pKey->GetKind(); LookupContext sContext; if (kind == ELEMENT_TYPE_CLASS) { pSearch = BaseFindFirstEntryByHash(dwHash, &sContext); while (pSearch) { if (CompareInstantiatedType(pSearch->GetTypeHandle(), pKey->GetModule(), pKey->GetTypeToken(), pKey->GetInstantiation())) { result = pSearch; break; } pSearch = BaseFindNextEntryByHash(&sContext); } } else if (kind == ELEMENT_TYPE_FNPTR) { BYTE callConv = pKey->GetCallConv(); DWORD numArgs = pKey->GetNumArgs(); TypeHandle *retAndArgTypes = pKey->GetRetAndArgTypes(); pSearch = BaseFindFirstEntryByHash(dwHash, &sContext); while (pSearch) { if (CompareFnPtrType(pSearch->GetTypeHandle(), callConv, numArgs, retAndArgTypes)) { result = pSearch; break; } pSearch = BaseFindNextEntryByHash(&sContext); } } else { // Type parameters for array and pointer types are necessarily in the same loader module // as the constructed type itself, so we can just do handle comparisons // Unfortunately the rank of the array might live elsewhere for (pSearch = BaseFindFirstEntryByHash(dwHash, &sContext); pSearch != NULL; pSearch = BaseFindNextEntryByHash(&sContext)) { if (!pSearch->GetTypeHandle().IsRestored()) { // workaround: If we encounter an unrestored MethodTable, then it // isn't the type for which we are looking (plus, it will crash // in GetSignatureCorElementType). However TypeDescs can be // accessed when unrestored. Also they are accessed in that // manner at startup when we're loading the global types // (i.e. System.Object). if (!pSearch->GetTypeHandle().IsTypeDesc()) { // Not a match continue; } else { // We have an unrestored TypeDesc } } if (pSearch->GetTypeHandle().GetSignatureCorElementType() != kind) continue; if (pSearch->GetTypeHandle().GetTypeParam() != pKey->GetElementType()) continue; if (kind == ELEMENT_TYPE_ARRAY) { TypeHandle th = pSearch->GetTypeHandle(); { if (th.GetRank() != pKey->GetRank()) continue; } } result = pSearch; break; } } return result; } BOOL EETypeHashTable::CompareInstantiatedType(TypeHandle t, Module *pModule, mdTypeDef token, Instantiation inst) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(t)); PRECONDITION(CheckPointer(pModule)); PRECONDITION(!inst.IsEmpty()); SUPPORTS_DAC; } CONTRACTL_END if (t.IsTypeDesc()) return FALSE; // Even the EEClass pointer might be encoded MethodTable * pMT = t.AsMethodTable(); if (pMT->GetNumGenericArgs() != inst.GetNumArgs()) return FALSE; { // First check that the typedef tokens match if (pMT->GetCl() != token) return FALSE; // The class might not be restored, and its metadata module pointer might be encoded. // This will return NULL if the module for the corresponding generic class // is not loaded. Module *pGenericModuleIfLoaded = pMT->GetModuleIfLoaded(); // Now check that the modules match if (!pGenericModuleIfLoaded || dac_cast<TADDR>(pGenericModuleIfLoaded) != dac_cast<TADDR>(pModule)) return FALSE; } Instantiation candidateInst = t.GetInstantiation(); // Now check the instantiations. Some type arguments might be encoded. for (DWORD i = 0; i < inst.GetNumArgs(); i++) { if (candidateInst[i] != inst[i]) { return FALSE; } } return TRUE; } BOOL EETypeHashTable::CompareFnPtrType(TypeHandle t, BYTE callConv, DWORD numArgs, TypeHandle *retAndArgTypes) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(t)); PRECONDITION(CheckPointer(retAndArgTypes)); SUPPORTS_DAC; } CONTRACTL_END if (!t.IsFnPtrType()) return FALSE; #ifndef DACCESS_COMPILE FnPtrTypeDesc* pTD = t.AsFnPtrType(); if (pTD->GetNumArgs() != numArgs || pTD->GetCallConv() != callConv) return FALSE; // Now check the return and argument types. Some type arguments might be encoded. TypeHandle *retAndArgTypes2 = pTD->GetRetAndArgTypesPointer(); for (DWORD i = 0; i <= numArgs; i++) { if (retAndArgTypes2[i] != retAndArgTypes[i]) { return FALSE; } } return TRUE; #else DacNotImpl(); return FALSE; #endif // #ifndef DACCESS_COMPILE } TypeHandle EETypeHashTable::GetValue(TypeKey *pKey) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; EETypeHashEntry_t *pItem = FindItem(pKey); if (pItem) { TypeHandle th = pItem->GetTypeHandle(); g_IBCLogger.LogTypeHashTableAccess(&th); return pItem->GetTypeHandle(); } else return TypeHandle(); } #ifndef DACCESS_COMPILE BOOL EETypeHashTable::ContainsValue(TypeHandle th) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; TypeKey typeKey = th.GetTypeKey(); return !GetValue(&typeKey).IsNull(); } // Insert a value not already in the hash table VOID EETypeHashTable::InsertValue(TypeHandle data) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(IsUnsealed()); // If we are sealed then we should not be adding to this hashtable PRECONDITION(CheckPointer(data)); PRECONDITION(!data.IsEncodedFixup()); PRECONDITION(!data.IsGenericTypeDefinition()); // Generic type defs live in typedef table (availableClasses) PRECONDITION(data.HasInstantiation() || data.HasTypeParam() || data.IsFnPtrType()); // It's an instantiated type or an array/ptr/byref type PRECONDITION(m_pModule == NULL || GetModule()->IsTenured()); // Destruct won't destruct m_pAvailableParamTypes for non-tenured modules - so make sure no one tries to insert one before the Module has been tenured } CONTRACTL_END EETypeHashEntry_t * pNewEntry = (EETypeHashEntry_t*)BaseAllocateEntry(NULL); pNewEntry->SetTypeHandle(data); BaseInsertEntry(HashTypeHandle(data), pNewEntry); } #endif // #ifndef DACCESS_COMPILE #ifdef DACCESS_COMPILE void EETypeHashTable::EnumMemoryRegionsForEntry(EETypeHashEntry_t *pEntry, CLRDataEnumMemoryFlags flags) { SUPPORTS_DAC; pEntry->GetTypeHandle().EnumMemoryRegions(flags); } #endif // #ifdef DACCESS_COMPILE TypeHandle EETypeHashEntry::GetTypeHandle() { LIMITED_METHOD_DAC_CONTRACT; // Remove any hot entry indicator bit that may have been set as the result of Ngen saving. TADDR data = dac_cast<TADDR>(GetData()); return TypeHandle::FromTAddr(data & ~0x1); } #ifndef DACCESS_COMPILE void EETypeHashEntry::SetTypeHandle(TypeHandle handle) { LIMITED_METHOD_DAC_CONTRACT; // We plan to steal the low-order bit of the handle for ngen purposes. _ASSERTE((handle.AsTAddr() & 0x1) == 0); m_data = handle.AsPtr(); } #endif // !DACCESS_COMPILE #ifdef _MSC_VER #pragma warning(pop) #endif // _MSC_VER: warning C4244
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // File: typehash.cpp // // #include "common.h" #include "excep.h" #include "typehash.h" #include "eeconfig.h" #include "generics.h" #include "typestring.h" #include "typedesc.h" #include "typekey.h" #include "dacenumerablehash.inl" #ifndef DACCESS_COMPILE // ============================================================================ // Class hash table methods // ============================================================================ /* static */ EETypeHashTable *EETypeHashTable::Create(LoaderAllocator* pAllocator, Module *pModule, DWORD dwNumBuckets, AllocMemTracker *pamTracker) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); } CONTRACTL_END LoaderHeap *pHeap = pAllocator->GetLowFrequencyHeap(); EETypeHashTable *pThis = (EETypeHashTable*)pamTracker->Track(pHeap->AllocMem((S_SIZE_T)sizeof(EETypeHashTable))); new (pThis) EETypeHashTable(pModule, pHeap, dwNumBuckets); #ifdef _DEBUG pThis->InitUnseal(); #endif pThis->m_pAllocator = pAllocator; return pThis; } LoaderAllocator *EETypeHashTable::GetLoaderAllocator() { WRAPPER_NO_CONTRACT; if (m_pAllocator) { return m_pAllocator; } else { _ASSERTE(m_pModule != NULL); return GetModule()->GetLoaderAllocator(); } } #endif // #ifdef DACCESS_COMPILE void EETypeHashTable::Iterator::Reset() { WRAPPER_NO_CONTRACT; if (m_pTable) { #ifdef _DEBUG m_pTable->Unseal(); #endif m_pTable = NULL; } Init(); } void EETypeHashTable::Iterator::Init() { WRAPPER_NO_CONTRACT; #ifdef _DEBUG if (m_pTable) m_pTable->Seal(); // The table cannot be changing while it is being iterated #endif m_fIterating = false; } EETypeHashTable::Iterator::Iterator() { WRAPPER_NO_CONTRACT; m_pTable = NULL; Init(); } EETypeHashTable::Iterator::Iterator(EETypeHashTable * pTable) { WRAPPER_NO_CONTRACT; m_pTable = pTable; Init(); } EETypeHashTable::Iterator::~Iterator() { WRAPPER_NO_CONTRACT; #ifdef _DEBUG if (m_pTable) m_pTable->Unseal(); // Done with the iterator so we unseal #endif } BOOL EETypeHashTable::FindNext(Iterator *it, EETypeHashEntry **ppEntry) { LIMITED_METHOD_CONTRACT; if (!it->m_fIterating) { BaseInitIterator(&it->m_sIterator); it->m_fIterating = true; } *ppEntry = it->m_sIterator.Next(); return *ppEntry ? TRUE : FALSE; } DWORD EETypeHashTable::GetCount() { LIMITED_METHOD_CONTRACT; return BaseGetElementCount(); } static DWORD HashTypeHandle(TypeHandle t); // Calculate hash value for a type def or instantiated type def static DWORD HashPossiblyInstantiatedType(mdTypeDef token, Instantiation inst) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(TypeFromToken(token) == mdtTypeDef); SUPPORTS_DAC; } CONTRACTL_END INT_PTR dwHash = 5381; dwHash = ((dwHash << 5) + dwHash) ^ token; if (!inst.IsEmpty()) { // Hash n type parameters for (DWORD i = 0; i < inst.GetNumArgs(); i++) { dwHash = ((dwHash << 5) + dwHash) ^ inst[i].AsTAddr(); } } return (DWORD)dwHash; } // Calculate hash value for a function pointer type static DWORD HashFnPtrType(BYTE callConv, DWORD numArgs, TypeHandle *retAndArgTypes) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; INT_PTR dwHash = 5381; dwHash = ((dwHash << 5) + dwHash) ^ ELEMENT_TYPE_FNPTR; dwHash = ((dwHash << 5) + dwHash) ^ callConv; dwHash = ((dwHash << 5) + dwHash) ^ numArgs; for (DWORD i = 0; i <= numArgs; i++) { dwHash = ((dwHash << 5) + dwHash) ^ retAndArgTypes[i].AsTAddr(); } return (DWORD)dwHash; } // Calculate hash value for an array/pointer/byref type static DWORD HashParamType(CorElementType kind, TypeHandle typeParam) { WRAPPER_NO_CONTRACT; INT_PTR dwHash = 5381; dwHash = ((dwHash << 5) + dwHash) ^ kind; dwHash = ((dwHash << 5) + dwHash) ^ typeParam.AsTAddr(); return (DWORD)dwHash; } // Calculate hash value from type handle static DWORD HashTypeHandle(TypeHandle t) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(t)); PRECONDITION(!t.IsEncodedFixup()); SUPPORTS_DAC; } CONTRACTL_END; DWORD retVal = 0; if (t.HasTypeParam()) { retVal = HashParamType(t.GetInternalCorElementType(), t.GetTypeParam()); } else if (t.HasInstantiation()) { retVal = HashPossiblyInstantiatedType(t.GetCl(), t.GetInstantiation()); } else if (t.IsFnPtrType()) { FnPtrTypeDesc* pTD = t.AsFnPtrType(); retVal = HashFnPtrType(pTD->GetCallConv(), pTD->GetNumArgs(), pTD->GetRetAndArgTypesPointer()); } else if (t.IsGenericVariable()) { _ASSERTE(!"Generic variables are unexpected here."); retVal = 0; } else { retVal = HashPossiblyInstantiatedType(t.GetCl(), Instantiation()); } return retVal; } // Calculate hash value from key DWORD HashTypeKey(TypeKey* pKey) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(pKey)); SUPPORTS_DAC; } CONTRACTL_END; if (pKey->GetKind() == ELEMENT_TYPE_CLASS) { return HashPossiblyInstantiatedType(pKey->GetTypeToken(), pKey->GetInstantiation()); } else if (pKey->GetKind() == ELEMENT_TYPE_FNPTR) { return HashFnPtrType(pKey->GetCallConv(), pKey->GetNumArgs(), pKey->GetRetAndArgTypes()); } else { return HashParamType(pKey->GetKind(), pKey->GetElementType()); } } // Look up a value in the hash table // // The logic is subtle: type handles in the hash table may not be // restored, but we need to compare components of the types (rank and // element type for arrays, generic type and instantiation for // instantiated types) against pKey // // We avoid restoring types during search by cracking the signature // encoding used by the zapper for out-of-module types e.g. in the // instantiation of an instantiated type. EETypeHashEntry_t *EETypeHashTable::FindItem(TypeKey* pKey) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(pKey)); SUPPORTS_DAC; } CONTRACTL_END; EETypeHashEntry_t * result = NULL; DWORD dwHash = HashTypeKey(pKey); EETypeHashEntry_t * pSearch; CorElementType kind = pKey->GetKind(); LookupContext sContext; if (kind == ELEMENT_TYPE_CLASS) { pSearch = BaseFindFirstEntryByHash(dwHash, &sContext); while (pSearch) { if (CompareInstantiatedType(pSearch->GetTypeHandle(), pKey->GetModule(), pKey->GetTypeToken(), pKey->GetInstantiation())) { result = pSearch; break; } pSearch = BaseFindNextEntryByHash(&sContext); } } else if (kind == ELEMENT_TYPE_FNPTR) { BYTE callConv = pKey->GetCallConv(); DWORD numArgs = pKey->GetNumArgs(); TypeHandle *retAndArgTypes = pKey->GetRetAndArgTypes(); pSearch = BaseFindFirstEntryByHash(dwHash, &sContext); while (pSearch) { if (CompareFnPtrType(pSearch->GetTypeHandle(), callConv, numArgs, retAndArgTypes)) { result = pSearch; break; } pSearch = BaseFindNextEntryByHash(&sContext); } } else { // Type parameters for array and pointer types are necessarily in the same loader module // as the constructed type itself, so we can just do handle comparisons // Unfortunately the rank of the array might live elsewhere for (pSearch = BaseFindFirstEntryByHash(dwHash, &sContext); pSearch != NULL; pSearch = BaseFindNextEntryByHash(&sContext)) { if (!pSearch->GetTypeHandle().IsRestored()) { // workaround: If we encounter an unrestored MethodTable, then it // isn't the type for which we are looking (plus, it will crash // in GetSignatureCorElementType). However TypeDescs can be // accessed when unrestored. Also they are accessed in that // manner at startup when we're loading the global types // (i.e. System.Object). if (!pSearch->GetTypeHandle().IsTypeDesc()) { // Not a match continue; } else { // We have an unrestored TypeDesc } } if (pSearch->GetTypeHandle().GetSignatureCorElementType() != kind) continue; if (pSearch->GetTypeHandle().GetTypeParam() != pKey->GetElementType()) continue; if (kind == ELEMENT_TYPE_ARRAY) { TypeHandle th = pSearch->GetTypeHandle(); { if (th.GetRank() != pKey->GetRank()) continue; } } result = pSearch; break; } } return result; } BOOL EETypeHashTable::CompareInstantiatedType(TypeHandle t, Module *pModule, mdTypeDef token, Instantiation inst) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(t)); PRECONDITION(CheckPointer(pModule)); PRECONDITION(!inst.IsEmpty()); SUPPORTS_DAC; } CONTRACTL_END if (t.IsTypeDesc()) return FALSE; // Even the EEClass pointer might be encoded MethodTable * pMT = t.AsMethodTable(); if (pMT->GetNumGenericArgs() != inst.GetNumArgs()) return FALSE; { // First check that the typedef tokens match if (pMT->GetCl() != token) return FALSE; // The class might not be restored, and its metadata module pointer might be encoded. // This will return NULL if the module for the corresponding generic class // is not loaded. Module *pGenericModuleIfLoaded = pMT->GetModuleIfLoaded(); // Now check that the modules match if (!pGenericModuleIfLoaded || dac_cast<TADDR>(pGenericModuleIfLoaded) != dac_cast<TADDR>(pModule)) return FALSE; } Instantiation candidateInst = t.GetInstantiation(); // Now check the instantiations. Some type arguments might be encoded. for (DWORD i = 0; i < inst.GetNumArgs(); i++) { if (candidateInst[i] != inst[i]) { return FALSE; } } return TRUE; } BOOL EETypeHashTable::CompareFnPtrType(TypeHandle t, BYTE callConv, DWORD numArgs, TypeHandle *retAndArgTypes) { CONTRACTL { INSTANCE_CHECK; NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(t)); PRECONDITION(CheckPointer(retAndArgTypes)); SUPPORTS_DAC; } CONTRACTL_END if (!t.IsFnPtrType()) return FALSE; #ifndef DACCESS_COMPILE FnPtrTypeDesc* pTD = t.AsFnPtrType(); if (pTD->GetNumArgs() != numArgs || pTD->GetCallConv() != callConv) return FALSE; // Now check the return and argument types. Some type arguments might be encoded. TypeHandle *retAndArgTypes2 = pTD->GetRetAndArgTypesPointer(); for (DWORD i = 0; i <= numArgs; i++) { if (retAndArgTypes2[i] != retAndArgTypes[i]) { return FALSE; } } return TRUE; #else DacNotImpl(); return FALSE; #endif // #ifndef DACCESS_COMPILE } TypeHandle EETypeHashTable::GetValue(TypeKey *pKey) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; SUPPORTS_DAC; } CONTRACTL_END; EETypeHashEntry_t *pItem = FindItem(pKey); if (pItem) { TypeHandle th = pItem->GetTypeHandle(); g_IBCLogger.LogTypeHashTableAccess(&th); return pItem->GetTypeHandle(); } else return TypeHandle(); } #ifndef DACCESS_COMPILE BOOL EETypeHashTable::ContainsValue(TypeHandle th) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; TypeKey typeKey = th.GetTypeKey(); return !GetValue(&typeKey).IsNull(); } // Insert a value not already in the hash table VOID EETypeHashTable::InsertValue(TypeHandle data) { CONTRACTL { INSTANCE_CHECK; THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM();); PRECONDITION(IsUnsealed()); // If we are sealed then we should not be adding to this hashtable PRECONDITION(CheckPointer(data)); PRECONDITION(!data.IsEncodedFixup()); PRECONDITION(!data.IsGenericTypeDefinition()); // Generic type defs live in typedef table (availableClasses) PRECONDITION(data.HasInstantiation() || data.HasTypeParam() || data.IsFnPtrType()); // It's an instantiated type or an array/ptr/byref type PRECONDITION(m_pModule == NULL || GetModule()->IsTenured()); // Destruct won't destruct m_pAvailableParamTypes for non-tenured modules - so make sure no one tries to insert one before the Module has been tenured } CONTRACTL_END EETypeHashEntry_t * pNewEntry = (EETypeHashEntry_t*)BaseAllocateEntry(NULL); pNewEntry->SetTypeHandle(data); BaseInsertEntry(HashTypeHandle(data), pNewEntry); } #endif // #ifndef DACCESS_COMPILE #ifdef DACCESS_COMPILE void EETypeHashTable::EnumMemoryRegionsForEntry(EETypeHashEntry_t *pEntry, CLRDataEnumMemoryFlags flags) { SUPPORTS_DAC; pEntry->GetTypeHandle().EnumMemoryRegions(flags); } #endif // #ifdef DACCESS_COMPILE TypeHandle EETypeHashEntry::GetTypeHandle() { LIMITED_METHOD_DAC_CONTRACT; // Remove any hot entry indicator bit that may have been set as the result of Ngen saving. TADDR data = dac_cast<TADDR>(GetData()); return TypeHandle::FromTAddr(data & ~0x1); } #ifndef DACCESS_COMPILE void EETypeHashEntry::SetTypeHandle(TypeHandle handle) { LIMITED_METHOD_DAC_CONTRACT; // We plan to steal the low-order bit of the handle for ngen purposes. _ASSERTE((handle.AsTAddr() & 0x1) == 0); m_data = handle.AsPtr(); } #endif // !DACCESS_COMPILE
1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/tests/Interop/PInvoke/CustomMarshalers/CustomMarshalersNative.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <xplatform.h> extern "C" DLL_EXPORT void STDMETHODCALLTYPE Unsupported(void* ptr) { }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <xplatform.h> extern "C" DLL_EXPORT void STDMETHODCALLTYPE Unsupported(void* ptr) { }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/gccover.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifndef __GCCOVER_H__ #define __GCCOVER_H__ #ifdef HAVE_GCCOVER /****************************************************************************/ /* GCCOverageInfo holds the state of which instructions have been visited by a GC and which ones have not */ #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4200 ) // zero-sized array #endif // _MSC_VER class GCCoverageInfo { public: IJitManager::MethodRegionInfo methodRegion; BYTE* curInstr; // The last instruction that was able to execute // Following 6 variables are for prolog / epilog walking coverage ICodeManager* codeMan; // CodeMan for this method GCInfoToken gcInfoToken; // gcInfo for this method Thread* callerThread; // Thread associated with context callerRegs T_CONTEXT callerRegs; // register state when method was entered unsigned gcCount; // GC count at the time we caputured the regs bool doingEpilogChecks; // are we doing epilog unwind checks? (do we care about callerRegs?) enum { hasExecutedSize = 4 }; unsigned hasExecuted[hasExecutedSize]; unsigned totalCount; union { BYTE savedCode[0]; // really variable sized // Note that DAC doesn't marshal the entire byte array automatically. // Any client of this field needs to get the TADDR of this field and // marshal over the bytes properly. }; // Sloppy bitsets (will wrap, and not threadsafe) but best effort is OK // since we just need half decent coverage. BOOL IsBitSetForOffset(unsigned offset) { unsigned dword = hasExecuted[(offset >> 5) % hasExecutedSize]; return(dword & (1 << (offset & 0x1F))); } void SetBitForOffset(unsigned offset) { unsigned* dword = &hasExecuted[(offset >> 5) % hasExecutedSize]; *dword |= (1 << (offset & 0x1F)) ; } void SprinkleBreakpoints(BYTE * saveAddr, PCODE codeStart, size_t codeSize, size_t regionOffsetAdj, BOOL fZapped); }; typedef DPTR(GCCoverageInfo) PTR_GCCoverageInfo; // see code:GCCoverageInfo::savedCode #ifdef _MSC_VER #pragma warning(pop) #endif // _MSC_VER #if defined(TARGET_X86) || defined(TARGET_AMD64) #define INTERRUPT_INSTR 0xF4 // X86 HLT instruction (any 1 byte illegal instruction will do) #define INTERRUPT_INSTR_CALL 0xFA // X86 CLI instruction #define INTERRUPT_INSTR_PROTECT_FIRST_RET 0xFB // X86 STI instruction, protect the first return register #define INTERRUPT_INSTR_PROTECT_SECOND_RET 0xEC // X86 IN instruction, protect the second return register #define INTERRUPT_INSTR_PROTECT_BOTH_RET 0xED // X86 IN instruction, protect both return registers #elif defined(TARGET_ARM) // 16-bit illegal instructions which will cause exception and cause // control to go to GcStress codepath #define INTERRUPT_INSTR 0xde00 #define INTERRUPT_INSTR_CALL 0xde03 // 0xde01 generates SIGTRAP (breakpoint) instead of SIGILL on Unix #define INTERRUPT_INSTR_PROTECT_RET 0xde02 // 32-bit illegal instructions. It is necessary to replace a 16-bit instruction // with a 16-bit illegal instruction, and a 32-bit instruction with a 32-bit // illegal instruction, to make GC stress with the "IT" instruction work, since // it counts the number of instructions that follow it, so we can't change that // number by replacing a 32-bit instruction with a 16-bit illegal instruction // followed by 16 bits of junk that might end up being a legal instruction. // Use the "Permanently UNDEFINED" section in the "ARM Architecture Reference Manual", // section A6.3.4 "Branches and miscellaneous control" table. // Note that we write these as a single 32-bit write, not two 16-bit writes, so the values // need to be arranged as the ARM decoder wants them, with the high-order halfword first // (in little-endian order). #define INTERRUPT_INSTR_32 0xa001f7f0 // 0xf7f0a001 #define INTERRUPT_INSTR_CALL_32 0xa002f7f0 // 0xf7f0a002 #define INTERRUPT_INSTR_PROTECT_RET_32 0xa003f7f0 // 0xf7f0a003 #elif defined(TARGET_ARM64) // The following encodings are undefined. They fall into section C4.5.8 - Data processing (2 source) of // "Arm Architecture Reference Manual ARMv8" // #define INTERRUPT_INSTR 0xBADC0DE0 #define INTERRUPT_INSTR_CALL 0xBADC0DE1 #define INTERRUPT_INSTR_PROTECT_RET 0xBADC0DE2 #endif // _TARGET_* // The body of this method is in this header file to allow // mscordaccore.dll to link without getting an unsat symbol // inline bool IsGcCoverageInterruptInstructionVal(UINT32 instrVal) { #if defined(TARGET_ARM64) switch (instrVal) { case INTERRUPT_INSTR: case INTERRUPT_INSTR_CALL: case INTERRUPT_INSTR_PROTECT_RET: return true; default: return false; } #elif defined(TARGET_ARM) UINT16 instrVal16 = static_cast<UINT16>(instrVal); size_t instrLen = GetARMInstructionLength(instrVal16); if (instrLen == 2) { switch (instrVal16) { case INTERRUPT_INSTR: case INTERRUPT_INSTR_CALL: case INTERRUPT_INSTR_PROTECT_RET: return true; default: return false; } } else { _ASSERTE(instrLen == 4); switch (instrVal) { case INTERRUPT_INSTR_32: case INTERRUPT_INSTR_CALL_32: case INTERRUPT_INSTR_PROTECT_RET_32: return true; default: return false; } } #else // x64 and x86 switch (instrVal) { case INTERRUPT_INSTR: case INTERRUPT_INSTR_CALL: case INTERRUPT_INSTR_PROTECT_FIRST_RET: case INTERRUPT_INSTR_PROTECT_SECOND_RET: case INTERRUPT_INSTR_PROTECT_BOTH_RET: return true; default: return false; } #endif // _TARGET_XXXX_ } bool IsGcCoverageInterruptInstruction(PBYTE instrPtr); bool IsGcCoverageInterrupt(LPVOID ip); #endif // HAVE_GCCOVER #endif // !__GCCOVER_H__
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifndef __GCCOVER_H__ #define __GCCOVER_H__ #ifdef HAVE_GCCOVER /****************************************************************************/ /* GCCOverageInfo holds the state of which instructions have been visited by a GC and which ones have not */ #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4200 ) // zero-sized array #endif // _MSC_VER class GCCoverageInfo { public: IJitManager::MethodRegionInfo methodRegion; BYTE* curInstr; // The last instruction that was able to execute // Following 6 variables are for prolog / epilog walking coverage ICodeManager* codeMan; // CodeMan for this method GCInfoToken gcInfoToken; // gcInfo for this method Thread* callerThread; // Thread associated with context callerRegs T_CONTEXT callerRegs; // register state when method was entered unsigned gcCount; // GC count at the time we caputured the regs bool doingEpilogChecks; // are we doing epilog unwind checks? (do we care about callerRegs?) enum { hasExecutedSize = 4 }; unsigned hasExecuted[hasExecutedSize]; unsigned totalCount; union { BYTE savedCode[0]; // really variable sized // Note that DAC doesn't marshal the entire byte array automatically. // Any client of this field needs to get the TADDR of this field and // marshal over the bytes properly. }; // Sloppy bitsets (will wrap, and not threadsafe) but best effort is OK // since we just need half decent coverage. BOOL IsBitSetForOffset(unsigned offset) { unsigned dword = hasExecuted[(offset >> 5) % hasExecutedSize]; return(dword & (1 << (offset & 0x1F))); } void SetBitForOffset(unsigned offset) { unsigned* dword = &hasExecuted[(offset >> 5) % hasExecutedSize]; *dword |= (1 << (offset & 0x1F)) ; } void SprinkleBreakpoints(BYTE * saveAddr, PCODE codeStart, size_t codeSize, size_t regionOffsetAdj, BOOL fZapped); }; typedef DPTR(GCCoverageInfo) PTR_GCCoverageInfo; // see code:GCCoverageInfo::savedCode #ifdef _MSC_VER #pragma warning(pop) #endif // _MSC_VER #if defined(TARGET_X86) || defined(TARGET_AMD64) #define INTERRUPT_INSTR 0xF4 // X86 HLT instruction (any 1 byte illegal instruction will do) #define INTERRUPT_INSTR_CALL 0xFA // X86 CLI instruction #define INTERRUPT_INSTR_PROTECT_FIRST_RET 0xFB // X86 STI instruction, protect the first return register #define INTERRUPT_INSTR_PROTECT_SECOND_RET 0xEC // X86 IN instruction, protect the second return register #define INTERRUPT_INSTR_PROTECT_BOTH_RET 0xED // X86 IN instruction, protect both return registers #elif defined(TARGET_ARM) // 16-bit illegal instructions which will cause exception and cause // control to go to GcStress codepath #define INTERRUPT_INSTR 0xde00 #define INTERRUPT_INSTR_CALL 0xde03 // 0xde01 generates SIGTRAP (breakpoint) instead of SIGILL on Unix #define INTERRUPT_INSTR_PROTECT_RET 0xde02 // 32-bit illegal instructions. It is necessary to replace a 16-bit instruction // with a 16-bit illegal instruction, and a 32-bit instruction with a 32-bit // illegal instruction, to make GC stress with the "IT" instruction work, since // it counts the number of instructions that follow it, so we can't change that // number by replacing a 32-bit instruction with a 16-bit illegal instruction // followed by 16 bits of junk that might end up being a legal instruction. // Use the "Permanently UNDEFINED" section in the "ARM Architecture Reference Manual", // section A6.3.4 "Branches and miscellaneous control" table. // Note that we write these as a single 32-bit write, not two 16-bit writes, so the values // need to be arranged as the ARM decoder wants them, with the high-order halfword first // (in little-endian order). #define INTERRUPT_INSTR_32 0xa001f7f0 // 0xf7f0a001 #define INTERRUPT_INSTR_CALL_32 0xa002f7f0 // 0xf7f0a002 #define INTERRUPT_INSTR_PROTECT_RET_32 0xa003f7f0 // 0xf7f0a003 #elif defined(TARGET_ARM64) // The following encodings are undefined. They fall into section C4.5.8 - Data processing (2 source) of // "Arm Architecture Reference Manual ARMv8" // #define INTERRUPT_INSTR 0xBADC0DE0 #define INTERRUPT_INSTR_CALL 0xBADC0DE1 #define INTERRUPT_INSTR_PROTECT_RET 0xBADC0DE2 #endif // _TARGET_* // The body of this method is in this header file to allow // mscordaccore.dll to link without getting an unsat symbol // inline bool IsGcCoverageInterruptInstructionVal(UINT32 instrVal) { #if defined(TARGET_ARM64) switch (instrVal) { case INTERRUPT_INSTR: case INTERRUPT_INSTR_CALL: case INTERRUPT_INSTR_PROTECT_RET: return true; default: return false; } #elif defined(TARGET_ARM) UINT16 instrVal16 = static_cast<UINT16>(instrVal); size_t instrLen = GetARMInstructionLength(instrVal16); if (instrLen == 2) { switch (instrVal16) { case INTERRUPT_INSTR: case INTERRUPT_INSTR_CALL: case INTERRUPT_INSTR_PROTECT_RET: return true; default: return false; } } else { _ASSERTE(instrLen == 4); switch (instrVal) { case INTERRUPT_INSTR_32: case INTERRUPT_INSTR_CALL_32: case INTERRUPT_INSTR_PROTECT_RET_32: return true; default: return false; } } #else // x64 and x86 switch (instrVal) { case INTERRUPT_INSTR: case INTERRUPT_INSTR_CALL: case INTERRUPT_INSTR_PROTECT_FIRST_RET: case INTERRUPT_INSTR_PROTECT_SECOND_RET: case INTERRUPT_INSTR_PROTECT_BOTH_RET: return true; default: return false; } #endif // _TARGET_XXXX_ } bool IsGcCoverageInterruptInstruction(PBYTE instrPtr); bool IsGcCoverageInterrupt(LPVOID ip); #endif // HAVE_GCCOVER #endif // !__GCCOVER_H__
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/jit/block.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX XX XX BasicBlock XX XX XX XX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #endif #include "jitstd/algorithm.h" #if MEASURE_BLOCK_SIZE /* static */ size_t BasicBlock::s_Size; /* static */ size_t BasicBlock::s_Count; #endif // MEASURE_BLOCK_SIZE #ifdef DEBUG // The max # of tree nodes in any BB /* static */ unsigned BasicBlock::s_nMaxTrees; #endif // DEBUG #ifdef DEBUG flowList* ShuffleHelper(unsigned hash, flowList* res) { flowList* head = res; for (flowList *prev = nullptr; res != nullptr; prev = res, res = res->flNext) { unsigned blkHash = (hash ^ (res->getBlock()->bbNum << 16) ^ res->getBlock()->bbNum); if (((blkHash % 1879) & 1) && prev != nullptr) { // Swap res with head. prev->flNext = head; std::swap(head->flNext, res->flNext); std::swap(head, res); } } return head; } unsigned SsaStressHashHelper() { // hash = 0: turned off, hash = 1: use method hash, hash = *: use custom hash. unsigned hash = JitConfig.JitSsaStress(); if (hash == 0) { return hash; } if (hash == 1) { return JitTls::GetCompiler()->info.compMethodHash(); } return ((hash >> 16) == 0) ? ((hash << 16) | hash) : hash; } #endif EHSuccessorIterPosition::EHSuccessorIterPosition(Compiler* comp, BasicBlock* block) : m_remainingRegSuccs(block->NumSucc(comp)), m_curRegSucc(nullptr), m_curTry(comp->ehGetBlockExnFlowDsc(block)) { // If "block" is a "leave helper" block (the empty BBJ_ALWAYS block that pairs with a // preceding BBJ_CALLFINALLY block to implement a "leave" IL instruction), then no exceptions // can occur within it, so clear m_curTry if it's non-null. if (m_curTry != nullptr) { if (block->isBBCallAlwaysPairTail()) { m_curTry = nullptr; } } if (m_curTry == nullptr && m_remainingRegSuccs > 0) { // Examine the successors to see if any are the start of try blocks. FindNextRegSuccTry(comp, block); } } void EHSuccessorIterPosition::FindNextRegSuccTry(Compiler* comp, BasicBlock* block) { assert(m_curTry == nullptr); // Must now consider the next regular successor, if any. while (m_remainingRegSuccs > 0) { m_remainingRegSuccs--; m_curRegSucc = block->GetSucc(m_remainingRegSuccs, comp); if (comp->bbIsTryBeg(m_curRegSucc)) { assert(m_curRegSucc->hasTryIndex()); // Since it is a try begin. unsigned newTryIndex = m_curRegSucc->getTryIndex(); // If the try region started by "m_curRegSucc" (represented by newTryIndex) contains m_block, // we've already yielded its handler, as one of the EH handler successors of m_block itself. if (comp->bbInExnFlowRegions(newTryIndex, block)) { continue; } // Otherwise, consider this try. m_curTry = comp->ehGetDsc(newTryIndex); break; } } } void EHSuccessorIterPosition::Advance(Compiler* comp, BasicBlock* block) { assert(m_curTry != nullptr); if (m_curTry->ebdEnclosingTryIndex != EHblkDsc::NO_ENCLOSING_INDEX) { m_curTry = comp->ehGetDsc(m_curTry->ebdEnclosingTryIndex); // If we've gone over into considering try's containing successors, // then the enclosing try must have the successor as its first block. if (m_curRegSucc == nullptr || m_curTry->ebdTryBeg == m_curRegSucc) { return; } // Otherwise, give up, try the next regular successor. m_curTry = nullptr; } else { m_curTry = nullptr; } // We've exhausted all try blocks. // See if there are any remaining regular successors that start try blocks. FindNextRegSuccTry(comp, block); } BasicBlock* EHSuccessorIterPosition::Current(Compiler* comp, BasicBlock* block) { assert(m_curTry != nullptr); return m_curTry->ExFlowBlock(); } flowList* Compiler::BlockPredsWithEH(BasicBlock* blk) { BlockToFlowListMap* ehPreds = GetBlockToEHPreds(); flowList* res; if (ehPreds->Lookup(blk, &res)) { return res; } res = blk->bbPreds; unsigned tryIndex; if (bbIsExFlowBlock(blk, &tryIndex)) { // Find the first block of the try. EHblkDsc* ehblk = ehGetDsc(tryIndex); BasicBlock* tryStart = ehblk->ebdTryBeg; for (BasicBlock* const tryStartPredBlock : tryStart->PredBlocks()) { res = new (this, CMK_FlowList) flowList(tryStartPredBlock, res); #if MEASURE_BLOCK_SIZE genFlowNodeCnt += 1; genFlowNodeSize += sizeof(flowList); #endif // MEASURE_BLOCK_SIZE } // Now add all blocks handled by this handler (except for second blocks of BBJ_CALLFINALLY/BBJ_ALWAYS pairs; // these cannot cause transfer to the handler...) // TODO-Throughput: It would be nice if we could iterate just over the blocks in the try, via // something like: // for (BasicBlock* bb = ehblk->ebdTryBeg; bb != ehblk->ebdTryLast->bbNext; bb = bb->bbNext) // (plus adding in any filter blocks outside the try whose exceptions are handled here). // That doesn't work, however: funclets have caused us to sometimes split the body of a try into // more than one sequence of contiguous blocks. We need to find a better way to do this. for (BasicBlock* const bb : Blocks()) { if (bbInExnFlowRegions(tryIndex, bb) && !bb->isBBCallAlwaysPairTail()) { res = new (this, CMK_FlowList) flowList(bb, res); #if MEASURE_BLOCK_SIZE genFlowNodeCnt += 1; genFlowNodeSize += sizeof(flowList); #endif // MEASURE_BLOCK_SIZE } } #ifdef DEBUG unsigned hash = SsaStressHashHelper(); if (hash != 0) { res = ShuffleHelper(hash, res); } #endif // DEBUG ehPreds->Set(blk, res); } return res; } //------------------------------------------------------------------------ // checkPredListOrder: see if pred list is properly ordered // // Returns: // false if pred list is not in increasing bbNum order. // bool BasicBlock::checkPredListOrder() { unsigned lastBBNum = 0; for (BasicBlock* const predBlock : PredBlocks()) { const unsigned bbNum = predBlock->bbNum; if (bbNum <= lastBBNum) { assert(bbNum != lastBBNum); return false; } lastBBNum = bbNum; } return true; } //------------------------------------------------------------------------ // ensurePredListOrder: ensure all pred list entries appear in increasing // bbNum order. // // Arguments: // compiler - current compiler instance // void BasicBlock::ensurePredListOrder(Compiler* compiler) { // First, check if list is already in order. // if (checkPredListOrder()) { return; } reorderPredList(compiler); assert(checkPredListOrder()); } //------------------------------------------------------------------------ // reorderPredList: relink pred list in increasing bbNum order. // // Arguments: // compiler - current compiler instance // void BasicBlock::reorderPredList(Compiler* compiler) { // Count number or entries. // int count = 0; for (flowList* const pred : PredEdges()) { count++; } // If only 0 or 1 entry, nothing to reorder. // if (count < 2) { return; } // Allocate sort vector if needed. // if (compiler->fgPredListSortVector == nullptr) { CompAllocator allocator = compiler->getAllocator(CMK_FlowList); compiler->fgPredListSortVector = new (allocator) jitstd::vector<flowList*>(allocator); } jitstd::vector<flowList*>* const sortVector = compiler->fgPredListSortVector; sortVector->clear(); // Fill in the vector from the list. // for (flowList* const pred : PredEdges()) { sortVector->push_back(pred); } // Sort by increasing bbNum // struct flowListBBNumCmp { bool operator()(const flowList* f1, const flowList* f2) { return f1->getBlock()->bbNum < f2->getBlock()->bbNum; } }; jitstd::sort(sortVector->begin(), sortVector->end(), flowListBBNumCmp()); // Rethread the list. // flowList* last = nullptr; for (flowList* current : *sortVector) { if (last == nullptr) { bbPreds = current; } else { last->flNext = current; } last = current; } last->flNext = nullptr; // Note this lastPred is only used transiently. // bbLastPred = last; } #ifdef DEBUG //------------------------------------------------------------------------ // dspBlockILRange(): Display the block's IL range as [XXX...YYY), where XXX and YYY might be "???" for BAD_IL_OFFSET. // void BasicBlock::dspBlockILRange() const { if (bbCodeOffs != BAD_IL_OFFSET) { printf("[%03X..", bbCodeOffs); } else { printf("[???" ".."); } if (bbCodeOffsEnd != BAD_IL_OFFSET) { // brace-matching editor workaround for following line: ( printf("%03X)", bbCodeOffsEnd); } else { // brace-matching editor workaround for following line: ( printf("???" ")"); } } //------------------------------------------------------------------------ // dspFlags: Print out the block's flags // void BasicBlock::dspFlags() { if (bbFlags & BBF_VISITED) { printf("v "); } if (bbFlags & BBF_MARKED) { printf("m "); } if (bbFlags & BBF_CHANGED) { printf("! "); } if (bbFlags & BBF_REMOVED) { printf("del "); } if (bbFlags & BBF_DONT_REMOVE) { printf("keep "); } if (bbFlags & BBF_IMPORTED) { printf("i "); } if (bbFlags & BBF_INTERNAL) { printf("internal "); } if (bbFlags & BBF_FAILED_VERIFICATION) { printf("failV "); } if (bbFlags & BBF_TRY_BEG) { printf("try "); } if (bbFlags & BBF_RUN_RARELY) { printf("rare "); } if (bbFlags & BBF_LOOP_HEAD) { printf("Loop "); } if (bbFlags & BBF_LOOP_CALL0) { printf("Loop0 "); } if (bbFlags & BBF_LOOP_CALL1) { printf("Loop1 "); } if (bbFlags & BBF_HAS_LABEL) { printf("label "); } if (bbFlags & BBF_HAS_JMP) { printf("jmp "); } if (bbFlags & BBF_HAS_CALL) { printf("hascall "); } if (bbFlags & BBF_GC_SAFE_POINT) { printf("gcsafe "); } if (bbFlags & BBF_FUNCLET_BEG) { printf("flet "); } if (bbFlags & BBF_HAS_IDX_LEN) { printf("idxlen "); } if (bbFlags & BBF_HAS_NEWARRAY) { printf("new[] "); } if (bbFlags & BBF_HAS_NEWOBJ) { printf("newobj "); } if (bbFlags & BBF_HAS_NULLCHECK) { printf("nullcheck "); } #if defined(FEATURE_EH_FUNCLETS) && defined(TARGET_ARM) if (bbFlags & BBF_FINALLY_TARGET) { printf("ftarget "); } #endif // defined(FEATURE_EH_FUNCLETS) && defined(TARGET_ARM) if (bbFlags & BBF_BACKWARD_JUMP) { printf("bwd "); } if (bbFlags & BBF_BACKWARD_JUMP_TARGET) { printf("bwd-target "); } if (bbFlags & BBF_BACKWARD_JUMP_SOURCE) { printf("bwd-src "); } if (bbFlags & BBF_PATCHPOINT) { printf("ppoint "); } if (bbFlags & BBF_PARTIAL_COMPILATION_PATCHPOINT) { printf("pc-ppoint "); } if (bbFlags & BBF_RETLESS_CALL) { printf("retless "); } if (bbFlags & BBF_LOOP_PREHEADER) { printf("LoopPH "); } if (bbFlags & BBF_COLD) { printf("cold "); } if (bbFlags & BBF_PROF_WEIGHT) { printf("IBC "); } if (bbFlags & BBF_IS_LIR) { printf("LIR "); } if (bbFlags & BBF_KEEP_BBJ_ALWAYS) { printf("KEEP "); } if (bbFlags & BBF_CLONED_FINALLY_BEGIN) { printf("cfb "); } if (bbFlags & BBF_CLONED_FINALLY_END) { printf("cfe "); } if (bbFlags & BBF_LOOP_ALIGN) { printf("align "); } } /***************************************************************************** * * Display the bbPreds basic block list (the block predecessors). * Returns the number of characters printed. */ unsigned BasicBlock::dspPreds() { unsigned count = 0; for (flowList* const pred : PredEdges()) { if (count != 0) { printf(","); count += 1; } printf(FMT_BB, pred->getBlock()->bbNum); count += 4; // Account for %02u only handling 2 digits, but we can display more than that. unsigned digits = CountDigits(pred->getBlock()->bbNum); if (digits > 2) { count += digits - 2; } // Does this predecessor have an interesting dup count? If so, display it. if (pred->flDupCount > 1) { printf("(%u)", pred->flDupCount); count += 2 + CountDigits(pred->flDupCount); } } return count; } /***************************************************************************** * * Display the bbCheapPreds basic block list (the block predecessors). * Returns the number of characters printed. */ unsigned BasicBlock::dspCheapPreds() { unsigned count = 0; for (BasicBlockList* pred = bbCheapPreds; pred != nullptr; pred = pred->next) { if (count != 0) { printf(","); count += 1; } printf(FMT_BB, pred->block->bbNum); count += 4; // Account for %02u only handling 2 digits, but we can display more than that. unsigned digits = CountDigits(pred->block->bbNum); if (digits > 2) { count += digits - 2; } } return count; } //------------------------------------------------------------------------ // dspSuccs: Display the basic block successors. // // Arguments: // compiler - compiler instance; passed to NumSucc(Compiler*) -- see that function for implications. // void BasicBlock::dspSuccs(Compiler* compiler) { bool first = true; // If this is a switch, we don't want to call `Succs(Compiler*)` because it will eventually call // `GetSwitchDescMap()`, and that will have the side-effect of allocating the unique switch descriptor map // and/or compute this switch block's unique succ set if it is not present. Debug output functions should // never have an effect on codegen. We also don't want to assume the unique succ set is accurate, so we // compute it ourselves here. if (bbJumpKind == BBJ_SWITCH) { // Create a set with all the successors. Don't use BlockSet, so we don't need to worry // about the BlockSet epoch. unsigned bbNumMax = compiler->impInlineRoot()->fgBBNumMax; BitVecTraits bitVecTraits(bbNumMax + 1, compiler); BitVec uniqueSuccBlocks(BitVecOps::MakeEmpty(&bitVecTraits)); for (BasicBlock* const bTarget : SwitchTargets()) { BitVecOps::AddElemD(&bitVecTraits, uniqueSuccBlocks, bTarget->bbNum); } BitVecOps::Iter iter(&bitVecTraits, uniqueSuccBlocks); unsigned bbNum = 0; while (iter.NextElem(&bbNum)) { // Note that we will output switch successors in increasing numerical bbNum order, which is // not related to their order in the bbJumpSwt->bbsDstTab table. printf("%s" FMT_BB, first ? "" : ",", bbNum); first = false; } } else { for (BasicBlock* const succ : Succs(compiler)) { printf("%s" FMT_BB, first ? "" : ",", succ->bbNum); first = false; } } } // Display a compact representation of the bbJumpKind, that is, where this block branches. // This is similar to code in Compiler::fgTableDispBasicBlock(), but doesn't have that code's requirements to align // things strictly. void BasicBlock::dspJumpKind() { switch (bbJumpKind) { case BBJ_EHFINALLYRET: printf(" (finret)"); break; case BBJ_EHFILTERRET: printf(" (fltret)"); break; case BBJ_EHCATCHRET: printf(" -> " FMT_BB " (cret)", bbJumpDest->bbNum); break; case BBJ_THROW: printf(" (throw)"); break; case BBJ_RETURN: printf(" (return)"); break; case BBJ_NONE: // For fall-through blocks, print nothing. break; case BBJ_ALWAYS: if (bbFlags & BBF_KEEP_BBJ_ALWAYS) { printf(" -> " FMT_BB " (ALWAYS)", bbJumpDest->bbNum); } else { printf(" -> " FMT_BB " (always)", bbJumpDest->bbNum); } break; case BBJ_LEAVE: printf(" -> " FMT_BB " (leave)", bbJumpDest->bbNum); break; case BBJ_CALLFINALLY: printf(" -> " FMT_BB " (callf)", bbJumpDest->bbNum); break; case BBJ_COND: printf(" -> " FMT_BB " (cond)", bbJumpDest->bbNum); break; case BBJ_SWITCH: { printf(" ->"); const unsigned jumpCnt = bbJumpSwt->bbsCount; BasicBlock** const jumpTab = bbJumpSwt->bbsDstTab; for (unsigned i = 0; i < jumpCnt; i++) { printf("%c" FMT_BB, (i == 0) ? ' ' : ',', jumpTab[i]->bbNum); const bool isDefault = bbJumpSwt->bbsHasDefault && (i == jumpCnt - 1); if (isDefault) { printf("[def]"); } const bool isDominant = bbJumpSwt->bbsHasDominantCase && (i == bbJumpSwt->bbsDominantCase); if (isDominant) { printf("[dom(" FMT_WT ")]", bbJumpSwt->bbsDominantFraction); } } printf(" (switch)"); } break; default: unreached(); break; } } void BasicBlock::dspBlockHeader(Compiler* compiler, bool showKind /*= true*/, bool showFlags /*= false*/, bool showPreds /*= true*/) { printf(FMT_BB " ", bbNum); dspBlockILRange(); if (showKind) { dspJumpKind(); } if (showPreds) { printf(", preds={"); if (compiler->fgCheapPredsValid) { dspCheapPreds(); } else { dspPreds(); } printf("} succs={"); dspSuccs(compiler); printf("}"); } if (showFlags) { const unsigned lowFlags = (unsigned)bbFlags; const unsigned highFlags = (unsigned)(bbFlags >> 32); printf(" flags=0x%08x.%08x: ", highFlags, lowFlags); dspFlags(); } printf("\n"); } const char* BasicBlock::dspToString(int blockNumPadding /* = 0 */) { static char buffers[3][64]; // static array of 3 to allow 3 concurrent calls in one printf() static int nextBufferIndex = 0; auto& buffer = buffers[nextBufferIndex]; nextBufferIndex = (nextBufferIndex + 1) % ArrLen(buffers); _snprintf_s(buffer, ArrLen(buffer), ArrLen(buffer), FMT_BB "%*s [%04u]", bbNum, blockNumPadding, "", bbID); return buffer; } #endif // DEBUG // Allocation function for MemoryPhiArg. void* BasicBlock::MemoryPhiArg::operator new(size_t sz, Compiler* comp) { return comp->getAllocator(CMK_MemoryPhiArg).allocate<char>(sz); } //------------------------------------------------------------------------ // CloneBlockState: Try to populate `to` block with a copy of `from` block's statements, replacing // uses of local `varNum` with IntCns `varVal`. // // Arguments: // compiler - Jit compiler instance // to - New/empty block to copy statements into // from - Block to copy statements from // varNum - lclVar uses with lclNum `varNum` will be replaced; can be ~0 to indicate no replacement. // varVal - If replacing uses of `varNum`, replace them with int constants with value `varVal`. // // Return Value: // Cloning may fail because this routine uses `gtCloneExpr` for cloning and it can't handle all // IR nodes. If cloning of any statement fails, `false` will be returned and block `to` may be // partially populated. If cloning of all statements succeeds, `true` will be returned and // block `to` will be fully populated. bool BasicBlock::CloneBlockState( Compiler* compiler, BasicBlock* to, const BasicBlock* from, unsigned varNum, int varVal) { assert(to->bbStmtList == nullptr); to->bbFlags = from->bbFlags; to->bbWeight = from->bbWeight; BlockSetOps::AssignAllowUninitRhs(compiler, to->bbReach, from->bbReach); to->copyEHRegion(from); to->bbCatchTyp = from->bbCatchTyp; to->bbRefs = from->bbRefs; to->bbStkTempsIn = from->bbStkTempsIn; to->bbStkTempsOut = from->bbStkTempsOut; to->bbStkDepth = from->bbStkDepth; to->bbCodeOffs = from->bbCodeOffs; to->bbCodeOffsEnd = from->bbCodeOffsEnd; VarSetOps::AssignAllowUninitRhs(compiler, to->bbScope, from->bbScope); to->bbNatLoopNum = from->bbNatLoopNum; #ifdef DEBUG to->bbTgtStkDepth = from->bbTgtStkDepth; #endif // DEBUG for (Statement* const fromStmt : from->Statements()) { GenTree* newExpr = compiler->gtCloneExpr(fromStmt->GetRootNode(), GTF_EMPTY, varNum, varVal); if (!newExpr) { // gtCloneExpr doesn't handle all opcodes, so may fail to clone a statement. // When that happens, it returns nullptr; abandon the rest of this block and // return `false` to the caller to indicate that cloning was unsuccessful. return false; } compiler->fgInsertStmtAtEnd(to, compiler->fgNewStmtFromTree(newExpr, fromStmt->GetDebugInfo())); } return true; } // LIR helpers void BasicBlock::MakeLIR(GenTree* firstNode, GenTree* lastNode) { assert(!IsLIR()); assert((firstNode == nullptr) == (lastNode == nullptr)); assert((firstNode == lastNode) || firstNode->Precedes(lastNode)); m_firstNode = firstNode; m_lastNode = lastNode; bbFlags |= BBF_IS_LIR; } bool BasicBlock::IsLIR() const { assert(isValid()); const bool isLIR = ((bbFlags & BBF_IS_LIR) != 0); return isLIR; } //------------------------------------------------------------------------ // firstStmt: Returns the first statement in the block // // Arguments: // None. // // Return Value: // The first statement in the block's bbStmtList. // Statement* BasicBlock::firstStmt() const { return bbStmtList; } //------------------------------------------------------------------------ // lastStmt: Returns the last statement in the block // // Arguments: // None. // // Return Value: // The last statement in the block's bbStmtList. // Statement* BasicBlock::lastStmt() const { if (bbStmtList == nullptr) { return nullptr; } Statement* result = bbStmtList->GetPrevStmt(); assert(result != nullptr && result->GetNextStmt() == nullptr); return result; } //------------------------------------------------------------------------ // BasicBlock::lastNode: Returns the last node in the block. // GenTree* BasicBlock::lastNode() const { return IsLIR() ? m_lastNode : lastStmt()->GetRootNode(); } //------------------------------------------------------------------------ // GetUniquePred: Returns the unique predecessor of a block, if one exists. // The predecessor lists must be accurate. // // Arguments: // None. // // Return Value: // The unique predecessor of a block, or nullptr if there is no unique predecessor. // // Notes: // If the first block has a predecessor (which it may have, if it is the target of // a backedge), we never want to consider it "unique" because the prolog is an // implicit predecessor. BasicBlock* BasicBlock::GetUniquePred(Compiler* compiler) const { if ((bbPreds == nullptr) || (bbPreds->flNext != nullptr) || (this == compiler->fgFirstBB)) { return nullptr; } else { return bbPreds->getBlock(); } } //------------------------------------------------------------------------ // GetUniqueSucc: Returns the unique successor of a block, if one exists. // Only considers BBJ_ALWAYS and BBJ_NONE block types. // // Arguments: // None. // // Return Value: // The unique successor of a block, or nullptr if there is no unique successor. BasicBlock* BasicBlock::GetUniqueSucc() const { if (bbJumpKind == BBJ_ALWAYS) { return bbJumpDest; } else if (bbJumpKind == BBJ_NONE) { return bbNext; } else { return nullptr; } } // Static vars. BasicBlock::MemoryPhiArg* BasicBlock::EmptyMemoryPhiDef = (BasicBlock::MemoryPhiArg*)0x1; unsigned JitPtrKeyFuncs<BasicBlock>::GetHashCode(const BasicBlock* ptr) { #ifdef DEBUG unsigned hash = SsaStressHashHelper(); if (hash != 0) { return (hash ^ (ptr->bbNum << 16) ^ ptr->bbNum); } #endif return ptr->bbNum; } //------------------------------------------------------------------------ // isEmpty: check if block is empty or contains only ignorable statements // // Return Value: // True if block is empty, or contains only PHI assignments, // or contains zero or more PHI assignments followed by NOPs. // bool BasicBlock::isEmpty() const { if (!IsLIR()) { for (Statement* const stmt : NonPhiStatements()) { if (!stmt->GetRootNode()->OperIs(GT_NOP)) { return false; } } } else { for (GenTree* node : LIR::AsRange(this)) { if (node->OperGet() != GT_IL_OFFSET) { return false; } } } return true; } //------------------------------------------------------------------------ // isValid: Checks that the basic block doesn't mix statements and LIR lists. // // Return Value: // True if it a valid basic block. // bool BasicBlock::isValid() const { const bool isLIR = ((bbFlags & BBF_IS_LIR) != 0); if (isLIR) { // Should not have statements in LIR. return (bbStmtList == nullptr); } else { // Should not have tree list before LIR. return (GetFirstLIRNode() == nullptr); } } Statement* BasicBlock::FirstNonPhiDef() const { Statement* stmt = firstStmt(); if (stmt == nullptr) { return nullptr; } GenTree* tree = stmt->GetRootNode(); while ((tree->OperGet() == GT_ASG && tree->AsOp()->gtOp2->OperGet() == GT_PHI) || (tree->OperGet() == GT_STORE_LCL_VAR && tree->AsOp()->gtOp1->OperGet() == GT_PHI)) { stmt = stmt->GetNextStmt(); if (stmt == nullptr) { return nullptr; } tree = stmt->GetRootNode(); } return stmt; } Statement* BasicBlock::FirstNonPhiDefOrCatchArgAsg() const { Statement* stmt = FirstNonPhiDef(); if (stmt == nullptr) { return nullptr; } GenTree* tree = stmt->GetRootNode(); if ((tree->OperGet() == GT_ASG && tree->AsOp()->gtOp2->OperGet() == GT_CATCH_ARG) || (tree->OperGet() == GT_STORE_LCL_VAR && tree->AsOp()->gtOp1->OperGet() == GT_CATCH_ARG)) { stmt = stmt->GetNextStmt(); } return stmt; } /***************************************************************************** * * Can a BasicBlock be inserted after this without altering the flowgraph */ bool BasicBlock::bbFallsThrough() const { switch (bbJumpKind) { case BBJ_THROW: case BBJ_EHFINALLYRET: case BBJ_EHFILTERRET: case BBJ_EHCATCHRET: case BBJ_RETURN: case BBJ_ALWAYS: case BBJ_LEAVE: case BBJ_SWITCH: return false; case BBJ_NONE: case BBJ_COND: return true; case BBJ_CALLFINALLY: return ((bbFlags & BBF_RETLESS_CALL) == 0); default: assert(!"Unknown bbJumpKind in bbFallsThrough()"); return true; } } //------------------------------------------------------------------------ // NumSucc: Returns the count of block successors. See the declaration comment for details. // // Arguments: // None. // // Return Value: // Count of block successors. // unsigned BasicBlock::NumSucc() const { switch (bbJumpKind) { case BBJ_THROW: case BBJ_RETURN: case BBJ_EHFINALLYRET: case BBJ_EHFILTERRET: return 0; case BBJ_CALLFINALLY: case BBJ_ALWAYS: case BBJ_EHCATCHRET: case BBJ_LEAVE: case BBJ_NONE: return 1; case BBJ_COND: if (bbJumpDest == bbNext) { return 1; } else { return 2; } case BBJ_SWITCH: return bbJumpSwt->bbsCount; default: unreached(); } } //------------------------------------------------------------------------ // GetSucc: Returns the requested block successor. See the declaration comment for details. // // Arguments: // i - index of successor to return. 0 <= i <= NumSucc(). // // Return Value: // Requested successor block // BasicBlock* BasicBlock::GetSucc(unsigned i) const { assert(i < NumSucc()); // Index bounds check. switch (bbJumpKind) { case BBJ_CALLFINALLY: case BBJ_ALWAYS: case BBJ_EHCATCHRET: case BBJ_LEAVE: return bbJumpDest; case BBJ_NONE: return bbNext; case BBJ_COND: if (i == 0) { return bbNext; } else { assert(i == 1); return bbJumpDest; } case BBJ_SWITCH: return bbJumpSwt->bbsDstTab[i]; default: unreached(); } } //------------------------------------------------------------------------ // NumSucc: Returns the count of block successors. See the declaration comment for details. // // Arguments: // comp - Compiler instance // // Return Value: // Count of block successors. // unsigned BasicBlock::NumSucc(Compiler* comp) { assert(comp != nullptr); switch (bbJumpKind) { case BBJ_THROW: case BBJ_RETURN: return 0; case BBJ_EHFINALLYRET: { // The first block of the handler is labelled with the catch type. BasicBlock* hndBeg = comp->fgFirstBlockOfHandler(this); if (hndBeg->bbCatchTyp == BBCT_FINALLY) { return comp->fgNSuccsOfFinallyRet(this); } else { assert(hndBeg->bbCatchTyp == BBCT_FAULT); // We can only BBJ_EHFINALLYRET from FINALLY and FAULT. // A FAULT block has no successors. return 0; } } case BBJ_CALLFINALLY: case BBJ_ALWAYS: case BBJ_EHCATCHRET: case BBJ_EHFILTERRET: case BBJ_LEAVE: case BBJ_NONE: return 1; case BBJ_COND: if (bbJumpDest == bbNext) { return 1; } else { return 2; } case BBJ_SWITCH: { Compiler::SwitchUniqueSuccSet sd = comp->GetDescriptorForSwitch(this); return sd.numDistinctSuccs; } default: unreached(); } } //------------------------------------------------------------------------ // GetSucc: Returns the requested block successor. See the declaration comment for details. // // Arguments: // i - index of successor to return. 0 <= i <= NumSucc(comp). // comp - Compiler instance // // Return Value: // Requested successor block // BasicBlock* BasicBlock::GetSucc(unsigned i, Compiler* comp) { assert(comp != nullptr); assert(i < NumSucc(comp)); // Index bounds check. switch (bbJumpKind) { case BBJ_EHFILTERRET: { // Handler is the (sole) normal successor of the filter. assert(comp->fgFirstBlockOfHandler(this) == bbJumpDest); return bbJumpDest; } case BBJ_EHFINALLYRET: // Note: the following call is expensive. return comp->fgSuccOfFinallyRet(this, i); case BBJ_CALLFINALLY: case BBJ_ALWAYS: case BBJ_EHCATCHRET: case BBJ_LEAVE: return bbJumpDest; case BBJ_NONE: return bbNext; case BBJ_COND: if (i == 0) { return bbNext; } else { assert(i == 1); return bbJumpDest; } case BBJ_SWITCH: { Compiler::SwitchUniqueSuccSet sd = comp->GetDescriptorForSwitch(this); assert(i < sd.numDistinctSuccs); // Range check. return sd.nonDuplicates[i]; } default: unreached(); } } void BasicBlock::InitVarSets(Compiler* comp) { VarSetOps::AssignNoCopy(comp, bbVarUse, VarSetOps::MakeEmpty(comp)); VarSetOps::AssignNoCopy(comp, bbVarDef, VarSetOps::MakeEmpty(comp)); VarSetOps::AssignNoCopy(comp, bbLiveIn, VarSetOps::MakeEmpty(comp)); VarSetOps::AssignNoCopy(comp, bbLiveOut, VarSetOps::MakeEmpty(comp)); VarSetOps::AssignNoCopy(comp, bbScope, VarSetOps::MakeEmpty(comp)); bbMemoryUse = emptyMemoryKindSet; bbMemoryDef = emptyMemoryKindSet; bbMemoryLiveIn = emptyMemoryKindSet; bbMemoryLiveOut = emptyMemoryKindSet; } // Returns true if the basic block ends with GT_JMP bool BasicBlock::endsWithJmpMethod(Compiler* comp) const { if (comp->compJmpOpUsed && (bbJumpKind == BBJ_RETURN) && (bbFlags & BBF_HAS_JMP)) { GenTree* lastNode = this->lastNode(); assert(lastNode != nullptr); return lastNode->OperGet() == GT_JMP; } return false; } // Returns true if the basic block ends with either // i) GT_JMP or // ii) tail call (implicit or explicit) // // Params: // comp - Compiler instance // fastTailCallsOnly - Only consider fast tail calls excluding tail calls via helper. // bool BasicBlock::endsWithTailCallOrJmp(Compiler* comp, bool fastTailCallsOnly /*=false*/) const { GenTree* tailCall = nullptr; bool tailCallsConvertibleToLoopOnly = false; return endsWithJmpMethod(comp) || endsWithTailCall(comp, fastTailCallsOnly, tailCallsConvertibleToLoopOnly, &tailCall); } //------------------------------------------------------------------------------ // endsWithTailCall : Check if the block ends with a tail call. // // Arguments: // comp - compiler instance // fastTailCallsOnly - check for fast tail calls only // tailCallsConvertibleToLoopOnly - check for tail calls convertible to loop only // tailCall - a pointer to a tree that will be set to the call tree if the block // ends with a tail call and will be set to nullptr otherwise. // // Return Value: // true if the block ends with a tail call; false otherwise. // // Notes: // At most one of fastTailCallsOnly and tailCallsConvertibleToLoopOnly flags can be true. // bool BasicBlock::endsWithTailCall(Compiler* comp, bool fastTailCallsOnly, bool tailCallsConvertibleToLoopOnly, GenTree** tailCall) const { assert(!fastTailCallsOnly || !tailCallsConvertibleToLoopOnly); *tailCall = nullptr; bool result = false; // Is this a tail call? // The reason for keeping this under RyuJIT is so as not to impact existing Jit32 x86 and arm // targets. if (comp->compTailCallUsed) { if (fastTailCallsOnly || tailCallsConvertibleToLoopOnly) { // Only fast tail calls or only tail calls convertible to loops result = (bbFlags & BBF_HAS_JMP) && (bbJumpKind == BBJ_RETURN); } else { // Fast tail calls, tail calls convertible to loops, and tails calls dispatched via helper result = (bbJumpKind == BBJ_THROW) || ((bbFlags & BBF_HAS_JMP) && (bbJumpKind == BBJ_RETURN)); } if (result) { GenTree* lastNode = this->lastNode(); if (lastNode->OperGet() == GT_CALL) { GenTreeCall* call = lastNode->AsCall(); if (tailCallsConvertibleToLoopOnly) { result = call->IsTailCallConvertibleToLoop(); } else if (fastTailCallsOnly) { result = call->IsFastTailCall(); } else { result = call->IsTailCall(); } if (result) { *tailCall = call; } } else { result = false; } } } return result; } //------------------------------------------------------------------------------ // endsWithTailCallConvertibleToLoop : Check if the block ends with a tail call convertible to loop. // // Arguments: // comp - compiler instance // tailCall - a pointer to a tree that will be set to the call tree if the block // ends with a tail call convertible to loop and will be set to nullptr otherwise. // // Return Value: // true if the block ends with a tail call convertible to loop. // bool BasicBlock::endsWithTailCallConvertibleToLoop(Compiler* comp, GenTree** tailCall) const { bool fastTailCallsOnly = false; bool tailCallsConvertibleToLoopOnly = true; return endsWithTailCall(comp, fastTailCallsOnly, tailCallsConvertibleToLoopOnly, tailCall); } /***************************************************************************** * * Allocate a basic block but don't append it to the current BB list. */ BasicBlock* Compiler::bbNewBasicBlock(BBjumpKinds jumpKind) { BasicBlock* block; /* Allocate the block descriptor and zero it out */ assert(fgSafeBasicBlockCreation); block = new (this, CMK_BasicBlock) BasicBlock; #if MEASURE_BLOCK_SIZE BasicBlock::s_Count += 1; BasicBlock::s_Size += sizeof(*block); #endif #ifdef DEBUG // fgLookupBB() is invalid until fgInitBBLookup() is called again. fgBBs = (BasicBlock**)0xCDCD; #endif // TODO-Throughput: The following memset is pretty expensive - do something else? // Note that some fields have to be initialized to 0 (like bbFPStateX87) memset(block, 0, sizeof(*block)); // scopeInfo needs to be able to differentiate between blocks which // correspond to some instrs (and so may have some LocalVarInfo // boundaries), or have been inserted by the JIT block->bbCodeOffs = BAD_IL_OFFSET; block->bbCodeOffsEnd = BAD_IL_OFFSET; #ifdef DEBUG block->bbID = compBasicBlockID++; #endif /* Give the block a number, set the ancestor count and weight */ ++fgBBcount; ++fgBBNumMax; if (compIsForInlining()) { block->bbNum = ++impInlineInfo->InlinerCompiler->fgBBNumMax; } else { block->bbNum = fgBBNumMax; } if (compRationalIRForm) { block->bbFlags |= BBF_IS_LIR; } block->bbRefs = 1; block->bbWeight = BB_UNITY_WEIGHT; block->bbStkTempsIn = NO_BASE_TMP; block->bbStkTempsOut = NO_BASE_TMP; block->bbEntryState = nullptr; /* Record the jump kind in the block */ block->bbJumpKind = jumpKind; if (jumpKind == BBJ_THROW) { block->bbSetRunRarely(); } #ifdef DEBUG if (verbose) { printf("New Basic Block %s created.\n", block->dspToString()); } #endif // We will give all the blocks var sets after the number of tracked variables // is determined and frozen. After that, if we dynamically create a basic block, // we will initialize its var sets. if (fgBBVarSetsInited) { VarSetOps::AssignNoCopy(this, block->bbVarUse, VarSetOps::MakeEmpty(this)); VarSetOps::AssignNoCopy(this, block->bbVarDef, VarSetOps::MakeEmpty(this)); VarSetOps::AssignNoCopy(this, block->bbLiveIn, VarSetOps::MakeEmpty(this)); VarSetOps::AssignNoCopy(this, block->bbLiveOut, VarSetOps::MakeEmpty(this)); VarSetOps::AssignNoCopy(this, block->bbScope, VarSetOps::MakeEmpty(this)); } else { VarSetOps::AssignNoCopy(this, block->bbVarUse, VarSetOps::UninitVal()); VarSetOps::AssignNoCopy(this, block->bbVarDef, VarSetOps::UninitVal()); VarSetOps::AssignNoCopy(this, block->bbLiveIn, VarSetOps::UninitVal()); VarSetOps::AssignNoCopy(this, block->bbLiveOut, VarSetOps::UninitVal()); VarSetOps::AssignNoCopy(this, block->bbScope, VarSetOps::UninitVal()); } block->bbMemoryUse = emptyMemoryKindSet; block->bbMemoryDef = emptyMemoryKindSet; block->bbMemoryLiveIn = emptyMemoryKindSet; block->bbMemoryLiveOut = emptyMemoryKindSet; for (MemoryKind memoryKind : allMemoryKinds()) { block->bbMemorySsaPhiFunc[memoryKind] = nullptr; block->bbMemorySsaNumIn[memoryKind] = 0; block->bbMemorySsaNumOut[memoryKind] = 0; } // Make sure we reserve a NOT_IN_LOOP value that isn't a legal table index. static_assert_no_msg(BasicBlock::MAX_LOOP_NUM < BasicBlock::NOT_IN_LOOP); block->bbNatLoopNum = BasicBlock::NOT_IN_LOOP; return block; } //------------------------------------------------------------------------ // isBBCallAlwaysPair: Determine if this is the first block of a BBJ_CALLFINALLY/BBJ_ALWAYS pair // // Return Value: // True iff "this" is the first block of a BBJ_CALLFINALLY/BBJ_ALWAYS pair // -- a block corresponding to an exit from the try of a try/finally. // // Notes: // In the flow graph, this becomes a block that calls the finally, and a second, immediately // following empty block (in the bbNext chain) to which the finally will return, and which // branches unconditionally to the next block to be executed outside the try/finally. // Note that code is often generated differently than this description. For example, on ARM, // the target of the BBJ_ALWAYS is loaded in LR (the return register), and a direct jump is // made to the 'finally'. The effect is that the 'finally' returns directly to the target of // the BBJ_ALWAYS. A "retless" BBJ_CALLFINALLY is one that has no corresponding BBJ_ALWAYS. // This can happen if the finally is known to not return (e.g., it contains a 'throw'). In // that case, the BBJ_CALLFINALLY flags has BBF_RETLESS_CALL set. Note that ARM never has // "retless" BBJ_CALLFINALLY blocks due to a requirement to use the BBJ_ALWAYS for // generating code. // bool BasicBlock::isBBCallAlwaysPair() const { #if defined(FEATURE_EH_FUNCLETS) && defined(TARGET_ARM) if (this->bbJumpKind == BBJ_CALLFINALLY) #else if ((this->bbJumpKind == BBJ_CALLFINALLY) && !(this->bbFlags & BBF_RETLESS_CALL)) #endif { #if defined(FEATURE_EH_FUNCLETS) && defined(TARGET_ARM) // On ARM, there are no retless BBJ_CALLFINALLY. assert(!(this->bbFlags & BBF_RETLESS_CALL)); #endif // Some asserts that the next block is a BBJ_ALWAYS of the proper form. assert(this->bbNext != nullptr); assert(this->bbNext->bbJumpKind == BBJ_ALWAYS); assert(this->bbNext->bbFlags & BBF_KEEP_BBJ_ALWAYS); assert(this->bbNext->isEmpty()); return true; } else { return false; } } //------------------------------------------------------------------------ // isBBCallAlwaysPairTail: Determine if this is the last block of a BBJ_CALLFINALLY/BBJ_ALWAYS pair // // Return Value: // True iff "this" is the last block of a BBJ_CALLFINALLY/BBJ_ALWAYS pair // -- a block corresponding to an exit from the try of a try/finally. // // Notes: // See notes on isBBCallAlwaysPair(), above. // bool BasicBlock::isBBCallAlwaysPairTail() const { return (bbPrev != nullptr) && bbPrev->isBBCallAlwaysPair(); } //------------------------------------------------------------------------ // hasEHBoundaryIn: Determine if this block begins at an EH boundary. // // Return Value: // True iff the block is the target of an EH edge; false otherwise. // // Notes: // For the purposes of this method (and its callers), an EH edge is one on // which the EH flow model requires that all lclVars must be reloaded from // the stack before use, since control flow may transfer to this block through // control flow that is not reflected in the flowgraph. // Note that having a predecessor in a different EH region doesn't require // that lclVars must be reloaded from the stack. That's only required when // this block might be entered via flow that is not represented by an edge // in the flowgraph. // bool BasicBlock::hasEHBoundaryIn() const { bool returnVal = (bbCatchTyp != BBCT_NONE); if (!returnVal) { #if FEATURE_EH_FUNCLETS assert((bbFlags & BBF_FUNCLET_BEG) == 0); #endif // FEATURE_EH_FUNCLETS } return returnVal; } //------------------------------------------------------------------------ // hasEHBoundaryOut: Determine if this block ends in an EH boundary. // // Return Value: // True iff the block ends in an exception boundary that requires that no lclVars // are live in registers; false otherwise. // // Notes: // We may have a successor in a different EH region, but it is OK to have lclVars // live in registers if any successor is a normal flow edge. That's because the // EH write-thru semantics ensure that we always have an up-to-date value on the stack. // bool BasicBlock::hasEHBoundaryOut() const { bool returnVal = false; if (bbJumpKind == BBJ_EHFILTERRET) { returnVal = true; } if (bbJumpKind == BBJ_EHFINALLYRET) { returnVal = true; } #if FEATURE_EH_FUNCLETS if (bbJumpKind == BBJ_EHCATCHRET) { returnVal = true; } #endif // FEATURE_EH_FUNCLETS return returnVal; } //------------------------------------------------------------------------ // BBswtDesc copy ctor: copy a switch descriptor // // Arguments: // comp - compiler instance // other - existing switch descriptor to copy // BBswtDesc::BBswtDesc(Compiler* comp, const BBswtDesc* other) : bbsDstTab(nullptr) , bbsCount(other->bbsCount) , bbsDominantCase(other->bbsDominantCase) , bbsDominantFraction(other->bbsDominantFraction) , bbsHasDefault(other->bbsHasDefault) , bbsHasDominantCase(other->bbsHasDominantCase) { // Allocate and fill in a new dst tab // bbsDstTab = new (comp, CMK_BasicBlock) BasicBlock*[bbsCount]; for (unsigned i = 0; i < bbsCount; i++) { bbsDstTab[i] = other->bbsDstTab[i]; } } //------------------------------------------------------------------------ // unmarkLoopAlign: Unmarks the LOOP_ALIGN flag from the block and reduce the // loop alignment count. // // Arguments: // compiler - Compiler instance // reason - Reason to print in JITDUMP // void BasicBlock::unmarkLoopAlign(Compiler* compiler DEBUG_ARG(const char* reason)) { // Make sure we unmark and count just once. if (isLoopAlign()) { compiler->loopAlignCandidates--; bbFlags &= ~BBF_LOOP_ALIGN; JITDUMP("Unmarking LOOP_ALIGN from " FMT_BB ". Reason= %s.\n", bbNum, reason); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX XX XX BasicBlock XX XX XX XX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */ #include "jitpch.h" #ifdef _MSC_VER #pragma hdrstop #endif #include "jitstd/algorithm.h" #if MEASURE_BLOCK_SIZE /* static */ size_t BasicBlock::s_Size; /* static */ size_t BasicBlock::s_Count; #endif // MEASURE_BLOCK_SIZE #ifdef DEBUG // The max # of tree nodes in any BB /* static */ unsigned BasicBlock::s_nMaxTrees; #endif // DEBUG #ifdef DEBUG flowList* ShuffleHelper(unsigned hash, flowList* res) { flowList* head = res; for (flowList *prev = nullptr; res != nullptr; prev = res, res = res->flNext) { unsigned blkHash = (hash ^ (res->getBlock()->bbNum << 16) ^ res->getBlock()->bbNum); if (((blkHash % 1879) & 1) && prev != nullptr) { // Swap res with head. prev->flNext = head; std::swap(head->flNext, res->flNext); std::swap(head, res); } } return head; } unsigned SsaStressHashHelper() { // hash = 0: turned off, hash = 1: use method hash, hash = *: use custom hash. unsigned hash = JitConfig.JitSsaStress(); if (hash == 0) { return hash; } if (hash == 1) { return JitTls::GetCompiler()->info.compMethodHash(); } return ((hash >> 16) == 0) ? ((hash << 16) | hash) : hash; } #endif EHSuccessorIterPosition::EHSuccessorIterPosition(Compiler* comp, BasicBlock* block) : m_remainingRegSuccs(block->NumSucc(comp)), m_curRegSucc(nullptr), m_curTry(comp->ehGetBlockExnFlowDsc(block)) { // If "block" is a "leave helper" block (the empty BBJ_ALWAYS block that pairs with a // preceding BBJ_CALLFINALLY block to implement a "leave" IL instruction), then no exceptions // can occur within it, so clear m_curTry if it's non-null. if (m_curTry != nullptr) { if (block->isBBCallAlwaysPairTail()) { m_curTry = nullptr; } } if (m_curTry == nullptr && m_remainingRegSuccs > 0) { // Examine the successors to see if any are the start of try blocks. FindNextRegSuccTry(comp, block); } } void EHSuccessorIterPosition::FindNextRegSuccTry(Compiler* comp, BasicBlock* block) { assert(m_curTry == nullptr); // Must now consider the next regular successor, if any. while (m_remainingRegSuccs > 0) { m_remainingRegSuccs--; m_curRegSucc = block->GetSucc(m_remainingRegSuccs, comp); if (comp->bbIsTryBeg(m_curRegSucc)) { assert(m_curRegSucc->hasTryIndex()); // Since it is a try begin. unsigned newTryIndex = m_curRegSucc->getTryIndex(); // If the try region started by "m_curRegSucc" (represented by newTryIndex) contains m_block, // we've already yielded its handler, as one of the EH handler successors of m_block itself. if (comp->bbInExnFlowRegions(newTryIndex, block)) { continue; } // Otherwise, consider this try. m_curTry = comp->ehGetDsc(newTryIndex); break; } } } void EHSuccessorIterPosition::Advance(Compiler* comp, BasicBlock* block) { assert(m_curTry != nullptr); if (m_curTry->ebdEnclosingTryIndex != EHblkDsc::NO_ENCLOSING_INDEX) { m_curTry = comp->ehGetDsc(m_curTry->ebdEnclosingTryIndex); // If we've gone over into considering try's containing successors, // then the enclosing try must have the successor as its first block. if (m_curRegSucc == nullptr || m_curTry->ebdTryBeg == m_curRegSucc) { return; } // Otherwise, give up, try the next regular successor. m_curTry = nullptr; } else { m_curTry = nullptr; } // We've exhausted all try blocks. // See if there are any remaining regular successors that start try blocks. FindNextRegSuccTry(comp, block); } BasicBlock* EHSuccessorIterPosition::Current(Compiler* comp, BasicBlock* block) { assert(m_curTry != nullptr); return m_curTry->ExFlowBlock(); } flowList* Compiler::BlockPredsWithEH(BasicBlock* blk) { BlockToFlowListMap* ehPreds = GetBlockToEHPreds(); flowList* res; if (ehPreds->Lookup(blk, &res)) { return res; } res = blk->bbPreds; unsigned tryIndex; if (bbIsExFlowBlock(blk, &tryIndex)) { // Find the first block of the try. EHblkDsc* ehblk = ehGetDsc(tryIndex); BasicBlock* tryStart = ehblk->ebdTryBeg; for (BasicBlock* const tryStartPredBlock : tryStart->PredBlocks()) { res = new (this, CMK_FlowList) flowList(tryStartPredBlock, res); #if MEASURE_BLOCK_SIZE genFlowNodeCnt += 1; genFlowNodeSize += sizeof(flowList); #endif // MEASURE_BLOCK_SIZE } // Now add all blocks handled by this handler (except for second blocks of BBJ_CALLFINALLY/BBJ_ALWAYS pairs; // these cannot cause transfer to the handler...) // TODO-Throughput: It would be nice if we could iterate just over the blocks in the try, via // something like: // for (BasicBlock* bb = ehblk->ebdTryBeg; bb != ehblk->ebdTryLast->bbNext; bb = bb->bbNext) // (plus adding in any filter blocks outside the try whose exceptions are handled here). // That doesn't work, however: funclets have caused us to sometimes split the body of a try into // more than one sequence of contiguous blocks. We need to find a better way to do this. for (BasicBlock* const bb : Blocks()) { if (bbInExnFlowRegions(tryIndex, bb) && !bb->isBBCallAlwaysPairTail()) { res = new (this, CMK_FlowList) flowList(bb, res); #if MEASURE_BLOCK_SIZE genFlowNodeCnt += 1; genFlowNodeSize += sizeof(flowList); #endif // MEASURE_BLOCK_SIZE } } #ifdef DEBUG unsigned hash = SsaStressHashHelper(); if (hash != 0) { res = ShuffleHelper(hash, res); } #endif // DEBUG ehPreds->Set(blk, res); } return res; } //------------------------------------------------------------------------ // checkPredListOrder: see if pred list is properly ordered // // Returns: // false if pred list is not in increasing bbNum order. // bool BasicBlock::checkPredListOrder() { unsigned lastBBNum = 0; for (BasicBlock* const predBlock : PredBlocks()) { const unsigned bbNum = predBlock->bbNum; if (bbNum <= lastBBNum) { assert(bbNum != lastBBNum); return false; } lastBBNum = bbNum; } return true; } //------------------------------------------------------------------------ // ensurePredListOrder: ensure all pred list entries appear in increasing // bbNum order. // // Arguments: // compiler - current compiler instance // void BasicBlock::ensurePredListOrder(Compiler* compiler) { // First, check if list is already in order. // if (checkPredListOrder()) { return; } reorderPredList(compiler); assert(checkPredListOrder()); } //------------------------------------------------------------------------ // reorderPredList: relink pred list in increasing bbNum order. // // Arguments: // compiler - current compiler instance // void BasicBlock::reorderPredList(Compiler* compiler) { // Count number or entries. // int count = 0; for (flowList* const pred : PredEdges()) { count++; } // If only 0 or 1 entry, nothing to reorder. // if (count < 2) { return; } // Allocate sort vector if needed. // if (compiler->fgPredListSortVector == nullptr) { CompAllocator allocator = compiler->getAllocator(CMK_FlowList); compiler->fgPredListSortVector = new (allocator) jitstd::vector<flowList*>(allocator); } jitstd::vector<flowList*>* const sortVector = compiler->fgPredListSortVector; sortVector->clear(); // Fill in the vector from the list. // for (flowList* const pred : PredEdges()) { sortVector->push_back(pred); } // Sort by increasing bbNum // struct flowListBBNumCmp { bool operator()(const flowList* f1, const flowList* f2) { return f1->getBlock()->bbNum < f2->getBlock()->bbNum; } }; jitstd::sort(sortVector->begin(), sortVector->end(), flowListBBNumCmp()); // Rethread the list. // flowList* last = nullptr; for (flowList* current : *sortVector) { if (last == nullptr) { bbPreds = current; } else { last->flNext = current; } last = current; } last->flNext = nullptr; // Note this lastPred is only used transiently. // bbLastPred = last; } #ifdef DEBUG //------------------------------------------------------------------------ // dspBlockILRange(): Display the block's IL range as [XXX...YYY), where XXX and YYY might be "???" for BAD_IL_OFFSET. // void BasicBlock::dspBlockILRange() const { if (bbCodeOffs != BAD_IL_OFFSET) { printf("[%03X..", bbCodeOffs); } else { printf("[???" ".."); } if (bbCodeOffsEnd != BAD_IL_OFFSET) { // brace-matching editor workaround for following line: ( printf("%03X)", bbCodeOffsEnd); } else { // brace-matching editor workaround for following line: ( printf("???" ")"); } } //------------------------------------------------------------------------ // dspFlags: Print out the block's flags // void BasicBlock::dspFlags() { if (bbFlags & BBF_VISITED) { printf("v "); } if (bbFlags & BBF_MARKED) { printf("m "); } if (bbFlags & BBF_CHANGED) { printf("! "); } if (bbFlags & BBF_REMOVED) { printf("del "); } if (bbFlags & BBF_DONT_REMOVE) { printf("keep "); } if (bbFlags & BBF_IMPORTED) { printf("i "); } if (bbFlags & BBF_INTERNAL) { printf("internal "); } if (bbFlags & BBF_FAILED_VERIFICATION) { printf("failV "); } if (bbFlags & BBF_TRY_BEG) { printf("try "); } if (bbFlags & BBF_RUN_RARELY) { printf("rare "); } if (bbFlags & BBF_LOOP_HEAD) { printf("Loop "); } if (bbFlags & BBF_LOOP_CALL0) { printf("Loop0 "); } if (bbFlags & BBF_LOOP_CALL1) { printf("Loop1 "); } if (bbFlags & BBF_HAS_LABEL) { printf("label "); } if (bbFlags & BBF_HAS_JMP) { printf("jmp "); } if (bbFlags & BBF_HAS_CALL) { printf("hascall "); } if (bbFlags & BBF_GC_SAFE_POINT) { printf("gcsafe "); } if (bbFlags & BBF_FUNCLET_BEG) { printf("flet "); } if (bbFlags & BBF_HAS_IDX_LEN) { printf("idxlen "); } if (bbFlags & BBF_HAS_NEWARRAY) { printf("new[] "); } if (bbFlags & BBF_HAS_NEWOBJ) { printf("newobj "); } if (bbFlags & BBF_HAS_NULLCHECK) { printf("nullcheck "); } #if defined(FEATURE_EH_FUNCLETS) && defined(TARGET_ARM) if (bbFlags & BBF_FINALLY_TARGET) { printf("ftarget "); } #endif // defined(FEATURE_EH_FUNCLETS) && defined(TARGET_ARM) if (bbFlags & BBF_BACKWARD_JUMP) { printf("bwd "); } if (bbFlags & BBF_BACKWARD_JUMP_TARGET) { printf("bwd-target "); } if (bbFlags & BBF_BACKWARD_JUMP_SOURCE) { printf("bwd-src "); } if (bbFlags & BBF_PATCHPOINT) { printf("ppoint "); } if (bbFlags & BBF_PARTIAL_COMPILATION_PATCHPOINT) { printf("pc-ppoint "); } if (bbFlags & BBF_RETLESS_CALL) { printf("retless "); } if (bbFlags & BBF_LOOP_PREHEADER) { printf("LoopPH "); } if (bbFlags & BBF_COLD) { printf("cold "); } if (bbFlags & BBF_PROF_WEIGHT) { printf("IBC "); } if (bbFlags & BBF_IS_LIR) { printf("LIR "); } if (bbFlags & BBF_KEEP_BBJ_ALWAYS) { printf("KEEP "); } if (bbFlags & BBF_CLONED_FINALLY_BEGIN) { printf("cfb "); } if (bbFlags & BBF_CLONED_FINALLY_END) { printf("cfe "); } if (bbFlags & BBF_LOOP_ALIGN) { printf("align "); } } /***************************************************************************** * * Display the bbPreds basic block list (the block predecessors). * Returns the number of characters printed. */ unsigned BasicBlock::dspPreds() { unsigned count = 0; for (flowList* const pred : PredEdges()) { if (count != 0) { printf(","); count += 1; } printf(FMT_BB, pred->getBlock()->bbNum); count += 4; // Account for %02u only handling 2 digits, but we can display more than that. unsigned digits = CountDigits(pred->getBlock()->bbNum); if (digits > 2) { count += digits - 2; } // Does this predecessor have an interesting dup count? If so, display it. if (pred->flDupCount > 1) { printf("(%u)", pred->flDupCount); count += 2 + CountDigits(pred->flDupCount); } } return count; } /***************************************************************************** * * Display the bbCheapPreds basic block list (the block predecessors). * Returns the number of characters printed. */ unsigned BasicBlock::dspCheapPreds() { unsigned count = 0; for (BasicBlockList* pred = bbCheapPreds; pred != nullptr; pred = pred->next) { if (count != 0) { printf(","); count += 1; } printf(FMT_BB, pred->block->bbNum); count += 4; // Account for %02u only handling 2 digits, but we can display more than that. unsigned digits = CountDigits(pred->block->bbNum); if (digits > 2) { count += digits - 2; } } return count; } //------------------------------------------------------------------------ // dspSuccs: Display the basic block successors. // // Arguments: // compiler - compiler instance; passed to NumSucc(Compiler*) -- see that function for implications. // void BasicBlock::dspSuccs(Compiler* compiler) { bool first = true; // If this is a switch, we don't want to call `Succs(Compiler*)` because it will eventually call // `GetSwitchDescMap()`, and that will have the side-effect of allocating the unique switch descriptor map // and/or compute this switch block's unique succ set if it is not present. Debug output functions should // never have an effect on codegen. We also don't want to assume the unique succ set is accurate, so we // compute it ourselves here. if (bbJumpKind == BBJ_SWITCH) { // Create a set with all the successors. Don't use BlockSet, so we don't need to worry // about the BlockSet epoch. unsigned bbNumMax = compiler->impInlineRoot()->fgBBNumMax; BitVecTraits bitVecTraits(bbNumMax + 1, compiler); BitVec uniqueSuccBlocks(BitVecOps::MakeEmpty(&bitVecTraits)); for (BasicBlock* const bTarget : SwitchTargets()) { BitVecOps::AddElemD(&bitVecTraits, uniqueSuccBlocks, bTarget->bbNum); } BitVecOps::Iter iter(&bitVecTraits, uniqueSuccBlocks); unsigned bbNum = 0; while (iter.NextElem(&bbNum)) { // Note that we will output switch successors in increasing numerical bbNum order, which is // not related to their order in the bbJumpSwt->bbsDstTab table. printf("%s" FMT_BB, first ? "" : ",", bbNum); first = false; } } else { for (BasicBlock* const succ : Succs(compiler)) { printf("%s" FMT_BB, first ? "" : ",", succ->bbNum); first = false; } } } // Display a compact representation of the bbJumpKind, that is, where this block branches. // This is similar to code in Compiler::fgTableDispBasicBlock(), but doesn't have that code's requirements to align // things strictly. void BasicBlock::dspJumpKind() { switch (bbJumpKind) { case BBJ_EHFINALLYRET: printf(" (finret)"); break; case BBJ_EHFILTERRET: printf(" (fltret)"); break; case BBJ_EHCATCHRET: printf(" -> " FMT_BB " (cret)", bbJumpDest->bbNum); break; case BBJ_THROW: printf(" (throw)"); break; case BBJ_RETURN: printf(" (return)"); break; case BBJ_NONE: // For fall-through blocks, print nothing. break; case BBJ_ALWAYS: if (bbFlags & BBF_KEEP_BBJ_ALWAYS) { printf(" -> " FMT_BB " (ALWAYS)", bbJumpDest->bbNum); } else { printf(" -> " FMT_BB " (always)", bbJumpDest->bbNum); } break; case BBJ_LEAVE: printf(" -> " FMT_BB " (leave)", bbJumpDest->bbNum); break; case BBJ_CALLFINALLY: printf(" -> " FMT_BB " (callf)", bbJumpDest->bbNum); break; case BBJ_COND: printf(" -> " FMT_BB " (cond)", bbJumpDest->bbNum); break; case BBJ_SWITCH: { printf(" ->"); const unsigned jumpCnt = bbJumpSwt->bbsCount; BasicBlock** const jumpTab = bbJumpSwt->bbsDstTab; for (unsigned i = 0; i < jumpCnt; i++) { printf("%c" FMT_BB, (i == 0) ? ' ' : ',', jumpTab[i]->bbNum); const bool isDefault = bbJumpSwt->bbsHasDefault && (i == jumpCnt - 1); if (isDefault) { printf("[def]"); } const bool isDominant = bbJumpSwt->bbsHasDominantCase && (i == bbJumpSwt->bbsDominantCase); if (isDominant) { printf("[dom(" FMT_WT ")]", bbJumpSwt->bbsDominantFraction); } } printf(" (switch)"); } break; default: unreached(); break; } } void BasicBlock::dspBlockHeader(Compiler* compiler, bool showKind /*= true*/, bool showFlags /*= false*/, bool showPreds /*= true*/) { printf(FMT_BB " ", bbNum); dspBlockILRange(); if (showKind) { dspJumpKind(); } if (showPreds) { printf(", preds={"); if (compiler->fgCheapPredsValid) { dspCheapPreds(); } else { dspPreds(); } printf("} succs={"); dspSuccs(compiler); printf("}"); } if (showFlags) { const unsigned lowFlags = (unsigned)bbFlags; const unsigned highFlags = (unsigned)(bbFlags >> 32); printf(" flags=0x%08x.%08x: ", highFlags, lowFlags); dspFlags(); } printf("\n"); } const char* BasicBlock::dspToString(int blockNumPadding /* = 0 */) { static char buffers[3][64]; // static array of 3 to allow 3 concurrent calls in one printf() static int nextBufferIndex = 0; auto& buffer = buffers[nextBufferIndex]; nextBufferIndex = (nextBufferIndex + 1) % ArrLen(buffers); _snprintf_s(buffer, ArrLen(buffer), ArrLen(buffer), FMT_BB "%*s [%04u]", bbNum, blockNumPadding, "", bbID); return buffer; } #endif // DEBUG // Allocation function for MemoryPhiArg. void* BasicBlock::MemoryPhiArg::operator new(size_t sz, Compiler* comp) { return comp->getAllocator(CMK_MemoryPhiArg).allocate<char>(sz); } //------------------------------------------------------------------------ // CloneBlockState: Try to populate `to` block with a copy of `from` block's statements, replacing // uses of local `varNum` with IntCns `varVal`. // // Arguments: // compiler - Jit compiler instance // to - New/empty block to copy statements into // from - Block to copy statements from // varNum - lclVar uses with lclNum `varNum` will be replaced; can be ~0 to indicate no replacement. // varVal - If replacing uses of `varNum`, replace them with int constants with value `varVal`. // // Return Value: // Cloning may fail because this routine uses `gtCloneExpr` for cloning and it can't handle all // IR nodes. If cloning of any statement fails, `false` will be returned and block `to` may be // partially populated. If cloning of all statements succeeds, `true` will be returned and // block `to` will be fully populated. bool BasicBlock::CloneBlockState( Compiler* compiler, BasicBlock* to, const BasicBlock* from, unsigned varNum, int varVal) { assert(to->bbStmtList == nullptr); to->bbFlags = from->bbFlags; to->bbWeight = from->bbWeight; BlockSetOps::AssignAllowUninitRhs(compiler, to->bbReach, from->bbReach); to->copyEHRegion(from); to->bbCatchTyp = from->bbCatchTyp; to->bbRefs = from->bbRefs; to->bbStkTempsIn = from->bbStkTempsIn; to->bbStkTempsOut = from->bbStkTempsOut; to->bbStkDepth = from->bbStkDepth; to->bbCodeOffs = from->bbCodeOffs; to->bbCodeOffsEnd = from->bbCodeOffsEnd; VarSetOps::AssignAllowUninitRhs(compiler, to->bbScope, from->bbScope); to->bbNatLoopNum = from->bbNatLoopNum; #ifdef DEBUG to->bbTgtStkDepth = from->bbTgtStkDepth; #endif // DEBUG for (Statement* const fromStmt : from->Statements()) { GenTree* newExpr = compiler->gtCloneExpr(fromStmt->GetRootNode(), GTF_EMPTY, varNum, varVal); if (!newExpr) { // gtCloneExpr doesn't handle all opcodes, so may fail to clone a statement. // When that happens, it returns nullptr; abandon the rest of this block and // return `false` to the caller to indicate that cloning was unsuccessful. return false; } compiler->fgInsertStmtAtEnd(to, compiler->fgNewStmtFromTree(newExpr, fromStmt->GetDebugInfo())); } return true; } // LIR helpers void BasicBlock::MakeLIR(GenTree* firstNode, GenTree* lastNode) { assert(!IsLIR()); assert((firstNode == nullptr) == (lastNode == nullptr)); assert((firstNode == lastNode) || firstNode->Precedes(lastNode)); m_firstNode = firstNode; m_lastNode = lastNode; bbFlags |= BBF_IS_LIR; } bool BasicBlock::IsLIR() const { assert(isValid()); const bool isLIR = ((bbFlags & BBF_IS_LIR) != 0); return isLIR; } //------------------------------------------------------------------------ // firstStmt: Returns the first statement in the block // // Arguments: // None. // // Return Value: // The first statement in the block's bbStmtList. // Statement* BasicBlock::firstStmt() const { return bbStmtList; } //------------------------------------------------------------------------ // lastStmt: Returns the last statement in the block // // Arguments: // None. // // Return Value: // The last statement in the block's bbStmtList. // Statement* BasicBlock::lastStmt() const { if (bbStmtList == nullptr) { return nullptr; } Statement* result = bbStmtList->GetPrevStmt(); assert(result != nullptr && result->GetNextStmt() == nullptr); return result; } //------------------------------------------------------------------------ // BasicBlock::lastNode: Returns the last node in the block. // GenTree* BasicBlock::lastNode() const { return IsLIR() ? m_lastNode : lastStmt()->GetRootNode(); } //------------------------------------------------------------------------ // GetUniquePred: Returns the unique predecessor of a block, if one exists. // The predecessor lists must be accurate. // // Arguments: // None. // // Return Value: // The unique predecessor of a block, or nullptr if there is no unique predecessor. // // Notes: // If the first block has a predecessor (which it may have, if it is the target of // a backedge), we never want to consider it "unique" because the prolog is an // implicit predecessor. BasicBlock* BasicBlock::GetUniquePred(Compiler* compiler) const { if ((bbPreds == nullptr) || (bbPreds->flNext != nullptr) || (this == compiler->fgFirstBB)) { return nullptr; } else { return bbPreds->getBlock(); } } //------------------------------------------------------------------------ // GetUniqueSucc: Returns the unique successor of a block, if one exists. // Only considers BBJ_ALWAYS and BBJ_NONE block types. // // Arguments: // None. // // Return Value: // The unique successor of a block, or nullptr if there is no unique successor. BasicBlock* BasicBlock::GetUniqueSucc() const { if (bbJumpKind == BBJ_ALWAYS) { return bbJumpDest; } else if (bbJumpKind == BBJ_NONE) { return bbNext; } else { return nullptr; } } // Static vars. BasicBlock::MemoryPhiArg* BasicBlock::EmptyMemoryPhiDef = (BasicBlock::MemoryPhiArg*)0x1; unsigned JitPtrKeyFuncs<BasicBlock>::GetHashCode(const BasicBlock* ptr) { #ifdef DEBUG unsigned hash = SsaStressHashHelper(); if (hash != 0) { return (hash ^ (ptr->bbNum << 16) ^ ptr->bbNum); } #endif return ptr->bbNum; } //------------------------------------------------------------------------ // isEmpty: check if block is empty or contains only ignorable statements // // Return Value: // True if block is empty, or contains only PHI assignments, // or contains zero or more PHI assignments followed by NOPs. // bool BasicBlock::isEmpty() const { if (!IsLIR()) { for (Statement* const stmt : NonPhiStatements()) { if (!stmt->GetRootNode()->OperIs(GT_NOP)) { return false; } } } else { for (GenTree* node : LIR::AsRange(this)) { if (node->OperGet() != GT_IL_OFFSET) { return false; } } } return true; } //------------------------------------------------------------------------ // isValid: Checks that the basic block doesn't mix statements and LIR lists. // // Return Value: // True if it a valid basic block. // bool BasicBlock::isValid() const { const bool isLIR = ((bbFlags & BBF_IS_LIR) != 0); if (isLIR) { // Should not have statements in LIR. return (bbStmtList == nullptr); } else { // Should not have tree list before LIR. return (GetFirstLIRNode() == nullptr); } } Statement* BasicBlock::FirstNonPhiDef() const { Statement* stmt = firstStmt(); if (stmt == nullptr) { return nullptr; } GenTree* tree = stmt->GetRootNode(); while ((tree->OperGet() == GT_ASG && tree->AsOp()->gtOp2->OperGet() == GT_PHI) || (tree->OperGet() == GT_STORE_LCL_VAR && tree->AsOp()->gtOp1->OperGet() == GT_PHI)) { stmt = stmt->GetNextStmt(); if (stmt == nullptr) { return nullptr; } tree = stmt->GetRootNode(); } return stmt; } Statement* BasicBlock::FirstNonPhiDefOrCatchArgAsg() const { Statement* stmt = FirstNonPhiDef(); if (stmt == nullptr) { return nullptr; } GenTree* tree = stmt->GetRootNode(); if ((tree->OperGet() == GT_ASG && tree->AsOp()->gtOp2->OperGet() == GT_CATCH_ARG) || (tree->OperGet() == GT_STORE_LCL_VAR && tree->AsOp()->gtOp1->OperGet() == GT_CATCH_ARG)) { stmt = stmt->GetNextStmt(); } return stmt; } /***************************************************************************** * * Can a BasicBlock be inserted after this without altering the flowgraph */ bool BasicBlock::bbFallsThrough() const { switch (bbJumpKind) { case BBJ_THROW: case BBJ_EHFINALLYRET: case BBJ_EHFILTERRET: case BBJ_EHCATCHRET: case BBJ_RETURN: case BBJ_ALWAYS: case BBJ_LEAVE: case BBJ_SWITCH: return false; case BBJ_NONE: case BBJ_COND: return true; case BBJ_CALLFINALLY: return ((bbFlags & BBF_RETLESS_CALL) == 0); default: assert(!"Unknown bbJumpKind in bbFallsThrough()"); return true; } } //------------------------------------------------------------------------ // NumSucc: Returns the count of block successors. See the declaration comment for details. // // Arguments: // None. // // Return Value: // Count of block successors. // unsigned BasicBlock::NumSucc() const { switch (bbJumpKind) { case BBJ_THROW: case BBJ_RETURN: case BBJ_EHFINALLYRET: case BBJ_EHFILTERRET: return 0; case BBJ_CALLFINALLY: case BBJ_ALWAYS: case BBJ_EHCATCHRET: case BBJ_LEAVE: case BBJ_NONE: return 1; case BBJ_COND: if (bbJumpDest == bbNext) { return 1; } else { return 2; } case BBJ_SWITCH: return bbJumpSwt->bbsCount; default: unreached(); } } //------------------------------------------------------------------------ // GetSucc: Returns the requested block successor. See the declaration comment for details. // // Arguments: // i - index of successor to return. 0 <= i <= NumSucc(). // // Return Value: // Requested successor block // BasicBlock* BasicBlock::GetSucc(unsigned i) const { assert(i < NumSucc()); // Index bounds check. switch (bbJumpKind) { case BBJ_CALLFINALLY: case BBJ_ALWAYS: case BBJ_EHCATCHRET: case BBJ_LEAVE: return bbJumpDest; case BBJ_NONE: return bbNext; case BBJ_COND: if (i == 0) { return bbNext; } else { assert(i == 1); return bbJumpDest; } case BBJ_SWITCH: return bbJumpSwt->bbsDstTab[i]; default: unreached(); } } //------------------------------------------------------------------------ // NumSucc: Returns the count of block successors. See the declaration comment for details. // // Arguments: // comp - Compiler instance // // Return Value: // Count of block successors. // unsigned BasicBlock::NumSucc(Compiler* comp) { assert(comp != nullptr); switch (bbJumpKind) { case BBJ_THROW: case BBJ_RETURN: return 0; case BBJ_EHFINALLYRET: { // The first block of the handler is labelled with the catch type. BasicBlock* hndBeg = comp->fgFirstBlockOfHandler(this); if (hndBeg->bbCatchTyp == BBCT_FINALLY) { return comp->fgNSuccsOfFinallyRet(this); } else { assert(hndBeg->bbCatchTyp == BBCT_FAULT); // We can only BBJ_EHFINALLYRET from FINALLY and FAULT. // A FAULT block has no successors. return 0; } } case BBJ_CALLFINALLY: case BBJ_ALWAYS: case BBJ_EHCATCHRET: case BBJ_EHFILTERRET: case BBJ_LEAVE: case BBJ_NONE: return 1; case BBJ_COND: if (bbJumpDest == bbNext) { return 1; } else { return 2; } case BBJ_SWITCH: { Compiler::SwitchUniqueSuccSet sd = comp->GetDescriptorForSwitch(this); return sd.numDistinctSuccs; } default: unreached(); } } //------------------------------------------------------------------------ // GetSucc: Returns the requested block successor. See the declaration comment for details. // // Arguments: // i - index of successor to return. 0 <= i <= NumSucc(comp). // comp - Compiler instance // // Return Value: // Requested successor block // BasicBlock* BasicBlock::GetSucc(unsigned i, Compiler* comp) { assert(comp != nullptr); assert(i < NumSucc(comp)); // Index bounds check. switch (bbJumpKind) { case BBJ_EHFILTERRET: { // Handler is the (sole) normal successor of the filter. assert(comp->fgFirstBlockOfHandler(this) == bbJumpDest); return bbJumpDest; } case BBJ_EHFINALLYRET: // Note: the following call is expensive. return comp->fgSuccOfFinallyRet(this, i); case BBJ_CALLFINALLY: case BBJ_ALWAYS: case BBJ_EHCATCHRET: case BBJ_LEAVE: return bbJumpDest; case BBJ_NONE: return bbNext; case BBJ_COND: if (i == 0) { return bbNext; } else { assert(i == 1); return bbJumpDest; } case BBJ_SWITCH: { Compiler::SwitchUniqueSuccSet sd = comp->GetDescriptorForSwitch(this); assert(i < sd.numDistinctSuccs); // Range check. return sd.nonDuplicates[i]; } default: unreached(); } } void BasicBlock::InitVarSets(Compiler* comp) { VarSetOps::AssignNoCopy(comp, bbVarUse, VarSetOps::MakeEmpty(comp)); VarSetOps::AssignNoCopy(comp, bbVarDef, VarSetOps::MakeEmpty(comp)); VarSetOps::AssignNoCopy(comp, bbLiveIn, VarSetOps::MakeEmpty(comp)); VarSetOps::AssignNoCopy(comp, bbLiveOut, VarSetOps::MakeEmpty(comp)); VarSetOps::AssignNoCopy(comp, bbScope, VarSetOps::MakeEmpty(comp)); bbMemoryUse = emptyMemoryKindSet; bbMemoryDef = emptyMemoryKindSet; bbMemoryLiveIn = emptyMemoryKindSet; bbMemoryLiveOut = emptyMemoryKindSet; } // Returns true if the basic block ends with GT_JMP bool BasicBlock::endsWithJmpMethod(Compiler* comp) const { if (comp->compJmpOpUsed && (bbJumpKind == BBJ_RETURN) && (bbFlags & BBF_HAS_JMP)) { GenTree* lastNode = this->lastNode(); assert(lastNode != nullptr); return lastNode->OperGet() == GT_JMP; } return false; } // Returns true if the basic block ends with either // i) GT_JMP or // ii) tail call (implicit or explicit) // // Params: // comp - Compiler instance // fastTailCallsOnly - Only consider fast tail calls excluding tail calls via helper. // bool BasicBlock::endsWithTailCallOrJmp(Compiler* comp, bool fastTailCallsOnly /*=false*/) const { GenTree* tailCall = nullptr; bool tailCallsConvertibleToLoopOnly = false; return endsWithJmpMethod(comp) || endsWithTailCall(comp, fastTailCallsOnly, tailCallsConvertibleToLoopOnly, &tailCall); } //------------------------------------------------------------------------------ // endsWithTailCall : Check if the block ends with a tail call. // // Arguments: // comp - compiler instance // fastTailCallsOnly - check for fast tail calls only // tailCallsConvertibleToLoopOnly - check for tail calls convertible to loop only // tailCall - a pointer to a tree that will be set to the call tree if the block // ends with a tail call and will be set to nullptr otherwise. // // Return Value: // true if the block ends with a tail call; false otherwise. // // Notes: // At most one of fastTailCallsOnly and tailCallsConvertibleToLoopOnly flags can be true. // bool BasicBlock::endsWithTailCall(Compiler* comp, bool fastTailCallsOnly, bool tailCallsConvertibleToLoopOnly, GenTree** tailCall) const { assert(!fastTailCallsOnly || !tailCallsConvertibleToLoopOnly); *tailCall = nullptr; bool result = false; // Is this a tail call? // The reason for keeping this under RyuJIT is so as not to impact existing Jit32 x86 and arm // targets. if (comp->compTailCallUsed) { if (fastTailCallsOnly || tailCallsConvertibleToLoopOnly) { // Only fast tail calls or only tail calls convertible to loops result = (bbFlags & BBF_HAS_JMP) && (bbJumpKind == BBJ_RETURN); } else { // Fast tail calls, tail calls convertible to loops, and tails calls dispatched via helper result = (bbJumpKind == BBJ_THROW) || ((bbFlags & BBF_HAS_JMP) && (bbJumpKind == BBJ_RETURN)); } if (result) { GenTree* lastNode = this->lastNode(); if (lastNode->OperGet() == GT_CALL) { GenTreeCall* call = lastNode->AsCall(); if (tailCallsConvertibleToLoopOnly) { result = call->IsTailCallConvertibleToLoop(); } else if (fastTailCallsOnly) { result = call->IsFastTailCall(); } else { result = call->IsTailCall(); } if (result) { *tailCall = call; } } else { result = false; } } } return result; } //------------------------------------------------------------------------------ // endsWithTailCallConvertibleToLoop : Check if the block ends with a tail call convertible to loop. // // Arguments: // comp - compiler instance // tailCall - a pointer to a tree that will be set to the call tree if the block // ends with a tail call convertible to loop and will be set to nullptr otherwise. // // Return Value: // true if the block ends with a tail call convertible to loop. // bool BasicBlock::endsWithTailCallConvertibleToLoop(Compiler* comp, GenTree** tailCall) const { bool fastTailCallsOnly = false; bool tailCallsConvertibleToLoopOnly = true; return endsWithTailCall(comp, fastTailCallsOnly, tailCallsConvertibleToLoopOnly, tailCall); } /***************************************************************************** * * Allocate a basic block but don't append it to the current BB list. */ BasicBlock* Compiler::bbNewBasicBlock(BBjumpKinds jumpKind) { BasicBlock* block; /* Allocate the block descriptor and zero it out */ assert(fgSafeBasicBlockCreation); block = new (this, CMK_BasicBlock) BasicBlock; #if MEASURE_BLOCK_SIZE BasicBlock::s_Count += 1; BasicBlock::s_Size += sizeof(*block); #endif #ifdef DEBUG // fgLookupBB() is invalid until fgInitBBLookup() is called again. fgBBs = (BasicBlock**)0xCDCD; #endif // TODO-Throughput: The following memset is pretty expensive - do something else? // Note that some fields have to be initialized to 0 (like bbFPStateX87) memset(block, 0, sizeof(*block)); // scopeInfo needs to be able to differentiate between blocks which // correspond to some instrs (and so may have some LocalVarInfo // boundaries), or have been inserted by the JIT block->bbCodeOffs = BAD_IL_OFFSET; block->bbCodeOffsEnd = BAD_IL_OFFSET; #ifdef DEBUG block->bbID = compBasicBlockID++; #endif /* Give the block a number, set the ancestor count and weight */ ++fgBBcount; ++fgBBNumMax; if (compIsForInlining()) { block->bbNum = ++impInlineInfo->InlinerCompiler->fgBBNumMax; } else { block->bbNum = fgBBNumMax; } if (compRationalIRForm) { block->bbFlags |= BBF_IS_LIR; } block->bbRefs = 1; block->bbWeight = BB_UNITY_WEIGHT; block->bbStkTempsIn = NO_BASE_TMP; block->bbStkTempsOut = NO_BASE_TMP; block->bbEntryState = nullptr; /* Record the jump kind in the block */ block->bbJumpKind = jumpKind; if (jumpKind == BBJ_THROW) { block->bbSetRunRarely(); } #ifdef DEBUG if (verbose) { printf("New Basic Block %s created.\n", block->dspToString()); } #endif // We will give all the blocks var sets after the number of tracked variables // is determined and frozen. After that, if we dynamically create a basic block, // we will initialize its var sets. if (fgBBVarSetsInited) { VarSetOps::AssignNoCopy(this, block->bbVarUse, VarSetOps::MakeEmpty(this)); VarSetOps::AssignNoCopy(this, block->bbVarDef, VarSetOps::MakeEmpty(this)); VarSetOps::AssignNoCopy(this, block->bbLiveIn, VarSetOps::MakeEmpty(this)); VarSetOps::AssignNoCopy(this, block->bbLiveOut, VarSetOps::MakeEmpty(this)); VarSetOps::AssignNoCopy(this, block->bbScope, VarSetOps::MakeEmpty(this)); } else { VarSetOps::AssignNoCopy(this, block->bbVarUse, VarSetOps::UninitVal()); VarSetOps::AssignNoCopy(this, block->bbVarDef, VarSetOps::UninitVal()); VarSetOps::AssignNoCopy(this, block->bbLiveIn, VarSetOps::UninitVal()); VarSetOps::AssignNoCopy(this, block->bbLiveOut, VarSetOps::UninitVal()); VarSetOps::AssignNoCopy(this, block->bbScope, VarSetOps::UninitVal()); } block->bbMemoryUse = emptyMemoryKindSet; block->bbMemoryDef = emptyMemoryKindSet; block->bbMemoryLiveIn = emptyMemoryKindSet; block->bbMemoryLiveOut = emptyMemoryKindSet; for (MemoryKind memoryKind : allMemoryKinds()) { block->bbMemorySsaPhiFunc[memoryKind] = nullptr; block->bbMemorySsaNumIn[memoryKind] = 0; block->bbMemorySsaNumOut[memoryKind] = 0; } // Make sure we reserve a NOT_IN_LOOP value that isn't a legal table index. static_assert_no_msg(BasicBlock::MAX_LOOP_NUM < BasicBlock::NOT_IN_LOOP); block->bbNatLoopNum = BasicBlock::NOT_IN_LOOP; return block; } //------------------------------------------------------------------------ // isBBCallAlwaysPair: Determine if this is the first block of a BBJ_CALLFINALLY/BBJ_ALWAYS pair // // Return Value: // True iff "this" is the first block of a BBJ_CALLFINALLY/BBJ_ALWAYS pair // -- a block corresponding to an exit from the try of a try/finally. // // Notes: // In the flow graph, this becomes a block that calls the finally, and a second, immediately // following empty block (in the bbNext chain) to which the finally will return, and which // branches unconditionally to the next block to be executed outside the try/finally. // Note that code is often generated differently than this description. For example, on ARM, // the target of the BBJ_ALWAYS is loaded in LR (the return register), and a direct jump is // made to the 'finally'. The effect is that the 'finally' returns directly to the target of // the BBJ_ALWAYS. A "retless" BBJ_CALLFINALLY is one that has no corresponding BBJ_ALWAYS. // This can happen if the finally is known to not return (e.g., it contains a 'throw'). In // that case, the BBJ_CALLFINALLY flags has BBF_RETLESS_CALL set. Note that ARM never has // "retless" BBJ_CALLFINALLY blocks due to a requirement to use the BBJ_ALWAYS for // generating code. // bool BasicBlock::isBBCallAlwaysPair() const { #if defined(FEATURE_EH_FUNCLETS) && defined(TARGET_ARM) if (this->bbJumpKind == BBJ_CALLFINALLY) #else if ((this->bbJumpKind == BBJ_CALLFINALLY) && !(this->bbFlags & BBF_RETLESS_CALL)) #endif { #if defined(FEATURE_EH_FUNCLETS) && defined(TARGET_ARM) // On ARM, there are no retless BBJ_CALLFINALLY. assert(!(this->bbFlags & BBF_RETLESS_CALL)); #endif // Some asserts that the next block is a BBJ_ALWAYS of the proper form. assert(this->bbNext != nullptr); assert(this->bbNext->bbJumpKind == BBJ_ALWAYS); assert(this->bbNext->bbFlags & BBF_KEEP_BBJ_ALWAYS); assert(this->bbNext->isEmpty()); return true; } else { return false; } } //------------------------------------------------------------------------ // isBBCallAlwaysPairTail: Determine if this is the last block of a BBJ_CALLFINALLY/BBJ_ALWAYS pair // // Return Value: // True iff "this" is the last block of a BBJ_CALLFINALLY/BBJ_ALWAYS pair // -- a block corresponding to an exit from the try of a try/finally. // // Notes: // See notes on isBBCallAlwaysPair(), above. // bool BasicBlock::isBBCallAlwaysPairTail() const { return (bbPrev != nullptr) && bbPrev->isBBCallAlwaysPair(); } //------------------------------------------------------------------------ // hasEHBoundaryIn: Determine if this block begins at an EH boundary. // // Return Value: // True iff the block is the target of an EH edge; false otherwise. // // Notes: // For the purposes of this method (and its callers), an EH edge is one on // which the EH flow model requires that all lclVars must be reloaded from // the stack before use, since control flow may transfer to this block through // control flow that is not reflected in the flowgraph. // Note that having a predecessor in a different EH region doesn't require // that lclVars must be reloaded from the stack. That's only required when // this block might be entered via flow that is not represented by an edge // in the flowgraph. // bool BasicBlock::hasEHBoundaryIn() const { bool returnVal = (bbCatchTyp != BBCT_NONE); if (!returnVal) { #if FEATURE_EH_FUNCLETS assert((bbFlags & BBF_FUNCLET_BEG) == 0); #endif // FEATURE_EH_FUNCLETS } return returnVal; } //------------------------------------------------------------------------ // hasEHBoundaryOut: Determine if this block ends in an EH boundary. // // Return Value: // True iff the block ends in an exception boundary that requires that no lclVars // are live in registers; false otherwise. // // Notes: // We may have a successor in a different EH region, but it is OK to have lclVars // live in registers if any successor is a normal flow edge. That's because the // EH write-thru semantics ensure that we always have an up-to-date value on the stack. // bool BasicBlock::hasEHBoundaryOut() const { bool returnVal = false; if (bbJumpKind == BBJ_EHFILTERRET) { returnVal = true; } if (bbJumpKind == BBJ_EHFINALLYRET) { returnVal = true; } #if FEATURE_EH_FUNCLETS if (bbJumpKind == BBJ_EHCATCHRET) { returnVal = true; } #endif // FEATURE_EH_FUNCLETS return returnVal; } //------------------------------------------------------------------------ // BBswtDesc copy ctor: copy a switch descriptor // // Arguments: // comp - compiler instance // other - existing switch descriptor to copy // BBswtDesc::BBswtDesc(Compiler* comp, const BBswtDesc* other) : bbsDstTab(nullptr) , bbsCount(other->bbsCount) , bbsDominantCase(other->bbsDominantCase) , bbsDominantFraction(other->bbsDominantFraction) , bbsHasDefault(other->bbsHasDefault) , bbsHasDominantCase(other->bbsHasDominantCase) { // Allocate and fill in a new dst tab // bbsDstTab = new (comp, CMK_BasicBlock) BasicBlock*[bbsCount]; for (unsigned i = 0; i < bbsCount; i++) { bbsDstTab[i] = other->bbsDstTab[i]; } } //------------------------------------------------------------------------ // unmarkLoopAlign: Unmarks the LOOP_ALIGN flag from the block and reduce the // loop alignment count. // // Arguments: // compiler - Compiler instance // reason - Reason to print in JITDUMP // void BasicBlock::unmarkLoopAlign(Compiler* compiler DEBUG_ARG(const char* reason)) { // Make sure we unmark and count just once. if (isLoopAlign()) { compiler->loopAlignCandidates--; bbFlags &= ~BBF_LOOP_ALIGN; JITDUMP("Unmarking LOOP_ALIGN from " FMT_BB ". Reason= %s.\n", bbNum, reason); } }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/prebuilt/inc/corprof.h
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.01.0622 */ /* Compiler settings for corprof.idl: Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 8.01.0622 protocol : dce , ms_ext, c_ext, robust error checks: allocation ref bounds_check enum stub_data VC __declspec() decoration level: __declspec(uuid()), __declspec(selectany), __declspec(novtable) DECLSPEC_UUID(), MIDL_INTERFACE() */ /* @@MIDL_FILE_HEADING( ) */ #pragma warning( disable: 4049 ) /* more than 64k source lines */ /* verify that the <rpcndr.h> version is high enough to compile this file*/ #ifndef __REQUIRED_RPCNDR_H_VERSION__ #define __REQUIRED_RPCNDR_H_VERSION__ 475 #endif #include "rpc.h" #include "rpcndr.h" #ifndef __RPCNDR_H_VERSION__ #error this stub requires an updated version of <rpcndr.h> #endif /* __RPCNDR_H_VERSION__ */ #ifndef COM_NO_WINDOWS_H #include "windows.h" #include "ole2.h" #endif /*COM_NO_WINDOWS_H*/ #ifndef __corprof_h__ #define __corprof_h__ #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif /* Forward Declarations */ #ifndef __ICorProfilerCallback_FWD_DEFINED__ #define __ICorProfilerCallback_FWD_DEFINED__ typedef interface ICorProfilerCallback ICorProfilerCallback; #endif /* __ICorProfilerCallback_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback2_FWD_DEFINED__ #define __ICorProfilerCallback2_FWD_DEFINED__ typedef interface ICorProfilerCallback2 ICorProfilerCallback2; #endif /* __ICorProfilerCallback2_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback3_FWD_DEFINED__ #define __ICorProfilerCallback3_FWD_DEFINED__ typedef interface ICorProfilerCallback3 ICorProfilerCallback3; #endif /* __ICorProfilerCallback3_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback4_FWD_DEFINED__ #define __ICorProfilerCallback4_FWD_DEFINED__ typedef interface ICorProfilerCallback4 ICorProfilerCallback4; #endif /* __ICorProfilerCallback4_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback5_FWD_DEFINED__ #define __ICorProfilerCallback5_FWD_DEFINED__ typedef interface ICorProfilerCallback5 ICorProfilerCallback5; #endif /* __ICorProfilerCallback5_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback6_FWD_DEFINED__ #define __ICorProfilerCallback6_FWD_DEFINED__ typedef interface ICorProfilerCallback6 ICorProfilerCallback6; #endif /* __ICorProfilerCallback6_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback7_FWD_DEFINED__ #define __ICorProfilerCallback7_FWD_DEFINED__ typedef interface ICorProfilerCallback7 ICorProfilerCallback7; #endif /* __ICorProfilerCallback7_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback8_FWD_DEFINED__ #define __ICorProfilerCallback8_FWD_DEFINED__ typedef interface ICorProfilerCallback8 ICorProfilerCallback8; #endif /* __ICorProfilerCallback8_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback9_FWD_DEFINED__ #define __ICorProfilerCallback9_FWD_DEFINED__ typedef interface ICorProfilerCallback9 ICorProfilerCallback9; #endif /* __ICorProfilerCallback9_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback10_FWD_DEFINED__ #define __ICorProfilerCallback10_FWD_DEFINED__ typedef interface ICorProfilerCallback10 ICorProfilerCallback10; #endif /* __ICorProfilerCallback10_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback11_FWD_DEFINED__ #define __ICorProfilerCallback11_FWD_DEFINED__ typedef interface ICorProfilerCallback11 ICorProfilerCallback11; #endif /* __ICorProfilerCallback11_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo_FWD_DEFINED__ #define __ICorProfilerInfo_FWD_DEFINED__ typedef interface ICorProfilerInfo ICorProfilerInfo; #endif /* __ICorProfilerInfo_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo2_FWD_DEFINED__ #define __ICorProfilerInfo2_FWD_DEFINED__ typedef interface ICorProfilerInfo2 ICorProfilerInfo2; #endif /* __ICorProfilerInfo2_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo3_FWD_DEFINED__ #define __ICorProfilerInfo3_FWD_DEFINED__ typedef interface ICorProfilerInfo3 ICorProfilerInfo3; #endif /* __ICorProfilerInfo3_FWD_DEFINED__ */ #ifndef __ICorProfilerObjectEnum_FWD_DEFINED__ #define __ICorProfilerObjectEnum_FWD_DEFINED__ typedef interface ICorProfilerObjectEnum ICorProfilerObjectEnum; #endif /* __ICorProfilerObjectEnum_FWD_DEFINED__ */ #ifndef __ICorProfilerFunctionEnum_FWD_DEFINED__ #define __ICorProfilerFunctionEnum_FWD_DEFINED__ typedef interface ICorProfilerFunctionEnum ICorProfilerFunctionEnum; #endif /* __ICorProfilerFunctionEnum_FWD_DEFINED__ */ #ifndef __ICorProfilerModuleEnum_FWD_DEFINED__ #define __ICorProfilerModuleEnum_FWD_DEFINED__ typedef interface ICorProfilerModuleEnum ICorProfilerModuleEnum; #endif /* __ICorProfilerModuleEnum_FWD_DEFINED__ */ #ifndef __IMethodMalloc_FWD_DEFINED__ #define __IMethodMalloc_FWD_DEFINED__ typedef interface IMethodMalloc IMethodMalloc; #endif /* __IMethodMalloc_FWD_DEFINED__ */ #ifndef __ICorProfilerFunctionControl_FWD_DEFINED__ #define __ICorProfilerFunctionControl_FWD_DEFINED__ typedef interface ICorProfilerFunctionControl ICorProfilerFunctionControl; #endif /* __ICorProfilerFunctionControl_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo4_FWD_DEFINED__ #define __ICorProfilerInfo4_FWD_DEFINED__ typedef interface ICorProfilerInfo4 ICorProfilerInfo4; #endif /* __ICorProfilerInfo4_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo5_FWD_DEFINED__ #define __ICorProfilerInfo5_FWD_DEFINED__ typedef interface ICorProfilerInfo5 ICorProfilerInfo5; #endif /* __ICorProfilerInfo5_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo6_FWD_DEFINED__ #define __ICorProfilerInfo6_FWD_DEFINED__ typedef interface ICorProfilerInfo6 ICorProfilerInfo6; #endif /* __ICorProfilerInfo6_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo7_FWD_DEFINED__ #define __ICorProfilerInfo7_FWD_DEFINED__ typedef interface ICorProfilerInfo7 ICorProfilerInfo7; #endif /* __ICorProfilerInfo7_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo8_FWD_DEFINED__ #define __ICorProfilerInfo8_FWD_DEFINED__ typedef interface ICorProfilerInfo8 ICorProfilerInfo8; #endif /* __ICorProfilerInfo8_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo9_FWD_DEFINED__ #define __ICorProfilerInfo9_FWD_DEFINED__ typedef interface ICorProfilerInfo9 ICorProfilerInfo9; #endif /* __ICorProfilerInfo9_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo10_FWD_DEFINED__ #define __ICorProfilerInfo10_FWD_DEFINED__ typedef interface ICorProfilerInfo10 ICorProfilerInfo10; #endif /* __ICorProfilerInfo10_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo11_FWD_DEFINED__ #define __ICorProfilerInfo11_FWD_DEFINED__ typedef interface ICorProfilerInfo11 ICorProfilerInfo11; #endif /* __ICorProfilerInfo11_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo12_FWD_DEFINED__ #define __ICorProfilerInfo12_FWD_DEFINED__ typedef interface ICorProfilerInfo12 ICorProfilerInfo12; #endif /* __ICorProfilerInfo12_FWD_DEFINED__ */ #ifndef __ICorProfilerMethodEnum_FWD_DEFINED__ #define __ICorProfilerMethodEnum_FWD_DEFINED__ typedef interface ICorProfilerMethodEnum ICorProfilerMethodEnum; #endif /* __ICorProfilerMethodEnum_FWD_DEFINED__ */ #ifndef __ICorProfilerThreadEnum_FWD_DEFINED__ #define __ICorProfilerThreadEnum_FWD_DEFINED__ typedef interface ICorProfilerThreadEnum ICorProfilerThreadEnum; #endif /* __ICorProfilerThreadEnum_FWD_DEFINED__ */ #ifndef __ICorProfilerAssemblyReferenceProvider_FWD_DEFINED__ #define __ICorProfilerAssemblyReferenceProvider_FWD_DEFINED__ typedef interface ICorProfilerAssemblyReferenceProvider ICorProfilerAssemblyReferenceProvider; #endif /* __ICorProfilerAssemblyReferenceProvider_FWD_DEFINED__ */ /* header files for imported files */ #include "unknwn.h" #ifdef __cplusplus extern "C"{ #endif /* interface __MIDL_itf_corprof_0000_0000 */ /* [local] */ #define CorDB_CONTROL_Profiling "Cor_Enable_Profiling" #define CorDB_CONTROL_ProfilingL L"Cor_Enable_Profiling" #if 0 typedef LONG32 mdToken; typedef mdToken mdModule; typedef mdToken mdTypeDef; typedef mdToken mdMethodDef; typedef mdToken mdFieldDef; typedef ULONG CorElementType; typedef /* [public][public][public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0001 { DWORD dwOSPlatformId; DWORD dwOSMajorVersion; DWORD dwOSMinorVersion; } OSINFO; typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0002 { USHORT usMajorVersion; USHORT usMinorVersion; USHORT usBuildNumber; USHORT usRevisionNumber; LPWSTR szLocale; ULONG cbLocale; DWORD *rProcessor; ULONG ulProcessor; OSINFO *rOS; ULONG ulOS; } ASSEMBLYMETADATA; #endif typedef const BYTE *LPCBYTE; typedef BYTE *LPBYTE; typedef BYTE COR_SIGNATURE; typedef COR_SIGNATURE *PCOR_SIGNATURE; typedef const COR_SIGNATURE *PCCOR_SIGNATURE; #ifndef _COR_IL_MAP #define _COR_IL_MAP typedef struct _COR_IL_MAP { ULONG32 oldOffset; ULONG32 newOffset; BOOL fAccurate; } COR_IL_MAP; #endif //_COR_IL_MAP #ifndef _COR_DEBUG_IL_TO_NATIVE_MAP_ #define _COR_DEBUG_IL_TO_NATIVE_MAP_ typedef enum CorDebugIlToNativeMappingTypes { NO_MAPPING = -1, PROLOG = -2, EPILOG = -3 } CorDebugIlToNativeMappingTypes; typedef struct COR_DEBUG_IL_TO_NATIVE_MAP { ULONG32 ilOffset; ULONG32 nativeStartOffset; ULONG32 nativeEndOffset; } COR_DEBUG_IL_TO_NATIVE_MAP; #endif // _COR_DEBUG_IL_TO_NATIVE_MAP_ #ifndef _COR_FIELD_OFFSET_ #define _COR_FIELD_OFFSET_ typedef struct _COR_FIELD_OFFSET { mdFieldDef ridOfField; ULONG ulOffset; } COR_FIELD_OFFSET; #endif // _COR_FIELD_OFFSET_ typedef UINT_PTR ProcessID; typedef UINT_PTR AssemblyID; typedef UINT_PTR AppDomainID; typedef UINT_PTR ModuleID; typedef UINT_PTR ClassID; typedef UINT_PTR ThreadID; typedef UINT_PTR ContextID; typedef UINT_PTR FunctionID; typedef UINT_PTR ObjectID; typedef UINT_PTR GCHandleID; typedef UINT_PTR COR_PRF_ELT_INFO; typedef UINT_PTR ReJITID; typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public] */ union __MIDL___MIDL_itf_corprof_0000_0000_0003 { FunctionID functionID; UINT_PTR clientID; } FunctionIDOrClientID; typedef UINT_PTR __stdcall __stdcall FunctionIDMapper( FunctionID funcId, BOOL *pbHookFunction); typedef UINT_PTR __stdcall __stdcall FunctionIDMapper2( FunctionID funcId, void *clientData, BOOL *pbHookFunction); typedef enum _COR_PRF_SNAPSHOT_INFO { COR_PRF_SNAPSHOT_DEFAULT = 0, COR_PRF_SNAPSHOT_REGISTER_CONTEXT = 0x1, COR_PRF_SNAPSHOT_X86_OPTIMIZED = 0x2 } COR_PRF_SNAPSHOT_INFO; typedef UINT_PTR COR_PRF_FRAME_INFO; typedef struct _COR_PRF_FUNCTION_ARGUMENT_RANGE { UINT_PTR startAddress; ULONG length; } COR_PRF_FUNCTION_ARGUMENT_RANGE; typedef struct _COR_PRF_FUNCTION_ARGUMENT_INFO { ULONG numRanges; ULONG totalArgumentSize; COR_PRF_FUNCTION_ARGUMENT_RANGE ranges[ 1 ]; } COR_PRF_FUNCTION_ARGUMENT_INFO; typedef struct _COR_PRF_CODE_INFO { UINT_PTR startAddress; SIZE_T size; } COR_PRF_CODE_INFO; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0004 { COR_PRF_FIELD_NOT_A_STATIC = 0, COR_PRF_FIELD_APP_DOMAIN_STATIC = 0x1, COR_PRF_FIELD_THREAD_STATIC = 0x2, COR_PRF_FIELD_CONTEXT_STATIC = 0x4, COR_PRF_FIELD_RVA_STATIC = 0x8 } COR_PRF_STATIC_TYPE; typedef struct _COR_PRF_FUNCTION { FunctionID functionId; ReJITID reJitId; } COR_PRF_FUNCTION; typedef struct _COR_PRF_ASSEMBLY_REFERENCE_INFO { void *pbPublicKeyOrToken; ULONG cbPublicKeyOrToken; LPCWSTR szName; ASSEMBLYMETADATA *pMetaData; void *pbHashValue; ULONG cbHashValue; DWORD dwAssemblyRefFlags; } COR_PRF_ASSEMBLY_REFERENCE_INFO; typedef struct _COR_PRF_METHOD { ModuleID moduleId; mdMethodDef methodId; } COR_PRF_METHOD; typedef void FunctionEnter( FunctionID funcID); typedef void FunctionLeave( FunctionID funcID); typedef void FunctionTailcall( FunctionID funcID); typedef void FunctionEnter2( FunctionID funcId, UINT_PTR clientData, COR_PRF_FRAME_INFO func, COR_PRF_FUNCTION_ARGUMENT_INFO *argumentInfo); typedef void FunctionLeave2( FunctionID funcId, UINT_PTR clientData, COR_PRF_FRAME_INFO func, COR_PRF_FUNCTION_ARGUMENT_RANGE *retvalRange); typedef void FunctionTailcall2( FunctionID funcId, UINT_PTR clientData, COR_PRF_FRAME_INFO func); typedef void FunctionEnter3( FunctionIDOrClientID functionIDOrClientID); typedef void FunctionLeave3( FunctionIDOrClientID functionIDOrClientID); typedef void FunctionTailcall3( FunctionIDOrClientID functionIDOrClientID); typedef void FunctionEnter3WithInfo( FunctionIDOrClientID functionIDOrClientID, COR_PRF_ELT_INFO eltInfo); typedef void FunctionLeave3WithInfo( FunctionIDOrClientID functionIDOrClientID, COR_PRF_ELT_INFO eltInfo); typedef void FunctionTailcall3WithInfo( FunctionIDOrClientID functionIDOrClientID, COR_PRF_ELT_INFO eltInfo); typedef HRESULT __stdcall __stdcall StackSnapshotCallback( FunctionID funcId, UINT_PTR ip, COR_PRF_FRAME_INFO frameInfo, ULONG32 contextSize, BYTE context[ ], void *clientData); typedef BOOL ObjectReferenceCallback( ObjectID root, ObjectID *reference, void *clientData); typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0005 { COR_PRF_MONITOR_NONE = 0, COR_PRF_MONITOR_FUNCTION_UNLOADS = 0x1, COR_PRF_MONITOR_CLASS_LOADS = 0x2, COR_PRF_MONITOR_MODULE_LOADS = 0x4, COR_PRF_MONITOR_ASSEMBLY_LOADS = 0x8, COR_PRF_MONITOR_APPDOMAIN_LOADS = 0x10, COR_PRF_MONITOR_JIT_COMPILATION = 0x20, COR_PRF_MONITOR_EXCEPTIONS = 0x40, COR_PRF_MONITOR_GC = 0x80, COR_PRF_MONITOR_OBJECT_ALLOCATED = 0x100, COR_PRF_MONITOR_THREADS = 0x200, COR_PRF_MONITOR_REMOTING = 0x400, COR_PRF_MONITOR_CODE_TRANSITIONS = 0x800, COR_PRF_MONITOR_ENTERLEAVE = 0x1000, COR_PRF_MONITOR_CCW = 0x2000, COR_PRF_MONITOR_REMOTING_COOKIE = ( 0x4000 | COR_PRF_MONITOR_REMOTING ) , COR_PRF_MONITOR_REMOTING_ASYNC = ( 0x8000 | COR_PRF_MONITOR_REMOTING ) , COR_PRF_MONITOR_SUSPENDS = 0x10000, COR_PRF_MONITOR_CACHE_SEARCHES = 0x20000, COR_PRF_ENABLE_REJIT = 0x40000, COR_PRF_ENABLE_INPROC_DEBUGGING = 0x80000, COR_PRF_ENABLE_JIT_MAPS = 0x100000, COR_PRF_DISABLE_INLINING = 0x200000, COR_PRF_DISABLE_OPTIMIZATIONS = 0x400000, COR_PRF_ENABLE_OBJECT_ALLOCATED = 0x800000, COR_PRF_MONITOR_CLR_EXCEPTIONS = 0x1000000, COR_PRF_MONITOR_ALL = 0x107ffff, COR_PRF_ENABLE_FUNCTION_ARGS = 0x2000000, COR_PRF_ENABLE_FUNCTION_RETVAL = 0x4000000, COR_PRF_ENABLE_FRAME_INFO = 0x8000000, COR_PRF_ENABLE_STACK_SNAPSHOT = 0x10000000, COR_PRF_USE_PROFILE_IMAGES = 0x20000000, COR_PRF_DISABLE_TRANSPARENCY_CHECKS_UNDER_FULL_TRUST = 0x40000000, COR_PRF_DISABLE_ALL_NGEN_IMAGES = 0x80000000, COR_PRF_ALL = 0x8fffffff, COR_PRF_REQUIRE_PROFILE_IMAGE = ( ( COR_PRF_USE_PROFILE_IMAGES | COR_PRF_MONITOR_CODE_TRANSITIONS ) | COR_PRF_MONITOR_ENTERLEAVE ) , COR_PRF_ALLOWABLE_AFTER_ATTACH = ( ( ( ( ( ( ( ( ( ( COR_PRF_MONITOR_THREADS | COR_PRF_MONITOR_MODULE_LOADS ) | COR_PRF_MONITOR_ASSEMBLY_LOADS ) | COR_PRF_MONITOR_APPDOMAIN_LOADS ) | COR_PRF_ENABLE_STACK_SNAPSHOT ) | COR_PRF_MONITOR_GC ) | COR_PRF_MONITOR_SUSPENDS ) | COR_PRF_MONITOR_CLASS_LOADS ) | COR_PRF_MONITOR_EXCEPTIONS ) | COR_PRF_MONITOR_JIT_COMPILATION ) | COR_PRF_ENABLE_REJIT ) , COR_PRF_ALLOWABLE_NOTIFICATION_PROFILER = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( COR_PRF_MONITOR_FUNCTION_UNLOADS | COR_PRF_MONITOR_CLASS_LOADS ) | COR_PRF_MONITOR_MODULE_LOADS ) | COR_PRF_MONITOR_ASSEMBLY_LOADS ) | COR_PRF_MONITOR_APPDOMAIN_LOADS ) | COR_PRF_MONITOR_JIT_COMPILATION ) | COR_PRF_MONITOR_EXCEPTIONS ) | COR_PRF_MONITOR_OBJECT_ALLOCATED ) | COR_PRF_MONITOR_THREADS ) | COR_PRF_MONITOR_CODE_TRANSITIONS ) | COR_PRF_MONITOR_CCW ) | COR_PRF_MONITOR_SUSPENDS ) | COR_PRF_MONITOR_CACHE_SEARCHES ) | COR_PRF_DISABLE_INLINING ) | COR_PRF_DISABLE_OPTIMIZATIONS ) | COR_PRF_ENABLE_OBJECT_ALLOCATED ) | COR_PRF_MONITOR_CLR_EXCEPTIONS ) | COR_PRF_ENABLE_STACK_SNAPSHOT ) | COR_PRF_USE_PROFILE_IMAGES ) | COR_PRF_DISABLE_ALL_NGEN_IMAGES ) , COR_PRF_MONITOR_IMMUTABLE = ( ( ( ( ( ( ( ( ( ( ( ( ( ( COR_PRF_MONITOR_CODE_TRANSITIONS | COR_PRF_MONITOR_REMOTING ) | COR_PRF_MONITOR_REMOTING_COOKIE ) | COR_PRF_MONITOR_REMOTING_ASYNC ) | COR_PRF_ENABLE_INPROC_DEBUGGING ) | COR_PRF_ENABLE_JIT_MAPS ) | COR_PRF_DISABLE_OPTIMIZATIONS ) | COR_PRF_DISABLE_INLINING ) | COR_PRF_ENABLE_OBJECT_ALLOCATED ) | COR_PRF_ENABLE_FUNCTION_ARGS ) | COR_PRF_ENABLE_FUNCTION_RETVAL ) | COR_PRF_ENABLE_FRAME_INFO ) | COR_PRF_USE_PROFILE_IMAGES ) | COR_PRF_DISABLE_TRANSPARENCY_CHECKS_UNDER_FULL_TRUST ) | COR_PRF_DISABLE_ALL_NGEN_IMAGES ) } COR_PRF_MONITOR; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0006 { COR_PRF_HIGH_MONITOR_NONE = 0, COR_PRF_HIGH_ADD_ASSEMBLY_REFERENCES = 0x1, COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED = 0x2, COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS = 0x4, COR_PRF_HIGH_DISABLE_TIERED_COMPILATION = 0x8, COR_PRF_HIGH_BASIC_GC = 0x10, COR_PRF_HIGH_MONITOR_GC_MOVED_OBJECTS = 0x20, COR_PRF_HIGH_REQUIRE_PROFILE_IMAGE = 0, COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED = 0x40, COR_PRF_HIGH_MONITOR_EVENT_PIPE = 0x80, COR_PRF_HIGH_MONITOR_PINNEDOBJECT_ALLOCATED = 0x100, COR_PRF_HIGH_ALLOWABLE_AFTER_ATTACH = ( ( ( ( ( COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED | COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS ) | COR_PRF_HIGH_BASIC_GC ) | COR_PRF_HIGH_MONITOR_GC_MOVED_OBJECTS ) | COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED ) | COR_PRF_HIGH_MONITOR_EVENT_PIPE ) , COR_PRF_HIGH_ALLOWABLE_NOTIFICATION_PROFILER = ( ( ( ( ( ( COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED | COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS ) | COR_PRF_HIGH_DISABLE_TIERED_COMPILATION ) | COR_PRF_HIGH_BASIC_GC ) | COR_PRF_HIGH_MONITOR_GC_MOVED_OBJECTS ) | COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED ) | COR_PRF_HIGH_MONITOR_EVENT_PIPE ) , COR_PRF_HIGH_MONITOR_IMMUTABLE = COR_PRF_HIGH_DISABLE_TIERED_COMPILATION } COR_PRF_HIGH_MONITOR; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0007 { PROFILER_PARENT_UNKNOWN = 0xfffffffd, PROFILER_GLOBAL_CLASS = 0xfffffffe, PROFILER_GLOBAL_MODULE = 0xffffffff } COR_PRF_MISC; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0008 { COR_PRF_CACHED_FUNCTION_FOUND = 0, COR_PRF_CACHED_FUNCTION_NOT_FOUND = ( COR_PRF_CACHED_FUNCTION_FOUND + 1 ) } COR_PRF_JIT_CACHE; typedef /* [public][public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0009 { COR_PRF_TRANSITION_CALL = 0, COR_PRF_TRANSITION_RETURN = ( COR_PRF_TRANSITION_CALL + 1 ) } COR_PRF_TRANSITION_REASON; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0010 { COR_PRF_SUSPEND_OTHER = 0, COR_PRF_SUSPEND_FOR_GC = 1, COR_PRF_SUSPEND_FOR_APPDOMAIN_SHUTDOWN = 2, COR_PRF_SUSPEND_FOR_CODE_PITCHING = 3, COR_PRF_SUSPEND_FOR_SHUTDOWN = 4, COR_PRF_SUSPEND_FOR_INPROC_DEBUGGER = 6, COR_PRF_SUSPEND_FOR_GC_PREP = 7, COR_PRF_SUSPEND_FOR_REJIT = 8, COR_PRF_SUSPEND_FOR_PROFILER = 9 } COR_PRF_SUSPEND_REASON; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0011 { COR_PRF_DESKTOP_CLR = 0x1, COR_PRF_CORE_CLR = 0x2 } COR_PRF_RUNTIME_TYPE; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0012 { COR_PRF_REJIT_BLOCK_INLINING = 0x1, COR_PRF_REJIT_INLINING_CALLBACKS = 0x2 } COR_PRF_REJIT_FLAGS; typedef UINT_PTR EVENTPIPE_PROVIDER; typedef UINT_PTR EVENTPIPE_EVENT; typedef UINT64 EVENTPIPE_SESSION; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0013 { COR_PRF_EVENTPIPE_OBJECT = 1, COR_PRF_EVENTPIPE_BOOLEAN = 3, COR_PRF_EVENTPIPE_CHAR = 4, COR_PRF_EVENTPIPE_SBYTE = 5, COR_PRF_EVENTPIPE_BYTE = 6, COR_PRF_EVENTPIPE_INT16 = 7, COR_PRF_EVENTPIPE_UINT16 = 8, COR_PRF_EVENTPIPE_INT32 = 9, COR_PRF_EVENTPIPE_UINT32 = 10, COR_PRF_EVENTPIPE_INT64 = 11, COR_PRF_EVENTPIPE_UINT64 = 12, COR_PRF_EVENTPIPE_SINGLE = 13, COR_PRF_EVENTPIPE_DOUBLE = 14, COR_PRF_EVENTPIPE_DECIMAL = 15, COR_PRF_EVENTPIPE_DATETIME = 16, COR_PRF_EVENTPIPE_GUID = 17, COR_PRF_EVENTPIPE_STRING = 18, COR_PRF_EVENTPIPE_ARRAY = 19 } COR_PRF_EVENTPIPE_PARAM_TYPE; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0014 { COR_PRF_EVENTPIPE_LOGALWAYS = 0, COR_PRF_EVENTPIPE_CRITICAL = 1, COR_PRF_EVENTPIPE_ERROR = 2, COR_PRF_EVENTPIPE_WARNING = 3, COR_PRF_EVENTPIPE_INFORMATIONAL = 4, COR_PRF_EVENTPIPE_VERBOSE = 5 } COR_PRF_EVENTPIPE_LEVEL; typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0015 { const WCHAR *providerName; UINT64 keywords; UINT32 loggingLevel; const WCHAR *filterData; } COR_PRF_EVENTPIPE_PROVIDER_CONFIG; typedef /* [public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0016 { UINT32 type; UINT32 elementType; const WCHAR *name; } COR_PRF_EVENTPIPE_PARAM_DESC; typedef /* [public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0017 { UINT64 ptr; UINT32 size; UINT32 reserved; } COR_PRF_EVENT_DATA; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0000_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0000_v0_0_s_ifspec; #ifndef __ICorProfilerCallback_INTERFACE_DEFINED__ #define __ICorProfilerCallback_INTERFACE_DEFINED__ /* interface ICorProfilerCallback */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("176FBED1-A55C-4796-98CA-A9DA0EF883E7") ICorProfilerCallback : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Initialize( /* [in] */ IUnknown *pICorProfilerInfoUnk) = 0; virtual HRESULT STDMETHODCALLTYPE Shutdown( void) = 0; virtual HRESULT STDMETHODCALLTYPE AppDomainCreationStarted( /* [in] */ AppDomainID appDomainId) = 0; virtual HRESULT STDMETHODCALLTYPE AppDomainCreationFinished( /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE AppDomainShutdownStarted( /* [in] */ AppDomainID appDomainId) = 0; virtual HRESULT STDMETHODCALLTYPE AppDomainShutdownFinished( /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE AssemblyLoadStarted( /* [in] */ AssemblyID assemblyId) = 0; virtual HRESULT STDMETHODCALLTYPE AssemblyLoadFinished( /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE AssemblyUnloadStarted( /* [in] */ AssemblyID assemblyId) = 0; virtual HRESULT STDMETHODCALLTYPE AssemblyUnloadFinished( /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleLoadStarted( /* [in] */ ModuleID moduleId) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleLoadFinished( /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleUnloadStarted( /* [in] */ ModuleID moduleId) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleUnloadFinished( /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleAttachedToAssembly( /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId) = 0; virtual HRESULT STDMETHODCALLTYPE ClassLoadStarted( /* [in] */ ClassID classId) = 0; virtual HRESULT STDMETHODCALLTYPE ClassLoadFinished( /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE ClassUnloadStarted( /* [in] */ ClassID classId) = 0; virtual HRESULT STDMETHODCALLTYPE ClassUnloadFinished( /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE FunctionUnloadStarted( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE JITCompilationStarted( /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock) = 0; virtual HRESULT STDMETHODCALLTYPE JITCompilationFinished( /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock) = 0; virtual HRESULT STDMETHODCALLTYPE JITCachedFunctionSearchStarted( /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction) = 0; virtual HRESULT STDMETHODCALLTYPE JITCachedFunctionSearchFinished( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result) = 0; virtual HRESULT STDMETHODCALLTYPE JITFunctionPitched( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE JITInlining( /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline) = 0; virtual HRESULT STDMETHODCALLTYPE ThreadCreated( /* [in] */ ThreadID threadId) = 0; virtual HRESULT STDMETHODCALLTYPE ThreadDestroyed( /* [in] */ ThreadID threadId) = 0; virtual HRESULT STDMETHODCALLTYPE ThreadAssignedToOSThread( /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingClientInvocationStarted( void) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingClientSendingMessage( /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingClientReceivingReply( /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingClientInvocationFinished( void) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingServerReceivingMessage( /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingServerInvocationStarted( void) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingServerInvocationReturned( void) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingServerSendingReply( /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync) = 0; virtual HRESULT STDMETHODCALLTYPE UnmanagedToManagedTransition( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason) = 0; virtual HRESULT STDMETHODCALLTYPE ManagedToUnmanagedTransition( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeSuspendStarted( /* [in] */ COR_PRF_SUSPEND_REASON suspendReason) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeSuspendFinished( void) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeSuspendAborted( void) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeResumeStarted( void) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeResumeFinished( void) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeThreadSuspended( /* [in] */ ThreadID threadId) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeThreadResumed( /* [in] */ ThreadID threadId) = 0; virtual HRESULT STDMETHODCALLTYPE MovedReferences( /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE ObjectAllocated( /* [in] */ ObjectID objectId, /* [in] */ ClassID classId) = 0; virtual HRESULT STDMETHODCALLTYPE ObjectsAllocatedByClass( /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE ObjectReferences( /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE RootReferences( /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionThrown( /* [in] */ ObjectID thrownObjectId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchFunctionEnter( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchFunctionLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchFilterEnter( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchFilterLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchCatcherFound( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionOSHandlerEnter( /* [in] */ UINT_PTR __unused) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionOSHandlerLeave( /* [in] */ UINT_PTR __unused) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionUnwindFunctionEnter( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionUnwindFunctionLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionUnwindFinallyEnter( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionUnwindFinallyLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionCatcherEnter( /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionCatcherLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE COMClassicVTableCreated( /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots) = 0; virtual HRESULT STDMETHODCALLTYPE COMClassicVTableDestroyed( /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionCLRCatcherFound( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionCLRCatcherExecute( void) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallbackVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback * This); END_INTERFACE } ICorProfilerCallbackVtbl; interface ICorProfilerCallback { CONST_VTBL struct ICorProfilerCallbackVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback_INTERFACE_DEFINED__ */ /* interface __MIDL_itf_corprof_0000_0001 */ /* [local] */ typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0001 { COR_PRF_GC_ROOT_STACK = 1, COR_PRF_GC_ROOT_FINALIZER = 2, COR_PRF_GC_ROOT_HANDLE = 3, COR_PRF_GC_ROOT_OTHER = 0 } COR_PRF_GC_ROOT_KIND; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0002 { COR_PRF_GC_ROOT_PINNING = 0x1, COR_PRF_GC_ROOT_WEAKREF = 0x2, COR_PRF_GC_ROOT_INTERIOR = 0x4, COR_PRF_GC_ROOT_REFCOUNTED = 0x8 } COR_PRF_GC_ROOT_FLAGS; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0003 { COR_PRF_FINALIZER_CRITICAL = 0x1 } COR_PRF_FINALIZER_FLAGS; typedef /* [public][public][public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0004 { COR_PRF_GC_GEN_0 = 0, COR_PRF_GC_GEN_1 = 1, COR_PRF_GC_GEN_2 = 2, COR_PRF_GC_LARGE_OBJECT_HEAP = 3, COR_PRF_GC_PINNED_OBJECT_HEAP = 4 } COR_PRF_GC_GENERATION; typedef struct COR_PRF_GC_GENERATION_RANGE { COR_PRF_GC_GENERATION generation; ObjectID rangeStart; UINT_PTR rangeLength; UINT_PTR rangeLengthReserved; } COR_PRF_GC_GENERATION_RANGE; typedef /* [public][public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0005 { COR_PRF_CLAUSE_NONE = 0, COR_PRF_CLAUSE_FILTER = 1, COR_PRF_CLAUSE_CATCH = 2, COR_PRF_CLAUSE_FINALLY = 3 } COR_PRF_CLAUSE_TYPE; typedef struct COR_PRF_EX_CLAUSE_INFO { COR_PRF_CLAUSE_TYPE clauseType; UINT_PTR programCounter; UINT_PTR framePointer; UINT_PTR shadowStackPointer; } COR_PRF_EX_CLAUSE_INFO; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0006 { COR_PRF_GC_INDUCED = 1, COR_PRF_GC_OTHER = 0 } COR_PRF_GC_REASON; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0007 { COR_PRF_MODULE_DISK = 0x1, COR_PRF_MODULE_NGEN = 0x2, COR_PRF_MODULE_DYNAMIC = 0x4, COR_PRF_MODULE_COLLECTIBLE = 0x8, COR_PRF_MODULE_RESOURCE = 0x10, COR_PRF_MODULE_FLAT_LAYOUT = 0x20, COR_PRF_MODULE_WINDOWS_RUNTIME = 0x40 } COR_PRF_MODULE_FLAGS; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0001_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0001_v0_0_s_ifspec; #ifndef __ICorProfilerCallback2_INTERFACE_DEFINED__ #define __ICorProfilerCallback2_INTERFACE_DEFINED__ /* interface ICorProfilerCallback2 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback2; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("8A8CC829-CCF2-49fe-BBAE-0F022228071A") ICorProfilerCallback2 : public ICorProfilerCallback { public: virtual HRESULT STDMETHODCALLTYPE ThreadNameChanged( /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GarbageCollectionStarted( /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason) = 0; virtual HRESULT STDMETHODCALLTYPE SurvivingReferences( /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GarbageCollectionFinished( void) = 0; virtual HRESULT STDMETHODCALLTYPE FinalizeableObjectQueued( /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID) = 0; virtual HRESULT STDMETHODCALLTYPE RootReferences2( /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE HandleCreated( /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId) = 0; virtual HRESULT STDMETHODCALLTYPE HandleDestroyed( /* [in] */ GCHandleID handleId) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback2Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback2 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback2 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback2 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback2 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback2 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback2 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback2 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback2 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback2 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback2 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback2 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback2 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback2 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback2 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback2 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback2 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback2 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback2 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback2 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback2 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback2 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback2 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback2 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback2 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback2 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback2 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback2 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback2 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback2 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback2 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback2 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback2 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback2 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback2 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback2 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback2 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback2 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback2 * This, /* [in] */ GCHandleID handleId); END_INTERFACE } ICorProfilerCallback2Vtbl; interface ICorProfilerCallback2 { CONST_VTBL struct ICorProfilerCallback2Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback2_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback2_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback2_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback2_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback2_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback2_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback2_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback2_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback2_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback2_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback2_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback2_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback2_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback2_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback2_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback2_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback2_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback2_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback2_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback2_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback2_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback2_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback2_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback2_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback2_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback2_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback2_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback2_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback2_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback2_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback2_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback2_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback2_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback2_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback2_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback2_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback2_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback2_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback2_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback2_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback2_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback2_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback2_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback2_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback2_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback2_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback2_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback2_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback2_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback2_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback2_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback2_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback2_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback2_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback2_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback2_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback2_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback2_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback2_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback2_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback2_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback2_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback2_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback2_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback2_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback2_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback2_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback2_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback2_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback2_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback2_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback2_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback2_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback2_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback2_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback2_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback2_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback2_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback2_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback2_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback2_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback3_INTERFACE_DEFINED__ #define __ICorProfilerCallback3_INTERFACE_DEFINED__ /* interface ICorProfilerCallback3 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback3; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("4FD2ED52-7731-4b8d-9469-03D2CC3086C5") ICorProfilerCallback3 : public ICorProfilerCallback2 { public: virtual HRESULT STDMETHODCALLTYPE InitializeForAttach( /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData) = 0; virtual HRESULT STDMETHODCALLTYPE ProfilerAttachComplete( void) = 0; virtual HRESULT STDMETHODCALLTYPE ProfilerDetachSucceeded( void) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback3Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback3 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback3 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback3 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback3 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback3 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback3 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback3 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback3 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback3 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback3 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback3 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback3 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback3 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback3 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback3 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback3 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback3 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback3 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback3 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback3 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback3 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback3 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback3 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback3 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback3 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback3 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback3 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback3 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback3 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback3 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback3 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback3 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback3 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback3 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback3 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback3 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback3 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback3 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback3 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback3 * This); END_INTERFACE } ICorProfilerCallback3Vtbl; interface ICorProfilerCallback3 { CONST_VTBL struct ICorProfilerCallback3Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback3_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback3_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback3_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback3_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback3_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback3_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback3_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback3_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback3_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback3_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback3_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback3_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback3_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback3_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback3_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback3_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback3_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback3_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback3_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback3_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback3_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback3_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback3_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback3_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback3_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback3_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback3_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback3_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback3_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback3_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback3_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback3_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback3_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback3_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback3_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback3_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback3_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback3_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback3_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback3_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback3_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback3_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback3_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback3_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback3_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback3_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback3_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback3_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback3_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback3_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback3_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback3_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback3_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback3_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback3_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback3_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback3_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback3_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback3_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback3_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback3_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback3_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback3_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback3_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback3_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback3_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback3_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback3_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback3_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback3_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback3_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback3_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback3_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback3_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback3_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback3_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback3_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback3_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback3_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback3_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback3_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback3_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback3_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback3_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback4_INTERFACE_DEFINED__ #define __ICorProfilerCallback4_INTERFACE_DEFINED__ /* interface ICorProfilerCallback4 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback4; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("7B63B2E3-107D-4d48-B2F6-F61E229470D2") ICorProfilerCallback4 : public ICorProfilerCallback3 { public: virtual HRESULT STDMETHODCALLTYPE ReJITCompilationStarted( /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock) = 0; virtual HRESULT STDMETHODCALLTYPE GetReJITParameters( /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl) = 0; virtual HRESULT STDMETHODCALLTYPE ReJITCompilationFinished( /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock) = 0; virtual HRESULT STDMETHODCALLTYPE ReJITError( /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE MovedReferences2( /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE SurvivingReferences2( /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback4Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback4 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback4 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback4 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback4 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback4 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback4 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback4 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback4 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback4 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback4 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback4 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback4 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback4 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback4 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback4 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback4 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback4 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback4 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback4 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback4 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback4 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback4 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback4 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback4 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback4 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback4 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback4 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback4 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback4 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback4 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback4 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback4 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback4 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback4 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback4 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback4 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback4 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback4 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback4 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback4 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback4 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); END_INTERFACE } ICorProfilerCallback4Vtbl; interface ICorProfilerCallback4 { CONST_VTBL struct ICorProfilerCallback4Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback4_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback4_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback4_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback4_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback4_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback4_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback4_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback4_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback4_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback4_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback4_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback4_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback4_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback4_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback4_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback4_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback4_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback4_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback4_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback4_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback4_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback4_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback4_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback4_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback4_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback4_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback4_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback4_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback4_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback4_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback4_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback4_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback4_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback4_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback4_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback4_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback4_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback4_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback4_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback4_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback4_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback4_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback4_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback4_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback4_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback4_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback4_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback4_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback4_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback4_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback4_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback4_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback4_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback4_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback4_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback4_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback4_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback4_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback4_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback4_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback4_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback4_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback4_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback4_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback4_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback4_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback4_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback4_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback4_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback4_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback4_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback4_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback4_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback4_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback4_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback4_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback4_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback4_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback4_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback4_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback4_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback4_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback4_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback4_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback4_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback4_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback4_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback4_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback4_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback4_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback5_INTERFACE_DEFINED__ #define __ICorProfilerCallback5_INTERFACE_DEFINED__ /* interface ICorProfilerCallback5 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback5; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("8DFBA405-8C9F-45F8-BFFA-83B14CEF78B5") ICorProfilerCallback5 : public ICorProfilerCallback4 { public: virtual HRESULT STDMETHODCALLTYPE ConditionalWeakTableElementReferences( /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback5Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback5 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback5 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback5 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback5 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback5 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback5 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback5 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback5 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback5 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback5 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback5 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback5 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback5 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback5 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback5 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback5 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback5 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback5 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback5 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback5 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback5 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback5 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback5 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback5 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback5 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback5 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback5 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback5 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback5 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback5 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback5 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback5 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback5 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback5 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback5 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback5 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback5 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback5 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback5 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback5 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback5 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback5 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); END_INTERFACE } ICorProfilerCallback5Vtbl; interface ICorProfilerCallback5 { CONST_VTBL struct ICorProfilerCallback5Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback5_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback5_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback5_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback5_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback5_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback5_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback5_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback5_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback5_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback5_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback5_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback5_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback5_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback5_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback5_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback5_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback5_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback5_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback5_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback5_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback5_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback5_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback5_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback5_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback5_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback5_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback5_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback5_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback5_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback5_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback5_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback5_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback5_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback5_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback5_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback5_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback5_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback5_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback5_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback5_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback5_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback5_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback5_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback5_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback5_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback5_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback5_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback5_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback5_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback5_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback5_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback5_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback5_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback5_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback5_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback5_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback5_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback5_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback5_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback5_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback5_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback5_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback5_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback5_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback5_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback5_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback5_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback5_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback5_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback5_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback5_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback5_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback5_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback5_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback5_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback5_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback5_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback5_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback5_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback5_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback5_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback5_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback5_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback5_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback5_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback5_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback5_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback5_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback5_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback5_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback5_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback6_INTERFACE_DEFINED__ #define __ICorProfilerCallback6_INTERFACE_DEFINED__ /* interface ICorProfilerCallback6 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback6; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("FC13DF4B-4448-4F4F-950C-BA8D19D00C36") ICorProfilerCallback6 : public ICorProfilerCallback5 { public: virtual HRESULT STDMETHODCALLTYPE GetAssemblyReferences( /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback6Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback6 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback6 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback6 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback6 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback6 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback6 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback6 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback6 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback6 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback6 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback6 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback6 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback6 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback6 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback6 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback6 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback6 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback6 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback6 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback6 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback6 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback6 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback6 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback6 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback6 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback6 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback6 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback6 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback6 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback6 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback6 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback6 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback6 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback6 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback6 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback6 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback6 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback6 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback6 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback6 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback6 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback6 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback6 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); END_INTERFACE } ICorProfilerCallback6Vtbl; interface ICorProfilerCallback6 { CONST_VTBL struct ICorProfilerCallback6Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback6_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback6_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback6_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback6_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback6_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback6_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback6_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback6_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback6_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback6_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback6_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback6_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback6_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback6_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback6_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback6_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback6_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback6_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback6_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback6_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback6_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback6_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback6_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback6_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback6_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback6_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback6_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback6_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback6_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback6_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback6_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback6_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback6_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback6_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback6_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback6_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback6_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback6_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback6_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback6_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback6_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback6_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback6_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback6_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback6_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback6_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback6_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback6_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback6_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback6_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback6_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback6_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback6_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback6_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback6_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback6_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback6_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback6_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback6_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback6_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback6_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback6_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback6_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback6_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback6_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback6_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback6_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback6_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback6_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback6_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback6_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback6_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback6_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback6_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback6_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback6_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback6_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback6_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback6_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback6_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback6_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback6_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback6_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback6_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback6_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback6_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback6_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback6_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback6_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback6_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback6_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback6_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback7_INTERFACE_DEFINED__ #define __ICorProfilerCallback7_INTERFACE_DEFINED__ /* interface ICorProfilerCallback7 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback7; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("F76A2DBA-1D52-4539-866C-2AA518F9EFC3") ICorProfilerCallback7 : public ICorProfilerCallback6 { public: virtual HRESULT STDMETHODCALLTYPE ModuleInMemorySymbolsUpdated( ModuleID moduleId) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback7Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback7 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback7 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback7 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback7 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback7 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback7 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback7 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback7 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback7 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback7 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback7 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback7 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback7 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback7 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback7 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback7 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback7 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback7 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback7 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback7 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback7 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback7 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback7 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback7 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback7 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback7 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback7 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback7 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback7 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback7 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback7 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback7 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback7 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback7 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback7 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback7 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback7 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback7 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback7 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback7 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback7 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback7 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback7 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback7 * This, ModuleID moduleId); END_INTERFACE } ICorProfilerCallback7Vtbl; interface ICorProfilerCallback7 { CONST_VTBL struct ICorProfilerCallback7Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback7_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback7_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback7_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback7_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback7_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback7_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback7_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback7_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback7_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback7_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback7_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback7_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback7_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback7_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback7_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback7_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback7_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback7_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback7_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback7_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback7_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback7_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback7_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback7_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback7_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback7_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback7_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback7_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback7_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback7_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback7_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback7_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback7_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback7_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback7_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback7_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback7_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback7_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback7_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback7_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback7_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback7_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback7_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback7_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback7_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback7_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback7_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback7_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback7_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback7_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback7_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback7_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback7_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback7_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback7_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback7_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback7_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback7_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback7_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback7_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback7_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback7_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback7_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback7_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback7_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback7_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback7_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback7_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback7_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback7_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback7_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback7_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback7_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback7_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback7_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback7_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback7_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback7_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback7_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback7_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback7_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback7_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback7_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback7_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback7_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback7_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback7_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback7_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback7_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback7_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback7_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback7_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback7_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback8_INTERFACE_DEFINED__ #define __ICorProfilerCallback8_INTERFACE_DEFINED__ /* interface ICorProfilerCallback8 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback8; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("5BED9B15-C079-4D47-BFE2-215A140C07E0") ICorProfilerCallback8 : public ICorProfilerCallback7 { public: virtual HRESULT STDMETHODCALLTYPE DynamicMethodJITCompilationStarted( /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader) = 0; virtual HRESULT STDMETHODCALLTYPE DynamicMethodJITCompilationFinished( /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback8Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback8 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback8 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback8 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback8 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback8 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback8 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback8 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback8 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback8 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback8 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback8 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback8 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback8 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback8 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback8 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback8 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback8 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback8 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback8 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback8 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback8 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback8 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback8 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback8 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback8 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback8 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback8 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback8 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback8 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback8 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback8 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback8 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback8 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback8 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback8 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback8 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback8 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback8 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback8 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback8 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback8 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback8 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback8 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback8 * This, ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationFinished )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); END_INTERFACE } ICorProfilerCallback8Vtbl; interface ICorProfilerCallback8 { CONST_VTBL struct ICorProfilerCallback8Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback8_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback8_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback8_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback8_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback8_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback8_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback8_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback8_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback8_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback8_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback8_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback8_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback8_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback8_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback8_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback8_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback8_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback8_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback8_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback8_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback8_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback8_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback8_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback8_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback8_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback8_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback8_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback8_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback8_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback8_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback8_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback8_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback8_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback8_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback8_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback8_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback8_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback8_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback8_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback8_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback8_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback8_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback8_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback8_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback8_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback8_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback8_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback8_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback8_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback8_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback8_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback8_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback8_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback8_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback8_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback8_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback8_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback8_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback8_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback8_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback8_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback8_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback8_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback8_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback8_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback8_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback8_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback8_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback8_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback8_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback8_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback8_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback8_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback8_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback8_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback8_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback8_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback8_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback8_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback8_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback8_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback8_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback8_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback8_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback8_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback8_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback8_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback8_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback8_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback8_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback8_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback8_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #define ICorProfilerCallback8_DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) ) #define ICorProfilerCallback8_DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback8_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback9_INTERFACE_DEFINED__ #define __ICorProfilerCallback9_INTERFACE_DEFINED__ /* interface ICorProfilerCallback9 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback9; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("27583EC3-C8F5-482F-8052-194B8CE4705A") ICorProfilerCallback9 : public ICorProfilerCallback8 { public: virtual HRESULT STDMETHODCALLTYPE DynamicMethodUnloaded( /* [in] */ FunctionID functionId) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback9Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback9 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback9 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback9 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback9 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback9 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback9 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback9 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback9 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback9 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback9 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback9 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback9 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback9 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback9 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback9 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback9 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback9 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback9 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback9 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback9 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback9 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback9 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback9 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback9 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback9 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback9 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback9 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback9 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback9 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback9 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback9 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback9 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback9 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback9 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback9 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback9 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback9 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback9 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback9 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback9 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback9 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback9 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback9 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback9 * This, ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationFinished )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *DynamicMethodUnloaded )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); END_INTERFACE } ICorProfilerCallback9Vtbl; interface ICorProfilerCallback9 { CONST_VTBL struct ICorProfilerCallback9Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback9_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback9_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback9_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback9_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback9_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback9_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback9_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback9_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback9_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback9_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback9_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback9_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback9_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback9_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback9_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback9_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback9_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback9_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback9_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback9_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback9_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback9_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback9_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback9_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback9_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback9_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback9_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback9_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback9_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback9_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback9_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback9_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback9_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback9_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback9_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback9_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback9_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback9_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback9_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback9_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback9_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback9_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback9_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback9_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback9_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback9_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback9_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback9_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback9_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback9_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback9_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback9_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback9_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback9_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback9_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback9_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback9_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback9_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback9_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback9_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback9_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback9_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback9_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback9_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback9_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback9_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback9_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback9_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback9_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback9_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback9_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback9_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback9_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback9_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback9_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback9_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback9_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback9_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback9_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback9_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback9_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback9_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback9_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback9_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback9_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback9_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback9_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback9_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback9_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback9_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback9_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback9_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #define ICorProfilerCallback9_DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) ) #define ICorProfilerCallback9_DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback9_DynamicMethodUnloaded(This,functionId) \ ( (This)->lpVtbl -> DynamicMethodUnloaded(This,functionId) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback9_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback10_INTERFACE_DEFINED__ #define __ICorProfilerCallback10_INTERFACE_DEFINED__ /* interface ICorProfilerCallback10 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback10; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("CEC5B60E-C69C-495F-87F6-84D28EE16FFB") ICorProfilerCallback10 : public ICorProfilerCallback9 { public: virtual HRESULT STDMETHODCALLTYPE EventPipeEventDelivered( /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ DWORD eventId, /* [in] */ DWORD eventVersion, /* [in] */ ULONG cbMetadataBlob, /* [size_is][in] */ LPCBYTE metadataBlob, /* [in] */ ULONG cbEventData, /* [size_is][in] */ LPCBYTE eventData, /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId, /* [in] */ ThreadID eventThread, /* [in] */ ULONG numStackFrames, /* [length_is][in] */ UINT_PTR stackFrames[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeProviderCreated( /* [in] */ EVENTPIPE_PROVIDER provider) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback10Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback10 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback10 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback10 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback10 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback10 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback10 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback10 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback10 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback10 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback10 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback10 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback10 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback10 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback10 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback10 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback10 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback10 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback10 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback10 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback10 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback10 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback10 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback10 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback10 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback10 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback10 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback10 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback10 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback10 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback10 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback10 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback10 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback10 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback10 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback10 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback10 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback10 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback10 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback10 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback10 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback10 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback10 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback10 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback10 * This, ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationFinished )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *DynamicMethodUnloaded )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *EventPipeEventDelivered )( ICorProfilerCallback10 * This, /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ DWORD eventId, /* [in] */ DWORD eventVersion, /* [in] */ ULONG cbMetadataBlob, /* [size_is][in] */ LPCBYTE metadataBlob, /* [in] */ ULONG cbEventData, /* [size_is][in] */ LPCBYTE eventData, /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId, /* [in] */ ThreadID eventThread, /* [in] */ ULONG numStackFrames, /* [length_is][in] */ UINT_PTR stackFrames[ ]); HRESULT ( STDMETHODCALLTYPE *EventPipeProviderCreated )( ICorProfilerCallback10 * This, /* [in] */ EVENTPIPE_PROVIDER provider); END_INTERFACE } ICorProfilerCallback10Vtbl; interface ICorProfilerCallback10 { CONST_VTBL struct ICorProfilerCallback10Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback10_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback10_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback10_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback10_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback10_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback10_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback10_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback10_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback10_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback10_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback10_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback10_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback10_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback10_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback10_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback10_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback10_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback10_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback10_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback10_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback10_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback10_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback10_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback10_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback10_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback10_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback10_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback10_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback10_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback10_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback10_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback10_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback10_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback10_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback10_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback10_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback10_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback10_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback10_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback10_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback10_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback10_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback10_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback10_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback10_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback10_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback10_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback10_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback10_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback10_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback10_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback10_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback10_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback10_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback10_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback10_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback10_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback10_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback10_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback10_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback10_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback10_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback10_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback10_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback10_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback10_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback10_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback10_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback10_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback10_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback10_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback10_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback10_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback10_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback10_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback10_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback10_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback10_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback10_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback10_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback10_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback10_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback10_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback10_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback10_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback10_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback10_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback10_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback10_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback10_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback10_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback10_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #define ICorProfilerCallback10_DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) ) #define ICorProfilerCallback10_DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback10_DynamicMethodUnloaded(This,functionId) \ ( (This)->lpVtbl -> DynamicMethodUnloaded(This,functionId) ) #define ICorProfilerCallback10_EventPipeEventDelivered(This,provider,eventId,eventVersion,cbMetadataBlob,metadataBlob,cbEventData,eventData,pActivityId,pRelatedActivityId,eventThread,numStackFrames,stackFrames) \ ( (This)->lpVtbl -> EventPipeEventDelivered(This,provider,eventId,eventVersion,cbMetadataBlob,metadataBlob,cbEventData,eventData,pActivityId,pRelatedActivityId,eventThread,numStackFrames,stackFrames) ) #define ICorProfilerCallback10_EventPipeProviderCreated(This,provider) \ ( (This)->lpVtbl -> EventPipeProviderCreated(This,provider) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback10_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback11_INTERFACE_DEFINED__ #define __ICorProfilerCallback11_INTERFACE_DEFINED__ /* interface ICorProfilerCallback11 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback11; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("42350846-AAED-47F7-B128-FD0C98881CDE") ICorProfilerCallback11 : public ICorProfilerCallback10 { public: virtual HRESULT STDMETHODCALLTYPE LoadAsNotificationOnly( BOOL *pbNotificationOnly) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback11Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback11 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback11 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback11 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback11 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback11 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback11 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback11 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback11 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback11 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback11 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback11 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback11 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback11 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback11 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback11 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback11 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback11 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback11 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback11 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback11 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback11 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback11 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback11 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback11 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback11 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback11 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback11 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback11 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback11 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback11 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback11 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback11 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback11 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback11 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback11 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback11 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback11 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback11 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback11 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback11 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback11 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback11 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback11 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback11 * This, ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationFinished )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *DynamicMethodUnloaded )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *EventPipeEventDelivered )( ICorProfilerCallback11 * This, /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ DWORD eventId, /* [in] */ DWORD eventVersion, /* [in] */ ULONG cbMetadataBlob, /* [size_is][in] */ LPCBYTE metadataBlob, /* [in] */ ULONG cbEventData, /* [size_is][in] */ LPCBYTE eventData, /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId, /* [in] */ ThreadID eventThread, /* [in] */ ULONG numStackFrames, /* [length_is][in] */ UINT_PTR stackFrames[ ]); HRESULT ( STDMETHODCALLTYPE *EventPipeProviderCreated )( ICorProfilerCallback11 * This, /* [in] */ EVENTPIPE_PROVIDER provider); HRESULT ( STDMETHODCALLTYPE *LoadAsNotificationOnly )( ICorProfilerCallback11 * This, BOOL *pbNotificationOnly); END_INTERFACE } ICorProfilerCallback11Vtbl; interface ICorProfilerCallback11 { CONST_VTBL struct ICorProfilerCallback11Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback11_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback11_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback11_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback11_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback11_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback11_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback11_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback11_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback11_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback11_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback11_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback11_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback11_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback11_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback11_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback11_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback11_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback11_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback11_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback11_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback11_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback11_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback11_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback11_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback11_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback11_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback11_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback11_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback11_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback11_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback11_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback11_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback11_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback11_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback11_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback11_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback11_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback11_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback11_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback11_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback11_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback11_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback11_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback11_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback11_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback11_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback11_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback11_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback11_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback11_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback11_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback11_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback11_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback11_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback11_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback11_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback11_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback11_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback11_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback11_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback11_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback11_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback11_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback11_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback11_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback11_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback11_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback11_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback11_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback11_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback11_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback11_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback11_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback11_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback11_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback11_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback11_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback11_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback11_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback11_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback11_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback11_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback11_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback11_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback11_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback11_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback11_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback11_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback11_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback11_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback11_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback11_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #define ICorProfilerCallback11_DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) ) #define ICorProfilerCallback11_DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback11_DynamicMethodUnloaded(This,functionId) \ ( (This)->lpVtbl -> DynamicMethodUnloaded(This,functionId) ) #define ICorProfilerCallback11_EventPipeEventDelivered(This,provider,eventId,eventVersion,cbMetadataBlob,metadataBlob,cbEventData,eventData,pActivityId,pRelatedActivityId,eventThread,numStackFrames,stackFrames) \ ( (This)->lpVtbl -> EventPipeEventDelivered(This,provider,eventId,eventVersion,cbMetadataBlob,metadataBlob,cbEventData,eventData,pActivityId,pRelatedActivityId,eventThread,numStackFrames,stackFrames) ) #define ICorProfilerCallback11_EventPipeProviderCreated(This,provider) \ ( (This)->lpVtbl -> EventPipeProviderCreated(This,provider) ) #define ICorProfilerCallback11_LoadAsNotificationOnly(This,pbNotificationOnly) \ ( (This)->lpVtbl -> LoadAsNotificationOnly(This,pbNotificationOnly) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback11_INTERFACE_DEFINED__ */ /* interface __MIDL_itf_corprof_0000_0011 */ /* [local] */ typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0011_0001 { COR_PRF_CODEGEN_DISABLE_INLINING = 0x1, COR_PRF_CODEGEN_DISABLE_ALL_OPTIMIZATIONS = 0x2 } COR_PRF_CODEGEN_FLAGS; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0011_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0011_v0_0_s_ifspec; #ifndef __ICorProfilerInfo_INTERFACE_DEFINED__ #define __ICorProfilerInfo_INTERFACE_DEFINED__ /* interface ICorProfilerInfo */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("28B5557D-3F3F-48b4-90B2-5F9EEA2F6C48") ICorProfilerInfo : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE GetClassFromObject( /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassFromToken( /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId) = 0; virtual HRESULT STDMETHODCALLTYPE GetCodeInfo( /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize) = 0; virtual HRESULT STDMETHODCALLTYPE GetEventMask( /* [out] */ DWORD *pdwEvents) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromIP( /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromToken( /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId) = 0; virtual HRESULT STDMETHODCALLTYPE GetHandleFromThread( /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread) = 0; virtual HRESULT STDMETHODCALLTYPE GetObjectSize( /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize) = 0; virtual HRESULT STDMETHODCALLTYPE IsArrayClass( /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadInfo( /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId) = 0; virtual HRESULT STDMETHODCALLTYPE GetCurrentThreadID( /* [out] */ ThreadID *pThreadId) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassIDInfo( /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionInfo( /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken) = 0; virtual HRESULT STDMETHODCALLTYPE SetEventMask( /* [in] */ DWORD dwEvents) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnterLeaveFunctionHooks( /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall) = 0; virtual HRESULT STDMETHODCALLTYPE SetFunctionIDMapper( /* [in] */ FunctionIDMapper *pFunc) = 0; virtual HRESULT STDMETHODCALLTYPE GetTokenAndMetaDataFromFunction( /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken) = 0; virtual HRESULT STDMETHODCALLTYPE GetModuleInfo( /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId) = 0; virtual HRESULT STDMETHODCALLTYPE GetModuleMetaData( /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut) = 0; virtual HRESULT STDMETHODCALLTYPE GetILFunctionBody( /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize) = 0; virtual HRESULT STDMETHODCALLTYPE GetILFunctionBodyAllocator( /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc) = 0; virtual HRESULT STDMETHODCALLTYPE SetILFunctionBody( /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader) = 0; virtual HRESULT STDMETHODCALLTYPE GetAppDomainInfo( /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId) = 0; virtual HRESULT STDMETHODCALLTYPE GetAssemblyInfo( /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId) = 0; virtual HRESULT STDMETHODCALLTYPE SetFunctionReJIT( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ForceGC( void) = 0; virtual HRESULT STDMETHODCALLTYPE SetILInstrumentedCodeMap( /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetInprocInspectionInterface( /* [out] */ IUnknown **ppicd) = 0; virtual HRESULT STDMETHODCALLTYPE GetInprocInspectionIThisThread( /* [out] */ IUnknown **ppicd) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadContext( /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId) = 0; virtual HRESULT STDMETHODCALLTYPE BeginInprocDebugging( /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext) = 0; virtual HRESULT STDMETHODCALLTYPE EndInprocDebugging( /* [in] */ DWORD dwProfilerContext) = 0; virtual HRESULT STDMETHODCALLTYPE GetILToNativeMapping( /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfoVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); END_INTERFACE } ICorProfilerInfoVtbl; interface ICorProfilerInfo { CONST_VTBL struct ICorProfilerInfoVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo2_INTERFACE_DEFINED__ #define __ICorProfilerInfo2_INTERFACE_DEFINED__ /* interface ICorProfilerInfo2 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo2; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("CC0935CD-A518-487d-B0BB-A93214E65478") ICorProfilerInfo2 : public ICorProfilerInfo { public: virtual HRESULT STDMETHODCALLTYPE DoStackSnapshot( /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnterLeaveFunctionHooks2( /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionInfo2( /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetStringLayout( /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassLayout( /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassIDInfo2( /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetCodeInfo2( /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassFromTokenAndTypeArgs( /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromTokenAndTypeArgs( /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID) = 0; virtual HRESULT STDMETHODCALLTYPE EnumModuleFrozenObjects( /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetArrayObjectInfo( /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData) = 0; virtual HRESULT STDMETHODCALLTYPE GetBoxClassLayout( /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadAppDomain( /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId) = 0; virtual HRESULT STDMETHODCALLTYPE GetRVAStaticAddress( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetAppDomainStaticAddress( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadStaticAddress( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetContextStaticAddress( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetStaticFieldInfo( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo) = 0; virtual HRESULT STDMETHODCALLTYPE GetGenerationBounds( /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetObjectGeneration( /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range) = 0; virtual HRESULT STDMETHODCALLTYPE GetNotifiedExceptionClauseInfo( /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo2Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo2 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo2 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo2 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo2 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo2 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo2 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo2 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo2 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo2 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo2 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo2 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo2 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo2 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo2 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo2 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo2 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo2 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo2 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo2 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo2 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo2 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo2 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo2 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo2 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo2 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo2 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo2 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo2 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo2 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo2 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo2 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); END_INTERFACE } ICorProfilerInfo2Vtbl; interface ICorProfilerInfo2 { CONST_VTBL struct ICorProfilerInfo2Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo2_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo2_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo2_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo2_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo2_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo2_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo2_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo2_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo2_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo2_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo2_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo2_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo2_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo2_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo2_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo2_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo2_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo2_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo2_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo2_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo2_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo2_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo2_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo2_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo2_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo2_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo2_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo2_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo2_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo2_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo2_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo2_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo2_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo2_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo2_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo2_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo2_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo2_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo2_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo2_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo2_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo2_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo2_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo2_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo2_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo2_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo2_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo2_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo2_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo2_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo2_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo2_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo2_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo2_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo2_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo2_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo2_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo2_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo3_INTERFACE_DEFINED__ #define __ICorProfilerInfo3_INTERFACE_DEFINED__ /* interface ICorProfilerInfo3 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo3; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("B555ED4F-452A-4E54-8B39-B5360BAD32A0") ICorProfilerInfo3 : public ICorProfilerInfo2 { public: virtual HRESULT STDMETHODCALLTYPE EnumJITedFunctions( /* [out] */ ICorProfilerFunctionEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE RequestProfilerDetach( /* [in] */ DWORD dwExpectedCompletionMilliseconds) = 0; virtual HRESULT STDMETHODCALLTYPE SetFunctionIDMapper2( /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData) = 0; virtual HRESULT STDMETHODCALLTYPE GetStringLayout2( /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnterLeaveFunctionHooks3( /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnterLeaveFunctionHooks3WithInfo( /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionEnter3Info( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionLeave3Info( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionTailcall3Info( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo) = 0; virtual HRESULT STDMETHODCALLTYPE EnumModules( /* [out] */ ICorProfilerModuleEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetRuntimeInformation( /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadStaticAddress2( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetAppDomainsContainingModule( /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetModuleInfo2( /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo3Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo3 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo3 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo3 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo3 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo3 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo3 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo3 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo3 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo3 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo3 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo3 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo3 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo3 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo3 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo3 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo3 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo3 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo3 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo3 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo3 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo3 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo3 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo3 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo3 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo3 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo3 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo3 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo3 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo3 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo3 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo3 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo3 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo3 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo3 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo3 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo3 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo3 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo3 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo3 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); END_INTERFACE } ICorProfilerInfo3Vtbl; interface ICorProfilerInfo3 { CONST_VTBL struct ICorProfilerInfo3Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo3_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo3_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo3_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo3_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo3_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo3_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo3_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo3_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo3_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo3_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo3_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo3_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo3_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo3_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo3_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo3_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo3_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo3_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo3_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo3_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo3_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo3_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo3_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo3_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo3_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo3_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo3_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo3_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo3_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo3_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo3_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo3_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo3_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo3_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo3_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo3_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo3_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo3_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo3_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo3_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo3_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo3_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo3_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo3_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo3_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo3_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo3_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo3_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo3_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo3_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo3_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo3_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo3_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo3_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo3_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo3_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo3_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo3_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo3_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo3_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo3_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo3_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo3_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo3_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo3_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo3_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo3_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo3_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo3_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo3_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo3_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo3_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerObjectEnum_INTERFACE_DEFINED__ #define __ICorProfilerObjectEnum_INTERFACE_DEFINED__ /* interface ICorProfilerObjectEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerObjectEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2C6269BD-2D13-4321-AE12-6686365FD6AF") ICorProfilerObjectEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerObjectEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ObjectID objects[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerObjectEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerObjectEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerObjectEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerObjectEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerObjectEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerObjectEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerObjectEnum * This, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerObjectEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerObjectEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ObjectID objects[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerObjectEnumVtbl; interface ICorProfilerObjectEnum { CONST_VTBL struct ICorProfilerObjectEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerObjectEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerObjectEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerObjectEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerObjectEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerObjectEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerObjectEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerObjectEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerObjectEnum_Next(This,celt,objects,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,objects,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerObjectEnum_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerFunctionEnum_INTERFACE_DEFINED__ #define __ICorProfilerFunctionEnum_INTERFACE_DEFINED__ /* interface ICorProfilerFunctionEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerFunctionEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("FF71301A-B994-429D-A10B-B345A65280EF") ICorProfilerFunctionEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerFunctionEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ COR_PRF_FUNCTION ids[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerFunctionEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerFunctionEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerFunctionEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerFunctionEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerFunctionEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerFunctionEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerFunctionEnum * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerFunctionEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerFunctionEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ COR_PRF_FUNCTION ids[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerFunctionEnumVtbl; interface ICorProfilerFunctionEnum { CONST_VTBL struct ICorProfilerFunctionEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerFunctionEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerFunctionEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerFunctionEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerFunctionEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerFunctionEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerFunctionEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerFunctionEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerFunctionEnum_Next(This,celt,ids,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,ids,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerFunctionEnum_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerModuleEnum_INTERFACE_DEFINED__ #define __ICorProfilerModuleEnum_INTERFACE_DEFINED__ /* interface ICorProfilerModuleEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerModuleEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("b0266d75-2081-4493-af7f-028ba34db891") ICorProfilerModuleEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerModuleEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ModuleID ids[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerModuleEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerModuleEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerModuleEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerModuleEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerModuleEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerModuleEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerModuleEnum * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerModuleEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerModuleEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ModuleID ids[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerModuleEnumVtbl; interface ICorProfilerModuleEnum { CONST_VTBL struct ICorProfilerModuleEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerModuleEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerModuleEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerModuleEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerModuleEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerModuleEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerModuleEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerModuleEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerModuleEnum_Next(This,celt,ids,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,ids,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerModuleEnum_INTERFACE_DEFINED__ */ #ifndef __IMethodMalloc_INTERFACE_DEFINED__ #define __IMethodMalloc_INTERFACE_DEFINED__ /* interface IMethodMalloc */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_IMethodMalloc; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("A0EFB28B-6EE2-4d7b-B983-A75EF7BEEDB8") IMethodMalloc : public IUnknown { public: virtual PVOID STDMETHODCALLTYPE Alloc( /* [in] */ ULONG cb) = 0; }; #else /* C style interface */ typedef struct IMethodMallocVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IMethodMalloc * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IMethodMalloc * This); ULONG ( STDMETHODCALLTYPE *Release )( IMethodMalloc * This); PVOID ( STDMETHODCALLTYPE *Alloc )( IMethodMalloc * This, /* [in] */ ULONG cb); END_INTERFACE } IMethodMallocVtbl; interface IMethodMalloc { CONST_VTBL struct IMethodMallocVtbl *lpVtbl; }; #ifdef COBJMACROS #define IMethodMalloc_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IMethodMalloc_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IMethodMalloc_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IMethodMalloc_Alloc(This,cb) \ ( (This)->lpVtbl -> Alloc(This,cb) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IMethodMalloc_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerFunctionControl_INTERFACE_DEFINED__ #define __ICorProfilerFunctionControl_INTERFACE_DEFINED__ /* interface ICorProfilerFunctionControl */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerFunctionControl; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("F0963021-E1EA-4732-8581-E01B0BD3C0C6") ICorProfilerFunctionControl : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE SetCodegenFlags( /* [in] */ DWORD flags) = 0; virtual HRESULT STDMETHODCALLTYPE SetILFunctionBody( /* [in] */ ULONG cbNewILMethodHeader, /* [size_is][in] */ LPCBYTE pbNewILMethodHeader) = 0; virtual HRESULT STDMETHODCALLTYPE SetILInstrumentedCodeMap( /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerFunctionControlVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerFunctionControl * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerFunctionControl * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerFunctionControl * This); HRESULT ( STDMETHODCALLTYPE *SetCodegenFlags )( ICorProfilerFunctionControl * This, /* [in] */ DWORD flags); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerFunctionControl * This, /* [in] */ ULONG cbNewILMethodHeader, /* [size_is][in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerFunctionControl * This, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); END_INTERFACE } ICorProfilerFunctionControlVtbl; interface ICorProfilerFunctionControl { CONST_VTBL struct ICorProfilerFunctionControlVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerFunctionControl_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerFunctionControl_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerFunctionControl_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerFunctionControl_SetCodegenFlags(This,flags) \ ( (This)->lpVtbl -> SetCodegenFlags(This,flags) ) #define ICorProfilerFunctionControl_SetILFunctionBody(This,cbNewILMethodHeader,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,cbNewILMethodHeader,pbNewILMethodHeader) ) #define ICorProfilerFunctionControl_SetILInstrumentedCodeMap(This,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,cILMapEntries,rgILMapEntries) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerFunctionControl_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo4_INTERFACE_DEFINED__ #define __ICorProfilerInfo4_INTERFACE_DEFINED__ /* interface ICorProfilerInfo4 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo4; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("0d8fdcaa-6257-47bf-b1bf-94dac88466ee") ICorProfilerInfo4 : public ICorProfilerInfo3 { public: virtual HRESULT STDMETHODCALLTYPE EnumThreads( /* [out] */ ICorProfilerThreadEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE InitializeCurrentThread( void) = 0; virtual HRESULT STDMETHODCALLTYPE RequestReJIT( /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE RequestRevert( /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetCodeInfo3( /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromIP2( /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId) = 0; virtual HRESULT STDMETHODCALLTYPE GetReJITIDs( /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetILToNativeMapping2( /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE EnumJITedFunctions2( /* [out] */ ICorProfilerFunctionEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetObjectSize2( /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo4Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo4 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo4 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo4 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo4 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo4 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo4 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo4 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo4 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo4 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo4 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo4 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo4 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo4 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo4 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo4 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo4 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo4 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo4 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo4 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo4 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo4 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo4 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo4 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo4 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo4 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo4 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo4 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo4 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo4 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo4 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo4 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo4 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo4 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo4 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo4 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo4 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo4 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo4 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); END_INTERFACE } ICorProfilerInfo4Vtbl; interface ICorProfilerInfo4 { CONST_VTBL struct ICorProfilerInfo4Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo4_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo4_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo4_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo4_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo4_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo4_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo4_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo4_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo4_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo4_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo4_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo4_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo4_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo4_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo4_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo4_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo4_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo4_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo4_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo4_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo4_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo4_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo4_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo4_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo4_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo4_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo4_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo4_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo4_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo4_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo4_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo4_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo4_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo4_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo4_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo4_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo4_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo4_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo4_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo4_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo4_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo4_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo4_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo4_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo4_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo4_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo4_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo4_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo4_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo4_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo4_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo4_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo4_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo4_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo4_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo4_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo4_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo4_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo4_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo4_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo4_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo4_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo4_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo4_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo4_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo4_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo4_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo4_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo4_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo4_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo4_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo4_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo4_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo4_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo4_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo4_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo4_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo4_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo4_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo4_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo4_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo4_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo5_INTERFACE_DEFINED__ #define __ICorProfilerInfo5_INTERFACE_DEFINED__ /* interface ICorProfilerInfo5 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo5; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("07602928-CE38-4B83-81E7-74ADAF781214") ICorProfilerInfo5 : public ICorProfilerInfo4 { public: virtual HRESULT STDMETHODCALLTYPE GetEventMask2( /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh) = 0; virtual HRESULT STDMETHODCALLTYPE SetEventMask2( /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo5Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo5 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo5 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo5 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo5 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo5 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo5 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo5 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo5 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo5 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo5 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo5 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo5 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo5 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo5 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo5 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo5 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo5 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo5 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo5 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo5 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo5 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo5 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo5 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo5 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo5 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo5 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo5 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo5 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo5 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo5 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo5 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo5 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo5 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo5 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo5 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo5 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo5 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo5 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo5 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo5 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); END_INTERFACE } ICorProfilerInfo5Vtbl; interface ICorProfilerInfo5 { CONST_VTBL struct ICorProfilerInfo5Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo5_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo5_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo5_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo5_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo5_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo5_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo5_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo5_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo5_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo5_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo5_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo5_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo5_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo5_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo5_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo5_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo5_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo5_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo5_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo5_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo5_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo5_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo5_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo5_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo5_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo5_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo5_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo5_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo5_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo5_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo5_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo5_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo5_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo5_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo5_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo5_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo5_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo5_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo5_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo5_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo5_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo5_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo5_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo5_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo5_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo5_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo5_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo5_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo5_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo5_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo5_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo5_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo5_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo5_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo5_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo5_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo5_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo5_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo5_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo5_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo5_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo5_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo5_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo5_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo5_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo5_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo5_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo5_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo5_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo5_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo5_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo5_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo5_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo5_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo5_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo5_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo5_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo5_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo5_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo5_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo5_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo5_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo5_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo5_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo6_INTERFACE_DEFINED__ #define __ICorProfilerInfo6_INTERFACE_DEFINED__ /* interface ICorProfilerInfo6 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo6; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("F30A070D-BFFB-46A7-B1D8-8781EF7B698A") ICorProfilerInfo6 : public ICorProfilerInfo5 { public: virtual HRESULT STDMETHODCALLTYPE EnumNgenModuleMethodsInliningThisMethod( /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo6Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo6 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo6 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo6 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo6 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo6 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo6 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo6 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo6 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo6 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo6 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo6 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo6 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo6 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo6 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo6 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo6 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo6 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo6 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo6 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo6 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo6 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo6 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo6 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo6 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo6 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo6 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo6 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo6 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo6 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo6 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo6 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo6 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo6 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo6 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo6 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo6 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo6 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo6 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo6 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo6 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo6 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); END_INTERFACE } ICorProfilerInfo6Vtbl; interface ICorProfilerInfo6 { CONST_VTBL struct ICorProfilerInfo6Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo6_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo6_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo6_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo6_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo6_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo6_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo6_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo6_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo6_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo6_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo6_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo6_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo6_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo6_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo6_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo6_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo6_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo6_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo6_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo6_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo6_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo6_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo6_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo6_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo6_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo6_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo6_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo6_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo6_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo6_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo6_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo6_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo6_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo6_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo6_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo6_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo6_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo6_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo6_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo6_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo6_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo6_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo6_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo6_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo6_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo6_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo6_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo6_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo6_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo6_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo6_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo6_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo6_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo6_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo6_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo6_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo6_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo6_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo6_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo6_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo6_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo6_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo6_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo6_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo6_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo6_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo6_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo6_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo6_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo6_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo6_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo6_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo6_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo6_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo6_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo6_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo6_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo6_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo6_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo6_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo6_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo6_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo6_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo6_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo6_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo7_INTERFACE_DEFINED__ #define __ICorProfilerInfo7_INTERFACE_DEFINED__ /* interface ICorProfilerInfo7 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo7; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("9AEECC0D-63E0-4187-8C00-E312F503F663") ICorProfilerInfo7 : public ICorProfilerInfo6 { public: virtual HRESULT STDMETHODCALLTYPE ApplyMetaData( /* [in] */ ModuleID moduleId) = 0; virtual HRESULT STDMETHODCALLTYPE GetInMemorySymbolsLength( /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes) = 0; virtual HRESULT STDMETHODCALLTYPE ReadInMemorySymbols( /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo7Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo7 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo7 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo7 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo7 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo7 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo7 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo7 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo7 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo7 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo7 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo7 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo7 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo7 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo7 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo7 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo7 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo7 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo7 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo7 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo7 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo7 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo7 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo7 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo7 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo7 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo7 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo7 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo7 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo7 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo7 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo7 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo7 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo7 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo7 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo7 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo7 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo7 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo7 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo7 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo7 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo7 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); END_INTERFACE } ICorProfilerInfo7Vtbl; interface ICorProfilerInfo7 { CONST_VTBL struct ICorProfilerInfo7Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo7_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo7_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo7_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo7_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo7_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo7_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo7_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo7_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo7_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo7_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo7_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo7_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo7_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo7_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo7_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo7_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo7_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo7_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo7_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo7_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo7_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo7_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo7_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo7_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo7_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo7_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo7_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo7_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo7_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo7_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo7_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo7_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo7_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo7_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo7_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo7_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo7_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo7_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo7_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo7_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo7_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo7_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo7_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo7_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo7_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo7_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo7_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo7_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo7_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo7_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo7_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo7_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo7_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo7_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo7_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo7_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo7_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo7_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo7_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo7_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo7_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo7_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo7_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo7_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo7_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo7_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo7_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo7_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo7_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo7_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo7_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo7_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo7_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo7_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo7_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo7_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo7_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo7_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo7_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo7_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo7_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo7_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo7_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo7_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo7_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo7_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo7_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo7_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo8_INTERFACE_DEFINED__ #define __ICorProfilerInfo8_INTERFACE_DEFINED__ /* interface ICorProfilerInfo8 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo8; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("C5AC80A6-782E-4716-8044-39598C60CFBF") ICorProfilerInfo8 : public ICorProfilerInfo7 { public: virtual HRESULT STDMETHODCALLTYPE IsFunctionDynamic( /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromIP3( /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId) = 0; virtual HRESULT STDMETHODCALLTYPE GetDynamicFunctionInfo( /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo8Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo8 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo8 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo8 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo8 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo8 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo8 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo8 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo8 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo8 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo8 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo8 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo8 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo8 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo8 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo8 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo8 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo8 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo8 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo8 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo8 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo8 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo8 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo8 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo8 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo8 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo8 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo8 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo8 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo8 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo8 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo8 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo8 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo8 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo8 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo8 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo8 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo8 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo8 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo8 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo8 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo8 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo8 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); END_INTERFACE } ICorProfilerInfo8Vtbl; interface ICorProfilerInfo8 { CONST_VTBL struct ICorProfilerInfo8Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo8_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo8_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo8_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo8_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo8_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo8_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo8_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo8_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo8_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo8_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo8_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo8_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo8_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo8_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo8_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo8_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo8_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo8_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo8_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo8_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo8_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo8_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo8_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo8_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo8_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo8_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo8_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo8_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo8_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo8_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo8_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo8_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo8_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo8_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo8_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo8_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo8_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo8_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo8_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo8_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo8_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo8_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo8_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo8_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo8_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo8_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo8_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo8_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo8_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo8_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo8_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo8_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo8_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo8_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo8_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo8_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo8_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo8_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo8_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo8_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo8_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo8_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo8_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo8_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo8_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo8_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo8_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo8_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo8_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo8_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo8_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo8_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo8_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo8_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo8_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo8_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo8_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo8_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo8_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo8_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo8_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo8_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo8_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo8_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo8_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo8_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo8_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo8_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo8_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo8_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo8_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo9_INTERFACE_DEFINED__ #define __ICorProfilerInfo9_INTERFACE_DEFINED__ /* interface ICorProfilerInfo9 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo9; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("008170DB-F8CC-4796-9A51-DC8AA0B47012") ICorProfilerInfo9 : public ICorProfilerInfo8 { public: virtual HRESULT STDMETHODCALLTYPE GetNativeCodeStartAddresses( FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetILToNativeMapping3( UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetCodeInfo4( UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo9Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo9 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo9 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo9 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo9 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo9 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo9 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo9 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo9 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo9 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo9 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo9 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo9 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo9 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo9 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo9 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo9 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo9 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo9 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo9 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo9 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo9 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo9 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo9 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo9 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo9 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo9 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo9 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo9 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo9 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo9 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo9 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo9 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo9 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo9 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo9 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo9 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo9 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo9 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo9 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo9 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo9 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo9 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); HRESULT ( STDMETHODCALLTYPE *GetNativeCodeStartAddresses )( ICorProfilerInfo9 * This, FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping3 )( ICorProfilerInfo9 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo4 )( ICorProfilerInfo9 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]); END_INTERFACE } ICorProfilerInfo9Vtbl; interface ICorProfilerInfo9 { CONST_VTBL struct ICorProfilerInfo9Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo9_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo9_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo9_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo9_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo9_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo9_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo9_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo9_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo9_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo9_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo9_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo9_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo9_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo9_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo9_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo9_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo9_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo9_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo9_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo9_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo9_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo9_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo9_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo9_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo9_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo9_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo9_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo9_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo9_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo9_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo9_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo9_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo9_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo9_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo9_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo9_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo9_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo9_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo9_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo9_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo9_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo9_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo9_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo9_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo9_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo9_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo9_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo9_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo9_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo9_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo9_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo9_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo9_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo9_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo9_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo9_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo9_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo9_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo9_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo9_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo9_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo9_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo9_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo9_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo9_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo9_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo9_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo9_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo9_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo9_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo9_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo9_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo9_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo9_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo9_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo9_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo9_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo9_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo9_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo9_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo9_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo9_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo9_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo9_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo9_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo9_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo9_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo9_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo9_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo9_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #define ICorProfilerInfo9_GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) \ ( (This)->lpVtbl -> GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) ) #define ICorProfilerInfo9_GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) ) #define ICorProfilerInfo9_GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo9_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo10_INTERFACE_DEFINED__ #define __ICorProfilerInfo10_INTERFACE_DEFINED__ /* interface ICorProfilerInfo10 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo10; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2F1B5152-C869-40C9-AA5F-3ABE026BD720") ICorProfilerInfo10 : public ICorProfilerInfo9 { public: virtual HRESULT STDMETHODCALLTYPE EnumerateObjectReferences( ObjectID objectId, ObjectReferenceCallback callback, void *clientData) = 0; virtual HRESULT STDMETHODCALLTYPE IsFrozenObject( ObjectID objectId, BOOL *pbFrozen) = 0; virtual HRESULT STDMETHODCALLTYPE GetLOHObjectSizeThreshold( DWORD *pThreshold) = 0; virtual HRESULT STDMETHODCALLTYPE RequestReJITWithInliners( /* [in] */ DWORD dwRejitFlags, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE SuspendRuntime( void) = 0; virtual HRESULT STDMETHODCALLTYPE ResumeRuntime( void) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo10Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo10 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo10 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo10 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo10 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo10 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo10 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo10 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo10 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo10 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo10 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo10 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo10 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo10 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo10 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo10 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo10 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo10 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo10 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo10 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo10 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo10 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo10 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo10 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo10 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo10 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo10 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo10 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo10 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo10 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo10 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo10 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo10 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo10 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo10 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo10 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo10 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo10 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo10 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); HRESULT ( STDMETHODCALLTYPE *GetNativeCodeStartAddresses )( ICorProfilerInfo10 * This, FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping3 )( ICorProfilerInfo10 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo4 )( ICorProfilerInfo10 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *EnumerateObjectReferences )( ICorProfilerInfo10 * This, ObjectID objectId, ObjectReferenceCallback callback, void *clientData); HRESULT ( STDMETHODCALLTYPE *IsFrozenObject )( ICorProfilerInfo10 * This, ObjectID objectId, BOOL *pbFrozen); HRESULT ( STDMETHODCALLTYPE *GetLOHObjectSizeThreshold )( ICorProfilerInfo10 * This, DWORD *pThreshold); HRESULT ( STDMETHODCALLTYPE *RequestReJITWithInliners )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwRejitFlags, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *SuspendRuntime )( ICorProfilerInfo10 * This); HRESULT ( STDMETHODCALLTYPE *ResumeRuntime )( ICorProfilerInfo10 * This); END_INTERFACE } ICorProfilerInfo10Vtbl; interface ICorProfilerInfo10 { CONST_VTBL struct ICorProfilerInfo10Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo10_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo10_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo10_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo10_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo10_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo10_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo10_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo10_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo10_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo10_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo10_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo10_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo10_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo10_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo10_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo10_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo10_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo10_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo10_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo10_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo10_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo10_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo10_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo10_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo10_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo10_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo10_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo10_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo10_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo10_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo10_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo10_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo10_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo10_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo10_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo10_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo10_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo10_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo10_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo10_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo10_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo10_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo10_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo10_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo10_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo10_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo10_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo10_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo10_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo10_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo10_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo10_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo10_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo10_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo10_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo10_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo10_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo10_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo10_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo10_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo10_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo10_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo10_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo10_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo10_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo10_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo10_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo10_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo10_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo10_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo10_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo10_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo10_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo10_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo10_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo10_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo10_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo10_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo10_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo10_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo10_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo10_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo10_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo10_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo10_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo10_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo10_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo10_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo10_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo10_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #define ICorProfilerInfo10_GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) \ ( (This)->lpVtbl -> GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) ) #define ICorProfilerInfo10_GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) ) #define ICorProfilerInfo10_GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo10_EnumerateObjectReferences(This,objectId,callback,clientData) \ ( (This)->lpVtbl -> EnumerateObjectReferences(This,objectId,callback,clientData) ) #define ICorProfilerInfo10_IsFrozenObject(This,objectId,pbFrozen) \ ( (This)->lpVtbl -> IsFrozenObject(This,objectId,pbFrozen) ) #define ICorProfilerInfo10_GetLOHObjectSizeThreshold(This,pThreshold) \ ( (This)->lpVtbl -> GetLOHObjectSizeThreshold(This,pThreshold) ) #define ICorProfilerInfo10_RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo10_SuspendRuntime(This) \ ( (This)->lpVtbl -> SuspendRuntime(This) ) #define ICorProfilerInfo10_ResumeRuntime(This) \ ( (This)->lpVtbl -> ResumeRuntime(This) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo10_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo11_INTERFACE_DEFINED__ #define __ICorProfilerInfo11_INTERFACE_DEFINED__ /* interface ICorProfilerInfo11 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo11; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("06398876-8987-4154-B621-40A00D6E4D04") ICorProfilerInfo11 : public ICorProfilerInfo10 { public: virtual HRESULT STDMETHODCALLTYPE GetEnvironmentVariable( /* [string][in] */ const WCHAR *szName, /* [in] */ ULONG cchValue, /* [out] */ ULONG *pcchValue, /* [annotation][out] */ _Out_writes_to_(cchValue, *pcchValue) WCHAR szValue[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnvironmentVariable( /* [string][in] */ const WCHAR *szName, /* [string][in] */ const WCHAR *szValue) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo11Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo11 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo11 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo11 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo11 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo11 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo11 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo11 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo11 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo11 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo11 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo11 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo11 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo11 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo11 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo11 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo11 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo11 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo11 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo11 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo11 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo11 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo11 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo11 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo11 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo11 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo11 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo11 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo11 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo11 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo11 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo11 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo11 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo11 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo11 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo11 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); HRESULT ( STDMETHODCALLTYPE *GetNativeCodeStartAddresses )( ICorProfilerInfo11 * This, FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping3 )( ICorProfilerInfo11 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo4 )( ICorProfilerInfo11 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *EnumerateObjectReferences )( ICorProfilerInfo11 * This, ObjectID objectId, ObjectReferenceCallback callback, void *clientData); HRESULT ( STDMETHODCALLTYPE *IsFrozenObject )( ICorProfilerInfo11 * This, ObjectID objectId, BOOL *pbFrozen); HRESULT ( STDMETHODCALLTYPE *GetLOHObjectSizeThreshold )( ICorProfilerInfo11 * This, DWORD *pThreshold); HRESULT ( STDMETHODCALLTYPE *RequestReJITWithInliners )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwRejitFlags, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *SuspendRuntime )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *ResumeRuntime )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *GetEnvironmentVariable )( ICorProfilerInfo11 * This, /* [string][in] */ const WCHAR *szName, /* [in] */ ULONG cchValue, /* [out] */ ULONG *pcchValue, /* [annotation][out] */ _Out_writes_to_(cchValue, *pcchValue) WCHAR szValue[ ]); HRESULT ( STDMETHODCALLTYPE *SetEnvironmentVariable )( ICorProfilerInfo11 * This, /* [string][in] */ const WCHAR *szName, /* [string][in] */ const WCHAR *szValue); END_INTERFACE } ICorProfilerInfo11Vtbl; interface ICorProfilerInfo11 { CONST_VTBL struct ICorProfilerInfo11Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo11_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo11_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo11_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo11_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo11_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo11_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo11_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo11_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo11_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo11_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo11_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo11_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo11_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo11_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo11_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo11_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo11_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo11_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo11_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo11_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo11_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo11_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo11_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo11_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo11_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo11_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo11_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo11_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo11_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo11_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo11_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo11_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo11_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo11_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo11_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo11_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo11_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo11_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo11_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo11_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo11_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo11_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo11_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo11_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo11_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo11_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo11_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo11_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo11_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo11_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo11_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo11_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo11_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo11_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo11_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo11_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo11_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo11_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo11_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo11_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo11_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo11_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo11_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo11_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo11_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo11_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo11_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo11_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo11_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo11_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo11_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo11_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo11_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo11_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo11_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo11_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo11_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo11_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo11_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo11_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo11_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo11_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo11_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo11_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo11_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo11_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo11_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo11_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo11_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo11_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #define ICorProfilerInfo11_GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) \ ( (This)->lpVtbl -> GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) ) #define ICorProfilerInfo11_GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) ) #define ICorProfilerInfo11_GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo11_EnumerateObjectReferences(This,objectId,callback,clientData) \ ( (This)->lpVtbl -> EnumerateObjectReferences(This,objectId,callback,clientData) ) #define ICorProfilerInfo11_IsFrozenObject(This,objectId,pbFrozen) \ ( (This)->lpVtbl -> IsFrozenObject(This,objectId,pbFrozen) ) #define ICorProfilerInfo11_GetLOHObjectSizeThreshold(This,pThreshold) \ ( (This)->lpVtbl -> GetLOHObjectSizeThreshold(This,pThreshold) ) #define ICorProfilerInfo11_RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo11_SuspendRuntime(This) \ ( (This)->lpVtbl -> SuspendRuntime(This) ) #define ICorProfilerInfo11_ResumeRuntime(This) \ ( (This)->lpVtbl -> ResumeRuntime(This) ) #define ICorProfilerInfo11_GetEnvironmentVariable(This,szName,cchValue,pcchValue,szValue) \ ( (This)->lpVtbl -> GetEnvironmentVariable(This,szName,cchValue,pcchValue,szValue) ) #define ICorProfilerInfo11_SetEnvironmentVariable(This,szName,szValue) \ ( (This)->lpVtbl -> SetEnvironmentVariable(This,szName,szValue) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo11_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo12_INTERFACE_DEFINED__ #define __ICorProfilerInfo12_INTERFACE_DEFINED__ /* interface ICorProfilerInfo12 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo12; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("27b24ccd-1cb1-47c5-96ee-98190dc30959") ICorProfilerInfo12 : public ICorProfilerInfo11 { public: virtual HRESULT STDMETHODCALLTYPE EventPipeStartSession( /* [in] */ UINT32 cProviderConfigs, /* [size_is][in] */ COR_PRF_EVENTPIPE_PROVIDER_CONFIG pProviderConfigs[ ], /* [in] */ BOOL requestRundown, /* [out] */ EVENTPIPE_SESSION *pSession) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeAddProviderToSession( /* [in] */ EVENTPIPE_SESSION session, /* [in] */ COR_PRF_EVENTPIPE_PROVIDER_CONFIG providerConfig) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeStopSession( /* [in] */ EVENTPIPE_SESSION session) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeCreateProvider( /* [string][in] */ const WCHAR *providerName, /* [out] */ EVENTPIPE_PROVIDER *pProvider) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeGetProviderInfo( /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR providerName[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeDefineEvent( /* [in] */ EVENTPIPE_PROVIDER provider, /* [string][in] */ const WCHAR *eventName, /* [in] */ UINT32 eventID, /* [in] */ UINT64 keywords, /* [in] */ UINT32 eventVersion, /* [in] */ UINT32 level, /* [in] */ UINT8 opcode, /* [in] */ BOOL needStack, /* [in] */ UINT32 cParamDescs, /* [size_is][in] */ COR_PRF_EVENTPIPE_PARAM_DESC pParamDescs[ ], /* [out] */ EVENTPIPE_EVENT *pEvent) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeWriteEvent( /* [in] */ EVENTPIPE_EVENT event, /* [in] */ UINT32 cData, /* [size_is][in] */ COR_PRF_EVENT_DATA data[ ], /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo12Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo12 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo12 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo12 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo12 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo12 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo12 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo12 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo12 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo12 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo12 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo12 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo12 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo12 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo12 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo12 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo12 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo12 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo12 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo12 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo12 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo12 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo12 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo12 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo12 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo12 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo12 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo12 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo12 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo12 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo12 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo12 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo12 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo12 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo12 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo12 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); HRESULT ( STDMETHODCALLTYPE *GetNativeCodeStartAddresses )( ICorProfilerInfo12 * This, FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping3 )( ICorProfilerInfo12 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo4 )( ICorProfilerInfo12 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *EnumerateObjectReferences )( ICorProfilerInfo12 * This, ObjectID objectId, ObjectReferenceCallback callback, void *clientData); HRESULT ( STDMETHODCALLTYPE *IsFrozenObject )( ICorProfilerInfo12 * This, ObjectID objectId, BOOL *pbFrozen); HRESULT ( STDMETHODCALLTYPE *GetLOHObjectSizeThreshold )( ICorProfilerInfo12 * This, DWORD *pThreshold); HRESULT ( STDMETHODCALLTYPE *RequestReJITWithInliners )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwRejitFlags, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *SuspendRuntime )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *ResumeRuntime )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *GetEnvironmentVariable )( ICorProfilerInfo12 * This, /* [string][in] */ const WCHAR *szName, /* [in] */ ULONG cchValue, /* [out] */ ULONG *pcchValue, /* [annotation][out] */ _Out_writes_to_(cchValue, *pcchValue) WCHAR szValue[ ]); HRESULT ( STDMETHODCALLTYPE *SetEnvironmentVariable )( ICorProfilerInfo12 * This, /* [string][in] */ const WCHAR *szName, /* [string][in] */ const WCHAR *szValue); HRESULT ( STDMETHODCALLTYPE *EventPipeStartSession )( ICorProfilerInfo12 * This, /* [in] */ UINT32 cProviderConfigs, /* [size_is][in] */ COR_PRF_EVENTPIPE_PROVIDER_CONFIG pProviderConfigs[ ], /* [in] */ BOOL requestRundown, /* [out] */ EVENTPIPE_SESSION *pSession); HRESULT ( STDMETHODCALLTYPE *EventPipeAddProviderToSession )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_SESSION session, /* [in] */ COR_PRF_EVENTPIPE_PROVIDER_CONFIG providerConfig); HRESULT ( STDMETHODCALLTYPE *EventPipeStopSession )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_SESSION session); HRESULT ( STDMETHODCALLTYPE *EventPipeCreateProvider )( ICorProfilerInfo12 * This, /* [string][in] */ const WCHAR *providerName, /* [out] */ EVENTPIPE_PROVIDER *pProvider); HRESULT ( STDMETHODCALLTYPE *EventPipeGetProviderInfo )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR providerName[ ]); HRESULT ( STDMETHODCALLTYPE *EventPipeDefineEvent )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_PROVIDER provider, /* [string][in] */ const WCHAR *eventName, /* [in] */ UINT32 eventID, /* [in] */ UINT64 keywords, /* [in] */ UINT32 eventVersion, /* [in] */ UINT32 level, /* [in] */ UINT8 opcode, /* [in] */ BOOL needStack, /* [in] */ UINT32 cParamDescs, /* [size_is][in] */ COR_PRF_EVENTPIPE_PARAM_DESC pParamDescs[ ], /* [out] */ EVENTPIPE_EVENT *pEvent); HRESULT ( STDMETHODCALLTYPE *EventPipeWriteEvent )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_EVENT event, /* [in] */ UINT32 cData, /* [size_is][in] */ COR_PRF_EVENT_DATA data[ ], /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId); END_INTERFACE } ICorProfilerInfo12Vtbl; interface ICorProfilerInfo12 { CONST_VTBL struct ICorProfilerInfo12Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo12_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo12_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo12_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo12_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo12_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo12_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo12_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo12_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo12_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo12_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo12_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo12_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo12_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo12_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo12_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo12_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo12_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo12_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo12_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo12_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo12_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo12_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo12_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo12_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo12_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo12_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo12_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo12_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo12_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo12_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo12_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo12_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo12_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo12_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo12_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo12_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo12_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo12_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo12_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo12_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo12_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo12_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo12_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo12_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo12_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo12_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo12_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo12_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo12_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo12_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo12_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo12_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo12_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo12_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo12_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo12_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo12_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo12_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo12_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo12_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo12_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo12_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo12_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo12_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo12_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo12_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo12_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo12_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo12_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo12_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo12_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo12_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo12_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo12_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo12_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo12_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo12_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo12_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo12_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo12_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo12_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo12_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo12_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo12_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo12_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo12_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo12_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo12_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo12_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo12_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #define ICorProfilerInfo12_GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) \ ( (This)->lpVtbl -> GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) ) #define ICorProfilerInfo12_GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) ) #define ICorProfilerInfo12_GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo12_EnumerateObjectReferences(This,objectId,callback,clientData) \ ( (This)->lpVtbl -> EnumerateObjectReferences(This,objectId,callback,clientData) ) #define ICorProfilerInfo12_IsFrozenObject(This,objectId,pbFrozen) \ ( (This)->lpVtbl -> IsFrozenObject(This,objectId,pbFrozen) ) #define ICorProfilerInfo12_GetLOHObjectSizeThreshold(This,pThreshold) \ ( (This)->lpVtbl -> GetLOHObjectSizeThreshold(This,pThreshold) ) #define ICorProfilerInfo12_RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo12_SuspendRuntime(This) \ ( (This)->lpVtbl -> SuspendRuntime(This) ) #define ICorProfilerInfo12_ResumeRuntime(This) \ ( (This)->lpVtbl -> ResumeRuntime(This) ) #define ICorProfilerInfo12_GetEnvironmentVariable(This,szName,cchValue,pcchValue,szValue) \ ( (This)->lpVtbl -> GetEnvironmentVariable(This,szName,cchValue,pcchValue,szValue) ) #define ICorProfilerInfo12_SetEnvironmentVariable(This,szName,szValue) \ ( (This)->lpVtbl -> SetEnvironmentVariable(This,szName,szValue) ) #define ICorProfilerInfo12_EventPipeStartSession(This,cProviderConfigs,pProviderConfigs,requestRundown,pSession) \ ( (This)->lpVtbl -> EventPipeStartSession(This,cProviderConfigs,pProviderConfigs,requestRundown,pSession) ) #define ICorProfilerInfo12_EventPipeAddProviderToSession(This,session,providerConfig) \ ( (This)->lpVtbl -> EventPipeAddProviderToSession(This,session,providerConfig) ) #define ICorProfilerInfo12_EventPipeStopSession(This,session) \ ( (This)->lpVtbl -> EventPipeStopSession(This,session) ) #define ICorProfilerInfo12_EventPipeCreateProvider(This,providerName,pProvider) \ ( (This)->lpVtbl -> EventPipeCreateProvider(This,providerName,pProvider) ) #define ICorProfilerInfo12_EventPipeGetProviderInfo(This,provider,cchName,pcchName,providerName) \ ( (This)->lpVtbl -> EventPipeGetProviderInfo(This,provider,cchName,pcchName,providerName) ) #define ICorProfilerInfo12_EventPipeDefineEvent(This,provider,eventName,eventID,keywords,eventVersion,level,opcode,needStack,cParamDescs,pParamDescs,pEvent) \ ( (This)->lpVtbl -> EventPipeDefineEvent(This,provider,eventName,eventID,keywords,eventVersion,level,opcode,needStack,cParamDescs,pParamDescs,pEvent) ) #define ICorProfilerInfo12_EventPipeWriteEvent(This,event,cData,data,pActivityId,pRelatedActivityId) \ ( (This)->lpVtbl -> EventPipeWriteEvent(This,event,cData,data,pActivityId,pRelatedActivityId) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo12_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerMethodEnum_INTERFACE_DEFINED__ #define __ICorProfilerMethodEnum_INTERFACE_DEFINED__ /* interface ICorProfilerMethodEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerMethodEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("FCCEE788-0088-454B-A811-C99F298D1942") ICorProfilerMethodEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerMethodEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ COR_PRF_METHOD elements[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerMethodEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerMethodEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerMethodEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerMethodEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerMethodEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerMethodEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerMethodEnum * This, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerMethodEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerMethodEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ COR_PRF_METHOD elements[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerMethodEnumVtbl; interface ICorProfilerMethodEnum { CONST_VTBL struct ICorProfilerMethodEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerMethodEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerMethodEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerMethodEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerMethodEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerMethodEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerMethodEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerMethodEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerMethodEnum_Next(This,celt,elements,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,elements,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerMethodEnum_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerThreadEnum_INTERFACE_DEFINED__ #define __ICorProfilerThreadEnum_INTERFACE_DEFINED__ /* interface ICorProfilerThreadEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerThreadEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("571194f7-25ed-419f-aa8b-7016b3159701") ICorProfilerThreadEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerThreadEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ThreadID ids[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerThreadEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerThreadEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerThreadEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerThreadEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerThreadEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerThreadEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerThreadEnum * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerThreadEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerThreadEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ThreadID ids[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerThreadEnumVtbl; interface ICorProfilerThreadEnum { CONST_VTBL struct ICorProfilerThreadEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerThreadEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerThreadEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerThreadEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerThreadEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerThreadEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerThreadEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerThreadEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerThreadEnum_Next(This,celt,ids,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,ids,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerThreadEnum_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerAssemblyReferenceProvider_INTERFACE_DEFINED__ #define __ICorProfilerAssemblyReferenceProvider_INTERFACE_DEFINED__ /* interface ICorProfilerAssemblyReferenceProvider */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerAssemblyReferenceProvider; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("66A78C24-2EEF-4F65-B45F-DD1D8038BF3C") ICorProfilerAssemblyReferenceProvider : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE AddAssemblyReference( const COR_PRF_ASSEMBLY_REFERENCE_INFO *pAssemblyRefInfo) = 0; }; #else /* C style interface */ typedef struct ICorProfilerAssemblyReferenceProviderVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerAssemblyReferenceProvider * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerAssemblyReferenceProvider * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerAssemblyReferenceProvider * This); HRESULT ( STDMETHODCALLTYPE *AddAssemblyReference )( ICorProfilerAssemblyReferenceProvider * This, const COR_PRF_ASSEMBLY_REFERENCE_INFO *pAssemblyRefInfo); END_INTERFACE } ICorProfilerAssemblyReferenceProviderVtbl; interface ICorProfilerAssemblyReferenceProvider { CONST_VTBL struct ICorProfilerAssemblyReferenceProviderVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerAssemblyReferenceProvider_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerAssemblyReferenceProvider_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerAssemblyReferenceProvider_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerAssemblyReferenceProvider_AddAssemblyReference(This,pAssemblyRefInfo) \ ( (This)->lpVtbl -> AddAssemblyReference(This,pAssemblyRefInfo) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerAssemblyReferenceProvider_INTERFACE_DEFINED__ */ /* Additional Prototypes for ALL interfaces */ /* end of Additional Prototypes */ #ifdef __cplusplus } #endif #endif
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.01.0622 */ /* Compiler settings for corprof.idl: Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 8.01.0622 protocol : dce , ms_ext, c_ext, robust error checks: allocation ref bounds_check enum stub_data VC __declspec() decoration level: __declspec(uuid()), __declspec(selectany), __declspec(novtable) DECLSPEC_UUID(), MIDL_INTERFACE() */ /* @@MIDL_FILE_HEADING( ) */ #pragma warning( disable: 4049 ) /* more than 64k source lines */ /* verify that the <rpcndr.h> version is high enough to compile this file*/ #ifndef __REQUIRED_RPCNDR_H_VERSION__ #define __REQUIRED_RPCNDR_H_VERSION__ 475 #endif #include "rpc.h" #include "rpcndr.h" #ifndef __RPCNDR_H_VERSION__ #error this stub requires an updated version of <rpcndr.h> #endif /* __RPCNDR_H_VERSION__ */ #ifndef COM_NO_WINDOWS_H #include "windows.h" #include "ole2.h" #endif /*COM_NO_WINDOWS_H*/ #ifndef __corprof_h__ #define __corprof_h__ #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif /* Forward Declarations */ #ifndef __ICorProfilerCallback_FWD_DEFINED__ #define __ICorProfilerCallback_FWD_DEFINED__ typedef interface ICorProfilerCallback ICorProfilerCallback; #endif /* __ICorProfilerCallback_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback2_FWD_DEFINED__ #define __ICorProfilerCallback2_FWD_DEFINED__ typedef interface ICorProfilerCallback2 ICorProfilerCallback2; #endif /* __ICorProfilerCallback2_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback3_FWD_DEFINED__ #define __ICorProfilerCallback3_FWD_DEFINED__ typedef interface ICorProfilerCallback3 ICorProfilerCallback3; #endif /* __ICorProfilerCallback3_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback4_FWD_DEFINED__ #define __ICorProfilerCallback4_FWD_DEFINED__ typedef interface ICorProfilerCallback4 ICorProfilerCallback4; #endif /* __ICorProfilerCallback4_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback5_FWD_DEFINED__ #define __ICorProfilerCallback5_FWD_DEFINED__ typedef interface ICorProfilerCallback5 ICorProfilerCallback5; #endif /* __ICorProfilerCallback5_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback6_FWD_DEFINED__ #define __ICorProfilerCallback6_FWD_DEFINED__ typedef interface ICorProfilerCallback6 ICorProfilerCallback6; #endif /* __ICorProfilerCallback6_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback7_FWD_DEFINED__ #define __ICorProfilerCallback7_FWD_DEFINED__ typedef interface ICorProfilerCallback7 ICorProfilerCallback7; #endif /* __ICorProfilerCallback7_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback8_FWD_DEFINED__ #define __ICorProfilerCallback8_FWD_DEFINED__ typedef interface ICorProfilerCallback8 ICorProfilerCallback8; #endif /* __ICorProfilerCallback8_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback9_FWD_DEFINED__ #define __ICorProfilerCallback9_FWD_DEFINED__ typedef interface ICorProfilerCallback9 ICorProfilerCallback9; #endif /* __ICorProfilerCallback9_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback10_FWD_DEFINED__ #define __ICorProfilerCallback10_FWD_DEFINED__ typedef interface ICorProfilerCallback10 ICorProfilerCallback10; #endif /* __ICorProfilerCallback10_FWD_DEFINED__ */ #ifndef __ICorProfilerCallback11_FWD_DEFINED__ #define __ICorProfilerCallback11_FWD_DEFINED__ typedef interface ICorProfilerCallback11 ICorProfilerCallback11; #endif /* __ICorProfilerCallback11_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo_FWD_DEFINED__ #define __ICorProfilerInfo_FWD_DEFINED__ typedef interface ICorProfilerInfo ICorProfilerInfo; #endif /* __ICorProfilerInfo_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo2_FWD_DEFINED__ #define __ICorProfilerInfo2_FWD_DEFINED__ typedef interface ICorProfilerInfo2 ICorProfilerInfo2; #endif /* __ICorProfilerInfo2_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo3_FWD_DEFINED__ #define __ICorProfilerInfo3_FWD_DEFINED__ typedef interface ICorProfilerInfo3 ICorProfilerInfo3; #endif /* __ICorProfilerInfo3_FWD_DEFINED__ */ #ifndef __ICorProfilerObjectEnum_FWD_DEFINED__ #define __ICorProfilerObjectEnum_FWD_DEFINED__ typedef interface ICorProfilerObjectEnum ICorProfilerObjectEnum; #endif /* __ICorProfilerObjectEnum_FWD_DEFINED__ */ #ifndef __ICorProfilerFunctionEnum_FWD_DEFINED__ #define __ICorProfilerFunctionEnum_FWD_DEFINED__ typedef interface ICorProfilerFunctionEnum ICorProfilerFunctionEnum; #endif /* __ICorProfilerFunctionEnum_FWD_DEFINED__ */ #ifndef __ICorProfilerModuleEnum_FWD_DEFINED__ #define __ICorProfilerModuleEnum_FWD_DEFINED__ typedef interface ICorProfilerModuleEnum ICorProfilerModuleEnum; #endif /* __ICorProfilerModuleEnum_FWD_DEFINED__ */ #ifndef __IMethodMalloc_FWD_DEFINED__ #define __IMethodMalloc_FWD_DEFINED__ typedef interface IMethodMalloc IMethodMalloc; #endif /* __IMethodMalloc_FWD_DEFINED__ */ #ifndef __ICorProfilerFunctionControl_FWD_DEFINED__ #define __ICorProfilerFunctionControl_FWD_DEFINED__ typedef interface ICorProfilerFunctionControl ICorProfilerFunctionControl; #endif /* __ICorProfilerFunctionControl_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo4_FWD_DEFINED__ #define __ICorProfilerInfo4_FWD_DEFINED__ typedef interface ICorProfilerInfo4 ICorProfilerInfo4; #endif /* __ICorProfilerInfo4_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo5_FWD_DEFINED__ #define __ICorProfilerInfo5_FWD_DEFINED__ typedef interface ICorProfilerInfo5 ICorProfilerInfo5; #endif /* __ICorProfilerInfo5_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo6_FWD_DEFINED__ #define __ICorProfilerInfo6_FWD_DEFINED__ typedef interface ICorProfilerInfo6 ICorProfilerInfo6; #endif /* __ICorProfilerInfo6_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo7_FWD_DEFINED__ #define __ICorProfilerInfo7_FWD_DEFINED__ typedef interface ICorProfilerInfo7 ICorProfilerInfo7; #endif /* __ICorProfilerInfo7_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo8_FWD_DEFINED__ #define __ICorProfilerInfo8_FWD_DEFINED__ typedef interface ICorProfilerInfo8 ICorProfilerInfo8; #endif /* __ICorProfilerInfo8_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo9_FWD_DEFINED__ #define __ICorProfilerInfo9_FWD_DEFINED__ typedef interface ICorProfilerInfo9 ICorProfilerInfo9; #endif /* __ICorProfilerInfo9_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo10_FWD_DEFINED__ #define __ICorProfilerInfo10_FWD_DEFINED__ typedef interface ICorProfilerInfo10 ICorProfilerInfo10; #endif /* __ICorProfilerInfo10_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo11_FWD_DEFINED__ #define __ICorProfilerInfo11_FWD_DEFINED__ typedef interface ICorProfilerInfo11 ICorProfilerInfo11; #endif /* __ICorProfilerInfo11_FWD_DEFINED__ */ #ifndef __ICorProfilerInfo12_FWD_DEFINED__ #define __ICorProfilerInfo12_FWD_DEFINED__ typedef interface ICorProfilerInfo12 ICorProfilerInfo12; #endif /* __ICorProfilerInfo12_FWD_DEFINED__ */ #ifndef __ICorProfilerMethodEnum_FWD_DEFINED__ #define __ICorProfilerMethodEnum_FWD_DEFINED__ typedef interface ICorProfilerMethodEnum ICorProfilerMethodEnum; #endif /* __ICorProfilerMethodEnum_FWD_DEFINED__ */ #ifndef __ICorProfilerThreadEnum_FWD_DEFINED__ #define __ICorProfilerThreadEnum_FWD_DEFINED__ typedef interface ICorProfilerThreadEnum ICorProfilerThreadEnum; #endif /* __ICorProfilerThreadEnum_FWD_DEFINED__ */ #ifndef __ICorProfilerAssemblyReferenceProvider_FWD_DEFINED__ #define __ICorProfilerAssemblyReferenceProvider_FWD_DEFINED__ typedef interface ICorProfilerAssemblyReferenceProvider ICorProfilerAssemblyReferenceProvider; #endif /* __ICorProfilerAssemblyReferenceProvider_FWD_DEFINED__ */ /* header files for imported files */ #include "unknwn.h" #ifdef __cplusplus extern "C"{ #endif /* interface __MIDL_itf_corprof_0000_0000 */ /* [local] */ #define CorDB_CONTROL_Profiling "Cor_Enable_Profiling" #define CorDB_CONTROL_ProfilingL L"Cor_Enable_Profiling" #if 0 typedef LONG32 mdToken; typedef mdToken mdModule; typedef mdToken mdTypeDef; typedef mdToken mdMethodDef; typedef mdToken mdFieldDef; typedef ULONG CorElementType; typedef /* [public][public][public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0001 { DWORD dwOSPlatformId; DWORD dwOSMajorVersion; DWORD dwOSMinorVersion; } OSINFO; typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0002 { USHORT usMajorVersion; USHORT usMinorVersion; USHORT usBuildNumber; USHORT usRevisionNumber; LPWSTR szLocale; ULONG cbLocale; DWORD *rProcessor; ULONG ulProcessor; OSINFO *rOS; ULONG ulOS; } ASSEMBLYMETADATA; #endif typedef const BYTE *LPCBYTE; typedef BYTE *LPBYTE; typedef BYTE COR_SIGNATURE; typedef COR_SIGNATURE *PCOR_SIGNATURE; typedef const COR_SIGNATURE *PCCOR_SIGNATURE; #ifndef _COR_IL_MAP #define _COR_IL_MAP typedef struct _COR_IL_MAP { ULONG32 oldOffset; ULONG32 newOffset; BOOL fAccurate; } COR_IL_MAP; #endif //_COR_IL_MAP #ifndef _COR_DEBUG_IL_TO_NATIVE_MAP_ #define _COR_DEBUG_IL_TO_NATIVE_MAP_ typedef enum CorDebugIlToNativeMappingTypes { NO_MAPPING = -1, PROLOG = -2, EPILOG = -3 } CorDebugIlToNativeMappingTypes; typedef struct COR_DEBUG_IL_TO_NATIVE_MAP { ULONG32 ilOffset; ULONG32 nativeStartOffset; ULONG32 nativeEndOffset; } COR_DEBUG_IL_TO_NATIVE_MAP; #endif // _COR_DEBUG_IL_TO_NATIVE_MAP_ #ifndef _COR_FIELD_OFFSET_ #define _COR_FIELD_OFFSET_ typedef struct _COR_FIELD_OFFSET { mdFieldDef ridOfField; ULONG ulOffset; } COR_FIELD_OFFSET; #endif // _COR_FIELD_OFFSET_ typedef UINT_PTR ProcessID; typedef UINT_PTR AssemblyID; typedef UINT_PTR AppDomainID; typedef UINT_PTR ModuleID; typedef UINT_PTR ClassID; typedef UINT_PTR ThreadID; typedef UINT_PTR ContextID; typedef UINT_PTR FunctionID; typedef UINT_PTR ObjectID; typedef UINT_PTR GCHandleID; typedef UINT_PTR COR_PRF_ELT_INFO; typedef UINT_PTR ReJITID; typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public] */ union __MIDL___MIDL_itf_corprof_0000_0000_0003 { FunctionID functionID; UINT_PTR clientID; } FunctionIDOrClientID; typedef UINT_PTR __stdcall __stdcall FunctionIDMapper( FunctionID funcId, BOOL *pbHookFunction); typedef UINT_PTR __stdcall __stdcall FunctionIDMapper2( FunctionID funcId, void *clientData, BOOL *pbHookFunction); typedef enum _COR_PRF_SNAPSHOT_INFO { COR_PRF_SNAPSHOT_DEFAULT = 0, COR_PRF_SNAPSHOT_REGISTER_CONTEXT = 0x1, COR_PRF_SNAPSHOT_X86_OPTIMIZED = 0x2 } COR_PRF_SNAPSHOT_INFO; typedef UINT_PTR COR_PRF_FRAME_INFO; typedef struct _COR_PRF_FUNCTION_ARGUMENT_RANGE { UINT_PTR startAddress; ULONG length; } COR_PRF_FUNCTION_ARGUMENT_RANGE; typedef struct _COR_PRF_FUNCTION_ARGUMENT_INFO { ULONG numRanges; ULONG totalArgumentSize; COR_PRF_FUNCTION_ARGUMENT_RANGE ranges[ 1 ]; } COR_PRF_FUNCTION_ARGUMENT_INFO; typedef struct _COR_PRF_CODE_INFO { UINT_PTR startAddress; SIZE_T size; } COR_PRF_CODE_INFO; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0004 { COR_PRF_FIELD_NOT_A_STATIC = 0, COR_PRF_FIELD_APP_DOMAIN_STATIC = 0x1, COR_PRF_FIELD_THREAD_STATIC = 0x2, COR_PRF_FIELD_CONTEXT_STATIC = 0x4, COR_PRF_FIELD_RVA_STATIC = 0x8 } COR_PRF_STATIC_TYPE; typedef struct _COR_PRF_FUNCTION { FunctionID functionId; ReJITID reJitId; } COR_PRF_FUNCTION; typedef struct _COR_PRF_ASSEMBLY_REFERENCE_INFO { void *pbPublicKeyOrToken; ULONG cbPublicKeyOrToken; LPCWSTR szName; ASSEMBLYMETADATA *pMetaData; void *pbHashValue; ULONG cbHashValue; DWORD dwAssemblyRefFlags; } COR_PRF_ASSEMBLY_REFERENCE_INFO; typedef struct _COR_PRF_METHOD { ModuleID moduleId; mdMethodDef methodId; } COR_PRF_METHOD; typedef void FunctionEnter( FunctionID funcID); typedef void FunctionLeave( FunctionID funcID); typedef void FunctionTailcall( FunctionID funcID); typedef void FunctionEnter2( FunctionID funcId, UINT_PTR clientData, COR_PRF_FRAME_INFO func, COR_PRF_FUNCTION_ARGUMENT_INFO *argumentInfo); typedef void FunctionLeave2( FunctionID funcId, UINT_PTR clientData, COR_PRF_FRAME_INFO func, COR_PRF_FUNCTION_ARGUMENT_RANGE *retvalRange); typedef void FunctionTailcall2( FunctionID funcId, UINT_PTR clientData, COR_PRF_FRAME_INFO func); typedef void FunctionEnter3( FunctionIDOrClientID functionIDOrClientID); typedef void FunctionLeave3( FunctionIDOrClientID functionIDOrClientID); typedef void FunctionTailcall3( FunctionIDOrClientID functionIDOrClientID); typedef void FunctionEnter3WithInfo( FunctionIDOrClientID functionIDOrClientID, COR_PRF_ELT_INFO eltInfo); typedef void FunctionLeave3WithInfo( FunctionIDOrClientID functionIDOrClientID, COR_PRF_ELT_INFO eltInfo); typedef void FunctionTailcall3WithInfo( FunctionIDOrClientID functionIDOrClientID, COR_PRF_ELT_INFO eltInfo); typedef HRESULT __stdcall __stdcall StackSnapshotCallback( FunctionID funcId, UINT_PTR ip, COR_PRF_FRAME_INFO frameInfo, ULONG32 contextSize, BYTE context[ ], void *clientData); typedef BOOL ObjectReferenceCallback( ObjectID root, ObjectID *reference, void *clientData); typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0005 { COR_PRF_MONITOR_NONE = 0, COR_PRF_MONITOR_FUNCTION_UNLOADS = 0x1, COR_PRF_MONITOR_CLASS_LOADS = 0x2, COR_PRF_MONITOR_MODULE_LOADS = 0x4, COR_PRF_MONITOR_ASSEMBLY_LOADS = 0x8, COR_PRF_MONITOR_APPDOMAIN_LOADS = 0x10, COR_PRF_MONITOR_JIT_COMPILATION = 0x20, COR_PRF_MONITOR_EXCEPTIONS = 0x40, COR_PRF_MONITOR_GC = 0x80, COR_PRF_MONITOR_OBJECT_ALLOCATED = 0x100, COR_PRF_MONITOR_THREADS = 0x200, COR_PRF_MONITOR_REMOTING = 0x400, COR_PRF_MONITOR_CODE_TRANSITIONS = 0x800, COR_PRF_MONITOR_ENTERLEAVE = 0x1000, COR_PRF_MONITOR_CCW = 0x2000, COR_PRF_MONITOR_REMOTING_COOKIE = ( 0x4000 | COR_PRF_MONITOR_REMOTING ) , COR_PRF_MONITOR_REMOTING_ASYNC = ( 0x8000 | COR_PRF_MONITOR_REMOTING ) , COR_PRF_MONITOR_SUSPENDS = 0x10000, COR_PRF_MONITOR_CACHE_SEARCHES = 0x20000, COR_PRF_ENABLE_REJIT = 0x40000, COR_PRF_ENABLE_INPROC_DEBUGGING = 0x80000, COR_PRF_ENABLE_JIT_MAPS = 0x100000, COR_PRF_DISABLE_INLINING = 0x200000, COR_PRF_DISABLE_OPTIMIZATIONS = 0x400000, COR_PRF_ENABLE_OBJECT_ALLOCATED = 0x800000, COR_PRF_MONITOR_CLR_EXCEPTIONS = 0x1000000, COR_PRF_MONITOR_ALL = 0x107ffff, COR_PRF_ENABLE_FUNCTION_ARGS = 0x2000000, COR_PRF_ENABLE_FUNCTION_RETVAL = 0x4000000, COR_PRF_ENABLE_FRAME_INFO = 0x8000000, COR_PRF_ENABLE_STACK_SNAPSHOT = 0x10000000, COR_PRF_USE_PROFILE_IMAGES = 0x20000000, COR_PRF_DISABLE_TRANSPARENCY_CHECKS_UNDER_FULL_TRUST = 0x40000000, COR_PRF_DISABLE_ALL_NGEN_IMAGES = 0x80000000, COR_PRF_ALL = 0x8fffffff, COR_PRF_REQUIRE_PROFILE_IMAGE = ( ( COR_PRF_USE_PROFILE_IMAGES | COR_PRF_MONITOR_CODE_TRANSITIONS ) | COR_PRF_MONITOR_ENTERLEAVE ) , COR_PRF_ALLOWABLE_AFTER_ATTACH = ( ( ( ( ( ( ( ( ( ( COR_PRF_MONITOR_THREADS | COR_PRF_MONITOR_MODULE_LOADS ) | COR_PRF_MONITOR_ASSEMBLY_LOADS ) | COR_PRF_MONITOR_APPDOMAIN_LOADS ) | COR_PRF_ENABLE_STACK_SNAPSHOT ) | COR_PRF_MONITOR_GC ) | COR_PRF_MONITOR_SUSPENDS ) | COR_PRF_MONITOR_CLASS_LOADS ) | COR_PRF_MONITOR_EXCEPTIONS ) | COR_PRF_MONITOR_JIT_COMPILATION ) | COR_PRF_ENABLE_REJIT ) , COR_PRF_ALLOWABLE_NOTIFICATION_PROFILER = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( COR_PRF_MONITOR_FUNCTION_UNLOADS | COR_PRF_MONITOR_CLASS_LOADS ) | COR_PRF_MONITOR_MODULE_LOADS ) | COR_PRF_MONITOR_ASSEMBLY_LOADS ) | COR_PRF_MONITOR_APPDOMAIN_LOADS ) | COR_PRF_MONITOR_JIT_COMPILATION ) | COR_PRF_MONITOR_EXCEPTIONS ) | COR_PRF_MONITOR_OBJECT_ALLOCATED ) | COR_PRF_MONITOR_THREADS ) | COR_PRF_MONITOR_CODE_TRANSITIONS ) | COR_PRF_MONITOR_CCW ) | COR_PRF_MONITOR_SUSPENDS ) | COR_PRF_MONITOR_CACHE_SEARCHES ) | COR_PRF_DISABLE_INLINING ) | COR_PRF_DISABLE_OPTIMIZATIONS ) | COR_PRF_ENABLE_OBJECT_ALLOCATED ) | COR_PRF_MONITOR_CLR_EXCEPTIONS ) | COR_PRF_ENABLE_STACK_SNAPSHOT ) | COR_PRF_USE_PROFILE_IMAGES ) | COR_PRF_DISABLE_ALL_NGEN_IMAGES ) , COR_PRF_MONITOR_IMMUTABLE = ( ( ( ( ( ( ( ( ( ( ( ( ( ( COR_PRF_MONITOR_CODE_TRANSITIONS | COR_PRF_MONITOR_REMOTING ) | COR_PRF_MONITOR_REMOTING_COOKIE ) | COR_PRF_MONITOR_REMOTING_ASYNC ) | COR_PRF_ENABLE_INPROC_DEBUGGING ) | COR_PRF_ENABLE_JIT_MAPS ) | COR_PRF_DISABLE_OPTIMIZATIONS ) | COR_PRF_DISABLE_INLINING ) | COR_PRF_ENABLE_OBJECT_ALLOCATED ) | COR_PRF_ENABLE_FUNCTION_ARGS ) | COR_PRF_ENABLE_FUNCTION_RETVAL ) | COR_PRF_ENABLE_FRAME_INFO ) | COR_PRF_USE_PROFILE_IMAGES ) | COR_PRF_DISABLE_TRANSPARENCY_CHECKS_UNDER_FULL_TRUST ) | COR_PRF_DISABLE_ALL_NGEN_IMAGES ) } COR_PRF_MONITOR; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0006 { COR_PRF_HIGH_MONITOR_NONE = 0, COR_PRF_HIGH_ADD_ASSEMBLY_REFERENCES = 0x1, COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED = 0x2, COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS = 0x4, COR_PRF_HIGH_DISABLE_TIERED_COMPILATION = 0x8, COR_PRF_HIGH_BASIC_GC = 0x10, COR_PRF_HIGH_MONITOR_GC_MOVED_OBJECTS = 0x20, COR_PRF_HIGH_REQUIRE_PROFILE_IMAGE = 0, COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED = 0x40, COR_PRF_HIGH_MONITOR_EVENT_PIPE = 0x80, COR_PRF_HIGH_MONITOR_PINNEDOBJECT_ALLOCATED = 0x100, COR_PRF_HIGH_ALLOWABLE_AFTER_ATTACH = ( ( ( ( ( COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED | COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS ) | COR_PRF_HIGH_BASIC_GC ) | COR_PRF_HIGH_MONITOR_GC_MOVED_OBJECTS ) | COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED ) | COR_PRF_HIGH_MONITOR_EVENT_PIPE ) , COR_PRF_HIGH_ALLOWABLE_NOTIFICATION_PROFILER = ( ( ( ( ( ( COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED | COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS ) | COR_PRF_HIGH_DISABLE_TIERED_COMPILATION ) | COR_PRF_HIGH_BASIC_GC ) | COR_PRF_HIGH_MONITOR_GC_MOVED_OBJECTS ) | COR_PRF_HIGH_MONITOR_LARGEOBJECT_ALLOCATED ) | COR_PRF_HIGH_MONITOR_EVENT_PIPE ) , COR_PRF_HIGH_MONITOR_IMMUTABLE = COR_PRF_HIGH_DISABLE_TIERED_COMPILATION } COR_PRF_HIGH_MONITOR; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0007 { PROFILER_PARENT_UNKNOWN = 0xfffffffd, PROFILER_GLOBAL_CLASS = 0xfffffffe, PROFILER_GLOBAL_MODULE = 0xffffffff } COR_PRF_MISC; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0008 { COR_PRF_CACHED_FUNCTION_FOUND = 0, COR_PRF_CACHED_FUNCTION_NOT_FOUND = ( COR_PRF_CACHED_FUNCTION_FOUND + 1 ) } COR_PRF_JIT_CACHE; typedef /* [public][public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0009 { COR_PRF_TRANSITION_CALL = 0, COR_PRF_TRANSITION_RETURN = ( COR_PRF_TRANSITION_CALL + 1 ) } COR_PRF_TRANSITION_REASON; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0010 { COR_PRF_SUSPEND_OTHER = 0, COR_PRF_SUSPEND_FOR_GC = 1, COR_PRF_SUSPEND_FOR_APPDOMAIN_SHUTDOWN = 2, COR_PRF_SUSPEND_FOR_CODE_PITCHING = 3, COR_PRF_SUSPEND_FOR_SHUTDOWN = 4, COR_PRF_SUSPEND_FOR_INPROC_DEBUGGER = 6, COR_PRF_SUSPEND_FOR_GC_PREP = 7, COR_PRF_SUSPEND_FOR_REJIT = 8, COR_PRF_SUSPEND_FOR_PROFILER = 9 } COR_PRF_SUSPEND_REASON; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0011 { COR_PRF_DESKTOP_CLR = 0x1, COR_PRF_CORE_CLR = 0x2 } COR_PRF_RUNTIME_TYPE; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0012 { COR_PRF_REJIT_BLOCK_INLINING = 0x1, COR_PRF_REJIT_INLINING_CALLBACKS = 0x2 } COR_PRF_REJIT_FLAGS; typedef UINT_PTR EVENTPIPE_PROVIDER; typedef UINT_PTR EVENTPIPE_EVENT; typedef UINT64 EVENTPIPE_SESSION; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0013 { COR_PRF_EVENTPIPE_OBJECT = 1, COR_PRF_EVENTPIPE_BOOLEAN = 3, COR_PRF_EVENTPIPE_CHAR = 4, COR_PRF_EVENTPIPE_SBYTE = 5, COR_PRF_EVENTPIPE_BYTE = 6, COR_PRF_EVENTPIPE_INT16 = 7, COR_PRF_EVENTPIPE_UINT16 = 8, COR_PRF_EVENTPIPE_INT32 = 9, COR_PRF_EVENTPIPE_UINT32 = 10, COR_PRF_EVENTPIPE_INT64 = 11, COR_PRF_EVENTPIPE_UINT64 = 12, COR_PRF_EVENTPIPE_SINGLE = 13, COR_PRF_EVENTPIPE_DOUBLE = 14, COR_PRF_EVENTPIPE_DECIMAL = 15, COR_PRF_EVENTPIPE_DATETIME = 16, COR_PRF_EVENTPIPE_GUID = 17, COR_PRF_EVENTPIPE_STRING = 18, COR_PRF_EVENTPIPE_ARRAY = 19 } COR_PRF_EVENTPIPE_PARAM_TYPE; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0000_0014 { COR_PRF_EVENTPIPE_LOGALWAYS = 0, COR_PRF_EVENTPIPE_CRITICAL = 1, COR_PRF_EVENTPIPE_ERROR = 2, COR_PRF_EVENTPIPE_WARNING = 3, COR_PRF_EVENTPIPE_INFORMATIONAL = 4, COR_PRF_EVENTPIPE_VERBOSE = 5 } COR_PRF_EVENTPIPE_LEVEL; typedef /* [public][public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0015 { const WCHAR *providerName; UINT64 keywords; UINT32 loggingLevel; const WCHAR *filterData; } COR_PRF_EVENTPIPE_PROVIDER_CONFIG; typedef /* [public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0016 { UINT32 type; UINT32 elementType; const WCHAR *name; } COR_PRF_EVENTPIPE_PARAM_DESC; typedef /* [public][public] */ struct __MIDL___MIDL_itf_corprof_0000_0000_0017 { UINT64 ptr; UINT32 size; UINT32 reserved; } COR_PRF_EVENT_DATA; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0000_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0000_v0_0_s_ifspec; #ifndef __ICorProfilerCallback_INTERFACE_DEFINED__ #define __ICorProfilerCallback_INTERFACE_DEFINED__ /* interface ICorProfilerCallback */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("176FBED1-A55C-4796-98CA-A9DA0EF883E7") ICorProfilerCallback : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Initialize( /* [in] */ IUnknown *pICorProfilerInfoUnk) = 0; virtual HRESULT STDMETHODCALLTYPE Shutdown( void) = 0; virtual HRESULT STDMETHODCALLTYPE AppDomainCreationStarted( /* [in] */ AppDomainID appDomainId) = 0; virtual HRESULT STDMETHODCALLTYPE AppDomainCreationFinished( /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE AppDomainShutdownStarted( /* [in] */ AppDomainID appDomainId) = 0; virtual HRESULT STDMETHODCALLTYPE AppDomainShutdownFinished( /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE AssemblyLoadStarted( /* [in] */ AssemblyID assemblyId) = 0; virtual HRESULT STDMETHODCALLTYPE AssemblyLoadFinished( /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE AssemblyUnloadStarted( /* [in] */ AssemblyID assemblyId) = 0; virtual HRESULT STDMETHODCALLTYPE AssemblyUnloadFinished( /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleLoadStarted( /* [in] */ ModuleID moduleId) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleLoadFinished( /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleUnloadStarted( /* [in] */ ModuleID moduleId) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleUnloadFinished( /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE ModuleAttachedToAssembly( /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId) = 0; virtual HRESULT STDMETHODCALLTYPE ClassLoadStarted( /* [in] */ ClassID classId) = 0; virtual HRESULT STDMETHODCALLTYPE ClassLoadFinished( /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE ClassUnloadStarted( /* [in] */ ClassID classId) = 0; virtual HRESULT STDMETHODCALLTYPE ClassUnloadFinished( /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE FunctionUnloadStarted( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE JITCompilationStarted( /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock) = 0; virtual HRESULT STDMETHODCALLTYPE JITCompilationFinished( /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock) = 0; virtual HRESULT STDMETHODCALLTYPE JITCachedFunctionSearchStarted( /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction) = 0; virtual HRESULT STDMETHODCALLTYPE JITCachedFunctionSearchFinished( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result) = 0; virtual HRESULT STDMETHODCALLTYPE JITFunctionPitched( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE JITInlining( /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline) = 0; virtual HRESULT STDMETHODCALLTYPE ThreadCreated( /* [in] */ ThreadID threadId) = 0; virtual HRESULT STDMETHODCALLTYPE ThreadDestroyed( /* [in] */ ThreadID threadId) = 0; virtual HRESULT STDMETHODCALLTYPE ThreadAssignedToOSThread( /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingClientInvocationStarted( void) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingClientSendingMessage( /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingClientReceivingReply( /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingClientInvocationFinished( void) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingServerReceivingMessage( /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingServerInvocationStarted( void) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingServerInvocationReturned( void) = 0; virtual HRESULT STDMETHODCALLTYPE RemotingServerSendingReply( /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync) = 0; virtual HRESULT STDMETHODCALLTYPE UnmanagedToManagedTransition( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason) = 0; virtual HRESULT STDMETHODCALLTYPE ManagedToUnmanagedTransition( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeSuspendStarted( /* [in] */ COR_PRF_SUSPEND_REASON suspendReason) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeSuspendFinished( void) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeSuspendAborted( void) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeResumeStarted( void) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeResumeFinished( void) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeThreadSuspended( /* [in] */ ThreadID threadId) = 0; virtual HRESULT STDMETHODCALLTYPE RuntimeThreadResumed( /* [in] */ ThreadID threadId) = 0; virtual HRESULT STDMETHODCALLTYPE MovedReferences( /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE ObjectAllocated( /* [in] */ ObjectID objectId, /* [in] */ ClassID classId) = 0; virtual HRESULT STDMETHODCALLTYPE ObjectsAllocatedByClass( /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE ObjectReferences( /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE RootReferences( /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionThrown( /* [in] */ ObjectID thrownObjectId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchFunctionEnter( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchFunctionLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchFilterEnter( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchFilterLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionSearchCatcherFound( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionOSHandlerEnter( /* [in] */ UINT_PTR __unused) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionOSHandlerLeave( /* [in] */ UINT_PTR __unused) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionUnwindFunctionEnter( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionUnwindFunctionLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionUnwindFinallyEnter( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionUnwindFinallyLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionCatcherEnter( /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionCatcherLeave( void) = 0; virtual HRESULT STDMETHODCALLTYPE COMClassicVTableCreated( /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots) = 0; virtual HRESULT STDMETHODCALLTYPE COMClassicVTableDestroyed( /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionCLRCatcherFound( void) = 0; virtual HRESULT STDMETHODCALLTYPE ExceptionCLRCatcherExecute( void) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallbackVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback * This); END_INTERFACE } ICorProfilerCallbackVtbl; interface ICorProfilerCallback { CONST_VTBL struct ICorProfilerCallbackVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback_INTERFACE_DEFINED__ */ /* interface __MIDL_itf_corprof_0000_0001 */ /* [local] */ typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0001 { COR_PRF_GC_ROOT_STACK = 1, COR_PRF_GC_ROOT_FINALIZER = 2, COR_PRF_GC_ROOT_HANDLE = 3, COR_PRF_GC_ROOT_OTHER = 0 } COR_PRF_GC_ROOT_KIND; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0002 { COR_PRF_GC_ROOT_PINNING = 0x1, COR_PRF_GC_ROOT_WEAKREF = 0x2, COR_PRF_GC_ROOT_INTERIOR = 0x4, COR_PRF_GC_ROOT_REFCOUNTED = 0x8 } COR_PRF_GC_ROOT_FLAGS; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0003 { COR_PRF_FINALIZER_CRITICAL = 0x1 } COR_PRF_FINALIZER_FLAGS; typedef /* [public][public][public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0004 { COR_PRF_GC_GEN_0 = 0, COR_PRF_GC_GEN_1 = 1, COR_PRF_GC_GEN_2 = 2, COR_PRF_GC_LARGE_OBJECT_HEAP = 3, COR_PRF_GC_PINNED_OBJECT_HEAP = 4 } COR_PRF_GC_GENERATION; typedef struct COR_PRF_GC_GENERATION_RANGE { COR_PRF_GC_GENERATION generation; ObjectID rangeStart; UINT_PTR rangeLength; UINT_PTR rangeLengthReserved; } COR_PRF_GC_GENERATION_RANGE; typedef /* [public][public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0005 { COR_PRF_CLAUSE_NONE = 0, COR_PRF_CLAUSE_FILTER = 1, COR_PRF_CLAUSE_CATCH = 2, COR_PRF_CLAUSE_FINALLY = 3 } COR_PRF_CLAUSE_TYPE; typedef struct COR_PRF_EX_CLAUSE_INFO { COR_PRF_CLAUSE_TYPE clauseType; UINT_PTR programCounter; UINT_PTR framePointer; UINT_PTR shadowStackPointer; } COR_PRF_EX_CLAUSE_INFO; typedef /* [public][public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0006 { COR_PRF_GC_INDUCED = 1, COR_PRF_GC_OTHER = 0 } COR_PRF_GC_REASON; typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0001_0007 { COR_PRF_MODULE_DISK = 0x1, COR_PRF_MODULE_NGEN = 0x2, COR_PRF_MODULE_DYNAMIC = 0x4, COR_PRF_MODULE_COLLECTIBLE = 0x8, COR_PRF_MODULE_RESOURCE = 0x10, COR_PRF_MODULE_FLAT_LAYOUT = 0x20, COR_PRF_MODULE_WINDOWS_RUNTIME = 0x40 } COR_PRF_MODULE_FLAGS; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0001_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0001_v0_0_s_ifspec; #ifndef __ICorProfilerCallback2_INTERFACE_DEFINED__ #define __ICorProfilerCallback2_INTERFACE_DEFINED__ /* interface ICorProfilerCallback2 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback2; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("8A8CC829-CCF2-49fe-BBAE-0F022228071A") ICorProfilerCallback2 : public ICorProfilerCallback { public: virtual HRESULT STDMETHODCALLTYPE ThreadNameChanged( /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GarbageCollectionStarted( /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason) = 0; virtual HRESULT STDMETHODCALLTYPE SurvivingReferences( /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GarbageCollectionFinished( void) = 0; virtual HRESULT STDMETHODCALLTYPE FinalizeableObjectQueued( /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID) = 0; virtual HRESULT STDMETHODCALLTYPE RootReferences2( /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE HandleCreated( /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId) = 0; virtual HRESULT STDMETHODCALLTYPE HandleDestroyed( /* [in] */ GCHandleID handleId) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback2Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback2 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback2 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback2 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback2 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback2 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback2 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback2 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback2 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback2 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback2 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback2 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback2 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback2 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback2 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback2 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback2 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback2 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback2 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback2 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback2 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback2 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback2 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback2 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback2 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback2 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback2 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback2 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback2 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback2 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback2 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback2 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback2 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback2 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback2 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback2 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback2 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback2 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback2 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback2 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback2 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback2 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback2 * This, /* [in] */ GCHandleID handleId); END_INTERFACE } ICorProfilerCallback2Vtbl; interface ICorProfilerCallback2 { CONST_VTBL struct ICorProfilerCallback2Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback2_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback2_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback2_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback2_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback2_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback2_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback2_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback2_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback2_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback2_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback2_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback2_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback2_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback2_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback2_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback2_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback2_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback2_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback2_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback2_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback2_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback2_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback2_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback2_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback2_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback2_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback2_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback2_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback2_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback2_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback2_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback2_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback2_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback2_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback2_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback2_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback2_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback2_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback2_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback2_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback2_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback2_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback2_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback2_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback2_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback2_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback2_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback2_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback2_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback2_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback2_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback2_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback2_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback2_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback2_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback2_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback2_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback2_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback2_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback2_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback2_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback2_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback2_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback2_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback2_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback2_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback2_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback2_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback2_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback2_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback2_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback2_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback2_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback2_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback2_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback2_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback2_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback2_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback2_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback2_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback2_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback3_INTERFACE_DEFINED__ #define __ICorProfilerCallback3_INTERFACE_DEFINED__ /* interface ICorProfilerCallback3 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback3; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("4FD2ED52-7731-4b8d-9469-03D2CC3086C5") ICorProfilerCallback3 : public ICorProfilerCallback2 { public: virtual HRESULT STDMETHODCALLTYPE InitializeForAttach( /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData) = 0; virtual HRESULT STDMETHODCALLTYPE ProfilerAttachComplete( void) = 0; virtual HRESULT STDMETHODCALLTYPE ProfilerDetachSucceeded( void) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback3Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback3 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback3 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback3 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback3 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback3 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback3 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback3 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback3 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback3 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback3 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback3 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback3 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback3 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback3 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback3 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback3 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback3 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback3 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback3 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback3 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback3 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback3 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback3 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback3 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback3 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback3 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback3 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback3 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback3 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback3 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback3 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback3 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback3 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback3 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback3 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback3 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback3 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback3 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback3 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback3 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback3 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback3 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback3 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback3 * This); END_INTERFACE } ICorProfilerCallback3Vtbl; interface ICorProfilerCallback3 { CONST_VTBL struct ICorProfilerCallback3Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback3_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback3_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback3_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback3_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback3_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback3_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback3_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback3_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback3_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback3_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback3_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback3_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback3_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback3_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback3_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback3_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback3_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback3_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback3_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback3_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback3_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback3_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback3_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback3_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback3_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback3_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback3_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback3_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback3_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback3_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback3_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback3_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback3_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback3_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback3_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback3_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback3_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback3_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback3_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback3_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback3_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback3_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback3_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback3_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback3_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback3_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback3_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback3_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback3_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback3_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback3_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback3_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback3_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback3_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback3_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback3_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback3_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback3_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback3_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback3_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback3_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback3_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback3_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback3_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback3_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback3_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback3_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback3_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback3_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback3_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback3_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback3_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback3_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback3_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback3_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback3_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback3_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback3_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback3_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback3_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback3_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback3_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback3_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback3_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback4_INTERFACE_DEFINED__ #define __ICorProfilerCallback4_INTERFACE_DEFINED__ /* interface ICorProfilerCallback4 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback4; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("7B63B2E3-107D-4d48-B2F6-F61E229470D2") ICorProfilerCallback4 : public ICorProfilerCallback3 { public: virtual HRESULT STDMETHODCALLTYPE ReJITCompilationStarted( /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock) = 0; virtual HRESULT STDMETHODCALLTYPE GetReJITParameters( /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl) = 0; virtual HRESULT STDMETHODCALLTYPE ReJITCompilationFinished( /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock) = 0; virtual HRESULT STDMETHODCALLTYPE ReJITError( /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus) = 0; virtual HRESULT STDMETHODCALLTYPE MovedReferences2( /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE SurvivingReferences2( /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback4Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback4 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback4 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback4 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback4 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback4 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback4 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback4 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback4 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback4 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback4 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback4 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback4 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback4 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback4 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback4 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback4 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback4 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback4 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback4 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback4 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback4 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback4 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback4 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback4 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback4 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback4 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback4 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback4 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback4 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback4 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback4 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback4 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback4 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback4 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback4 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback4 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback4 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback4 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback4 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback4 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback4 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback4 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback4 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback4 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); END_INTERFACE } ICorProfilerCallback4Vtbl; interface ICorProfilerCallback4 { CONST_VTBL struct ICorProfilerCallback4Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback4_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback4_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback4_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback4_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback4_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback4_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback4_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback4_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback4_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback4_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback4_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback4_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback4_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback4_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback4_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback4_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback4_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback4_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback4_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback4_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback4_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback4_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback4_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback4_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback4_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback4_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback4_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback4_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback4_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback4_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback4_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback4_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback4_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback4_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback4_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback4_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback4_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback4_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback4_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback4_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback4_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback4_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback4_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback4_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback4_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback4_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback4_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback4_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback4_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback4_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback4_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback4_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback4_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback4_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback4_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback4_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback4_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback4_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback4_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback4_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback4_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback4_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback4_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback4_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback4_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback4_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback4_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback4_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback4_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback4_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback4_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback4_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback4_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback4_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback4_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback4_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback4_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback4_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback4_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback4_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback4_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback4_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback4_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback4_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback4_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback4_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback4_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback4_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback4_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback4_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback5_INTERFACE_DEFINED__ #define __ICorProfilerCallback5_INTERFACE_DEFINED__ /* interface ICorProfilerCallback5 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback5; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("8DFBA405-8C9F-45F8-BFFA-83B14CEF78B5") ICorProfilerCallback5 : public ICorProfilerCallback4 { public: virtual HRESULT STDMETHODCALLTYPE ConditionalWeakTableElementReferences( /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback5Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback5 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback5 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback5 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback5 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback5 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback5 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback5 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback5 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback5 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback5 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback5 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback5 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback5 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback5 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback5 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback5 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback5 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback5 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback5 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback5 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback5 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback5 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback5 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback5 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback5 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback5 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback5 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback5 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback5 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback5 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback5 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback5 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback5 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback5 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback5 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback5 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback5 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback5 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback5 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback5 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback5 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback5 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback5 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback5 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback5 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); END_INTERFACE } ICorProfilerCallback5Vtbl; interface ICorProfilerCallback5 { CONST_VTBL struct ICorProfilerCallback5Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback5_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback5_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback5_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback5_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback5_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback5_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback5_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback5_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback5_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback5_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback5_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback5_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback5_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback5_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback5_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback5_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback5_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback5_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback5_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback5_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback5_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback5_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback5_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback5_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback5_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback5_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback5_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback5_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback5_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback5_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback5_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback5_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback5_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback5_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback5_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback5_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback5_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback5_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback5_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback5_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback5_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback5_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback5_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback5_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback5_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback5_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback5_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback5_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback5_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback5_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback5_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback5_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback5_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback5_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback5_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback5_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback5_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback5_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback5_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback5_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback5_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback5_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback5_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback5_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback5_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback5_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback5_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback5_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback5_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback5_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback5_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback5_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback5_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback5_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback5_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback5_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback5_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback5_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback5_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback5_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback5_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback5_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback5_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback5_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback5_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback5_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback5_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback5_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback5_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback5_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback5_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback6_INTERFACE_DEFINED__ #define __ICorProfilerCallback6_INTERFACE_DEFINED__ /* interface ICorProfilerCallback6 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback6; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("FC13DF4B-4448-4F4F-950C-BA8D19D00C36") ICorProfilerCallback6 : public ICorProfilerCallback5 { public: virtual HRESULT STDMETHODCALLTYPE GetAssemblyReferences( /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback6Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback6 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback6 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback6 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback6 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback6 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback6 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback6 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback6 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback6 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback6 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback6 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback6 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback6 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback6 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback6 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback6 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback6 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback6 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback6 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback6 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback6 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback6 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback6 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback6 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback6 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback6 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback6 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback6 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback6 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback6 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback6 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback6 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback6 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback6 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback6 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback6 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback6 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback6 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback6 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback6 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback6 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback6 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback6 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback6 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback6 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback6 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); END_INTERFACE } ICorProfilerCallback6Vtbl; interface ICorProfilerCallback6 { CONST_VTBL struct ICorProfilerCallback6Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback6_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback6_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback6_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback6_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback6_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback6_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback6_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback6_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback6_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback6_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback6_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback6_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback6_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback6_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback6_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback6_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback6_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback6_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback6_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback6_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback6_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback6_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback6_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback6_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback6_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback6_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback6_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback6_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback6_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback6_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback6_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback6_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback6_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback6_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback6_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback6_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback6_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback6_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback6_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback6_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback6_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback6_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback6_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback6_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback6_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback6_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback6_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback6_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback6_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback6_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback6_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback6_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback6_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback6_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback6_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback6_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback6_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback6_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback6_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback6_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback6_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback6_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback6_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback6_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback6_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback6_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback6_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback6_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback6_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback6_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback6_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback6_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback6_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback6_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback6_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback6_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback6_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback6_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback6_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback6_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback6_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback6_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback6_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback6_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback6_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback6_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback6_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback6_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback6_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback6_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback6_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback6_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback7_INTERFACE_DEFINED__ #define __ICorProfilerCallback7_INTERFACE_DEFINED__ /* interface ICorProfilerCallback7 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback7; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("F76A2DBA-1D52-4539-866C-2AA518F9EFC3") ICorProfilerCallback7 : public ICorProfilerCallback6 { public: virtual HRESULT STDMETHODCALLTYPE ModuleInMemorySymbolsUpdated( ModuleID moduleId) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback7Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback7 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback7 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback7 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback7 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback7 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback7 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback7 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback7 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback7 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback7 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback7 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback7 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback7 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback7 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback7 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback7 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback7 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback7 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback7 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback7 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback7 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback7 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback7 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback7 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback7 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback7 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback7 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback7 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback7 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback7 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback7 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback7 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback7 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback7 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback7 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback7 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback7 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback7 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback7 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback7 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback7 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback7 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback7 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback7 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback7 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback7 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback7 * This, ModuleID moduleId); END_INTERFACE } ICorProfilerCallback7Vtbl; interface ICorProfilerCallback7 { CONST_VTBL struct ICorProfilerCallback7Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback7_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback7_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback7_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback7_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback7_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback7_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback7_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback7_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback7_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback7_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback7_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback7_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback7_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback7_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback7_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback7_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback7_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback7_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback7_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback7_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback7_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback7_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback7_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback7_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback7_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback7_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback7_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback7_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback7_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback7_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback7_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback7_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback7_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback7_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback7_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback7_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback7_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback7_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback7_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback7_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback7_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback7_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback7_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback7_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback7_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback7_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback7_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback7_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback7_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback7_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback7_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback7_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback7_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback7_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback7_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback7_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback7_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback7_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback7_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback7_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback7_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback7_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback7_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback7_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback7_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback7_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback7_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback7_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback7_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback7_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback7_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback7_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback7_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback7_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback7_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback7_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback7_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback7_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback7_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback7_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback7_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback7_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback7_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback7_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback7_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback7_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback7_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback7_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback7_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback7_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback7_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback7_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback7_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback8_INTERFACE_DEFINED__ #define __ICorProfilerCallback8_INTERFACE_DEFINED__ /* interface ICorProfilerCallback8 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback8; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("5BED9B15-C079-4D47-BFE2-215A140C07E0") ICorProfilerCallback8 : public ICorProfilerCallback7 { public: virtual HRESULT STDMETHODCALLTYPE DynamicMethodJITCompilationStarted( /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader) = 0; virtual HRESULT STDMETHODCALLTYPE DynamicMethodJITCompilationFinished( /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback8Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback8 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback8 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback8 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback8 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback8 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback8 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback8 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback8 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback8 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback8 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback8 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback8 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback8 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback8 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback8 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback8 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback8 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback8 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback8 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback8 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback8 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback8 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback8 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback8 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback8 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback8 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback8 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback8 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback8 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback8 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback8 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback8 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback8 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback8 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback8 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback8 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback8 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback8 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback8 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback8 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback8 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback8 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback8 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback8 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback8 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback8 * This, ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationStarted )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationFinished )( ICorProfilerCallback8 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); END_INTERFACE } ICorProfilerCallback8Vtbl; interface ICorProfilerCallback8 { CONST_VTBL struct ICorProfilerCallback8Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback8_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback8_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback8_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback8_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback8_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback8_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback8_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback8_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback8_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback8_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback8_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback8_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback8_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback8_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback8_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback8_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback8_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback8_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback8_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback8_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback8_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback8_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback8_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback8_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback8_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback8_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback8_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback8_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback8_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback8_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback8_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback8_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback8_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback8_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback8_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback8_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback8_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback8_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback8_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback8_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback8_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback8_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback8_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback8_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback8_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback8_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback8_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback8_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback8_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback8_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback8_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback8_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback8_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback8_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback8_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback8_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback8_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback8_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback8_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback8_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback8_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback8_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback8_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback8_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback8_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback8_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback8_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback8_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback8_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback8_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback8_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback8_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback8_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback8_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback8_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback8_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback8_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback8_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback8_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback8_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback8_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback8_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback8_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback8_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback8_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback8_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback8_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback8_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback8_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback8_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback8_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback8_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #define ICorProfilerCallback8_DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) ) #define ICorProfilerCallback8_DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback8_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback9_INTERFACE_DEFINED__ #define __ICorProfilerCallback9_INTERFACE_DEFINED__ /* interface ICorProfilerCallback9 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback9; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("27583EC3-C8F5-482F-8052-194B8CE4705A") ICorProfilerCallback9 : public ICorProfilerCallback8 { public: virtual HRESULT STDMETHODCALLTYPE DynamicMethodUnloaded( /* [in] */ FunctionID functionId) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback9Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback9 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback9 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback9 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback9 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback9 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback9 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback9 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback9 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback9 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback9 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback9 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback9 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback9 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback9 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback9 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback9 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback9 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback9 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback9 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback9 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback9 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback9 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback9 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback9 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback9 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback9 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback9 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback9 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback9 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback9 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback9 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback9 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback9 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback9 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback9 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback9 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback9 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback9 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback9 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback9 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback9 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback9 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback9 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback9 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback9 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback9 * This, ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationStarted )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationFinished )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *DynamicMethodUnloaded )( ICorProfilerCallback9 * This, /* [in] */ FunctionID functionId); END_INTERFACE } ICorProfilerCallback9Vtbl; interface ICorProfilerCallback9 { CONST_VTBL struct ICorProfilerCallback9Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback9_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback9_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback9_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback9_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback9_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback9_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback9_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback9_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback9_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback9_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback9_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback9_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback9_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback9_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback9_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback9_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback9_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback9_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback9_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback9_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback9_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback9_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback9_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback9_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback9_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback9_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback9_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback9_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback9_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback9_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback9_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback9_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback9_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback9_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback9_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback9_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback9_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback9_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback9_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback9_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback9_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback9_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback9_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback9_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback9_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback9_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback9_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback9_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback9_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback9_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback9_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback9_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback9_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback9_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback9_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback9_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback9_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback9_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback9_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback9_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback9_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback9_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback9_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback9_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback9_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback9_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback9_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback9_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback9_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback9_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback9_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback9_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback9_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback9_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback9_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback9_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback9_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback9_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback9_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback9_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback9_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback9_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback9_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback9_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback9_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback9_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback9_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback9_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback9_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback9_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback9_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback9_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #define ICorProfilerCallback9_DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) ) #define ICorProfilerCallback9_DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback9_DynamicMethodUnloaded(This,functionId) \ ( (This)->lpVtbl -> DynamicMethodUnloaded(This,functionId) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback9_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback10_INTERFACE_DEFINED__ #define __ICorProfilerCallback10_INTERFACE_DEFINED__ /* interface ICorProfilerCallback10 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback10; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("CEC5B60E-C69C-495F-87F6-84D28EE16FFB") ICorProfilerCallback10 : public ICorProfilerCallback9 { public: virtual HRESULT STDMETHODCALLTYPE EventPipeEventDelivered( /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ DWORD eventId, /* [in] */ DWORD eventVersion, /* [in] */ ULONG cbMetadataBlob, /* [size_is][in] */ LPCBYTE metadataBlob, /* [in] */ ULONG cbEventData, /* [size_is][in] */ LPCBYTE eventData, /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId, /* [in] */ ThreadID eventThread, /* [in] */ ULONG numStackFrames, /* [length_is][in] */ UINT_PTR stackFrames[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeProviderCreated( /* [in] */ EVENTPIPE_PROVIDER provider) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback10Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback10 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback10 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback10 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback10 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback10 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback10 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback10 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback10 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback10 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback10 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback10 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback10 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback10 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback10 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback10 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback10 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback10 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback10 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback10 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback10 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback10 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback10 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback10 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback10 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback10 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback10 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback10 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback10 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback10 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback10 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback10 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback10 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback10 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback10 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback10 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback10 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback10 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback10 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback10 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback10 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback10 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback10 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback10 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback10 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback10 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback10 * This, ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationStarted )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationFinished )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *DynamicMethodUnloaded )( ICorProfilerCallback10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *EventPipeEventDelivered )( ICorProfilerCallback10 * This, /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ DWORD eventId, /* [in] */ DWORD eventVersion, /* [in] */ ULONG cbMetadataBlob, /* [size_is][in] */ LPCBYTE metadataBlob, /* [in] */ ULONG cbEventData, /* [size_is][in] */ LPCBYTE eventData, /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId, /* [in] */ ThreadID eventThread, /* [in] */ ULONG numStackFrames, /* [length_is][in] */ UINT_PTR stackFrames[ ]); HRESULT ( STDMETHODCALLTYPE *EventPipeProviderCreated )( ICorProfilerCallback10 * This, /* [in] */ EVENTPIPE_PROVIDER provider); END_INTERFACE } ICorProfilerCallback10Vtbl; interface ICorProfilerCallback10 { CONST_VTBL struct ICorProfilerCallback10Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback10_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback10_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback10_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback10_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback10_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback10_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback10_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback10_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback10_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback10_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback10_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback10_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback10_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback10_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback10_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback10_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback10_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback10_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback10_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback10_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback10_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback10_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback10_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback10_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback10_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback10_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback10_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback10_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback10_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback10_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback10_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback10_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback10_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback10_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback10_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback10_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback10_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback10_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback10_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback10_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback10_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback10_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback10_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback10_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback10_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback10_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback10_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback10_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback10_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback10_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback10_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback10_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback10_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback10_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback10_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback10_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback10_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback10_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback10_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback10_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback10_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback10_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback10_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback10_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback10_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback10_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback10_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback10_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback10_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback10_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback10_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback10_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback10_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback10_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback10_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback10_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback10_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback10_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback10_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback10_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback10_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback10_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback10_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback10_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback10_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback10_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback10_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback10_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback10_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback10_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback10_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback10_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #define ICorProfilerCallback10_DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) ) #define ICorProfilerCallback10_DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback10_DynamicMethodUnloaded(This,functionId) \ ( (This)->lpVtbl -> DynamicMethodUnloaded(This,functionId) ) #define ICorProfilerCallback10_EventPipeEventDelivered(This,provider,eventId,eventVersion,cbMetadataBlob,metadataBlob,cbEventData,eventData,pActivityId,pRelatedActivityId,eventThread,numStackFrames,stackFrames) \ ( (This)->lpVtbl -> EventPipeEventDelivered(This,provider,eventId,eventVersion,cbMetadataBlob,metadataBlob,cbEventData,eventData,pActivityId,pRelatedActivityId,eventThread,numStackFrames,stackFrames) ) #define ICorProfilerCallback10_EventPipeProviderCreated(This,provider) \ ( (This)->lpVtbl -> EventPipeProviderCreated(This,provider) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback10_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerCallback11_INTERFACE_DEFINED__ #define __ICorProfilerCallback11_INTERFACE_DEFINED__ /* interface ICorProfilerCallback11 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerCallback11; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("42350846-AAED-47F7-B128-FD0C98881CDE") ICorProfilerCallback11 : public ICorProfilerCallback10 { public: virtual HRESULT STDMETHODCALLTYPE LoadAsNotificationOnly( BOOL *pbNotificationOnly) = 0; }; #else /* C style interface */ typedef struct ICorProfilerCallback11Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerCallback11 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerCallback11 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *Initialize )( ICorProfilerCallback11 * This, /* [in] */ IUnknown *pICorProfilerInfoUnk); HRESULT ( STDMETHODCALLTYPE *Shutdown )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationStarted )( ICorProfilerCallback11 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainCreationFinished )( ICorProfilerCallback11 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownStarted )( ICorProfilerCallback11 * This, /* [in] */ AppDomainID appDomainId); HRESULT ( STDMETHODCALLTYPE *AppDomainShutdownFinished )( ICorProfilerCallback11 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadStarted )( ICorProfilerCallback11 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyLoadFinished )( ICorProfilerCallback11 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadStarted )( ICorProfilerCallback11 * This, /* [in] */ AssemblyID assemblyId); HRESULT ( STDMETHODCALLTYPE *AssemblyUnloadFinished )( ICorProfilerCallback11 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleLoadStarted )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleLoadFinished )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadStarted )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *ModuleUnloadFinished )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ModuleAttachedToAssembly )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ AssemblyID AssemblyId); HRESULT ( STDMETHODCALLTYPE *ClassLoadStarted )( ICorProfilerCallback11 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassLoadFinished )( ICorProfilerCallback11 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *ClassUnloadStarted )( ICorProfilerCallback11 * This, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ClassUnloadFinished )( ICorProfilerCallback11 * This, /* [in] */ ClassID classId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *FunctionUnloadStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITCompilationStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCompilationFinished )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *pbUseCachedFunction); HRESULT ( STDMETHODCALLTYPE *JITCachedFunctionSearchFinished )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_JIT_CACHE result); HRESULT ( STDMETHODCALLTYPE *JITFunctionPitched )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *JITInlining )( ICorProfilerCallback11 * This, /* [in] */ FunctionID callerId, /* [in] */ FunctionID calleeId, /* [out] */ BOOL *pfShouldInline); HRESULT ( STDMETHODCALLTYPE *ThreadCreated )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadDestroyed )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *ThreadAssignedToOSThread )( ICorProfilerCallback11 * This, /* [in] */ ThreadID managedThreadId, /* [in] */ DWORD osThreadId); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationStarted )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RemotingClientSendingMessage )( ICorProfilerCallback11 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientReceivingReply )( ICorProfilerCallback11 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingClientInvocationFinished )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerReceivingMessage )( ICorProfilerCallback11 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationStarted )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerInvocationReturned )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RemotingServerSendingReply )( ICorProfilerCallback11 * This, /* [in] */ GUID *pCookie, /* [in] */ BOOL fIsAsync); HRESULT ( STDMETHODCALLTYPE *UnmanagedToManagedTransition )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *ManagedToUnmanagedTransition )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_TRANSITION_REASON reason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendStarted )( ICorProfilerCallback11 * This, /* [in] */ COR_PRF_SUSPEND_REASON suspendReason); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendFinished )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeSuspendAborted )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeStarted )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeResumeFinished )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadSuspended )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *RuntimeThreadResumed )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId); HRESULT ( STDMETHODCALLTYPE *MovedReferences )( ICorProfilerCallback11 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectAllocated )( ICorProfilerCallback11 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId); HRESULT ( STDMETHODCALLTYPE *ObjectsAllocatedByClass )( ICorProfilerCallback11 * This, /* [in] */ ULONG cClassCount, /* [size_is][in] */ ClassID classIds[ ], /* [size_is][in] */ ULONG cObjects[ ]); HRESULT ( STDMETHODCALLTYPE *ObjectReferences )( ICorProfilerCallback11 * This, /* [in] */ ObjectID objectId, /* [in] */ ClassID classId, /* [in] */ ULONG cObjectRefs, /* [size_is][in] */ ObjectID objectRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *RootReferences )( ICorProfilerCallback11 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ]); HRESULT ( STDMETHODCALLTYPE *ExceptionThrown )( ICorProfilerCallback11 * This, /* [in] */ ObjectID thrownObjectId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFunctionLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchFilterLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionSearchCatcherFound )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerEnter )( ICorProfilerCallback11 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionOSHandlerLeave )( ICorProfilerCallback11 * This, /* [in] */ UINT_PTR __unused); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFunctionLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ExceptionUnwindFinallyLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherEnter )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ ObjectID objectId); HRESULT ( STDMETHODCALLTYPE *ExceptionCatcherLeave )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableCreated )( ICorProfilerCallback11 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable, /* [in] */ ULONG cSlots); HRESULT ( STDMETHODCALLTYPE *COMClassicVTableDestroyed )( ICorProfilerCallback11 * This, /* [in] */ ClassID wrappedClassId, /* [in] */ REFGUID implementedIID, /* [in] */ void *pVTable); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherFound )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ExceptionCLRCatcherExecute )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ThreadNameChanged )( ICorProfilerCallback11 * This, /* [in] */ ThreadID threadId, /* [in] */ ULONG cchName, /* [annotation][in] */ _In_reads_opt_(cchName) WCHAR name[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionStarted )( ICorProfilerCallback11 * This, /* [in] */ int cGenerations, /* [size_is][in] */ BOOL generationCollected[ ], /* [in] */ COR_PRF_GC_REASON reason); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences )( ICorProfilerCallback11 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ ULONG cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *GarbageCollectionFinished )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *FinalizeableObjectQueued )( ICorProfilerCallback11 * This, /* [in] */ DWORD finalizerFlags, /* [in] */ ObjectID objectID); HRESULT ( STDMETHODCALLTYPE *RootReferences2 )( ICorProfilerCallback11 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID rootRefIds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_KIND rootKinds[ ], /* [size_is][in] */ COR_PRF_GC_ROOT_FLAGS rootFlags[ ], /* [size_is][in] */ UINT_PTR rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *HandleCreated )( ICorProfilerCallback11 * This, /* [in] */ GCHandleID handleId, /* [in] */ ObjectID initialObjectId); HRESULT ( STDMETHODCALLTYPE *HandleDestroyed )( ICorProfilerCallback11 * This, /* [in] */ GCHandleID handleId); HRESULT ( STDMETHODCALLTYPE *InitializeForAttach )( ICorProfilerCallback11 * This, /* [in] */ IUnknown *pCorProfilerInfoUnk, /* [in] */ void *pvClientData, /* [in] */ UINT cbClientData); HRESULT ( STDMETHODCALLTYPE *ProfilerAttachComplete )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ProfilerDetachSucceeded )( ICorProfilerCallback11 * This); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *GetReJITParameters )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ ICorProfilerFunctionControl *pFunctionControl); HRESULT ( STDMETHODCALLTYPE *ReJITCompilationFinished )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID rejitId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *ReJITError )( ICorProfilerCallback11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus); HRESULT ( STDMETHODCALLTYPE *MovedReferences2 )( ICorProfilerCallback11 * This, /* [in] */ ULONG cMovedObjectIDRanges, /* [size_is][in] */ ObjectID oldObjectIDRangeStart[ ], /* [size_is][in] */ ObjectID newObjectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *SurvivingReferences2 )( ICorProfilerCallback11 * This, /* [in] */ ULONG cSurvivingObjectIDRanges, /* [size_is][in] */ ObjectID objectIDRangeStart[ ], /* [size_is][in] */ SIZE_T cObjectIDRangeLength[ ]); HRESULT ( STDMETHODCALLTYPE *ConditionalWeakTableElementReferences )( ICorProfilerCallback11 * This, /* [in] */ ULONG cRootRefs, /* [size_is][in] */ ObjectID keyRefIds[ ], /* [size_is][in] */ ObjectID valueRefIds[ ], /* [size_is][in] */ GCHandleID rootIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetAssemblyReferences )( ICorProfilerCallback11 * This, /* [string][in] */ const WCHAR *wszAssemblyPath, /* [in] */ ICorProfilerAssemblyReferenceProvider *pAsmRefProvider); HRESULT ( STDMETHODCALLTYPE *ModuleInMemorySymbolsUpdated )( ICorProfilerCallback11 * This, ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationStarted )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fIsSafeToBlock, /* [in] */ LPCBYTE pILHeader, /* [in] */ ULONG cbILHeader); HRESULT ( STDMETHODCALLTYPE *DynamicMethodJITCompilationFinished )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId, /* [in] */ HRESULT hrStatus, /* [in] */ BOOL fIsSafeToBlock); HRESULT ( STDMETHODCALLTYPE *DynamicMethodUnloaded )( ICorProfilerCallback11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *EventPipeEventDelivered )( ICorProfilerCallback11 * This, /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ DWORD eventId, /* [in] */ DWORD eventVersion, /* [in] */ ULONG cbMetadataBlob, /* [size_is][in] */ LPCBYTE metadataBlob, /* [in] */ ULONG cbEventData, /* [size_is][in] */ LPCBYTE eventData, /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId, /* [in] */ ThreadID eventThread, /* [in] */ ULONG numStackFrames, /* [length_is][in] */ UINT_PTR stackFrames[ ]); HRESULT ( STDMETHODCALLTYPE *EventPipeProviderCreated )( ICorProfilerCallback11 * This, /* [in] */ EVENTPIPE_PROVIDER provider); HRESULT ( STDMETHODCALLTYPE *LoadAsNotificationOnly )( ICorProfilerCallback11 * This, BOOL *pbNotificationOnly); END_INTERFACE } ICorProfilerCallback11Vtbl; interface ICorProfilerCallback11 { CONST_VTBL struct ICorProfilerCallback11Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerCallback11_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerCallback11_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerCallback11_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerCallback11_Initialize(This,pICorProfilerInfoUnk) \ ( (This)->lpVtbl -> Initialize(This,pICorProfilerInfoUnk) ) #define ICorProfilerCallback11_Shutdown(This) \ ( (This)->lpVtbl -> Shutdown(This) ) #define ICorProfilerCallback11_AppDomainCreationStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainCreationStarted(This,appDomainId) ) #define ICorProfilerCallback11_AppDomainCreationFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainCreationFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback11_AppDomainShutdownStarted(This,appDomainId) \ ( (This)->lpVtbl -> AppDomainShutdownStarted(This,appDomainId) ) #define ICorProfilerCallback11_AppDomainShutdownFinished(This,appDomainId,hrStatus) \ ( (This)->lpVtbl -> AppDomainShutdownFinished(This,appDomainId,hrStatus) ) #define ICorProfilerCallback11_AssemblyLoadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyLoadStarted(This,assemblyId) ) #define ICorProfilerCallback11_AssemblyLoadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyLoadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback11_AssemblyUnloadStarted(This,assemblyId) \ ( (This)->lpVtbl -> AssemblyUnloadStarted(This,assemblyId) ) #define ICorProfilerCallback11_AssemblyUnloadFinished(This,assemblyId,hrStatus) \ ( (This)->lpVtbl -> AssemblyUnloadFinished(This,assemblyId,hrStatus) ) #define ICorProfilerCallback11_ModuleLoadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleLoadStarted(This,moduleId) ) #define ICorProfilerCallback11_ModuleLoadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleLoadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback11_ModuleUnloadStarted(This,moduleId) \ ( (This)->lpVtbl -> ModuleUnloadStarted(This,moduleId) ) #define ICorProfilerCallback11_ModuleUnloadFinished(This,moduleId,hrStatus) \ ( (This)->lpVtbl -> ModuleUnloadFinished(This,moduleId,hrStatus) ) #define ICorProfilerCallback11_ModuleAttachedToAssembly(This,moduleId,AssemblyId) \ ( (This)->lpVtbl -> ModuleAttachedToAssembly(This,moduleId,AssemblyId) ) #define ICorProfilerCallback11_ClassLoadStarted(This,classId) \ ( (This)->lpVtbl -> ClassLoadStarted(This,classId) ) #define ICorProfilerCallback11_ClassLoadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassLoadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback11_ClassUnloadStarted(This,classId) \ ( (This)->lpVtbl -> ClassUnloadStarted(This,classId) ) #define ICorProfilerCallback11_ClassUnloadFinished(This,classId,hrStatus) \ ( (This)->lpVtbl -> ClassUnloadFinished(This,classId,hrStatus) ) #define ICorProfilerCallback11_FunctionUnloadStarted(This,functionId) \ ( (This)->lpVtbl -> FunctionUnloadStarted(This,functionId) ) #define ICorProfilerCallback11_JITCompilationStarted(This,functionId,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationStarted(This,functionId,fIsSafeToBlock) ) #define ICorProfilerCallback11_JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> JITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback11_JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) \ ( (This)->lpVtbl -> JITCachedFunctionSearchStarted(This,functionId,pbUseCachedFunction) ) #define ICorProfilerCallback11_JITCachedFunctionSearchFinished(This,functionId,result) \ ( (This)->lpVtbl -> JITCachedFunctionSearchFinished(This,functionId,result) ) #define ICorProfilerCallback11_JITFunctionPitched(This,functionId) \ ( (This)->lpVtbl -> JITFunctionPitched(This,functionId) ) #define ICorProfilerCallback11_JITInlining(This,callerId,calleeId,pfShouldInline) \ ( (This)->lpVtbl -> JITInlining(This,callerId,calleeId,pfShouldInline) ) #define ICorProfilerCallback11_ThreadCreated(This,threadId) \ ( (This)->lpVtbl -> ThreadCreated(This,threadId) ) #define ICorProfilerCallback11_ThreadDestroyed(This,threadId) \ ( (This)->lpVtbl -> ThreadDestroyed(This,threadId) ) #define ICorProfilerCallback11_ThreadAssignedToOSThread(This,managedThreadId,osThreadId) \ ( (This)->lpVtbl -> ThreadAssignedToOSThread(This,managedThreadId,osThreadId) ) #define ICorProfilerCallback11_RemotingClientInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingClientInvocationStarted(This) ) #define ICorProfilerCallback11_RemotingClientSendingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientSendingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback11_RemotingClientReceivingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingClientReceivingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback11_RemotingClientInvocationFinished(This) \ ( (This)->lpVtbl -> RemotingClientInvocationFinished(This) ) #define ICorProfilerCallback11_RemotingServerReceivingMessage(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerReceivingMessage(This,pCookie,fIsAsync) ) #define ICorProfilerCallback11_RemotingServerInvocationStarted(This) \ ( (This)->lpVtbl -> RemotingServerInvocationStarted(This) ) #define ICorProfilerCallback11_RemotingServerInvocationReturned(This) \ ( (This)->lpVtbl -> RemotingServerInvocationReturned(This) ) #define ICorProfilerCallback11_RemotingServerSendingReply(This,pCookie,fIsAsync) \ ( (This)->lpVtbl -> RemotingServerSendingReply(This,pCookie,fIsAsync) ) #define ICorProfilerCallback11_UnmanagedToManagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> UnmanagedToManagedTransition(This,functionId,reason) ) #define ICorProfilerCallback11_ManagedToUnmanagedTransition(This,functionId,reason) \ ( (This)->lpVtbl -> ManagedToUnmanagedTransition(This,functionId,reason) ) #define ICorProfilerCallback11_RuntimeSuspendStarted(This,suspendReason) \ ( (This)->lpVtbl -> RuntimeSuspendStarted(This,suspendReason) ) #define ICorProfilerCallback11_RuntimeSuspendFinished(This) \ ( (This)->lpVtbl -> RuntimeSuspendFinished(This) ) #define ICorProfilerCallback11_RuntimeSuspendAborted(This) \ ( (This)->lpVtbl -> RuntimeSuspendAborted(This) ) #define ICorProfilerCallback11_RuntimeResumeStarted(This) \ ( (This)->lpVtbl -> RuntimeResumeStarted(This) ) #define ICorProfilerCallback11_RuntimeResumeFinished(This) \ ( (This)->lpVtbl -> RuntimeResumeFinished(This) ) #define ICorProfilerCallback11_RuntimeThreadSuspended(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadSuspended(This,threadId) ) #define ICorProfilerCallback11_RuntimeThreadResumed(This,threadId) \ ( (This)->lpVtbl -> RuntimeThreadResumed(This,threadId) ) #define ICorProfilerCallback11_MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback11_ObjectAllocated(This,objectId,classId) \ ( (This)->lpVtbl -> ObjectAllocated(This,objectId,classId) ) #define ICorProfilerCallback11_ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) \ ( (This)->lpVtbl -> ObjectsAllocatedByClass(This,cClassCount,classIds,cObjects) ) #define ICorProfilerCallback11_ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) \ ( (This)->lpVtbl -> ObjectReferences(This,objectId,classId,cObjectRefs,objectRefIds) ) #define ICorProfilerCallback11_RootReferences(This,cRootRefs,rootRefIds) \ ( (This)->lpVtbl -> RootReferences(This,cRootRefs,rootRefIds) ) #define ICorProfilerCallback11_ExceptionThrown(This,thrownObjectId) \ ( (This)->lpVtbl -> ExceptionThrown(This,thrownObjectId) ) #define ICorProfilerCallback11_ExceptionSearchFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFunctionEnter(This,functionId) ) #define ICorProfilerCallback11_ExceptionSearchFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFunctionLeave(This) ) #define ICorProfilerCallback11_ExceptionSearchFilterEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchFilterEnter(This,functionId) ) #define ICorProfilerCallback11_ExceptionSearchFilterLeave(This) \ ( (This)->lpVtbl -> ExceptionSearchFilterLeave(This) ) #define ICorProfilerCallback11_ExceptionSearchCatcherFound(This,functionId) \ ( (This)->lpVtbl -> ExceptionSearchCatcherFound(This,functionId) ) #define ICorProfilerCallback11_ExceptionOSHandlerEnter(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerEnter(This,__unused) ) #define ICorProfilerCallback11_ExceptionOSHandlerLeave(This,__unused) \ ( (This)->lpVtbl -> ExceptionOSHandlerLeave(This,__unused) ) #define ICorProfilerCallback11_ExceptionUnwindFunctionEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionEnter(This,functionId) ) #define ICorProfilerCallback11_ExceptionUnwindFunctionLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFunctionLeave(This) ) #define ICorProfilerCallback11_ExceptionUnwindFinallyEnter(This,functionId) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyEnter(This,functionId) ) #define ICorProfilerCallback11_ExceptionUnwindFinallyLeave(This) \ ( (This)->lpVtbl -> ExceptionUnwindFinallyLeave(This) ) #define ICorProfilerCallback11_ExceptionCatcherEnter(This,functionId,objectId) \ ( (This)->lpVtbl -> ExceptionCatcherEnter(This,functionId,objectId) ) #define ICorProfilerCallback11_ExceptionCatcherLeave(This) \ ( (This)->lpVtbl -> ExceptionCatcherLeave(This) ) #define ICorProfilerCallback11_COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) \ ( (This)->lpVtbl -> COMClassicVTableCreated(This,wrappedClassId,implementedIID,pVTable,cSlots) ) #define ICorProfilerCallback11_COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) \ ( (This)->lpVtbl -> COMClassicVTableDestroyed(This,wrappedClassId,implementedIID,pVTable) ) #define ICorProfilerCallback11_ExceptionCLRCatcherFound(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherFound(This) ) #define ICorProfilerCallback11_ExceptionCLRCatcherExecute(This) \ ( (This)->lpVtbl -> ExceptionCLRCatcherExecute(This) ) #define ICorProfilerCallback11_ThreadNameChanged(This,threadId,cchName,name) \ ( (This)->lpVtbl -> ThreadNameChanged(This,threadId,cchName,name) ) #define ICorProfilerCallback11_GarbageCollectionStarted(This,cGenerations,generationCollected,reason) \ ( (This)->lpVtbl -> GarbageCollectionStarted(This,cGenerations,generationCollected,reason) ) #define ICorProfilerCallback11_SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback11_GarbageCollectionFinished(This) \ ( (This)->lpVtbl -> GarbageCollectionFinished(This) ) #define ICorProfilerCallback11_FinalizeableObjectQueued(This,finalizerFlags,objectID) \ ( (This)->lpVtbl -> FinalizeableObjectQueued(This,finalizerFlags,objectID) ) #define ICorProfilerCallback11_RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) \ ( (This)->lpVtbl -> RootReferences2(This,cRootRefs,rootRefIds,rootKinds,rootFlags,rootIds) ) #define ICorProfilerCallback11_HandleCreated(This,handleId,initialObjectId) \ ( (This)->lpVtbl -> HandleCreated(This,handleId,initialObjectId) ) #define ICorProfilerCallback11_HandleDestroyed(This,handleId) \ ( (This)->lpVtbl -> HandleDestroyed(This,handleId) ) #define ICorProfilerCallback11_InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) \ ( (This)->lpVtbl -> InitializeForAttach(This,pCorProfilerInfoUnk,pvClientData,cbClientData) ) #define ICorProfilerCallback11_ProfilerAttachComplete(This) \ ( (This)->lpVtbl -> ProfilerAttachComplete(This) ) #define ICorProfilerCallback11_ProfilerDetachSucceeded(This) \ ( (This)->lpVtbl -> ProfilerDetachSucceeded(This) ) #define ICorProfilerCallback11_ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationStarted(This,functionId,rejitId,fIsSafeToBlock) ) #define ICorProfilerCallback11_GetReJITParameters(This,moduleId,methodId,pFunctionControl) \ ( (This)->lpVtbl -> GetReJITParameters(This,moduleId,methodId,pFunctionControl) ) #define ICorProfilerCallback11_ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> ReJITCompilationFinished(This,functionId,rejitId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback11_ReJITError(This,moduleId,methodId,functionId,hrStatus) \ ( (This)->lpVtbl -> ReJITError(This,moduleId,methodId,functionId,hrStatus) ) #define ICorProfilerCallback11_MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> MovedReferences2(This,cMovedObjectIDRanges,oldObjectIDRangeStart,newObjectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback11_SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) \ ( (This)->lpVtbl -> SurvivingReferences2(This,cSurvivingObjectIDRanges,objectIDRangeStart,cObjectIDRangeLength) ) #define ICorProfilerCallback11_ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) \ ( (This)->lpVtbl -> ConditionalWeakTableElementReferences(This,cRootRefs,keyRefIds,valueRefIds,rootIds) ) #define ICorProfilerCallback11_GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) \ ( (This)->lpVtbl -> GetAssemblyReferences(This,wszAssemblyPath,pAsmRefProvider) ) #define ICorProfilerCallback11_ModuleInMemorySymbolsUpdated(This,moduleId) \ ( (This)->lpVtbl -> ModuleInMemorySymbolsUpdated(This,moduleId) ) #define ICorProfilerCallback11_DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationStarted(This,functionId,fIsSafeToBlock,pILHeader,cbILHeader) ) #define ICorProfilerCallback11_DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) \ ( (This)->lpVtbl -> DynamicMethodJITCompilationFinished(This,functionId,hrStatus,fIsSafeToBlock) ) #define ICorProfilerCallback11_DynamicMethodUnloaded(This,functionId) \ ( (This)->lpVtbl -> DynamicMethodUnloaded(This,functionId) ) #define ICorProfilerCallback11_EventPipeEventDelivered(This,provider,eventId,eventVersion,cbMetadataBlob,metadataBlob,cbEventData,eventData,pActivityId,pRelatedActivityId,eventThread,numStackFrames,stackFrames) \ ( (This)->lpVtbl -> EventPipeEventDelivered(This,provider,eventId,eventVersion,cbMetadataBlob,metadataBlob,cbEventData,eventData,pActivityId,pRelatedActivityId,eventThread,numStackFrames,stackFrames) ) #define ICorProfilerCallback11_EventPipeProviderCreated(This,provider) \ ( (This)->lpVtbl -> EventPipeProviderCreated(This,provider) ) #define ICorProfilerCallback11_LoadAsNotificationOnly(This,pbNotificationOnly) \ ( (This)->lpVtbl -> LoadAsNotificationOnly(This,pbNotificationOnly) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerCallback11_INTERFACE_DEFINED__ */ /* interface __MIDL_itf_corprof_0000_0011 */ /* [local] */ typedef /* [public] */ enum __MIDL___MIDL_itf_corprof_0000_0011_0001 { COR_PRF_CODEGEN_DISABLE_INLINING = 0x1, COR_PRF_CODEGEN_DISABLE_ALL_OPTIMIZATIONS = 0x2 } COR_PRF_CODEGEN_FLAGS; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0011_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_corprof_0000_0011_v0_0_s_ifspec; #ifndef __ICorProfilerInfo_INTERFACE_DEFINED__ #define __ICorProfilerInfo_INTERFACE_DEFINED__ /* interface ICorProfilerInfo */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("28B5557D-3F3F-48b4-90B2-5F9EEA2F6C48") ICorProfilerInfo : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE GetClassFromObject( /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassFromToken( /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId) = 0; virtual HRESULT STDMETHODCALLTYPE GetCodeInfo( /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize) = 0; virtual HRESULT STDMETHODCALLTYPE GetEventMask( /* [out] */ DWORD *pdwEvents) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromIP( /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromToken( /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId) = 0; virtual HRESULT STDMETHODCALLTYPE GetHandleFromThread( /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread) = 0; virtual HRESULT STDMETHODCALLTYPE GetObjectSize( /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize) = 0; virtual HRESULT STDMETHODCALLTYPE IsArrayClass( /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadInfo( /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId) = 0; virtual HRESULT STDMETHODCALLTYPE GetCurrentThreadID( /* [out] */ ThreadID *pThreadId) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassIDInfo( /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionInfo( /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken) = 0; virtual HRESULT STDMETHODCALLTYPE SetEventMask( /* [in] */ DWORD dwEvents) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnterLeaveFunctionHooks( /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall) = 0; virtual HRESULT STDMETHODCALLTYPE SetFunctionIDMapper( /* [in] */ FunctionIDMapper *pFunc) = 0; virtual HRESULT STDMETHODCALLTYPE GetTokenAndMetaDataFromFunction( /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken) = 0; virtual HRESULT STDMETHODCALLTYPE GetModuleInfo( /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId) = 0; virtual HRESULT STDMETHODCALLTYPE GetModuleMetaData( /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut) = 0; virtual HRESULT STDMETHODCALLTYPE GetILFunctionBody( /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize) = 0; virtual HRESULT STDMETHODCALLTYPE GetILFunctionBodyAllocator( /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc) = 0; virtual HRESULT STDMETHODCALLTYPE SetILFunctionBody( /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader) = 0; virtual HRESULT STDMETHODCALLTYPE GetAppDomainInfo( /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId) = 0; virtual HRESULT STDMETHODCALLTYPE GetAssemblyInfo( /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId) = 0; virtual HRESULT STDMETHODCALLTYPE SetFunctionReJIT( /* [in] */ FunctionID functionId) = 0; virtual HRESULT STDMETHODCALLTYPE ForceGC( void) = 0; virtual HRESULT STDMETHODCALLTYPE SetILInstrumentedCodeMap( /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetInprocInspectionInterface( /* [out] */ IUnknown **ppicd) = 0; virtual HRESULT STDMETHODCALLTYPE GetInprocInspectionIThisThread( /* [out] */ IUnknown **ppicd) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadContext( /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId) = 0; virtual HRESULT STDMETHODCALLTYPE BeginInprocDebugging( /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext) = 0; virtual HRESULT STDMETHODCALLTYPE EndInprocDebugging( /* [in] */ DWORD dwProfilerContext) = 0; virtual HRESULT STDMETHODCALLTYPE GetILToNativeMapping( /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfoVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); END_INTERFACE } ICorProfilerInfoVtbl; interface ICorProfilerInfo { CONST_VTBL struct ICorProfilerInfoVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo2_INTERFACE_DEFINED__ #define __ICorProfilerInfo2_INTERFACE_DEFINED__ /* interface ICorProfilerInfo2 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo2; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("CC0935CD-A518-487d-B0BB-A93214E65478") ICorProfilerInfo2 : public ICorProfilerInfo { public: virtual HRESULT STDMETHODCALLTYPE DoStackSnapshot( /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnterLeaveFunctionHooks2( /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionInfo2( /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetStringLayout( /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassLayout( /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassIDInfo2( /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetCodeInfo2( /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetClassFromTokenAndTypeArgs( /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromTokenAndTypeArgs( /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID) = 0; virtual HRESULT STDMETHODCALLTYPE EnumModuleFrozenObjects( /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetArrayObjectInfo( /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData) = 0; virtual HRESULT STDMETHODCALLTYPE GetBoxClassLayout( /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadAppDomain( /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId) = 0; virtual HRESULT STDMETHODCALLTYPE GetRVAStaticAddress( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetAppDomainStaticAddress( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadStaticAddress( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetContextStaticAddress( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetStaticFieldInfo( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo) = 0; virtual HRESULT STDMETHODCALLTYPE GetGenerationBounds( /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetObjectGeneration( /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range) = 0; virtual HRESULT STDMETHODCALLTYPE GetNotifiedExceptionClauseInfo( /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo2Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo2 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo2 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo2 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo2 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo2 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo2 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo2 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo2 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo2 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo2 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo2 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo2 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo2 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo2 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo2 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo2 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo2 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo2 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo2 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo2 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo2 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo2 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo2 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo2 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo2 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo2 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo2 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo2 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo2 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo2 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo2 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo2 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo2 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo2 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); END_INTERFACE } ICorProfilerInfo2Vtbl; interface ICorProfilerInfo2 { CONST_VTBL struct ICorProfilerInfo2Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo2_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo2_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo2_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo2_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo2_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo2_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo2_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo2_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo2_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo2_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo2_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo2_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo2_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo2_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo2_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo2_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo2_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo2_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo2_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo2_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo2_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo2_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo2_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo2_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo2_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo2_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo2_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo2_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo2_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo2_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo2_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo2_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo2_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo2_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo2_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo2_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo2_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo2_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo2_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo2_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo2_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo2_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo2_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo2_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo2_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo2_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo2_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo2_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo2_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo2_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo2_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo2_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo2_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo2_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo2_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo2_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo2_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo2_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo3_INTERFACE_DEFINED__ #define __ICorProfilerInfo3_INTERFACE_DEFINED__ /* interface ICorProfilerInfo3 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo3; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("B555ED4F-452A-4E54-8B39-B5360BAD32A0") ICorProfilerInfo3 : public ICorProfilerInfo2 { public: virtual HRESULT STDMETHODCALLTYPE EnumJITedFunctions( /* [out] */ ICorProfilerFunctionEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE RequestProfilerDetach( /* [in] */ DWORD dwExpectedCompletionMilliseconds) = 0; virtual HRESULT STDMETHODCALLTYPE SetFunctionIDMapper2( /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData) = 0; virtual HRESULT STDMETHODCALLTYPE GetStringLayout2( /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnterLeaveFunctionHooks3( /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnterLeaveFunctionHooks3WithInfo( /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionEnter3Info( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionLeave3Info( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionTailcall3Info( /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo) = 0; virtual HRESULT STDMETHODCALLTYPE EnumModules( /* [out] */ ICorProfilerModuleEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetRuntimeInformation( /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetThreadStaticAddress2( /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress) = 0; virtual HRESULT STDMETHODCALLTYPE GetAppDomainsContainingModule( /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetModuleInfo2( /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo3Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo3 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo3 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo3 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo3 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo3 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo3 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo3 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo3 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo3 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo3 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo3 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo3 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo3 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo3 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo3 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo3 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo3 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo3 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo3 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo3 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo3 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo3 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo3 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo3 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo3 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo3 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo3 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo3 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo3 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo3 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo3 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo3 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo3 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo3 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo3 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo3 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo3 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo3 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo3 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo3 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo3 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo3 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); END_INTERFACE } ICorProfilerInfo3Vtbl; interface ICorProfilerInfo3 { CONST_VTBL struct ICorProfilerInfo3Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo3_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo3_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo3_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo3_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo3_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo3_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo3_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo3_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo3_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo3_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo3_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo3_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo3_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo3_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo3_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo3_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo3_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo3_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo3_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo3_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo3_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo3_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo3_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo3_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo3_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo3_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo3_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo3_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo3_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo3_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo3_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo3_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo3_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo3_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo3_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo3_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo3_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo3_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo3_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo3_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo3_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo3_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo3_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo3_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo3_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo3_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo3_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo3_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo3_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo3_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo3_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo3_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo3_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo3_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo3_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo3_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo3_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo3_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo3_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo3_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo3_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo3_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo3_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo3_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo3_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo3_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo3_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo3_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo3_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo3_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo3_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo3_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerObjectEnum_INTERFACE_DEFINED__ #define __ICorProfilerObjectEnum_INTERFACE_DEFINED__ /* interface ICorProfilerObjectEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerObjectEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2C6269BD-2D13-4321-AE12-6686365FD6AF") ICorProfilerObjectEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerObjectEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ObjectID objects[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerObjectEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerObjectEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerObjectEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerObjectEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerObjectEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerObjectEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerObjectEnum * This, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerObjectEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerObjectEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ObjectID objects[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerObjectEnumVtbl; interface ICorProfilerObjectEnum { CONST_VTBL struct ICorProfilerObjectEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerObjectEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerObjectEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerObjectEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerObjectEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerObjectEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerObjectEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerObjectEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerObjectEnum_Next(This,celt,objects,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,objects,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerObjectEnum_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerFunctionEnum_INTERFACE_DEFINED__ #define __ICorProfilerFunctionEnum_INTERFACE_DEFINED__ /* interface ICorProfilerFunctionEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerFunctionEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("FF71301A-B994-429D-A10B-B345A65280EF") ICorProfilerFunctionEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerFunctionEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ COR_PRF_FUNCTION ids[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerFunctionEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerFunctionEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerFunctionEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerFunctionEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerFunctionEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerFunctionEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerFunctionEnum * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerFunctionEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerFunctionEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ COR_PRF_FUNCTION ids[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerFunctionEnumVtbl; interface ICorProfilerFunctionEnum { CONST_VTBL struct ICorProfilerFunctionEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerFunctionEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerFunctionEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerFunctionEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerFunctionEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerFunctionEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerFunctionEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerFunctionEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerFunctionEnum_Next(This,celt,ids,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,ids,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerFunctionEnum_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerModuleEnum_INTERFACE_DEFINED__ #define __ICorProfilerModuleEnum_INTERFACE_DEFINED__ /* interface ICorProfilerModuleEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerModuleEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("b0266d75-2081-4493-af7f-028ba34db891") ICorProfilerModuleEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerModuleEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ModuleID ids[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerModuleEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerModuleEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerModuleEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerModuleEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerModuleEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerModuleEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerModuleEnum * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerModuleEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerModuleEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ModuleID ids[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerModuleEnumVtbl; interface ICorProfilerModuleEnum { CONST_VTBL struct ICorProfilerModuleEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerModuleEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerModuleEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerModuleEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerModuleEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerModuleEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerModuleEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerModuleEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerModuleEnum_Next(This,celt,ids,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,ids,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerModuleEnum_INTERFACE_DEFINED__ */ #ifndef __IMethodMalloc_INTERFACE_DEFINED__ #define __IMethodMalloc_INTERFACE_DEFINED__ /* interface IMethodMalloc */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_IMethodMalloc; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("A0EFB28B-6EE2-4d7b-B983-A75EF7BEEDB8") IMethodMalloc : public IUnknown { public: virtual PVOID STDMETHODCALLTYPE Alloc( /* [in] */ ULONG cb) = 0; }; #else /* C style interface */ typedef struct IMethodMallocVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IMethodMalloc * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IMethodMalloc * This); ULONG ( STDMETHODCALLTYPE *Release )( IMethodMalloc * This); PVOID ( STDMETHODCALLTYPE *Alloc )( IMethodMalloc * This, /* [in] */ ULONG cb); END_INTERFACE } IMethodMallocVtbl; interface IMethodMalloc { CONST_VTBL struct IMethodMallocVtbl *lpVtbl; }; #ifdef COBJMACROS #define IMethodMalloc_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IMethodMalloc_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IMethodMalloc_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IMethodMalloc_Alloc(This,cb) \ ( (This)->lpVtbl -> Alloc(This,cb) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IMethodMalloc_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerFunctionControl_INTERFACE_DEFINED__ #define __ICorProfilerFunctionControl_INTERFACE_DEFINED__ /* interface ICorProfilerFunctionControl */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerFunctionControl; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("F0963021-E1EA-4732-8581-E01B0BD3C0C6") ICorProfilerFunctionControl : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE SetCodegenFlags( /* [in] */ DWORD flags) = 0; virtual HRESULT STDMETHODCALLTYPE SetILFunctionBody( /* [in] */ ULONG cbNewILMethodHeader, /* [size_is][in] */ LPCBYTE pbNewILMethodHeader) = 0; virtual HRESULT STDMETHODCALLTYPE SetILInstrumentedCodeMap( /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerFunctionControlVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerFunctionControl * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerFunctionControl * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerFunctionControl * This); HRESULT ( STDMETHODCALLTYPE *SetCodegenFlags )( ICorProfilerFunctionControl * This, /* [in] */ DWORD flags); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerFunctionControl * This, /* [in] */ ULONG cbNewILMethodHeader, /* [size_is][in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerFunctionControl * This, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); END_INTERFACE } ICorProfilerFunctionControlVtbl; interface ICorProfilerFunctionControl { CONST_VTBL struct ICorProfilerFunctionControlVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerFunctionControl_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerFunctionControl_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerFunctionControl_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerFunctionControl_SetCodegenFlags(This,flags) \ ( (This)->lpVtbl -> SetCodegenFlags(This,flags) ) #define ICorProfilerFunctionControl_SetILFunctionBody(This,cbNewILMethodHeader,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,cbNewILMethodHeader,pbNewILMethodHeader) ) #define ICorProfilerFunctionControl_SetILInstrumentedCodeMap(This,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,cILMapEntries,rgILMapEntries) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerFunctionControl_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo4_INTERFACE_DEFINED__ #define __ICorProfilerInfo4_INTERFACE_DEFINED__ /* interface ICorProfilerInfo4 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo4; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("0d8fdcaa-6257-47bf-b1bf-94dac88466ee") ICorProfilerInfo4 : public ICorProfilerInfo3 { public: virtual HRESULT STDMETHODCALLTYPE EnumThreads( /* [out] */ ICorProfilerThreadEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE InitializeCurrentThread( void) = 0; virtual HRESULT STDMETHODCALLTYPE RequestReJIT( /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE RequestRevert( /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetCodeInfo3( /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromIP2( /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId) = 0; virtual HRESULT STDMETHODCALLTYPE GetReJITIDs( /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetILToNativeMapping2( /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE EnumJITedFunctions2( /* [out] */ ICorProfilerFunctionEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetObjectSize2( /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo4Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo4 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo4 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo4 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo4 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo4 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo4 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo4 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo4 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo4 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo4 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo4 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo4 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo4 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo4 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo4 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo4 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo4 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo4 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo4 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo4 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo4 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo4 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo4 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo4 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo4 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo4 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo4 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo4 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo4 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo4 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo4 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo4 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo4 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo4 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo4 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo4 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo4 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo4 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo4 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo4 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo4 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo4 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); END_INTERFACE } ICorProfilerInfo4Vtbl; interface ICorProfilerInfo4 { CONST_VTBL struct ICorProfilerInfo4Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo4_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo4_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo4_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo4_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo4_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo4_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo4_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo4_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo4_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo4_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo4_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo4_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo4_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo4_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo4_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo4_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo4_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo4_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo4_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo4_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo4_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo4_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo4_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo4_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo4_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo4_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo4_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo4_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo4_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo4_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo4_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo4_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo4_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo4_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo4_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo4_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo4_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo4_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo4_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo4_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo4_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo4_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo4_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo4_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo4_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo4_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo4_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo4_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo4_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo4_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo4_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo4_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo4_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo4_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo4_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo4_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo4_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo4_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo4_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo4_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo4_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo4_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo4_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo4_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo4_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo4_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo4_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo4_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo4_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo4_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo4_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo4_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo4_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo4_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo4_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo4_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo4_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo4_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo4_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo4_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo4_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo4_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo5_INTERFACE_DEFINED__ #define __ICorProfilerInfo5_INTERFACE_DEFINED__ /* interface ICorProfilerInfo5 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo5; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("07602928-CE38-4B83-81E7-74ADAF781214") ICorProfilerInfo5 : public ICorProfilerInfo4 { public: virtual HRESULT STDMETHODCALLTYPE GetEventMask2( /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh) = 0; virtual HRESULT STDMETHODCALLTYPE SetEventMask2( /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo5Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo5 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo5 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo5 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo5 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo5 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo5 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo5 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo5 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo5 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo5 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo5 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo5 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo5 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo5 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo5 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo5 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo5 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo5 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo5 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo5 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo5 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo5 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo5 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo5 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo5 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo5 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo5 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo5 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo5 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo5 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo5 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo5 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo5 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo5 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo5 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo5 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo5 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo5 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo5 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo5 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo5 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo5 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo5 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo5 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); END_INTERFACE } ICorProfilerInfo5Vtbl; interface ICorProfilerInfo5 { CONST_VTBL struct ICorProfilerInfo5Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo5_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo5_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo5_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo5_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo5_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo5_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo5_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo5_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo5_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo5_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo5_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo5_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo5_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo5_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo5_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo5_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo5_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo5_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo5_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo5_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo5_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo5_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo5_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo5_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo5_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo5_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo5_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo5_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo5_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo5_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo5_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo5_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo5_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo5_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo5_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo5_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo5_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo5_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo5_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo5_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo5_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo5_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo5_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo5_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo5_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo5_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo5_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo5_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo5_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo5_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo5_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo5_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo5_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo5_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo5_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo5_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo5_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo5_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo5_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo5_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo5_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo5_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo5_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo5_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo5_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo5_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo5_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo5_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo5_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo5_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo5_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo5_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo5_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo5_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo5_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo5_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo5_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo5_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo5_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo5_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo5_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo5_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo5_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo5_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo6_INTERFACE_DEFINED__ #define __ICorProfilerInfo6_INTERFACE_DEFINED__ /* interface ICorProfilerInfo6 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo6; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("F30A070D-BFFB-46A7-B1D8-8781EF7B698A") ICorProfilerInfo6 : public ICorProfilerInfo5 { public: virtual HRESULT STDMETHODCALLTYPE EnumNgenModuleMethodsInliningThisMethod( /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo6Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo6 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo6 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo6 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo6 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo6 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo6 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo6 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo6 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo6 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo6 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo6 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo6 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo6 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo6 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo6 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo6 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo6 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo6 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo6 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo6 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo6 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo6 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo6 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo6 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo6 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo6 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo6 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo6 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo6 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo6 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo6 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo6 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo6 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo6 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo6 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo6 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo6 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo6 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo6 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo6 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo6 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo6 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo6 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo6 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo6 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); END_INTERFACE } ICorProfilerInfo6Vtbl; interface ICorProfilerInfo6 { CONST_VTBL struct ICorProfilerInfo6Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo6_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo6_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo6_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo6_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo6_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo6_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo6_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo6_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo6_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo6_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo6_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo6_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo6_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo6_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo6_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo6_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo6_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo6_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo6_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo6_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo6_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo6_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo6_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo6_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo6_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo6_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo6_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo6_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo6_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo6_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo6_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo6_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo6_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo6_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo6_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo6_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo6_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo6_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo6_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo6_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo6_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo6_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo6_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo6_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo6_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo6_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo6_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo6_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo6_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo6_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo6_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo6_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo6_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo6_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo6_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo6_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo6_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo6_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo6_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo6_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo6_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo6_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo6_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo6_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo6_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo6_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo6_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo6_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo6_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo6_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo6_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo6_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo6_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo6_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo6_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo6_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo6_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo6_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo6_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo6_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo6_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo6_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo6_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo6_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo6_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo7_INTERFACE_DEFINED__ #define __ICorProfilerInfo7_INTERFACE_DEFINED__ /* interface ICorProfilerInfo7 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo7; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("9AEECC0D-63E0-4187-8C00-E312F503F663") ICorProfilerInfo7 : public ICorProfilerInfo6 { public: virtual HRESULT STDMETHODCALLTYPE ApplyMetaData( /* [in] */ ModuleID moduleId) = 0; virtual HRESULT STDMETHODCALLTYPE GetInMemorySymbolsLength( /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes) = 0; virtual HRESULT STDMETHODCALLTYPE ReadInMemorySymbols( /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo7Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo7 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo7 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo7 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo7 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo7 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo7 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo7 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo7 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo7 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo7 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo7 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo7 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo7 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo7 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo7 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo7 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo7 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo7 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo7 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo7 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo7 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo7 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo7 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo7 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo7 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo7 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo7 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo7 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo7 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo7 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo7 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo7 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo7 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo7 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo7 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo7 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo7 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo7 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo7 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo7 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo7 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo7 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo7 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo7 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo7 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); END_INTERFACE } ICorProfilerInfo7Vtbl; interface ICorProfilerInfo7 { CONST_VTBL struct ICorProfilerInfo7Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo7_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo7_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo7_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo7_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo7_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo7_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo7_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo7_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo7_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo7_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo7_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo7_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo7_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo7_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo7_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo7_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo7_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo7_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo7_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo7_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo7_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo7_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo7_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo7_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo7_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo7_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo7_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo7_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo7_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo7_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo7_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo7_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo7_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo7_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo7_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo7_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo7_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo7_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo7_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo7_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo7_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo7_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo7_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo7_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo7_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo7_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo7_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo7_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo7_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo7_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo7_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo7_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo7_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo7_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo7_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo7_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo7_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo7_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo7_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo7_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo7_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo7_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo7_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo7_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo7_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo7_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo7_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo7_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo7_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo7_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo7_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo7_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo7_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo7_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo7_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo7_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo7_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo7_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo7_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo7_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo7_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo7_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo7_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo7_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo7_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo7_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo7_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo7_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo8_INTERFACE_DEFINED__ #define __ICorProfilerInfo8_INTERFACE_DEFINED__ /* interface ICorProfilerInfo8 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo8; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("C5AC80A6-782E-4716-8044-39598C60CFBF") ICorProfilerInfo8 : public ICorProfilerInfo7 { public: virtual HRESULT STDMETHODCALLTYPE IsFunctionDynamic( /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic) = 0; virtual HRESULT STDMETHODCALLTYPE GetFunctionFromIP3( /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId) = 0; virtual HRESULT STDMETHODCALLTYPE GetDynamicFunctionInfo( /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo8Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo8 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo8 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo8 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo8 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo8 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo8 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo8 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo8 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo8 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo8 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo8 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo8 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo8 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo8 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo8 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo8 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo8 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo8 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo8 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo8 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo8 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo8 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo8 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo8 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo8 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo8 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo8 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo8 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo8 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo8 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo8 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo8 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo8 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo8 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo8 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo8 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo8 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo8 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo8 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo8 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo8 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo8 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo8 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo8 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo8 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo8 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); END_INTERFACE } ICorProfilerInfo8Vtbl; interface ICorProfilerInfo8 { CONST_VTBL struct ICorProfilerInfo8Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo8_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo8_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo8_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo8_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo8_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo8_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo8_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo8_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo8_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo8_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo8_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo8_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo8_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo8_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo8_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo8_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo8_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo8_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo8_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo8_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo8_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo8_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo8_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo8_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo8_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo8_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo8_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo8_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo8_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo8_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo8_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo8_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo8_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo8_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo8_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo8_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo8_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo8_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo8_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo8_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo8_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo8_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo8_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo8_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo8_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo8_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo8_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo8_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo8_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo8_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo8_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo8_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo8_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo8_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo8_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo8_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo8_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo8_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo8_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo8_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo8_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo8_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo8_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo8_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo8_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo8_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo8_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo8_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo8_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo8_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo8_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo8_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo8_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo8_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo8_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo8_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo8_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo8_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo8_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo8_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo8_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo8_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo8_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo8_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo8_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo8_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo8_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo8_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo8_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo8_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo8_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo9_INTERFACE_DEFINED__ #define __ICorProfilerInfo9_INTERFACE_DEFINED__ /* interface ICorProfilerInfo9 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo9; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("008170DB-F8CC-4796-9A51-DC8AA0B47012") ICorProfilerInfo9 : public ICorProfilerInfo8 { public: virtual HRESULT STDMETHODCALLTYPE GetNativeCodeStartAddresses( FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetILToNativeMapping3( UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE GetCodeInfo4( UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo9Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo9 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo9 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo9 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo9 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo9 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo9 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo9 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo9 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo9 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo9 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo9 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo9 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo9 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo9 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo9 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo9 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo9 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo9 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo9 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo9 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo9 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo9 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo9 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo9 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo9 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo9 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo9 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo9 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo9 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo9 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo9 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo9 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo9 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo9 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo9 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo9 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo9 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo9 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo9 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo9 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo9 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo9 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo9 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo9 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo9 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo9 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); HRESULT ( STDMETHODCALLTYPE *GetNativeCodeStartAddresses )( ICorProfilerInfo9 * This, FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping3 )( ICorProfilerInfo9 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo4 )( ICorProfilerInfo9 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]); END_INTERFACE } ICorProfilerInfo9Vtbl; interface ICorProfilerInfo9 { CONST_VTBL struct ICorProfilerInfo9Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo9_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo9_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo9_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo9_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo9_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo9_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo9_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo9_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo9_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo9_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo9_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo9_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo9_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo9_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo9_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo9_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo9_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo9_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo9_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo9_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo9_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo9_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo9_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo9_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo9_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo9_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo9_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo9_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo9_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo9_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo9_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo9_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo9_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo9_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo9_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo9_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo9_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo9_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo9_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo9_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo9_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo9_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo9_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo9_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo9_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo9_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo9_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo9_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo9_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo9_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo9_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo9_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo9_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo9_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo9_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo9_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo9_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo9_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo9_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo9_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo9_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo9_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo9_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo9_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo9_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo9_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo9_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo9_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo9_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo9_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo9_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo9_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo9_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo9_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo9_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo9_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo9_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo9_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo9_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo9_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo9_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo9_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo9_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo9_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo9_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo9_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo9_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo9_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo9_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo9_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #define ICorProfilerInfo9_GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) \ ( (This)->lpVtbl -> GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) ) #define ICorProfilerInfo9_GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) ) #define ICorProfilerInfo9_GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo9_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo10_INTERFACE_DEFINED__ #define __ICorProfilerInfo10_INTERFACE_DEFINED__ /* interface ICorProfilerInfo10 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo10; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2F1B5152-C869-40C9-AA5F-3ABE026BD720") ICorProfilerInfo10 : public ICorProfilerInfo9 { public: virtual HRESULT STDMETHODCALLTYPE EnumerateObjectReferences( ObjectID objectId, ObjectReferenceCallback callback, void *clientData) = 0; virtual HRESULT STDMETHODCALLTYPE IsFrozenObject( ObjectID objectId, BOOL *pbFrozen) = 0; virtual HRESULT STDMETHODCALLTYPE GetLOHObjectSizeThreshold( DWORD *pThreshold) = 0; virtual HRESULT STDMETHODCALLTYPE RequestReJITWithInliners( /* [in] */ DWORD dwRejitFlags, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE SuspendRuntime( void) = 0; virtual HRESULT STDMETHODCALLTYPE ResumeRuntime( void) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo10Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo10 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo10 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo10 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo10 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo10 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo10 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo10 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo10 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo10 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo10 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo10 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo10 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo10 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo10 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo10 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo10 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo10 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo10 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo10 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo10 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo10 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo10 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo10 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo10 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo10 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo10 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo10 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo10 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo10 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo10 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo10 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo10 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo10 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo10 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo10 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo10 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo10 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo10 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo10 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo10 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo10 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo10 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); HRESULT ( STDMETHODCALLTYPE *GetNativeCodeStartAddresses )( ICorProfilerInfo10 * This, FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping3 )( ICorProfilerInfo10 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo4 )( ICorProfilerInfo10 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *EnumerateObjectReferences )( ICorProfilerInfo10 * This, ObjectID objectId, ObjectReferenceCallback callback, void *clientData); HRESULT ( STDMETHODCALLTYPE *IsFrozenObject )( ICorProfilerInfo10 * This, ObjectID objectId, BOOL *pbFrozen); HRESULT ( STDMETHODCALLTYPE *GetLOHObjectSizeThreshold )( ICorProfilerInfo10 * This, DWORD *pThreshold); HRESULT ( STDMETHODCALLTYPE *RequestReJITWithInliners )( ICorProfilerInfo10 * This, /* [in] */ DWORD dwRejitFlags, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *SuspendRuntime )( ICorProfilerInfo10 * This); HRESULT ( STDMETHODCALLTYPE *ResumeRuntime )( ICorProfilerInfo10 * This); END_INTERFACE } ICorProfilerInfo10Vtbl; interface ICorProfilerInfo10 { CONST_VTBL struct ICorProfilerInfo10Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo10_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo10_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo10_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo10_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo10_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo10_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo10_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo10_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo10_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo10_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo10_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo10_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo10_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo10_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo10_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo10_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo10_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo10_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo10_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo10_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo10_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo10_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo10_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo10_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo10_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo10_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo10_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo10_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo10_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo10_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo10_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo10_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo10_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo10_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo10_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo10_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo10_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo10_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo10_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo10_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo10_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo10_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo10_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo10_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo10_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo10_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo10_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo10_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo10_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo10_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo10_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo10_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo10_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo10_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo10_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo10_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo10_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo10_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo10_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo10_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo10_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo10_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo10_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo10_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo10_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo10_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo10_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo10_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo10_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo10_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo10_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo10_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo10_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo10_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo10_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo10_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo10_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo10_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo10_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo10_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo10_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo10_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo10_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo10_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo10_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo10_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo10_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo10_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo10_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo10_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #define ICorProfilerInfo10_GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) \ ( (This)->lpVtbl -> GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) ) #define ICorProfilerInfo10_GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) ) #define ICorProfilerInfo10_GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo10_EnumerateObjectReferences(This,objectId,callback,clientData) \ ( (This)->lpVtbl -> EnumerateObjectReferences(This,objectId,callback,clientData) ) #define ICorProfilerInfo10_IsFrozenObject(This,objectId,pbFrozen) \ ( (This)->lpVtbl -> IsFrozenObject(This,objectId,pbFrozen) ) #define ICorProfilerInfo10_GetLOHObjectSizeThreshold(This,pThreshold) \ ( (This)->lpVtbl -> GetLOHObjectSizeThreshold(This,pThreshold) ) #define ICorProfilerInfo10_RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo10_SuspendRuntime(This) \ ( (This)->lpVtbl -> SuspendRuntime(This) ) #define ICorProfilerInfo10_ResumeRuntime(This) \ ( (This)->lpVtbl -> ResumeRuntime(This) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo10_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo11_INTERFACE_DEFINED__ #define __ICorProfilerInfo11_INTERFACE_DEFINED__ /* interface ICorProfilerInfo11 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo11; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("06398876-8987-4154-B621-40A00D6E4D04") ICorProfilerInfo11 : public ICorProfilerInfo10 { public: virtual HRESULT STDMETHODCALLTYPE GetEnvironmentVariable( /* [string][in] */ const WCHAR *szName, /* [in] */ ULONG cchValue, /* [out] */ ULONG *pcchValue, /* [annotation][out] */ _Out_writes_to_(cchValue, *pcchValue) WCHAR szValue[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE SetEnvironmentVariable( /* [string][in] */ const WCHAR *szName, /* [string][in] */ const WCHAR *szValue) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo11Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo11 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo11 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo11 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo11 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo11 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo11 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo11 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo11 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo11 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo11 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo11 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo11 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo11 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo11 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo11 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo11 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo11 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo11 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo11 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo11 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo11 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo11 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo11 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo11 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo11 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo11 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo11 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo11 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo11 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo11 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo11 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo11 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo11 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo11 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo11 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo11 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo11 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo11 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo11 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); HRESULT ( STDMETHODCALLTYPE *GetNativeCodeStartAddresses )( ICorProfilerInfo11 * This, FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping3 )( ICorProfilerInfo11 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo4 )( ICorProfilerInfo11 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *EnumerateObjectReferences )( ICorProfilerInfo11 * This, ObjectID objectId, ObjectReferenceCallback callback, void *clientData); HRESULT ( STDMETHODCALLTYPE *IsFrozenObject )( ICorProfilerInfo11 * This, ObjectID objectId, BOOL *pbFrozen); HRESULT ( STDMETHODCALLTYPE *GetLOHObjectSizeThreshold )( ICorProfilerInfo11 * This, DWORD *pThreshold); HRESULT ( STDMETHODCALLTYPE *RequestReJITWithInliners )( ICorProfilerInfo11 * This, /* [in] */ DWORD dwRejitFlags, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *SuspendRuntime )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *ResumeRuntime )( ICorProfilerInfo11 * This); HRESULT ( STDMETHODCALLTYPE *GetEnvironmentVariable )( ICorProfilerInfo11 * This, /* [string][in] */ const WCHAR *szName, /* [in] */ ULONG cchValue, /* [out] */ ULONG *pcchValue, /* [annotation][out] */ _Out_writes_to_(cchValue, *pcchValue) WCHAR szValue[ ]); HRESULT ( STDMETHODCALLTYPE *SetEnvironmentVariable )( ICorProfilerInfo11 * This, /* [string][in] */ const WCHAR *szName, /* [string][in] */ const WCHAR *szValue); END_INTERFACE } ICorProfilerInfo11Vtbl; interface ICorProfilerInfo11 { CONST_VTBL struct ICorProfilerInfo11Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo11_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo11_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo11_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo11_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo11_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo11_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo11_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo11_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo11_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo11_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo11_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo11_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo11_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo11_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo11_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo11_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo11_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo11_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo11_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo11_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo11_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo11_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo11_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo11_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo11_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo11_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo11_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo11_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo11_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo11_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo11_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo11_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo11_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo11_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo11_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo11_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo11_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo11_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo11_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo11_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo11_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo11_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo11_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo11_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo11_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo11_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo11_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo11_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo11_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo11_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo11_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo11_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo11_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo11_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo11_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo11_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo11_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo11_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo11_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo11_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo11_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo11_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo11_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo11_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo11_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo11_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo11_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo11_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo11_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo11_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo11_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo11_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo11_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo11_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo11_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo11_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo11_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo11_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo11_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo11_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo11_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo11_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo11_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo11_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo11_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo11_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo11_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo11_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo11_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo11_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #define ICorProfilerInfo11_GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) \ ( (This)->lpVtbl -> GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) ) #define ICorProfilerInfo11_GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) ) #define ICorProfilerInfo11_GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo11_EnumerateObjectReferences(This,objectId,callback,clientData) \ ( (This)->lpVtbl -> EnumerateObjectReferences(This,objectId,callback,clientData) ) #define ICorProfilerInfo11_IsFrozenObject(This,objectId,pbFrozen) \ ( (This)->lpVtbl -> IsFrozenObject(This,objectId,pbFrozen) ) #define ICorProfilerInfo11_GetLOHObjectSizeThreshold(This,pThreshold) \ ( (This)->lpVtbl -> GetLOHObjectSizeThreshold(This,pThreshold) ) #define ICorProfilerInfo11_RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo11_SuspendRuntime(This) \ ( (This)->lpVtbl -> SuspendRuntime(This) ) #define ICorProfilerInfo11_ResumeRuntime(This) \ ( (This)->lpVtbl -> ResumeRuntime(This) ) #define ICorProfilerInfo11_GetEnvironmentVariable(This,szName,cchValue,pcchValue,szValue) \ ( (This)->lpVtbl -> GetEnvironmentVariable(This,szName,cchValue,pcchValue,szValue) ) #define ICorProfilerInfo11_SetEnvironmentVariable(This,szName,szValue) \ ( (This)->lpVtbl -> SetEnvironmentVariable(This,szName,szValue) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo11_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerInfo12_INTERFACE_DEFINED__ #define __ICorProfilerInfo12_INTERFACE_DEFINED__ /* interface ICorProfilerInfo12 */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerInfo12; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("27b24ccd-1cb1-47c5-96ee-98190dc30959") ICorProfilerInfo12 : public ICorProfilerInfo11 { public: virtual HRESULT STDMETHODCALLTYPE EventPipeStartSession( /* [in] */ UINT32 cProviderConfigs, /* [size_is][in] */ COR_PRF_EVENTPIPE_PROVIDER_CONFIG pProviderConfigs[ ], /* [in] */ BOOL requestRundown, /* [out] */ EVENTPIPE_SESSION *pSession) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeAddProviderToSession( /* [in] */ EVENTPIPE_SESSION session, /* [in] */ COR_PRF_EVENTPIPE_PROVIDER_CONFIG providerConfig) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeStopSession( /* [in] */ EVENTPIPE_SESSION session) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeCreateProvider( /* [string][in] */ const WCHAR *providerName, /* [out] */ EVENTPIPE_PROVIDER *pProvider) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeGetProviderInfo( /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR providerName[ ]) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeDefineEvent( /* [in] */ EVENTPIPE_PROVIDER provider, /* [string][in] */ const WCHAR *eventName, /* [in] */ UINT32 eventID, /* [in] */ UINT64 keywords, /* [in] */ UINT32 eventVersion, /* [in] */ UINT32 level, /* [in] */ UINT8 opcode, /* [in] */ BOOL needStack, /* [in] */ UINT32 cParamDescs, /* [size_is][in] */ COR_PRF_EVENTPIPE_PARAM_DESC pParamDescs[ ], /* [out] */ EVENTPIPE_EVENT *pEvent) = 0; virtual HRESULT STDMETHODCALLTYPE EventPipeWriteEvent( /* [in] */ EVENTPIPE_EVENT event, /* [in] */ UINT32 cData, /* [size_is][in] */ COR_PRF_EVENT_DATA data[ ], /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId) = 0; }; #else /* C style interface */ typedef struct ICorProfilerInfo12Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerInfo12 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerInfo12 * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *GetClassFromObject )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetClassFromToken )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdTypeDef typeDef, /* [out] */ ClassID *pClassId); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [out] */ LPCBYTE *pStart, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask )( ICorProfilerInfo12 * This, /* [out] */ DWORD *pdwEvents); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP )( ICorProfilerInfo12 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromToken )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdToken token, /* [out] */ FunctionID *pFunctionId); HRESULT ( STDMETHODCALLTYPE *GetHandleFromThread )( ICorProfilerInfo12 * This, /* [in] */ ThreadID threadId, /* [out] */ HANDLE *phThread); HRESULT ( STDMETHODCALLTYPE *GetObjectSize )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [out] */ ULONG *pcSize); HRESULT ( STDMETHODCALLTYPE *IsArrayClass )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [out] */ CorElementType *pBaseElemType, /* [out] */ ClassID *pBaseClassId, /* [out] */ ULONG *pcRank); HRESULT ( STDMETHODCALLTYPE *GetThreadInfo )( ICorProfilerInfo12 * This, /* [in] */ ThreadID threadId, /* [out] */ DWORD *pdwWin32ThreadId); HRESULT ( STDMETHODCALLTYPE *GetCurrentThreadID )( ICorProfilerInfo12 * This, /* [out] */ ThreadID *pThreadId); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *SetEventMask )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwEvents); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks )( ICorProfilerInfo12 * This, /* [in] */ FunctionEnter *pFuncEnter, /* [in] */ FunctionLeave *pFuncLeave, /* [in] */ FunctionTailcall *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper )( ICorProfilerInfo12 * This, /* [in] */ FunctionIDMapper *pFunc); HRESULT ( STDMETHODCALLTYPE *GetTokenAndMetaDataFromFunction )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppImport, /* [out] */ mdToken *pToken); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId); HRESULT ( STDMETHODCALLTYPE *GetModuleMetaData )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD dwOpenFlags, /* [in] */ REFIID riid, /* [out] */ IUnknown **ppOut); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBody )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodId, /* [out] */ LPCBYTE *ppMethodHeader, /* [out] */ ULONG *pcbMethodSize); HRESULT ( STDMETHODCALLTYPE *GetILFunctionBodyAllocator )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [out] */ IMethodMalloc **ppMalloc); HRESULT ( STDMETHODCALLTYPE *SetILFunctionBody )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ mdMethodDef methodid, /* [in] */ LPCBYTE pbNewILMethodHeader); HRESULT ( STDMETHODCALLTYPE *GetAppDomainInfo )( ICorProfilerInfo12 * This, /* [in] */ AppDomainID appDomainId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ ProcessID *pProcessId); HRESULT ( STDMETHODCALLTYPE *GetAssemblyInfo )( ICorProfilerInfo12 * This, /* [in] */ AssemblyID assemblyId, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AppDomainID *pAppDomainId, /* [out] */ ModuleID *pModuleId); HRESULT ( STDMETHODCALLTYPE *SetFunctionReJIT )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId); HRESULT ( STDMETHODCALLTYPE *ForceGC )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *SetILInstrumentedCodeMap )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ BOOL fStartJit, /* [in] */ ULONG cILMapEntries, /* [size_is][in] */ COR_IL_MAP rgILMapEntries[ ]); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionInterface )( ICorProfilerInfo12 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetInprocInspectionIThisThread )( ICorProfilerInfo12 * This, /* [out] */ IUnknown **ppicd); HRESULT ( STDMETHODCALLTYPE *GetThreadContext )( ICorProfilerInfo12 * This, /* [in] */ ThreadID threadId, /* [out] */ ContextID *pContextId); HRESULT ( STDMETHODCALLTYPE *BeginInprocDebugging )( ICorProfilerInfo12 * This, /* [in] */ BOOL fThisThreadOnly, /* [out] */ DWORD *pdwProfilerContext); HRESULT ( STDMETHODCALLTYPE *EndInprocDebugging )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwProfilerContext); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *DoStackSnapshot )( ICorProfilerInfo12 * This, /* [in] */ ThreadID thread, /* [in] */ StackSnapshotCallback *callback, /* [in] */ ULONG32 infoFlags, /* [in] */ void *clientData, /* [size_is][in] */ BYTE context[ ], /* [in] */ ULONG32 contextSize); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionEnter2 *pFuncEnter, /* [in] */ FunctionLeave2 *pFuncLeave, /* [in] */ FunctionTailcall2 *pFuncTailcall); HRESULT ( STDMETHODCALLTYPE *GetFunctionInfo2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionID funcId, /* [in] */ COR_PRF_FRAME_INFO frameInfo, /* [out] */ ClassID *pClassId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdToken *pToken, /* [in] */ ULONG32 cTypeArgs, /* [out] */ ULONG32 *pcTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetStringLayout )( ICorProfilerInfo12 * This, /* [out] */ ULONG *pBufferLengthOffset, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetClassLayout )( ICorProfilerInfo12 * This, /* [in] */ ClassID classID, /* [out][in] */ COR_FIELD_OFFSET rFieldOffset[ ], /* [in] */ ULONG cFieldOffset, /* [out] */ ULONG *pcFieldOffset, /* [out] */ ULONG *pulClassSize); HRESULT ( STDMETHODCALLTYPE *GetClassIDInfo2 )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [out] */ ModuleID *pModuleId, /* [out] */ mdTypeDef *pTypeDefToken, /* [out] */ ClassID *pParentClassId, /* [in] */ ULONG32 cNumTypeArgs, /* [out] */ ULONG32 *pcNumTypeArgs, /* [out] */ ClassID typeArgs[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionID, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetClassFromTokenAndTypeArgs )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdTypeDef typeDef, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ ClassID *pClassID); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromTokenAndTypeArgs )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleID, /* [in] */ mdMethodDef funcDef, /* [in] */ ClassID classId, /* [in] */ ULONG32 cTypeArgs, /* [size_is][in] */ ClassID typeArgs[ ], /* [out] */ FunctionID *pFunctionID); HRESULT ( STDMETHODCALLTYPE *EnumModuleFrozenObjects )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleID, /* [out] */ ICorProfilerObjectEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetArrayObjectInfo )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [in] */ ULONG32 cDimensions, /* [size_is][out] */ ULONG32 pDimensionSizes[ ], /* [size_is][out] */ int pDimensionLowerBounds[ ], /* [out] */ BYTE **ppData); HRESULT ( STDMETHODCALLTYPE *GetBoxClassLayout )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [out] */ ULONG32 *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *GetThreadAppDomain )( ICorProfilerInfo12 * This, /* [in] */ ThreadID threadId, /* [out] */ AppDomainID *pAppDomainId); HRESULT ( STDMETHODCALLTYPE *GetRVAStaticAddress )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainStaticAddress )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetContextStaticAddress )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ ContextID contextId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetStaticFieldInfo )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [out] */ COR_PRF_STATIC_TYPE *pFieldInfo); HRESULT ( STDMETHODCALLTYPE *GetGenerationBounds )( ICorProfilerInfo12 * This, /* [in] */ ULONG cObjectRanges, /* [out] */ ULONG *pcObjectRanges, /* [length_is][size_is][out] */ COR_PRF_GC_GENERATION_RANGE ranges[ ]); HRESULT ( STDMETHODCALLTYPE *GetObjectGeneration )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [out] */ COR_PRF_GC_GENERATION_RANGE *range); HRESULT ( STDMETHODCALLTYPE *GetNotifiedExceptionClauseInfo )( ICorProfilerInfo12 * This, /* [out] */ COR_PRF_EX_CLAUSE_INFO *pinfo); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions )( ICorProfilerInfo12 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *RequestProfilerDetach )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwExpectedCompletionMilliseconds); HRESULT ( STDMETHODCALLTYPE *SetFunctionIDMapper2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionIDMapper2 *pFunc, /* [in] */ void *clientData); HRESULT ( STDMETHODCALLTYPE *GetStringLayout2 )( ICorProfilerInfo12 * This, /* [out] */ ULONG *pStringLengthOffset, /* [out] */ ULONG *pBufferOffset); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3 )( ICorProfilerInfo12 * This, /* [in] */ FunctionEnter3 *pFuncEnter3, /* [in] */ FunctionLeave3 *pFuncLeave3, /* [in] */ FunctionTailcall3 *pFuncTailcall3); HRESULT ( STDMETHODCALLTYPE *SetEnterLeaveFunctionHooks3WithInfo )( ICorProfilerInfo12 * This, /* [in] */ FunctionEnter3WithInfo *pFuncEnter3WithInfo, /* [in] */ FunctionLeave3WithInfo *pFuncLeave3WithInfo, /* [in] */ FunctionTailcall3WithInfo *pFuncTailcall3WithInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionEnter3Info )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out][in] */ ULONG *pcbArgumentInfo, /* [size_is][out] */ COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo); HRESULT ( STDMETHODCALLTYPE *GetFunctionLeave3Info )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo, /* [out] */ COR_PRF_FUNCTION_ARGUMENT_RANGE *pRetvalRange); HRESULT ( STDMETHODCALLTYPE *GetFunctionTailcall3Info )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ COR_PRF_ELT_INFO eltInfo, /* [out] */ COR_PRF_FRAME_INFO *pFrameInfo); HRESULT ( STDMETHODCALLTYPE *EnumModules )( ICorProfilerInfo12 * This, /* [out] */ ICorProfilerModuleEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetRuntimeInformation )( ICorProfilerInfo12 * This, /* [out] */ USHORT *pClrInstanceId, /* [out] */ COR_PRF_RUNTIME_TYPE *pRuntimeType, /* [out] */ USHORT *pMajorVersion, /* [out] */ USHORT *pMinorVersion, /* [out] */ USHORT *pBuildNumber, /* [out] */ USHORT *pQFEVersion, /* [in] */ ULONG cchVersionString, /* [out] */ ULONG *pcchVersionString, /* [annotation][out] */ _Out_writes_to_(cchVersionString, *pcchVersionString) WCHAR szVersionString[ ]); HRESULT ( STDMETHODCALLTYPE *GetThreadStaticAddress2 )( ICorProfilerInfo12 * This, /* [in] */ ClassID classId, /* [in] */ mdFieldDef fieldToken, /* [in] */ AppDomainID appDomainId, /* [in] */ ThreadID threadId, /* [out] */ void **ppAddress); HRESULT ( STDMETHODCALLTYPE *GetAppDomainsContainingModule )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ ULONG32 cAppDomainIds, /* [out] */ ULONG32 *pcAppDomainIds, /* [length_is][size_is][out] */ AppDomainID appDomainIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetModuleInfo2 )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [out] */ LPCBYTE *ppBaseLoadAddress, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR szName[ ], /* [out] */ AssemblyID *pAssemblyId, /* [out] */ DWORD *pdwModuleFlags); HRESULT ( STDMETHODCALLTYPE *EnumThreads )( ICorProfilerInfo12 * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *InitializeCurrentThread )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *RequestReJIT )( ICorProfilerInfo12 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *RequestRevert )( ICorProfilerInfo12 * This, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ], /* [size_is][out] */ HRESULT status[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo3 )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionID, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cCodeInfos, /* [out] */ ULONG32 *pcCodeInfos, /* [length_is][size_is][out] */ COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP2 )( ICorProfilerInfo12 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *pFunctionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetReJITIDs )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ ULONG cReJitIds, /* [out] */ ULONG *pcReJitIds, /* [length_is][size_is][out] */ ReJITID reJitIds[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping2 )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [in] */ ReJITID reJitId, /* [in] */ ULONG32 cMap, /* [out] */ ULONG32 *pcMap, /* [length_is][size_is][out] */ COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *EnumJITedFunctions2 )( ICorProfilerInfo12 * This, /* [out] */ ICorProfilerFunctionEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetObjectSize2 )( ICorProfilerInfo12 * This, /* [in] */ ObjectID objectId, /* [out] */ SIZE_T *pcSize); HRESULT ( STDMETHODCALLTYPE *GetEventMask2 )( ICorProfilerInfo12 * This, /* [out] */ DWORD *pdwEventsLow, /* [out] */ DWORD *pdwEventsHigh); HRESULT ( STDMETHODCALLTYPE *SetEventMask2 )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwEventsLow, /* [in] */ DWORD dwEventsHigh); HRESULT ( STDMETHODCALLTYPE *EnumNgenModuleMethodsInliningThisMethod )( ICorProfilerInfo12 * This, /* [in] */ ModuleID inlinersModuleId, /* [in] */ ModuleID inlineeModuleId, /* [in] */ mdMethodDef inlineeMethodId, /* [out] */ BOOL *incompleteData, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *ApplyMetaData )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId); HRESULT ( STDMETHODCALLTYPE *GetInMemorySymbolsLength )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [out] */ DWORD *pCountSymbolBytes); HRESULT ( STDMETHODCALLTYPE *ReadInMemorySymbols )( ICorProfilerInfo12 * This, /* [in] */ ModuleID moduleId, /* [in] */ DWORD symbolsReadOffset, /* [out] */ BYTE *pSymbolBytes, /* [in] */ DWORD countSymbolBytes, /* [out] */ DWORD *pCountSymbolBytesRead); HRESULT ( STDMETHODCALLTYPE *IsFunctionDynamic )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [out] */ BOOL *isDynamic); HRESULT ( STDMETHODCALLTYPE *GetFunctionFromIP3 )( ICorProfilerInfo12 * This, /* [in] */ LPCBYTE ip, /* [out] */ FunctionID *functionId, /* [out] */ ReJITID *pReJitId); HRESULT ( STDMETHODCALLTYPE *GetDynamicFunctionInfo )( ICorProfilerInfo12 * This, /* [in] */ FunctionID functionId, /* [out] */ ModuleID *moduleId, /* [out] */ PCCOR_SIGNATURE *ppvSig, /* [out] */ ULONG *pbSig, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [out] */ WCHAR wszName[ ]); HRESULT ( STDMETHODCALLTYPE *GetNativeCodeStartAddresses )( ICorProfilerInfo12 * This, FunctionID functionID, ReJITID reJitId, ULONG32 cCodeStartAddresses, ULONG32 *pcCodeStartAddresses, UINT_PTR codeStartAddresses[ ]); HRESULT ( STDMETHODCALLTYPE *GetILToNativeMapping3 )( ICorProfilerInfo12 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cMap, ULONG32 *pcMap, COR_DEBUG_IL_TO_NATIVE_MAP map[ ]); HRESULT ( STDMETHODCALLTYPE *GetCodeInfo4 )( ICorProfilerInfo12 * This, UINT_PTR pNativeCodeStartAddress, ULONG32 cCodeInfos, ULONG32 *pcCodeInfos, COR_PRF_CODE_INFO codeInfos[ ]); HRESULT ( STDMETHODCALLTYPE *EnumerateObjectReferences )( ICorProfilerInfo12 * This, ObjectID objectId, ObjectReferenceCallback callback, void *clientData); HRESULT ( STDMETHODCALLTYPE *IsFrozenObject )( ICorProfilerInfo12 * This, ObjectID objectId, BOOL *pbFrozen); HRESULT ( STDMETHODCALLTYPE *GetLOHObjectSizeThreshold )( ICorProfilerInfo12 * This, DWORD *pThreshold); HRESULT ( STDMETHODCALLTYPE *RequestReJITWithInliners )( ICorProfilerInfo12 * This, /* [in] */ DWORD dwRejitFlags, /* [in] */ ULONG cFunctions, /* [size_is][in] */ ModuleID moduleIds[ ], /* [size_is][in] */ mdMethodDef methodIds[ ]); HRESULT ( STDMETHODCALLTYPE *SuspendRuntime )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *ResumeRuntime )( ICorProfilerInfo12 * This); HRESULT ( STDMETHODCALLTYPE *GetEnvironmentVariable )( ICorProfilerInfo12 * This, /* [string][in] */ const WCHAR *szName, /* [in] */ ULONG cchValue, /* [out] */ ULONG *pcchValue, /* [annotation][out] */ _Out_writes_to_(cchValue, *pcchValue) WCHAR szValue[ ]); HRESULT ( STDMETHODCALLTYPE *SetEnvironmentVariable )( ICorProfilerInfo12 * This, /* [string][in] */ const WCHAR *szName, /* [string][in] */ const WCHAR *szValue); HRESULT ( STDMETHODCALLTYPE *EventPipeStartSession )( ICorProfilerInfo12 * This, /* [in] */ UINT32 cProviderConfigs, /* [size_is][in] */ COR_PRF_EVENTPIPE_PROVIDER_CONFIG pProviderConfigs[ ], /* [in] */ BOOL requestRundown, /* [out] */ EVENTPIPE_SESSION *pSession); HRESULT ( STDMETHODCALLTYPE *EventPipeAddProviderToSession )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_SESSION session, /* [in] */ COR_PRF_EVENTPIPE_PROVIDER_CONFIG providerConfig); HRESULT ( STDMETHODCALLTYPE *EventPipeStopSession )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_SESSION session); HRESULT ( STDMETHODCALLTYPE *EventPipeCreateProvider )( ICorProfilerInfo12 * This, /* [string][in] */ const WCHAR *providerName, /* [out] */ EVENTPIPE_PROVIDER *pProvider); HRESULT ( STDMETHODCALLTYPE *EventPipeGetProviderInfo )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_PROVIDER provider, /* [in] */ ULONG cchName, /* [out] */ ULONG *pcchName, /* [annotation][out] */ _Out_writes_to_(cchName, *pcchName) WCHAR providerName[ ]); HRESULT ( STDMETHODCALLTYPE *EventPipeDefineEvent )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_PROVIDER provider, /* [string][in] */ const WCHAR *eventName, /* [in] */ UINT32 eventID, /* [in] */ UINT64 keywords, /* [in] */ UINT32 eventVersion, /* [in] */ UINT32 level, /* [in] */ UINT8 opcode, /* [in] */ BOOL needStack, /* [in] */ UINT32 cParamDescs, /* [size_is][in] */ COR_PRF_EVENTPIPE_PARAM_DESC pParamDescs[ ], /* [out] */ EVENTPIPE_EVENT *pEvent); HRESULT ( STDMETHODCALLTYPE *EventPipeWriteEvent )( ICorProfilerInfo12 * This, /* [in] */ EVENTPIPE_EVENT event, /* [in] */ UINT32 cData, /* [size_is][in] */ COR_PRF_EVENT_DATA data[ ], /* [in] */ LPCGUID pActivityId, /* [in] */ LPCGUID pRelatedActivityId); END_INTERFACE } ICorProfilerInfo12Vtbl; interface ICorProfilerInfo12 { CONST_VTBL struct ICorProfilerInfo12Vtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerInfo12_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerInfo12_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerInfo12_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerInfo12_GetClassFromObject(This,objectId,pClassId) \ ( (This)->lpVtbl -> GetClassFromObject(This,objectId,pClassId) ) #define ICorProfilerInfo12_GetClassFromToken(This,moduleId,typeDef,pClassId) \ ( (This)->lpVtbl -> GetClassFromToken(This,moduleId,typeDef,pClassId) ) #define ICorProfilerInfo12_GetCodeInfo(This,functionId,pStart,pcSize) \ ( (This)->lpVtbl -> GetCodeInfo(This,functionId,pStart,pcSize) ) #define ICorProfilerInfo12_GetEventMask(This,pdwEvents) \ ( (This)->lpVtbl -> GetEventMask(This,pdwEvents) ) #define ICorProfilerInfo12_GetFunctionFromIP(This,ip,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromIP(This,ip,pFunctionId) ) #define ICorProfilerInfo12_GetFunctionFromToken(This,moduleId,token,pFunctionId) \ ( (This)->lpVtbl -> GetFunctionFromToken(This,moduleId,token,pFunctionId) ) #define ICorProfilerInfo12_GetHandleFromThread(This,threadId,phThread) \ ( (This)->lpVtbl -> GetHandleFromThread(This,threadId,phThread) ) #define ICorProfilerInfo12_GetObjectSize(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize(This,objectId,pcSize) ) #define ICorProfilerInfo12_IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) \ ( (This)->lpVtbl -> IsArrayClass(This,classId,pBaseElemType,pBaseClassId,pcRank) ) #define ICorProfilerInfo12_GetThreadInfo(This,threadId,pdwWin32ThreadId) \ ( (This)->lpVtbl -> GetThreadInfo(This,threadId,pdwWin32ThreadId) ) #define ICorProfilerInfo12_GetCurrentThreadID(This,pThreadId) \ ( (This)->lpVtbl -> GetCurrentThreadID(This,pThreadId) ) #define ICorProfilerInfo12_GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) \ ( (This)->lpVtbl -> GetClassIDInfo(This,classId,pModuleId,pTypeDefToken) ) #define ICorProfilerInfo12_GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) \ ( (This)->lpVtbl -> GetFunctionInfo(This,functionId,pClassId,pModuleId,pToken) ) #define ICorProfilerInfo12_SetEventMask(This,dwEvents) \ ( (This)->lpVtbl -> SetEventMask(This,dwEvents) ) #define ICorProfilerInfo12_SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo12_SetFunctionIDMapper(This,pFunc) \ ( (This)->lpVtbl -> SetFunctionIDMapper(This,pFunc) ) #define ICorProfilerInfo12_GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) \ ( (This)->lpVtbl -> GetTokenAndMetaDataFromFunction(This,functionId,riid,ppImport,pToken) ) #define ICorProfilerInfo12_GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) \ ( (This)->lpVtbl -> GetModuleInfo(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId) ) #define ICorProfilerInfo12_GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) \ ( (This)->lpVtbl -> GetModuleMetaData(This,moduleId,dwOpenFlags,riid,ppOut) ) #define ICorProfilerInfo12_GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) \ ( (This)->lpVtbl -> GetILFunctionBody(This,moduleId,methodId,ppMethodHeader,pcbMethodSize) ) #define ICorProfilerInfo12_GetILFunctionBodyAllocator(This,moduleId,ppMalloc) \ ( (This)->lpVtbl -> GetILFunctionBodyAllocator(This,moduleId,ppMalloc) ) #define ICorProfilerInfo12_SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) \ ( (This)->lpVtbl -> SetILFunctionBody(This,moduleId,methodid,pbNewILMethodHeader) ) #define ICorProfilerInfo12_GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) \ ( (This)->lpVtbl -> GetAppDomainInfo(This,appDomainId,cchName,pcchName,szName,pProcessId) ) #define ICorProfilerInfo12_GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) \ ( (This)->lpVtbl -> GetAssemblyInfo(This,assemblyId,cchName,pcchName,szName,pAppDomainId,pModuleId) ) #define ICorProfilerInfo12_SetFunctionReJIT(This,functionId) \ ( (This)->lpVtbl -> SetFunctionReJIT(This,functionId) ) #define ICorProfilerInfo12_ForceGC(This) \ ( (This)->lpVtbl -> ForceGC(This) ) #define ICorProfilerInfo12_SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) \ ( (This)->lpVtbl -> SetILInstrumentedCodeMap(This,functionId,fStartJit,cILMapEntries,rgILMapEntries) ) #define ICorProfilerInfo12_GetInprocInspectionInterface(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionInterface(This,ppicd) ) #define ICorProfilerInfo12_GetInprocInspectionIThisThread(This,ppicd) \ ( (This)->lpVtbl -> GetInprocInspectionIThisThread(This,ppicd) ) #define ICorProfilerInfo12_GetThreadContext(This,threadId,pContextId) \ ( (This)->lpVtbl -> GetThreadContext(This,threadId,pContextId) ) #define ICorProfilerInfo12_BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) \ ( (This)->lpVtbl -> BeginInprocDebugging(This,fThisThreadOnly,pdwProfilerContext) ) #define ICorProfilerInfo12_EndInprocDebugging(This,dwProfilerContext) \ ( (This)->lpVtbl -> EndInprocDebugging(This,dwProfilerContext) ) #define ICorProfilerInfo12_GetILToNativeMapping(This,functionId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping(This,functionId,cMap,pcMap,map) ) #define ICorProfilerInfo12_DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) \ ( (This)->lpVtbl -> DoStackSnapshot(This,thread,callback,infoFlags,clientData,context,contextSize) ) #define ICorProfilerInfo12_SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks2(This,pFuncEnter,pFuncLeave,pFuncTailcall) ) #define ICorProfilerInfo12_GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetFunctionInfo2(This,funcId,frameInfo,pClassId,pModuleId,pToken,cTypeArgs,pcTypeArgs,typeArgs) ) #define ICorProfilerInfo12_GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout(This,pBufferLengthOffset,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo12_GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) \ ( (This)->lpVtbl -> GetClassLayout(This,classID,rFieldOffset,cFieldOffset,pcFieldOffset,pulClassSize) ) #define ICorProfilerInfo12_GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) \ ( (This)->lpVtbl -> GetClassIDInfo2(This,classId,pModuleId,pTypeDefToken,pParentClassId,cNumTypeArgs,pcNumTypeArgs,typeArgs) ) #define ICorProfilerInfo12_GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo2(This,functionID,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo12_GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) \ ( (This)->lpVtbl -> GetClassFromTokenAndTypeArgs(This,moduleID,typeDef,cTypeArgs,typeArgs,pClassID) ) #define ICorProfilerInfo12_GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) \ ( (This)->lpVtbl -> GetFunctionFromTokenAndTypeArgs(This,moduleID,funcDef,classId,cTypeArgs,typeArgs,pFunctionID) ) #define ICorProfilerInfo12_EnumModuleFrozenObjects(This,moduleID,ppEnum) \ ( (This)->lpVtbl -> EnumModuleFrozenObjects(This,moduleID,ppEnum) ) #define ICorProfilerInfo12_GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) \ ( (This)->lpVtbl -> GetArrayObjectInfo(This,objectId,cDimensions,pDimensionSizes,pDimensionLowerBounds,ppData) ) #define ICorProfilerInfo12_GetBoxClassLayout(This,classId,pBufferOffset) \ ( (This)->lpVtbl -> GetBoxClassLayout(This,classId,pBufferOffset) ) #define ICorProfilerInfo12_GetThreadAppDomain(This,threadId,pAppDomainId) \ ( (This)->lpVtbl -> GetThreadAppDomain(This,threadId,pAppDomainId) ) #define ICorProfilerInfo12_GetRVAStaticAddress(This,classId,fieldToken,ppAddress) \ ( (This)->lpVtbl -> GetRVAStaticAddress(This,classId,fieldToken,ppAddress) ) #define ICorProfilerInfo12_GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) \ ( (This)->lpVtbl -> GetAppDomainStaticAddress(This,classId,fieldToken,appDomainId,ppAddress) ) #define ICorProfilerInfo12_GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress(This,classId,fieldToken,threadId,ppAddress) ) #define ICorProfilerInfo12_GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) \ ( (This)->lpVtbl -> GetContextStaticAddress(This,classId,fieldToken,contextId,ppAddress) ) #define ICorProfilerInfo12_GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) \ ( (This)->lpVtbl -> GetStaticFieldInfo(This,classId,fieldToken,pFieldInfo) ) #define ICorProfilerInfo12_GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) \ ( (This)->lpVtbl -> GetGenerationBounds(This,cObjectRanges,pcObjectRanges,ranges) ) #define ICorProfilerInfo12_GetObjectGeneration(This,objectId,range) \ ( (This)->lpVtbl -> GetObjectGeneration(This,objectId,range) ) #define ICorProfilerInfo12_GetNotifiedExceptionClauseInfo(This,pinfo) \ ( (This)->lpVtbl -> GetNotifiedExceptionClauseInfo(This,pinfo) ) #define ICorProfilerInfo12_EnumJITedFunctions(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions(This,ppEnum) ) #define ICorProfilerInfo12_RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) \ ( (This)->lpVtbl -> RequestProfilerDetach(This,dwExpectedCompletionMilliseconds) ) #define ICorProfilerInfo12_SetFunctionIDMapper2(This,pFunc,clientData) \ ( (This)->lpVtbl -> SetFunctionIDMapper2(This,pFunc,clientData) ) #define ICorProfilerInfo12_GetStringLayout2(This,pStringLengthOffset,pBufferOffset) \ ( (This)->lpVtbl -> GetStringLayout2(This,pStringLengthOffset,pBufferOffset) ) #define ICorProfilerInfo12_SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3(This,pFuncEnter3,pFuncLeave3,pFuncTailcall3) ) #define ICorProfilerInfo12_SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) \ ( (This)->lpVtbl -> SetEnterLeaveFunctionHooks3WithInfo(This,pFuncEnter3WithInfo,pFuncLeave3WithInfo,pFuncTailcall3WithInfo) ) #define ICorProfilerInfo12_GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) \ ( (This)->lpVtbl -> GetFunctionEnter3Info(This,functionId,eltInfo,pFrameInfo,pcbArgumentInfo,pArgumentInfo) ) #define ICorProfilerInfo12_GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) \ ( (This)->lpVtbl -> GetFunctionLeave3Info(This,functionId,eltInfo,pFrameInfo,pRetvalRange) ) #define ICorProfilerInfo12_GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) \ ( (This)->lpVtbl -> GetFunctionTailcall3Info(This,functionId,eltInfo,pFrameInfo) ) #define ICorProfilerInfo12_EnumModules(This,ppEnum) \ ( (This)->lpVtbl -> EnumModules(This,ppEnum) ) #define ICorProfilerInfo12_GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) \ ( (This)->lpVtbl -> GetRuntimeInformation(This,pClrInstanceId,pRuntimeType,pMajorVersion,pMinorVersion,pBuildNumber,pQFEVersion,cchVersionString,pcchVersionString,szVersionString) ) #define ICorProfilerInfo12_GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) \ ( (This)->lpVtbl -> GetThreadStaticAddress2(This,classId,fieldToken,appDomainId,threadId,ppAddress) ) #define ICorProfilerInfo12_GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) \ ( (This)->lpVtbl -> GetAppDomainsContainingModule(This,moduleId,cAppDomainIds,pcAppDomainIds,appDomainIds) ) #define ICorProfilerInfo12_GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) \ ( (This)->lpVtbl -> GetModuleInfo2(This,moduleId,ppBaseLoadAddress,cchName,pcchName,szName,pAssemblyId,pdwModuleFlags) ) #define ICorProfilerInfo12_EnumThreads(This,ppEnum) \ ( (This)->lpVtbl -> EnumThreads(This,ppEnum) ) #define ICorProfilerInfo12_InitializeCurrentThread(This) \ ( (This)->lpVtbl -> InitializeCurrentThread(This) ) #define ICorProfilerInfo12_RequestReJIT(This,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJIT(This,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo12_RequestRevert(This,cFunctions,moduleIds,methodIds,status) \ ( (This)->lpVtbl -> RequestRevert(This,cFunctions,moduleIds,methodIds,status) ) #define ICorProfilerInfo12_GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo3(This,functionID,reJitId,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo12_GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP2(This,ip,pFunctionId,pReJitId) ) #define ICorProfilerInfo12_GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) \ ( (This)->lpVtbl -> GetReJITIDs(This,functionId,cReJitIds,pcReJitIds,reJitIds) ) #define ICorProfilerInfo12_GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping2(This,functionId,reJitId,cMap,pcMap,map) ) #define ICorProfilerInfo12_EnumJITedFunctions2(This,ppEnum) \ ( (This)->lpVtbl -> EnumJITedFunctions2(This,ppEnum) ) #define ICorProfilerInfo12_GetObjectSize2(This,objectId,pcSize) \ ( (This)->lpVtbl -> GetObjectSize2(This,objectId,pcSize) ) #define ICorProfilerInfo12_GetEventMask2(This,pdwEventsLow,pdwEventsHigh) \ ( (This)->lpVtbl -> GetEventMask2(This,pdwEventsLow,pdwEventsHigh) ) #define ICorProfilerInfo12_SetEventMask2(This,dwEventsLow,dwEventsHigh) \ ( (This)->lpVtbl -> SetEventMask2(This,dwEventsLow,dwEventsHigh) ) #define ICorProfilerInfo12_EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) \ ( (This)->lpVtbl -> EnumNgenModuleMethodsInliningThisMethod(This,inlinersModuleId,inlineeModuleId,inlineeMethodId,incompleteData,ppEnum) ) #define ICorProfilerInfo12_ApplyMetaData(This,moduleId) \ ( (This)->lpVtbl -> ApplyMetaData(This,moduleId) ) #define ICorProfilerInfo12_GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) \ ( (This)->lpVtbl -> GetInMemorySymbolsLength(This,moduleId,pCountSymbolBytes) ) #define ICorProfilerInfo12_ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) \ ( (This)->lpVtbl -> ReadInMemorySymbols(This,moduleId,symbolsReadOffset,pSymbolBytes,countSymbolBytes,pCountSymbolBytesRead) ) #define ICorProfilerInfo12_IsFunctionDynamic(This,functionId,isDynamic) \ ( (This)->lpVtbl -> IsFunctionDynamic(This,functionId,isDynamic) ) #define ICorProfilerInfo12_GetFunctionFromIP3(This,ip,functionId,pReJitId) \ ( (This)->lpVtbl -> GetFunctionFromIP3(This,ip,functionId,pReJitId) ) #define ICorProfilerInfo12_GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) \ ( (This)->lpVtbl -> GetDynamicFunctionInfo(This,functionId,moduleId,ppvSig,pbSig,cchName,pcchName,wszName) ) #define ICorProfilerInfo12_GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) \ ( (This)->lpVtbl -> GetNativeCodeStartAddresses(This,functionID,reJitId,cCodeStartAddresses,pcCodeStartAddresses,codeStartAddresses) ) #define ICorProfilerInfo12_GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) \ ( (This)->lpVtbl -> GetILToNativeMapping3(This,pNativeCodeStartAddress,cMap,pcMap,map) ) #define ICorProfilerInfo12_GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) \ ( (This)->lpVtbl -> GetCodeInfo4(This,pNativeCodeStartAddress,cCodeInfos,pcCodeInfos,codeInfos) ) #define ICorProfilerInfo12_EnumerateObjectReferences(This,objectId,callback,clientData) \ ( (This)->lpVtbl -> EnumerateObjectReferences(This,objectId,callback,clientData) ) #define ICorProfilerInfo12_IsFrozenObject(This,objectId,pbFrozen) \ ( (This)->lpVtbl -> IsFrozenObject(This,objectId,pbFrozen) ) #define ICorProfilerInfo12_GetLOHObjectSizeThreshold(This,pThreshold) \ ( (This)->lpVtbl -> GetLOHObjectSizeThreshold(This,pThreshold) ) #define ICorProfilerInfo12_RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) \ ( (This)->lpVtbl -> RequestReJITWithInliners(This,dwRejitFlags,cFunctions,moduleIds,methodIds) ) #define ICorProfilerInfo12_SuspendRuntime(This) \ ( (This)->lpVtbl -> SuspendRuntime(This) ) #define ICorProfilerInfo12_ResumeRuntime(This) \ ( (This)->lpVtbl -> ResumeRuntime(This) ) #define ICorProfilerInfo12_GetEnvironmentVariable(This,szName,cchValue,pcchValue,szValue) \ ( (This)->lpVtbl -> GetEnvironmentVariable(This,szName,cchValue,pcchValue,szValue) ) #define ICorProfilerInfo12_SetEnvironmentVariable(This,szName,szValue) \ ( (This)->lpVtbl -> SetEnvironmentVariable(This,szName,szValue) ) #define ICorProfilerInfo12_EventPipeStartSession(This,cProviderConfigs,pProviderConfigs,requestRundown,pSession) \ ( (This)->lpVtbl -> EventPipeStartSession(This,cProviderConfigs,pProviderConfigs,requestRundown,pSession) ) #define ICorProfilerInfo12_EventPipeAddProviderToSession(This,session,providerConfig) \ ( (This)->lpVtbl -> EventPipeAddProviderToSession(This,session,providerConfig) ) #define ICorProfilerInfo12_EventPipeStopSession(This,session) \ ( (This)->lpVtbl -> EventPipeStopSession(This,session) ) #define ICorProfilerInfo12_EventPipeCreateProvider(This,providerName,pProvider) \ ( (This)->lpVtbl -> EventPipeCreateProvider(This,providerName,pProvider) ) #define ICorProfilerInfo12_EventPipeGetProviderInfo(This,provider,cchName,pcchName,providerName) \ ( (This)->lpVtbl -> EventPipeGetProviderInfo(This,provider,cchName,pcchName,providerName) ) #define ICorProfilerInfo12_EventPipeDefineEvent(This,provider,eventName,eventID,keywords,eventVersion,level,opcode,needStack,cParamDescs,pParamDescs,pEvent) \ ( (This)->lpVtbl -> EventPipeDefineEvent(This,provider,eventName,eventID,keywords,eventVersion,level,opcode,needStack,cParamDescs,pParamDescs,pEvent) ) #define ICorProfilerInfo12_EventPipeWriteEvent(This,event,cData,data,pActivityId,pRelatedActivityId) \ ( (This)->lpVtbl -> EventPipeWriteEvent(This,event,cData,data,pActivityId,pRelatedActivityId) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerInfo12_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerMethodEnum_INTERFACE_DEFINED__ #define __ICorProfilerMethodEnum_INTERFACE_DEFINED__ /* interface ICorProfilerMethodEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerMethodEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("FCCEE788-0088-454B-A811-C99F298D1942") ICorProfilerMethodEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerMethodEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ COR_PRF_METHOD elements[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerMethodEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerMethodEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerMethodEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerMethodEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerMethodEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerMethodEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerMethodEnum * This, /* [out] */ ICorProfilerMethodEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerMethodEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerMethodEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ COR_PRF_METHOD elements[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerMethodEnumVtbl; interface ICorProfilerMethodEnum { CONST_VTBL struct ICorProfilerMethodEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerMethodEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerMethodEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerMethodEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerMethodEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerMethodEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerMethodEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerMethodEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerMethodEnum_Next(This,celt,elements,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,elements,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerMethodEnum_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerThreadEnum_INTERFACE_DEFINED__ #define __ICorProfilerThreadEnum_INTERFACE_DEFINED__ /* interface ICorProfilerThreadEnum */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerThreadEnum; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("571194f7-25ed-419f-aa8b-7016b3159701") ICorProfilerThreadEnum : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt) = 0; virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0; virtual HRESULT STDMETHODCALLTYPE Clone( /* [out] */ ICorProfilerThreadEnum **ppEnum) = 0; virtual HRESULT STDMETHODCALLTYPE GetCount( /* [out] */ ULONG *pcelt) = 0; virtual HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ThreadID ids[ ], /* [out] */ ULONG *pceltFetched) = 0; }; #else /* C style interface */ typedef struct ICorProfilerThreadEnumVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerThreadEnum * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerThreadEnum * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerThreadEnum * This); HRESULT ( STDMETHODCALLTYPE *Skip )( ICorProfilerThreadEnum * This, /* [in] */ ULONG celt); HRESULT ( STDMETHODCALLTYPE *Reset )( ICorProfilerThreadEnum * This); HRESULT ( STDMETHODCALLTYPE *Clone )( ICorProfilerThreadEnum * This, /* [out] */ ICorProfilerThreadEnum **ppEnum); HRESULT ( STDMETHODCALLTYPE *GetCount )( ICorProfilerThreadEnum * This, /* [out] */ ULONG *pcelt); HRESULT ( STDMETHODCALLTYPE *Next )( ICorProfilerThreadEnum * This, /* [in] */ ULONG celt, /* [length_is][size_is][out] */ ThreadID ids[ ], /* [out] */ ULONG *pceltFetched); END_INTERFACE } ICorProfilerThreadEnumVtbl; interface ICorProfilerThreadEnum { CONST_VTBL struct ICorProfilerThreadEnumVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerThreadEnum_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerThreadEnum_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerThreadEnum_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerThreadEnum_Skip(This,celt) \ ( (This)->lpVtbl -> Skip(This,celt) ) #define ICorProfilerThreadEnum_Reset(This) \ ( (This)->lpVtbl -> Reset(This) ) #define ICorProfilerThreadEnum_Clone(This,ppEnum) \ ( (This)->lpVtbl -> Clone(This,ppEnum) ) #define ICorProfilerThreadEnum_GetCount(This,pcelt) \ ( (This)->lpVtbl -> GetCount(This,pcelt) ) #define ICorProfilerThreadEnum_Next(This,celt,ids,pceltFetched) \ ( (This)->lpVtbl -> Next(This,celt,ids,pceltFetched) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerThreadEnum_INTERFACE_DEFINED__ */ #ifndef __ICorProfilerAssemblyReferenceProvider_INTERFACE_DEFINED__ #define __ICorProfilerAssemblyReferenceProvider_INTERFACE_DEFINED__ /* interface ICorProfilerAssemblyReferenceProvider */ /* [local][unique][uuid][object] */ EXTERN_C const IID IID_ICorProfilerAssemblyReferenceProvider; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("66A78C24-2EEF-4F65-B45F-DD1D8038BF3C") ICorProfilerAssemblyReferenceProvider : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE AddAssemblyReference( const COR_PRF_ASSEMBLY_REFERENCE_INFO *pAssemblyRefInfo) = 0; }; #else /* C style interface */ typedef struct ICorProfilerAssemblyReferenceProviderVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( ICorProfilerAssemblyReferenceProvider * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( ICorProfilerAssemblyReferenceProvider * This); ULONG ( STDMETHODCALLTYPE *Release )( ICorProfilerAssemblyReferenceProvider * This); HRESULT ( STDMETHODCALLTYPE *AddAssemblyReference )( ICorProfilerAssemblyReferenceProvider * This, const COR_PRF_ASSEMBLY_REFERENCE_INFO *pAssemblyRefInfo); END_INTERFACE } ICorProfilerAssemblyReferenceProviderVtbl; interface ICorProfilerAssemblyReferenceProvider { CONST_VTBL struct ICorProfilerAssemblyReferenceProviderVtbl *lpVtbl; }; #ifdef COBJMACROS #define ICorProfilerAssemblyReferenceProvider_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define ICorProfilerAssemblyReferenceProvider_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define ICorProfilerAssemblyReferenceProvider_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define ICorProfilerAssemblyReferenceProvider_AddAssemblyReference(This,pAssemblyRefInfo) \ ( (This)->lpVtbl -> AddAssemblyReference(This,pAssemblyRefInfo) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __ICorProfilerAssemblyReferenceProvider_INTERFACE_DEFINED__ */ /* Additional Prototypes for ALL interfaces */ /* end of Additional Prototypes */ #ifdef __cplusplus } #endif #endif
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/tests/profiler/native/multiple/multiple.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "../profiler.h" class MultiplyLoaded : public Profiler { public: MultiplyLoaded() : Profiler() {} static GUID GetClsid(); virtual HRESULT STDMETHODCALLTYPE Initialize(IUnknown* pICorProfilerInfoUnk); virtual HRESULT STDMETHODCALLTYPE InitializeForAttach(IUnknown* pICorProfilerInfoUnk, void* pvClientData, UINT cbClientData); virtual HRESULT STDMETHODCALLTYPE Shutdown(); virtual HRESULT STDMETHODCALLTYPE LoadAsNotificationOnly(BOOL *pbNotificationOnly); virtual HRESULT STDMETHODCALLTYPE ProfilerDetachSucceeded(); virtual HRESULT STDMETHODCALLTYPE ExceptionThrown(ObjectID thrownObjectId); private: static std::atomic<int> _exceptionThrownSeenCount; static std::atomic<int> _detachCount; static std::atomic<int> _failures; HRESULT InitializeCommon(IUnknown* pCorProfilerInfoUnk); };
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "../profiler.h" class MultiplyLoaded : public Profiler { public: MultiplyLoaded() : Profiler() {} static GUID GetClsid(); virtual HRESULT STDMETHODCALLTYPE Initialize(IUnknown* pICorProfilerInfoUnk); virtual HRESULT STDMETHODCALLTYPE InitializeForAttach(IUnknown* pICorProfilerInfoUnk, void* pvClientData, UINT cbClientData); virtual HRESULT STDMETHODCALLTYPE Shutdown(); virtual HRESULT STDMETHODCALLTYPE LoadAsNotificationOnly(BOOL *pbNotificationOnly); virtual HRESULT STDMETHODCALLTYPE ProfilerDetachSucceeded(); virtual HRESULT STDMETHODCALLTYPE ExceptionThrown(ObjectID thrownObjectId); private: static std::atomic<int> _exceptionThrownSeenCount; static std::atomic<int> _detachCount; static std::atomic<int> _failures; HRESULT InitializeCommon(IUnknown* pCorProfilerInfoUnk); };
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/filemapping_memmgt/GetProcAddress/test2/testlib.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================= ** ** Source: testlib.c (filemapping_memmgt\getprocaddress\test2) ** ** Purpose: Create a simple library containing one function ** to test GetProcAddress ** ** **===========================================================================*/ #include "pal.h" #if WIN32 __declspec(dllexport) #endif /** * Simple function that returns i+1 */ int PALAPI SimpleFunction(int i) { return i+1; } #if WIN32 int PALAPI _DllMainCRTStartup(void *hinstDLL, int reason, void *lpvReserved) { return 1; } #endif
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================= ** ** Source: testlib.c (filemapping_memmgt\getprocaddress\test2) ** ** Purpose: Create a simple library containing one function ** to test GetProcAddress ** ** **===========================================================================*/ #include "pal.h" #if WIN32 __declspec(dllexport) #endif /** * Simple function that returns i+1 */ int PALAPI SimpleFunction(int i) { return i+1; } #if WIN32 int PALAPI _DllMainCRTStartup(void *hinstDLL, int reason, void *lpvReserved) { return 1; } #endif
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/mono/mono/metadata/coree-internals.h
/** * \file * Copyright 2016 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __MONO_COREE_INTERNALS_H__ #define __MONO_COREE_INTERNALS_H__ #include <config.h> #include <glib.h> #ifdef HOST_WIN32 #include <windows.h> BOOL STDMETHODCALLTYPE _CorDllMain (HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved); __int32 STDMETHODCALLTYPE _CorExeMain (void); void STDMETHODCALLTYPE CorExitProcess (int exitCode); STDAPI _CorValidateImage (PVOID *ImageBase, LPCWSTR FileName); STDAPI_(VOID) _CorImageUnloading (PVOID ImageBase); STDAPI CorBindToRuntimeEx (LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor, DWORD startupFlags, REFCLSID rclsid, REFIID riid, LPVOID FAR *ppv); STDAPI CorBindToRuntime (LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor, REFCLSID rclsid, REFIID riid, LPVOID FAR *ppv); HMODULE WINAPI MonoLoadImage (LPCWSTR FileName); void mono_coree_set_act_ctx (const char *file_name); #endif /* HOST_WIN32 */ #endif /* __MONO_COREE_INTERNALS_H__ */
/** * \file * Copyright 2016 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __MONO_COREE_INTERNALS_H__ #define __MONO_COREE_INTERNALS_H__ #include <config.h> #include <glib.h> #ifdef HOST_WIN32 #include <windows.h> BOOL STDMETHODCALLTYPE _CorDllMain (HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved); __int32 STDMETHODCALLTYPE _CorExeMain (void); void STDMETHODCALLTYPE CorExitProcess (int exitCode); STDAPI _CorValidateImage (PVOID *ImageBase, LPCWSTR FileName); STDAPI_(VOID) _CorImageUnloading (PVOID ImageBase); STDAPI CorBindToRuntimeEx (LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor, DWORD startupFlags, REFCLSID rclsid, REFIID riid, LPVOID FAR *ppv); STDAPI CorBindToRuntime (LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor, REFCLSID rclsid, REFIID riid, LPVOID FAR *ppv); HMODULE WINAPI MonoLoadImage (LPCWSTR FileName); void mono_coree_set_act_ctx (const char *file_name); #endif /* HOST_WIN32 */ #endif /* __MONO_COREE_INTERNALS_H__ */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/threading/NamedMutex/test1/nopal.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Contains wrappers for functions whose required headers conflict with the PAL #include <sys/file.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <minipal/utils.h> auto test_strcpy = strcpy; auto test_strcmp = strcmp; auto test_strlen = strlen; auto test_sprintf = sprintf; auto test_sscanf = sscanf; auto test_close = close; auto test_unlink = unlink; unsigned int test_getpid() { return getpid(); } int test_kill(unsigned int pid) { return kill(pid, SIGKILL); } bool TestFileExists(const char *path) { int fd = open(path, O_RDWR); if (fd == -1) return false; close(fd); return true; } bool WriteHeaderInfo(const char *path, char sharedMemoryType, char version, int *fdRef) { int fd = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (fd == -1) return false; *fdRef = fd; if (ftruncate(fd, getpagesize()) != 0) return false; if (lseek(fd, 0, SEEK_SET) != 0) return false; // See SharedMemorySharedDataHeader for format char buffer[] = {sharedMemoryType, version}; if (write(fd, buffer, ARRAY_SIZE(buffer)) != ARRAY_SIZE(buffer)) return false; return flock(fd, LOCK_SH | LOCK_NB) == 0; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Contains wrappers for functions whose required headers conflict with the PAL #include <sys/file.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <minipal/utils.h> auto test_strcpy = strcpy; auto test_strcmp = strcmp; auto test_strlen = strlen; auto test_sprintf = sprintf; auto test_sscanf = sscanf; auto test_close = close; auto test_unlink = unlink; unsigned int test_getpid() { return getpid(); } int test_kill(unsigned int pid) { return kill(pid, SIGKILL); } bool TestFileExists(const char *path) { int fd = open(path, O_RDWR); if (fd == -1) return false; close(fd); return true; } bool WriteHeaderInfo(const char *path, char sharedMemoryType, char version, int *fdRef) { int fd = open(path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (fd == -1) return false; *fdRef = fd; if (ftruncate(fd, getpagesize()) != 0) return false; if (lseek(fd, 0, SEEK_SET) != 0) return false; // See SharedMemorySharedDataHeader for format char buffer[] = {sharedMemoryType, version}; if (write(fd, buffer, ARRAY_SIZE(buffer)) != ARRAY_SIZE(buffer)) return false; return flock(fd, LOCK_SH | LOCK_NB) == 0; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/md/datasource/stdafx.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // stdafx.h // // // Precompiled headers. // //***************************************************************************** #ifndef __STDAFX_H_ #define __STDAFX_H_ #include <crtwrap.h> #include <winwrap.h> #include <utilcode.h> #include <cor.h> #include <corpriv.h> #include <metamodelro.h> #include <liteweightstgdb.h> #endif // __STDAFX_H_
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // stdafx.h // // // Precompiled headers. // //***************************************************************************** #ifndef __STDAFX_H_ #define __STDAFX_H_ #include <crtwrap.h> #include <winwrap.h> #include <utilcode.h> #include <cor.h> #include <corpriv.h> #include <metamodelro.h> #include <liteweightstgdb.h> #endif // __STDAFX_H_
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/file_io/GetFileAttributesExW/test2/test2.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*===================================================================== ** ** Source: getfileattributesexw.c (getfileattributesexw\test2) ** ** Purpose: Tests the PAL implementation of GetFileAttributesExW. ** First get a file's attributes, modify the file, ** re-get its attributes ** and compare the two sets of attributes. ** ** **===================================================================*/ #include <palsuite.h> /** * This is a helper function which takes two FILETIME structures and * checks that the second time isn't before the first. */ static int IsFileTimeOk(FILETIME FirstTime, FILETIME SecondTime) { ULONG64 TimeOne, TimeTwo; TimeOne = ((((ULONG64)FirstTime.dwHighDateTime)<<32) | ((ULONG64)FirstTime.dwLowDateTime)); TimeTwo = ((((ULONG64)SecondTime.dwHighDateTime)<<32) | ((ULONG64)SecondTime.dwLowDateTime)); return(TimeOne <= TimeTwo); } PALTEST(file_io_GetFileAttributesExW_test2_paltest_getfileattributesexw_test2, "file_io/GetFileAttributesExW/test2/paltest_getfileattributesexw_test2") { DWORD res; char fileName[MAX_PATH] = "test_file"; WCHAR *wFileName; WIN32_FILE_ATTRIBUTE_DATA beforeAttribs; WIN32_FILE_ATTRIBUTE_DATA afterAttribs; FILE *testFile; ULONG64 beforeFileSize; ULONG64 afterFileSize; if (0 != PAL_Initialize(argc,argv)) { return FAIL; } /* Create the file */ testFile = fopen(fileName, "w+"); if( NULL == testFile ) { Fail("Unexpected error: Unable to open file %S " "with fopen. \n", fileName); } if( EOF == fputs( "testing", testFile ) ) { Fail("Unexpected error: Unable to write to file %S " "with fputs. \n", fileName); } if( 0 != fclose(testFile) ) { Fail("Unexpected error: Unable to close file %S " "with fclose. \n", fileName); } /* Test the Values returned by GetFileAttributesExW * before and after manipulating a file shouldn't be the same. */ wFileName = convert(fileName); res = GetFileAttributesExW(wFileName, GetFileExInfoStandard, &beforeAttribs); if(res == 0) { Fail("ERROR: unable to get initial file attributes with " "GetFileAttributesEx that returned 0 with error %d.\n", GetLastError()); } /* Make sure the time are different */ Sleep(500); testFile = fopen(fileName, "w+"); if( NULL == testFile ) { Fail("Unexpected error: Unable to open file %S " "with fopen. \n", fileName); } if( EOF == fputs( "testing GetFileAttributesExW", testFile ) ) { Fail("Unexpected error: Unable to write to file %S " "with fputs. \n", fileName); } if( 0 != fclose(testFile) ) { Fail("Unexpected error: Unable to close file %S " "with fclose. \n", fileName); } res = GetFileAttributesExW(wFileName, GetFileExInfoStandard, &afterAttribs); if(res == 0) { Fail("ERROR: unable to get file attributes after operations with " "GetFileAttributesEx that returned 0 with error %d.\n", GetLastError()); } /* Check the creation time */ if(!IsFileTimeOk(beforeAttribs.ftCreationTime, afterAttribs.ftCreationTime)) { Fail("ERROR: Creation time after the fputs operation " "is earlier than the creation time before the fputs.\n"); } /* Check the last access time */ if(!IsFileTimeOk(beforeAttribs.ftLastAccessTime, afterAttribs.ftLastAccessTime)) { Fail("ERROR: Last access time after the fputs operation " "is earlier than the last access time before the fputs.\n"); } /* Check the last write time */ if(!IsFileTimeOk(beforeAttribs.ftLastWriteTime, afterAttribs.ftLastWriteTime)) { Fail("ERROR: Last write time after the fputs operation " "is earlier than the last write time before the fputs.\n"); } beforeFileSize = ((ULONG64)beforeAttribs.nFileSizeHigh)<< 32 | ((ULONG64)beforeAttribs.nFileSizeLow); afterFileSize = ((ULONG64)afterAttribs.nFileSizeHigh)<< 32 | ((ULONG64)afterAttribs.nFileSizeLow); /* Check the file size */ if( afterFileSize <= beforeFileSize ) { Fail("ERROR: the file should have had a bigger size " "after(%d) the operations than before(%d)\n", afterAttribs.nFileSizeLow, beforeAttribs.nFileSizeLow); } 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: getfileattributesexw.c (getfileattributesexw\test2) ** ** Purpose: Tests the PAL implementation of GetFileAttributesExW. ** First get a file's attributes, modify the file, ** re-get its attributes ** and compare the two sets of attributes. ** ** **===================================================================*/ #include <palsuite.h> /** * This is a helper function which takes two FILETIME structures and * checks that the second time isn't before the first. */ static int IsFileTimeOk(FILETIME FirstTime, FILETIME SecondTime) { ULONG64 TimeOne, TimeTwo; TimeOne = ((((ULONG64)FirstTime.dwHighDateTime)<<32) | ((ULONG64)FirstTime.dwLowDateTime)); TimeTwo = ((((ULONG64)SecondTime.dwHighDateTime)<<32) | ((ULONG64)SecondTime.dwLowDateTime)); return(TimeOne <= TimeTwo); } PALTEST(file_io_GetFileAttributesExW_test2_paltest_getfileattributesexw_test2, "file_io/GetFileAttributesExW/test2/paltest_getfileattributesexw_test2") { DWORD res; char fileName[MAX_PATH] = "test_file"; WCHAR *wFileName; WIN32_FILE_ATTRIBUTE_DATA beforeAttribs; WIN32_FILE_ATTRIBUTE_DATA afterAttribs; FILE *testFile; ULONG64 beforeFileSize; ULONG64 afterFileSize; if (0 != PAL_Initialize(argc,argv)) { return FAIL; } /* Create the file */ testFile = fopen(fileName, "w+"); if( NULL == testFile ) { Fail("Unexpected error: Unable to open file %S " "with fopen. \n", fileName); } if( EOF == fputs( "testing", testFile ) ) { Fail("Unexpected error: Unable to write to file %S " "with fputs. \n", fileName); } if( 0 != fclose(testFile) ) { Fail("Unexpected error: Unable to close file %S " "with fclose. \n", fileName); } /* Test the Values returned by GetFileAttributesExW * before and after manipulating a file shouldn't be the same. */ wFileName = convert(fileName); res = GetFileAttributesExW(wFileName, GetFileExInfoStandard, &beforeAttribs); if(res == 0) { Fail("ERROR: unable to get initial file attributes with " "GetFileAttributesEx that returned 0 with error %d.\n", GetLastError()); } /* Make sure the time are different */ Sleep(500); testFile = fopen(fileName, "w+"); if( NULL == testFile ) { Fail("Unexpected error: Unable to open file %S " "with fopen. \n", fileName); } if( EOF == fputs( "testing GetFileAttributesExW", testFile ) ) { Fail("Unexpected error: Unable to write to file %S " "with fputs. \n", fileName); } if( 0 != fclose(testFile) ) { Fail("Unexpected error: Unable to close file %S " "with fclose. \n", fileName); } res = GetFileAttributesExW(wFileName, GetFileExInfoStandard, &afterAttribs); if(res == 0) { Fail("ERROR: unable to get file attributes after operations with " "GetFileAttributesEx that returned 0 with error %d.\n", GetLastError()); } /* Check the creation time */ if(!IsFileTimeOk(beforeAttribs.ftCreationTime, afterAttribs.ftCreationTime)) { Fail("ERROR: Creation time after the fputs operation " "is earlier than the creation time before the fputs.\n"); } /* Check the last access time */ if(!IsFileTimeOk(beforeAttribs.ftLastAccessTime, afterAttribs.ftLastAccessTime)) { Fail("ERROR: Last access time after the fputs operation " "is earlier than the last access time before the fputs.\n"); } /* Check the last write time */ if(!IsFileTimeOk(beforeAttribs.ftLastWriteTime, afterAttribs.ftLastWriteTime)) { Fail("ERROR: Last write time after the fputs operation " "is earlier than the last write time before the fputs.\n"); } beforeFileSize = ((ULONG64)beforeAttribs.nFileSizeHigh)<< 32 | ((ULONG64)beforeAttribs.nFileSizeLow); afterFileSize = ((ULONG64)afterAttribs.nFileSizeHigh)<< 32 | ((ULONG64)afterAttribs.nFileSizeLow); /* Check the file size */ if( afterFileSize <= beforeFileSize ) { Fail("ERROR: the file should have had a bigger size " "after(%d) the operations than before(%d)\n", afterAttribs.nFileSizeLow, beforeAttribs.nFileSizeLow); } PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/inc/regdisp.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifndef __REGDISP_H #define __REGDISP_H #ifdef DEBUG_REGDISPLAY class Thread; struct REGDISPLAY; void CheckRegDisplaySP (REGDISPLAY *pRD); #endif // DEBUG_REGDISPLAY struct REGDISPLAY_BASE { PT_CONTEXT pContext; // This is the context of the active call frame; // either returned by GetContext or provided at // exception time. // // This will be used to resume execution, so // do NOT trash it! But DO update any static // registers here. #ifdef FEATURE_EH_FUNCLETS PT_CONTEXT pCurrentContext; // [trashed] points to current Context of stackwalk PT_CONTEXT pCallerContext; // [trashed] points to the Context of the caller during stackwalk -- used for GC crawls // [trashed] points to current context pointers of stackwalk T_KNONVOLATILE_CONTEXT_POINTERS *pCurrentContextPointers; // [trashed] points to the context pointers of the caller during stackwalk -- used for GC crawls T_KNONVOLATILE_CONTEXT_POINTERS *pCallerContextPointers; BOOL IsCallerContextValid; // TRUE if pCallerContext really contains the caller's context BOOL IsCallerSPValid; // Don't add usage of this field. This is only temporary. T_CONTEXT ctxOne; // used by stackwalk T_CONTEXT ctxTwo; // used by stackwalk T_KNONVOLATILE_CONTEXT_POINTERS ctxPtrsOne; // used by stackwalk T_KNONVOLATILE_CONTEXT_POINTERS ctxPtrsTwo; // used by stackwalk #endif // FEATURE_EH_FUNCLETS #ifdef DEBUG_REGDISPLAY Thread *_pThread; #endif // DEBUG_REGDISPLAY TADDR SP; TADDR ControlPC; // LOONGARCH: use RA for PC }; inline PCODE GetControlPC(const REGDISPLAY_BASE *pRD) { LIMITED_METHOD_DAC_CONTRACT; return (PCODE)(pRD->ControlPC); } inline TADDR GetRegdisplaySP(REGDISPLAY_BASE *pRD) { LIMITED_METHOD_DAC_CONTRACT; return pRD->SP; } inline void SetRegdisplaySP(REGDISPLAY_BASE *pRD, LPVOID sp) { LIMITED_METHOD_DAC_CONTRACT; pRD->SP = (TADDR)sp; } #if defined(TARGET_X86) struct REGDISPLAY : public REGDISPLAY_BASE { #ifndef FEATURE_EH_FUNCLETS // TODO: Unify with pCurrentContext / pCallerContext used on 64-bit PCONTEXT pContextForUnwind; // scratch context for unwinding // used to preserve context saved in the frame that // could be otherwise wiped by the unwinding DWORD * pEdi; DWORD * pEsi; DWORD * pEbx; DWORD * pEdx; DWORD * pEcx; DWORD * pEax; DWORD * pEbp; #endif // !FEATURE_EH_FUNCLETS #ifndef FEATURE_EH_FUNCLETS #define REG_METHODS(reg) \ inline PDWORD Get##reg##Location(void) { return p##reg; } \ inline void Set##reg##Location(PDWORD p##reg) { this->p##reg = p##reg; } #else // !FEATURE_EH_FUNCLETS #define REG_METHODS(reg) \ inline PDWORD Get##reg##Location(void) { return pCurrentContextPointers->reg; } \ inline void Set##reg##Location(PDWORD p##reg) \ { \ pCurrentContextPointers->reg = p##reg; \ pCurrentContext->reg = *p##reg; \ } #endif // FEATURE_EH_FUNCLETS REG_METHODS(Eax) REG_METHODS(Ecx) REG_METHODS(Edx) REG_METHODS(Ebx) REG_METHODS(Esi) REG_METHODS(Edi) REG_METHODS(Ebp) #undef REG_METHODS TADDR PCTAddr; }; inline TADDR GetRegdisplayFP(REGDISPLAY *display) { LIMITED_METHOD_DAC_CONTRACT; #ifdef FEATURE_EH_FUNCLETS return (TADDR)display->pCurrentContext->Ebp; #else return (TADDR)*display->GetEbpLocation(); #endif } inline LPVOID GetRegdisplayFPAddress(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; return (LPVOID)display->GetEbpLocation(); } // This function tells us if the given stack pointer is in one of the frames of the functions called by the given frame inline BOOL IsInCalleesFrames(REGDISPLAY *display, LPVOID stackPointer) { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_EH_FUNCLETS return stackPointer < ((LPVOID)(display->SP)); #else return (TADDR)stackPointer < display->PCTAddr; #endif } inline TADDR GetRegdisplayStackMark(REGDISPLAY *display) { LIMITED_METHOD_DAC_CONTRACT; #ifdef FEATURE_EH_FUNCLETS _ASSERTE(GetRegdisplaySP(display) == GetSP(display->pCurrentContext)); return GetRegdisplaySP(display); #else return display->PCTAddr; #endif } #elif defined(TARGET_64BIT) #if defined(TARGET_ARM64) typedef struct _Arm64VolatileContextPointer { union { struct { PDWORD64 X0; PDWORD64 X1; PDWORD64 X2; PDWORD64 X3; PDWORD64 X4; PDWORD64 X5; PDWORD64 X6; PDWORD64 X7; PDWORD64 X8; PDWORD64 X9; PDWORD64 X10; PDWORD64 X11; PDWORD64 X12; PDWORD64 X13; PDWORD64 X14; PDWORD64 X15; PDWORD64 X16; PDWORD64 X17; //X18 is reserved by OS, in userspace it represents TEB }; PDWORD64 X[18]; }; } Arm64VolatileContextPointer; #endif //TARGET_ARM64 #if defined(TARGET_LOONGARCH64) typedef struct _Loongarch64VolatileContextPointer { PDWORD64 R0; PDWORD64 A0; PDWORD64 A1; PDWORD64 A2; PDWORD64 A3; PDWORD64 A4; PDWORD64 A5; PDWORD64 A6; PDWORD64 A7; PDWORD64 T0; PDWORD64 T1; PDWORD64 T2; PDWORD64 T3; PDWORD64 T4; PDWORD64 T5; PDWORD64 T6; PDWORD64 T7; PDWORD64 T8; PDWORD64 X0; } Loongarch64VolatileContextPointer; #endif struct REGDISPLAY : public REGDISPLAY_BASE { #ifdef TARGET_ARM64 Arm64VolatileContextPointer volatileCurrContextPointers; #endif #ifdef TARGET_LOONGARCH64 Loongarch64VolatileContextPointer volatileCurrContextPointers; #endif REGDISPLAY() { // Initialize memset(this, 0, sizeof(REGDISPLAY)); } }; inline TADDR GetRegdisplayFP(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; return NULL; } inline TADDR GetRegdisplayFPAddress(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; return NULL; } // This function tells us if the given stack pointer is in one of the frames of the functions called by the given frame inline BOOL IsInCalleesFrames(REGDISPLAY *display, LPVOID stackPointer) { LIMITED_METHOD_CONTRACT; return stackPointer < ((LPVOID)(display->SP)); } inline TADDR GetRegdisplayStackMark(REGDISPLAY *display) { #if defined(TARGET_AMD64) // On AMD64, the MemoryStackFp value is the current sp (i.e. the sp value when calling another method). _ASSERTE(GetRegdisplaySP(display) == GetSP(display->pCurrentContext)); return GetRegdisplaySP(display); #elif defined(TARGET_ARM64) _ASSERTE(display->IsCallerContextValid); return GetSP(display->pCallerContext); #else // TARGET_AMD64 PORTABILITY_ASSERT("GetRegdisplayStackMark NYI for this platform (Regdisp.h)"); return NULL; #endif // TARGET_AMD64 } #elif defined(TARGET_ARM) // ResumableFrame is pushed on the stack before // starting the GC. registers r0-r3 in ResumableFrame can // contain roots which might need to be updated if they are // relocated. On Stack walking the addresses of the registers in the // resumable Frame are passed to GC using pCurrentContextPointers // member in _REGDISPLAY. However On ARM KNONVOLATILE_CONTEXT_POINTERS // does not contain pointers for volatile registers. Therefore creating // this structure to store pointers to volatile registers and adding an object // as member in _REGDISPLAY typedef struct _ArmVolatileContextPointer { PDWORD R0; PDWORD R1; PDWORD R2; PDWORD R3; PDWORD R12; } ArmVolatileContextPointer; struct REGDISPLAY : public REGDISPLAY_BASE { ArmVolatileContextPointer volatileCurrContextPointers; DWORD * pPC; // processor neutral name REGDISPLAY() { // Initialize regdisplay memset(this, 0, sizeof(REGDISPLAY)); // Setup the pointer to ControlPC field pPC = &ControlPC; } }; // This function tells us if the given stack pointer is in one of the frames of the functions called by the given frame inline BOOL IsInCalleesFrames(REGDISPLAY *display, LPVOID stackPointer) { LIMITED_METHOD_CONTRACT; return stackPointer < ((LPVOID)(TADDR)(display->SP)); } inline TADDR GetRegdisplayStackMark(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; // ARM uses the establisher frame as the marker _ASSERTE(display->IsCallerContextValid); return GetSP(display->pCallerContext); } #else // none of the above processors #error "RegDisplay functions are not implemented on this platform." #endif #if defined(TARGET_64BIT) || defined(TARGET_ARM) || (defined(TARGET_X86) && defined(FEATURE_EH_FUNCLETS)) // This needs to be implemented for platforms that have funclets. inline LPVOID GetRegdisplayReturnValue(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; #if defined(TARGET_AMD64) return (LPVOID)display->pCurrentContext->Rax; #elif defined(TARGET_ARM64) return (LPVOID)display->pCurrentContext->X0; #elif defined(TARGET_ARM) return (LPVOID)((TADDR)display->pCurrentContext->R0); #elif defined(TARGET_X86) return (LPVOID)display->pCurrentContext->Eax; #elif defined(TARGET_LOONGARCH64) return (LPVOID)display->pCurrentContext->A0; #else PORTABILITY_ASSERT("GetRegdisplayReturnValue NYI for this platform (Regdisp.h)"); return NULL; #endif } inline void SyncRegDisplayToCurrentContext(REGDISPLAY* pRD) { LIMITED_METHOD_CONTRACT; #if defined(TARGET_64BIT) pRD->SP = (INT_PTR)GetSP(pRD->pCurrentContext); pRD->ControlPC = INT_PTR(GetIP(pRD->pCurrentContext)); #elif defined(TARGET_ARM) pRD->SP = (DWORD)GetSP(pRD->pCurrentContext); pRD->ControlPC = (DWORD)GetIP(pRD->pCurrentContext); #elif defined(TARGET_X86) pRD->SP = (DWORD)GetSP(pRD->pCurrentContext); pRD->ControlPC = (DWORD)GetIP(pRD->pCurrentContext); #else // TARGET_X86 PORTABILITY_ASSERT("SyncRegDisplayToCurrentContext"); #endif #ifdef DEBUG_REGDISPLAY CheckRegDisplaySP(pRD); #endif // DEBUG_REGDISPLAY } #endif // TARGET_64BIT || TARGET_ARM || (TARGET_X86 && FEATURE_EH_FUNCLETS) typedef REGDISPLAY *PREGDISPLAY; #ifdef FEATURE_EH_FUNCLETS inline void FillContextPointers(PT_KNONVOLATILE_CONTEXT_POINTERS pCtxPtrs, PT_CONTEXT pCtx) { #ifdef TARGET_AMD64 for (int i = 0; i < 16; i++) { *(&pCtxPtrs->Rax + i) = (&pCtx->Rax + i); } #elif defined(TARGET_ARM64) // TARGET_AMD64 for (int i = 0; i < 12; i++) { *(&pCtxPtrs->X19 + i) = (&pCtx->X19 + i); } #elif defined(TARGET_LOONGARCH64) // TARGET_ARM64 *(&pCtxPtrs->S0) = &pCtx->S0; *(&pCtxPtrs->S1) = &pCtx->S1; *(&pCtxPtrs->S2) = &pCtx->S2; *(&pCtxPtrs->S3) = &pCtx->S3; *(&pCtxPtrs->S4) = &pCtx->S4; *(&pCtxPtrs->S5) = &pCtx->S5; *(&pCtxPtrs->S6) = &pCtx->S6; *(&pCtxPtrs->S7) = &pCtx->S7; *(&pCtxPtrs->S8) = &pCtx->S8; *(&pCtxPtrs->Tp) = &pCtx->Tp; *(&pCtxPtrs->Fp) = &pCtx->Fp; *(&pCtxPtrs->Ra) = &pCtx->Ra; #elif defined(TARGET_ARM) // TARGET_LOONGARCH64 // Copy over the nonvolatile integer registers (R4-R11) for (int i = 0; i < 8; i++) { *(&pCtxPtrs->R4 + i) = (&pCtx->R4 + i); } #elif defined(TARGET_X86) // TARGET_ARM for (int i = 0; i < 7; i++) { *(&pCtxPtrs->Edi + i) = (&pCtx->Edi + i); } #else // TARGET_X86 PORTABILITY_ASSERT("FillContextPointers"); #endif // _TARGET_???_ (ELSE) } #endif // FEATURE_EH_FUNCLETS inline void FillRegDisplay(const PREGDISPLAY pRD, PT_CONTEXT pctx, PT_CONTEXT pCallerCtx = NULL) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; #ifndef FEATURE_EH_FUNCLETS #ifdef TARGET_X86 pRD->pContext = pctx; pRD->pContextForUnwind = NULL; pRD->pEdi = &(pctx->Edi); pRD->pEsi = &(pctx->Esi); pRD->pEbx = &(pctx->Ebx); pRD->pEbp = &(pctx->Ebp); pRD->pEax = &(pctx->Eax); pRD->pEcx = &(pctx->Ecx); pRD->pEdx = &(pctx->Edx); pRD->SP = pctx->Esp; pRD->ControlPC = (PCODE)(pctx->Eip); pRD->PCTAddr = (UINT_PTR)&(pctx->Eip); #else // TARGET_X86 PORTABILITY_ASSERT("FillRegDisplay"); #endif // _TARGET_???_ (ELSE) #else // !FEATURE_EH_FUNCLETS pRD->pContext = pctx; // Setup the references pRD->pCurrentContextPointers = &pRD->ctxPtrsOne; pRD->pCallerContextPointers = &pRD->ctxPtrsTwo; pRD->pCurrentContext = &(pRD->ctxOne); pRD->pCallerContext = &(pRD->ctxTwo); // copy the active context to initialize our stackwalk *(pRD->pCurrentContext) = *(pctx); // copy the caller context as well if it's specified if (pCallerCtx == NULL) { pRD->IsCallerContextValid = FALSE; pRD->IsCallerSPValid = FALSE; // Don't add usage of this field. This is only temporary. } else { *(pRD->pCallerContext) = *(pCallerCtx); pRD->IsCallerContextValid = TRUE; pRD->IsCallerSPValid = TRUE; // Don't add usage of this field. This is only temporary. } FillContextPointers(&pRD->ctxPtrsOne, pctx); #if defined(TARGET_ARM) // Fill volatile context pointers. They can be used by GC in the case of the leaf frame pRD->volatileCurrContextPointers.R0 = &pctx->R0; pRD->volatileCurrContextPointers.R1 = &pctx->R1; pRD->volatileCurrContextPointers.R2 = &pctx->R2; pRD->volatileCurrContextPointers.R3 = &pctx->R3; pRD->volatileCurrContextPointers.R12 = &pctx->R12; pRD->ctxPtrsOne.Lr = &pctx->Lr; pRD->pPC = &pRD->pCurrentContext->Pc; #elif defined(TARGET_ARM64) // TARGET_ARM // Fill volatile context pointers. They can be used by GC in the case of the leaf frame for (int i=0; i < 18; i++) pRD->volatileCurrContextPointers.X[i] = &pctx->X[i]; #elif defined(TARGET_LOONGARCH64) // TARGET_ARM64 pRD->volatileCurrContextPointers.A0 = &pctx->A0; pRD->volatileCurrContextPointers.A1 = &pctx->A1; pRD->volatileCurrContextPointers.A2 = &pctx->A2; pRD->volatileCurrContextPointers.A3 = &pctx->A3; pRD->volatileCurrContextPointers.A4 = &pctx->A4; pRD->volatileCurrContextPointers.A5 = &pctx->A5; pRD->volatileCurrContextPointers.A6 = &pctx->A6; pRD->volatileCurrContextPointers.A7 = &pctx->A7; pRD->volatileCurrContextPointers.T0 = &pctx->T0; pRD->volatileCurrContextPointers.T1 = &pctx->T1; pRD->volatileCurrContextPointers.T2 = &pctx->T2; pRD->volatileCurrContextPointers.T3 = &pctx->T3; pRD->volatileCurrContextPointers.T4 = &pctx->T4; pRD->volatileCurrContextPointers.T5 = &pctx->T5; pRD->volatileCurrContextPointers.T6 = &pctx->T6; pRD->volatileCurrContextPointers.T7 = &pctx->T7; pRD->volatileCurrContextPointers.T8 = &pctx->T8; pRD->volatileCurrContextPointers.X0 = &pctx->X0; #endif // TARGET_LOONGARCH64 #ifdef DEBUG_REGDISPLAY pRD->_pThread = NULL; #endif // DEBUG_REGDISPLAY // This will setup the PC and SP SyncRegDisplayToCurrentContext(pRD); #endif // !FEATURE_EH_FUNCLETS } // Initialize a new REGDISPLAY/CONTEXT pair from an existing valid REGDISPLAY. inline void CopyRegDisplay(const PREGDISPLAY pInRD, PREGDISPLAY pOutRD, T_CONTEXT *pOutCtx) { WRAPPER_NO_CONTRACT; // The general strategy is to extract the register state from the input REGDISPLAY // into the new CONTEXT then simply call FillRegDisplay. T_CONTEXT* pOutCallerCtx = NULL; #ifndef FEATURE_EH_FUNCLETS #if defined(TARGET_X86) if (pInRD->pEdi != NULL) {pOutCtx->Edi = *pInRD->pEdi;} else {pInRD->pEdi = NULL;} if (pInRD->pEsi != NULL) {pOutCtx->Esi = *pInRD->pEsi;} else {pInRD->pEsi = NULL;} if (pInRD->pEbx != NULL) {pOutCtx->Ebx = *pInRD->pEbx;} else {pInRD->pEbx = NULL;} if (pInRD->pEbp != NULL) {pOutCtx->Ebp = *pInRD->pEbp;} else {pInRD->pEbp = NULL;} if (pInRD->pEax != NULL) {pOutCtx->Eax = *pInRD->pEax;} else {pInRD->pEax = NULL;} if (pInRD->pEcx != NULL) {pOutCtx->Ecx = *pInRD->pEcx;} else {pInRD->pEcx = NULL;} if (pInRD->pEdx != NULL) {pOutCtx->Edx = *pInRD->pEdx;} else {pInRD->pEdx = NULL;} pOutCtx->Esp = pInRD->SP; pOutCtx->Eip = pInRD->ControlPC; #else // TARGET_X86 PORTABILITY_ASSERT("CopyRegDisplay"); #endif // _TARGET_???_ #else // FEATURE_EH_FUNCLETS *pOutCtx = *(pInRD->pCurrentContext); if (pInRD->IsCallerContextValid) { pOutCallerCtx = pInRD->pCallerContext; } #endif // FEATURE_EH_FUNCLETS if (pOutRD) FillRegDisplay(pOutRD, pOutCtx, pOutCallerCtx); } // Get address of a register in a CONTEXT given the reg number. For X86, // the reg number is the R/M number from ModR/M byte or base in SIB byte inline size_t * getRegAddr (unsigned regNum, PTR_CONTEXT regs) { #ifdef TARGET_X86 _ASSERTE(regNum < 8); static const SIZE_T OFFSET_OF_REGISTERS[] = { offsetof(CONTEXT, Eax), offsetof(CONTEXT, Ecx), offsetof(CONTEXT, Edx), offsetof(CONTEXT, Ebx), offsetof(CONTEXT, Esp), offsetof(CONTEXT, Ebp), offsetof(CONTEXT, Esi), offsetof(CONTEXT, Edi), }; return (PTR_size_t)(PTR_BYTE(regs) + OFFSET_OF_REGISTERS[regNum]); #elif defined(TARGET_AMD64) _ASSERTE(regNum < 16); return &regs->Rax + regNum; #elif defined(TARGET_ARM) _ASSERTE(regNum < 16); return (size_t *)&regs->R0 + regNum; #elif defined(TARGET_ARM64) _ASSERTE(regNum < 31); return (size_t *)&regs->X0 + regNum; #elif defined(TARGET_LOONGARCH64) _ASSERTE(regNum < 32); return (size_t *)&regs->R0 + regNum; #else _ASSERTE(!"@TODO Port - getRegAddr (Regdisp.h)"); #endif return(0); } //--------------------------------------------------------------------------------------- // // This is just a simpler helper function to convert a REGDISPLAY to a CONTEXT. // // Arguments: // pRegDisp - the REGDISPLAY to be converted // pContext - the buffer for storing the converted CONTEXT // inline void UpdateContextFromRegDisp(PREGDISPLAY pRegDisp, PT_CONTEXT pContext) { _ASSERTE((pRegDisp != NULL) && (pContext != NULL)); #ifndef FEATURE_EH_FUNCLETS #if defined(TARGET_X86) pContext->ContextFlags = (CONTEXT_INTEGER | CONTEXT_CONTROL); pContext->Edi = *pRegDisp->pEdi; pContext->Esi = *pRegDisp->pEsi; pContext->Ebx = *pRegDisp->pEbx; pContext->Ebp = *pRegDisp->pEbp; pContext->Eax = *pRegDisp->pEax; pContext->Ecx = *pRegDisp->pEcx; pContext->Edx = *pRegDisp->pEdx; pContext->Esp = pRegDisp->SP; pContext->Eip = pRegDisp->ControlPC; #else // TARGET_X86 PORTABILITY_ASSERT("UpdateContextFromRegDisp"); #endif // _TARGET_???_ #else // FEATURE_EH_FUNCLETS *pContext = *pRegDisp->pCurrentContext; #endif // FEATURE_EH_FUNCLETS } #endif // __REGDISP_H
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #ifndef __REGDISP_H #define __REGDISP_H #ifdef DEBUG_REGDISPLAY class Thread; struct REGDISPLAY; void CheckRegDisplaySP (REGDISPLAY *pRD); #endif // DEBUG_REGDISPLAY struct REGDISPLAY_BASE { PT_CONTEXT pContext; // This is the context of the active call frame; // either returned by GetContext or provided at // exception time. // // This will be used to resume execution, so // do NOT trash it! But DO update any static // registers here. #ifdef FEATURE_EH_FUNCLETS PT_CONTEXT pCurrentContext; // [trashed] points to current Context of stackwalk PT_CONTEXT pCallerContext; // [trashed] points to the Context of the caller during stackwalk -- used for GC crawls // [trashed] points to current context pointers of stackwalk T_KNONVOLATILE_CONTEXT_POINTERS *pCurrentContextPointers; // [trashed] points to the context pointers of the caller during stackwalk -- used for GC crawls T_KNONVOLATILE_CONTEXT_POINTERS *pCallerContextPointers; BOOL IsCallerContextValid; // TRUE if pCallerContext really contains the caller's context BOOL IsCallerSPValid; // Don't add usage of this field. This is only temporary. T_CONTEXT ctxOne; // used by stackwalk T_CONTEXT ctxTwo; // used by stackwalk T_KNONVOLATILE_CONTEXT_POINTERS ctxPtrsOne; // used by stackwalk T_KNONVOLATILE_CONTEXT_POINTERS ctxPtrsTwo; // used by stackwalk #endif // FEATURE_EH_FUNCLETS #ifdef DEBUG_REGDISPLAY Thread *_pThread; #endif // DEBUG_REGDISPLAY TADDR SP; TADDR ControlPC; // LOONGARCH: use RA for PC }; inline PCODE GetControlPC(const REGDISPLAY_BASE *pRD) { LIMITED_METHOD_DAC_CONTRACT; return (PCODE)(pRD->ControlPC); } inline TADDR GetRegdisplaySP(REGDISPLAY_BASE *pRD) { LIMITED_METHOD_DAC_CONTRACT; return pRD->SP; } inline void SetRegdisplaySP(REGDISPLAY_BASE *pRD, LPVOID sp) { LIMITED_METHOD_DAC_CONTRACT; pRD->SP = (TADDR)sp; } #if defined(TARGET_X86) struct REGDISPLAY : public REGDISPLAY_BASE { #ifndef FEATURE_EH_FUNCLETS // TODO: Unify with pCurrentContext / pCallerContext used on 64-bit PCONTEXT pContextForUnwind; // scratch context for unwinding // used to preserve context saved in the frame that // could be otherwise wiped by the unwinding DWORD * pEdi; DWORD * pEsi; DWORD * pEbx; DWORD * pEdx; DWORD * pEcx; DWORD * pEax; DWORD * pEbp; #endif // !FEATURE_EH_FUNCLETS #ifndef FEATURE_EH_FUNCLETS #define REG_METHODS(reg) \ inline PDWORD Get##reg##Location(void) { return p##reg; } \ inline void Set##reg##Location(PDWORD p##reg) { this->p##reg = p##reg; } #else // !FEATURE_EH_FUNCLETS #define REG_METHODS(reg) \ inline PDWORD Get##reg##Location(void) { return pCurrentContextPointers->reg; } \ inline void Set##reg##Location(PDWORD p##reg) \ { \ pCurrentContextPointers->reg = p##reg; \ pCurrentContext->reg = *p##reg; \ } #endif // FEATURE_EH_FUNCLETS REG_METHODS(Eax) REG_METHODS(Ecx) REG_METHODS(Edx) REG_METHODS(Ebx) REG_METHODS(Esi) REG_METHODS(Edi) REG_METHODS(Ebp) #undef REG_METHODS TADDR PCTAddr; }; inline TADDR GetRegdisplayFP(REGDISPLAY *display) { LIMITED_METHOD_DAC_CONTRACT; #ifdef FEATURE_EH_FUNCLETS return (TADDR)display->pCurrentContext->Ebp; #else return (TADDR)*display->GetEbpLocation(); #endif } inline LPVOID GetRegdisplayFPAddress(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; return (LPVOID)display->GetEbpLocation(); } // This function tells us if the given stack pointer is in one of the frames of the functions called by the given frame inline BOOL IsInCalleesFrames(REGDISPLAY *display, LPVOID stackPointer) { LIMITED_METHOD_CONTRACT; #ifdef FEATURE_EH_FUNCLETS return stackPointer < ((LPVOID)(display->SP)); #else return (TADDR)stackPointer < display->PCTAddr; #endif } inline TADDR GetRegdisplayStackMark(REGDISPLAY *display) { LIMITED_METHOD_DAC_CONTRACT; #ifdef FEATURE_EH_FUNCLETS _ASSERTE(GetRegdisplaySP(display) == GetSP(display->pCurrentContext)); return GetRegdisplaySP(display); #else return display->PCTAddr; #endif } #elif defined(TARGET_64BIT) #if defined(TARGET_ARM64) typedef struct _Arm64VolatileContextPointer { union { struct { PDWORD64 X0; PDWORD64 X1; PDWORD64 X2; PDWORD64 X3; PDWORD64 X4; PDWORD64 X5; PDWORD64 X6; PDWORD64 X7; PDWORD64 X8; PDWORD64 X9; PDWORD64 X10; PDWORD64 X11; PDWORD64 X12; PDWORD64 X13; PDWORD64 X14; PDWORD64 X15; PDWORD64 X16; PDWORD64 X17; //X18 is reserved by OS, in userspace it represents TEB }; PDWORD64 X[18]; }; } Arm64VolatileContextPointer; #endif //TARGET_ARM64 #if defined(TARGET_LOONGARCH64) typedef struct _Loongarch64VolatileContextPointer { PDWORD64 R0; PDWORD64 A0; PDWORD64 A1; PDWORD64 A2; PDWORD64 A3; PDWORD64 A4; PDWORD64 A5; PDWORD64 A6; PDWORD64 A7; PDWORD64 T0; PDWORD64 T1; PDWORD64 T2; PDWORD64 T3; PDWORD64 T4; PDWORD64 T5; PDWORD64 T6; PDWORD64 T7; PDWORD64 T8; PDWORD64 X0; } Loongarch64VolatileContextPointer; #endif struct REGDISPLAY : public REGDISPLAY_BASE { #ifdef TARGET_ARM64 Arm64VolatileContextPointer volatileCurrContextPointers; #endif #ifdef TARGET_LOONGARCH64 Loongarch64VolatileContextPointer volatileCurrContextPointers; #endif REGDISPLAY() { // Initialize memset(this, 0, sizeof(REGDISPLAY)); } }; inline TADDR GetRegdisplayFP(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; return NULL; } inline TADDR GetRegdisplayFPAddress(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; return NULL; } // This function tells us if the given stack pointer is in one of the frames of the functions called by the given frame inline BOOL IsInCalleesFrames(REGDISPLAY *display, LPVOID stackPointer) { LIMITED_METHOD_CONTRACT; return stackPointer < ((LPVOID)(display->SP)); } inline TADDR GetRegdisplayStackMark(REGDISPLAY *display) { #if defined(TARGET_AMD64) // On AMD64, the MemoryStackFp value is the current sp (i.e. the sp value when calling another method). _ASSERTE(GetRegdisplaySP(display) == GetSP(display->pCurrentContext)); return GetRegdisplaySP(display); #elif defined(TARGET_ARM64) _ASSERTE(display->IsCallerContextValid); return GetSP(display->pCallerContext); #else // TARGET_AMD64 PORTABILITY_ASSERT("GetRegdisplayStackMark NYI for this platform (Regdisp.h)"); return NULL; #endif // TARGET_AMD64 } #elif defined(TARGET_ARM) // ResumableFrame is pushed on the stack before // starting the GC. registers r0-r3 in ResumableFrame can // contain roots which might need to be updated if they are // relocated. On Stack walking the addresses of the registers in the // resumable Frame are passed to GC using pCurrentContextPointers // member in _REGDISPLAY. However On ARM KNONVOLATILE_CONTEXT_POINTERS // does not contain pointers for volatile registers. Therefore creating // this structure to store pointers to volatile registers and adding an object // as member in _REGDISPLAY typedef struct _ArmVolatileContextPointer { PDWORD R0; PDWORD R1; PDWORD R2; PDWORD R3; PDWORD R12; } ArmVolatileContextPointer; struct REGDISPLAY : public REGDISPLAY_BASE { ArmVolatileContextPointer volatileCurrContextPointers; DWORD * pPC; // processor neutral name REGDISPLAY() { // Initialize regdisplay memset(this, 0, sizeof(REGDISPLAY)); // Setup the pointer to ControlPC field pPC = &ControlPC; } }; // This function tells us if the given stack pointer is in one of the frames of the functions called by the given frame inline BOOL IsInCalleesFrames(REGDISPLAY *display, LPVOID stackPointer) { LIMITED_METHOD_CONTRACT; return stackPointer < ((LPVOID)(TADDR)(display->SP)); } inline TADDR GetRegdisplayStackMark(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; // ARM uses the establisher frame as the marker _ASSERTE(display->IsCallerContextValid); return GetSP(display->pCallerContext); } #else // none of the above processors #error "RegDisplay functions are not implemented on this platform." #endif #if defined(TARGET_64BIT) || defined(TARGET_ARM) || (defined(TARGET_X86) && defined(FEATURE_EH_FUNCLETS)) // This needs to be implemented for platforms that have funclets. inline LPVOID GetRegdisplayReturnValue(REGDISPLAY *display) { LIMITED_METHOD_CONTRACT; #if defined(TARGET_AMD64) return (LPVOID)display->pCurrentContext->Rax; #elif defined(TARGET_ARM64) return (LPVOID)display->pCurrentContext->X0; #elif defined(TARGET_ARM) return (LPVOID)((TADDR)display->pCurrentContext->R0); #elif defined(TARGET_X86) return (LPVOID)display->pCurrentContext->Eax; #elif defined(TARGET_LOONGARCH64) return (LPVOID)display->pCurrentContext->A0; #else PORTABILITY_ASSERT("GetRegdisplayReturnValue NYI for this platform (Regdisp.h)"); return NULL; #endif } inline void SyncRegDisplayToCurrentContext(REGDISPLAY* pRD) { LIMITED_METHOD_CONTRACT; #if defined(TARGET_64BIT) pRD->SP = (INT_PTR)GetSP(pRD->pCurrentContext); pRD->ControlPC = INT_PTR(GetIP(pRD->pCurrentContext)); #elif defined(TARGET_ARM) pRD->SP = (DWORD)GetSP(pRD->pCurrentContext); pRD->ControlPC = (DWORD)GetIP(pRD->pCurrentContext); #elif defined(TARGET_X86) pRD->SP = (DWORD)GetSP(pRD->pCurrentContext); pRD->ControlPC = (DWORD)GetIP(pRD->pCurrentContext); #else // TARGET_X86 PORTABILITY_ASSERT("SyncRegDisplayToCurrentContext"); #endif #ifdef DEBUG_REGDISPLAY CheckRegDisplaySP(pRD); #endif // DEBUG_REGDISPLAY } #endif // TARGET_64BIT || TARGET_ARM || (TARGET_X86 && FEATURE_EH_FUNCLETS) typedef REGDISPLAY *PREGDISPLAY; #ifdef FEATURE_EH_FUNCLETS inline void FillContextPointers(PT_KNONVOLATILE_CONTEXT_POINTERS pCtxPtrs, PT_CONTEXT pCtx) { #ifdef TARGET_AMD64 for (int i = 0; i < 16; i++) { *(&pCtxPtrs->Rax + i) = (&pCtx->Rax + i); } #elif defined(TARGET_ARM64) // TARGET_AMD64 for (int i = 0; i < 12; i++) { *(&pCtxPtrs->X19 + i) = (&pCtx->X19 + i); } #elif defined(TARGET_LOONGARCH64) // TARGET_ARM64 *(&pCtxPtrs->S0) = &pCtx->S0; *(&pCtxPtrs->S1) = &pCtx->S1; *(&pCtxPtrs->S2) = &pCtx->S2; *(&pCtxPtrs->S3) = &pCtx->S3; *(&pCtxPtrs->S4) = &pCtx->S4; *(&pCtxPtrs->S5) = &pCtx->S5; *(&pCtxPtrs->S6) = &pCtx->S6; *(&pCtxPtrs->S7) = &pCtx->S7; *(&pCtxPtrs->S8) = &pCtx->S8; *(&pCtxPtrs->Tp) = &pCtx->Tp; *(&pCtxPtrs->Fp) = &pCtx->Fp; *(&pCtxPtrs->Ra) = &pCtx->Ra; #elif defined(TARGET_ARM) // TARGET_LOONGARCH64 // Copy over the nonvolatile integer registers (R4-R11) for (int i = 0; i < 8; i++) { *(&pCtxPtrs->R4 + i) = (&pCtx->R4 + i); } #elif defined(TARGET_X86) // TARGET_ARM for (int i = 0; i < 7; i++) { *(&pCtxPtrs->Edi + i) = (&pCtx->Edi + i); } #else // TARGET_X86 PORTABILITY_ASSERT("FillContextPointers"); #endif // _TARGET_???_ (ELSE) } #endif // FEATURE_EH_FUNCLETS inline void FillRegDisplay(const PREGDISPLAY pRD, PT_CONTEXT pctx, PT_CONTEXT pCallerCtx = NULL) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; #ifndef FEATURE_EH_FUNCLETS #ifdef TARGET_X86 pRD->pContext = pctx; pRD->pContextForUnwind = NULL; pRD->pEdi = &(pctx->Edi); pRD->pEsi = &(pctx->Esi); pRD->pEbx = &(pctx->Ebx); pRD->pEbp = &(pctx->Ebp); pRD->pEax = &(pctx->Eax); pRD->pEcx = &(pctx->Ecx); pRD->pEdx = &(pctx->Edx); pRD->SP = pctx->Esp; pRD->ControlPC = (PCODE)(pctx->Eip); pRD->PCTAddr = (UINT_PTR)&(pctx->Eip); #else // TARGET_X86 PORTABILITY_ASSERT("FillRegDisplay"); #endif // _TARGET_???_ (ELSE) #else // !FEATURE_EH_FUNCLETS pRD->pContext = pctx; // Setup the references pRD->pCurrentContextPointers = &pRD->ctxPtrsOne; pRD->pCallerContextPointers = &pRD->ctxPtrsTwo; pRD->pCurrentContext = &(pRD->ctxOne); pRD->pCallerContext = &(pRD->ctxTwo); // copy the active context to initialize our stackwalk *(pRD->pCurrentContext) = *(pctx); // copy the caller context as well if it's specified if (pCallerCtx == NULL) { pRD->IsCallerContextValid = FALSE; pRD->IsCallerSPValid = FALSE; // Don't add usage of this field. This is only temporary. } else { *(pRD->pCallerContext) = *(pCallerCtx); pRD->IsCallerContextValid = TRUE; pRD->IsCallerSPValid = TRUE; // Don't add usage of this field. This is only temporary. } FillContextPointers(&pRD->ctxPtrsOne, pctx); #if defined(TARGET_ARM) // Fill volatile context pointers. They can be used by GC in the case of the leaf frame pRD->volatileCurrContextPointers.R0 = &pctx->R0; pRD->volatileCurrContextPointers.R1 = &pctx->R1; pRD->volatileCurrContextPointers.R2 = &pctx->R2; pRD->volatileCurrContextPointers.R3 = &pctx->R3; pRD->volatileCurrContextPointers.R12 = &pctx->R12; pRD->ctxPtrsOne.Lr = &pctx->Lr; pRD->pPC = &pRD->pCurrentContext->Pc; #elif defined(TARGET_ARM64) // TARGET_ARM // Fill volatile context pointers. They can be used by GC in the case of the leaf frame for (int i=0; i < 18; i++) pRD->volatileCurrContextPointers.X[i] = &pctx->X[i]; #elif defined(TARGET_LOONGARCH64) // TARGET_ARM64 pRD->volatileCurrContextPointers.A0 = &pctx->A0; pRD->volatileCurrContextPointers.A1 = &pctx->A1; pRD->volatileCurrContextPointers.A2 = &pctx->A2; pRD->volatileCurrContextPointers.A3 = &pctx->A3; pRD->volatileCurrContextPointers.A4 = &pctx->A4; pRD->volatileCurrContextPointers.A5 = &pctx->A5; pRD->volatileCurrContextPointers.A6 = &pctx->A6; pRD->volatileCurrContextPointers.A7 = &pctx->A7; pRD->volatileCurrContextPointers.T0 = &pctx->T0; pRD->volatileCurrContextPointers.T1 = &pctx->T1; pRD->volatileCurrContextPointers.T2 = &pctx->T2; pRD->volatileCurrContextPointers.T3 = &pctx->T3; pRD->volatileCurrContextPointers.T4 = &pctx->T4; pRD->volatileCurrContextPointers.T5 = &pctx->T5; pRD->volatileCurrContextPointers.T6 = &pctx->T6; pRD->volatileCurrContextPointers.T7 = &pctx->T7; pRD->volatileCurrContextPointers.T8 = &pctx->T8; pRD->volatileCurrContextPointers.X0 = &pctx->X0; #endif // TARGET_LOONGARCH64 #ifdef DEBUG_REGDISPLAY pRD->_pThread = NULL; #endif // DEBUG_REGDISPLAY // This will setup the PC and SP SyncRegDisplayToCurrentContext(pRD); #endif // !FEATURE_EH_FUNCLETS } // Initialize a new REGDISPLAY/CONTEXT pair from an existing valid REGDISPLAY. inline void CopyRegDisplay(const PREGDISPLAY pInRD, PREGDISPLAY pOutRD, T_CONTEXT *pOutCtx) { WRAPPER_NO_CONTRACT; // The general strategy is to extract the register state from the input REGDISPLAY // into the new CONTEXT then simply call FillRegDisplay. T_CONTEXT* pOutCallerCtx = NULL; #ifndef FEATURE_EH_FUNCLETS #if defined(TARGET_X86) if (pInRD->pEdi != NULL) {pOutCtx->Edi = *pInRD->pEdi;} else {pInRD->pEdi = NULL;} if (pInRD->pEsi != NULL) {pOutCtx->Esi = *pInRD->pEsi;} else {pInRD->pEsi = NULL;} if (pInRD->pEbx != NULL) {pOutCtx->Ebx = *pInRD->pEbx;} else {pInRD->pEbx = NULL;} if (pInRD->pEbp != NULL) {pOutCtx->Ebp = *pInRD->pEbp;} else {pInRD->pEbp = NULL;} if (pInRD->pEax != NULL) {pOutCtx->Eax = *pInRD->pEax;} else {pInRD->pEax = NULL;} if (pInRD->pEcx != NULL) {pOutCtx->Ecx = *pInRD->pEcx;} else {pInRD->pEcx = NULL;} if (pInRD->pEdx != NULL) {pOutCtx->Edx = *pInRD->pEdx;} else {pInRD->pEdx = NULL;} pOutCtx->Esp = pInRD->SP; pOutCtx->Eip = pInRD->ControlPC; #else // TARGET_X86 PORTABILITY_ASSERT("CopyRegDisplay"); #endif // _TARGET_???_ #else // FEATURE_EH_FUNCLETS *pOutCtx = *(pInRD->pCurrentContext); if (pInRD->IsCallerContextValid) { pOutCallerCtx = pInRD->pCallerContext; } #endif // FEATURE_EH_FUNCLETS if (pOutRD) FillRegDisplay(pOutRD, pOutCtx, pOutCallerCtx); } // Get address of a register in a CONTEXT given the reg number. For X86, // the reg number is the R/M number from ModR/M byte or base in SIB byte inline size_t * getRegAddr (unsigned regNum, PTR_CONTEXT regs) { #ifdef TARGET_X86 _ASSERTE(regNum < 8); static const SIZE_T OFFSET_OF_REGISTERS[] = { offsetof(CONTEXT, Eax), offsetof(CONTEXT, Ecx), offsetof(CONTEXT, Edx), offsetof(CONTEXT, Ebx), offsetof(CONTEXT, Esp), offsetof(CONTEXT, Ebp), offsetof(CONTEXT, Esi), offsetof(CONTEXT, Edi), }; return (PTR_size_t)(PTR_BYTE(regs) + OFFSET_OF_REGISTERS[regNum]); #elif defined(TARGET_AMD64) _ASSERTE(regNum < 16); return &regs->Rax + regNum; #elif defined(TARGET_ARM) _ASSERTE(regNum < 16); return (size_t *)&regs->R0 + regNum; #elif defined(TARGET_ARM64) _ASSERTE(regNum < 31); return (size_t *)&regs->X0 + regNum; #elif defined(TARGET_LOONGARCH64) _ASSERTE(regNum < 32); return (size_t *)&regs->R0 + regNum; #else _ASSERTE(!"@TODO Port - getRegAddr (Regdisp.h)"); #endif return(0); } //--------------------------------------------------------------------------------------- // // This is just a simpler helper function to convert a REGDISPLAY to a CONTEXT. // // Arguments: // pRegDisp - the REGDISPLAY to be converted // pContext - the buffer for storing the converted CONTEXT // inline void UpdateContextFromRegDisp(PREGDISPLAY pRegDisp, PT_CONTEXT pContext) { _ASSERTE((pRegDisp != NULL) && (pContext != NULL)); #ifndef FEATURE_EH_FUNCLETS #if defined(TARGET_X86) pContext->ContextFlags = (CONTEXT_INTEGER | CONTEXT_CONTROL); pContext->Edi = *pRegDisp->pEdi; pContext->Esi = *pRegDisp->pEsi; pContext->Ebx = *pRegDisp->pEbx; pContext->Ebp = *pRegDisp->pEbp; pContext->Eax = *pRegDisp->pEax; pContext->Ecx = *pRegDisp->pEcx; pContext->Edx = *pRegDisp->pEdx; pContext->Esp = pRegDisp->SP; pContext->Eip = pRegDisp->ControlPC; #else // TARGET_X86 PORTABILITY_ASSERT("UpdateContextFromRegDisp"); #endif // _TARGET_???_ #else // FEATURE_EH_FUNCLETS *pContext = *pRegDisp->pCurrentContext; #endif // FEATURE_EH_FUNCLETS } #endif // __REGDISP_H
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/inc/rt/oaidl.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // // =========================================================================== // File: oaidl.h // // =========================================================================== #ifndef __OAIDL_H__ #define __OAIDL_H__ #include "rpc.h" #include "rpcndr.h" #include "unknwn.h" typedef struct tagEXCEPINFO { WORD wCode; WORD wReserved; BSTR bstrSource; BSTR bstrDescription; BSTR bstrHelpFile; DWORD dwHelpContext; PVOID pvReserved; HRESULT (__stdcall *pfnDeferredFillIn)(struct tagEXCEPINFO *); SCODE scode; } EXCEPINFO, * LPEXCEPINFO; typedef interface IErrorInfo IErrorInfo; typedef /* [unique] */ IErrorInfo *LPERRORINFO; EXTERN_C const IID IID_IErrorInfo; interface IErrorInfo : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE GetGUID( /* [out] */ GUID *pGUID) = 0; virtual HRESULT STDMETHODCALLTYPE GetSource( /* [out] */ BSTR *pBstrSource) = 0; virtual HRESULT STDMETHODCALLTYPE GetDescription( /* [out] */ BSTR *pBstrDescription) = 0; virtual HRESULT STDMETHODCALLTYPE GetHelpFile( /* [out] */ BSTR *pBstrHelpFile) = 0; virtual HRESULT STDMETHODCALLTYPE GetHelpContext( /* [out] */ DWORD *pdwHelpContext) = 0; }; typedef interface ICreateErrorInfo ICreateErrorInfo; EXTERN_C const IID IID_ICreateErrorInfo; typedef /* [unique] */ ICreateErrorInfo *LPCREATEERRORINFO; interface ICreateErrorInfo : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE SetGUID( /* [in] */ REFGUID rguid) = 0; virtual HRESULT STDMETHODCALLTYPE SetSource( /* [in] */ LPOLESTR szSource) = 0; virtual HRESULT STDMETHODCALLTYPE SetDescription( /* [in] */ LPOLESTR szDescription) = 0; virtual HRESULT STDMETHODCALLTYPE SetHelpFile( /* [in] */ LPOLESTR szHelpFile) = 0; virtual HRESULT STDMETHODCALLTYPE SetHelpContext( /* [in] */ DWORD dwHelpContext) = 0; }; STDAPI SetErrorInfo(ULONG dwReserved, IErrorInfo FAR* perrinfo); STDAPI GetErrorInfo(ULONG dwReserved, IErrorInfo FAR* FAR* pperrinfo); STDAPI CreateErrorInfo(ICreateErrorInfo FAR* FAR* pperrinfo); typedef interface ISupportErrorInfo ISupportErrorInfo; typedef /* [unique] */ ISupportErrorInfo *LPSUPPORTERRORINFO; EXTERN_C const IID IID_ISupportErrorInfo; interface ISupportErrorInfo : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE InterfaceSupportsErrorInfo( /* [in] */ REFIID riid) = 0; }; #endif //__OAIDL_H__
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // // =========================================================================== // File: oaidl.h // // =========================================================================== #ifndef __OAIDL_H__ #define __OAIDL_H__ #include "rpc.h" #include "rpcndr.h" #include "unknwn.h" typedef struct tagEXCEPINFO { WORD wCode; WORD wReserved; BSTR bstrSource; BSTR bstrDescription; BSTR bstrHelpFile; DWORD dwHelpContext; PVOID pvReserved; HRESULT (__stdcall *pfnDeferredFillIn)(struct tagEXCEPINFO *); SCODE scode; } EXCEPINFO, * LPEXCEPINFO; typedef interface IErrorInfo IErrorInfo; typedef /* [unique] */ IErrorInfo *LPERRORINFO; EXTERN_C const IID IID_IErrorInfo; interface IErrorInfo : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE GetGUID( /* [out] */ GUID *pGUID) = 0; virtual HRESULT STDMETHODCALLTYPE GetSource( /* [out] */ BSTR *pBstrSource) = 0; virtual HRESULT STDMETHODCALLTYPE GetDescription( /* [out] */ BSTR *pBstrDescription) = 0; virtual HRESULT STDMETHODCALLTYPE GetHelpFile( /* [out] */ BSTR *pBstrHelpFile) = 0; virtual HRESULT STDMETHODCALLTYPE GetHelpContext( /* [out] */ DWORD *pdwHelpContext) = 0; }; typedef interface ICreateErrorInfo ICreateErrorInfo; EXTERN_C const IID IID_ICreateErrorInfo; typedef /* [unique] */ ICreateErrorInfo *LPCREATEERRORINFO; interface ICreateErrorInfo : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE SetGUID( /* [in] */ REFGUID rguid) = 0; virtual HRESULT STDMETHODCALLTYPE SetSource( /* [in] */ LPOLESTR szSource) = 0; virtual HRESULT STDMETHODCALLTYPE SetDescription( /* [in] */ LPOLESTR szDescription) = 0; virtual HRESULT STDMETHODCALLTYPE SetHelpFile( /* [in] */ LPOLESTR szHelpFile) = 0; virtual HRESULT STDMETHODCALLTYPE SetHelpContext( /* [in] */ DWORD dwHelpContext) = 0; }; STDAPI SetErrorInfo(ULONG dwReserved, IErrorInfo FAR* perrinfo); STDAPI GetErrorInfo(ULONG dwReserved, IErrorInfo FAR* FAR* pperrinfo); STDAPI CreateErrorInfo(ICreateErrorInfo FAR* FAR* pperrinfo); typedef interface ISupportErrorInfo ISupportErrorInfo; typedef /* [unique] */ ISupportErrorInfo *LPSUPPORTERRORINFO; EXTERN_C const IID IID_ISupportErrorInfo; interface ISupportErrorInfo : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE InterfaceSupportsErrorInfo( /* [in] */ REFIID riid) = 0; }; #endif //__OAIDL_H__
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/c_runtime/vfprintf/test14/test14.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test14.c ** ** Purpose: Test #14 for the vfprintf function. Tests the lowercase ** exponential notation double specifier (%e) ** ** **==========================================================================*/ #include <palsuite.h> #include "../vfprintf.h" PALTEST(c_runtime_vfprintf_test14_paltest_vfprintf_test14, "c_runtime/vfprintf/test14/paltest_vfprintf_test14") { double val = 256.0; double neg = -256.0; if (PAL_Initialize(argc, argv)) { return FAIL; } DoDoubleTest("foo %e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %le", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %he", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %Le", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %I64e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %14e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %-14e", val, "foo 2.560000e+002 ", "foo 2.560000e+02 "); DoDoubleTest("foo %.1e", val, "foo 2.6e+002", "foo 2.6e+02"); DoDoubleTest("foo %.8e", val, "foo 2.56000000e+002", "foo 2.56000000e+02"); DoDoubleTest("foo %014e", val, "foo 02.560000e+002", "foo 002.560000e+02"); DoDoubleTest("foo %#e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %+e", val, "foo +2.560000e+002", "foo +2.560000e+02"); DoDoubleTest("foo % e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %+e", neg, "foo -2.560000e+002", "foo -2.560000e+02"); DoDoubleTest("foo % e", neg, "foo -2.560000e+002", "foo -2.560000e+02"); 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: test14.c ** ** Purpose: Test #14 for the vfprintf function. Tests the lowercase ** exponential notation double specifier (%e) ** ** **==========================================================================*/ #include <palsuite.h> #include "../vfprintf.h" PALTEST(c_runtime_vfprintf_test14_paltest_vfprintf_test14, "c_runtime/vfprintf/test14/paltest_vfprintf_test14") { double val = 256.0; double neg = -256.0; if (PAL_Initialize(argc, argv)) { return FAIL; } DoDoubleTest("foo %e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %le", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %he", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %Le", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %I64e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %14e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %-14e", val, "foo 2.560000e+002 ", "foo 2.560000e+02 "); DoDoubleTest("foo %.1e", val, "foo 2.6e+002", "foo 2.6e+02"); DoDoubleTest("foo %.8e", val, "foo 2.56000000e+002", "foo 2.56000000e+02"); DoDoubleTest("foo %014e", val, "foo 02.560000e+002", "foo 002.560000e+02"); DoDoubleTest("foo %#e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %+e", val, "foo +2.560000e+002", "foo +2.560000e+02"); DoDoubleTest("foo % e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %+e", neg, "foo -2.560000e+002", "foo -2.560000e+02"); DoDoubleTest("foo % e", neg, "foo -2.560000e+002", "foo -2.560000e+02"); PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/argslot.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ============================================================================ // File: argslot.h // // ============================================================================ // Contains the ARG_SLOT type. #ifndef __ARG_SLOT_H__ #define __ARG_SLOT_H__ // The ARG_SLOT must be big enough to represent all pointer and basic types (except for 80-bit fp values). // So, it's guaranteed to be at least 64-bit. typedef unsigned __int64 ARG_SLOT; #define SIZEOF_ARG_SLOT 8 #if BIGENDIAN // Returns the address of the payload inside the argslot inline BYTE* ArgSlotEndianessFixup(ARG_SLOT* pArg, UINT cbSize) { LIMITED_METHOD_CONTRACT; BYTE* pBuf = (BYTE*)pArg; switch (cbSize) { case 1: pBuf += 7; break; case 2: pBuf += 6; break; case 4: pBuf += 4; break; } return pBuf; } #else #define ArgSlotEndianessFixup(pArg, cbSize) ((BYTE *)(pArg)) #endif #endif // __ARG_SLOT_H__
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ============================================================================ // File: argslot.h // // ============================================================================ // Contains the ARG_SLOT type. #ifndef __ARG_SLOT_H__ #define __ARG_SLOT_H__ // The ARG_SLOT must be big enough to represent all pointer and basic types (except for 80-bit fp values). // So, it's guaranteed to be at least 64-bit. typedef unsigned __int64 ARG_SLOT; #define SIZEOF_ARG_SLOT 8 #if BIGENDIAN // Returns the address of the payload inside the argslot inline BYTE* ArgSlotEndianessFixup(ARG_SLOT* pArg, UINT cbSize) { LIMITED_METHOD_CONTRACT; BYTE* pBuf = (BYTE*)pArg; switch (cbSize) { case 1: pBuf += 7; break; case 2: pBuf += 6; break; case 4: pBuf += 4; break; } return pBuf; } #else #define ArgSlotEndianessFixup(pArg, cbSize) ((BYTE *)(pArg)) #endif #endif // __ARG_SLOT_H__
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/src/libunwind/include/dwarf.h
/* libunwind - a platform-independent unwind library Copyright (c) 2003-2005 Hewlett-Packard Development Company, L.P. Contributed by David Mosberger-Tang <[email protected]> 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 dwarf_h #define dwarf_h #include <libunwind.h> #include <stdatomic.h> struct dwarf_cursor; /* forward-declaration */ struct elf_dyn_info; #include "dwarf-config.h" #ifdef HAVE_CONFIG_H # include "config.h" #endif #ifndef UNW_REMOTE_ONLY #if defined(HAVE_LINK_H) #include <link.h> #elif defined(HAVE_SYS_LINK_H) #include <sys/link.h> #else #error Could not find <link.h> #endif #if defined(__ANDROID__) && defined(__arm__) && __ANDROID_API__ < 21 int dl_iterate_phdr(int (*)(struct dl_phdr_info *, size_t, void *), void *); #endif #endif #include <pthread.h> /* DWARF expression opcodes. */ typedef enum { DW_OP_addr = 0x03, DW_OP_deref = 0x06, DW_OP_const1u = 0x08, DW_OP_const1s = 0x09, DW_OP_const2u = 0x0a, DW_OP_const2s = 0x0b, DW_OP_const4u = 0x0c, DW_OP_const4s = 0x0d, DW_OP_const8u = 0x0e, DW_OP_const8s = 0x0f, DW_OP_constu = 0x10, DW_OP_consts = 0x11, DW_OP_dup = 0x12, DW_OP_drop = 0x13, DW_OP_over = 0x14, DW_OP_pick = 0x15, DW_OP_swap = 0x16, DW_OP_rot = 0x17, DW_OP_xderef = 0x18, DW_OP_abs = 0x19, DW_OP_and = 0x1a, DW_OP_div = 0x1b, DW_OP_minus = 0x1c, DW_OP_mod = 0x1d, DW_OP_mul = 0x1e, DW_OP_neg = 0x1f, DW_OP_not = 0x20, DW_OP_or = 0x21, DW_OP_plus = 0x22, DW_OP_plus_uconst = 0x23, DW_OP_shl = 0x24, DW_OP_shr = 0x25, DW_OP_shra = 0x26, DW_OP_xor = 0x27, DW_OP_skip = 0x2f, DW_OP_bra = 0x28, DW_OP_eq = 0x29, DW_OP_ge = 0x2a, DW_OP_gt = 0x2b, DW_OP_le = 0x2c, DW_OP_lt = 0x2d, DW_OP_ne = 0x2e, DW_OP_lit0 = 0x30, DW_OP_lit1, DW_OP_lit2, DW_OP_lit3, DW_OP_lit4, DW_OP_lit5, DW_OP_lit6, DW_OP_lit7, DW_OP_lit8, DW_OP_lit9, DW_OP_lit10, DW_OP_lit11, DW_OP_lit12, DW_OP_lit13, DW_OP_lit14, DW_OP_lit15, DW_OP_lit16, DW_OP_lit17, DW_OP_lit18, DW_OP_lit19, DW_OP_lit20, DW_OP_lit21, DW_OP_lit22, DW_OP_lit23, DW_OP_lit24, DW_OP_lit25, DW_OP_lit26, DW_OP_lit27, DW_OP_lit28, DW_OP_lit29, DW_OP_lit30, DW_OP_lit31, DW_OP_reg0 = 0x50, DW_OP_reg1, DW_OP_reg2, DW_OP_reg3, DW_OP_reg4, DW_OP_reg5, DW_OP_reg6, DW_OP_reg7, DW_OP_reg8, DW_OP_reg9, DW_OP_reg10, DW_OP_reg11, DW_OP_reg12, DW_OP_reg13, DW_OP_reg14, DW_OP_reg15, DW_OP_reg16, DW_OP_reg17, DW_OP_reg18, DW_OP_reg19, DW_OP_reg20, DW_OP_reg21, DW_OP_reg22, DW_OP_reg23, DW_OP_reg24, DW_OP_reg25, DW_OP_reg26, DW_OP_reg27, DW_OP_reg28, DW_OP_reg29, DW_OP_reg30, DW_OP_reg31, DW_OP_breg0 = 0x70, DW_OP_breg1, DW_OP_breg2, DW_OP_breg3, DW_OP_breg4, DW_OP_breg5, DW_OP_breg6, DW_OP_breg7, DW_OP_breg8, DW_OP_breg9, DW_OP_breg10, DW_OP_breg11, DW_OP_breg12, DW_OP_breg13, DW_OP_breg14, DW_OP_breg15, DW_OP_breg16, DW_OP_breg17, DW_OP_breg18, DW_OP_breg19, DW_OP_breg20, DW_OP_breg21, DW_OP_breg22, DW_OP_breg23, DW_OP_breg24, DW_OP_breg25, DW_OP_breg26, DW_OP_breg27, DW_OP_breg28, DW_OP_breg29, DW_OP_breg30, DW_OP_breg31, DW_OP_regx = 0x90, DW_OP_fbreg = 0x91, DW_OP_bregx = 0x92, DW_OP_piece = 0x93, DW_OP_deref_size = 0x94, DW_OP_xderef_size = 0x95, DW_OP_nop = 0x96, DW_OP_push_object_address = 0x97, DW_OP_call2 = 0x98, DW_OP_call4 = 0x99, DW_OP_call_ref = 0x9a, DW_OP_lo_user = 0xe0, DW_OP_hi_user = 0xff } dwarf_expr_op_t; #define DWARF_CIE_VERSION 3 #define DWARF_CIE_VERSION_MAX 4 #define DWARF_CFA_OPCODE_MASK 0xc0 #define DWARF_CFA_OPERAND_MASK 0x3f typedef enum { DW_CFA_advance_loc = 0x40, DW_CFA_offset = 0x80, DW_CFA_restore = 0xc0, DW_CFA_nop = 0x00, DW_CFA_set_loc = 0x01, DW_CFA_advance_loc1 = 0x02, DW_CFA_advance_loc2 = 0x03, DW_CFA_advance_loc4 = 0x04, DW_CFA_offset_extended = 0x05, DW_CFA_restore_extended = 0x06, DW_CFA_undefined = 0x07, DW_CFA_same_value = 0x08, DW_CFA_register = 0x09, DW_CFA_remember_state = 0x0a, DW_CFA_restore_state = 0x0b, DW_CFA_def_cfa = 0x0c, DW_CFA_def_cfa_register = 0x0d, DW_CFA_def_cfa_offset = 0x0e, DW_CFA_def_cfa_expression = 0x0f, DW_CFA_expression = 0x10, DW_CFA_offset_extended_sf = 0x11, DW_CFA_def_cfa_sf = 0x12, DW_CFA_def_cfa_offset_sf = 0x13, DW_CFA_val_expression = 0x16, DW_CFA_lo_user = 0x1c, DW_CFA_MIPS_advance_loc8 = 0x1d, DW_CFA_GNU_window_save = 0x2d, DW_CFA_GNU_args_size = 0x2e, DW_CFA_GNU_negative_offset_extended = 0x2f, DW_CFA_hi_user = 0x3c } dwarf_cfa_t; /* DWARF Pointer-Encoding (PEs). Pointer-Encodings were invented for the GCC exception-handling support for C++, but they represent a rather generic way of describing the format in which an address/pointer is stored and hence we include the definitions here, in the main dwarf.h file. The Pointer-Encoding format is partially documented in Linux Base Spec v1.3 (http://www.linuxbase.org/spec/). The rest is reverse engineered from GCC. */ #define DW_EH_PE_FORMAT_MASK 0x0f /* format of the encoded value */ #define DW_EH_PE_APPL_MASK 0x70 /* how the value is to be applied */ /* Flag bit. If set, the resulting pointer is the address of the word that contains the final address. */ #define DW_EH_PE_indirect 0x80 /* Pointer-encoding formats: */ #define DW_EH_PE_omit 0xff #define DW_EH_PE_ptr 0x00 /* pointer-sized unsigned value */ #define DW_EH_PE_uleb128 0x01 /* unsigned LE base-128 value */ #define DW_EH_PE_udata2 0x02 /* unsigned 16-bit value */ #define DW_EH_PE_udata4 0x03 /* unsigned 32-bit value */ #define DW_EH_PE_udata8 0x04 /* unsigned 64-bit value */ #define DW_EH_PE_sleb128 0x09 /* signed LE base-128 value */ #define DW_EH_PE_sdata2 0x0a /* signed 16-bit value */ #define DW_EH_PE_sdata4 0x0b /* signed 32-bit value */ #define DW_EH_PE_sdata8 0x0c /* signed 64-bit value */ /* Pointer-encoding application: */ #define DW_EH_PE_absptr 0x00 /* absolute value */ #define DW_EH_PE_pcrel 0x10 /* rel. to addr. of encoded value */ #define DW_EH_PE_textrel 0x20 /* text-relative (GCC-specific???) */ #define DW_EH_PE_datarel 0x30 /* data-relative */ /* The following are not documented by LSB v1.3, yet they are used by GCC, presumably they aren't documented by LSB since they aren't used on Linux: */ #define DW_EH_PE_funcrel 0x40 /* start-of-procedure-relative */ #define DW_EH_PE_aligned 0x50 /* aligned pointer */ extern struct mempool dwarf_reg_state_pool; extern struct mempool dwarf_cie_info_pool; typedef enum { DWARF_WHERE_UNDEF, /* register isn't saved at all */ DWARF_WHERE_SAME, /* register has same value as in prev. frame */ DWARF_WHERE_CFAREL, /* register saved at CFA-relative address */ DWARF_WHERE_REG, /* register saved in another register */ DWARF_WHERE_EXPR, /* register saved */ DWARF_WHERE_VAL_EXPR, /* register has computed value */ } dwarf_where_t; /* For uniformity, we'd like to treat the CFA save-location like any other register save-location, but this doesn't quite work, because the CFA can be expressed as a (REGISTER,OFFSET) pair. To handle this, we use two dwarf_save_loc structures to describe the CFA. The first one (CFA_REG_COLUMN), tells us where the CFA is saved. In the case of DWARF_WHERE_EXPR, the CFA is defined by a DWARF location expression whose address is given by member "val". In the case of DWARF_WHERE_REG, member "val" gives the number of the base-register and the "val" member of DWARF_CFA_OFF_COLUMN gives the offset value. */ #define DWARF_CFA_REG_COLUMN DWARF_NUM_PRESERVED_REGS #define DWARF_CFA_OFF_COLUMN (DWARF_NUM_PRESERVED_REGS + 1) typedef struct dwarf_reg_only_state { char where[DWARF_NUM_PRESERVED_REGS + 2]; /* how is the register saved? */ unw_word_t val[DWARF_NUM_PRESERVED_REGS + 2]; /* where it's saved */ } dwarf_reg_only_state_t; typedef struct dwarf_reg_state { unw_word_t ret_addr_column; /* which column in rule table represents return address */ dwarf_reg_only_state_t reg; } dwarf_reg_state_t; typedef struct dwarf_stackable_reg_state { struct dwarf_stackable_reg_state *next; /* for rs_stack */ dwarf_reg_state_t state; } dwarf_stackable_reg_state_t; typedef struct dwarf_reg_cache_entry { unw_word_t ip; /* ip this rs is for */ unsigned short coll_chain; /* used for hash collisions */ unsigned short hint; /* hint for next rs to try (or -1) */ unsigned short valid : 1; /* optional machine-dependent signal info */ unsigned short signal_frame : 1; /* optional machine-dependent signal info */ } dwarf_reg_cache_entry_t; typedef struct dwarf_cie_info { unw_word_t cie_instr_start; /* start addr. of CIE "initial_instructions" */ unw_word_t cie_instr_end; /* end addr. of CIE "initial_instructions" */ unw_word_t fde_instr_start; /* start addr. of FDE "instructions" */ unw_word_t fde_instr_end; /* end addr. of FDE "instructions" */ unw_word_t code_align; /* code-alignment factor */ unw_word_t data_align; /* data-alignment factor */ unw_word_t ret_addr_column; /* column of return-address register */ unw_word_t handler; /* address of personality-routine */ uint16_t abi; uint16_t tag; uint8_t fde_encoding; uint8_t lsda_encoding; unsigned int sized_augmentation : 1; unsigned int have_abi_marker : 1; unsigned int signal_frame : 1; } dwarf_cie_info_t; typedef struct dwarf_state_record { unsigned char fde_encoding; unw_word_t args_size; dwarf_reg_state_t rs_initial; /* reg-state after CIE instructions */ dwarf_reg_state_t rs_current; /* current reg-state */ } dwarf_state_record_t; typedef struct dwarf_cursor { void *as_arg; /* argument to address-space callbacks */ unw_addr_space_t as; /* reference to per-address-space info */ unw_word_t cfa; /* canonical frame address; aka frame-/stack-pointer */ unw_word_t ip; /* instruction pointer */ unw_word_t args_size; /* size of arguments */ unw_word_t eh_args[UNW_TDEP_NUM_EH_REGS]; unsigned int eh_valid_mask; dwarf_loc_t loc[DWARF_NUM_PRESERVED_REGS]; unsigned int stash_frames :1; /* stash frames for fast lookup */ unsigned int use_prev_instr :1; /* use previous (= call) or current (= signal) instruction? */ unsigned int pi_valid :1; /* is proc_info valid? */ unsigned int pi_is_dynamic :1; /* proc_info found via dynamic proc info? */ unw_proc_info_t pi; /* info about current procedure */ short hint; /* faster lookup of the rs cache */ short prev_rs; } dwarf_cursor_t; #define DWARF_DEFAULT_LOG_UNW_CACHE_SIZE 7 #define DWARF_DEFAULT_UNW_CACHE_SIZE (1 << DWARF_DEFAULT_LOG_UNW_CACHE_SIZE) #define DWARF_DEFAULT_LOG_UNW_HASH_SIZE (DWARF_DEFAULT_LOG_UNW_CACHE_SIZE + 1) #define DWARF_DEFAULT_UNW_HASH_SIZE (1 << DWARF_DEFAULT_LOG_UNW_HASH_SIZE) typedef unsigned char unw_hash_index_t; struct dwarf_rs_cache { pthread_mutex_t lock; unsigned short rr_head; /* index of least-recently allocated rs */ unsigned short log_size; unsigned short prev_log_size; /* hash table that maps instruction pointer to rs index: */ unsigned short *hash; _Atomic uint32_t generation; /* generation number */ /* rs cache: */ dwarf_reg_state_t *buckets; dwarf_reg_cache_entry_t *links; /* default memory, loaded in BSS segment */ unsigned short default_hash[DWARF_DEFAULT_UNW_HASH_SIZE]; dwarf_reg_state_t default_buckets[DWARF_DEFAULT_UNW_CACHE_SIZE]; dwarf_reg_cache_entry_t default_links[DWARF_DEFAULT_UNW_CACHE_SIZE]; }; /* A list of descriptors for loaded .debug_frame sections. */ struct unw_debug_frame_list { /* The start (inclusive) and end (exclusive) of the described region. */ unw_word_t start; unw_word_t end; /* ELF load offset */ unw_word_t load_offset; /* The debug frame itself. */ char *debug_frame; size_t debug_frame_size; /* Index (for binary search). */ struct table_entry *index; size_t index_size; /* Pointer to next descriptor. */ struct unw_debug_frame_list *next; }; /* Convenience macros: */ #define dwarf_init UNW_ARCH_OBJ (dwarf_init) #define dwarf_callback UNW_OBJ (dwarf_callback) #define dwarf_find_proc_info UNW_OBJ (dwarf_find_proc_info) #define dwarf_find_debug_frame UNW_OBJ (dwarf_find_debug_frame) #define dwarf_search_unwind_table UNW_OBJ (dwarf_search_unwind_table) #define dwarf_find_unwind_table UNW_OBJ (dwarf_find_unwind_table) #define dwarf_put_unwind_info UNW_OBJ (dwarf_put_unwind_info) #define dwarf_put_unwind_info UNW_OBJ (dwarf_put_unwind_info) #define dwarf_eval_expr UNW_OBJ (dwarf_eval_expr) #define dwarf_stack_aligned UNW_OBJ (dwarf_stack_aligned) #define dwarf_extract_proc_info_from_fde \ UNW_OBJ (dwarf_extract_proc_info_from_fde) #define dwarf_find_save_locs UNW_OBJ (dwarf_find_save_locs) #define dwarf_make_proc_info UNW_OBJ (dwarf_make_proc_info) #define dwarf_apply_reg_state UNW_OBJ (dwarf_apply_reg_state) #define dwarf_reg_states_iterate UNW_OBJ (dwarf_reg_states_iterate) #define dwarf_read_encoded_pointer UNW_OBJ (dwarf_read_encoded_pointer) #define dwarf_step UNW_OBJ (dwarf_step) #define dwarf_flush_rs_cache UNW_OBJ (dwarf_flush_rs_cache) extern int dwarf_init (void); #ifndef UNW_REMOTE_ONLY extern int dwarf_callback (struct dl_phdr_info *info, size_t size, void *ptr); extern int dwarf_find_proc_info (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, int need_unwind_info, void *arg); #endif /* !UNW_REMOTE_ONLY */ extern int dwarf_find_debug_frame (int found, unw_dyn_info_t *di_debug, unw_word_t ip, unw_word_t segbase, const char* obj_name, unw_word_t start, unw_word_t end); extern int dwarf_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 int dwarf_find_unwind_table (struct elf_dyn_info *edi, unw_addr_space_t as, char *path, unw_word_t segbase, unw_word_t mapoff, unw_word_t ip); extern void dwarf_put_unwind_info (unw_addr_space_t as, unw_proc_info_t *pi, void *arg); extern int dwarf_eval_expr (struct dwarf_cursor *c, unw_word_t stack_val, unw_word_t *addr, unw_word_t len, unw_word_t *valp, int *is_register); extern int dwarf_stack_aligned(struct dwarf_cursor *c, unw_word_t cfa_addr, unw_word_t rbp_addr, unw_word_t *offset); extern int dwarf_extract_proc_info_from_fde (unw_addr_space_t as, unw_accessors_t *a, unw_word_t *fde_addr, unw_proc_info_t *pi, unw_word_t base, int need_unwind_info, int is_debug_frame, void *arg); extern int dwarf_find_save_locs (struct dwarf_cursor *c); extern int dwarf_make_proc_info (struct dwarf_cursor *c); extern int dwarf_apply_reg_state (struct dwarf_cursor *c, struct dwarf_reg_state *rs); extern int dwarf_reg_states_iterate (struct dwarf_cursor *c, unw_reg_states_callback cb, void *token); extern int dwarf_read_encoded_pointer (unw_addr_space_t as, unw_accessors_t *a, unw_word_t *addr, unsigned char encoding, const unw_proc_info_t *pi, unw_word_t *valp, void *arg); extern int dwarf_step (struct dwarf_cursor *c); extern int dwarf_flush_rs_cache (struct dwarf_rs_cache *cache); #endif /* dwarf_h */
/* libunwind - a platform-independent unwind library Copyright (c) 2003-2005 Hewlett-Packard Development Company, L.P. Contributed by David Mosberger-Tang <[email protected]> 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 dwarf_h #define dwarf_h #include <libunwind.h> #include <stdatomic.h> struct dwarf_cursor; /* forward-declaration */ struct elf_dyn_info; #include "dwarf-config.h" #ifdef HAVE_CONFIG_H # include "config.h" #endif #ifndef UNW_REMOTE_ONLY #if defined(HAVE_LINK_H) #include <link.h> #elif defined(HAVE_SYS_LINK_H) #include <sys/link.h> #else #error Could not find <link.h> #endif #if defined(__ANDROID__) && defined(__arm__) && __ANDROID_API__ < 21 int dl_iterate_phdr(int (*)(struct dl_phdr_info *, size_t, void *), void *); #endif #endif #include <pthread.h> /* DWARF expression opcodes. */ typedef enum { DW_OP_addr = 0x03, DW_OP_deref = 0x06, DW_OP_const1u = 0x08, DW_OP_const1s = 0x09, DW_OP_const2u = 0x0a, DW_OP_const2s = 0x0b, DW_OP_const4u = 0x0c, DW_OP_const4s = 0x0d, DW_OP_const8u = 0x0e, DW_OP_const8s = 0x0f, DW_OP_constu = 0x10, DW_OP_consts = 0x11, DW_OP_dup = 0x12, DW_OP_drop = 0x13, DW_OP_over = 0x14, DW_OP_pick = 0x15, DW_OP_swap = 0x16, DW_OP_rot = 0x17, DW_OP_xderef = 0x18, DW_OP_abs = 0x19, DW_OP_and = 0x1a, DW_OP_div = 0x1b, DW_OP_minus = 0x1c, DW_OP_mod = 0x1d, DW_OP_mul = 0x1e, DW_OP_neg = 0x1f, DW_OP_not = 0x20, DW_OP_or = 0x21, DW_OP_plus = 0x22, DW_OP_plus_uconst = 0x23, DW_OP_shl = 0x24, DW_OP_shr = 0x25, DW_OP_shra = 0x26, DW_OP_xor = 0x27, DW_OP_skip = 0x2f, DW_OP_bra = 0x28, DW_OP_eq = 0x29, DW_OP_ge = 0x2a, DW_OP_gt = 0x2b, DW_OP_le = 0x2c, DW_OP_lt = 0x2d, DW_OP_ne = 0x2e, DW_OP_lit0 = 0x30, DW_OP_lit1, DW_OP_lit2, DW_OP_lit3, DW_OP_lit4, DW_OP_lit5, DW_OP_lit6, DW_OP_lit7, DW_OP_lit8, DW_OP_lit9, DW_OP_lit10, DW_OP_lit11, DW_OP_lit12, DW_OP_lit13, DW_OP_lit14, DW_OP_lit15, DW_OP_lit16, DW_OP_lit17, DW_OP_lit18, DW_OP_lit19, DW_OP_lit20, DW_OP_lit21, DW_OP_lit22, DW_OP_lit23, DW_OP_lit24, DW_OP_lit25, DW_OP_lit26, DW_OP_lit27, DW_OP_lit28, DW_OP_lit29, DW_OP_lit30, DW_OP_lit31, DW_OP_reg0 = 0x50, DW_OP_reg1, DW_OP_reg2, DW_OP_reg3, DW_OP_reg4, DW_OP_reg5, DW_OP_reg6, DW_OP_reg7, DW_OP_reg8, DW_OP_reg9, DW_OP_reg10, DW_OP_reg11, DW_OP_reg12, DW_OP_reg13, DW_OP_reg14, DW_OP_reg15, DW_OP_reg16, DW_OP_reg17, DW_OP_reg18, DW_OP_reg19, DW_OP_reg20, DW_OP_reg21, DW_OP_reg22, DW_OP_reg23, DW_OP_reg24, DW_OP_reg25, DW_OP_reg26, DW_OP_reg27, DW_OP_reg28, DW_OP_reg29, DW_OP_reg30, DW_OP_reg31, DW_OP_breg0 = 0x70, DW_OP_breg1, DW_OP_breg2, DW_OP_breg3, DW_OP_breg4, DW_OP_breg5, DW_OP_breg6, DW_OP_breg7, DW_OP_breg8, DW_OP_breg9, DW_OP_breg10, DW_OP_breg11, DW_OP_breg12, DW_OP_breg13, DW_OP_breg14, DW_OP_breg15, DW_OP_breg16, DW_OP_breg17, DW_OP_breg18, DW_OP_breg19, DW_OP_breg20, DW_OP_breg21, DW_OP_breg22, DW_OP_breg23, DW_OP_breg24, DW_OP_breg25, DW_OP_breg26, DW_OP_breg27, DW_OP_breg28, DW_OP_breg29, DW_OP_breg30, DW_OP_breg31, DW_OP_regx = 0x90, DW_OP_fbreg = 0x91, DW_OP_bregx = 0x92, DW_OP_piece = 0x93, DW_OP_deref_size = 0x94, DW_OP_xderef_size = 0x95, DW_OP_nop = 0x96, DW_OP_push_object_address = 0x97, DW_OP_call2 = 0x98, DW_OP_call4 = 0x99, DW_OP_call_ref = 0x9a, DW_OP_lo_user = 0xe0, DW_OP_hi_user = 0xff } dwarf_expr_op_t; #define DWARF_CIE_VERSION 3 #define DWARF_CIE_VERSION_MAX 4 #define DWARF_CFA_OPCODE_MASK 0xc0 #define DWARF_CFA_OPERAND_MASK 0x3f typedef enum { DW_CFA_advance_loc = 0x40, DW_CFA_offset = 0x80, DW_CFA_restore = 0xc0, DW_CFA_nop = 0x00, DW_CFA_set_loc = 0x01, DW_CFA_advance_loc1 = 0x02, DW_CFA_advance_loc2 = 0x03, DW_CFA_advance_loc4 = 0x04, DW_CFA_offset_extended = 0x05, DW_CFA_restore_extended = 0x06, DW_CFA_undefined = 0x07, DW_CFA_same_value = 0x08, DW_CFA_register = 0x09, DW_CFA_remember_state = 0x0a, DW_CFA_restore_state = 0x0b, DW_CFA_def_cfa = 0x0c, DW_CFA_def_cfa_register = 0x0d, DW_CFA_def_cfa_offset = 0x0e, DW_CFA_def_cfa_expression = 0x0f, DW_CFA_expression = 0x10, DW_CFA_offset_extended_sf = 0x11, DW_CFA_def_cfa_sf = 0x12, DW_CFA_def_cfa_offset_sf = 0x13, DW_CFA_val_expression = 0x16, DW_CFA_lo_user = 0x1c, DW_CFA_MIPS_advance_loc8 = 0x1d, DW_CFA_GNU_window_save = 0x2d, DW_CFA_GNU_args_size = 0x2e, DW_CFA_GNU_negative_offset_extended = 0x2f, DW_CFA_hi_user = 0x3c } dwarf_cfa_t; /* DWARF Pointer-Encoding (PEs). Pointer-Encodings were invented for the GCC exception-handling support for C++, but they represent a rather generic way of describing the format in which an address/pointer is stored and hence we include the definitions here, in the main dwarf.h file. The Pointer-Encoding format is partially documented in Linux Base Spec v1.3 (http://www.linuxbase.org/spec/). The rest is reverse engineered from GCC. */ #define DW_EH_PE_FORMAT_MASK 0x0f /* format of the encoded value */ #define DW_EH_PE_APPL_MASK 0x70 /* how the value is to be applied */ /* Flag bit. If set, the resulting pointer is the address of the word that contains the final address. */ #define DW_EH_PE_indirect 0x80 /* Pointer-encoding formats: */ #define DW_EH_PE_omit 0xff #define DW_EH_PE_ptr 0x00 /* pointer-sized unsigned value */ #define DW_EH_PE_uleb128 0x01 /* unsigned LE base-128 value */ #define DW_EH_PE_udata2 0x02 /* unsigned 16-bit value */ #define DW_EH_PE_udata4 0x03 /* unsigned 32-bit value */ #define DW_EH_PE_udata8 0x04 /* unsigned 64-bit value */ #define DW_EH_PE_sleb128 0x09 /* signed LE base-128 value */ #define DW_EH_PE_sdata2 0x0a /* signed 16-bit value */ #define DW_EH_PE_sdata4 0x0b /* signed 32-bit value */ #define DW_EH_PE_sdata8 0x0c /* signed 64-bit value */ /* Pointer-encoding application: */ #define DW_EH_PE_absptr 0x00 /* absolute value */ #define DW_EH_PE_pcrel 0x10 /* rel. to addr. of encoded value */ #define DW_EH_PE_textrel 0x20 /* text-relative (GCC-specific???) */ #define DW_EH_PE_datarel 0x30 /* data-relative */ /* The following are not documented by LSB v1.3, yet they are used by GCC, presumably they aren't documented by LSB since they aren't used on Linux: */ #define DW_EH_PE_funcrel 0x40 /* start-of-procedure-relative */ #define DW_EH_PE_aligned 0x50 /* aligned pointer */ extern struct mempool dwarf_reg_state_pool; extern struct mempool dwarf_cie_info_pool; typedef enum { DWARF_WHERE_UNDEF, /* register isn't saved at all */ DWARF_WHERE_SAME, /* register has same value as in prev. frame */ DWARF_WHERE_CFAREL, /* register saved at CFA-relative address */ DWARF_WHERE_REG, /* register saved in another register */ DWARF_WHERE_EXPR, /* register saved */ DWARF_WHERE_VAL_EXPR, /* register has computed value */ } dwarf_where_t; /* For uniformity, we'd like to treat the CFA save-location like any other register save-location, but this doesn't quite work, because the CFA can be expressed as a (REGISTER,OFFSET) pair. To handle this, we use two dwarf_save_loc structures to describe the CFA. The first one (CFA_REG_COLUMN), tells us where the CFA is saved. In the case of DWARF_WHERE_EXPR, the CFA is defined by a DWARF location expression whose address is given by member "val". In the case of DWARF_WHERE_REG, member "val" gives the number of the base-register and the "val" member of DWARF_CFA_OFF_COLUMN gives the offset value. */ #define DWARF_CFA_REG_COLUMN DWARF_NUM_PRESERVED_REGS #define DWARF_CFA_OFF_COLUMN (DWARF_NUM_PRESERVED_REGS + 1) typedef struct dwarf_reg_only_state { char where[DWARF_NUM_PRESERVED_REGS + 2]; /* how is the register saved? */ unw_word_t val[DWARF_NUM_PRESERVED_REGS + 2]; /* where it's saved */ } dwarf_reg_only_state_t; typedef struct dwarf_reg_state { unw_word_t ret_addr_column; /* which column in rule table represents return address */ dwarf_reg_only_state_t reg; } dwarf_reg_state_t; typedef struct dwarf_stackable_reg_state { struct dwarf_stackable_reg_state *next; /* for rs_stack */ dwarf_reg_state_t state; } dwarf_stackable_reg_state_t; typedef struct dwarf_reg_cache_entry { unw_word_t ip; /* ip this rs is for */ unsigned short coll_chain; /* used for hash collisions */ unsigned short hint; /* hint for next rs to try (or -1) */ unsigned short valid : 1; /* optional machine-dependent signal info */ unsigned short signal_frame : 1; /* optional machine-dependent signal info */ } dwarf_reg_cache_entry_t; typedef struct dwarf_cie_info { unw_word_t cie_instr_start; /* start addr. of CIE "initial_instructions" */ unw_word_t cie_instr_end; /* end addr. of CIE "initial_instructions" */ unw_word_t fde_instr_start; /* start addr. of FDE "instructions" */ unw_word_t fde_instr_end; /* end addr. of FDE "instructions" */ unw_word_t code_align; /* code-alignment factor */ unw_word_t data_align; /* data-alignment factor */ unw_word_t ret_addr_column; /* column of return-address register */ unw_word_t handler; /* address of personality-routine */ uint16_t abi; uint16_t tag; uint8_t fde_encoding; uint8_t lsda_encoding; unsigned int sized_augmentation : 1; unsigned int have_abi_marker : 1; unsigned int signal_frame : 1; } dwarf_cie_info_t; typedef struct dwarf_state_record { unsigned char fde_encoding; unw_word_t args_size; dwarf_reg_state_t rs_initial; /* reg-state after CIE instructions */ dwarf_reg_state_t rs_current; /* current reg-state */ } dwarf_state_record_t; typedef struct dwarf_cursor { void *as_arg; /* argument to address-space callbacks */ unw_addr_space_t as; /* reference to per-address-space info */ unw_word_t cfa; /* canonical frame address; aka frame-/stack-pointer */ unw_word_t ip; /* instruction pointer */ unw_word_t args_size; /* size of arguments */ unw_word_t eh_args[UNW_TDEP_NUM_EH_REGS]; unsigned int eh_valid_mask; dwarf_loc_t loc[DWARF_NUM_PRESERVED_REGS]; unsigned int stash_frames :1; /* stash frames for fast lookup */ unsigned int use_prev_instr :1; /* use previous (= call) or current (= signal) instruction? */ unsigned int pi_valid :1; /* is proc_info valid? */ unsigned int pi_is_dynamic :1; /* proc_info found via dynamic proc info? */ unw_proc_info_t pi; /* info about current procedure */ short hint; /* faster lookup of the rs cache */ short prev_rs; } dwarf_cursor_t; #define DWARF_DEFAULT_LOG_UNW_CACHE_SIZE 7 #define DWARF_DEFAULT_UNW_CACHE_SIZE (1 << DWARF_DEFAULT_LOG_UNW_CACHE_SIZE) #define DWARF_DEFAULT_LOG_UNW_HASH_SIZE (DWARF_DEFAULT_LOG_UNW_CACHE_SIZE + 1) #define DWARF_DEFAULT_UNW_HASH_SIZE (1 << DWARF_DEFAULT_LOG_UNW_HASH_SIZE) typedef unsigned char unw_hash_index_t; struct dwarf_rs_cache { pthread_mutex_t lock; unsigned short rr_head; /* index of least-recently allocated rs */ unsigned short log_size; unsigned short prev_log_size; /* hash table that maps instruction pointer to rs index: */ unsigned short *hash; _Atomic uint32_t generation; /* generation number */ /* rs cache: */ dwarf_reg_state_t *buckets; dwarf_reg_cache_entry_t *links; /* default memory, loaded in BSS segment */ unsigned short default_hash[DWARF_DEFAULT_UNW_HASH_SIZE]; dwarf_reg_state_t default_buckets[DWARF_DEFAULT_UNW_CACHE_SIZE]; dwarf_reg_cache_entry_t default_links[DWARF_DEFAULT_UNW_CACHE_SIZE]; }; /* A list of descriptors for loaded .debug_frame sections. */ struct unw_debug_frame_list { /* The start (inclusive) and end (exclusive) of the described region. */ unw_word_t start; unw_word_t end; /* ELF load offset */ unw_word_t load_offset; /* The debug frame itself. */ char *debug_frame; size_t debug_frame_size; /* Index (for binary search). */ struct table_entry *index; size_t index_size; /* Pointer to next descriptor. */ struct unw_debug_frame_list *next; }; /* Convenience macros: */ #define dwarf_init UNW_ARCH_OBJ (dwarf_init) #define dwarf_callback UNW_OBJ (dwarf_callback) #define dwarf_find_proc_info UNW_OBJ (dwarf_find_proc_info) #define dwarf_find_debug_frame UNW_OBJ (dwarf_find_debug_frame) #define dwarf_search_unwind_table UNW_OBJ (dwarf_search_unwind_table) #define dwarf_find_unwind_table UNW_OBJ (dwarf_find_unwind_table) #define dwarf_put_unwind_info UNW_OBJ (dwarf_put_unwind_info) #define dwarf_put_unwind_info UNW_OBJ (dwarf_put_unwind_info) #define dwarf_eval_expr UNW_OBJ (dwarf_eval_expr) #define dwarf_stack_aligned UNW_OBJ (dwarf_stack_aligned) #define dwarf_extract_proc_info_from_fde \ UNW_OBJ (dwarf_extract_proc_info_from_fde) #define dwarf_find_save_locs UNW_OBJ (dwarf_find_save_locs) #define dwarf_make_proc_info UNW_OBJ (dwarf_make_proc_info) #define dwarf_apply_reg_state UNW_OBJ (dwarf_apply_reg_state) #define dwarf_reg_states_iterate UNW_OBJ (dwarf_reg_states_iterate) #define dwarf_read_encoded_pointer UNW_OBJ (dwarf_read_encoded_pointer) #define dwarf_step UNW_OBJ (dwarf_step) #define dwarf_flush_rs_cache UNW_OBJ (dwarf_flush_rs_cache) extern int dwarf_init (void); #ifndef UNW_REMOTE_ONLY extern int dwarf_callback (struct dl_phdr_info *info, size_t size, void *ptr); extern int dwarf_find_proc_info (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, int need_unwind_info, void *arg); #endif /* !UNW_REMOTE_ONLY */ extern int dwarf_find_debug_frame (int found, unw_dyn_info_t *di_debug, unw_word_t ip, unw_word_t segbase, const char* obj_name, unw_word_t start, unw_word_t end); extern int dwarf_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 int dwarf_find_unwind_table (struct elf_dyn_info *edi, unw_addr_space_t as, char *path, unw_word_t segbase, unw_word_t mapoff, unw_word_t ip); extern void dwarf_put_unwind_info (unw_addr_space_t as, unw_proc_info_t *pi, void *arg); extern int dwarf_eval_expr (struct dwarf_cursor *c, unw_word_t stack_val, unw_word_t *addr, unw_word_t len, unw_word_t *valp, int *is_register); extern int dwarf_stack_aligned(struct dwarf_cursor *c, unw_word_t cfa_addr, unw_word_t rbp_addr, unw_word_t *offset); extern int dwarf_extract_proc_info_from_fde (unw_addr_space_t as, unw_accessors_t *a, unw_word_t *fde_addr, unw_proc_info_t *pi, unw_word_t base, int need_unwind_info, int is_debug_frame, void *arg); extern int dwarf_find_save_locs (struct dwarf_cursor *c); extern int dwarf_make_proc_info (struct dwarf_cursor *c); extern int dwarf_apply_reg_state (struct dwarf_cursor *c, struct dwarf_reg_state *rs); extern int dwarf_reg_states_iterate (struct dwarf_cursor *c, unw_reg_states_callback cb, void *token); extern int dwarf_read_encoded_pointer (unw_addr_space_t as, unw_accessors_t *a, unw_word_t *addr, unsigned char encoding, const unw_proc_info_t *pi, unw_word_t *valp, void *arg); extern int dwarf_step (struct dwarf_cursor *c); extern int dwarf_flush_rs_cache (struct dwarf_rs_cache *cache); #endif /* dwarf_h */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/native/public/mono/metadata/details/threads-types.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // #ifndef _MONO_METADATA_DETAILS_THREADS_TYPES_H #define _MONO_METADATA_DETAILS_THREADS_TYPES_H #include <mono/utils/details/mono-publib-types.h> #include <mono/metadata/details/object-types.h> #include <mono/metadata/details/appdomain-types.h> MONO_BEGIN_DECLS /* This callback should return TRUE if the runtime must wait for the thread, FALSE otherwise */ typedef mono_bool (*MonoThreadManageCallback) (MonoThread* thread); MONO_END_DECLS #endif /* _MONO_METADATA_DETAILS_THREADS_TYPES_H */
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // #ifndef _MONO_METADATA_DETAILS_THREADS_TYPES_H #define _MONO_METADATA_DETAILS_THREADS_TYPES_H #include <mono/utils/details/mono-publib-types.h> #include <mono/metadata/details/object-types.h> #include <mono/metadata/details/appdomain-types.h> MONO_BEGIN_DECLS /* This callback should return TRUE if the runtime must wait for the thread, FALSE otherwise */ typedef mono_bool (*MonoThreadManageCallback) (MonoThread* thread); MONO_END_DECLS #endif /* _MONO_METADATA_DETAILS_THREADS_TYPES_H */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/native/eventpipe/ep-event-source.h
#ifndef __EVENTPIPE_EVENT_SOURCE_H__ #define __EVENTPIPE_EVENT_SOURCE_H__ #include "ep-rt-config.h" #ifdef ENABLE_PERFTRACING #include "ep-types.h" #undef EP_IMPL_GETTER_SETTER #ifdef EP_IMPL_EVENT_SOURCE_GETTER_SETTER #define EP_IMPL_GETTER_SETTER #endif #include "ep-getter-setter.h" extern const ep_char8_t *_ep_os_info; extern const ep_char8_t *_ep_arch_info; extern EventPipeEventSource _ep_event_source_instance; /* * EventPipeEventSource. */ #if defined(EP_INLINE_GETTER_SETTER) || defined(EP_IMPL_EVENT_SOURCE_GETTER_SETTER) struct _EventPipeEventSource { #else struct _EventPipeEventSource_Internal { #endif const ep_char8_t *provider_name; EventPipeProvider *provider; const ep_char8_t *process_info_event_name; EventPipeEvent *process_info_event; }; #if !defined(EP_INLINE_GETTER_SETTER) && !defined(EP_IMPL_EVENT_SOURCE_GETTER_SETTER) struct _EventPipeEventSource { uint8_t _internal [sizeof (struct _EventPipeEventSource_Internal)]; }; #endif static inline const ep_char8_t * ep_event_source_get_os_info (void) { return _ep_os_info; } static inline const ep_char8_t * ep_event_source_get_arch_info (void) { return _ep_arch_info; } EventPipeEventSource * ep_event_source_alloc (void); EventPipeEventSource * ep_event_source_init (EventPipeEventSource *event_source); void ep_event_source_fini (EventPipeEventSource *event_source); void ep_event_source_free (EventPipeEventSource *event_source); bool ep_event_source_enable (EventPipeEventSource *event_source, EventPipeSession *session); void ep_event_source_send_process_info (EventPipeEventSource *event_source, const ep_char8_t *command_line); static inline EventPipeEventSource * ep_event_source_get (void) { // Singelton. return &_ep_event_source_instance; } #endif /* ENABLE_PERFTRACING */ #endif /* __EVENTPIPE_EVENT_SOURCE_H__ */
#ifndef __EVENTPIPE_EVENT_SOURCE_H__ #define __EVENTPIPE_EVENT_SOURCE_H__ #include "ep-rt-config.h" #ifdef ENABLE_PERFTRACING #include "ep-types.h" #undef EP_IMPL_GETTER_SETTER #ifdef EP_IMPL_EVENT_SOURCE_GETTER_SETTER #define EP_IMPL_GETTER_SETTER #endif #include "ep-getter-setter.h" extern const ep_char8_t *_ep_os_info; extern const ep_char8_t *_ep_arch_info; extern EventPipeEventSource _ep_event_source_instance; /* * EventPipeEventSource. */ #if defined(EP_INLINE_GETTER_SETTER) || defined(EP_IMPL_EVENT_SOURCE_GETTER_SETTER) struct _EventPipeEventSource { #else struct _EventPipeEventSource_Internal { #endif const ep_char8_t *provider_name; EventPipeProvider *provider; const ep_char8_t *process_info_event_name; EventPipeEvent *process_info_event; }; #if !defined(EP_INLINE_GETTER_SETTER) && !defined(EP_IMPL_EVENT_SOURCE_GETTER_SETTER) struct _EventPipeEventSource { uint8_t _internal [sizeof (struct _EventPipeEventSource_Internal)]; }; #endif static inline const ep_char8_t * ep_event_source_get_os_info (void) { return _ep_os_info; } static inline const ep_char8_t * ep_event_source_get_arch_info (void) { return _ep_arch_info; } EventPipeEventSource * ep_event_source_alloc (void); EventPipeEventSource * ep_event_source_init (EventPipeEventSource *event_source); void ep_event_source_fini (EventPipeEventSource *event_source); void ep_event_source_free (EventPipeEventSource *event_source); bool ep_event_source_enable (EventPipeEventSource *event_source, EventPipeSession *session); void ep_event_source_send_process_info (EventPipeEventSource *event_source, const ep_char8_t *command_line); static inline EventPipeEventSource * ep_event_source_get (void) { // Singelton. return &_ep_event_source_instance; } #endif /* ENABLE_PERFTRACING */ #endif /* __EVENTPIPE_EVENT_SOURCE_H__ */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/gc/vxsort/smallsort/bitonic_sort.AVX2.int64_t.generated.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "bitonic_sort.AVX2.int64_t.generated.h" using namespace vxsort; void vxsort::smallsort::bitonic<int64_t, vector_machine::AVX2 >::sort(int64_t *ptr, size_t length) { const auto fullvlength = length / N; const int remainder = (int) (length - fullvlength * N); const auto v = fullvlength + ((remainder > 0) ? 1 : 0); switch(v) { case 1: sort_01v_alt(ptr, remainder); break; case 2: sort_02v_alt(ptr, remainder); break; case 3: sort_03v_alt(ptr, remainder); break; case 4: sort_04v_alt(ptr, remainder); break; case 5: sort_05v_alt(ptr, remainder); break; case 6: sort_06v_alt(ptr, remainder); break; case 7: sort_07v_alt(ptr, remainder); break; case 8: sort_08v_alt(ptr, remainder); break; case 9: sort_09v_alt(ptr, remainder); break; case 10: sort_10v_alt(ptr, remainder); break; case 11: sort_11v_alt(ptr, remainder); break; case 12: sort_12v_alt(ptr, remainder); break; case 13: sort_13v_alt(ptr, remainder); break; case 14: sort_14v_alt(ptr, remainder); break; case 15: sort_15v_alt(ptr, remainder); break; case 16: sort_16v_alt(ptr, remainder); break; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "bitonic_sort.AVX2.int64_t.generated.h" using namespace vxsort; void vxsort::smallsort::bitonic<int64_t, vector_machine::AVX2 >::sort(int64_t *ptr, size_t length) { const auto fullvlength = length / N; const int remainder = (int) (length - fullvlength * N); const auto v = fullvlength + ((remainder > 0) ? 1 : 0); switch(v) { case 1: sort_01v_alt(ptr, remainder); break; case 2: sort_02v_alt(ptr, remainder); break; case 3: sort_03v_alt(ptr, remainder); break; case 4: sort_04v_alt(ptr, remainder); break; case 5: sort_05v_alt(ptr, remainder); break; case 6: sort_06v_alt(ptr, remainder); break; case 7: sort_07v_alt(ptr, remainder); break; case 8: sort_08v_alt(ptr, remainder); break; case 9: sort_09v_alt(ptr, remainder); break; case 10: sort_10v_alt(ptr, remainder); break; case 11: sort_11v_alt(ptr, remainder); break; case 12: sort_12v_alt(ptr, remainder); break; case 13: sort_13v_alt(ptr, remainder); break; case 14: sort_14v_alt(ptr, remainder); break; case 15: sort_15v_alt(ptr, remainder); break; case 16: sort_16v_alt(ptr, remainder); break; } }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/md/enc/stgtiggerstream.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // StgTiggerStream.h // // // TiggerStream is the companion to the TiggerStorage CoClass. It handles the // streams managed inside of the storage and does the direct file i/o. // //***************************************************************************** #include "stdafx.h" #include "stgtiggerstream.h" #include "stgtiggerstorage.h" #include "posterror.h" // // // IStream // // HRESULT STDMETHODCALLTYPE TiggerStream::Read( void *pv, ULONG cb, ULONG *pcbRead) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Write( const void *pv, ULONG cb, ULONG *pcbWritten) { return (m_pStorage->Write(m_rcStream, pv, cb, pcbWritten)); } HRESULT STDMETHODCALLTYPE TiggerStream::Seek( LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER *plibNewPosition) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::SetSize( ULARGE_INTEGER libNewSize) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::CopyTo( IStream *pstm, ULARGE_INTEGER cb, ULARGE_INTEGER *pcbRead, ULARGE_INTEGER *pcbWritten) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Commit( DWORD grfCommitFlags) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Revert() { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::LockRegion( ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::UnlockRegion( ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Stat( STATSTG *pstatstg, DWORD grfStatFlag) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Clone( IStream **ppstm) { return (E_NOTIMPL); } HRESULT TiggerStream::Init( // Return code. TiggerStorage *pStorage, // Parent storage. LPCSTR szStream) // Stream name. { // Save off the parent data source object and stream name. m_pStorage = pStorage; strncpy_s(m_rcStream, sizeof(m_rcStream), szStream, sizeof(m_rcStream)-1); m_rcStream[sizeof(m_rcStream)-1] = '\0'; // force nul termination return (S_OK); } ULONG TiggerStream::GetStreamSize() { PSTORAGESTREAM pStreamInfo; if (FAILED(m_pStorage->FindStream(m_rcStream, &pStreamInfo))) return 0; return (pStreamInfo->GetSize()); }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // StgTiggerStream.h // // // TiggerStream is the companion to the TiggerStorage CoClass. It handles the // streams managed inside of the storage and does the direct file i/o. // //***************************************************************************** #include "stdafx.h" #include "stgtiggerstream.h" #include "stgtiggerstorage.h" #include "posterror.h" // // // IStream // // HRESULT STDMETHODCALLTYPE TiggerStream::Read( void *pv, ULONG cb, ULONG *pcbRead) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Write( const void *pv, ULONG cb, ULONG *pcbWritten) { return (m_pStorage->Write(m_rcStream, pv, cb, pcbWritten)); } HRESULT STDMETHODCALLTYPE TiggerStream::Seek( LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER *plibNewPosition) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::SetSize( ULARGE_INTEGER libNewSize) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::CopyTo( IStream *pstm, ULARGE_INTEGER cb, ULARGE_INTEGER *pcbRead, ULARGE_INTEGER *pcbWritten) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Commit( DWORD grfCommitFlags) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Revert() { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::LockRegion( ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::UnlockRegion( ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Stat( STATSTG *pstatstg, DWORD grfStatFlag) { return (E_NOTIMPL); } HRESULT STDMETHODCALLTYPE TiggerStream::Clone( IStream **ppstm) { return (E_NOTIMPL); } HRESULT TiggerStream::Init( // Return code. TiggerStorage *pStorage, // Parent storage. LPCSTR szStream) // Stream name. { // Save off the parent data source object and stream name. m_pStorage = pStorage; strncpy_s(m_rcStream, sizeof(m_rcStream), szStream, sizeof(m_rcStream)-1); m_rcStream[sizeof(m_rcStream)-1] = '\0'; // force nul termination return (S_OK); } ULONG TiggerStream::GetStreamSize() { PSTORAGESTREAM pStreamInfo; if (FAILED(m_pStorage->FindStream(m_rcStream, &pStreamInfo))) return 0; return (pStreamInfo->GetSize()); }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/classcompat.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =========================================================================== // File: CLASSCOMPAT.CPP // =========================================================================== // This file contains backward compatibility functionality for COM Interop. // =========================================================================== // #include "common.h" #ifndef DACCESS_COMPILE #include "clsload.hpp" #include "method.hpp" #include "class.h" #include "classcompat.h" #include "object.h" #include "field.h" #include "util.hpp" #include "excep.h" #include "threads.h" #include "stublink.h" #include "dllimport.h" #include "jitinterface.h" #include "eeconfig.h" #include "log.h" #include "cgensys.h" #include "gcheaputilities.h" #include "dbginterface.h" #include "comdelegate.h" #include "sigformat.h" #include "eeprofinterfaces.h" #include "dllimportcallback.h" #include "listlock.h" #include "methodimpl.h" #include "guidfromname.h" #include "encee.h" #include "encee.h" #include "comsynchronizable.h" #include "customattribute.h" #include "virtualcallstub.h" #include "eeconfig.h" #include "contractimpl.h" #include "prettyprintsig.h" #include "comcallablewrapper.h" #include "clrtocomcall.h" #include "runtimecallablewrapper.h" #include "generics.h" #include "contractimpl.h" ////////////////////////////////////////////////////////////////////////////////////////////// ClassCompat::InterfaceInfo_t* InteropMethodTableData::FindInterface(MethodTable *pInterface) { WRAPPER_NO_CONTRACT; for (DWORD i = 0; i < cInterfaceMap; i++) { ClassCompat::InterfaceInfo_t *iMap = &pInterfaceMap[i]; if (iMap->m_pMethodTable->IsEquivalentTo(pInterface)) { // Extensible RCW's need to be handled specially because they can have interfaces // in their map that are added at runtime. These interfaces will have a start offset // of -1 to indicate this. We cannot take for granted that every instance of this // COM object has this interface so FindInterface on these interfaces is made to fail. // // However, we are only considering the statically available slots here // (m_wNumInterface doesn't contain the dynamic slots), so we can safely // ignore this detail. return iMap; } } return NULL; } ////////////////////////////////////////////////////////////////////////////////////////////// // get start slot for interface // returns -1 if interface not found WORD InteropMethodTableData::GetStartSlotForInterface(MethodTable* pInterface) { WRAPPER_NO_CONTRACT; ClassCompat::InterfaceInfo_t* pInfo = FindInterface(pInterface); if (pInfo != NULL) { WORD startSlot = pInfo->GetInteropStartSlot(); _ASSERTE(startSlot != MethodTable::NO_SLOT); return startSlot; } return MethodTable::NO_SLOT; } ////////////////////////////////////////////////////////////////////////////////////////////// // This will return the interop slot for pMD in pMT. It will traverse the inheritance tree // to find a match. /*static*/ WORD InteropMethodTableData::GetSlotForMethodDesc(MethodTable *pMT, MethodDesc *pMD) { while (pMT) { InteropMethodTableData *pData = pMT->LookupComInteropData(); _ASSERTE(pData); for (DWORD i = 0; i < pData->cVTable; i++) { if (pData->pVTable[i].pMD == pMD) return (WORD) i; } pMT = pMT->GetParentMethodTable(); } return MethodTable::NO_SLOT; } ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableSlotDataMap::InteropMethodTableSlotDataMap(InteropMethodTableSlotData *pSlotData, DWORD cSlotData) { m_pSlotData = pSlotData; m_cSlotData = cSlotData; m_iCurSlot = 0; } ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableSlotData *InteropMethodTableSlotDataMap::Exists_Helper(MethodDesc *pMD) { LIMITED_METHOD_CONTRACT; for (DWORD i = 0; i < m_cSlotData; i++) { if (m_pSlotData[i].pDeclMD == pMD) { return (&m_pSlotData[i]); } } return (NULL); } ////////////////////////////////////////////////////////////////////////////////////////////// BOOL InteropMethodTableSlotDataMap::Exists(MethodDesc *pMD) { return (Exists_Helper(pMD) != NULL); } ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableSlotData *InteropMethodTableSlotDataMap::GetData(MethodDesc *pMD) { LIMITED_METHOD_CONTRACT; InteropMethodTableSlotData *pEntry = Exists_Helper(pMD); if (pEntry) return pEntry; pEntry = GetNewEntry(); pEntry->pMD = pMD; pEntry->pDeclMD = pMD; return (pEntry); } ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableSlotData *InteropMethodTableSlotDataMap::GetNewEntry() { WRAPPER_NO_CONTRACT; _ASSERTE(m_iCurSlot < m_cSlotData); InteropMethodTableSlotData *pEntry = &m_pSlotData[m_iCurSlot++]; pEntry->pMD = NULL; pEntry->wFlags = 0; pEntry->wSlot = MethodTable::NO_SLOT; pEntry->pDeclMD = NULL; return (pEntry); } namespace ClassCompat { ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableData *MethodTableBuilder::BuildInteropVTable(AllocMemTracker *pamTracker) { CONTRACTL { STANDARD_VM_CHECK; INSTANCE_CHECK; } CONTRACTL_END; MethodTable * pThisMT = GetHalfBakedMethodTable(); // This should never be called for interfaces or for generic types. _ASSERTE(!pThisMT->IsInterface()); _ASSERTE(!pThisMT->ContainsGenericVariables()); _ASSERTE(!pThisMT->HasGenericClassInstantiationInHierarchy()); // Array method tables are created quite differently if (pThisMT->IsArray()) return BuildInteropVTableForArray(pamTracker); #ifdef _DEBUG BOOL fDump = FALSE; LPCUTF8 fullName = pThisMT->GetDebugClassName(); if (fullName) { LPWSTR wszRegName = CLRConfig::GetConfigValue(CLRConfig::INTERNAL_BreakOnInteropVTableBuild); if (wszRegName) { { // Poor man's narrow LPWSTR fromPtr = wszRegName; LPUTF8 toPtr = (LPUTF8) wszRegName; LPUTF8 result = toPtr; while(*fromPtr != 0) *toPtr++ = (char) *fromPtr++; *toPtr = 0; } LPCUTF8 regName = (LPCUTF8) wszRegName; LPCUTF8 bracket = (LPCUTF8) strchr(fullName, '['); size_t len = strlen(fullName); if (bracket != NULL) len = bracket - fullName; if (strncmp(fullName, regName, len) == 0) { _ASSERTE(!"BreakOnInteropVTableBuild"); fDump = TRUE; } delete [] wszRegName; } } #endif // _DEBUG //Get Check Point for the thread-based allocator HRESULT hr = S_OK; Module *pModule = pThisMT->GetModule(); mdToken cl = pThisMT->GetCl(); MethodTable *pParentMethodTable = pThisMT->GetParentMethodTable(); // The following structs, defined as private members of MethodTableBuilder, contain the necessary local // parameters needed for MethodTableBuilder // Look at the struct definitions for a detailed list of all parameters available // to MethodTableBuilder. bmtErrorInfo bmtError; bmtProperties bmtProp; bmtVtable bmtVT; bmtParentInfo bmtParent; bmtInterfaceInfo bmtInterface; bmtMethodInfo bmtMethod(pModule->GetMDImport()); bmtTypeInfo bmtType; bmtMethodImplInfo bmtMethodImpl(pModule->GetMDImport()); //Initialize structs bmtError.resIDWhy = IDS_CLASSLOAD_GENERAL; // Set the reason and the offending method def. If the method information bmtError.pThrowable = NULL; bmtError.pModule = pModule; bmtError.cl = cl; bmtType.pMDImport = pModule->GetMDImport(); bmtType.pModule = pModule; bmtType.cl = cl; bmtParent.parentSubst = GetHalfBakedMethodTable()->GetSubstitutionForParent(NULL); if (FAILED(bmtType.pMDImport->GetTypeDefProps( bmtType.cl, &(bmtType.dwAttr), &(bmtParent.token)))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } SetBMTData( &bmtError, &bmtProp, &bmtVT, &bmtParent, &bmtInterface, &bmtMethod, &bmtType, &bmtMethodImpl); // Populate the BMT data structures from the attributes of the incoming MT if (pThisMT->IsValueType()) SetIsValueClass(); if (pThisMT->IsEnum()) SetEnum(); if (pThisMT->HasLayout()) SetHasLayout(); if (pThisMT->IsDelegate()) SetIsDelegate(); #ifdef FEATURE_COMINTEROP if(pThisMT->GetClass()->IsComClassInterface()) SetIsComClassInterface(); #endif // Populate the interface list - these are allocated on the thread's stacking allocator //@TODO: This doesn't work for generics - fix if generics will be exposed to COM BuildingInterfaceInfo_t *pBuildingInterfaceList; WORD wNumInterfaces; BuildInteropVTable_InterfaceList(&pBuildingInterfaceList, &wNumInterfaces); bmtInterface.wInterfaceMapSize = wNumInterfaces; WORD i; // Interfaces have a parent class of Object, but we don't really want to inherit all of // Object's virtual methods, so pretend we don't have a parent class - at the bottom of this // function we reset the parent method table if (IsInterface()) { pParentMethodTable = NULL; } bmtParent.pParentMethodTable = pParentMethodTable; // Com Import classes are special if (IsComImport() && !IsEnum() && !IsInterface() && !IsValueClass() && !IsDelegate()) { _ASSERTE(pParentMethodTable == g_pBaseCOMObject); _ASSERTE(!(HasLayout())); // if the current class is imported bmtProp.fIsComObjectType = TRUE; } bmtParent.pParentMethodTable = pParentMethodTable; if (pParentMethodTable != NULL) { if (pParentMethodTable->IsComObjectType()) { // if the parent class is of ComObjectType // so is the child bmtProp.fIsComObjectType = TRUE; } } // resolve unresolved interfaces, determine an upper bound on the size of the interface map, // and determine the size of the largest interface (in # slots) BuildInteropVTable_ResolveInterfaces(pBuildingInterfaceList, &bmtType, &bmtInterface, &bmtVT, &bmtParent, bmtError); // Enumerate this class's members EnumerateMethodImpls(); // Enumerate this class's members EnumerateClassMethods(); AllocateMethodWorkingMemory(); // Allocate the working memory for the interop data { //////////////// // The interop data for the VTable for COM Interop backward compatibility // Allocate space to hold on to the MethodDesc for each entry bmtVT.ppSDVtable = new (GetStackingAllocator()) InteropMethodTableSlotData*[bmtVT.dwMaxVtableSize]; ZeroMemory(bmtVT.ppSDVtable, bmtVT.dwMaxVtableSize * sizeof(InteropMethodTableSlotData*)); // Allocate space to hold on to the MethodDesc for each entry bmtVT.ppSDNonVtable = new (GetStackingAllocator()) InteropMethodTableSlotData*[NumDeclaredMethods()]; ZeroMemory(bmtVT.ppSDNonVtable , sizeof(InteropMethodTableSlotData*)*NumDeclaredMethods()); DWORD cMaxEntries = (bmtVT.dwMaxVtableSize * 2) + (NumDeclaredMethods() * 2); InteropMethodTableSlotData *pInteropData = new (GetStackingAllocator()) InteropMethodTableSlotData[cMaxEntries]; memset(pInteropData, 0, cMaxEntries * sizeof(InteropMethodTableSlotData)); bmtVT.pInteropData = new (GetStackingAllocator()) InteropMethodTableSlotDataMap(pInteropData, cMaxEntries); // Initialize the map with parent information if (bmtParent.pParentMethodTable != NULL) { InteropMethodTableData *pParentInteropData = bmtParent.pParentMethodTable->LookupComInteropData(); _ASSERTE(pParentInteropData); for ( i = 0; i < pParentInteropData->cVTable; i++) { InteropMethodTableSlotData *pParentSlot = &pParentInteropData->pVTable[i]; InteropMethodTableSlotData *pNewEntry = bmtVT.pInteropData->GetData(pParentSlot->pDeclMD); pNewEntry->pMD = pParentSlot->pMD; pNewEntry->pDeclMD = pParentSlot->pDeclMD; pNewEntry->wFlags = pParentSlot->wFlags; pNewEntry->wSlot = pParentSlot->wSlot; bmtVT.ppSDVtable[i] = pNewEntry; } } } // Determine vtable placement for each member in this class BuildInteropVTable_PlaceMembers(&bmtType, wNumInterfaces, pBuildingInterfaceList, &bmtMethod, &bmtError, &bmtProp, &bmtParent, &bmtInterface, &bmtMethodImpl, &bmtVT); // First copy what we can leverage from the parent's interface map. // The parent's interface map will be identical to the beginning of this class's interface map (i.e. // the interfaces will be listed in the identical order). if (bmtParent.wNumParentInterfaces > 0) { PREFIX_ASSUME(pParentMethodTable != NULL); // We have to have parent to have parent interfaces _ASSERTE(pParentMethodTable->LookupComInteropData()); _ASSERTE(bmtParent.wNumParentInterfaces == pParentMethodTable->LookupComInteropData()->cInterfaceMap); InterfaceInfo_t *pParentInterfaceList = pParentMethodTable->LookupComInteropData()->pInterfaceMap; for (i = 0; i < bmtParent.wNumParentInterfaces; i++) { #ifdef _DEBUG _ASSERTE(pParentInterfaceList[i].m_pMethodTable == bmtInterface.pInterfaceMap[i].m_pMethodTable); MethodTable *pMT = pParentInterfaceList[i].m_pMethodTable; // If the interface resides entirely inside the parent's class methods (i.e. no duplicate // slots), then we can place this interface in an identical spot to in the parent. // // Note carefully: the vtable for this interface could start within the first GetNumVirtuals() // entries, but could actually extend beyond it, if we were particularly efficient at placing // this interface, so check that the end of the interface vtable is before // pParentMethodTable->GetNumVirtuals(). _ASSERTE(pParentInterfaceList[i].GetInteropStartSlot() + pMT->GetNumVirtuals() <= pParentMethodTable->LookupComInteropData()->cVTable); #endif // _DEBUG // Interface lies inside parent's methods, so we can place it bmtInterface.pInterfaceMap[i].SetInteropStartSlot(pParentInterfaceList[i].GetInteropStartSlot()); } } // // If we are a class, then there may be some unplaced vtable methods (which are by definition // interface methods, otherwise they'd already have been placed). Place as many unplaced methods // as possible, in the order preferred by interfaces. However, do not allow any duplicates - once // a method has been placed, it cannot be placed again - if we are unable to neatly place an interface, // create duplicate slots for it starting at dwCurrentDuplicateVtableSlot. Fill out the interface // map for all interfaces as they are placed. // // If we are an interface, then all methods are already placed. Fill out the interface map for // interfaces as they are placed. // if (!IsInterface()) { BuildInteropVTable_PlaceVtableMethods( &bmtInterface, wNumInterfaces, pBuildingInterfaceList, &bmtVT, &bmtMethod, &bmtType, &bmtError, &bmtProp, &bmtParent); BuildInteropVTable_PlaceMethodImpls( &bmtType, &bmtMethodImpl, &bmtError, &bmtInterface, &bmtVT, &bmtParent); } #ifdef _DEBUG if (IsInterface() == FALSE) { for (i = 0; i < bmtInterface.wInterfaceMapSize; i++) { _ASSERTE(bmtInterface.pInterfaceMap[i].GetInteropStartSlot() != MethodTable::NO_SLOT); } } #endif // _DEBUG // Place all non vtable methods for (i = 0; i < bmtVT.wCurrentNonVtableSlot; i++) { bmtVT.SetMethodDescForSlot(bmtVT.wCurrentVtableSlot + i, bmtVT.ppSDNonVtable[i]->pMD); CONSISTENCY_CHECK(bmtVT.ppSDNonVtable[i]->wSlot != MethodTable::NO_SLOT); bmtVT.ppSDVtable[bmtVT.wCurrentVtableSlot + i] = bmtVT.ppSDNonVtable[i]; } // Must copy overridden slots to duplicate entries in the vtable BuildInteropVTable_PropagateInheritance(&bmtVT); // ensure we didn't overflow the temporary vtable _ASSERTE(bmtVT.wCurrentNonVtableSlot <= bmtVT.dwMaxVtableSize); // Finalize. InteropMethodTableData *pInteropMT = NULL; FinalizeInteropVTable( pamTracker, pThisMT->GetLoaderAllocator(), &bmtVT, &bmtInterface, &bmtType, &bmtProp, &bmtMethod, &bmtError, &bmtParent, &pInteropMT); _ASSERTE(pInteropMT); #ifdef _DEBUG if (fDump) { CQuickBytes qb; DWORD cb = 0; PCCOR_SIGNATURE pSig; ULONG cbSig; printf("InteropMethodTable\n--------------\n"); printf("VTable\n------\n"); for (DWORD i = 0; i < pInteropMT->cVTable; i++) { // Print the method name InteropMethodTableSlotData *pInteropMD = &pInteropMT->pVTable[i]; printf(pInteropMD->pMD->GetName()); printf(" "); // Print the sig if (FAILED(pInteropMD->pMD->GetMDImport()->GetSigOfMethodDef(pInteropMD->pMD->GetMemberDef(), &cbSig, &pSig))) { pSig = NULL; cbSig = 0; } PrettyPrintSigInternalLegacy(pSig, cbSig, "", &qb, pInteropMD->pMD->GetMDImport()); printf((LPCUTF8) qb.Ptr()); printf("\n"); } } #endif // _DEBUG NullBMTData(); return pInteropMT; } //--------------------------------------------------------------------------------------- InteropMethodTableData *MethodTableBuilder::BuildInteropVTableForArray(AllocMemTracker *pamTracker) { CONTRACTL { STANDARD_VM_CHECK; INSTANCE_CHECK; PRECONDITION(GetHalfBakedMethodTable()->IsArray()); PRECONDITION(GetHalfBakedMethodTable()->GetNumVirtuals() == GetHalfBakedMethodTable()->GetParentMethodTable()->GetNumVirtuals()); } CONTRACTL_END; MethodTable * pThisMT = GetHalfBakedMethodTable(); // Get the interop data for the parent MethodTable *pParentMT = pThisMT->GetParentMethodTable(); InteropMethodTableData *pParentMTData = pParentMT->GetComInteropData(); CONSISTENCY_CHECK(pParentMTData != NULL); // Allocate in the same heap as the array itself LoaderHeap *pHeap = pThisMT->GetLoaderAllocator()->GetLowFrequencyHeap(); // Allocate the overall structure InteropMethodTableData *pMTData = (InteropMethodTableData *)(void *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableData)))); memset(pMTData, 0, sizeof(InteropMethodTableData)); // Allocate the vtable - this is just a copy from System.Array pMTData->cVTable = pParentMTData->cVTable; if (pMTData->cVTable != 0) { pMTData->pVTable = (InteropMethodTableSlotData *)(void *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableSlotData)) * S_SIZE_T(pMTData->cVTable))); // Copy the vtable for (DWORD i = 0; i < pMTData->cVTable; i++) pMTData->pVTable[i] = pParentMTData->pVTable[i]; } // Allocate the non-vtable pMTData->cNonVTable = pThisMT->GetNumMethods() - pThisMT->GetNumVirtuals(); if (pMTData->cNonVTable != 0) { pMTData->pNonVTable = (InteropMethodTableSlotData *)(void *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableSlotData)) * S_SIZE_T(pMTData->cNonVTable))); // Copy the non-vtable UINT32 iCurRealSlot = pThisMT->GetNumVirtuals(); WORD iCurInteropSlot = pMTData->cVTable; for (DWORD i = 0; i < pMTData->cNonVTable; i++, iCurRealSlot++, iCurInteropSlot++) { pMTData->pNonVTable[i].wSlot = iCurInteropSlot; pMTData->pNonVTable[i].pMD = pThisMT->GetMethodDescForSlot(iCurRealSlot); } } // Allocate the interface map pMTData->cInterfaceMap = pParentMTData->cInterfaceMap; if (pMTData->cInterfaceMap != 0) { pMTData->pInterfaceMap = (InterfaceInfo_t *)(void *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InterfaceInfo_t)) * S_SIZE_T(pMTData->cInterfaceMap))); // Copy the interface map for (DWORD i = 0; i < pMTData->cInterfaceMap; i++) pMTData->pInterfaceMap[i] = pParentMTData->pInterfaceMap[i]; } return pMTData; } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_InterfaceList( BuildingInterfaceInfo_t **ppBuildingInterfaceList, WORD *pcBuildingInterfaceList) { STANDARD_VM_CONTRACT; // Initialize arguments *pcBuildingInterfaceList = 0; *ppBuildingInterfaceList = NULL; // Get the metadata for enumerating the interfaces of the class IMDInternalImport *pMDImport = GetModule()->GetMDImport(); // Now load all the interfaces HENUMInternalHolder hEnumInterfaceImpl(pMDImport); hEnumInterfaceImpl.EnumInit(mdtInterfaceImpl, GetCl()); // Get the count for the number of interfaces from metadata DWORD cAllInterfaces = pMDImport->EnumGetCount(&hEnumInterfaceImpl); WORD cNonGenericItfs = 0; // Iterate through each interface token and get the type for the interface and put // it into the BuildingInterfaceInfo_t struct. if (cAllInterfaces != 0) { mdInterfaceImpl ii; Module *pModule = GetModule(); // Allocate the BuildingInterfaceList table *ppBuildingInterfaceList = new(GetStackingAllocator()) BuildingInterfaceInfo_t[cAllInterfaces]; BuildingInterfaceInfo_t *pInterfaceBuildInfo = *ppBuildingInterfaceList; while (pMDImport->EnumNext(&hEnumInterfaceImpl, &ii)) { mdTypeRef crInterface; TypeHandle intType; // Get properties on this interface if (FAILED(pMDImport->GetTypeOfInterfaceImpl(ii, &crInterface))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } SigTypeContext typeContext = SigTypeContext(TypeHandle(GetHalfBakedMethodTable())); intType = ClassLoader::LoadTypeDefOrRefOrSpecThrowing(pModule, crInterface, &typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef); // At this point, the interface should never have any non instantiated generic parameters. _ASSERTE(!intType.IsGenericTypeDefinition()); // Skip any generic interfaces. if (intType.GetNumGenericArgs() != 0) continue; pInterfaceBuildInfo[cNonGenericItfs].m_pMethodTable = intType.AsMethodTable(); _ASSERTE(pInterfaceBuildInfo[cNonGenericItfs].m_pMethodTable != NULL); _ASSERTE(pInterfaceBuildInfo[cNonGenericItfs].m_pMethodTable->IsInterface()); cNonGenericItfs++; } _ASSERTE(cNonGenericItfs <= cAllInterfaces); } *pcBuildingInterfaceList = cNonGenericItfs; } //--------------------------------------------------------------------------------------- // Used by BuildInteropVTable // // Determine vtable placement for each member in this class // #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif VOID MethodTableBuilder::BuildInteropVTable_PlaceMembers( bmtTypeInfo* bmtType, DWORD numDeclaredInterfaces, BuildingInterfaceInfo_t *pBuildingInterfaceList, bmtMethodInfo* bmtMethod, bmtErrorInfo* bmtError, bmtProperties* bmtProp, bmtParentInfo* bmtParent, bmtInterfaceInfo* bmtInterface, bmtMethodImplInfo* bmtMethodImpl, bmtVtable* bmtVT) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtType)); PRECONDITION(CheckPointer(bmtMethod)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtMethodImpl)); PRECONDITION(CheckPointer(bmtVT)); } CONTRACTL_END; _ASSERTE(!IsInterface()); Module * pModule = GetModule(); #ifdef _DEBUG LPCUTF8 pszDebugName,pszDebugNamespace; if (FAILED(bmtType->pModule->GetMDImport()->GetNameOfTypeDef(GetCl(), &pszDebugName, &pszDebugNamespace))) { pszDebugName = pszDebugNamespace = "Invalid TypeDef record"; } #endif // _DEBUG HRESULT hr = S_OK; DWORD i, j; DWORD dwClassDeclFlags = 0xffffffff; DWORD dwClassNullDeclFlags = 0xffffffff; for (i = 0; i < NumDeclaredMethods(); i++) { LPCUTF8 szMemberName = NULL; PCCOR_SIGNATURE pMemberSignature = NULL; DWORD cMemberSignature = 0; mdToken tokMember; DWORD dwMemberAttrs; DWORD dwDescrOffset; DWORD dwImplFlags; BOOL fMethodImplementsInterface = FALSE; DWORD dwMDImplementsInterfaceNum = 0; DWORD dwMDImplementsSlotNum = 0; DWORD dwParentAttrs; tokMember = bmtMethod->rgMethodTokens[i]; dwMemberAttrs = bmtMethod->rgMethodAttrs[i]; dwDescrOffset = bmtMethod->rgMethodRVA[i]; dwImplFlags = bmtMethod->rgMethodImplFlags[i]; DWORD Classification = bmtMethod->rgMethodClassifications[i]; // If this member is a method which overrides a parent method, it will be set to non-NULL MethodDesc *pParentMethodDesc = NULL; szMemberName = bmtMethod->rgszMethodName[i]; // constructors and class initialisers are special if (!IsMdRTSpecialName(dwMemberAttrs)) { // The method does not have the special marking if (IsMdVirtual(dwMemberAttrs)) { // Hash that a method with this name exists in this class // Note that ctors and static ctors are not added to the table DWORD dwHashName = HashStringA(szMemberName); // If the member is marked with a new slot we do not need to find it // in the parent if (!IsMdNewSlot(dwMemberAttrs)) { // If we're not doing sanity checks, then assume that any method declared static // does not attempt to override some virtual parent. if (!IsMdStatic(dwMemberAttrs) && bmtParent->pParentMethodTable != NULL) { // Attempt to find the method with this name and signature in the parent class. // This method may or may not create pParentMethodHash (if it does not already exist). // It also may or may not fill in pMemberSignature/cMemberSignature. // An error is only returned when we can not create the hash. // NOTE: This operation touches metadata { BOOL fMethodConstraintsMatch = FALSE; VERIFY(SUCCEEDED(LoaderFindMethodInClass( szMemberName, bmtType->pModule, tokMember, &pParentMethodDesc, &pMemberSignature, &cMemberSignature, dwHashName, &fMethodConstraintsMatch))); //this assert should hold because interop methods cannot be generic _ASSERTE(pParentMethodDesc == NULL || fMethodConstraintsMatch); } if (pParentMethodDesc != NULL) { dwParentAttrs = pParentMethodDesc->GetAttrs(); _ASSERTE(IsMdVirtual(dwParentAttrs) && "Non virtual methods should not be searched"); _ASSERTE(!(IsMdFinal(dwParentAttrs))); } } } } } if(pParentMethodDesc == NULL) { // This method does not exist in the parent. If we are a class, check whether this // method implements any interface. If true, we can't place this method now. if ((!IsInterface()) && ( IsMdPublic(dwMemberAttrs) && IsMdVirtual(dwMemberAttrs) && !IsMdStatic(dwMemberAttrs) && !IsMdRTSpecialName(dwMemberAttrs))) { // Don't check parent class interfaces - if the parent class had to implement an interface, // then it is already guaranteed that we inherited that method. _ASSERTE(!bmtParent->pParentMethodTable || bmtParent->pParentMethodTable->LookupComInteropData()); DWORD numInheritedInts = (bmtParent->pParentMethodTable ? (DWORD) bmtParent->pParentMethodTable->LookupComInteropData()->cInterfaceMap: 0); for (j = numInheritedInts; j < bmtInterface->wInterfaceMapSize; j++) { MethodTable *pInterface = bmtInterface->pInterfaceMap[j].m_pMethodTable; if (pMemberSignature == NULL) { // We've been trying to avoid asking for the signature - now we need it if (FAILED(bmtType->pMDImport->GetSigOfMethodDef(tokMember, &cMemberSignature, &pMemberSignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } WORD slotNum = (WORD) (-1); MethodDesc *pItfMD = MemberLoader::FindMethod(pInterface, szMemberName, pMemberSignature, cMemberSignature, bmtType->pModule); if (pItfMD != NULL) { // This method implements an interface - don't place it fMethodImplementsInterface = TRUE; // Keep track of this fact and use it while placing the interface slotNum = (WORD) pItfMD->GetSlot(); if (bmtInterface->pppInterfaceImplementingMD[j] == NULL) { bmtInterface->pppInterfaceImplementingMD[j] = new (GetStackingAllocator()) MethodDesc * [pInterface->GetNumVirtuals()]; memset(bmtInterface->pppInterfaceImplementingMD[j], 0, sizeof(MethodDesc *) * pInterface->GetNumVirtuals()); bmtInterface->pppInterfaceDeclaringMD[j] = new (GetStackingAllocator()) MethodDesc * [pInterface->GetNumVirtuals()]; memset(bmtInterface->pppInterfaceDeclaringMD[j], 0, sizeof(MethodDesc *) * pInterface->GetNumVirtuals()); } bmtInterface->pppInterfaceDeclaringMD[j][slotNum] = pItfMD; dwMDImplementsInterfaceNum = j; dwMDImplementsSlotNum = slotNum; break; } } } } // Now find the MethodDesc associated with this method MethodDesc *pNewMD = MemberLoader::FindMethod(GetHalfBakedMethodTable(), tokMember); _ASSERTE(!bmtVT->pInteropData->Exists(pNewMD)); InteropMethodTableSlotData *pNewMDData = bmtVT->pInteropData->GetData(pNewMD); _ASSERTE(pNewMD != NULL); _ASSERTE(dwMemberAttrs == pNewMD->GetAttrs()); _ASSERTE(bmtParent->ppParentMethodDescBufPtr != NULL); _ASSERTE(((bmtParent->ppParentMethodDescBufPtr - bmtParent->ppParentMethodDescBuf) / sizeof(MethodDesc*)) < NumDeclaredMethods()); *(bmtParent->ppParentMethodDescBufPtr++) = pParentMethodDesc; *(bmtParent->ppParentMethodDescBufPtr++) = pNewMD; if (fMethodImplementsInterface && IsMdVirtual(dwMemberAttrs)) { bmtInterface->pppInterfaceImplementingMD[dwMDImplementsInterfaceNum][dwMDImplementsSlotNum] = pNewMD; } // Set the MethodDesc value bmtMethod->ppMethodDescList[i] = pNewMD; // Make sure that fcalls have a 0 rva. This is assumed by the prejit fixup logic _ASSERTE(((Classification & ~mdcMethodImpl) != mcFCall) || dwDescrOffset == 0); // Non-virtual method if (IsMdStatic(dwMemberAttrs) || !IsMdVirtual(dwMemberAttrs) || IsMdRTSpecialName(dwMemberAttrs)) { // Non-virtual method (doesn't go into the vtable) _ASSERTE(bmtVT->pNonVtableMD[bmtVT->wCurrentNonVtableSlot] == NULL); // Set the data for the method pNewMDData->wSlot = bmtVT->wCurrentNonVtableSlot; // Add the slot into the non-virtual method table bmtVT->pNonVtableMD[bmtVT->wCurrentNonVtableSlot] = pNewMD; bmtVT->ppSDNonVtable[bmtVT->wCurrentNonVtableSlot] = pNewMDData; // Increment the current non-virtual method table slot bmtVT->wCurrentNonVtableSlot++; } // Virtual method else { if (IsInterface()) { // (shouldn't happen for this codepath) UNREACHABLE(); } else if (pParentMethodDesc != NULL) { // We are overriding a parent's vtable slot CONSISTENCY_CHECK(bmtVT->pInteropData->Exists(pParentMethodDesc)); WORD slotNumber = bmtVT->pInteropData->GetData(pParentMethodDesc)->wSlot; // If the MethodDesc was inherited by an interface but not implemented, // then the interface's MethodDesc is sitting in the slot and will not reflect // the true slot number. Need to find the starting slot of the interface in // the parent class to figure out the true slot (starting slot + itf slot) if (pParentMethodDesc->IsInterface()) { MethodTable *pItfMT = pParentMethodDesc->GetMethodTable(); WORD startSlot = bmtParent->pParentMethodTable->LookupComInteropData()->GetStartSlotForInterface(pItfMT); _ASSERTE(startSlot != (WORD) -1); slotNumber += startSlot; } // we are overriding a parent method, so place this method now bmtVT->SetMethodDescForSlot(slotNumber, pNewMD); bmtVT->ppSDVtable[slotNumber] = pNewMDData; pNewMDData->wSlot = slotNumber; } else if (!fMethodImplementsInterface) { // Place it unless we will do it when laying out an interface or it is a body to // a method impl. If it is an impl then we will use the slots used by the definition. // Store the slot for this method pNewMDData->wSlot = bmtVT->wCurrentVtableSlot; // Now copy the method into the vtable, and interop data bmtVT->SetMethodDescForSlot(bmtVT->wCurrentVtableSlot, pNewMD); bmtVT->ppSDVtable[bmtVT->wCurrentVtableSlot] = pNewMDData; // Increment current vtable slot, since we're not overriding a parent slot bmtVT->wCurrentVtableSlot++; } } if (Classification & mdcMethodImpl) { // If this method serves as the BODY of a MethodImpl specification, then // we should iterate all the MethodImpl's for this class and see just how many // of them this method participates in as the BODY. for(DWORD m = 0; m < bmtMethodImpl->dwNumberMethodImpls; m++) { if(tokMember == bmtMethodImpl->rgMethodImplTokens[m].methodBody) { MethodDesc* desc = NULL; mdToken mdDecl = bmtMethodImpl->rgMethodImplTokens[m].methodDecl; Substitution *pDeclSubst = &bmtMethodImpl->pMethodDeclSubsts[m]; // Get the parent mdToken tkParent = mdTypeDefNil; if (TypeFromToken(mdDecl) == mdtMethodDef || TypeFromToken(mdDecl) == mdtMemberRef) { hr = bmtType->pMDImport->GetParentToken(mdDecl,&tkParent); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } } if (GetCl() == tkParent) { // The DECL has been declared // within the class that we're currently building. hr = S_OK; if(bmtError->pThrowable != NULL) *(bmtError->pThrowable) = NULL; // <TODO>Verify that the substitution doesn't change for this case </TODO> if(TypeFromToken(mdDecl) != mdtMethodDef) { hr = FindMethodDeclarationForMethodImpl( bmtType->pMDImport, GetCl(), mdDecl, &mdDecl); _ASSERTE(SUCCEEDED(hr)); // Make sure the virtual states are the same DWORD dwDescAttrs; if (FAILED(bmtType->pMDImport->GetMethodDefProps(mdDecl, &dwDescAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } _ASSERTE(IsMdVirtual(dwMemberAttrs) == IsMdVirtual(dwDescAttrs)); } } else { SigTypeContext typeContext; desc = MemberLoader::GetMethodDescFromMemberDefOrRefOrSpec(bmtType->pModule, mdDecl, &typeContext, FALSE, FALSE); // don't demand generic method args mdDecl = mdTokenNil; // Make sure the body is virtaul _ASSERTE(IsMdVirtual(dwMemberAttrs)); } // Only add the method impl if the interface it is declared on is non generic. // NULL desc represent method impls to methods on the current class which // we know isn't generic. if ((desc == NULL) || (desc->GetMethodTable()->GetNumGenericArgs() == 0)) { bmtMethodImpl->AddMethod(pNewMD, desc, mdDecl, pDeclSubst); } } } } } /* end ... for each member */ } #ifdef _PREFAST_ #pragma warning(pop) #endif //--------------------------------------------------------------------------------------- // Resolve unresolved interfaces, determine an upper bound on the size of the interface map, // and determine the size of the largest interface (in # slots) VOID MethodTableBuilder::BuildInteropVTable_ResolveInterfaces( BuildingInterfaceInfo_t *pBuildingInterfaceList, bmtTypeInfo* bmtType, bmtInterfaceInfo* bmtInterface, bmtVtable* bmtVT, bmtParentInfo* bmtParent, const bmtErrorInfo & bmtError) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; HRESULT hr = S_OK; DWORD i; // resolve unresolved interfaces, determine an upper bound on the size of the interface map, // and determine the size of the largest interface (in # slots) bmtInterface->dwMaxExpandedInterfaces = 0; // upper bound on max # interfaces implemented by this class // First look through the interfaces explicitly declared by this class for (i = 0; i < bmtInterface->wInterfaceMapSize; i++) { MethodTable *pInterface = pBuildingInterfaceList[i].m_pMethodTable; bmtInterface->dwMaxExpandedInterfaces += (1+ pInterface->GetNumInterfaces()); } // Now look at interfaces inherited from the parent if (bmtParent->pParentMethodTable != NULL) { _ASSERTE(bmtParent->pParentMethodTable->LookupComInteropData()); InteropMethodTableData *pInteropData = bmtParent->pParentMethodTable->LookupComInteropData(); InterfaceInfo_t *pParentInterfaceMap = pInteropData->pInterfaceMap; for (i = 0; i < pInteropData->cInterfaceMap; i++) { MethodTable *pInterface = pParentInterfaceMap[i].m_pMethodTable; bmtInterface->dwMaxExpandedInterfaces += (1+pInterface->GetNumInterfaces()); } } // Create a fully expanded map of all interfaces we implement bmtInterface->pInterfaceMap = new (GetStackingAllocator()) InterfaceInfo_t[bmtInterface->dwMaxExpandedInterfaces]; // # slots of largest interface bmtInterface->dwLargestInterfaceSize = 0; DWORD dwNumDeclaredInterfaces = bmtInterface->wInterfaceMapSize; BuildInteropVTable_CreateInterfaceMap(pBuildingInterfaceList, bmtInterface, &bmtInterface->wInterfaceMapSize, &bmtInterface->dwLargestInterfaceSize, bmtParent->pParentMethodTable); _ASSERTE(bmtInterface->wInterfaceMapSize <= bmtInterface->dwMaxExpandedInterfaces); if (bmtInterface->dwLargestInterfaceSize > 0) { // This is needed later - for each interface, we get the MethodDesc pointer for each // method. We need to be able to persist at most one interface at a time, so we // need enough memory for the largest interface. bmtInterface->ppInterfaceMethodDescList = new (GetStackingAllocator()) MethodDesc*[bmtInterface->dwLargestInterfaceSize]; bmtInterface->ppInterfaceDeclMethodDescList = new (GetStackingAllocator()) MethodDesc*[bmtInterface->dwLargestInterfaceSize]; } EEClass *pParentClass = (IsInterface() || bmtParent->pParentMethodTable == NULL) ? NULL : bmtParent->pParentMethodTable->GetClass(); // For all the new interfaces we bring in, sum the methods bmtInterface->dwTotalNewInterfaceMethods = 0; if (pParentClass != NULL) { for (i = bmtParent->pParentMethodTable->GetNumInterfaces(); i < (bmtInterface->wInterfaceMapSize); i++) bmtInterface->dwTotalNewInterfaceMethods += bmtInterface->pInterfaceMap[i].m_pMethodTable->GetNumVirtuals(); } // The interface map is probably smaller than dwMaxExpandedInterfaces, so we'll copy the // appropriate number of bytes when we allocate the real thing later. // Inherit parental slot counts if (pParentClass != NULL) { InteropMethodTableData *pParentInteropMT = bmtParent->pParentMethodTable->LookupComInteropData(); bmtVT->wCurrentVtableSlot = pParentInteropMT->cVTable; bmtParent->wNumParentInterfaces = pParentInteropMT->cInterfaceMap; } else { bmtVT->wCurrentVtableSlot = 0; bmtParent->wNumParentInterfaces = 0; } bmtVT->wCurrentNonVtableSlot = 0; bmtInterface->pppInterfaceImplementingMD = (MethodDesc ***) GetStackingAllocator()->Alloc(S_UINT32(sizeof(MethodDesc *)) * S_UINT32(bmtInterface->dwMaxExpandedInterfaces)); memset(bmtInterface->pppInterfaceImplementingMD, 0, sizeof(MethodDesc *) * bmtInterface->dwMaxExpandedInterfaces); bmtInterface->pppInterfaceDeclaringMD = (MethodDesc ***) GetStackingAllocator()->Alloc(S_UINT32(sizeof(MethodDesc *)) * S_UINT32(bmtInterface->dwMaxExpandedInterfaces)); memset(bmtInterface->pppInterfaceDeclaringMD, 0, sizeof(MethodDesc *) * bmtInterface->dwMaxExpandedInterfaces); return; } //--------------------------------------------------------------------------------------- // Fill out a fully expanded interface map, such that if we are declared to implement I3, and I3 extends I1,I2, // then I1,I2 are added to our list if they are not already present. // // Returns FALSE for failure. <TODO>Currently we don't fail, but @TODO perhaps we should fail if we recurse // too much.</TODO> // VOID MethodTableBuilder::BuildInteropVTable_CreateInterfaceMap(BuildingInterfaceInfo_t *pBuildingInterfaceList, bmtInterfaceInfo* bmtInterface, WORD *pwInterfaceListSize, DWORD *pdwMaxInterfaceMethods, MethodTable *pParentMethodTable) { STANDARD_VM_CONTRACT; WORD i; InterfaceInfo_t *pInterfaceMap = bmtInterface->pInterfaceMap; WORD wNumInterfaces = bmtInterface->wInterfaceMapSize; // pdwInterfaceListSize points to bmtInterface->pInterfaceMapSize so we cache it above *pwInterfaceListSize = 0; // First inherit all the parent's interfaces. This is important, because our interface map must // list the interfaces in identical order to our parent. // // <NICE> we should document the reasons why. One reason is that DispatchMapTypeIDs can be indexes // into the list </NICE> if (pParentMethodTable != NULL) { _ASSERTE(pParentMethodTable->LookupComInteropData()); InteropMethodTableData *pInteropData = pParentMethodTable->LookupComInteropData(); InterfaceInfo_t *pParentInterfaceMap = pInteropData->pInterfaceMap; unsigned cParentInterfaceMap = pInteropData->cInterfaceMap; // The parent's interface list is known to be fully expanded for (i = 0; i < cParentInterfaceMap; i++) { // Need to keep track of the interface with the largest number of methods if (pParentInterfaceMap[i].m_pMethodTable->GetNumVirtuals() > *pdwMaxInterfaceMethods) { *pdwMaxInterfaceMethods = pParentInterfaceMap[i].m_pMethodTable->GetNumVirtuals(); } pInterfaceMap[*pwInterfaceListSize].m_pMethodTable = pParentInterfaceMap[i].m_pMethodTable; pInterfaceMap[*pwInterfaceListSize].SetInteropStartSlot(MethodTable::NO_SLOT); pInterfaceMap[*pwInterfaceListSize].m_wFlags = 0; (*pwInterfaceListSize)++; } } // Go through each interface we explicitly implement (if a class), or extend (if an interface) for (i = 0; i < wNumInterfaces; i++) { MethodTable *pDeclaredInterface = pBuildingInterfaceList[i].m_pMethodTable; BuildInteropVTable_ExpandInterface(pInterfaceMap, pDeclaredInterface, pwInterfaceListSize, pdwMaxInterfaceMethods, TRUE); } } //--------------------------------------------------------------------------------------- // Given an interface map to fill out, expand pNewInterface (and its sub-interfaces) into it, increasing // pdwInterfaceListSize as appropriate, and avoiding duplicates. // VOID MethodTableBuilder::BuildInteropVTable_ExpandInterface(InterfaceInfo_t *pInterfaceMap, MethodTable *pNewInterface, WORD *pwInterfaceListSize, DWORD *pdwMaxInterfaceMethods, BOOL fDirect) { STANDARD_VM_CONTRACT; DWORD i; // The interface list contains the fully expanded set of interfaces from the parent then // we start adding all the interfaces we declare. We need to know which interfaces // we declare but do not need duplicates of the ones we declare. This means we can // duplicate our parent entries. // Is it already present in the list? for (i = 0; i < (*pwInterfaceListSize); i++) { if (pInterfaceMap[i].m_pMethodTable->IsEquivalentTo(pNewInterface)) { if(fDirect) { pInterfaceMap[i].m_wFlags |= InterfaceInfo_t::interface_declared_on_class; } return; // found it, don't add it again } } if (pNewInterface->GetNumVirtuals() > *pdwMaxInterfaceMethods) { *pdwMaxInterfaceMethods = pNewInterface->GetNumVirtuals(); } // Add it and each sub-interface pInterfaceMap[*pwInterfaceListSize].m_pMethodTable = pNewInterface; pInterfaceMap[*pwInterfaceListSize].SetInteropStartSlot(MethodTable::NO_SLOT); pInterfaceMap[*pwInterfaceListSize].m_wFlags = 0; if(fDirect) pInterfaceMap[*pwInterfaceListSize].m_wFlags |= InterfaceInfo_t::interface_declared_on_class; (*pwInterfaceListSize)++; if (pNewInterface->GetNumInterfaces() != 0) { MethodTable::InterfaceMapIterator it = pNewInterface->IterateInterfaceMap(); while (it.Next()) { MethodTable *pItf = it.GetInterfaceApprox(); if (pItf->HasInstantiation() || pItf->IsSpecialMarkerTypeForGenericCasting()) continue; BuildInteropVTable_ExpandInterface(pInterfaceMap, pItf, pwInterfaceListSize, pdwMaxInterfaceMethods, FALSE); } } return; } // If we are a class, then there may be some unplaced vtable methods (which are by definition // interface methods, otherwise they'd already have been placed). Place as many unplaced methods // as possible, in the order preferred by interfaces. However, do not allow any duplicates - once // a method has been placed, it cannot be placed again - if we are unable to neatly place an interface, // create duplicate slots for it starting at dwCurrentDuplicateVtableSlot. Fill out the interface // map for all interfaces as they are placed. // // If we are an interface, then all methods are already placed. Fill out the interface map for // interfaces as they are placed. // //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PlaceVtableMethods( bmtInterfaceInfo* bmtInterface, DWORD numDeclaredInterfaces, BuildingInterfaceInfo_t *pBuildingInterfaceList, bmtVtable* bmtVT, bmtMethodInfo* bmtMethod, bmtTypeInfo* bmtType, bmtErrorInfo* bmtError, bmtProperties* bmtProp, bmtParentInfo* bmtParent) { STANDARD_VM_CONTRACT; DWORD i; BOOL fParentInterface; for (WORD wCurInterface = 0; wCurInterface < bmtInterface->wInterfaceMapSize; wCurInterface++) { fParentInterface = FALSE; // Keep track of the current interface InterfaceInfo_t *pCurItfInfo = &(bmtInterface->pInterfaceMap[wCurInterface]); // The interface we are attempting to place MethodTable *pInterface = pCurItfInfo->m_pMethodTable; // Did we place this interface already due to the parent class's interface placement? if (pCurItfInfo->GetInteropStartSlot() != MethodTable::NO_SLOT) { // If we have declared it then we re-lay it out if(pCurItfInfo->IsDeclaredOnClass()) { // This should be in the outer IF statement, not this inner one, but we'll keep // it this way to remain consistent for backward compatibility. fParentInterface = TRUE; // If the interface is folded into the non-interface portion of the vtable, we need to unfold it. WORD wStartSlot = pCurItfInfo->GetInteropStartSlot(); MethodTable::MethodIterator it(pInterface); for (; it.IsValid(); it.Next()) { if (it.IsVirtual()) { if(bmtVT->ppSDVtable[wStartSlot+it.GetSlotNumber()]->wSlot == wStartSlot+it.GetSlotNumber()) { // If the MD slot is equal to the vtable slot number, then this means the interface // was folded into the non-interface part of the vtable and needs to get unfolded // in case a specific override occurs for one of the conceptually two distinct // slots and not the other (i.e., a MethodImpl overrides an interface method but not // the class' virtual method). pCurItfInfo->SetInteropStartSlot(MethodTable::NO_SLOT); fParentInterface = FALSE; break; } } } } else { continue; } } if (pInterface->GetNumVirtuals() == 0) { // no calls can be made to this interface anyway // so initialize the slot number to 0 pCurItfInfo->SetInteropStartSlot((WORD) 0); continue; } // If this interface has not been given a starting position do that now. if(!fParentInterface) pCurItfInfo->SetInteropStartSlot(bmtVT->wCurrentVtableSlot); // For each method declared in this interface { MethodTable::MethodIterator it(pInterface); for (; it.IsValid(); it.Next()) { if (it.IsVirtual()) { DWORD dwMemberAttrs; // See if we have info gathered while placing members if (bmtInterface->pppInterfaceImplementingMD[wCurInterface] && bmtInterface->pppInterfaceImplementingMD[wCurInterface][it.GetSlotNumber()] != NULL) { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = bmtInterface->pppInterfaceImplementingMD[wCurInterface][it.GetSlotNumber()]; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = bmtInterface->pppInterfaceDeclaringMD[wCurInterface][it.GetSlotNumber()]; continue; } MethodDesc *pInterfaceMD = pInterface->GetMethodDescForSlot(it.GetSlotNumber()); _ASSERTE(pInterfaceMD != NULL); LPCUTF8 pszInterfaceMethodName = pInterfaceMD->GetNameOnNonArrayClass(); PCCOR_SIGNATURE pInterfaceMethodSig; DWORD cInterfaceMethodSig; pInterfaceMD->GetSig(&pInterfaceMethodSig, &cInterfaceMethodSig); // Try to find the method explicitly declared in our class for (i = 0; i < NumDeclaredMethods(); i++) { // look for interface method candidates only dwMemberAttrs = bmtMethod->rgMethodAttrs[i]; // Note that non-publics can legally be exposed via an interface. if (IsMdVirtual(dwMemberAttrs) && IsMdPublic(dwMemberAttrs)) { LPCUTF8 pszMemberName; pszMemberName = bmtMethod->rgszMethodName[i]; _ASSERTE(!(pszMemberName == NULL)); #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(pszMemberName)) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", pszMemberName)); #endif // _DEBUG if (strcmp(pszMemberName,pszInterfaceMethodName) == 0) { PCCOR_SIGNATURE pMemberSignature; DWORD cMemberSignature; _ASSERTE(TypeFromToken(bmtMethod->rgMethodTokens[i]) == mdtMethodDef); if (FAILED(bmtType->pMDImport->GetSigOfMethodDef( bmtMethod->rgMethodTokens[i], &cMemberSignature, &pMemberSignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (MetaSig::CompareMethodSigs( pMemberSignature, cMemberSignature, bmtType->pModule, NULL, pInterfaceMethodSig, cInterfaceMethodSig, pInterfaceMD->GetModule(), NULL, FALSE)) { // Found match, break from loop break; } } } } // end ... try to find method _ASSERTE(it.GetSlotNumber() < bmtInterface->dwLargestInterfaceSize); if (i >= NumDeclaredMethods()) { // if this interface has been layed out by our parent then // we do not need to define a new method desc for it if(fParentInterface) { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = NULL; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = NULL; } else { // We will use the interface implemenation if we do not find one in the // parent. It will have to be overriden by the a method impl unless the // class is abstract or it is a special COM type class. MethodDesc* pParentMD = NULL; if(bmtParent->pParentMethodTable) { #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(pszInterfaceMethodName)) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", pszInterfaceMethodName)); #endif // _DEBUG // Check the parent class pParentMD = MemberLoader::FindMethod(bmtParent->pParentMethodTable, pszInterfaceMethodName, pInterfaceMethodSig, cInterfaceMethodSig, pInterfaceMD->GetModule(), MemberLoader::FM_Default, &bmtParent->parentSubst); } // make sure we do a better back patching for these methods if(pParentMD && IsMdVirtual(pParentMD->GetAttrs())) { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = pParentMD; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = pInterfaceMD; } else { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = pInterfaceMD; bmtVT->pInteropData->GetData(pInterfaceMD)->wSlot = pInterfaceMD->GetSlot(); bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = NULL; } } } else { // Found as declared method in class. If the interface was layed out by the parent we // will be overridding their slot so our method counts do not increase. We will fold // our method into our parent's interface if we have not been placed. if(fParentInterface) { WORD dwSlot = (WORD) (pCurItfInfo->GetInteropStartSlot() + it.GetSlotNumber()); _ASSERTE(bmtVT->wCurrentVtableSlot > dwSlot); MethodDesc *pMD = bmtMethod->ppMethodDescList[i]; InteropMethodTableSlotData *pMDData = bmtVT->pInteropData->GetData(pMD); _ASSERTE(pMD && "Missing MethodDesc for declared method in class."); if(pMDData->wSlot == MethodTable::NO_SLOT) { pMDData->wSlot = dwSlot; } // Set the slot and interop data bmtVT->SetMethodDescForSlot(dwSlot, pMD); bmtVT->ppSDVtable[dwSlot] = pMDData; _ASSERTE( bmtVT->GetMethodDescForSlot(dwSlot) != NULL); bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = NULL; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = NULL; } else { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = bmtMethod->ppMethodDescList[i]; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = pInterfaceMD; } } } } } { MethodTable::MethodIterator it(pInterface); for (; it.IsValid(); it.Next()) { if (it.IsVirtual()) { // The entry can be null if the interface was previously // laid out by a parent and we did not have a method // that subclassed the interface. if(bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] != NULL) { // Get the MethodDesc which was allocated for the method MethodDesc *pMD = bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()]; InteropMethodTableSlotData *pMDData = bmtVT->pInteropData->GetData(pMD); if (pMDData->wSlot == (WORD) MethodTable::NO_SLOT) { pMDData->wSlot = (WORD) bmtVT->wCurrentVtableSlot; } // Set the vtable slot _ASSERTE(bmtVT->GetMethodDescForSlot(bmtVT->wCurrentVtableSlot) == NULL); bmtVT->SetMethodDescForSlot(bmtVT->wCurrentVtableSlot, pMD); _ASSERTE(bmtVT->GetMethodDescForSlot(bmtVT->wCurrentVtableSlot) != NULL); bmtVT->ppSDVtable[bmtVT->wCurrentVtableSlot] = pMDData; // Increment the current vtable slot bmtVT->wCurrentVtableSlot++; } } } } } } //--------------------------------------------------------------------------------------- // We should have collected all the method impls. Cycle through them creating the method impl // structure that holds the information about which slots are overridden. VOID MethodTableBuilder::BuildInteropVTable_PlaceMethodImpls( bmtTypeInfo* bmtType, bmtMethodImplInfo* bmtMethodImpl, bmtErrorInfo* bmtError, bmtInterfaceInfo* bmtInterface, bmtVtable* bmtVT, bmtParentInfo* bmtParent) { STANDARD_VM_CONTRACT; if(bmtMethodImpl->pIndex == 0) return; DWORD pIndex = 0; // Allocate some temporary storage. The number of overrides for a single method impl // cannot be greater then the number of vtable slots. DWORD* slots = (DWORD*) new (GetStackingAllocator()) DWORD[bmtVT->wCurrentVtableSlot]; MethodDesc **replaced = new (GetStackingAllocator()) MethodDesc*[bmtVT->wCurrentVtableSlot]; while(pIndex < bmtMethodImpl->pIndex) { DWORD slotIndex = 0; DWORD dwItfCount = 0; MethodDesc* next = bmtMethodImpl->GetBodyMethodDesc(pIndex); MethodDesc* body = NULL; // The signature for the body of the method impl. We cache the signature until all // the method impl's using the same body are done. PCCOR_SIGNATURE pBodySignature = NULL; DWORD cBodySignature = 0; // The impls are sorted according to the method descs for the body of the method impl. // Loop through the impls until the next body is found. When a single body // has been done move the slots implemented and method descs replaced into the storage // found on the body method desc. do { // collect information until we reach the next body body = next; // Get the declaration part of the method impl. It will either be a token // (declaration is on this type) or a method desc. MethodDesc* pDecl = bmtMethodImpl->GetDeclarationMethodDesc(pIndex); if(pDecl == NULL) { // The declaration is on this type to get the token. mdMethodDef mdef = bmtMethodImpl->GetDeclarationToken(pIndex); BuildInteropVTable_PlaceLocalDeclaration(mdef, body, bmtType, bmtError, bmtVT, slots, // Adds override to the slot and replaced arrays. replaced, &slotIndex, // Increments count &pBodySignature, // Fills in the signature &cBodySignature); } else { // Method impls to methods on generic interfaces should have already // been filtered out. _ASSERTE(pDecl->GetMethodTable()->GetNumGenericArgs() == 0); if(pDecl->GetMethodTable()->IsInterface()) { BuildInteropVTable_PlaceInterfaceDeclaration(pDecl, body, bmtMethodImpl->GetDeclarationSubst(pIndex), bmtType, bmtInterface, bmtError, bmtVT, slots, replaced, &slotIndex, // Increments count &pBodySignature, // Fills in the signature &cBodySignature); } else { BuildInteropVTable_PlaceParentDeclaration(pDecl, body, bmtMethodImpl->GetDeclarationSubst(pIndex), bmtType, bmtError, bmtVT, bmtParent, slots, replaced, &slotIndex, // Increments count &pBodySignature, // Fills in the signature &cBodySignature); } } // Move to the next body pIndex++; // we hit the end of the list so leave next = pIndex < bmtMethodImpl->pIndex ? bmtMethodImpl->GetBodyMethodDesc(pIndex) : NULL; } while(next == body) ; } // while(next != NULL) } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PlaceLocalDeclaration( mdMethodDef mdef, MethodDesc* body, bmtTypeInfo* bmtType, bmtErrorInfo* bmtError, bmtVtable* bmtVT, DWORD* slots, MethodDesc** replaced, DWORD* pSlotIndex, PCCOR_SIGNATURE* ppBodySignature, DWORD* pcBodySignature) { STANDARD_VM_CONTRACT; // we search on the token and m_cl for(USHORT i = 0; i < bmtVT->wCurrentVtableSlot; i++) { // Make sure we haven't already been MethodImpl'd _ASSERTE(bmtVT->ppSDVtable[i]->pMD == bmtVT->ppSDVtable[i]->pDeclMD); // We get the current slot. Since we are looking for a method declaration // that is on our class we would never match up with a method obtained from // one of our parents or an Interface. MethodDesc *pMD = bmtVT->ppSDVtable[i]->pMD; // If we get a null then we have already replaced this one. We can't check it // so we will just by by-pass this. if(pMD->GetMemberDef() == mdef) { InteropMethodTableSlotData *pDeclData = bmtVT->pInteropData->GetData(pMD); InteropMethodTableSlotData *pImplData = bmtVT->pInteropData->GetData(body); // If the body has not been placed then place it here. We do not // place bodies for method impl's until we find a spot for them. if (pImplData->wSlot == MethodTable::NO_SLOT) { pImplData->wSlot = (WORD) i; } // We implement this slot, record it slots[*pSlotIndex] = i; replaced[*pSlotIndex] = pMD; bmtVT->SetMethodDescForSlot(i, body); pDeclData->pMD = pImplData->pMD; pDeclData->wSlot = pImplData->wSlot; bmtVT->ppSDVtable[i] = pDeclData; // increment the counter (*pSlotIndex)++; } } } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PlaceInterfaceDeclaration( MethodDesc* pItfDecl, MethodDesc* pImplBody, const Substitution *pDeclSubst, bmtTypeInfo* bmtType, bmtInterfaceInfo* bmtInterface, bmtErrorInfo* bmtError, bmtVtable* bmtVT, DWORD* slots, MethodDesc** replaced, DWORD* pSlotIndex, PCCOR_SIGNATURE* ppBodySignature, DWORD* pcBodySignature) { STANDARD_VM_CONTRACT; _ASSERTE(pItfDecl && pItfDecl->IsInterface() && !(pItfDecl->IsMethodImpl())); // the fact that an interface only shows up once in the vtable // When we are looking for a method desc then the declaration is on // some class or interface that this class implements. The declaration // will either be to an interface or to a class. If it is to a // interface then we need to search for that interface. From that // slot number of the method in the interface we can calculate the offset // into our vtable. If it is to a class it must be a subclass. This uses // the fact that an interface only shows up once in the vtable. BOOL fInterfaceFound = FALSE; // Check our vtable for entries that we are suppose to override. // Since this is an external method we must also check the inteface map. // We want to replace any interface methods even if they have been replaced // by a base class. for(USHORT i = 0; i < bmtInterface->wInterfaceMapSize; i++) { MethodTable *pInterface = bmtInterface->pInterfaceMap[i].m_pMethodTable; if (pInterface->IsEquivalentTo(pItfDecl->GetMethodTable())) { // We found an interface so no error fInterfaceFound = TRUE; WORD wSlot = (WORD) -1; MethodDesc *pMD = NULL; // Find out where the interface map is set on our vtable WORD wStartingSlot = (USHORT) bmtInterface->pInterfaceMap[i].GetInteropStartSlot(); // We need to duplicate the interface to avoid copies. Currently, interfaces // do not overlap so we just need to check to see if there is a non-duplicated // MD. If there is then the interface shares it with the class which means // we need to copy the whole interface for(wSlot = wStartingSlot; wSlot < pInterface->GetNumVirtuals() + wStartingSlot; wSlot++) { // This check will tell us if the method in this slot is the first instance (not a duplicate) if(bmtVT->ppSDVtable[wSlot]->wSlot == wSlot) break; } if(wSlot < pInterface->GetNumVirtuals() + wStartingSlot) { // Check to see if we have allocated the temporay array of starting values. // This array is used to backpatch entries to the original location. These // values are never used but will cause problems later when we finish // laying out the method table. if(bmtInterface->pdwOriginalStart == NULL) { bmtInterface->pdwOriginalStart = new (GetStackingAllocator()) DWORD[bmtInterface->dwMaxExpandedInterfaces]; memset(bmtInterface->pdwOriginalStart, 0, sizeof(DWORD)*bmtInterface->dwMaxExpandedInterfaces); } _ASSERTE(bmtInterface->pInterfaceMap[i].GetInteropStartSlot() != (WORD) 0 && "We assume that an interface does not start at position 0"); _ASSERTE(bmtInterface->pdwOriginalStart[i] == 0 && "We should not move an interface twice"); bmtInterface->pdwOriginalStart[i] = bmtInterface->pInterfaceMap[i].GetInteropStartSlot(); // The interface now starts at the end of the map. bmtInterface->pInterfaceMap[i].SetInteropStartSlot(bmtVT->wCurrentVtableSlot); for(WORD d = wStartingSlot; d < pInterface->GetNumVirtuals() + wStartingSlot; d++) { // Copy the MD //@TODO: Maybe need to create new slot data entries for this copy-out based on //@TODO: the MD's of the interface slots. InteropMethodTableSlotData *pDataCopy = bmtVT->ppSDVtable[d]; bmtVT->SetMethodDescForSlot(bmtVT->wCurrentVtableSlot, pDataCopy->pMD); bmtVT->ppSDVtable[bmtVT->wCurrentVtableSlot] = pDataCopy; // Increment the various counters bmtVT->wCurrentVtableSlot++; } // Reset the starting slot to the known value wStartingSlot = bmtInterface->pInterfaceMap[i].GetInteropStartSlot(); } // Make sure we have placed the interface map. _ASSERTE(wStartingSlot != MethodTable::NO_SLOT); // Get the Slot location of the method desc (slot of the itf MD + start slot for this class) wSlot = pItfDecl->GetSlot() + wStartingSlot; _ASSERTE(wSlot < bmtVT->wCurrentVtableSlot); // Get our current method desc for this slot pMD = bmtVT->ppSDVtable[wSlot]->pMD; // If we have not got the method impl signature go get it now. It is cached // in our caller if (*ppBodySignature == NULL) { if (FAILED(bmtType->pMDImport->GetSigOfMethodDef( pImplBody->GetMemberDef(), pcBodySignature, ppBodySignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } InteropMethodTableSlotData *pImplSlotData = bmtVT->pInteropData->GetData(pImplBody); _ASSERTE(pImplSlotData->wSlot != MethodTable::NO_SLOT); // If the body has not been placed then place it now. if (pImplSlotData->wSlot == MethodTable::NO_SLOT) { pImplSlotData->wSlot = wSlot; } // Store away the values InteropMethodTableSlotData *pItfSlotData = bmtVT->pInteropData->GetData(pItfDecl); slots[*pSlotIndex] = wSlot; replaced[*pSlotIndex] = pItfDecl; bmtVT->SetMethodDescForSlot(wSlot, pImplBody); pItfSlotData->pMD = pImplBody; pItfSlotData->wSlot = pImplSlotData->wSlot; bmtVT->ppSDVtable[wSlot] = pItfSlotData; // increment the counter (*pSlotIndex)++; // if we have moved the interface we need to back patch the original location // if we had left an interface place holder. if(bmtInterface->pdwOriginalStart && bmtInterface->pdwOriginalStart[i] != 0) { USHORT slot = (USHORT) bmtInterface->pdwOriginalStart[i] + pItfDecl->GetSlot(); MethodDesc* pSlotMD = bmtVT->ppSDVtable[slot]->pMD; if(pSlotMD->GetMethodTable() && pSlotMD->IsInterface()) { bmtVT->SetMethodDescForSlot(slot, pImplBody); bmtVT->ppSDVtable[slot] = pItfSlotData; } } break; } } _ASSERTE(fInterfaceFound); } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PlaceParentDeclaration( MethodDesc* pDecl, MethodDesc* pImplBody, const Substitution *pDeclSubst, bmtTypeInfo* bmtType, bmtErrorInfo* bmtError, bmtVtable* bmtVT, bmtParentInfo* bmtParent, DWORD* slots, MethodDesc** replaced, DWORD* pSlotIndex, PCCOR_SIGNATURE* ppBodySignature, DWORD* pcBodySignature) { STANDARD_VM_CONTRACT; _ASSERTE(pDecl && !pDecl->IsInterface()); BOOL fRet = FALSE; // Verify that the class of the declaration is in our heirarchy MethodTable* declType = pDecl->GetMethodTable(); MethodTable* pParentMT = bmtParent->pParentMethodTable; while(pParentMT != NULL) { if(declType == pParentMT) break; pParentMT = pParentMT->GetParentMethodTable(); } _ASSERTE(pParentMT); // Compare the signature for the token in the specified scope // If we have not got the method impl signature go get it now if (*ppBodySignature == NULL) { if (FAILED(bmtType->pMDImport->GetSigOfMethodDef( pImplBody->GetMemberDef(), pcBodySignature, ppBodySignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } // We get the method from the parents slot. We will replace the method that is currently // defined in that slot and any duplicates for that method desc. WORD wSlot = InteropMethodTableData::GetSlotForMethodDesc(pParentMT, pDecl); InteropMethodTableSlotData *pDeclData = bmtVT->ppSDVtable[wSlot]; InteropMethodTableSlotData *pImplData = bmtVT->pInteropData->GetData(pImplBody); // Get the real method desc (a base class may have overridden the method // with a method impl) MethodDesc* pReplaceDesc = pDeclData->pDeclMD; // If the body has not been placed then place it here if(pImplData->wSlot == MethodTable::NO_SLOT) { pImplData->wSlot = wSlot; } slots[*pSlotIndex] = wSlot; replaced[*pSlotIndex] = pReplaceDesc; bmtVT->SetMethodDescForSlot(wSlot, pImplBody); pDeclData->pMD = pImplData->pMD; pDeclData->wSlot = pImplData->wSlot; bmtVT->ppSDVtable[wSlot] = pDeclData; // increment the counter (*pSlotIndex)++; // we search for all duplicates for(USHORT i = wSlot+1; i < bmtVT->wCurrentVtableSlot; i++) { MethodDesc *pMD = bmtVT->ppSDVtable[i]->pMD; MethodDesc* pRealDesc = bmtVT->ppSDVtable[i]->pDeclMD; if(pRealDesc == pReplaceDesc) { // We do not want to override a body to another method impl _ASSERTE(!pRealDesc->IsMethodImpl()); // Make sure we are not overridding another method impl _ASSERTE(!(pMD != pImplBody && pMD->IsMethodImpl() && pMD->GetMethodTable() == NULL)); slots[*pSlotIndex] = i; replaced[*pSlotIndex] = pRealDesc; bmtVT->pVtable[i] = bmtVT->pVtable[wSlot]; bmtVT->pVtableMD[i] = bmtVT->pVtableMD[wSlot]; bmtVT->ppSDVtable[i] = bmtVT->ppSDVtable[wSlot]; // increment the counter (*pSlotIndex)++; } } } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PropagateInheritance( bmtVtable *bmtVT) { STANDARD_VM_CONTRACT; for (DWORD i = 0; i < bmtVT->wCurrentVtableSlot; i++) { // For now only propagate inheritance for method desc that are not interface MD's. // This is not sufficient but InterfaceImpl's will complete the picture. InteropMethodTableSlotData *pMDData = bmtVT->ppSDVtable[i]; MethodDesc* pMD = pMDData->pMD; CONSISTENCY_CHECK_MSG(CheckPointer(pMD), "Could not resolve MethodDesc Slot!"); if(!pMD->IsInterface() && pMDData->GetSlot() != i) { pMDData->SetDuplicate(); bmtVT->pVtable[i] = bmtVT->pVtable[pMDData->GetSlot()]; bmtVT->pVtableMD[i] = bmtVT->pVtableMD[pMDData->GetSlot()]; bmtVT->ppSDVtable[i]->pMD = bmtVT->ppSDVtable[pMDData->GetSlot()]->pMD; } } } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::FinalizeInteropVTable( AllocMemTracker *pamTracker, LoaderAllocator* pAllocator, bmtVtable* bmtVT, bmtInterfaceInfo* bmtInterface, bmtTypeInfo* bmtType, bmtProperties* bmtProp, bmtMethodInfo* bmtMethod, bmtErrorInfo* bmtError, bmtParentInfo* bmtParent, InteropMethodTableData **ppInteropMT) { STANDARD_VM_CONTRACT; LoaderHeap *pHeap = pAllocator->GetLowFrequencyHeap(); // Allocate the overall structure InteropMethodTableData *pMTData = (InteropMethodTableData *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableData)))); #ifdef LOGGING g_sdStats.m_cbComInteropData += sizeof(InteropMethodTableData); #endif memset(pMTData, 0, sizeof(InteropMethodTableData)); // Allocate the vtable pMTData->cVTable = bmtVT->wCurrentVtableSlot; if (pMTData->cVTable != 0) { pMTData->pVTable = (InteropMethodTableSlotData *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableSlotData)) * S_SIZE_T(pMTData->cVTable))); #ifdef LOGGING g_sdStats.m_cbComInteropData += sizeof(InteropMethodTableSlotData) * pMTData->cVTable; #endif { // Copy the vtable for (DWORD i = 0; i < pMTData->cVTable; i++) { CONSISTENCY_CHECK(bmtVT->ppSDVtable[i]->wSlot != MethodTable::NO_SLOT); pMTData->pVTable[i] = *bmtVT->ppSDVtable[i]; } } } // Allocate the non-vtable pMTData->cNonVTable = bmtVT->wCurrentNonVtableSlot; if (pMTData->cNonVTable != 0) { pMTData->pNonVTable = (InteropMethodTableSlotData *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableSlotData)) * S_SIZE_T(pMTData->cNonVTable))); #ifdef LOGGING g_sdStats.m_cbComInteropData += sizeof(InteropMethodTableSlotData) * pMTData->cNonVTable; #endif { // Copy the non-vtable for (DWORD i = 0; i < pMTData->cNonVTable; i++) { CONSISTENCY_CHECK(bmtVT->ppSDVtable[i]->wSlot != MethodTable::NO_SLOT); pMTData->pNonVTable[i] = *bmtVT->ppSDNonVtable[i]; } } } // Allocate the interface map pMTData->cInterfaceMap = bmtInterface->wInterfaceMapSize; if (pMTData->cInterfaceMap != 0) { pMTData->pInterfaceMap = (InterfaceInfo_t *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InterfaceInfo_t)) * S_SIZE_T(pMTData->cInterfaceMap))); #ifdef LOGGING g_sdStats.m_cbComInteropData += sizeof(InterfaceInfo_t) * pMTData->cInterfaceMap; #endif { // Copy the interface map for (DWORD i = 0; i < pMTData->cInterfaceMap; i++) { pMTData->pInterfaceMap[i] = bmtInterface->pInterfaceMap[i]; } } } *ppInteropMT = pMTData; } //******************************************************************************* VOID MethodTableBuilder::EnumerateMethodImpls() { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; IMDInternalImport *pMDInternalImport = bmtType->pMDImport; DWORD rid, maxRidMD, maxRidMR; hr = bmtMethodImpl->hEnumMethodImpl.EnumMethodImplInitNoThrow(GetCl()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // This gets the count out of the metadata interface. bmtMethodImpl->dwNumberMethodImpls = bmtMethodImpl->hEnumMethodImpl.EnumMethodImplGetCount(); // This is the first pass. In this we will simply enumerate the token pairs and fill in // the data structures. In addition, we'll sort the list and eliminate duplicates. if (bmtMethodImpl->dwNumberMethodImpls > 0) { // // Allocate the structures to keep track of the token pairs // bmtMethodImpl->rgMethodImplTokens = new (GetStackingAllocator()) bmtMethodImplInfo::MethodImplTokenPair[bmtMethodImpl->dwNumberMethodImpls]; // Iterate through each MethodImpl declared on this class for (DWORD i = 0; i < bmtMethodImpl->dwNumberMethodImpls; i++) { // Grab the next set of body/decl tokens hr = bmtMethodImpl->hEnumMethodImpl.EnumMethodImplNext( &bmtMethodImpl->rgMethodImplTokens[i].methodBody, &bmtMethodImpl->rgMethodImplTokens[i].methodDecl); if (FAILED(hr)) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (hr == S_FALSE) { // In the odd case that the enumerator fails before we've reached the total reported // entries, let's reset the count and just break out. (Should we throw?) bmtMethodImpl->dwNumberMethodImpls = i; break; } } // No need to do any sorting or duplicate elimination if there's not two or more methodImpls if (bmtMethodImpl->dwNumberMethodImpls > 1) { // Now sort qsort(bmtMethodImpl->rgMethodImplTokens, bmtMethodImpl->dwNumberMethodImpls, sizeof(bmtMethodImplInfo::MethodImplTokenPair), &bmtMethodImplInfo::MethodImplTokenPair::Compare); // Now eliminate duplicates for (DWORD i = 0; i < bmtMethodImpl->dwNumberMethodImpls - 1; i++) { CONSISTENCY_CHECK((i + 1) < bmtMethodImpl->dwNumberMethodImpls); bmtMethodImplInfo::MethodImplTokenPair *e1 = &bmtMethodImpl->rgMethodImplTokens[i]; bmtMethodImplInfo::MethodImplTokenPair *e2 = &bmtMethodImpl->rgMethodImplTokens[i + 1]; // If the pair are equal, eliminate the first one, and reduce the total count by one. if (bmtMethodImplInfo::MethodImplTokenPair::Equal(e1, e2)) { DWORD dwCopyNum = bmtMethodImpl->dwNumberMethodImpls - (i + 1); memcpy(e1, e2, dwCopyNum * sizeof(bmtMethodImplInfo::MethodImplTokenPair)); bmtMethodImpl->dwNumberMethodImpls--; CONSISTENCY_CHECK(bmtMethodImpl->dwNumberMethodImpls > 0); } } } } if (bmtMethodImpl->dwNumberMethodImpls != 0) { // // Allocate the structures to keep track of the impl matches // bmtMethodImpl->pMethodDeclSubsts = new (GetStackingAllocator()) Substitution[bmtMethodImpl->dwNumberMethodImpls]; bmtMethodImpl->rgEntries = new (GetStackingAllocator()) bmtMethodImplInfo::Entry[bmtMethodImpl->dwNumberMethodImpls]; // These are used for verification maxRidMD = pMDInternalImport->GetCountWithTokenKind(mdtMethodDef); maxRidMR = pMDInternalImport->GetCountWithTokenKind(mdtMemberRef); // Iterate through each MethodImpl declared on this class for (DWORD i = 0; i < bmtMethodImpl->dwNumberMethodImpls; i++) { PCCOR_SIGNATURE pSigDecl = NULL; PCCOR_SIGNATURE pSigBody = NULL; ULONG cbSigDecl; ULONG cbSigBody; mdToken tkParent; mdToken theBody, theDecl; Substitution theDeclSubst(bmtType->pModule, SigPointer(), NULL); // this can get updated later below. theBody = bmtMethodImpl->rgMethodImplTokens[i].methodBody; theDecl = bmtMethodImpl->rgMethodImplTokens[i].methodDecl; // IMPLEMENTATION LIMITATION: currently, we require that the body of a methodImpl // belong to the current type. This is because we need to allocate a different // type of MethodDesc for bodies that are part of methodImpls. if (TypeFromToken(theBody) != mdtMethodDef) { mdToken theNewBody; hr = FindMethodDeclarationForMethodImpl(bmtType->pMDImport, GetCl(), theBody, &theNewBody); if (FAILED(hr)) { BuildMethodTableThrowException(hr, IDS_CLASSLOAD_MI_ILLEGAL_BODY, mdMethodDefNil); } theBody = theNewBody; // Make sure to update the stored token with the resolved token. bmtMethodImpl->rgMethodImplTokens[i].methodBody = theBody; } if (TypeFromToken(theBody) != mdtMethodDef) { BuildMethodTableThrowException(BFA_METHODDECL_NOT_A_METHODDEF); } CONSISTENCY_CHECK(theBody == bmtMethodImpl->rgMethodImplTokens[i].methodBody); // // Now that the tokens of Decl and Body are obtained, do the MD validation // rid = RidFromToken(theDecl); // Perform initial rudimentary validation of the token. Full token verification // will be done in TestMethodImpl when placing the methodImpls. if (TypeFromToken(theDecl) == mdtMethodDef) { // Decl must be valid token if ((rid == 0)||(rid > maxRidMD)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL); } // Get signature and length if (FAILED(pMDInternalImport->GetSigOfMethodDef(theDecl, &cbSigDecl, &pSigDecl))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } // The token is not a MethodDef (likely a MemberRef) else { // Decl must be valid token if ((TypeFromToken(theDecl) != mdtMemberRef) || (rid == 0) || (rid > maxRidMR)) { bmtError->resIDWhy = IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL; BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL); } // Get signature and length LPCSTR szDeclName; if (FAILED(pMDInternalImport->GetNameAndSigOfMemberRef(theDecl, &pSigDecl, &cbSigDecl, &szDeclName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } // Get parent hr = pMDInternalImport->GetParentToken(theDecl,&tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); theDeclSubst = Substitution(tkParent, bmtType->pModule, NULL); } // Perform initial rudimentary validation of the token. Full token verification // will be done in TestMethodImpl when placing the methodImpls. { // Body must be valid token rid = RidFromToken(theBody); if ((rid == 0)||(rid > maxRidMD)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_BODY); } // Body's parent must be this class hr = pMDInternalImport->GetParentToken(theBody,&tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); if(tkParent != GetCl()) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_BODY); } } // Decl's and Body's signatures must match if ((pSigDecl != NULL) && (cbSigDecl != 0)) { if (FAILED(pMDInternalImport->GetSigOfMethodDef(theBody,&cbSigBody, &pSigBody)) || (pSigBody == NULL) || (cbSigBody == 0)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MISSING_SIG_BODY); } // Can't use memcmp because there may be two AssemblyRefs // in this scope, pointing to the same assembly, etc.). if (!MetaSig::CompareMethodSigs(pSigDecl, cbSigDecl, bmtType->pModule, &theDeclSubst, pSigBody, cbSigBody, bmtType->pModule, NULL, FALSE)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_BODY_DECL_MISMATCH); } } else { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MISSING_SIG_DECL); } bmtMethodImpl->pMethodDeclSubsts[i] = theDeclSubst; } } } //******************************************************************************* // // Used by BuildMethodTable // // Enumerate this class's members // #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif VOID MethodTableBuilder::EnumerateClassMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(bmtType)); PRECONDITION(CheckPointer(bmtMethod)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtError)); } CONTRACTL_END; HRESULT hr = S_OK; DWORD i; IMDInternalImport *pMDInternalImport = bmtType->pMDImport; mdToken tok; DWORD dwMemberAttrs; BOOL fIsClassEnum = IsEnum(); BOOL fIsClassInterface = IsInterface(); BOOL fIsClassValueType = IsValueClass(); #ifdef FEATURE_COMINTEROP BOOL fIsClassComImport = IsComImport(); #endif BOOL fIsClassNotAbstract = (IsTdAbstract(GetAttrClass()) == 0); PCCOR_SIGNATURE pMemberSignature; ULONG cMemberSignature; // // Run through the method list and calculate the following: // # methods. // # "other" methods (i.e. static or private) // # non-other methods // bmtVT->dwMaxVtableSize = 0; // we'll fix this later to be the real upper bound on vtable size bmtMethod->cMethods = 0; hr = bmtMethod->hEnumMethod.EnumInitNoThrow(mdtMethodDef, GetCl()); if (FAILED(hr)) { _ASSERTE(!"Cannot count memberdefs"); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } } // Allocate an array to contain the method tokens as well as information about the methods. bmtMethod->cMethAndGaps = bmtMethod->hEnumMethod.EnumGetCount(); bmtMethod->rgMethodTokens = new (GetStackingAllocator()) mdToken[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodRVA = new (GetStackingAllocator()) ULONG[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodAttrs = new (GetStackingAllocator()) DWORD[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodImplFlags = new (GetStackingAllocator()) DWORD[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodClassifications = new (GetStackingAllocator()) DWORD[bmtMethod->cMethAndGaps]; bmtMethod->rgszMethodName = new (GetStackingAllocator()) LPCSTR[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodImpl = new (GetStackingAllocator()) BYTE[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodType = new (GetStackingAllocator()) BYTE[bmtMethod->cMethAndGaps]; enum { SeenCtor = 1, SeenInvoke = 2, SeenBeginInvoke = 4, SeenEndInvoke = 8}; unsigned delegateMethodsSeen = 0; for (i = 0; i < bmtMethod->cMethAndGaps; i++) { ULONG dwMethodRVA; DWORD dwImplFlags; DWORD Classification; LPSTR strMethodName; // // Go to the next method and retrieve its attributes. // bmtMethod->hEnumMethod.EnumNext(&tok); DWORD rid = RidFromToken(tok); if ((rid == 0)||(rid > pMDInternalImport->GetCountWithTokenKind(mdtMethodDef))) { BuildMethodTableThrowException(BFA_METHOD_TOKEN_OUT_OF_RANGE); } if (FAILED(pMDInternalImport->GetMethodDefProps(tok, &dwMemberAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsMdRTSpecialName(dwMemberAttrs) || IsMdVirtual(dwMemberAttrs) || IsDelegate()) { if (FAILED(pMDInternalImport->GetNameOfMethodDef(tok, (LPCSTR *)&strMethodName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsStrLongerThan(strMethodName,MAX_CLASS_NAME)) { BuildMethodTableThrowException(BFA_METHOD_NAME_TOO_LONG); } } else strMethodName = NULL; HENUMInternalHolder hEnumTyPars(pMDInternalImport); hr = hEnumTyPars.EnumInitNoThrow(mdtGenericParam, tok); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } WORD numGenericMethodArgs = (WORD) hEnumTyPars.EnumGetCount(); if (numGenericMethodArgs != 0) { for (unsigned methIdx = 0; methIdx < numGenericMethodArgs; methIdx++) { mdGenericParam tkTyPar; pMDInternalImport->EnumNext(&hEnumTyPars, &tkTyPar); DWORD flags; if (FAILED(pMDInternalImport->GetGenericParamProps(tkTyPar, NULL, &flags, NULL, NULL, NULL))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (0 != (flags & ~(gpVarianceMask | gpSpecialConstraintMask))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } switch (flags & gpVarianceMask) { case gpNonVariant: break; case gpCovariant: // intentional fallthru case gpContravariant: BuildMethodTableThrowException(VLDTR_E_GP_ILLEGAL_VARIANT_MVAR); break; default: BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } } // // We need to check if there are any gaps in the vtable. These are // represented by methods with the mdSpecial flag and a name of the form // _VTblGap_nnn (to represent nnn empty slots) or _VTblGap (to represent a // single empty slot). // if (IsMdRTSpecialName(dwMemberAttrs)) { PREFIX_ASSUME(strMethodName != NULL); // if we've gotten here we've called GetNameOfMethodDef // The slot is special, but it might not be a vtable spacer. To // determine that we must look at the name. if (strncmp(strMethodName, "_VtblGap", 8) == 0) { // // This slot doesn't really exist, don't add it to the method // table. Instead it represents one or more empty slots, encoded // in the method name. Locate the beginning of the count in the // name. There are these points to consider: // There may be no count present at all (in which case the // count is taken as one). // There may be an additional count just after Gap but before // the '_'. We ignore this. // LPCSTR pos = strMethodName + 8; // Skip optional number. while (IS_DIGIT(*pos)) pos++; WORD n = 0; // Check for presence of count. if (*pos == '\0') n = 1; else { if (*pos != '_') { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } // Skip '_'. pos++; // Read count. bool fReadAtLeastOneDigit = false; while (IS_DIGIT(*pos)) { _ASSERTE(n < 6552); n *= 10; n += DIGIT_TO_INT(*pos); pos++; fReadAtLeastOneDigit = true; } // Check for end of name. if (*pos != '\0' || !fReadAtLeastOneDigit) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } } #ifdef FEATURE_COMINTEROP // Record vtable gap in mapping list. if (GetHalfBakedClass()->GetSparseCOMInteropVTableMap() == NULL) GetHalfBakedClass()->SetSparseCOMInteropVTableMap(new SparseVTableMap()); GetHalfBakedClass()->GetSparseCOMInteropVTableMap()->RecordGap(NumDeclaredMethods(), n); bmtProp->fSparse = true; #endif // FEATURE_COMINTEROP continue; } } // // This is a real method so add it to the enumeration of methods. We now need to retrieve // information on the method and store it for later use. // if (FAILED(pMDInternalImport->GetMethodImplProps(tok, &dwMethodRVA, &dwImplFlags))) { BuildMethodTableThrowException(BFA_INVALID_TOKEN); } // // But first - minimal flags validity checks // // No methods in Enums! if (fIsClassEnum) { BuildMethodTableThrowException(BFA_METHOD_IN_A_ENUM); } // RVA : 0 if (dwMethodRVA != 0) { #ifdef FEATURE_COMINTEROP if(fIsClassComImport) { BuildMethodTableThrowException(BFA_METHOD_WITH_NONZERO_RVA); } #endif // FEATURE_COMINTEROP if(IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_ABSTRACT_METHOD_WITH_RVA); } if(IsMiRuntime(dwImplFlags)) { BuildMethodTableThrowException(BFA_RUNTIME_METHOD_WITH_RVA); } if(IsMiInternalCall(dwImplFlags)) { BuildMethodTableThrowException(BFA_INTERNAL_METHOD_WITH_RVA); } } // Abstract / not abstract if(IsMdAbstract(dwMemberAttrs)) { if(fIsClassNotAbstract) { BuildMethodTableThrowException(BFA_AB_METHOD_IN_AB_CLASS); } if(!IsMdVirtual(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONVIRT_AB_METHOD); } } else if(fIsClassInterface && strMethodName && (strcmp(strMethodName, COR_CCTOR_METHOD_NAME))) { BuildMethodTableThrowException(BFA_NONAB_NONCCTOR_METHOD_ON_INT); } // Virtual / not virtual if(IsMdVirtual(dwMemberAttrs)) { if(IsMdPinvokeImpl(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_PINVOKE_METHOD); } if(IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_STATIC_METHOD); } if(strMethodName && (0==strcmp(strMethodName, COR_CTOR_METHOD_NAME))) { BuildMethodTableThrowException(BFA_VIRTUAL_INSTANCE_CTOR); } } // Some interface checks. // We only need them if default interface method support is disabled #if !defined(FEATURE_DEFAULT_INTERFACES) if (fIsClassInterface) { if (IsMdVirtual(dwMemberAttrs)) { if (!IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_NONAB_INT_METHOD); } } else { // Instance method if (!IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONVIRT_INST_INT_METHOD); } } } #endif // !defined(FEATURE_DEFAULT_INTERFACES) // No synchronized methods in ValueTypes if(fIsClassValueType && IsMiSynchronized(dwImplFlags)) { BuildMethodTableThrowException(BFA_SYNC_METHOD_IN_VT); } // Global methods: if(IsGlobalClass()) { if(!IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONSTATIC_GLOBAL_METHOD); } if (strMethodName) //<TODO>@todo: investigate mc++ generating null name</TODO> { if(0==strcmp(strMethodName, COR_CTOR_METHOD_NAME)) { BuildMethodTableThrowException(BFA_GLOBAL_INST_CTOR); } } } //@GENERICS: // Generic methods or methods in generic classes // may not be part of a COM Import class, PInvoke, internal call. if ((numGenericMethodArgs != 0) && ( #ifdef FEATURE_COMINTEROP fIsClassComImport || bmtProp->fComEventItfType || #endif // FEATURE_COMINTEROP IsMdPinvokeImpl(dwMemberAttrs) || IsMiInternalCall(dwImplFlags))) { BuildMethodTableThrowException(BFA_BAD_PLACE_FOR_GENERIC_METHOD); } // Generic methods may not be marked "runtime". However note that // methods in generic delegate classes are, hence we don't apply this to // methods in generic classes in general. if (numGenericMethodArgs != 0 && IsMiRuntime(dwImplFlags)) { BuildMethodTableThrowException(BFA_GENERIC_METHOD_RUNTIME_IMPL); } // Signature validation if (FAILED(pMDInternalImport->GetSigOfMethodDef(tok,&cMemberSignature, &pMemberSignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } hr = validateTokenSig(tok,pMemberSignature,cMemberSignature,dwMemberAttrs,pMDInternalImport); if (FAILED(hr)) { BuildMethodTableThrowException(hr, BFA_BAD_SIGNATURE, mdMethodDefNil); } // // Determine the method's classification. // if (IsReallyMdPinvokeImpl(dwMemberAttrs) || IsMiInternalCall(dwImplFlags)) { hr = NDirect::HasNAT_LAttribute(pMDInternalImport, tok, dwMemberAttrs); // There was a problem querying for the attribute if (FAILED(hr)) { BuildMethodTableThrowException(hr, IDS_CLASSLOAD_BADPINVOKE, tok); } // The attribute is not present if (hr == S_FALSE) { #ifdef FEATURE_COMINTEROP if (fIsClassComImport || bmtProp->fComEventItfType) { // tlbimported component if (IsMdRTSpecialName(dwMemberAttrs)) { // constructor is special Classification = mcFCall; } else { // Tlbimported components we have some // method descs in the call which are just used // for handling methodimpls of all interface methods Classification = mcComInterop; } } else #endif // FEATURE_COMINTEROP if (dwMethodRVA == 0) Classification = mcFCall; else Classification = mcNDirect; } // The NAT_L attribute is present, marking this method as NDirect else { CONSISTENCY_CHECK(hr == S_OK); Classification = mcNDirect; } } else if (IsMiRuntime(dwImplFlags)) { // currently the only runtime implemented functions are delegate instance methods if (!IsDelegate() || IsMdStatic(dwMemberAttrs) || IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_BAD_RUNTIME_IMPL); } unsigned newDelegateMethodSeen = 0; if (IsMdRTSpecialName(dwMemberAttrs)) // .ctor { if (strcmp(strMethodName, COR_CTOR_METHOD_NAME) != 0 || IsMdVirtual(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_BAD_FLAGS_ON_DELEGATE); } newDelegateMethodSeen = SeenCtor; Classification = mcFCall; } else { if (strcmp(strMethodName, "Invoke") == 0) newDelegateMethodSeen = SeenInvoke; else if (strcmp(strMethodName, "BeginInvoke") == 0) newDelegateMethodSeen = SeenBeginInvoke; else if (strcmp(strMethodName, "EndInvoke") == 0) newDelegateMethodSeen = SeenEndInvoke; else { BuildMethodTableThrowException(BFA_UNKNOWN_DELEGATE_METHOD); } Classification = mcEEImpl; } // If we get here we have either set newDelegateMethodSeen or we have thrown a BMT exception _ASSERTE(newDelegateMethodSeen != 0); if ((delegateMethodsSeen & newDelegateMethodSeen) != 0) { BuildMethodTableThrowException(BFA_DUPLICATE_DELEGATE_METHOD); } delegateMethodsSeen |= newDelegateMethodSeen; } else if (numGenericMethodArgs != 0) { //We use an instantiated method desc to represent a generic method Classification = mcInstantiated; } else if (fIsClassInterface) { #ifdef FEATURE_COMINTEROP if (IsMdStatic(dwMemberAttrs)) { // Static methods in interfaces need nothing special. Classification = mcIL; } else if (bmtProp->fIsMngStandardItf) { // If the interface is a standard managed interface then allocate space for an FCall method desc. Classification = mcFCall; } else if (IsMdAbstract(dwMemberAttrs)) { // If COM interop is supported then all other interface MDs may be // accessed via COM interop <TODO> mcComInterop MDs are BIG - // this is very often a waste of space </TODO> // @DIM_TODO - What if default interface method is called through COM interop? Classification = mcComInterop; } else #endif // !FEATURE_COMINTEROP { // This codepath is used by remoting and default interface methods Classification = mcIL; } } else { Classification = mcIL; } // Generic methods should always be mcInstantiated if (!((numGenericMethodArgs == 0) || ((Classification & mdcClassification) == mcInstantiated))) { BuildMethodTableThrowException(BFA_GENERIC_METHODS_INST); } // count how many overrides this method does All methods bodies are defined // on this type so we can just compare the tok with the body token found // from the overrides. for(DWORD impls = 0; impls < bmtMethodImpl->dwNumberMethodImpls; impls++) { if ((bmtMethodImpl->rgMethodImplTokens[impls].methodBody == tok) && !IsMdStatic(dwMemberAttrs)) { Classification |= mdcMethodImpl; break; } } // For delegates we don't allow any non-runtime implemented bodies // for any of the four special methods if (IsDelegate() && !IsMiRuntime(dwImplFlags)) { if ((strcmp(strMethodName, COR_CTOR_METHOD_NAME) == 0) || (strcmp(strMethodName, "Invoke") == 0) || (strcmp(strMethodName, "BeginInvoke") == 0) || (strcmp(strMethodName, "EndInvoke") == 0) ) { BuildMethodTableThrowException(BFA_ILLEGAL_DELEGATE_METHOD); } } // // Compute the type & other info // // Set the index into the storage locations BYTE impl; if (Classification & mdcMethodImpl) { impl = METHOD_IMPL; } else { impl = METHOD_IMPL_NOT; } BYTE type; if ((Classification & mdcClassification) == mcNDirect) { type = METHOD_TYPE_NDIRECT; } else if ((Classification & mdcClassification) == mcFCall) { type = METHOD_TYPE_FCALL; } else if ((Classification & mdcClassification) == mcEEImpl) { type = METHOD_TYPE_EEIMPL; } #ifdef FEATURE_COMINTEROP else if ((Classification & mdcClassification) == mcComInterop) { type = METHOD_TYPE_INTEROP; } #endif // FEATURE_COMINTEROP else if ((Classification & mdcClassification) == mcInstantiated) { type = METHOD_TYPE_INSTANTIATED; } else { type = METHOD_TYPE_NORMAL; } // // Store the method and the information we have gathered on it in the metadata info structure. // bmtMethod->SetMethodData(NumDeclaredMethods(), tok, dwMemberAttrs, dwMethodRVA, dwImplFlags, Classification, strMethodName, impl, type); IncNumDeclaredMethods(); // // Update the count of the various types of methods. // bmtVT->dwMaxVtableSize++; } // Check to see that we have all of the required delegate methods (ECMA 13.6 Delegates) if (IsDelegate()) { // Do we have all four special delegate methods // or just the two special delegate methods if ((delegateMethodsSeen != (SeenCtor | SeenInvoke | SeenBeginInvoke | SeenEndInvoke)) && (delegateMethodsSeen != (SeenCtor | SeenInvoke)) ) { BuildMethodTableThrowException(BFA_MISSING_DELEGATE_METHOD); } } if (i != bmtMethod->cMethAndGaps) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_METHOD_COUNT, mdTokenNil); } bmtMethod->hEnumMethod.EnumReset(); #ifdef FEATURE_COMINTEROP // // If the interface is sparse, we need to finalize the mapping list by // telling it how many real methods we found. // if (bmtProp->fSparse) { GetHalfBakedClass()->GetSparseCOMInteropVTableMap()->FinalizeMapping(NumDeclaredMethods()); } #endif // FEATURE_COMINTEROP } #ifdef _PREFAST_ #pragma warning(pop) #endif //******************************************************************************* // // Used by BuildMethodTable // // Determines the maximum size of the vtable and allocates the temporary storage arrays // Also copies the parent's vtable into the working vtable. // VOID MethodTableBuilder::AllocateMethodWorkingMemory() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtMethod)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; DWORD i; // Allocate a MethodDesc* for each method (needed later when doing interfaces), and a FieldDesc* for each field bmtMethod->ppMethodDescList = new (GetStackingAllocator()) MethodDesc*[NumDeclaredMethods()]; ZeroMemory(bmtMethod->ppMethodDescList, NumDeclaredMethods() * sizeof(MethodDesc *)); // Create a temporary function table (we don't know how large the vtable will be until the very end, // since duplicated interfaces are stored at the end of it). Calculate an upper bound. // // Upper bound is: The parent's class vtable size, plus every method declared in // this class, plus the size of every interface we implement // // In the case of value classes, we add # InstanceMethods again, since we have boxed and unboxed versions // of every vtable method. // if (IsValueClass()) { bmtVT->dwMaxVtableSize += NumDeclaredMethods(); bmtMethod->ppUnboxMethodDescList = new (GetStackingAllocator()) MethodDesc*[NumDeclaredMethods()]; ZeroMemory(bmtMethod->ppUnboxMethodDescList, NumDeclaredMethods() * sizeof(MethodDesc*)); } // sanity check _ASSERTE(bmtParent->pParentMethodTable == NULL || (bmtInterface->wInterfaceMapSize - bmtParent->pParentMethodTable->GetNumInterfaces()) >= 0); // add parent vtable size bmtVT->dwMaxVtableSize += bmtVT->wCurrentVtableSlot; for (i = 0; i < bmtInterface->wInterfaceMapSize; i++) { // We double the interface size because we may end up duplicating the Interface for MethodImpls bmtVT->dwMaxVtableSize += (bmtInterface->pInterfaceMap[i].m_pMethodTable->GetNumVirtuals() * 2); } // Allocate the temporary vtable bmtVT->pVtable = new (GetStackingAllocator())PCODE [bmtVT->dwMaxVtableSize]; ZeroMemory(bmtVT->pVtable, bmtVT->dwMaxVtableSize * sizeof(PCODE)); bmtVT->pVtableMD = new (GetStackingAllocator()) MethodDesc*[bmtVT->dwMaxVtableSize]; ZeroMemory(bmtVT->pVtableMD, bmtVT->dwMaxVtableSize * sizeof(MethodDesc*)); // Allocate the temporary non-vtable bmtVT->pNonVtableMD = new (GetStackingAllocator()) MethodDesc*[NumDeclaredMethods()]; ZeroMemory(bmtVT->pNonVtableMD, sizeof(MethodDesc*) * NumDeclaredMethods()); if (bmtParent->pParentMethodTable != NULL) { // Copy parent's vtable into our "temp" vtable { MethodTable::MethodIterator it(bmtParent->pParentMethodTable); for (;it.IsValid() && it.IsVirtual(); it.Next()) { DWORD slot = it.GetSlotNumber(); bmtVT->pVtable[slot] = it.GetTarget().GetTarget(); bmtVT->pVtableMD[slot] = NULL; // MethodDescs are resolved lazily } bmtVT->pParentMethodTable = bmtParent->pParentMethodTable; } } if (NumDeclaredMethods() > 0) { bmtParent->ppParentMethodDescBuf = (MethodDesc **) GetStackingAllocator()->Alloc(S_UINT32(2) * S_UINT32(NumDeclaredMethods()) * S_UINT32(sizeof(MethodDesc*))); bmtParent->ppParentMethodDescBufPtr = bmtParent->ppParentMethodDescBuf; } } //******************************************************************************* // // Find a method in this class hierarchy - used ONLY by the loader during layout. Do not use at runtime. // // *ppMemberSignature must be NULL on entry - it and *pcMemberSignature may or may not be filled out // // ppMethodDesc will be filled out with NULL if no matching method in the hierarchy is found. // // Returns FALSE if there was an error of some kind. // // pMethodConstraintsMatch receives the result of comparing the method constraints. HRESULT MethodTableBuilder::LoaderFindMethodInClass( LPCUTF8 pszMemberName, Module* pModule, mdMethodDef mdToken, MethodDesc ** ppMethodDesc, PCCOR_SIGNATURE * ppMemberSignature, DWORD * pcMemberSignature, DWORD dwHashName, BOOL * pMethodConstraintsMatch) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(pModule)); PRECONDITION(CheckPointer(ppMethodDesc)); PRECONDITION(CheckPointer(ppMemberSignature)); PRECONDITION(CheckPointer(pcMemberSignature)); } CONTRACTL_END; HRESULT hr; MethodHashEntry *pEntry; DWORD dwNameHashValue; _ASSERTE(pModule); _ASSERTE(*ppMemberSignature == NULL); // No method found yet *ppMethodDesc = NULL; // Have we created a hash of all the methods in the class chain? if (bmtParent->pParentMethodHash == NULL) { // There may be such a method, so we will now create a hash table to reduce the pain for // further lookups // <TODO> Are we really sure that this is worth doing? </TODO> bmtParent->pParentMethodHash = CreateMethodChainHash(bmtParent->pParentMethodTable); } // Look to see if the method exists in the parent hash pEntry = bmtParent->pParentMethodHash->Lookup(pszMemberName, dwHashName); if (pEntry == NULL) { return S_OK; // No method by this name exists in the hierarchy } // Get signature of the method we're searching for - we will need this to verify an exact name-signature match IfFailRet(pModule->GetMDImport()->GetSigOfMethodDef( mdToken, pcMemberSignature, ppMemberSignature)); // Hash value we are looking for in the chain dwNameHashValue = pEntry->m_dwHashValue; // We've found a method with the same name, but the signature may be different // Traverse the chain of all methods with this name while (1) { PCCOR_SIGNATURE pHashMethodSig = NULL; DWORD cHashMethodSig = 0; Substitution * pSubst = NULL; MethodDesc * entryDesc = pEntry->m_pDesc; MethodTable * entryMT = entryDesc->GetMethodTable(); MethodTable * entryCanonMT = entryMT->GetCanonicalMethodTable(); // If entry is in a parameterized type, its signature may need to be instantiated all the way down the chain // To understand why consider the following example: // class C<T> { void m(T) { ...body... } } // class D<T> : C<T[]> { /* inherits m with signature void m(T[]) */ } // class E<T> : D<List<T>> { void m(List<T>[]) { ... body... } } // Now suppose that we've got the signature of E::m in our hand and are comparing it with the methoddesc for C.m // They're not syntactically the same but are if you instantiate "all the way up" // Possible optimization: don't bother constructing the substitution if the signature of pEntry is closed if (entryCanonMT->GetNumGenericArgs() > 0) { MethodTable *here = GetHalfBakedMethodTable(); _ASSERTE(here->GetModule()); MethodTable *pParent = bmtParent->pParentMethodTable; for (;;) { Substitution *newSubst = new Substitution; *newSubst = here->GetSubstitutionForParent(pSubst); pSubst = newSubst; here = pParent->GetCanonicalMethodTable(); if (entryCanonMT == here) break; pParent = pParent->GetParentMethodTable(); _ASSERT(pParent != NULL); } } // Get sig of entry in hash chain entryDesc->GetSig(&pHashMethodSig, &cHashMethodSig); // Note instantiation info { hr = MetaSig::CompareMethodSigsNT(*ppMemberSignature, *pcMemberSignature, pModule, NULL, pHashMethodSig, cHashMethodSig, entryDesc->GetModule(), pSubst); if (hr == S_OK) { // Found a match *ppMethodDesc = entryDesc; // Check the constraints are consistent, // and return the result to the caller. // We do this here to avoid recalculating pSubst. *pMethodConstraintsMatch = MetaSig::CompareMethodConstraints(NULL, pModule, mdToken, pSubst, entryDesc->GetModule(), entryDesc->GetMemberDef()); } if (pSubst != NULL) { pSubst->DeleteChain(); pSubst = NULL; } if (FAILED(hr) || hr == S_OK) { return hr; } } do { // Advance to next item in the hash chain which has the same name pEntry = pEntry->m_pNext; // Next entry in the hash chain if (pEntry == NULL) { return S_OK; // End of hash chain, no match found } } while ((pEntry->m_dwHashValue != dwNameHashValue) || (strcmp(pEntry->m_pKey, pszMemberName) != 0)); } return S_OK; } //******************************************************************************* // // Find a method declaration that must reside in the scope passed in. This method cannot be called if // the reference travels to another scope. // // Protect against finding a declaration that lives within // us (the type being created) // HRESULT MethodTableBuilder::FindMethodDeclarationForMethodImpl( IMDInternalImport * pMDInternalImport, // Scope in which tkClass and tkMethod are defined. mdTypeDef tkClass, // Type that the method def resides in mdToken tkMethod, // Token that is being located (MemberRef or MethodDef) mdMethodDef * ptkMethodDef) // Method definition for Member { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; PCCOR_SIGNATURE pSig; // Signature of Member DWORD cSig; LPCUTF8 szMember = NULL; // The token should be a member ref or def. If it is a ref then we need to travel // back to us hopefully. if(TypeFromToken(tkMethod) == mdtMemberRef) { // Get the parent mdToken typeref; if (FAILED(pMDInternalImport->GetParentOfMemberRef(tkMethod, &typeref))) { BAD_FORMAT_NOTHROW_ASSERT(!"Invalid MemberRef record"); IfFailRet(COR_E_TYPELOAD); } while (TypeFromToken(typeref) == mdtTypeSpec) { // Added so that method impls can refer to instantiated interfaces or classes if (FAILED(pMDInternalImport->GetSigFromToken(typeref, &cSig, &pSig))) { BAD_FORMAT_NOTHROW_ASSERT(!"Invalid TypeSpec record"); IfFailRet(COR_E_TYPELOAD); } CorElementType elemType = (CorElementType) *pSig++; // If this is a generic inst, we expect that the next elem is ELEMENT_TYPE_CLASS, // which is handled in the case below. if (elemType == ELEMENT_TYPE_GENERICINST) { elemType = (CorElementType) *pSig++; BAD_FORMAT_NOTHROW_ASSERT(elemType == ELEMENT_TYPE_CLASS); } // This covers E_T_GENERICINST and E_T_CLASS typespec formats. We don't expect // any other kinds to come through here. if (elemType == ELEMENT_TYPE_CLASS) { CorSigUncompressToken(pSig, &typeref); } else { // This is an unrecognized signature format. BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MI_BAD_SIG, mdMethodDefNil); } } // If parent is a method def then this is a varags method if (TypeFromToken(typeref) == mdtMethodDef) { mdTypeDef typeDef; IfFailRet(pMDInternalImport->GetParentToken(typeref, &typeDef)); // Make sure it is a typedef if (TypeFromToken(typeDef) != mdtTypeDef) { BAD_FORMAT_NOTHROW_ASSERT(!"MethodDef without TypeDef as Parent"); IfFailRet(COR_E_TYPELOAD); } BAD_FORMAT_NOTHROW_ASSERT(typeDef == tkClass); // This is the real method we are overriding // <TODO>@TODO: CTS this may be illegal and we could throw an error</TODO> *ptkMethodDef = typeref; } else { // Verify that the ref points back to us mdToken tkDef = mdTokenNil; // We only get here when we know the token does not reference a type // in a different scope. if(TypeFromToken(typeref) == mdtTypeRef) { LPCUTF8 pszNameSpace; LPCUTF8 pszClassName; if (FAILED(pMDInternalImport->GetNameOfTypeRef(typeref, &pszNameSpace, &pszClassName))) { IfFailRet(COR_E_TYPELOAD); } mdToken tkRes; if (FAILED(pMDInternalImport->GetResolutionScopeOfTypeRef(typeref, &tkRes))) { IfFailRet(COR_E_TYPELOAD); } hr = pMDInternalImport->FindTypeDef(pszNameSpace, pszClassName, (TypeFromToken(tkRes) == mdtTypeRef) ? tkRes : mdTokenNil, &tkDef); if(FAILED(hr)) { IfFailRet(COR_E_TYPELOAD); } } // We get a typedef when the parent of the token is a typespec to the type. else if (TypeFromToken(typeref) == mdtTypeDef) { tkDef = typeref; } else { CONSISTENCY_CHECK_MSGF(FALSE, ("Invalid methodimpl signature in class %s.", GetDebugClassName())); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MI_BAD_SIG, mdMethodDefNil); } // If we required that the typedef be the same type as the current class, // and it doesn't match, we need to return a failure result. if (tkDef != tkClass) { IfFailRet(COR_E_TYPELOAD); } IfFailRet(pMDInternalImport->GetNameAndSigOfMemberRef(tkMethod, &pSig, &cSig, &szMember)); if (isCallConv( MetaSig::GetCallingConvention(Signature(pSig, cSig)), IMAGE_CEE_CS_CALLCONV_FIELD)) { return VLDTR_E_MR_BADCALLINGCONV; } hr = pMDInternalImport->FindMethodDef( tkDef, szMember, pSig, cSig, ptkMethodDef); IfFailRet(hr); } } else if (TypeFromToken(tkMethod) == mdtMethodDef) { mdTypeDef typeDef; // Verify that we are the parent hr = pMDInternalImport->GetParentToken(tkMethod, &typeDef); IfFailRet(hr); if(typeDef != tkClass) { IfFailRet(COR_E_TYPELOAD); } *ptkMethodDef = tkMethod; } else { IfFailRet(COR_E_TYPELOAD); } return hr; } //******************************************************************************* void MethodTableBuilder::bmtMethodImplInfo::AddMethod(MethodDesc* pImplDesc, MethodDesc* pDesc, mdToken mdDecl, Substitution *pDeclSubst) { LIMITED_METHOD_CONTRACT; _ASSERTE((pDesc == NULL || mdDecl == mdTokenNil) && (pDesc != NULL || mdDecl != mdTokenNil)); rgEntries[pIndex].pDeclDesc = pDesc; rgEntries[pIndex].declToken = mdDecl; rgEntries[pIndex].declSubst = *pDeclSubst; rgEntries[pIndex].pBodyDesc = pImplDesc; pIndex++; } //******************************************************************************* // Returns TRUE if tok acts as a body for any methodImpl entry. FALSE, otherwise. BOOL MethodTableBuilder::bmtMethodImplInfo::IsBody(mdToken tok) { LIMITED_METHOD_CONTRACT; CONSISTENCY_CHECK(TypeFromToken(tok) == mdtMethodDef); for (DWORD i = 0; i < pIndex; i++) { if (GetBodyMethodDesc(i)->GetMemberDef() == tok) { return TRUE; } } return FALSE; } //******************************************************************************* // Returns TRUE for success, FALSE for failure void MethodNameHash::Init(DWORD dwMaxEntries, StackingAllocator *pAllocator) { CONTRACTL { THROWS; GC_NOTRIGGER; PRECONDITION(CheckPointer(this)); } CONTRACTL_END; // Given dwMaxEntries, determine a good value for the number of hash buckets m_dwNumBuckets = (dwMaxEntries / 10); if (m_dwNumBuckets < 5) m_dwNumBuckets = 5; S_UINT32 scbMemory = (S_UINT32(m_dwNumBuckets) * S_UINT32(sizeof(MethodHashEntry*))) + (S_UINT32(dwMaxEntries) * S_UINT32(sizeof(MethodHashEntry))); if (scbMemory.IsOverflow()) { ThrowHR(E_INVALIDARG); } if (pAllocator) { m_pMemoryStart = (BYTE*)pAllocator->Alloc(scbMemory); } else { // We're given the number of hash table entries we're going to insert, // so we can allocate the appropriate size m_pMemoryStart = new BYTE[scbMemory.Value()]; } INDEBUG(m_pDebugEndMemory = m_pMemoryStart + scbMemory.Value();) // Current alloc ptr m_pMemory = m_pMemoryStart; // Allocate the buckets out of the alloc ptr m_pBuckets = (MethodHashEntry**) m_pMemory; m_pMemory += sizeof(MethodHashEntry*)*m_dwNumBuckets; // Buckets all point to empty lists to begin with memset(m_pBuckets, 0, scbMemory.Value()); } //******************************************************************************* // Insert new entry at head of list void MethodNameHash::Insert(LPCUTF8 pszName, MethodDesc *pDesc) { LIMITED_METHOD_CONTRACT; DWORD dwHash = HashStringA(pszName); DWORD dwBucket = dwHash % m_dwNumBuckets; MethodHashEntry*pNewEntry; pNewEntry = (MethodHashEntry *) m_pMemory; m_pMemory += sizeof(MethodHashEntry); _ASSERTE(m_pMemory <= m_pDebugEndMemory); // Insert at head of bucket chain pNewEntry->m_pNext = m_pBuckets[dwBucket]; pNewEntry->m_pDesc = pDesc; pNewEntry->m_dwHashValue = dwHash; pNewEntry->m_pKey = pszName; m_pBuckets[dwBucket] = pNewEntry; } //******************************************************************************* // Return the first MethodHashEntry with this name, or NULL if there is no such entry MethodHashEntry *MethodNameHash::Lookup(LPCUTF8 pszName, DWORD dwHash) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; if (!dwHash) dwHash = HashStringA(pszName); DWORD dwBucket = dwHash % m_dwNumBuckets; MethodHashEntry*pSearch; for (pSearch = m_pBuckets[dwBucket]; pSearch; pSearch = pSearch->m_pNext) { if (pSearch->m_dwHashValue == dwHash && !strcmp(pSearch->m_pKey, pszName)) return pSearch; } return NULL; } //******************************************************************************* // // Create a hash of all methods in this class. The hash is from method name to MethodDesc. // MethodNameHash *MethodTableBuilder::CreateMethodChainHash(MethodTable *pMT) { STANDARD_VM_CONTRACT; MethodNameHash *pHash = new (GetStackingAllocator()) MethodNameHash(); pHash->Init(pMT->GetNumVirtuals(), GetStackingAllocator()); MethodTable::MethodIterator it(pMT); for (;it.IsValid(); it.Next()) { if (it.IsVirtual()) { MethodDesc *pImplDesc = it.GetMethodDesc(); CONSISTENCY_CHECK(CheckPointer(pImplDesc)); MethodDesc *pDeclDesc = it.GetDeclMethodDesc(); CONSISTENCY_CHECK(CheckPointer(pDeclDesc)); CONSISTENCY_CHECK(pMT->IsInterface() || !pDeclDesc->IsInterface()); pHash->Insert(pDeclDesc->GetNameOnNonArrayClass(), pDeclDesc); } } // Success return pHash; } //******************************************************************************* void MethodTableBuilder::SetBMTData( bmtErrorInfo *bmtError, bmtProperties *bmtProp, bmtVtable *bmtVT, bmtParentInfo *bmtParent, bmtInterfaceInfo *bmtInterface, bmtMethodInfo *bmtMethod, bmtTypeInfo *bmtType, bmtMethodImplInfo *bmtMethodImpl) { LIMITED_METHOD_CONTRACT; this->bmtError = bmtError; this->bmtProp = bmtProp; this->bmtVT = bmtVT; this->bmtParent = bmtParent; this->bmtInterface = bmtInterface; this->bmtMethod = bmtMethod; this->bmtType = bmtType; this->bmtMethodImpl = bmtMethodImpl; } //******************************************************************************* void MethodTableBuilder::NullBMTData() { LIMITED_METHOD_CONTRACT; this->bmtError = NULL; this->bmtProp = NULL; this->bmtVT = NULL; this->bmtParent = NULL; this->bmtInterface = NULL; this->bmtMethod = NULL; this->bmtType = NULL; this->bmtMethodImpl = NULL; } //******************************************************************************* /*static*/ VOID DECLSPEC_NORETURN MethodTableBuilder::BuildMethodTableThrowException( HRESULT hr, const bmtErrorInfo & bmtError) { STANDARD_VM_CONTRACT; LPCUTF8 pszClassName, pszNameSpace; if (FAILED(bmtError.pModule->GetMDImport()->GetNameOfTypeDef(bmtError.cl, &pszClassName, &pszNameSpace))) { pszClassName = pszNameSpace = "Invalid TypeDef record"; } if (IsNilToken(bmtError.dMethodDefInError) && bmtError.szMethodNameForError == NULL) { if (hr == E_OUTOFMEMORY) COMPlusThrowOM(); else bmtError.pModule->GetAssembly()->ThrowTypeLoadException(pszNameSpace, pszClassName, bmtError.resIDWhy); } else { LPCUTF8 szMethodName; if (bmtError.szMethodNameForError == NULL) { if (FAILED((bmtError.pModule->GetMDImport())->GetNameOfMethodDef(bmtError.dMethodDefInError, &szMethodName))) { szMethodName = "Invalid MethodDef record"; } } else szMethodName = bmtError.szMethodNameForError; bmtError.pModule->GetAssembly()->ThrowTypeLoadException(pszNameSpace, pszClassName, szMethodName, bmtError.resIDWhy); } } //******************************************************************************* /* static */ int __cdecl MethodTableBuilder::bmtMethodImplInfo::MethodImplTokenPair::Compare( const void *elem1, const void *elem2) { STATIC_CONTRACT_LEAF; MethodImplTokenPair *e1 = (MethodImplTokenPair *)elem1; MethodImplTokenPair *e2 = (MethodImplTokenPair *)elem2; if (e1->methodBody < e2->methodBody) return -1; else if (e1->methodBody > e2->methodBody) return 1; else if (e1->methodDecl < e2->methodDecl) return -1; else if (e1->methodDecl > e2->methodDecl) return 1; else return 0; } //******************************************************************************* /* static */ BOOL MethodTableBuilder::bmtMethodImplInfo::MethodImplTokenPair::Equal( const MethodImplTokenPair *elem1, const MethodImplTokenPair *elem2) { STATIC_CONTRACT_LEAF; return ((elem1->methodBody == elem2->methodBody) && (elem1->methodDecl == elem2->methodDecl)); } }; // namespace ClassCompat #endif // !DACCESS_COMPILE
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =========================================================================== // File: CLASSCOMPAT.CPP // =========================================================================== // This file contains backward compatibility functionality for COM Interop. // =========================================================================== // #include "common.h" #ifndef DACCESS_COMPILE #include "clsload.hpp" #include "method.hpp" #include "class.h" #include "classcompat.h" #include "object.h" #include "field.h" #include "util.hpp" #include "excep.h" #include "threads.h" #include "stublink.h" #include "dllimport.h" #include "jitinterface.h" #include "eeconfig.h" #include "log.h" #include "cgensys.h" #include "gcheaputilities.h" #include "dbginterface.h" #include "comdelegate.h" #include "sigformat.h" #include "eeprofinterfaces.h" #include "dllimportcallback.h" #include "listlock.h" #include "methodimpl.h" #include "guidfromname.h" #include "encee.h" #include "encee.h" #include "comsynchronizable.h" #include "customattribute.h" #include "virtualcallstub.h" #include "eeconfig.h" #include "contractimpl.h" #include "prettyprintsig.h" #include "comcallablewrapper.h" #include "clrtocomcall.h" #include "runtimecallablewrapper.h" #include "generics.h" #include "contractimpl.h" ////////////////////////////////////////////////////////////////////////////////////////////// ClassCompat::InterfaceInfo_t* InteropMethodTableData::FindInterface(MethodTable *pInterface) { WRAPPER_NO_CONTRACT; for (DWORD i = 0; i < cInterfaceMap; i++) { ClassCompat::InterfaceInfo_t *iMap = &pInterfaceMap[i]; if (iMap->m_pMethodTable->IsEquivalentTo(pInterface)) { // Extensible RCW's need to be handled specially because they can have interfaces // in their map that are added at runtime. These interfaces will have a start offset // of -1 to indicate this. We cannot take for granted that every instance of this // COM object has this interface so FindInterface on these interfaces is made to fail. // // However, we are only considering the statically available slots here // (m_wNumInterface doesn't contain the dynamic slots), so we can safely // ignore this detail. return iMap; } } return NULL; } ////////////////////////////////////////////////////////////////////////////////////////////// // get start slot for interface // returns -1 if interface not found WORD InteropMethodTableData::GetStartSlotForInterface(MethodTable* pInterface) { WRAPPER_NO_CONTRACT; ClassCompat::InterfaceInfo_t* pInfo = FindInterface(pInterface); if (pInfo != NULL) { WORD startSlot = pInfo->GetInteropStartSlot(); _ASSERTE(startSlot != MethodTable::NO_SLOT); return startSlot; } return MethodTable::NO_SLOT; } ////////////////////////////////////////////////////////////////////////////////////////////// // This will return the interop slot for pMD in pMT. It will traverse the inheritance tree // to find a match. /*static*/ WORD InteropMethodTableData::GetSlotForMethodDesc(MethodTable *pMT, MethodDesc *pMD) { while (pMT) { InteropMethodTableData *pData = pMT->LookupComInteropData(); _ASSERTE(pData); for (DWORD i = 0; i < pData->cVTable; i++) { if (pData->pVTable[i].pMD == pMD) return (WORD) i; } pMT = pMT->GetParentMethodTable(); } return MethodTable::NO_SLOT; } ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableSlotDataMap::InteropMethodTableSlotDataMap(InteropMethodTableSlotData *pSlotData, DWORD cSlotData) { m_pSlotData = pSlotData; m_cSlotData = cSlotData; m_iCurSlot = 0; } ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableSlotData *InteropMethodTableSlotDataMap::Exists_Helper(MethodDesc *pMD) { LIMITED_METHOD_CONTRACT; for (DWORD i = 0; i < m_cSlotData; i++) { if (m_pSlotData[i].pDeclMD == pMD) { return (&m_pSlotData[i]); } } return (NULL); } ////////////////////////////////////////////////////////////////////////////////////////////// BOOL InteropMethodTableSlotDataMap::Exists(MethodDesc *pMD) { return (Exists_Helper(pMD) != NULL); } ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableSlotData *InteropMethodTableSlotDataMap::GetData(MethodDesc *pMD) { LIMITED_METHOD_CONTRACT; InteropMethodTableSlotData *pEntry = Exists_Helper(pMD); if (pEntry) return pEntry; pEntry = GetNewEntry(); pEntry->pMD = pMD; pEntry->pDeclMD = pMD; return (pEntry); } ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableSlotData *InteropMethodTableSlotDataMap::GetNewEntry() { WRAPPER_NO_CONTRACT; _ASSERTE(m_iCurSlot < m_cSlotData); InteropMethodTableSlotData *pEntry = &m_pSlotData[m_iCurSlot++]; pEntry->pMD = NULL; pEntry->wFlags = 0; pEntry->wSlot = MethodTable::NO_SLOT; pEntry->pDeclMD = NULL; return (pEntry); } namespace ClassCompat { ////////////////////////////////////////////////////////////////////////////////////////////// InteropMethodTableData *MethodTableBuilder::BuildInteropVTable(AllocMemTracker *pamTracker) { CONTRACTL { STANDARD_VM_CHECK; INSTANCE_CHECK; } CONTRACTL_END; MethodTable * pThisMT = GetHalfBakedMethodTable(); // This should never be called for interfaces or for generic types. _ASSERTE(!pThisMT->IsInterface()); _ASSERTE(!pThisMT->ContainsGenericVariables()); _ASSERTE(!pThisMT->HasGenericClassInstantiationInHierarchy()); // Array method tables are created quite differently if (pThisMT->IsArray()) return BuildInteropVTableForArray(pamTracker); #ifdef _DEBUG BOOL fDump = FALSE; LPCUTF8 fullName = pThisMT->GetDebugClassName(); if (fullName) { LPWSTR wszRegName = CLRConfig::GetConfigValue(CLRConfig::INTERNAL_BreakOnInteropVTableBuild); if (wszRegName) { { // Poor man's narrow LPWSTR fromPtr = wszRegName; LPUTF8 toPtr = (LPUTF8) wszRegName; LPUTF8 result = toPtr; while(*fromPtr != 0) *toPtr++ = (char) *fromPtr++; *toPtr = 0; } LPCUTF8 regName = (LPCUTF8) wszRegName; LPCUTF8 bracket = (LPCUTF8) strchr(fullName, '['); size_t len = strlen(fullName); if (bracket != NULL) len = bracket - fullName; if (strncmp(fullName, regName, len) == 0) { _ASSERTE(!"BreakOnInteropVTableBuild"); fDump = TRUE; } delete [] wszRegName; } } #endif // _DEBUG //Get Check Point for the thread-based allocator HRESULT hr = S_OK; Module *pModule = pThisMT->GetModule(); mdToken cl = pThisMT->GetCl(); MethodTable *pParentMethodTable = pThisMT->GetParentMethodTable(); // The following structs, defined as private members of MethodTableBuilder, contain the necessary local // parameters needed for MethodTableBuilder // Look at the struct definitions for a detailed list of all parameters available // to MethodTableBuilder. bmtErrorInfo bmtError; bmtProperties bmtProp; bmtVtable bmtVT; bmtParentInfo bmtParent; bmtInterfaceInfo bmtInterface; bmtMethodInfo bmtMethod(pModule->GetMDImport()); bmtTypeInfo bmtType; bmtMethodImplInfo bmtMethodImpl(pModule->GetMDImport()); //Initialize structs bmtError.resIDWhy = IDS_CLASSLOAD_GENERAL; // Set the reason and the offending method def. If the method information bmtError.pThrowable = NULL; bmtError.pModule = pModule; bmtError.cl = cl; bmtType.pMDImport = pModule->GetMDImport(); bmtType.pModule = pModule; bmtType.cl = cl; bmtParent.parentSubst = GetHalfBakedMethodTable()->GetSubstitutionForParent(NULL); if (FAILED(bmtType.pMDImport->GetTypeDefProps( bmtType.cl, &(bmtType.dwAttr), &(bmtParent.token)))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } SetBMTData( &bmtError, &bmtProp, &bmtVT, &bmtParent, &bmtInterface, &bmtMethod, &bmtType, &bmtMethodImpl); // Populate the BMT data structures from the attributes of the incoming MT if (pThisMT->IsValueType()) SetIsValueClass(); if (pThisMT->IsEnum()) SetEnum(); if (pThisMT->HasLayout()) SetHasLayout(); if (pThisMT->IsDelegate()) SetIsDelegate(); #ifdef FEATURE_COMINTEROP if(pThisMT->GetClass()->IsComClassInterface()) SetIsComClassInterface(); #endif // Populate the interface list - these are allocated on the thread's stacking allocator //@TODO: This doesn't work for generics - fix if generics will be exposed to COM BuildingInterfaceInfo_t *pBuildingInterfaceList; WORD wNumInterfaces; BuildInteropVTable_InterfaceList(&pBuildingInterfaceList, &wNumInterfaces); bmtInterface.wInterfaceMapSize = wNumInterfaces; WORD i; // Interfaces have a parent class of Object, but we don't really want to inherit all of // Object's virtual methods, so pretend we don't have a parent class - at the bottom of this // function we reset the parent method table if (IsInterface()) { pParentMethodTable = NULL; } bmtParent.pParentMethodTable = pParentMethodTable; // Com Import classes are special if (IsComImport() && !IsEnum() && !IsInterface() && !IsValueClass() && !IsDelegate()) { _ASSERTE(pParentMethodTable == g_pBaseCOMObject); _ASSERTE(!(HasLayout())); // if the current class is imported bmtProp.fIsComObjectType = TRUE; } bmtParent.pParentMethodTable = pParentMethodTable; if (pParentMethodTable != NULL) { if (pParentMethodTable->IsComObjectType()) { // if the parent class is of ComObjectType // so is the child bmtProp.fIsComObjectType = TRUE; } } // resolve unresolved interfaces, determine an upper bound on the size of the interface map, // and determine the size of the largest interface (in # slots) BuildInteropVTable_ResolveInterfaces(pBuildingInterfaceList, &bmtType, &bmtInterface, &bmtVT, &bmtParent, bmtError); // Enumerate this class's members EnumerateMethodImpls(); // Enumerate this class's members EnumerateClassMethods(); AllocateMethodWorkingMemory(); // Allocate the working memory for the interop data { //////////////// // The interop data for the VTable for COM Interop backward compatibility // Allocate space to hold on to the MethodDesc for each entry bmtVT.ppSDVtable = new (GetStackingAllocator()) InteropMethodTableSlotData*[bmtVT.dwMaxVtableSize]; ZeroMemory(bmtVT.ppSDVtable, bmtVT.dwMaxVtableSize * sizeof(InteropMethodTableSlotData*)); // Allocate space to hold on to the MethodDesc for each entry bmtVT.ppSDNonVtable = new (GetStackingAllocator()) InteropMethodTableSlotData*[NumDeclaredMethods()]; ZeroMemory(bmtVT.ppSDNonVtable , sizeof(InteropMethodTableSlotData*)*NumDeclaredMethods()); DWORD cMaxEntries = (bmtVT.dwMaxVtableSize * 2) + (NumDeclaredMethods() * 2); InteropMethodTableSlotData *pInteropData = new (GetStackingAllocator()) InteropMethodTableSlotData[cMaxEntries]; memset(pInteropData, 0, cMaxEntries * sizeof(InteropMethodTableSlotData)); bmtVT.pInteropData = new (GetStackingAllocator()) InteropMethodTableSlotDataMap(pInteropData, cMaxEntries); // Initialize the map with parent information if (bmtParent.pParentMethodTable != NULL) { InteropMethodTableData *pParentInteropData = bmtParent.pParentMethodTable->LookupComInteropData(); _ASSERTE(pParentInteropData); for ( i = 0; i < pParentInteropData->cVTable; i++) { InteropMethodTableSlotData *pParentSlot = &pParentInteropData->pVTable[i]; InteropMethodTableSlotData *pNewEntry = bmtVT.pInteropData->GetData(pParentSlot->pDeclMD); pNewEntry->pMD = pParentSlot->pMD; pNewEntry->pDeclMD = pParentSlot->pDeclMD; pNewEntry->wFlags = pParentSlot->wFlags; pNewEntry->wSlot = pParentSlot->wSlot; bmtVT.ppSDVtable[i] = pNewEntry; } } } // Determine vtable placement for each member in this class BuildInteropVTable_PlaceMembers(&bmtType, wNumInterfaces, pBuildingInterfaceList, &bmtMethod, &bmtError, &bmtProp, &bmtParent, &bmtInterface, &bmtMethodImpl, &bmtVT); // First copy what we can leverage from the parent's interface map. // The parent's interface map will be identical to the beginning of this class's interface map (i.e. // the interfaces will be listed in the identical order). if (bmtParent.wNumParentInterfaces > 0) { PREFIX_ASSUME(pParentMethodTable != NULL); // We have to have parent to have parent interfaces _ASSERTE(pParentMethodTable->LookupComInteropData()); _ASSERTE(bmtParent.wNumParentInterfaces == pParentMethodTable->LookupComInteropData()->cInterfaceMap); InterfaceInfo_t *pParentInterfaceList = pParentMethodTable->LookupComInteropData()->pInterfaceMap; for (i = 0; i < bmtParent.wNumParentInterfaces; i++) { #ifdef _DEBUG _ASSERTE(pParentInterfaceList[i].m_pMethodTable == bmtInterface.pInterfaceMap[i].m_pMethodTable); MethodTable *pMT = pParentInterfaceList[i].m_pMethodTable; // If the interface resides entirely inside the parent's class methods (i.e. no duplicate // slots), then we can place this interface in an identical spot to in the parent. // // Note carefully: the vtable for this interface could start within the first GetNumVirtuals() // entries, but could actually extend beyond it, if we were particularly efficient at placing // this interface, so check that the end of the interface vtable is before // pParentMethodTable->GetNumVirtuals(). _ASSERTE(pParentInterfaceList[i].GetInteropStartSlot() + pMT->GetNumVirtuals() <= pParentMethodTable->LookupComInteropData()->cVTable); #endif // _DEBUG // Interface lies inside parent's methods, so we can place it bmtInterface.pInterfaceMap[i].SetInteropStartSlot(pParentInterfaceList[i].GetInteropStartSlot()); } } // // If we are a class, then there may be some unplaced vtable methods (which are by definition // interface methods, otherwise they'd already have been placed). Place as many unplaced methods // as possible, in the order preferred by interfaces. However, do not allow any duplicates - once // a method has been placed, it cannot be placed again - if we are unable to neatly place an interface, // create duplicate slots for it starting at dwCurrentDuplicateVtableSlot. Fill out the interface // map for all interfaces as they are placed. // // If we are an interface, then all methods are already placed. Fill out the interface map for // interfaces as they are placed. // if (!IsInterface()) { BuildInteropVTable_PlaceVtableMethods( &bmtInterface, wNumInterfaces, pBuildingInterfaceList, &bmtVT, &bmtMethod, &bmtType, &bmtError, &bmtProp, &bmtParent); BuildInteropVTable_PlaceMethodImpls( &bmtType, &bmtMethodImpl, &bmtError, &bmtInterface, &bmtVT, &bmtParent); } #ifdef _DEBUG if (IsInterface() == FALSE) { for (i = 0; i < bmtInterface.wInterfaceMapSize; i++) { _ASSERTE(bmtInterface.pInterfaceMap[i].GetInteropStartSlot() != MethodTable::NO_SLOT); } } #endif // _DEBUG // Place all non vtable methods for (i = 0; i < bmtVT.wCurrentNonVtableSlot; i++) { bmtVT.SetMethodDescForSlot(bmtVT.wCurrentVtableSlot + i, bmtVT.ppSDNonVtable[i]->pMD); CONSISTENCY_CHECK(bmtVT.ppSDNonVtable[i]->wSlot != MethodTable::NO_SLOT); bmtVT.ppSDVtable[bmtVT.wCurrentVtableSlot + i] = bmtVT.ppSDNonVtable[i]; } // Must copy overridden slots to duplicate entries in the vtable BuildInteropVTable_PropagateInheritance(&bmtVT); // ensure we didn't overflow the temporary vtable _ASSERTE(bmtVT.wCurrentNonVtableSlot <= bmtVT.dwMaxVtableSize); // Finalize. InteropMethodTableData *pInteropMT = NULL; FinalizeInteropVTable( pamTracker, pThisMT->GetLoaderAllocator(), &bmtVT, &bmtInterface, &bmtType, &bmtProp, &bmtMethod, &bmtError, &bmtParent, &pInteropMT); _ASSERTE(pInteropMT); #ifdef _DEBUG if (fDump) { CQuickBytes qb; DWORD cb = 0; PCCOR_SIGNATURE pSig; ULONG cbSig; printf("InteropMethodTable\n--------------\n"); printf("VTable\n------\n"); for (DWORD i = 0; i < pInteropMT->cVTable; i++) { // Print the method name InteropMethodTableSlotData *pInteropMD = &pInteropMT->pVTable[i]; printf(pInteropMD->pMD->GetName()); printf(" "); // Print the sig if (FAILED(pInteropMD->pMD->GetMDImport()->GetSigOfMethodDef(pInteropMD->pMD->GetMemberDef(), &cbSig, &pSig))) { pSig = NULL; cbSig = 0; } PrettyPrintSigInternalLegacy(pSig, cbSig, "", &qb, pInteropMD->pMD->GetMDImport()); printf((LPCUTF8) qb.Ptr()); printf("\n"); } } #endif // _DEBUG NullBMTData(); return pInteropMT; } //--------------------------------------------------------------------------------------- InteropMethodTableData *MethodTableBuilder::BuildInteropVTableForArray(AllocMemTracker *pamTracker) { CONTRACTL { STANDARD_VM_CHECK; INSTANCE_CHECK; PRECONDITION(GetHalfBakedMethodTable()->IsArray()); PRECONDITION(GetHalfBakedMethodTable()->GetNumVirtuals() == GetHalfBakedMethodTable()->GetParentMethodTable()->GetNumVirtuals()); } CONTRACTL_END; MethodTable * pThisMT = GetHalfBakedMethodTable(); // Get the interop data for the parent MethodTable *pParentMT = pThisMT->GetParentMethodTable(); InteropMethodTableData *pParentMTData = pParentMT->GetComInteropData(); CONSISTENCY_CHECK(pParentMTData != NULL); // Allocate in the same heap as the array itself LoaderHeap *pHeap = pThisMT->GetLoaderAllocator()->GetLowFrequencyHeap(); // Allocate the overall structure InteropMethodTableData *pMTData = (InteropMethodTableData *)(void *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableData)))); memset(pMTData, 0, sizeof(InteropMethodTableData)); // Allocate the vtable - this is just a copy from System.Array pMTData->cVTable = pParentMTData->cVTable; if (pMTData->cVTable != 0) { pMTData->pVTable = (InteropMethodTableSlotData *)(void *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableSlotData)) * S_SIZE_T(pMTData->cVTable))); // Copy the vtable for (DWORD i = 0; i < pMTData->cVTable; i++) pMTData->pVTable[i] = pParentMTData->pVTable[i]; } // Allocate the non-vtable pMTData->cNonVTable = pThisMT->GetNumMethods() - pThisMT->GetNumVirtuals(); if (pMTData->cNonVTable != 0) { pMTData->pNonVTable = (InteropMethodTableSlotData *)(void *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableSlotData)) * S_SIZE_T(pMTData->cNonVTable))); // Copy the non-vtable UINT32 iCurRealSlot = pThisMT->GetNumVirtuals(); WORD iCurInteropSlot = pMTData->cVTable; for (DWORD i = 0; i < pMTData->cNonVTable; i++, iCurRealSlot++, iCurInteropSlot++) { pMTData->pNonVTable[i].wSlot = iCurInteropSlot; pMTData->pNonVTable[i].pMD = pThisMT->GetMethodDescForSlot(iCurRealSlot); } } // Allocate the interface map pMTData->cInterfaceMap = pParentMTData->cInterfaceMap; if (pMTData->cInterfaceMap != 0) { pMTData->pInterfaceMap = (InterfaceInfo_t *)(void *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InterfaceInfo_t)) * S_SIZE_T(pMTData->cInterfaceMap))); // Copy the interface map for (DWORD i = 0; i < pMTData->cInterfaceMap; i++) pMTData->pInterfaceMap[i] = pParentMTData->pInterfaceMap[i]; } return pMTData; } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_InterfaceList( BuildingInterfaceInfo_t **ppBuildingInterfaceList, WORD *pcBuildingInterfaceList) { STANDARD_VM_CONTRACT; // Initialize arguments *pcBuildingInterfaceList = 0; *ppBuildingInterfaceList = NULL; // Get the metadata for enumerating the interfaces of the class IMDInternalImport *pMDImport = GetModule()->GetMDImport(); // Now load all the interfaces HENUMInternalHolder hEnumInterfaceImpl(pMDImport); hEnumInterfaceImpl.EnumInit(mdtInterfaceImpl, GetCl()); // Get the count for the number of interfaces from metadata DWORD cAllInterfaces = pMDImport->EnumGetCount(&hEnumInterfaceImpl); WORD cNonGenericItfs = 0; // Iterate through each interface token and get the type for the interface and put // it into the BuildingInterfaceInfo_t struct. if (cAllInterfaces != 0) { mdInterfaceImpl ii; Module *pModule = GetModule(); // Allocate the BuildingInterfaceList table *ppBuildingInterfaceList = new(GetStackingAllocator()) BuildingInterfaceInfo_t[cAllInterfaces]; BuildingInterfaceInfo_t *pInterfaceBuildInfo = *ppBuildingInterfaceList; while (pMDImport->EnumNext(&hEnumInterfaceImpl, &ii)) { mdTypeRef crInterface; TypeHandle intType; // Get properties on this interface if (FAILED(pMDImport->GetTypeOfInterfaceImpl(ii, &crInterface))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } SigTypeContext typeContext = SigTypeContext(TypeHandle(GetHalfBakedMethodTable())); intType = ClassLoader::LoadTypeDefOrRefOrSpecThrowing(pModule, crInterface, &typeContext, ClassLoader::ThrowIfNotFound, ClassLoader::FailIfUninstDefOrRef); // At this point, the interface should never have any non instantiated generic parameters. _ASSERTE(!intType.IsGenericTypeDefinition()); // Skip any generic interfaces. if (intType.GetNumGenericArgs() != 0) continue; pInterfaceBuildInfo[cNonGenericItfs].m_pMethodTable = intType.AsMethodTable(); _ASSERTE(pInterfaceBuildInfo[cNonGenericItfs].m_pMethodTable != NULL); _ASSERTE(pInterfaceBuildInfo[cNonGenericItfs].m_pMethodTable->IsInterface()); cNonGenericItfs++; } _ASSERTE(cNonGenericItfs <= cAllInterfaces); } *pcBuildingInterfaceList = cNonGenericItfs; } //--------------------------------------------------------------------------------------- // Used by BuildInteropVTable // // Determine vtable placement for each member in this class // #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif VOID MethodTableBuilder::BuildInteropVTable_PlaceMembers( bmtTypeInfo* bmtType, DWORD numDeclaredInterfaces, BuildingInterfaceInfo_t *pBuildingInterfaceList, bmtMethodInfo* bmtMethod, bmtErrorInfo* bmtError, bmtProperties* bmtProp, bmtParentInfo* bmtParent, bmtInterfaceInfo* bmtInterface, bmtMethodImplInfo* bmtMethodImpl, bmtVtable* bmtVT) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtType)); PRECONDITION(CheckPointer(bmtMethod)); PRECONDITION(CheckPointer(bmtError)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(bmtMethodImpl)); PRECONDITION(CheckPointer(bmtVT)); } CONTRACTL_END; _ASSERTE(!IsInterface()); Module * pModule = GetModule(); #ifdef _DEBUG LPCUTF8 pszDebugName,pszDebugNamespace; if (FAILED(bmtType->pModule->GetMDImport()->GetNameOfTypeDef(GetCl(), &pszDebugName, &pszDebugNamespace))) { pszDebugName = pszDebugNamespace = "Invalid TypeDef record"; } #endif // _DEBUG HRESULT hr = S_OK; DWORD i, j; DWORD dwClassDeclFlags = 0xffffffff; DWORD dwClassNullDeclFlags = 0xffffffff; for (i = 0; i < NumDeclaredMethods(); i++) { LPCUTF8 szMemberName = NULL; PCCOR_SIGNATURE pMemberSignature = NULL; DWORD cMemberSignature = 0; mdToken tokMember; DWORD dwMemberAttrs; DWORD dwDescrOffset; DWORD dwImplFlags; BOOL fMethodImplementsInterface = FALSE; DWORD dwMDImplementsInterfaceNum = 0; DWORD dwMDImplementsSlotNum = 0; DWORD dwParentAttrs; tokMember = bmtMethod->rgMethodTokens[i]; dwMemberAttrs = bmtMethod->rgMethodAttrs[i]; dwDescrOffset = bmtMethod->rgMethodRVA[i]; dwImplFlags = bmtMethod->rgMethodImplFlags[i]; DWORD Classification = bmtMethod->rgMethodClassifications[i]; // If this member is a method which overrides a parent method, it will be set to non-NULL MethodDesc *pParentMethodDesc = NULL; szMemberName = bmtMethod->rgszMethodName[i]; // constructors and class initialisers are special if (!IsMdRTSpecialName(dwMemberAttrs)) { // The method does not have the special marking if (IsMdVirtual(dwMemberAttrs)) { // Hash that a method with this name exists in this class // Note that ctors and static ctors are not added to the table DWORD dwHashName = HashStringA(szMemberName); // If the member is marked with a new slot we do not need to find it // in the parent if (!IsMdNewSlot(dwMemberAttrs)) { // If we're not doing sanity checks, then assume that any method declared static // does not attempt to override some virtual parent. if (!IsMdStatic(dwMemberAttrs) && bmtParent->pParentMethodTable != NULL) { // Attempt to find the method with this name and signature in the parent class. // This method may or may not create pParentMethodHash (if it does not already exist). // It also may or may not fill in pMemberSignature/cMemberSignature. // An error is only returned when we can not create the hash. // NOTE: This operation touches metadata { BOOL fMethodConstraintsMatch = FALSE; VERIFY(SUCCEEDED(LoaderFindMethodInClass( szMemberName, bmtType->pModule, tokMember, &pParentMethodDesc, &pMemberSignature, &cMemberSignature, dwHashName, &fMethodConstraintsMatch))); //this assert should hold because interop methods cannot be generic _ASSERTE(pParentMethodDesc == NULL || fMethodConstraintsMatch); } if (pParentMethodDesc != NULL) { dwParentAttrs = pParentMethodDesc->GetAttrs(); _ASSERTE(IsMdVirtual(dwParentAttrs) && "Non virtual methods should not be searched"); _ASSERTE(!(IsMdFinal(dwParentAttrs))); } } } } } if(pParentMethodDesc == NULL) { // This method does not exist in the parent. If we are a class, check whether this // method implements any interface. If true, we can't place this method now. if ((!IsInterface()) && ( IsMdPublic(dwMemberAttrs) && IsMdVirtual(dwMemberAttrs) && !IsMdStatic(dwMemberAttrs) && !IsMdRTSpecialName(dwMemberAttrs))) { // Don't check parent class interfaces - if the parent class had to implement an interface, // then it is already guaranteed that we inherited that method. _ASSERTE(!bmtParent->pParentMethodTable || bmtParent->pParentMethodTable->LookupComInteropData()); DWORD numInheritedInts = (bmtParent->pParentMethodTable ? (DWORD) bmtParent->pParentMethodTable->LookupComInteropData()->cInterfaceMap: 0); for (j = numInheritedInts; j < bmtInterface->wInterfaceMapSize; j++) { MethodTable *pInterface = bmtInterface->pInterfaceMap[j].m_pMethodTable; if (pMemberSignature == NULL) { // We've been trying to avoid asking for the signature - now we need it if (FAILED(bmtType->pMDImport->GetSigOfMethodDef(tokMember, &cMemberSignature, &pMemberSignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } WORD slotNum = (WORD) (-1); MethodDesc *pItfMD = MemberLoader::FindMethod(pInterface, szMemberName, pMemberSignature, cMemberSignature, bmtType->pModule); if (pItfMD != NULL) { // This method implements an interface - don't place it fMethodImplementsInterface = TRUE; // Keep track of this fact and use it while placing the interface slotNum = (WORD) pItfMD->GetSlot(); if (bmtInterface->pppInterfaceImplementingMD[j] == NULL) { bmtInterface->pppInterfaceImplementingMD[j] = new (GetStackingAllocator()) MethodDesc * [pInterface->GetNumVirtuals()]; memset(bmtInterface->pppInterfaceImplementingMD[j], 0, sizeof(MethodDesc *) * pInterface->GetNumVirtuals()); bmtInterface->pppInterfaceDeclaringMD[j] = new (GetStackingAllocator()) MethodDesc * [pInterface->GetNumVirtuals()]; memset(bmtInterface->pppInterfaceDeclaringMD[j], 0, sizeof(MethodDesc *) * pInterface->GetNumVirtuals()); } bmtInterface->pppInterfaceDeclaringMD[j][slotNum] = pItfMD; dwMDImplementsInterfaceNum = j; dwMDImplementsSlotNum = slotNum; break; } } } } // Now find the MethodDesc associated with this method MethodDesc *pNewMD = MemberLoader::FindMethod(GetHalfBakedMethodTable(), tokMember); _ASSERTE(!bmtVT->pInteropData->Exists(pNewMD)); InteropMethodTableSlotData *pNewMDData = bmtVT->pInteropData->GetData(pNewMD); _ASSERTE(pNewMD != NULL); _ASSERTE(dwMemberAttrs == pNewMD->GetAttrs()); _ASSERTE(bmtParent->ppParentMethodDescBufPtr != NULL); _ASSERTE(((bmtParent->ppParentMethodDescBufPtr - bmtParent->ppParentMethodDescBuf) / sizeof(MethodDesc*)) < NumDeclaredMethods()); *(bmtParent->ppParentMethodDescBufPtr++) = pParentMethodDesc; *(bmtParent->ppParentMethodDescBufPtr++) = pNewMD; if (fMethodImplementsInterface && IsMdVirtual(dwMemberAttrs)) { bmtInterface->pppInterfaceImplementingMD[dwMDImplementsInterfaceNum][dwMDImplementsSlotNum] = pNewMD; } // Set the MethodDesc value bmtMethod->ppMethodDescList[i] = pNewMD; // Make sure that fcalls have a 0 rva. This is assumed by the prejit fixup logic _ASSERTE(((Classification & ~mdcMethodImpl) != mcFCall) || dwDescrOffset == 0); // Non-virtual method if (IsMdStatic(dwMemberAttrs) || !IsMdVirtual(dwMemberAttrs) || IsMdRTSpecialName(dwMemberAttrs)) { // Non-virtual method (doesn't go into the vtable) _ASSERTE(bmtVT->pNonVtableMD[bmtVT->wCurrentNonVtableSlot] == NULL); // Set the data for the method pNewMDData->wSlot = bmtVT->wCurrentNonVtableSlot; // Add the slot into the non-virtual method table bmtVT->pNonVtableMD[bmtVT->wCurrentNonVtableSlot] = pNewMD; bmtVT->ppSDNonVtable[bmtVT->wCurrentNonVtableSlot] = pNewMDData; // Increment the current non-virtual method table slot bmtVT->wCurrentNonVtableSlot++; } // Virtual method else { if (IsInterface()) { // (shouldn't happen for this codepath) UNREACHABLE(); } else if (pParentMethodDesc != NULL) { // We are overriding a parent's vtable slot CONSISTENCY_CHECK(bmtVT->pInteropData->Exists(pParentMethodDesc)); WORD slotNumber = bmtVT->pInteropData->GetData(pParentMethodDesc)->wSlot; // If the MethodDesc was inherited by an interface but not implemented, // then the interface's MethodDesc is sitting in the slot and will not reflect // the true slot number. Need to find the starting slot of the interface in // the parent class to figure out the true slot (starting slot + itf slot) if (pParentMethodDesc->IsInterface()) { MethodTable *pItfMT = pParentMethodDesc->GetMethodTable(); WORD startSlot = bmtParent->pParentMethodTable->LookupComInteropData()->GetStartSlotForInterface(pItfMT); _ASSERTE(startSlot != (WORD) -1); slotNumber += startSlot; } // we are overriding a parent method, so place this method now bmtVT->SetMethodDescForSlot(slotNumber, pNewMD); bmtVT->ppSDVtable[slotNumber] = pNewMDData; pNewMDData->wSlot = slotNumber; } else if (!fMethodImplementsInterface) { // Place it unless we will do it when laying out an interface or it is a body to // a method impl. If it is an impl then we will use the slots used by the definition. // Store the slot for this method pNewMDData->wSlot = bmtVT->wCurrentVtableSlot; // Now copy the method into the vtable, and interop data bmtVT->SetMethodDescForSlot(bmtVT->wCurrentVtableSlot, pNewMD); bmtVT->ppSDVtable[bmtVT->wCurrentVtableSlot] = pNewMDData; // Increment current vtable slot, since we're not overriding a parent slot bmtVT->wCurrentVtableSlot++; } } if (Classification & mdcMethodImpl) { // If this method serves as the BODY of a MethodImpl specification, then // we should iterate all the MethodImpl's for this class and see just how many // of them this method participates in as the BODY. for(DWORD m = 0; m < bmtMethodImpl->dwNumberMethodImpls; m++) { if(tokMember == bmtMethodImpl->rgMethodImplTokens[m].methodBody) { MethodDesc* desc = NULL; mdToken mdDecl = bmtMethodImpl->rgMethodImplTokens[m].methodDecl; Substitution *pDeclSubst = &bmtMethodImpl->pMethodDeclSubsts[m]; // Get the parent mdToken tkParent = mdTypeDefNil; if (TypeFromToken(mdDecl) == mdtMethodDef || TypeFromToken(mdDecl) == mdtMemberRef) { hr = bmtType->pMDImport->GetParentToken(mdDecl,&tkParent); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } } if (GetCl() == tkParent) { // The DECL has been declared // within the class that we're currently building. hr = S_OK; if(bmtError->pThrowable != NULL) *(bmtError->pThrowable) = NULL; // <TODO>Verify that the substitution doesn't change for this case </TODO> if(TypeFromToken(mdDecl) != mdtMethodDef) { hr = FindMethodDeclarationForMethodImpl( bmtType->pMDImport, GetCl(), mdDecl, &mdDecl); _ASSERTE(SUCCEEDED(hr)); // Make sure the virtual states are the same DWORD dwDescAttrs; if (FAILED(bmtType->pMDImport->GetMethodDefProps(mdDecl, &dwDescAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } _ASSERTE(IsMdVirtual(dwMemberAttrs) == IsMdVirtual(dwDescAttrs)); } } else { SigTypeContext typeContext; desc = MemberLoader::GetMethodDescFromMemberDefOrRefOrSpec(bmtType->pModule, mdDecl, &typeContext, FALSE, FALSE); // don't demand generic method args mdDecl = mdTokenNil; // Make sure the body is virtaul _ASSERTE(IsMdVirtual(dwMemberAttrs)); } // Only add the method impl if the interface it is declared on is non generic. // NULL desc represent method impls to methods on the current class which // we know isn't generic. if ((desc == NULL) || (desc->GetMethodTable()->GetNumGenericArgs() == 0)) { bmtMethodImpl->AddMethod(pNewMD, desc, mdDecl, pDeclSubst); } } } } } /* end ... for each member */ } #ifdef _PREFAST_ #pragma warning(pop) #endif //--------------------------------------------------------------------------------------- // Resolve unresolved interfaces, determine an upper bound on the size of the interface map, // and determine the size of the largest interface (in # slots) VOID MethodTableBuilder::BuildInteropVTable_ResolveInterfaces( BuildingInterfaceInfo_t *pBuildingInterfaceList, bmtTypeInfo* bmtType, bmtInterfaceInfo* bmtInterface, bmtVtable* bmtVT, bmtParentInfo* bmtParent, const bmtErrorInfo & bmtError) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; HRESULT hr = S_OK; DWORD i; // resolve unresolved interfaces, determine an upper bound on the size of the interface map, // and determine the size of the largest interface (in # slots) bmtInterface->dwMaxExpandedInterfaces = 0; // upper bound on max # interfaces implemented by this class // First look through the interfaces explicitly declared by this class for (i = 0; i < bmtInterface->wInterfaceMapSize; i++) { MethodTable *pInterface = pBuildingInterfaceList[i].m_pMethodTable; bmtInterface->dwMaxExpandedInterfaces += (1+ pInterface->GetNumInterfaces()); } // Now look at interfaces inherited from the parent if (bmtParent->pParentMethodTable != NULL) { _ASSERTE(bmtParent->pParentMethodTable->LookupComInteropData()); InteropMethodTableData *pInteropData = bmtParent->pParentMethodTable->LookupComInteropData(); InterfaceInfo_t *pParentInterfaceMap = pInteropData->pInterfaceMap; for (i = 0; i < pInteropData->cInterfaceMap; i++) { MethodTable *pInterface = pParentInterfaceMap[i].m_pMethodTable; bmtInterface->dwMaxExpandedInterfaces += (1+pInterface->GetNumInterfaces()); } } // Create a fully expanded map of all interfaces we implement bmtInterface->pInterfaceMap = new (GetStackingAllocator()) InterfaceInfo_t[bmtInterface->dwMaxExpandedInterfaces]; // # slots of largest interface bmtInterface->dwLargestInterfaceSize = 0; DWORD dwNumDeclaredInterfaces = bmtInterface->wInterfaceMapSize; BuildInteropVTable_CreateInterfaceMap(pBuildingInterfaceList, bmtInterface, &bmtInterface->wInterfaceMapSize, &bmtInterface->dwLargestInterfaceSize, bmtParent->pParentMethodTable); _ASSERTE(bmtInterface->wInterfaceMapSize <= bmtInterface->dwMaxExpandedInterfaces); if (bmtInterface->dwLargestInterfaceSize > 0) { // This is needed later - for each interface, we get the MethodDesc pointer for each // method. We need to be able to persist at most one interface at a time, so we // need enough memory for the largest interface. bmtInterface->ppInterfaceMethodDescList = new (GetStackingAllocator()) MethodDesc*[bmtInterface->dwLargestInterfaceSize]; bmtInterface->ppInterfaceDeclMethodDescList = new (GetStackingAllocator()) MethodDesc*[bmtInterface->dwLargestInterfaceSize]; } EEClass *pParentClass = (IsInterface() || bmtParent->pParentMethodTable == NULL) ? NULL : bmtParent->pParentMethodTable->GetClass(); // For all the new interfaces we bring in, sum the methods bmtInterface->dwTotalNewInterfaceMethods = 0; if (pParentClass != NULL) { for (i = bmtParent->pParentMethodTable->GetNumInterfaces(); i < (bmtInterface->wInterfaceMapSize); i++) bmtInterface->dwTotalNewInterfaceMethods += bmtInterface->pInterfaceMap[i].m_pMethodTable->GetNumVirtuals(); } // The interface map is probably smaller than dwMaxExpandedInterfaces, so we'll copy the // appropriate number of bytes when we allocate the real thing later. // Inherit parental slot counts if (pParentClass != NULL) { InteropMethodTableData *pParentInteropMT = bmtParent->pParentMethodTable->LookupComInteropData(); bmtVT->wCurrentVtableSlot = pParentInteropMT->cVTable; bmtParent->wNumParentInterfaces = pParentInteropMT->cInterfaceMap; } else { bmtVT->wCurrentVtableSlot = 0; bmtParent->wNumParentInterfaces = 0; } bmtVT->wCurrentNonVtableSlot = 0; bmtInterface->pppInterfaceImplementingMD = (MethodDesc ***) GetStackingAllocator()->Alloc(S_UINT32(sizeof(MethodDesc *)) * S_UINT32(bmtInterface->dwMaxExpandedInterfaces)); memset(bmtInterface->pppInterfaceImplementingMD, 0, sizeof(MethodDesc *) * bmtInterface->dwMaxExpandedInterfaces); bmtInterface->pppInterfaceDeclaringMD = (MethodDesc ***) GetStackingAllocator()->Alloc(S_UINT32(sizeof(MethodDesc *)) * S_UINT32(bmtInterface->dwMaxExpandedInterfaces)); memset(bmtInterface->pppInterfaceDeclaringMD, 0, sizeof(MethodDesc *) * bmtInterface->dwMaxExpandedInterfaces); return; } //--------------------------------------------------------------------------------------- // Fill out a fully expanded interface map, such that if we are declared to implement I3, and I3 extends I1,I2, // then I1,I2 are added to our list if they are not already present. // // Returns FALSE for failure. <TODO>Currently we don't fail, but @TODO perhaps we should fail if we recurse // too much.</TODO> // VOID MethodTableBuilder::BuildInteropVTable_CreateInterfaceMap(BuildingInterfaceInfo_t *pBuildingInterfaceList, bmtInterfaceInfo* bmtInterface, WORD *pwInterfaceListSize, DWORD *pdwMaxInterfaceMethods, MethodTable *pParentMethodTable) { STANDARD_VM_CONTRACT; WORD i; InterfaceInfo_t *pInterfaceMap = bmtInterface->pInterfaceMap; WORD wNumInterfaces = bmtInterface->wInterfaceMapSize; // pdwInterfaceListSize points to bmtInterface->pInterfaceMapSize so we cache it above *pwInterfaceListSize = 0; // First inherit all the parent's interfaces. This is important, because our interface map must // list the interfaces in identical order to our parent. // // <NICE> we should document the reasons why. One reason is that DispatchMapTypeIDs can be indexes // into the list </NICE> if (pParentMethodTable != NULL) { _ASSERTE(pParentMethodTable->LookupComInteropData()); InteropMethodTableData *pInteropData = pParentMethodTable->LookupComInteropData(); InterfaceInfo_t *pParentInterfaceMap = pInteropData->pInterfaceMap; unsigned cParentInterfaceMap = pInteropData->cInterfaceMap; // The parent's interface list is known to be fully expanded for (i = 0; i < cParentInterfaceMap; i++) { // Need to keep track of the interface with the largest number of methods if (pParentInterfaceMap[i].m_pMethodTable->GetNumVirtuals() > *pdwMaxInterfaceMethods) { *pdwMaxInterfaceMethods = pParentInterfaceMap[i].m_pMethodTable->GetNumVirtuals(); } pInterfaceMap[*pwInterfaceListSize].m_pMethodTable = pParentInterfaceMap[i].m_pMethodTable; pInterfaceMap[*pwInterfaceListSize].SetInteropStartSlot(MethodTable::NO_SLOT); pInterfaceMap[*pwInterfaceListSize].m_wFlags = 0; (*pwInterfaceListSize)++; } } // Go through each interface we explicitly implement (if a class), or extend (if an interface) for (i = 0; i < wNumInterfaces; i++) { MethodTable *pDeclaredInterface = pBuildingInterfaceList[i].m_pMethodTable; BuildInteropVTable_ExpandInterface(pInterfaceMap, pDeclaredInterface, pwInterfaceListSize, pdwMaxInterfaceMethods, TRUE); } } //--------------------------------------------------------------------------------------- // Given an interface map to fill out, expand pNewInterface (and its sub-interfaces) into it, increasing // pdwInterfaceListSize as appropriate, and avoiding duplicates. // VOID MethodTableBuilder::BuildInteropVTable_ExpandInterface(InterfaceInfo_t *pInterfaceMap, MethodTable *pNewInterface, WORD *pwInterfaceListSize, DWORD *pdwMaxInterfaceMethods, BOOL fDirect) { STANDARD_VM_CONTRACT; DWORD i; // The interface list contains the fully expanded set of interfaces from the parent then // we start adding all the interfaces we declare. We need to know which interfaces // we declare but do not need duplicates of the ones we declare. This means we can // duplicate our parent entries. // Is it already present in the list? for (i = 0; i < (*pwInterfaceListSize); i++) { if (pInterfaceMap[i].m_pMethodTable->IsEquivalentTo(pNewInterface)) { if(fDirect) { pInterfaceMap[i].m_wFlags |= InterfaceInfo_t::interface_declared_on_class; } return; // found it, don't add it again } } if (pNewInterface->GetNumVirtuals() > *pdwMaxInterfaceMethods) { *pdwMaxInterfaceMethods = pNewInterface->GetNumVirtuals(); } // Add it and each sub-interface pInterfaceMap[*pwInterfaceListSize].m_pMethodTable = pNewInterface; pInterfaceMap[*pwInterfaceListSize].SetInteropStartSlot(MethodTable::NO_SLOT); pInterfaceMap[*pwInterfaceListSize].m_wFlags = 0; if(fDirect) pInterfaceMap[*pwInterfaceListSize].m_wFlags |= InterfaceInfo_t::interface_declared_on_class; (*pwInterfaceListSize)++; if (pNewInterface->GetNumInterfaces() != 0) { MethodTable::InterfaceMapIterator it = pNewInterface->IterateInterfaceMap(); while (it.Next()) { MethodTable *pItf = it.GetInterfaceApprox(); if (pItf->HasInstantiation() || pItf->IsSpecialMarkerTypeForGenericCasting()) continue; BuildInteropVTable_ExpandInterface(pInterfaceMap, pItf, pwInterfaceListSize, pdwMaxInterfaceMethods, FALSE); } } return; } // If we are a class, then there may be some unplaced vtable methods (which are by definition // interface methods, otherwise they'd already have been placed). Place as many unplaced methods // as possible, in the order preferred by interfaces. However, do not allow any duplicates - once // a method has been placed, it cannot be placed again - if we are unable to neatly place an interface, // create duplicate slots for it starting at dwCurrentDuplicateVtableSlot. Fill out the interface // map for all interfaces as they are placed. // // If we are an interface, then all methods are already placed. Fill out the interface map for // interfaces as they are placed. // //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PlaceVtableMethods( bmtInterfaceInfo* bmtInterface, DWORD numDeclaredInterfaces, BuildingInterfaceInfo_t *pBuildingInterfaceList, bmtVtable* bmtVT, bmtMethodInfo* bmtMethod, bmtTypeInfo* bmtType, bmtErrorInfo* bmtError, bmtProperties* bmtProp, bmtParentInfo* bmtParent) { STANDARD_VM_CONTRACT; DWORD i; BOOL fParentInterface; for (WORD wCurInterface = 0; wCurInterface < bmtInterface->wInterfaceMapSize; wCurInterface++) { fParentInterface = FALSE; // Keep track of the current interface InterfaceInfo_t *pCurItfInfo = &(bmtInterface->pInterfaceMap[wCurInterface]); // The interface we are attempting to place MethodTable *pInterface = pCurItfInfo->m_pMethodTable; // Did we place this interface already due to the parent class's interface placement? if (pCurItfInfo->GetInteropStartSlot() != MethodTable::NO_SLOT) { // If we have declared it then we re-lay it out if(pCurItfInfo->IsDeclaredOnClass()) { // This should be in the outer IF statement, not this inner one, but we'll keep // it this way to remain consistent for backward compatibility. fParentInterface = TRUE; // If the interface is folded into the non-interface portion of the vtable, we need to unfold it. WORD wStartSlot = pCurItfInfo->GetInteropStartSlot(); MethodTable::MethodIterator it(pInterface); for (; it.IsValid(); it.Next()) { if (it.IsVirtual()) { if(bmtVT->ppSDVtable[wStartSlot+it.GetSlotNumber()]->wSlot == wStartSlot+it.GetSlotNumber()) { // If the MD slot is equal to the vtable slot number, then this means the interface // was folded into the non-interface part of the vtable and needs to get unfolded // in case a specific override occurs for one of the conceptually two distinct // slots and not the other (i.e., a MethodImpl overrides an interface method but not // the class' virtual method). pCurItfInfo->SetInteropStartSlot(MethodTable::NO_SLOT); fParentInterface = FALSE; break; } } } } else { continue; } } if (pInterface->GetNumVirtuals() == 0) { // no calls can be made to this interface anyway // so initialize the slot number to 0 pCurItfInfo->SetInteropStartSlot((WORD) 0); continue; } // If this interface has not been given a starting position do that now. if(!fParentInterface) pCurItfInfo->SetInteropStartSlot(bmtVT->wCurrentVtableSlot); // For each method declared in this interface { MethodTable::MethodIterator it(pInterface); for (; it.IsValid(); it.Next()) { if (it.IsVirtual()) { DWORD dwMemberAttrs; // See if we have info gathered while placing members if (bmtInterface->pppInterfaceImplementingMD[wCurInterface] && bmtInterface->pppInterfaceImplementingMD[wCurInterface][it.GetSlotNumber()] != NULL) { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = bmtInterface->pppInterfaceImplementingMD[wCurInterface][it.GetSlotNumber()]; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = bmtInterface->pppInterfaceDeclaringMD[wCurInterface][it.GetSlotNumber()]; continue; } MethodDesc *pInterfaceMD = pInterface->GetMethodDescForSlot(it.GetSlotNumber()); _ASSERTE(pInterfaceMD != NULL); LPCUTF8 pszInterfaceMethodName = pInterfaceMD->GetNameOnNonArrayClass(); PCCOR_SIGNATURE pInterfaceMethodSig; DWORD cInterfaceMethodSig; pInterfaceMD->GetSig(&pInterfaceMethodSig, &cInterfaceMethodSig); // Try to find the method explicitly declared in our class for (i = 0; i < NumDeclaredMethods(); i++) { // look for interface method candidates only dwMemberAttrs = bmtMethod->rgMethodAttrs[i]; // Note that non-publics can legally be exposed via an interface. if (IsMdVirtual(dwMemberAttrs) && IsMdPublic(dwMemberAttrs)) { LPCUTF8 pszMemberName; pszMemberName = bmtMethod->rgszMethodName[i]; _ASSERTE(!(pszMemberName == NULL)); #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(pszMemberName)) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", pszMemberName)); #endif // _DEBUG if (strcmp(pszMemberName,pszInterfaceMethodName) == 0) { PCCOR_SIGNATURE pMemberSignature; DWORD cMemberSignature; _ASSERTE(TypeFromToken(bmtMethod->rgMethodTokens[i]) == mdtMethodDef); if (FAILED(bmtType->pMDImport->GetSigOfMethodDef( bmtMethod->rgMethodTokens[i], &cMemberSignature, &pMemberSignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (MetaSig::CompareMethodSigs( pMemberSignature, cMemberSignature, bmtType->pModule, NULL, pInterfaceMethodSig, cInterfaceMethodSig, pInterfaceMD->GetModule(), NULL, FALSE)) { // Found match, break from loop break; } } } } // end ... try to find method _ASSERTE(it.GetSlotNumber() < bmtInterface->dwLargestInterfaceSize); if (i >= NumDeclaredMethods()) { // if this interface has been layed out by our parent then // we do not need to define a new method desc for it if(fParentInterface) { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = NULL; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = NULL; } else { // We will use the interface implemenation if we do not find one in the // parent. It will have to be overriden by the a method impl unless the // class is abstract or it is a special COM type class. MethodDesc* pParentMD = NULL; if(bmtParent->pParentMethodTable) { #ifdef _DEBUG if(GetHalfBakedClass()->m_fDebuggingClass && g_pConfig->ShouldBreakOnMethod(pszInterfaceMethodName)) CONSISTENCY_CHECK_MSGF(false, ("BreakOnMethodName: '%s' ", pszInterfaceMethodName)); #endif // _DEBUG // Check the parent class pParentMD = MemberLoader::FindMethod(bmtParent->pParentMethodTable, pszInterfaceMethodName, pInterfaceMethodSig, cInterfaceMethodSig, pInterfaceMD->GetModule(), MemberLoader::FM_Default, &bmtParent->parentSubst); } // make sure we do a better back patching for these methods if(pParentMD && IsMdVirtual(pParentMD->GetAttrs())) { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = pParentMD; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = pInterfaceMD; } else { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = pInterfaceMD; bmtVT->pInteropData->GetData(pInterfaceMD)->wSlot = pInterfaceMD->GetSlot(); bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = NULL; } } } else { // Found as declared method in class. If the interface was layed out by the parent we // will be overridding their slot so our method counts do not increase. We will fold // our method into our parent's interface if we have not been placed. if(fParentInterface) { WORD dwSlot = (WORD) (pCurItfInfo->GetInteropStartSlot() + it.GetSlotNumber()); _ASSERTE(bmtVT->wCurrentVtableSlot > dwSlot); MethodDesc *pMD = bmtMethod->ppMethodDescList[i]; InteropMethodTableSlotData *pMDData = bmtVT->pInteropData->GetData(pMD); _ASSERTE(pMD && "Missing MethodDesc for declared method in class."); if(pMDData->wSlot == MethodTable::NO_SLOT) { pMDData->wSlot = dwSlot; } // Set the slot and interop data bmtVT->SetMethodDescForSlot(dwSlot, pMD); bmtVT->ppSDVtable[dwSlot] = pMDData; _ASSERTE( bmtVT->GetMethodDescForSlot(dwSlot) != NULL); bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = NULL; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = NULL; } else { bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] = bmtMethod->ppMethodDescList[i]; bmtInterface->ppInterfaceDeclMethodDescList[it.GetSlotNumber()] = pInterfaceMD; } } } } } { MethodTable::MethodIterator it(pInterface); for (; it.IsValid(); it.Next()) { if (it.IsVirtual()) { // The entry can be null if the interface was previously // laid out by a parent and we did not have a method // that subclassed the interface. if(bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()] != NULL) { // Get the MethodDesc which was allocated for the method MethodDesc *pMD = bmtInterface->ppInterfaceMethodDescList[it.GetSlotNumber()]; InteropMethodTableSlotData *pMDData = bmtVT->pInteropData->GetData(pMD); if (pMDData->wSlot == (WORD) MethodTable::NO_SLOT) { pMDData->wSlot = (WORD) bmtVT->wCurrentVtableSlot; } // Set the vtable slot _ASSERTE(bmtVT->GetMethodDescForSlot(bmtVT->wCurrentVtableSlot) == NULL); bmtVT->SetMethodDescForSlot(bmtVT->wCurrentVtableSlot, pMD); _ASSERTE(bmtVT->GetMethodDescForSlot(bmtVT->wCurrentVtableSlot) != NULL); bmtVT->ppSDVtable[bmtVT->wCurrentVtableSlot] = pMDData; // Increment the current vtable slot bmtVT->wCurrentVtableSlot++; } } } } } } //--------------------------------------------------------------------------------------- // We should have collected all the method impls. Cycle through them creating the method impl // structure that holds the information about which slots are overridden. VOID MethodTableBuilder::BuildInteropVTable_PlaceMethodImpls( bmtTypeInfo* bmtType, bmtMethodImplInfo* bmtMethodImpl, bmtErrorInfo* bmtError, bmtInterfaceInfo* bmtInterface, bmtVtable* bmtVT, bmtParentInfo* bmtParent) { STANDARD_VM_CONTRACT; if(bmtMethodImpl->pIndex == 0) return; DWORD pIndex = 0; // Allocate some temporary storage. The number of overrides for a single method impl // cannot be greater then the number of vtable slots. DWORD* slots = (DWORD*) new (GetStackingAllocator()) DWORD[bmtVT->wCurrentVtableSlot]; MethodDesc **replaced = new (GetStackingAllocator()) MethodDesc*[bmtVT->wCurrentVtableSlot]; while(pIndex < bmtMethodImpl->pIndex) { DWORD slotIndex = 0; DWORD dwItfCount = 0; MethodDesc* next = bmtMethodImpl->GetBodyMethodDesc(pIndex); MethodDesc* body = NULL; // The signature for the body of the method impl. We cache the signature until all // the method impl's using the same body are done. PCCOR_SIGNATURE pBodySignature = NULL; DWORD cBodySignature = 0; // The impls are sorted according to the method descs for the body of the method impl. // Loop through the impls until the next body is found. When a single body // has been done move the slots implemented and method descs replaced into the storage // found on the body method desc. do { // collect information until we reach the next body body = next; // Get the declaration part of the method impl. It will either be a token // (declaration is on this type) or a method desc. MethodDesc* pDecl = bmtMethodImpl->GetDeclarationMethodDesc(pIndex); if(pDecl == NULL) { // The declaration is on this type to get the token. mdMethodDef mdef = bmtMethodImpl->GetDeclarationToken(pIndex); BuildInteropVTable_PlaceLocalDeclaration(mdef, body, bmtType, bmtError, bmtVT, slots, // Adds override to the slot and replaced arrays. replaced, &slotIndex, // Increments count &pBodySignature, // Fills in the signature &cBodySignature); } else { // Method impls to methods on generic interfaces should have already // been filtered out. _ASSERTE(pDecl->GetMethodTable()->GetNumGenericArgs() == 0); if(pDecl->GetMethodTable()->IsInterface()) { BuildInteropVTable_PlaceInterfaceDeclaration(pDecl, body, bmtMethodImpl->GetDeclarationSubst(pIndex), bmtType, bmtInterface, bmtError, bmtVT, slots, replaced, &slotIndex, // Increments count &pBodySignature, // Fills in the signature &cBodySignature); } else { BuildInteropVTable_PlaceParentDeclaration(pDecl, body, bmtMethodImpl->GetDeclarationSubst(pIndex), bmtType, bmtError, bmtVT, bmtParent, slots, replaced, &slotIndex, // Increments count &pBodySignature, // Fills in the signature &cBodySignature); } } // Move to the next body pIndex++; // we hit the end of the list so leave next = pIndex < bmtMethodImpl->pIndex ? bmtMethodImpl->GetBodyMethodDesc(pIndex) : NULL; } while(next == body) ; } // while(next != NULL) } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PlaceLocalDeclaration( mdMethodDef mdef, MethodDesc* body, bmtTypeInfo* bmtType, bmtErrorInfo* bmtError, bmtVtable* bmtVT, DWORD* slots, MethodDesc** replaced, DWORD* pSlotIndex, PCCOR_SIGNATURE* ppBodySignature, DWORD* pcBodySignature) { STANDARD_VM_CONTRACT; // we search on the token and m_cl for(USHORT i = 0; i < bmtVT->wCurrentVtableSlot; i++) { // Make sure we haven't already been MethodImpl'd _ASSERTE(bmtVT->ppSDVtable[i]->pMD == bmtVT->ppSDVtable[i]->pDeclMD); // We get the current slot. Since we are looking for a method declaration // that is on our class we would never match up with a method obtained from // one of our parents or an Interface. MethodDesc *pMD = bmtVT->ppSDVtable[i]->pMD; // If we get a null then we have already replaced this one. We can't check it // so we will just by by-pass this. if(pMD->GetMemberDef() == mdef) { InteropMethodTableSlotData *pDeclData = bmtVT->pInteropData->GetData(pMD); InteropMethodTableSlotData *pImplData = bmtVT->pInteropData->GetData(body); // If the body has not been placed then place it here. We do not // place bodies for method impl's until we find a spot for them. if (pImplData->wSlot == MethodTable::NO_SLOT) { pImplData->wSlot = (WORD) i; } // We implement this slot, record it slots[*pSlotIndex] = i; replaced[*pSlotIndex] = pMD; bmtVT->SetMethodDescForSlot(i, body); pDeclData->pMD = pImplData->pMD; pDeclData->wSlot = pImplData->wSlot; bmtVT->ppSDVtable[i] = pDeclData; // increment the counter (*pSlotIndex)++; } } } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PlaceInterfaceDeclaration( MethodDesc* pItfDecl, MethodDesc* pImplBody, const Substitution *pDeclSubst, bmtTypeInfo* bmtType, bmtInterfaceInfo* bmtInterface, bmtErrorInfo* bmtError, bmtVtable* bmtVT, DWORD* slots, MethodDesc** replaced, DWORD* pSlotIndex, PCCOR_SIGNATURE* ppBodySignature, DWORD* pcBodySignature) { STANDARD_VM_CONTRACT; _ASSERTE(pItfDecl && pItfDecl->IsInterface() && !(pItfDecl->IsMethodImpl())); // the fact that an interface only shows up once in the vtable // When we are looking for a method desc then the declaration is on // some class or interface that this class implements. The declaration // will either be to an interface or to a class. If it is to a // interface then we need to search for that interface. From that // slot number of the method in the interface we can calculate the offset // into our vtable. If it is to a class it must be a subclass. This uses // the fact that an interface only shows up once in the vtable. BOOL fInterfaceFound = FALSE; // Check our vtable for entries that we are suppose to override. // Since this is an external method we must also check the inteface map. // We want to replace any interface methods even if they have been replaced // by a base class. for(USHORT i = 0; i < bmtInterface->wInterfaceMapSize; i++) { MethodTable *pInterface = bmtInterface->pInterfaceMap[i].m_pMethodTable; if (pInterface->IsEquivalentTo(pItfDecl->GetMethodTable())) { // We found an interface so no error fInterfaceFound = TRUE; WORD wSlot = (WORD) -1; MethodDesc *pMD = NULL; // Find out where the interface map is set on our vtable WORD wStartingSlot = (USHORT) bmtInterface->pInterfaceMap[i].GetInteropStartSlot(); // We need to duplicate the interface to avoid copies. Currently, interfaces // do not overlap so we just need to check to see if there is a non-duplicated // MD. If there is then the interface shares it with the class which means // we need to copy the whole interface for(wSlot = wStartingSlot; wSlot < pInterface->GetNumVirtuals() + wStartingSlot; wSlot++) { // This check will tell us if the method in this slot is the first instance (not a duplicate) if(bmtVT->ppSDVtable[wSlot]->wSlot == wSlot) break; } if(wSlot < pInterface->GetNumVirtuals() + wStartingSlot) { // Check to see if we have allocated the temporay array of starting values. // This array is used to backpatch entries to the original location. These // values are never used but will cause problems later when we finish // laying out the method table. if(bmtInterface->pdwOriginalStart == NULL) { bmtInterface->pdwOriginalStart = new (GetStackingAllocator()) DWORD[bmtInterface->dwMaxExpandedInterfaces]; memset(bmtInterface->pdwOriginalStart, 0, sizeof(DWORD)*bmtInterface->dwMaxExpandedInterfaces); } _ASSERTE(bmtInterface->pInterfaceMap[i].GetInteropStartSlot() != (WORD) 0 && "We assume that an interface does not start at position 0"); _ASSERTE(bmtInterface->pdwOriginalStart[i] == 0 && "We should not move an interface twice"); bmtInterface->pdwOriginalStart[i] = bmtInterface->pInterfaceMap[i].GetInteropStartSlot(); // The interface now starts at the end of the map. bmtInterface->pInterfaceMap[i].SetInteropStartSlot(bmtVT->wCurrentVtableSlot); for(WORD d = wStartingSlot; d < pInterface->GetNumVirtuals() + wStartingSlot; d++) { // Copy the MD //@TODO: Maybe need to create new slot data entries for this copy-out based on //@TODO: the MD's of the interface slots. InteropMethodTableSlotData *pDataCopy = bmtVT->ppSDVtable[d]; bmtVT->SetMethodDescForSlot(bmtVT->wCurrentVtableSlot, pDataCopy->pMD); bmtVT->ppSDVtable[bmtVT->wCurrentVtableSlot] = pDataCopy; // Increment the various counters bmtVT->wCurrentVtableSlot++; } // Reset the starting slot to the known value wStartingSlot = bmtInterface->pInterfaceMap[i].GetInteropStartSlot(); } // Make sure we have placed the interface map. _ASSERTE(wStartingSlot != MethodTable::NO_SLOT); // Get the Slot location of the method desc (slot of the itf MD + start slot for this class) wSlot = pItfDecl->GetSlot() + wStartingSlot; _ASSERTE(wSlot < bmtVT->wCurrentVtableSlot); // Get our current method desc for this slot pMD = bmtVT->ppSDVtable[wSlot]->pMD; // If we have not got the method impl signature go get it now. It is cached // in our caller if (*ppBodySignature == NULL) { if (FAILED(bmtType->pMDImport->GetSigOfMethodDef( pImplBody->GetMemberDef(), pcBodySignature, ppBodySignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } InteropMethodTableSlotData *pImplSlotData = bmtVT->pInteropData->GetData(pImplBody); _ASSERTE(pImplSlotData->wSlot != MethodTable::NO_SLOT); // If the body has not been placed then place it now. if (pImplSlotData->wSlot == MethodTable::NO_SLOT) { pImplSlotData->wSlot = wSlot; } // Store away the values InteropMethodTableSlotData *pItfSlotData = bmtVT->pInteropData->GetData(pItfDecl); slots[*pSlotIndex] = wSlot; replaced[*pSlotIndex] = pItfDecl; bmtVT->SetMethodDescForSlot(wSlot, pImplBody); pItfSlotData->pMD = pImplBody; pItfSlotData->wSlot = pImplSlotData->wSlot; bmtVT->ppSDVtable[wSlot] = pItfSlotData; // increment the counter (*pSlotIndex)++; // if we have moved the interface we need to back patch the original location // if we had left an interface place holder. if(bmtInterface->pdwOriginalStart && bmtInterface->pdwOriginalStart[i] != 0) { USHORT slot = (USHORT) bmtInterface->pdwOriginalStart[i] + pItfDecl->GetSlot(); MethodDesc* pSlotMD = bmtVT->ppSDVtable[slot]->pMD; if(pSlotMD->GetMethodTable() && pSlotMD->IsInterface()) { bmtVT->SetMethodDescForSlot(slot, pImplBody); bmtVT->ppSDVtable[slot] = pItfSlotData; } } break; } } _ASSERTE(fInterfaceFound); } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PlaceParentDeclaration( MethodDesc* pDecl, MethodDesc* pImplBody, const Substitution *pDeclSubst, bmtTypeInfo* bmtType, bmtErrorInfo* bmtError, bmtVtable* bmtVT, bmtParentInfo* bmtParent, DWORD* slots, MethodDesc** replaced, DWORD* pSlotIndex, PCCOR_SIGNATURE* ppBodySignature, DWORD* pcBodySignature) { STANDARD_VM_CONTRACT; _ASSERTE(pDecl && !pDecl->IsInterface()); BOOL fRet = FALSE; // Verify that the class of the declaration is in our heirarchy MethodTable* declType = pDecl->GetMethodTable(); MethodTable* pParentMT = bmtParent->pParentMethodTable; while(pParentMT != NULL) { if(declType == pParentMT) break; pParentMT = pParentMT->GetParentMethodTable(); } _ASSERTE(pParentMT); // Compare the signature for the token in the specified scope // If we have not got the method impl signature go get it now if (*ppBodySignature == NULL) { if (FAILED(bmtType->pMDImport->GetSigOfMethodDef( pImplBody->GetMemberDef(), pcBodySignature, ppBodySignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } // We get the method from the parents slot. We will replace the method that is currently // defined in that slot and any duplicates for that method desc. WORD wSlot = InteropMethodTableData::GetSlotForMethodDesc(pParentMT, pDecl); InteropMethodTableSlotData *pDeclData = bmtVT->ppSDVtable[wSlot]; InteropMethodTableSlotData *pImplData = bmtVT->pInteropData->GetData(pImplBody); // Get the real method desc (a base class may have overridden the method // with a method impl) MethodDesc* pReplaceDesc = pDeclData->pDeclMD; // If the body has not been placed then place it here if(pImplData->wSlot == MethodTable::NO_SLOT) { pImplData->wSlot = wSlot; } slots[*pSlotIndex] = wSlot; replaced[*pSlotIndex] = pReplaceDesc; bmtVT->SetMethodDescForSlot(wSlot, pImplBody); pDeclData->pMD = pImplData->pMD; pDeclData->wSlot = pImplData->wSlot; bmtVT->ppSDVtable[wSlot] = pDeclData; // increment the counter (*pSlotIndex)++; // we search for all duplicates for(USHORT i = wSlot+1; i < bmtVT->wCurrentVtableSlot; i++) { MethodDesc *pMD = bmtVT->ppSDVtable[i]->pMD; MethodDesc* pRealDesc = bmtVT->ppSDVtable[i]->pDeclMD; if(pRealDesc == pReplaceDesc) { // We do not want to override a body to another method impl _ASSERTE(!pRealDesc->IsMethodImpl()); // Make sure we are not overridding another method impl _ASSERTE(!(pMD != pImplBody && pMD->IsMethodImpl() && pMD->GetMethodTable() == NULL)); slots[*pSlotIndex] = i; replaced[*pSlotIndex] = pRealDesc; bmtVT->pVtable[i] = bmtVT->pVtable[wSlot]; bmtVT->pVtableMD[i] = bmtVT->pVtableMD[wSlot]; bmtVT->ppSDVtable[i] = bmtVT->ppSDVtable[wSlot]; // increment the counter (*pSlotIndex)++; } } } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::BuildInteropVTable_PropagateInheritance( bmtVtable *bmtVT) { STANDARD_VM_CONTRACT; for (DWORD i = 0; i < bmtVT->wCurrentVtableSlot; i++) { // For now only propagate inheritance for method desc that are not interface MD's. // This is not sufficient but InterfaceImpl's will complete the picture. InteropMethodTableSlotData *pMDData = bmtVT->ppSDVtable[i]; MethodDesc* pMD = pMDData->pMD; CONSISTENCY_CHECK_MSG(CheckPointer(pMD), "Could not resolve MethodDesc Slot!"); if(!pMD->IsInterface() && pMDData->GetSlot() != i) { pMDData->SetDuplicate(); bmtVT->pVtable[i] = bmtVT->pVtable[pMDData->GetSlot()]; bmtVT->pVtableMD[i] = bmtVT->pVtableMD[pMDData->GetSlot()]; bmtVT->ppSDVtable[i]->pMD = bmtVT->ppSDVtable[pMDData->GetSlot()]->pMD; } } } //--------------------------------------------------------------------------------------- VOID MethodTableBuilder::FinalizeInteropVTable( AllocMemTracker *pamTracker, LoaderAllocator* pAllocator, bmtVtable* bmtVT, bmtInterfaceInfo* bmtInterface, bmtTypeInfo* bmtType, bmtProperties* bmtProp, bmtMethodInfo* bmtMethod, bmtErrorInfo* bmtError, bmtParentInfo* bmtParent, InteropMethodTableData **ppInteropMT) { STANDARD_VM_CONTRACT; LoaderHeap *pHeap = pAllocator->GetLowFrequencyHeap(); // Allocate the overall structure InteropMethodTableData *pMTData = (InteropMethodTableData *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableData)))); #ifdef LOGGING g_sdStats.m_cbComInteropData += sizeof(InteropMethodTableData); #endif memset(pMTData, 0, sizeof(InteropMethodTableData)); // Allocate the vtable pMTData->cVTable = bmtVT->wCurrentVtableSlot; if (pMTData->cVTable != 0) { pMTData->pVTable = (InteropMethodTableSlotData *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableSlotData)) * S_SIZE_T(pMTData->cVTable))); #ifdef LOGGING g_sdStats.m_cbComInteropData += sizeof(InteropMethodTableSlotData) * pMTData->cVTable; #endif { // Copy the vtable for (DWORD i = 0; i < pMTData->cVTable; i++) { CONSISTENCY_CHECK(bmtVT->ppSDVtable[i]->wSlot != MethodTable::NO_SLOT); pMTData->pVTable[i] = *bmtVT->ppSDVtable[i]; } } } // Allocate the non-vtable pMTData->cNonVTable = bmtVT->wCurrentNonVtableSlot; if (pMTData->cNonVTable != 0) { pMTData->pNonVTable = (InteropMethodTableSlotData *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InteropMethodTableSlotData)) * S_SIZE_T(pMTData->cNonVTable))); #ifdef LOGGING g_sdStats.m_cbComInteropData += sizeof(InteropMethodTableSlotData) * pMTData->cNonVTable; #endif { // Copy the non-vtable for (DWORD i = 0; i < pMTData->cNonVTable; i++) { CONSISTENCY_CHECK(bmtVT->ppSDVtable[i]->wSlot != MethodTable::NO_SLOT); pMTData->pNonVTable[i] = *bmtVT->ppSDNonVtable[i]; } } } // Allocate the interface map pMTData->cInterfaceMap = bmtInterface->wInterfaceMapSize; if (pMTData->cInterfaceMap != 0) { pMTData->pInterfaceMap = (InterfaceInfo_t *) pamTracker->Track(pHeap->AllocMem(S_SIZE_T(sizeof(InterfaceInfo_t)) * S_SIZE_T(pMTData->cInterfaceMap))); #ifdef LOGGING g_sdStats.m_cbComInteropData += sizeof(InterfaceInfo_t) * pMTData->cInterfaceMap; #endif { // Copy the interface map for (DWORD i = 0; i < pMTData->cInterfaceMap; i++) { pMTData->pInterfaceMap[i] = bmtInterface->pInterfaceMap[i]; } } } *ppInteropMT = pMTData; } //******************************************************************************* VOID MethodTableBuilder::EnumerateMethodImpls() { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; IMDInternalImport *pMDInternalImport = bmtType->pMDImport; DWORD rid, maxRidMD, maxRidMR; hr = bmtMethodImpl->hEnumMethodImpl.EnumMethodImplInitNoThrow(GetCl()); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } // This gets the count out of the metadata interface. bmtMethodImpl->dwNumberMethodImpls = bmtMethodImpl->hEnumMethodImpl.EnumMethodImplGetCount(); // This is the first pass. In this we will simply enumerate the token pairs and fill in // the data structures. In addition, we'll sort the list and eliminate duplicates. if (bmtMethodImpl->dwNumberMethodImpls > 0) { // // Allocate the structures to keep track of the token pairs // bmtMethodImpl->rgMethodImplTokens = new (GetStackingAllocator()) bmtMethodImplInfo::MethodImplTokenPair[bmtMethodImpl->dwNumberMethodImpls]; // Iterate through each MethodImpl declared on this class for (DWORD i = 0; i < bmtMethodImpl->dwNumberMethodImpls; i++) { // Grab the next set of body/decl tokens hr = bmtMethodImpl->hEnumMethodImpl.EnumMethodImplNext( &bmtMethodImpl->rgMethodImplTokens[i].methodBody, &bmtMethodImpl->rgMethodImplTokens[i].methodDecl); if (FAILED(hr)) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (hr == S_FALSE) { // In the odd case that the enumerator fails before we've reached the total reported // entries, let's reset the count and just break out. (Should we throw?) bmtMethodImpl->dwNumberMethodImpls = i; break; } } // No need to do any sorting or duplicate elimination if there's not two or more methodImpls if (bmtMethodImpl->dwNumberMethodImpls > 1) { // Now sort qsort(bmtMethodImpl->rgMethodImplTokens, bmtMethodImpl->dwNumberMethodImpls, sizeof(bmtMethodImplInfo::MethodImplTokenPair), &bmtMethodImplInfo::MethodImplTokenPair::Compare); // Now eliminate duplicates for (DWORD i = 0; i < bmtMethodImpl->dwNumberMethodImpls - 1; i++) { CONSISTENCY_CHECK((i + 1) < bmtMethodImpl->dwNumberMethodImpls); bmtMethodImplInfo::MethodImplTokenPair *e1 = &bmtMethodImpl->rgMethodImplTokens[i]; bmtMethodImplInfo::MethodImplTokenPair *e2 = &bmtMethodImpl->rgMethodImplTokens[i + 1]; // If the pair are equal, eliminate the first one, and reduce the total count by one. if (bmtMethodImplInfo::MethodImplTokenPair::Equal(e1, e2)) { DWORD dwCopyNum = bmtMethodImpl->dwNumberMethodImpls - (i + 1); memcpy(e1, e2, dwCopyNum * sizeof(bmtMethodImplInfo::MethodImplTokenPair)); bmtMethodImpl->dwNumberMethodImpls--; CONSISTENCY_CHECK(bmtMethodImpl->dwNumberMethodImpls > 0); } } } } if (bmtMethodImpl->dwNumberMethodImpls != 0) { // // Allocate the structures to keep track of the impl matches // bmtMethodImpl->pMethodDeclSubsts = new (GetStackingAllocator()) Substitution[bmtMethodImpl->dwNumberMethodImpls]; bmtMethodImpl->rgEntries = new (GetStackingAllocator()) bmtMethodImplInfo::Entry[bmtMethodImpl->dwNumberMethodImpls]; // These are used for verification maxRidMD = pMDInternalImport->GetCountWithTokenKind(mdtMethodDef); maxRidMR = pMDInternalImport->GetCountWithTokenKind(mdtMemberRef); // Iterate through each MethodImpl declared on this class for (DWORD i = 0; i < bmtMethodImpl->dwNumberMethodImpls; i++) { PCCOR_SIGNATURE pSigDecl = NULL; PCCOR_SIGNATURE pSigBody = NULL; ULONG cbSigDecl; ULONG cbSigBody; mdToken tkParent; mdToken theBody, theDecl; Substitution theDeclSubst(bmtType->pModule, SigPointer(), NULL); // this can get updated later below. theBody = bmtMethodImpl->rgMethodImplTokens[i].methodBody; theDecl = bmtMethodImpl->rgMethodImplTokens[i].methodDecl; // IMPLEMENTATION LIMITATION: currently, we require that the body of a methodImpl // belong to the current type. This is because we need to allocate a different // type of MethodDesc for bodies that are part of methodImpls. if (TypeFromToken(theBody) != mdtMethodDef) { mdToken theNewBody; hr = FindMethodDeclarationForMethodImpl(bmtType->pMDImport, GetCl(), theBody, &theNewBody); if (FAILED(hr)) { BuildMethodTableThrowException(hr, IDS_CLASSLOAD_MI_ILLEGAL_BODY, mdMethodDefNil); } theBody = theNewBody; // Make sure to update the stored token with the resolved token. bmtMethodImpl->rgMethodImplTokens[i].methodBody = theBody; } if (TypeFromToken(theBody) != mdtMethodDef) { BuildMethodTableThrowException(BFA_METHODDECL_NOT_A_METHODDEF); } CONSISTENCY_CHECK(theBody == bmtMethodImpl->rgMethodImplTokens[i].methodBody); // // Now that the tokens of Decl and Body are obtained, do the MD validation // rid = RidFromToken(theDecl); // Perform initial rudimentary validation of the token. Full token verification // will be done in TestMethodImpl when placing the methodImpls. if (TypeFromToken(theDecl) == mdtMethodDef) { // Decl must be valid token if ((rid == 0)||(rid > maxRidMD)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL); } // Get signature and length if (FAILED(pMDInternalImport->GetSigOfMethodDef(theDecl, &cbSigDecl, &pSigDecl))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } // The token is not a MethodDef (likely a MemberRef) else { // Decl must be valid token if ((TypeFromToken(theDecl) != mdtMemberRef) || (rid == 0) || (rid > maxRidMR)) { bmtError->resIDWhy = IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL; BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_DECL); } // Get signature and length LPCSTR szDeclName; if (FAILED(pMDInternalImport->GetNameAndSigOfMemberRef(theDecl, &pSigDecl, &cbSigDecl, &szDeclName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } // Get parent hr = pMDInternalImport->GetParentToken(theDecl,&tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); theDeclSubst = Substitution(tkParent, bmtType->pModule, NULL); } // Perform initial rudimentary validation of the token. Full token verification // will be done in TestMethodImpl when placing the methodImpls. { // Body must be valid token rid = RidFromToken(theBody); if ((rid == 0)||(rid > maxRidMD)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_TOKEN_BODY); } // Body's parent must be this class hr = pMDInternalImport->GetParentToken(theBody,&tkParent); if (FAILED(hr)) BuildMethodTableThrowException(hr, *bmtError); if(tkParent != GetCl()) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_ILLEGAL_BODY); } } // Decl's and Body's signatures must match if ((pSigDecl != NULL) && (cbSigDecl != 0)) { if (FAILED(pMDInternalImport->GetSigOfMethodDef(theBody,&cbSigBody, &pSigBody)) || (pSigBody == NULL) || (cbSigBody == 0)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MISSING_SIG_BODY); } // Can't use memcmp because there may be two AssemblyRefs // in this scope, pointing to the same assembly, etc.). if (!MetaSig::CompareMethodSigs(pSigDecl, cbSigDecl, bmtType->pModule, &theDeclSubst, pSigBody, cbSigBody, bmtType->pModule, NULL, FALSE)) { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_BODY_DECL_MISMATCH); } } else { BuildMethodTableThrowException(IDS_CLASSLOAD_MI_MISSING_SIG_DECL); } bmtMethodImpl->pMethodDeclSubsts[i] = theDeclSubst; } } } //******************************************************************************* // // Used by BuildMethodTable // // Enumerate this class's members // #ifdef _PREFAST_ #pragma warning(push) #pragma warning(disable:21000) // Suppress PREFast warning about overly large function #endif VOID MethodTableBuilder::EnumerateClassMethods() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(bmtType)); PRECONDITION(CheckPointer(bmtMethod)); PRECONDITION(CheckPointer(bmtProp)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtError)); } CONTRACTL_END; HRESULT hr = S_OK; DWORD i; IMDInternalImport *pMDInternalImport = bmtType->pMDImport; mdToken tok; DWORD dwMemberAttrs; BOOL fIsClassEnum = IsEnum(); BOOL fIsClassInterface = IsInterface(); BOOL fIsClassValueType = IsValueClass(); #ifdef FEATURE_COMINTEROP BOOL fIsClassComImport = IsComImport(); #endif BOOL fIsClassNotAbstract = (IsTdAbstract(GetAttrClass()) == 0); PCCOR_SIGNATURE pMemberSignature; ULONG cMemberSignature; // // Run through the method list and calculate the following: // # methods. // # "other" methods (i.e. static or private) // # non-other methods // bmtVT->dwMaxVtableSize = 0; // we'll fix this later to be the real upper bound on vtable size bmtMethod->cMethods = 0; hr = bmtMethod->hEnumMethod.EnumInitNoThrow(mdtMethodDef, GetCl()); if (FAILED(hr)) { _ASSERTE(!"Cannot count memberdefs"); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } } // Allocate an array to contain the method tokens as well as information about the methods. bmtMethod->cMethAndGaps = bmtMethod->hEnumMethod.EnumGetCount(); bmtMethod->rgMethodTokens = new (GetStackingAllocator()) mdToken[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodRVA = new (GetStackingAllocator()) ULONG[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodAttrs = new (GetStackingAllocator()) DWORD[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodImplFlags = new (GetStackingAllocator()) DWORD[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodClassifications = new (GetStackingAllocator()) DWORD[bmtMethod->cMethAndGaps]; bmtMethod->rgszMethodName = new (GetStackingAllocator()) LPCSTR[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodImpl = new (GetStackingAllocator()) BYTE[bmtMethod->cMethAndGaps]; bmtMethod->rgMethodType = new (GetStackingAllocator()) BYTE[bmtMethod->cMethAndGaps]; enum { SeenCtor = 1, SeenInvoke = 2, SeenBeginInvoke = 4, SeenEndInvoke = 8}; unsigned delegateMethodsSeen = 0; for (i = 0; i < bmtMethod->cMethAndGaps; i++) { ULONG dwMethodRVA; DWORD dwImplFlags; DWORD Classification; LPSTR strMethodName; // // Go to the next method and retrieve its attributes. // bmtMethod->hEnumMethod.EnumNext(&tok); DWORD rid = RidFromToken(tok); if ((rid == 0)||(rid > pMDInternalImport->GetCountWithTokenKind(mdtMethodDef))) { BuildMethodTableThrowException(BFA_METHOD_TOKEN_OUT_OF_RANGE); } if (FAILED(pMDInternalImport->GetMethodDefProps(tok, &dwMemberAttrs))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsMdRTSpecialName(dwMemberAttrs) || IsMdVirtual(dwMemberAttrs) || IsDelegate()) { if (FAILED(pMDInternalImport->GetNameOfMethodDef(tok, (LPCSTR *)&strMethodName))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (IsStrLongerThan(strMethodName,MAX_CLASS_NAME)) { BuildMethodTableThrowException(BFA_METHOD_NAME_TOO_LONG); } } else strMethodName = NULL; HENUMInternalHolder hEnumTyPars(pMDInternalImport); hr = hEnumTyPars.EnumInitNoThrow(mdtGenericParam, tok); if (FAILED(hr)) { BuildMethodTableThrowException(hr, *bmtError); } WORD numGenericMethodArgs = (WORD) hEnumTyPars.EnumGetCount(); if (numGenericMethodArgs != 0) { for (unsigned methIdx = 0; methIdx < numGenericMethodArgs; methIdx++) { mdGenericParam tkTyPar; pMDInternalImport->EnumNext(&hEnumTyPars, &tkTyPar); DWORD flags; if (FAILED(pMDInternalImport->GetGenericParamProps(tkTyPar, NULL, &flags, NULL, NULL, NULL))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } if (0 != (flags & ~(gpVarianceMask | gpSpecialConstraintMask))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } switch (flags & gpVarianceMask) { case gpNonVariant: break; case gpCovariant: // intentional fallthru case gpContravariant: BuildMethodTableThrowException(VLDTR_E_GP_ILLEGAL_VARIANT_MVAR); break; default: BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } } } // // We need to check if there are any gaps in the vtable. These are // represented by methods with the mdSpecial flag and a name of the form // _VTblGap_nnn (to represent nnn empty slots) or _VTblGap (to represent a // single empty slot). // if (IsMdRTSpecialName(dwMemberAttrs)) { PREFIX_ASSUME(strMethodName != NULL); // if we've gotten here we've called GetNameOfMethodDef // The slot is special, but it might not be a vtable spacer. To // determine that we must look at the name. if (strncmp(strMethodName, "_VtblGap", 8) == 0) { // // This slot doesn't really exist, don't add it to the method // table. Instead it represents one or more empty slots, encoded // in the method name. Locate the beginning of the count in the // name. There are these points to consider: // There may be no count present at all (in which case the // count is taken as one). // There may be an additional count just after Gap but before // the '_'. We ignore this. // LPCSTR pos = strMethodName + 8; // Skip optional number. while (IS_DIGIT(*pos)) pos++; WORD n = 0; // Check for presence of count. if (*pos == '\0') n = 1; else { if (*pos != '_') { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } // Skip '_'. pos++; // Read count. bool fReadAtLeastOneDigit = false; while (IS_DIGIT(*pos)) { _ASSERTE(n < 6552); n *= 10; n += DIGIT_TO_INT(*pos); pos++; fReadAtLeastOneDigit = true; } // Check for end of name. if (*pos != '\0' || !fReadAtLeastOneDigit) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BADSPECIALMETHOD, tok); } } #ifdef FEATURE_COMINTEROP // Record vtable gap in mapping list. if (GetHalfBakedClass()->GetSparseCOMInteropVTableMap() == NULL) GetHalfBakedClass()->SetSparseCOMInteropVTableMap(new SparseVTableMap()); GetHalfBakedClass()->GetSparseCOMInteropVTableMap()->RecordGap(NumDeclaredMethods(), n); bmtProp->fSparse = true; #endif // FEATURE_COMINTEROP continue; } } // // This is a real method so add it to the enumeration of methods. We now need to retrieve // information on the method and store it for later use. // if (FAILED(pMDInternalImport->GetMethodImplProps(tok, &dwMethodRVA, &dwImplFlags))) { BuildMethodTableThrowException(BFA_INVALID_TOKEN); } // // But first - minimal flags validity checks // // No methods in Enums! if (fIsClassEnum) { BuildMethodTableThrowException(BFA_METHOD_IN_A_ENUM); } // RVA : 0 if (dwMethodRVA != 0) { #ifdef FEATURE_COMINTEROP if(fIsClassComImport) { BuildMethodTableThrowException(BFA_METHOD_WITH_NONZERO_RVA); } #endif // FEATURE_COMINTEROP if(IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_ABSTRACT_METHOD_WITH_RVA); } if(IsMiRuntime(dwImplFlags)) { BuildMethodTableThrowException(BFA_RUNTIME_METHOD_WITH_RVA); } if(IsMiInternalCall(dwImplFlags)) { BuildMethodTableThrowException(BFA_INTERNAL_METHOD_WITH_RVA); } } // Abstract / not abstract if(IsMdAbstract(dwMemberAttrs)) { if(fIsClassNotAbstract) { BuildMethodTableThrowException(BFA_AB_METHOD_IN_AB_CLASS); } if(!IsMdVirtual(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONVIRT_AB_METHOD); } } else if(fIsClassInterface && strMethodName && (strcmp(strMethodName, COR_CCTOR_METHOD_NAME))) { BuildMethodTableThrowException(BFA_NONAB_NONCCTOR_METHOD_ON_INT); } // Virtual / not virtual if(IsMdVirtual(dwMemberAttrs)) { if(IsMdPinvokeImpl(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_PINVOKE_METHOD); } if(IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_STATIC_METHOD); } if(strMethodName && (0==strcmp(strMethodName, COR_CTOR_METHOD_NAME))) { BuildMethodTableThrowException(BFA_VIRTUAL_INSTANCE_CTOR); } } // Some interface checks. // We only need them if default interface method support is disabled #if !defined(FEATURE_DEFAULT_INTERFACES) if (fIsClassInterface) { if (IsMdVirtual(dwMemberAttrs)) { if (!IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_VIRTUAL_NONAB_INT_METHOD); } } else { // Instance method if (!IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONVIRT_INST_INT_METHOD); } } } #endif // !defined(FEATURE_DEFAULT_INTERFACES) // No synchronized methods in ValueTypes if(fIsClassValueType && IsMiSynchronized(dwImplFlags)) { BuildMethodTableThrowException(BFA_SYNC_METHOD_IN_VT); } // Global methods: if(IsGlobalClass()) { if(!IsMdStatic(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_NONSTATIC_GLOBAL_METHOD); } if (strMethodName) //<TODO>@todo: investigate mc++ generating null name</TODO> { if(0==strcmp(strMethodName, COR_CTOR_METHOD_NAME)) { BuildMethodTableThrowException(BFA_GLOBAL_INST_CTOR); } } } //@GENERICS: // Generic methods or methods in generic classes // may not be part of a COM Import class, PInvoke, internal call. if ((numGenericMethodArgs != 0) && ( #ifdef FEATURE_COMINTEROP fIsClassComImport || bmtProp->fComEventItfType || #endif // FEATURE_COMINTEROP IsMdPinvokeImpl(dwMemberAttrs) || IsMiInternalCall(dwImplFlags))) { BuildMethodTableThrowException(BFA_BAD_PLACE_FOR_GENERIC_METHOD); } // Generic methods may not be marked "runtime". However note that // methods in generic delegate classes are, hence we don't apply this to // methods in generic classes in general. if (numGenericMethodArgs != 0 && IsMiRuntime(dwImplFlags)) { BuildMethodTableThrowException(BFA_GENERIC_METHOD_RUNTIME_IMPL); } // Signature validation if (FAILED(pMDInternalImport->GetSigOfMethodDef(tok,&cMemberSignature, &pMemberSignature))) { BuildMethodTableThrowException(IDS_CLASSLOAD_BADFORMAT); } hr = validateTokenSig(tok,pMemberSignature,cMemberSignature,dwMemberAttrs,pMDInternalImport); if (FAILED(hr)) { BuildMethodTableThrowException(hr, BFA_BAD_SIGNATURE, mdMethodDefNil); } // // Determine the method's classification. // if (IsReallyMdPinvokeImpl(dwMemberAttrs) || IsMiInternalCall(dwImplFlags)) { hr = NDirect::HasNAT_LAttribute(pMDInternalImport, tok, dwMemberAttrs); // There was a problem querying for the attribute if (FAILED(hr)) { BuildMethodTableThrowException(hr, IDS_CLASSLOAD_BADPINVOKE, tok); } // The attribute is not present if (hr == S_FALSE) { #ifdef FEATURE_COMINTEROP if (fIsClassComImport || bmtProp->fComEventItfType) { // tlbimported component if (IsMdRTSpecialName(dwMemberAttrs)) { // constructor is special Classification = mcFCall; } else { // Tlbimported components we have some // method descs in the call which are just used // for handling methodimpls of all interface methods Classification = mcComInterop; } } else #endif // FEATURE_COMINTEROP if (dwMethodRVA == 0) Classification = mcFCall; else Classification = mcNDirect; } // The NAT_L attribute is present, marking this method as NDirect else { CONSISTENCY_CHECK(hr == S_OK); Classification = mcNDirect; } } else if (IsMiRuntime(dwImplFlags)) { // currently the only runtime implemented functions are delegate instance methods if (!IsDelegate() || IsMdStatic(dwMemberAttrs) || IsMdAbstract(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_BAD_RUNTIME_IMPL); } unsigned newDelegateMethodSeen = 0; if (IsMdRTSpecialName(dwMemberAttrs)) // .ctor { if (strcmp(strMethodName, COR_CTOR_METHOD_NAME) != 0 || IsMdVirtual(dwMemberAttrs)) { BuildMethodTableThrowException(BFA_BAD_FLAGS_ON_DELEGATE); } newDelegateMethodSeen = SeenCtor; Classification = mcFCall; } else { if (strcmp(strMethodName, "Invoke") == 0) newDelegateMethodSeen = SeenInvoke; else if (strcmp(strMethodName, "BeginInvoke") == 0) newDelegateMethodSeen = SeenBeginInvoke; else if (strcmp(strMethodName, "EndInvoke") == 0) newDelegateMethodSeen = SeenEndInvoke; else { BuildMethodTableThrowException(BFA_UNKNOWN_DELEGATE_METHOD); } Classification = mcEEImpl; } // If we get here we have either set newDelegateMethodSeen or we have thrown a BMT exception _ASSERTE(newDelegateMethodSeen != 0); if ((delegateMethodsSeen & newDelegateMethodSeen) != 0) { BuildMethodTableThrowException(BFA_DUPLICATE_DELEGATE_METHOD); } delegateMethodsSeen |= newDelegateMethodSeen; } else if (numGenericMethodArgs != 0) { //We use an instantiated method desc to represent a generic method Classification = mcInstantiated; } else if (fIsClassInterface) { #ifdef FEATURE_COMINTEROP if (IsMdStatic(dwMemberAttrs)) { // Static methods in interfaces need nothing special. Classification = mcIL; } else if (bmtProp->fIsMngStandardItf) { // If the interface is a standard managed interface then allocate space for an FCall method desc. Classification = mcFCall; } else if (IsMdAbstract(dwMemberAttrs)) { // If COM interop is supported then all other interface MDs may be // accessed via COM interop <TODO> mcComInterop MDs are BIG - // this is very often a waste of space </TODO> // @DIM_TODO - What if default interface method is called through COM interop? Classification = mcComInterop; } else #endif // !FEATURE_COMINTEROP { // This codepath is used by remoting and default interface methods Classification = mcIL; } } else { Classification = mcIL; } // Generic methods should always be mcInstantiated if (!((numGenericMethodArgs == 0) || ((Classification & mdcClassification) == mcInstantiated))) { BuildMethodTableThrowException(BFA_GENERIC_METHODS_INST); } // count how many overrides this method does All methods bodies are defined // on this type so we can just compare the tok with the body token found // from the overrides. for(DWORD impls = 0; impls < bmtMethodImpl->dwNumberMethodImpls; impls++) { if ((bmtMethodImpl->rgMethodImplTokens[impls].methodBody == tok) && !IsMdStatic(dwMemberAttrs)) { Classification |= mdcMethodImpl; break; } } // For delegates we don't allow any non-runtime implemented bodies // for any of the four special methods if (IsDelegate() && !IsMiRuntime(dwImplFlags)) { if ((strcmp(strMethodName, COR_CTOR_METHOD_NAME) == 0) || (strcmp(strMethodName, "Invoke") == 0) || (strcmp(strMethodName, "BeginInvoke") == 0) || (strcmp(strMethodName, "EndInvoke") == 0) ) { BuildMethodTableThrowException(BFA_ILLEGAL_DELEGATE_METHOD); } } // // Compute the type & other info // // Set the index into the storage locations BYTE impl; if (Classification & mdcMethodImpl) { impl = METHOD_IMPL; } else { impl = METHOD_IMPL_NOT; } BYTE type; if ((Classification & mdcClassification) == mcNDirect) { type = METHOD_TYPE_NDIRECT; } else if ((Classification & mdcClassification) == mcFCall) { type = METHOD_TYPE_FCALL; } else if ((Classification & mdcClassification) == mcEEImpl) { type = METHOD_TYPE_EEIMPL; } #ifdef FEATURE_COMINTEROP else if ((Classification & mdcClassification) == mcComInterop) { type = METHOD_TYPE_INTEROP; } #endif // FEATURE_COMINTEROP else if ((Classification & mdcClassification) == mcInstantiated) { type = METHOD_TYPE_INSTANTIATED; } else { type = METHOD_TYPE_NORMAL; } // // Store the method and the information we have gathered on it in the metadata info structure. // bmtMethod->SetMethodData(NumDeclaredMethods(), tok, dwMemberAttrs, dwMethodRVA, dwImplFlags, Classification, strMethodName, impl, type); IncNumDeclaredMethods(); // // Update the count of the various types of methods. // bmtVT->dwMaxVtableSize++; } // Check to see that we have all of the required delegate methods (ECMA 13.6 Delegates) if (IsDelegate()) { // Do we have all four special delegate methods // or just the two special delegate methods if ((delegateMethodsSeen != (SeenCtor | SeenInvoke | SeenBeginInvoke | SeenEndInvoke)) && (delegateMethodsSeen != (SeenCtor | SeenInvoke)) ) { BuildMethodTableThrowException(BFA_MISSING_DELEGATE_METHOD); } } if (i != bmtMethod->cMethAndGaps) { BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_BAD_METHOD_COUNT, mdTokenNil); } bmtMethod->hEnumMethod.EnumReset(); #ifdef FEATURE_COMINTEROP // // If the interface is sparse, we need to finalize the mapping list by // telling it how many real methods we found. // if (bmtProp->fSparse) { GetHalfBakedClass()->GetSparseCOMInteropVTableMap()->FinalizeMapping(NumDeclaredMethods()); } #endif // FEATURE_COMINTEROP } #ifdef _PREFAST_ #pragma warning(pop) #endif //******************************************************************************* // // Used by BuildMethodTable // // Determines the maximum size of the vtable and allocates the temporary storage arrays // Also copies the parent's vtable into the working vtable. // VOID MethodTableBuilder::AllocateMethodWorkingMemory() { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtMethod)); PRECONDITION(CheckPointer(bmtVT)); PRECONDITION(CheckPointer(bmtInterface)); PRECONDITION(CheckPointer(bmtParent)); } CONTRACTL_END; DWORD i; // Allocate a MethodDesc* for each method (needed later when doing interfaces), and a FieldDesc* for each field bmtMethod->ppMethodDescList = new (GetStackingAllocator()) MethodDesc*[NumDeclaredMethods()]; ZeroMemory(bmtMethod->ppMethodDescList, NumDeclaredMethods() * sizeof(MethodDesc *)); // Create a temporary function table (we don't know how large the vtable will be until the very end, // since duplicated interfaces are stored at the end of it). Calculate an upper bound. // // Upper bound is: The parent's class vtable size, plus every method declared in // this class, plus the size of every interface we implement // // In the case of value classes, we add # InstanceMethods again, since we have boxed and unboxed versions // of every vtable method. // if (IsValueClass()) { bmtVT->dwMaxVtableSize += NumDeclaredMethods(); bmtMethod->ppUnboxMethodDescList = new (GetStackingAllocator()) MethodDesc*[NumDeclaredMethods()]; ZeroMemory(bmtMethod->ppUnboxMethodDescList, NumDeclaredMethods() * sizeof(MethodDesc*)); } // sanity check _ASSERTE(bmtParent->pParentMethodTable == NULL || (bmtInterface->wInterfaceMapSize - bmtParent->pParentMethodTable->GetNumInterfaces()) >= 0); // add parent vtable size bmtVT->dwMaxVtableSize += bmtVT->wCurrentVtableSlot; for (i = 0; i < bmtInterface->wInterfaceMapSize; i++) { // We double the interface size because we may end up duplicating the Interface for MethodImpls bmtVT->dwMaxVtableSize += (bmtInterface->pInterfaceMap[i].m_pMethodTable->GetNumVirtuals() * 2); } // Allocate the temporary vtable bmtVT->pVtable = new (GetStackingAllocator())PCODE [bmtVT->dwMaxVtableSize]; ZeroMemory(bmtVT->pVtable, bmtVT->dwMaxVtableSize * sizeof(PCODE)); bmtVT->pVtableMD = new (GetStackingAllocator()) MethodDesc*[bmtVT->dwMaxVtableSize]; ZeroMemory(bmtVT->pVtableMD, bmtVT->dwMaxVtableSize * sizeof(MethodDesc*)); // Allocate the temporary non-vtable bmtVT->pNonVtableMD = new (GetStackingAllocator()) MethodDesc*[NumDeclaredMethods()]; ZeroMemory(bmtVT->pNonVtableMD, sizeof(MethodDesc*) * NumDeclaredMethods()); if (bmtParent->pParentMethodTable != NULL) { // Copy parent's vtable into our "temp" vtable { MethodTable::MethodIterator it(bmtParent->pParentMethodTable); for (;it.IsValid() && it.IsVirtual(); it.Next()) { DWORD slot = it.GetSlotNumber(); bmtVT->pVtable[slot] = it.GetTarget().GetTarget(); bmtVT->pVtableMD[slot] = NULL; // MethodDescs are resolved lazily } bmtVT->pParentMethodTable = bmtParent->pParentMethodTable; } } if (NumDeclaredMethods() > 0) { bmtParent->ppParentMethodDescBuf = (MethodDesc **) GetStackingAllocator()->Alloc(S_UINT32(2) * S_UINT32(NumDeclaredMethods()) * S_UINT32(sizeof(MethodDesc*))); bmtParent->ppParentMethodDescBufPtr = bmtParent->ppParentMethodDescBuf; } } //******************************************************************************* // // Find a method in this class hierarchy - used ONLY by the loader during layout. Do not use at runtime. // // *ppMemberSignature must be NULL on entry - it and *pcMemberSignature may or may not be filled out // // ppMethodDesc will be filled out with NULL if no matching method in the hierarchy is found. // // Returns FALSE if there was an error of some kind. // // pMethodConstraintsMatch receives the result of comparing the method constraints. HRESULT MethodTableBuilder::LoaderFindMethodInClass( LPCUTF8 pszMemberName, Module* pModule, mdMethodDef mdToken, MethodDesc ** ppMethodDesc, PCCOR_SIGNATURE * ppMemberSignature, DWORD * pcMemberSignature, DWORD dwHashName, BOOL * pMethodConstraintsMatch) { CONTRACTL { STANDARD_VM_CHECK; PRECONDITION(CheckPointer(this)); PRECONDITION(CheckPointer(bmtParent)); PRECONDITION(CheckPointer(pModule)); PRECONDITION(CheckPointer(ppMethodDesc)); PRECONDITION(CheckPointer(ppMemberSignature)); PRECONDITION(CheckPointer(pcMemberSignature)); } CONTRACTL_END; HRESULT hr; MethodHashEntry *pEntry; DWORD dwNameHashValue; _ASSERTE(pModule); _ASSERTE(*ppMemberSignature == NULL); // No method found yet *ppMethodDesc = NULL; // Have we created a hash of all the methods in the class chain? if (bmtParent->pParentMethodHash == NULL) { // There may be such a method, so we will now create a hash table to reduce the pain for // further lookups // <TODO> Are we really sure that this is worth doing? </TODO> bmtParent->pParentMethodHash = CreateMethodChainHash(bmtParent->pParentMethodTable); } // Look to see if the method exists in the parent hash pEntry = bmtParent->pParentMethodHash->Lookup(pszMemberName, dwHashName); if (pEntry == NULL) { return S_OK; // No method by this name exists in the hierarchy } // Get signature of the method we're searching for - we will need this to verify an exact name-signature match IfFailRet(pModule->GetMDImport()->GetSigOfMethodDef( mdToken, pcMemberSignature, ppMemberSignature)); // Hash value we are looking for in the chain dwNameHashValue = pEntry->m_dwHashValue; // We've found a method with the same name, but the signature may be different // Traverse the chain of all methods with this name while (1) { PCCOR_SIGNATURE pHashMethodSig = NULL; DWORD cHashMethodSig = 0; Substitution * pSubst = NULL; MethodDesc * entryDesc = pEntry->m_pDesc; MethodTable * entryMT = entryDesc->GetMethodTable(); MethodTable * entryCanonMT = entryMT->GetCanonicalMethodTable(); // If entry is in a parameterized type, its signature may need to be instantiated all the way down the chain // To understand why consider the following example: // class C<T> { void m(T) { ...body... } } // class D<T> : C<T[]> { /* inherits m with signature void m(T[]) */ } // class E<T> : D<List<T>> { void m(List<T>[]) { ... body... } } // Now suppose that we've got the signature of E::m in our hand and are comparing it with the methoddesc for C.m // They're not syntactically the same but are if you instantiate "all the way up" // Possible optimization: don't bother constructing the substitution if the signature of pEntry is closed if (entryCanonMT->GetNumGenericArgs() > 0) { MethodTable *here = GetHalfBakedMethodTable(); _ASSERTE(here->GetModule()); MethodTable *pParent = bmtParent->pParentMethodTable; for (;;) { Substitution *newSubst = new Substitution; *newSubst = here->GetSubstitutionForParent(pSubst); pSubst = newSubst; here = pParent->GetCanonicalMethodTable(); if (entryCanonMT == here) break; pParent = pParent->GetParentMethodTable(); _ASSERT(pParent != NULL); } } // Get sig of entry in hash chain entryDesc->GetSig(&pHashMethodSig, &cHashMethodSig); // Note instantiation info { hr = MetaSig::CompareMethodSigsNT(*ppMemberSignature, *pcMemberSignature, pModule, NULL, pHashMethodSig, cHashMethodSig, entryDesc->GetModule(), pSubst); if (hr == S_OK) { // Found a match *ppMethodDesc = entryDesc; // Check the constraints are consistent, // and return the result to the caller. // We do this here to avoid recalculating pSubst. *pMethodConstraintsMatch = MetaSig::CompareMethodConstraints(NULL, pModule, mdToken, pSubst, entryDesc->GetModule(), entryDesc->GetMemberDef()); } if (pSubst != NULL) { pSubst->DeleteChain(); pSubst = NULL; } if (FAILED(hr) || hr == S_OK) { return hr; } } do { // Advance to next item in the hash chain which has the same name pEntry = pEntry->m_pNext; // Next entry in the hash chain if (pEntry == NULL) { return S_OK; // End of hash chain, no match found } } while ((pEntry->m_dwHashValue != dwNameHashValue) || (strcmp(pEntry->m_pKey, pszMemberName) != 0)); } return S_OK; } //******************************************************************************* // // Find a method declaration that must reside in the scope passed in. This method cannot be called if // the reference travels to another scope. // // Protect against finding a declaration that lives within // us (the type being created) // HRESULT MethodTableBuilder::FindMethodDeclarationForMethodImpl( IMDInternalImport * pMDInternalImport, // Scope in which tkClass and tkMethod are defined. mdTypeDef tkClass, // Type that the method def resides in mdToken tkMethod, // Token that is being located (MemberRef or MethodDef) mdMethodDef * ptkMethodDef) // Method definition for Member { STANDARD_VM_CONTRACT; HRESULT hr = S_OK; PCCOR_SIGNATURE pSig; // Signature of Member DWORD cSig; LPCUTF8 szMember = NULL; // The token should be a member ref or def. If it is a ref then we need to travel // back to us hopefully. if(TypeFromToken(tkMethod) == mdtMemberRef) { // Get the parent mdToken typeref; if (FAILED(pMDInternalImport->GetParentOfMemberRef(tkMethod, &typeref))) { BAD_FORMAT_NOTHROW_ASSERT(!"Invalid MemberRef record"); IfFailRet(COR_E_TYPELOAD); } while (TypeFromToken(typeref) == mdtTypeSpec) { // Added so that method impls can refer to instantiated interfaces or classes if (FAILED(pMDInternalImport->GetSigFromToken(typeref, &cSig, &pSig))) { BAD_FORMAT_NOTHROW_ASSERT(!"Invalid TypeSpec record"); IfFailRet(COR_E_TYPELOAD); } CorElementType elemType = (CorElementType) *pSig++; // If this is a generic inst, we expect that the next elem is ELEMENT_TYPE_CLASS, // which is handled in the case below. if (elemType == ELEMENT_TYPE_GENERICINST) { elemType = (CorElementType) *pSig++; BAD_FORMAT_NOTHROW_ASSERT(elemType == ELEMENT_TYPE_CLASS); } // This covers E_T_GENERICINST and E_T_CLASS typespec formats. We don't expect // any other kinds to come through here. if (elemType == ELEMENT_TYPE_CLASS) { CorSigUncompressToken(pSig, &typeref); } else { // This is an unrecognized signature format. BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MI_BAD_SIG, mdMethodDefNil); } } // If parent is a method def then this is a varags method if (TypeFromToken(typeref) == mdtMethodDef) { mdTypeDef typeDef; IfFailRet(pMDInternalImport->GetParentToken(typeref, &typeDef)); // Make sure it is a typedef if (TypeFromToken(typeDef) != mdtTypeDef) { BAD_FORMAT_NOTHROW_ASSERT(!"MethodDef without TypeDef as Parent"); IfFailRet(COR_E_TYPELOAD); } BAD_FORMAT_NOTHROW_ASSERT(typeDef == tkClass); // This is the real method we are overriding // <TODO>@TODO: CTS this may be illegal and we could throw an error</TODO> *ptkMethodDef = typeref; } else { // Verify that the ref points back to us mdToken tkDef = mdTokenNil; // We only get here when we know the token does not reference a type // in a different scope. if(TypeFromToken(typeref) == mdtTypeRef) { LPCUTF8 pszNameSpace; LPCUTF8 pszClassName; if (FAILED(pMDInternalImport->GetNameOfTypeRef(typeref, &pszNameSpace, &pszClassName))) { IfFailRet(COR_E_TYPELOAD); } mdToken tkRes; if (FAILED(pMDInternalImport->GetResolutionScopeOfTypeRef(typeref, &tkRes))) { IfFailRet(COR_E_TYPELOAD); } hr = pMDInternalImport->FindTypeDef(pszNameSpace, pszClassName, (TypeFromToken(tkRes) == mdtTypeRef) ? tkRes : mdTokenNil, &tkDef); if(FAILED(hr)) { IfFailRet(COR_E_TYPELOAD); } } // We get a typedef when the parent of the token is a typespec to the type. else if (TypeFromToken(typeref) == mdtTypeDef) { tkDef = typeref; } else { CONSISTENCY_CHECK_MSGF(FALSE, ("Invalid methodimpl signature in class %s.", GetDebugClassName())); BuildMethodTableThrowException(COR_E_BADIMAGEFORMAT, IDS_CLASSLOAD_MI_BAD_SIG, mdMethodDefNil); } // If we required that the typedef be the same type as the current class, // and it doesn't match, we need to return a failure result. if (tkDef != tkClass) { IfFailRet(COR_E_TYPELOAD); } IfFailRet(pMDInternalImport->GetNameAndSigOfMemberRef(tkMethod, &pSig, &cSig, &szMember)); if (isCallConv( MetaSig::GetCallingConvention(Signature(pSig, cSig)), IMAGE_CEE_CS_CALLCONV_FIELD)) { return VLDTR_E_MR_BADCALLINGCONV; } hr = pMDInternalImport->FindMethodDef( tkDef, szMember, pSig, cSig, ptkMethodDef); IfFailRet(hr); } } else if (TypeFromToken(tkMethod) == mdtMethodDef) { mdTypeDef typeDef; // Verify that we are the parent hr = pMDInternalImport->GetParentToken(tkMethod, &typeDef); IfFailRet(hr); if(typeDef != tkClass) { IfFailRet(COR_E_TYPELOAD); } *ptkMethodDef = tkMethod; } else { IfFailRet(COR_E_TYPELOAD); } return hr; } //******************************************************************************* void MethodTableBuilder::bmtMethodImplInfo::AddMethod(MethodDesc* pImplDesc, MethodDesc* pDesc, mdToken mdDecl, Substitution *pDeclSubst) { LIMITED_METHOD_CONTRACT; _ASSERTE((pDesc == NULL || mdDecl == mdTokenNil) && (pDesc != NULL || mdDecl != mdTokenNil)); rgEntries[pIndex].pDeclDesc = pDesc; rgEntries[pIndex].declToken = mdDecl; rgEntries[pIndex].declSubst = *pDeclSubst; rgEntries[pIndex].pBodyDesc = pImplDesc; pIndex++; } //******************************************************************************* // Returns TRUE if tok acts as a body for any methodImpl entry. FALSE, otherwise. BOOL MethodTableBuilder::bmtMethodImplInfo::IsBody(mdToken tok) { LIMITED_METHOD_CONTRACT; CONSISTENCY_CHECK(TypeFromToken(tok) == mdtMethodDef); for (DWORD i = 0; i < pIndex; i++) { if (GetBodyMethodDesc(i)->GetMemberDef() == tok) { return TRUE; } } return FALSE; } //******************************************************************************* // Returns TRUE for success, FALSE for failure void MethodNameHash::Init(DWORD dwMaxEntries, StackingAllocator *pAllocator) { CONTRACTL { THROWS; GC_NOTRIGGER; PRECONDITION(CheckPointer(this)); } CONTRACTL_END; // Given dwMaxEntries, determine a good value for the number of hash buckets m_dwNumBuckets = (dwMaxEntries / 10); if (m_dwNumBuckets < 5) m_dwNumBuckets = 5; S_UINT32 scbMemory = (S_UINT32(m_dwNumBuckets) * S_UINT32(sizeof(MethodHashEntry*))) + (S_UINT32(dwMaxEntries) * S_UINT32(sizeof(MethodHashEntry))); if (scbMemory.IsOverflow()) { ThrowHR(E_INVALIDARG); } if (pAllocator) { m_pMemoryStart = (BYTE*)pAllocator->Alloc(scbMemory); } else { // We're given the number of hash table entries we're going to insert, // so we can allocate the appropriate size m_pMemoryStart = new BYTE[scbMemory.Value()]; } INDEBUG(m_pDebugEndMemory = m_pMemoryStart + scbMemory.Value();) // Current alloc ptr m_pMemory = m_pMemoryStart; // Allocate the buckets out of the alloc ptr m_pBuckets = (MethodHashEntry**) m_pMemory; m_pMemory += sizeof(MethodHashEntry*)*m_dwNumBuckets; // Buckets all point to empty lists to begin with memset(m_pBuckets, 0, scbMemory.Value()); } //******************************************************************************* // Insert new entry at head of list void MethodNameHash::Insert(LPCUTF8 pszName, MethodDesc *pDesc) { LIMITED_METHOD_CONTRACT; DWORD dwHash = HashStringA(pszName); DWORD dwBucket = dwHash % m_dwNumBuckets; MethodHashEntry*pNewEntry; pNewEntry = (MethodHashEntry *) m_pMemory; m_pMemory += sizeof(MethodHashEntry); _ASSERTE(m_pMemory <= m_pDebugEndMemory); // Insert at head of bucket chain pNewEntry->m_pNext = m_pBuckets[dwBucket]; pNewEntry->m_pDesc = pDesc; pNewEntry->m_dwHashValue = dwHash; pNewEntry->m_pKey = pszName; m_pBuckets[dwBucket] = pNewEntry; } //******************************************************************************* // Return the first MethodHashEntry with this name, or NULL if there is no such entry MethodHashEntry *MethodNameHash::Lookup(LPCUTF8 pszName, DWORD dwHash) { STATIC_CONTRACT_NOTHROW; STATIC_CONTRACT_GC_NOTRIGGER; STATIC_CONTRACT_FORBID_FAULT; if (!dwHash) dwHash = HashStringA(pszName); DWORD dwBucket = dwHash % m_dwNumBuckets; MethodHashEntry*pSearch; for (pSearch = m_pBuckets[dwBucket]; pSearch; pSearch = pSearch->m_pNext) { if (pSearch->m_dwHashValue == dwHash && !strcmp(pSearch->m_pKey, pszName)) return pSearch; } return NULL; } //******************************************************************************* // // Create a hash of all methods in this class. The hash is from method name to MethodDesc. // MethodNameHash *MethodTableBuilder::CreateMethodChainHash(MethodTable *pMT) { STANDARD_VM_CONTRACT; MethodNameHash *pHash = new (GetStackingAllocator()) MethodNameHash(); pHash->Init(pMT->GetNumVirtuals(), GetStackingAllocator()); MethodTable::MethodIterator it(pMT); for (;it.IsValid(); it.Next()) { if (it.IsVirtual()) { MethodDesc *pImplDesc = it.GetMethodDesc(); CONSISTENCY_CHECK(CheckPointer(pImplDesc)); MethodDesc *pDeclDesc = it.GetDeclMethodDesc(); CONSISTENCY_CHECK(CheckPointer(pDeclDesc)); CONSISTENCY_CHECK(pMT->IsInterface() || !pDeclDesc->IsInterface()); pHash->Insert(pDeclDesc->GetNameOnNonArrayClass(), pDeclDesc); } } // Success return pHash; } //******************************************************************************* void MethodTableBuilder::SetBMTData( bmtErrorInfo *bmtError, bmtProperties *bmtProp, bmtVtable *bmtVT, bmtParentInfo *bmtParent, bmtInterfaceInfo *bmtInterface, bmtMethodInfo *bmtMethod, bmtTypeInfo *bmtType, bmtMethodImplInfo *bmtMethodImpl) { LIMITED_METHOD_CONTRACT; this->bmtError = bmtError; this->bmtProp = bmtProp; this->bmtVT = bmtVT; this->bmtParent = bmtParent; this->bmtInterface = bmtInterface; this->bmtMethod = bmtMethod; this->bmtType = bmtType; this->bmtMethodImpl = bmtMethodImpl; } //******************************************************************************* void MethodTableBuilder::NullBMTData() { LIMITED_METHOD_CONTRACT; this->bmtError = NULL; this->bmtProp = NULL; this->bmtVT = NULL; this->bmtParent = NULL; this->bmtInterface = NULL; this->bmtMethod = NULL; this->bmtType = NULL; this->bmtMethodImpl = NULL; } //******************************************************************************* /*static*/ VOID DECLSPEC_NORETURN MethodTableBuilder::BuildMethodTableThrowException( HRESULT hr, const bmtErrorInfo & bmtError) { STANDARD_VM_CONTRACT; LPCUTF8 pszClassName, pszNameSpace; if (FAILED(bmtError.pModule->GetMDImport()->GetNameOfTypeDef(bmtError.cl, &pszClassName, &pszNameSpace))) { pszClassName = pszNameSpace = "Invalid TypeDef record"; } if (IsNilToken(bmtError.dMethodDefInError) && bmtError.szMethodNameForError == NULL) { if (hr == E_OUTOFMEMORY) COMPlusThrowOM(); else bmtError.pModule->GetAssembly()->ThrowTypeLoadException(pszNameSpace, pszClassName, bmtError.resIDWhy); } else { LPCUTF8 szMethodName; if (bmtError.szMethodNameForError == NULL) { if (FAILED((bmtError.pModule->GetMDImport())->GetNameOfMethodDef(bmtError.dMethodDefInError, &szMethodName))) { szMethodName = "Invalid MethodDef record"; } } else szMethodName = bmtError.szMethodNameForError; bmtError.pModule->GetAssembly()->ThrowTypeLoadException(pszNameSpace, pszClassName, szMethodName, bmtError.resIDWhy); } } //******************************************************************************* /* static */ int __cdecl MethodTableBuilder::bmtMethodImplInfo::MethodImplTokenPair::Compare( const void *elem1, const void *elem2) { STATIC_CONTRACT_LEAF; MethodImplTokenPair *e1 = (MethodImplTokenPair *)elem1; MethodImplTokenPair *e2 = (MethodImplTokenPair *)elem2; if (e1->methodBody < e2->methodBody) return -1; else if (e1->methodBody > e2->methodBody) return 1; else if (e1->methodDecl < e2->methodDecl) return -1; else if (e1->methodDecl > e2->methodDecl) return 1; else return 0; } //******************************************************************************* /* static */ BOOL MethodTableBuilder::bmtMethodImplInfo::MethodImplTokenPair::Equal( const MethodImplTokenPair *elem1, const MethodImplTokenPair *elem2) { STATIC_CONTRACT_LEAF; return ((elem1->methodBody == elem2->methodBody) && (elem1->methodDecl == elem2->methodDecl)); } }; // namespace ClassCompat #endif // !DACCESS_COMPILE
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/objectlist.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "objectlist.h" #ifndef DACCESS_COMPILE ObjectList::ObjectList( void ) : freeIndexHead_( INVALID_COMPRESSEDSTACK_INDEX ), listLock_( CrstObjectList, CrstFlags(CRST_UNSAFE_SAMELEVEL | CRST_UNSAFE_ANYMODE) ) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; } #endif #define MAX_LOOP 2 DWORD ObjectList::AddToList( PVOID ptr ) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(ptr)); } CONTRACTL_END; // sanity check that the pointer low bit is not set _ASSERTE( (((DWORD)(size_t)ptr & 0x1) == 0) && "Invalid pointer" ); DWORD retval = INVALID_COMPRESSEDSTACK_INDEX; CrstHolder ch( &listLock_ ); // If there is an entry in the free list, simply use it. if (this->freeIndexHead_ != INVALID_COMPRESSEDSTACK_INDEX) { _ASSERTE( this->listLock_.OwnedByCurrentThread() ); // grab the head of the list retval = (this->freeIndexHead_ >> 1); DWORD nextFreeIndex = (DWORD)(size_t)this->allEntries_.Get( retval ); // index in use, pointer values have low bit as 0 _ASSERTE( ((nextFreeIndex & 0x01) == 1) && "The free list points to an index that is in use" ); // update the head of the list with the next free index stored in the array list this->freeIndexHead_ = nextFreeIndex; // store the pointer this->allEntries_.Set( retval, ptr); } // Otherwise we place this new entry at that end of the list. else { _ASSERTE( this->listLock_.OwnedByCurrentThread() ); retval = this->allEntries_.GetCount(); IfFailThrow(this->allEntries_.Append(ptr)); } _ASSERTE( retval != INVALID_COMPRESSEDSTACK_INDEX ); return retval; } void ObjectList::RemoveFromList( PVOID ptr ) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; PRECONDITION(CheckPointer(ptr)); } CONTRACTL_END; // sanity check that the pointer low bit is not set _ASSERTE( (((DWORD)(size_t)ptr & 0x1) == 0) && "Invalid pointer" ); DWORD index = INVALID_COMPRESSEDSTACK_INDEX; CrstHolder ch( &listLock_ ); ObjectList::Iterator iter = Iterate(); while (iter.Next()) { if (iter.GetElement() == ptr) { index = iter.GetIndex(); break; } } if (index == INVALID_COMPRESSEDSTACK_INDEX) { _ASSERTE( FALSE && "Unable to find object" ); } else { // add the index to the free list ( shift the freeIndex left and set the low bit) this->allEntries_.Set( index, (PVOID)(size_t)(this->freeIndexHead_)); this-> freeIndexHead_ = ((index<<1) | 0x1); } } void ObjectList::RemoveFromList( DWORD index, PVOID ptr ) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(ptr)); } CONTRACTL_END; CrstHolder ch( &listLock_ ); // sanity check that the pointer low bit is not set _ASSERTE( (((DWORD)(size_t)ptr & 0x1) == 0) && "Invalid pointer" ); _ASSERTE( index < this->allEntries_.GetCount() ); _ASSERTE( this->allEntries_.Get( index ) == ptr && "Index tracking failed for this object" ); // add the index to the free list ( shift the freeIndex left and set the low bit) this->allEntries_.Set( index, (PVOID)(size_t)(this->freeIndexHead_)); this-> freeIndexHead_ = ((index<<1) | 0x1); } PVOID ObjectList::Get( DWORD index ) { LIMITED_METHOD_CONTRACT; return this->allEntries_.Get( index ); } UnsynchronizedBlockAllocator::UnsynchronizedBlockAllocator( size_t blockSize ) : blockSize_( blockSize ), offset_( blockSize ), index_( INVALID_COMPRESSEDSTACK_INDEX ) { LIMITED_METHOD_CONTRACT; // We start off the offset at the block size to force the first // allocation to create a new (first) block } UnsynchronizedBlockAllocator::~UnsynchronizedBlockAllocator( void ) { LIMITED_METHOD_CONTRACT; ArrayList::Iterator iter = this->blockList_.Iterate(); while (iter.Next()) { delete [] (BYTE *) iter.GetElement(); } } PVOID UnsynchronizedBlockAllocator::Allocate( size_t size ) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; _ASSERTE( size <= this->blockSize_ ); NewHolder<BYTE> buffer; S_SIZE_T sizecheck = S_SIZE_T(this->offset_) + S_SIZE_T(size) ; if( sizecheck.IsOverflow() ) { ThrowOutOfMemory(); } if (sizecheck.Value() > this->blockSize_) { buffer.Assign( new BYTE[this->blockSize_] ); IfFailThrow(this->blockList_.Append( buffer )); buffer.SuppressRelease(); ++this->index_; this->offset_ = 0; } else { buffer.Assign( (BYTE*)this->blockList_.Get( index_ ) ); buffer.SuppressRelease(); } void* retval = buffer.GetValue() + this->offset_; this->offset_ += size; return retval; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "objectlist.h" #ifndef DACCESS_COMPILE ObjectList::ObjectList( void ) : freeIndexHead_( INVALID_COMPRESSEDSTACK_INDEX ), listLock_( CrstObjectList, CrstFlags(CRST_UNSAFE_SAMELEVEL | CRST_UNSAFE_ANYMODE) ) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; } #endif #define MAX_LOOP 2 DWORD ObjectList::AddToList( PVOID ptr ) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(ptr)); } CONTRACTL_END; // sanity check that the pointer low bit is not set _ASSERTE( (((DWORD)(size_t)ptr & 0x1) == 0) && "Invalid pointer" ); DWORD retval = INVALID_COMPRESSEDSTACK_INDEX; CrstHolder ch( &listLock_ ); // If there is an entry in the free list, simply use it. if (this->freeIndexHead_ != INVALID_COMPRESSEDSTACK_INDEX) { _ASSERTE( this->listLock_.OwnedByCurrentThread() ); // grab the head of the list retval = (this->freeIndexHead_ >> 1); DWORD nextFreeIndex = (DWORD)(size_t)this->allEntries_.Get( retval ); // index in use, pointer values have low bit as 0 _ASSERTE( ((nextFreeIndex & 0x01) == 1) && "The free list points to an index that is in use" ); // update the head of the list with the next free index stored in the array list this->freeIndexHead_ = nextFreeIndex; // store the pointer this->allEntries_.Set( retval, ptr); } // Otherwise we place this new entry at that end of the list. else { _ASSERTE( this->listLock_.OwnedByCurrentThread() ); retval = this->allEntries_.GetCount(); IfFailThrow(this->allEntries_.Append(ptr)); } _ASSERTE( retval != INVALID_COMPRESSEDSTACK_INDEX ); return retval; } void ObjectList::RemoveFromList( PVOID ptr ) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_ANY; PRECONDITION(CheckPointer(ptr)); } CONTRACTL_END; // sanity check that the pointer low bit is not set _ASSERTE( (((DWORD)(size_t)ptr & 0x1) == 0) && "Invalid pointer" ); DWORD index = INVALID_COMPRESSEDSTACK_INDEX; CrstHolder ch( &listLock_ ); ObjectList::Iterator iter = Iterate(); while (iter.Next()) { if (iter.GetElement() == ptr) { index = iter.GetIndex(); break; } } if (index == INVALID_COMPRESSEDSTACK_INDEX) { _ASSERTE( FALSE && "Unable to find object" ); } else { // add the index to the free list ( shift the freeIndex left and set the low bit) this->allEntries_.Set( index, (PVOID)(size_t)(this->freeIndexHead_)); this-> freeIndexHead_ = ((index<<1) | 0x1); } } void ObjectList::RemoveFromList( DWORD index, PVOID ptr ) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(ptr)); } CONTRACTL_END; CrstHolder ch( &listLock_ ); // sanity check that the pointer low bit is not set _ASSERTE( (((DWORD)(size_t)ptr & 0x1) == 0) && "Invalid pointer" ); _ASSERTE( index < this->allEntries_.GetCount() ); _ASSERTE( this->allEntries_.Get( index ) == ptr && "Index tracking failed for this object" ); // add the index to the free list ( shift the freeIndex left and set the low bit) this->allEntries_.Set( index, (PVOID)(size_t)(this->freeIndexHead_)); this-> freeIndexHead_ = ((index<<1) | 0x1); } PVOID ObjectList::Get( DWORD index ) { LIMITED_METHOD_CONTRACT; return this->allEntries_.Get( index ); } UnsynchronizedBlockAllocator::UnsynchronizedBlockAllocator( size_t blockSize ) : blockSize_( blockSize ), offset_( blockSize ), index_( INVALID_COMPRESSEDSTACK_INDEX ) { LIMITED_METHOD_CONTRACT; // We start off the offset at the block size to force the first // allocation to create a new (first) block } UnsynchronizedBlockAllocator::~UnsynchronizedBlockAllocator( void ) { LIMITED_METHOD_CONTRACT; ArrayList::Iterator iter = this->blockList_.Iterate(); while (iter.Next()) { delete [] (BYTE *) iter.GetElement(); } } PVOID UnsynchronizedBlockAllocator::Allocate( size_t size ) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; _ASSERTE( size <= this->blockSize_ ); NewHolder<BYTE> buffer; S_SIZE_T sizecheck = S_SIZE_T(this->offset_) + S_SIZE_T(size) ; if( sizecheck.IsOverflow() ) { ThrowOutOfMemory(); } if (sizecheck.Value() > this->blockSize_) { buffer.Assign( new BYTE[this->blockSize_] ); IfFailThrow(this->blockList_.Append( buffer )); buffer.SuppressRelease(); ++this->index_; this->offset_ = 0; } else { buffer.Assign( (BYTE*)this->blockList_.Get( index_ ) ); buffer.SuppressRelease(); } void* retval = buffer.GetValue() + this->offset_; this->offset_ += size; return retval; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/threading/SleepEx/test1/test1.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*===================================================================== ** ** Source: test1.c ** ** Purpose: Tests that SleepEx correctly sleeps for a given amount of time, ** regardless of the alertable flag. ** ** **===================================================================*/ #include <palsuite.h> typedef struct { DWORD SleepTime; BOOL Alertable; } testCase; PALTEST(threading_SleepEx_test1_paltest_sleepex_test1, "threading/SleepEx/test1/paltest_sleepex_test1") { /* Milliseconds of error which are acceptable Function execution time, etc. */ DWORD AcceptableTimeError = 150; testCase testCases[] = { {0, FALSE}, {50, FALSE}, {100, FALSE}, {500, FALSE}, {2000, FALSE}, {0, TRUE}, {50, TRUE}, {100, TRUE}, {500, TRUE}, {2000, TRUE}, }; UINT64 OldTimeStamp; UINT64 NewTimeStamp; DWORD MaxDelta; DWORD TimeDelta; DWORD i; if (0 != (PAL_Initialize(argc, argv))) { return FAIL; } LARGE_INTEGER performanceFrequency; if (!QueryPerformanceFrequency(&performanceFrequency)) { return FAIL; } for (i = 0; i<sizeof(testCases) / sizeof(testCases[0]); i++) { OldTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); SleepEx(testCases[i].SleepTime, testCases[i].Alertable); NewTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); TimeDelta = NewTimeStamp - OldTimeStamp; /* For longer intervals use a 10 percent tolerance */ if ((testCases[i].SleepTime * 0.1) > AcceptableTimeError) { MaxDelta = testCases[i].SleepTime + (DWORD)(testCases[i].SleepTime * 0.1); } else { MaxDelta = testCases[i].SleepTime + AcceptableTimeError; } if (TimeDelta < testCases[i].SleepTime || TimeDelta > MaxDelta) { Fail("The sleep function slept for %d ms when it should have " "slept for %d ms\n", TimeDelta, testCases[i].SleepTime); } } 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: test1.c ** ** Purpose: Tests that SleepEx correctly sleeps for a given amount of time, ** regardless of the alertable flag. ** ** **===================================================================*/ #include <palsuite.h> typedef struct { DWORD SleepTime; BOOL Alertable; } testCase; PALTEST(threading_SleepEx_test1_paltest_sleepex_test1, "threading/SleepEx/test1/paltest_sleepex_test1") { /* Milliseconds of error which are acceptable Function execution time, etc. */ DWORD AcceptableTimeError = 150; testCase testCases[] = { {0, FALSE}, {50, FALSE}, {100, FALSE}, {500, FALSE}, {2000, FALSE}, {0, TRUE}, {50, TRUE}, {100, TRUE}, {500, TRUE}, {2000, TRUE}, }; UINT64 OldTimeStamp; UINT64 NewTimeStamp; DWORD MaxDelta; DWORD TimeDelta; DWORD i; if (0 != (PAL_Initialize(argc, argv))) { return FAIL; } LARGE_INTEGER performanceFrequency; if (!QueryPerformanceFrequency(&performanceFrequency)) { return FAIL; } for (i = 0; i<sizeof(testCases) / sizeof(testCases[0]); i++) { OldTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); SleepEx(testCases[i].SleepTime, testCases[i].Alertable); NewTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); TimeDelta = NewTimeStamp - OldTimeStamp; /* For longer intervals use a 10 percent tolerance */ if ((testCases[i].SleepTime * 0.1) > AcceptableTimeError) { MaxDelta = testCases[i].SleepTime + (DWORD)(testCases[i].SleepTime * 0.1); } else { MaxDelta = testCases[i].SleepTime + AcceptableTimeError; } if (TimeDelta < testCases[i].SleepTime || TimeDelta > MaxDelta) { Fail("The sleep function slept for %d ms when it should have " "slept for %d ms\n", TimeDelta, testCases[i].SleepTime); } } PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/cachelinealloc.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //--------------------------------------------------------------------------- // CCacheLineAllocator // // // This file dImplements the CCacheLineAllocator class. // // @comm // // Notes: // The CacheLineAllocator maintains a pool of free CacheLines // // The CacheLine Allocator provides static member functions // GetCacheLine and FreeCacheLine, //--------------------------------------------------------------------------- #include "common.h" #include <stddef.h> #include "cachelinealloc.h" #include "threads.h" #include "excep.h" /////////////////////////////////////////////////////// // CCacheLineAllocator::CCacheLineAllocator() // ////////////////////////////////////////////////////// CCacheLineAllocator::CCacheLineAllocator() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; m_freeList32.Init(); m_freeList64.Init(); m_registryList.Init(); } /////////////////////////////////////////////////////// // void CCacheLineAllocator::~CCacheLineAllocator() // ////////////////////////////////////////////////////// CCacheLineAllocator::~CCacheLineAllocator() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; LPCacheLine tempPtr = NULL; while((tempPtr = m_registryList.RemoveHead()) != NULL) { for (int i =0; i < CacheLine::numEntries; i++) { if(tempPtr->m_pAddr[i] != NULL) { if (!g_fProcessDetach) VFree(tempPtr->m_pAddr[i]); } } delete tempPtr; } } /////////////////////////////////////////////////////// // static void *CCacheLineAllocator::VAlloc(ULONG cbSize) // ////////////////////////////////////////////////////// void *CCacheLineAllocator::VAlloc(ULONG cbSize) { CONTRACT(void*) { NOTHROW; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; // helper to call virtual free to release memory int i =0; void* pv = ClrVirtualAlloc (NULL, cbSize, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE); if (pv != NULL) { LPCacheLine tempPtr = m_registryList.GetHead(); if (tempPtr == NULL) { goto LNew; } for (i =0; i < CacheLine::numEntries; i++) { if(tempPtr->m_pAddr[i] == NULL) { tempPtr->m_pAddr[i] = pv; RETURN pv; } } LNew: // initialize the bucket before returning tempPtr = new (nothrow) CacheLine(); if (tempPtr != NULL) { tempPtr->Init64(); tempPtr->m_pAddr[0] = pv; m_registryList.InsertHead(tempPtr); } else { // couldn't find space to register this page ClrVirtualFree(pv, 0, MEM_RELEASE); RETURN NULL; } } RETURN pv; } /////////////////////////////////////////////////////// // void CCacheLineAllocator::VFree(void* pv) // ////////////////////////////////////////////////////// void CCacheLineAllocator::VFree(void* pv) { BOOL bRes = FALSE; CONTRACT_VOID { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(pv)); POSTCONDITION(bRes); } CONTRACT_END; // helper to call virtual free to release memory bRes = ClrVirtualFree (pv, 0, MEM_RELEASE); RETURN_VOID; } /////////////////////////////////////////////////////// // void *CCacheLineAllocator::GetCacheLine() // ////////////////////////////////////////////////////// //WARNING: must have a lock when calling this function void *CCacheLineAllocator::GetCacheLine64() { CONTRACT(void*) { NOTHROW; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; LPCacheLine tempPtr = m_freeList64.RemoveHead(); if (tempPtr != NULL) { // initialize the bucket before returning tempPtr->Init64(); RETURN tempPtr; } #define AllocSize (4096*16) ////////////////////////////////' /// Virtual Allocation for some more cache lines BYTE* ptr = (BYTE*)VAlloc(AllocSize); if(!ptr) RETURN NULL; tempPtr = (LPCacheLine)ptr; // Link all the buckets tempPtr = tempPtr+1; LPCacheLine maxPtr = (LPCacheLine)(ptr + AllocSize); while(tempPtr < maxPtr) { m_freeList64.InsertHead(tempPtr); tempPtr++; } // return the first block tempPtr = (LPCacheLine)ptr; tempPtr->Init64(); RETURN tempPtr; } /////////////////////////////////////////////////////// // void *CCacheLineAllocator::GetCacheLine32() // ////////////////////////////////////////////////////// //WARNING: must have a lock when calling this function void *CCacheLineAllocator::GetCacheLine32() { CONTRACT(void*) { NOTHROW; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; LPCacheLine tempPtr = m_freeList32.RemoveHead(); if (tempPtr != NULL) { // initialize the bucket before returning tempPtr->Init32(); RETURN tempPtr; } tempPtr = (LPCacheLine)GetCacheLine64(); if (tempPtr != NULL) { m_freeList32.InsertHead(tempPtr); tempPtr = (LPCacheLine)((BYTE *)tempPtr+32); } RETURN tempPtr; } /////////////////////////////////////////////////////// // void CCacheLineAllocator::FreeCacheLine64(void * tempPtr) // ////////////////////////////////////////////////////// //WARNING: must have a lock when calling this function void CCacheLineAllocator::FreeCacheLine64(void * tempPtr) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(tempPtr)); } CONTRACTL_END; LPCacheLine pCLine = (LPCacheLine )tempPtr; m_freeList64.InsertHead(pCLine); } /////////////////////////////////////////////////////// // void CCacheLineAllocator::FreeCacheLine32(void * tempPtr) // ////////////////////////////////////////////////////// //WARNING: must have a lock when calling this function void CCacheLineAllocator::FreeCacheLine32(void * tempPtr) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(tempPtr)); } CONTRACTL_END; LPCacheLine pCLine = (LPCacheLine )tempPtr; m_freeList32.InsertHead(pCLine); }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //--------------------------------------------------------------------------- // CCacheLineAllocator // // // This file dImplements the CCacheLineAllocator class. // // @comm // // Notes: // The CacheLineAllocator maintains a pool of free CacheLines // // The CacheLine Allocator provides static member functions // GetCacheLine and FreeCacheLine, //--------------------------------------------------------------------------- #include "common.h" #include <stddef.h> #include "cachelinealloc.h" #include "threads.h" #include "excep.h" /////////////////////////////////////////////////////// // CCacheLineAllocator::CCacheLineAllocator() // ////////////////////////////////////////////////////// CCacheLineAllocator::CCacheLineAllocator() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; m_freeList32.Init(); m_freeList64.Init(); m_registryList.Init(); } /////////////////////////////////////////////////////// // void CCacheLineAllocator::~CCacheLineAllocator() // ////////////////////////////////////////////////////// CCacheLineAllocator::~CCacheLineAllocator() { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; LPCacheLine tempPtr = NULL; while((tempPtr = m_registryList.RemoveHead()) != NULL) { for (int i =0; i < CacheLine::numEntries; i++) { if(tempPtr->m_pAddr[i] != NULL) { if (!g_fProcessDetach) VFree(tempPtr->m_pAddr[i]); } } delete tempPtr; } } /////////////////////////////////////////////////////// // static void *CCacheLineAllocator::VAlloc(ULONG cbSize) // ////////////////////////////////////////////////////// void *CCacheLineAllocator::VAlloc(ULONG cbSize) { CONTRACT(void*) { NOTHROW; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; // helper to call virtual free to release memory int i =0; void* pv = ClrVirtualAlloc (NULL, cbSize, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE); if (pv != NULL) { LPCacheLine tempPtr = m_registryList.GetHead(); if (tempPtr == NULL) { goto LNew; } for (i =0; i < CacheLine::numEntries; i++) { if(tempPtr->m_pAddr[i] == NULL) { tempPtr->m_pAddr[i] = pv; RETURN pv; } } LNew: // initialize the bucket before returning tempPtr = new (nothrow) CacheLine(); if (tempPtr != NULL) { tempPtr->Init64(); tempPtr->m_pAddr[0] = pv; m_registryList.InsertHead(tempPtr); } else { // couldn't find space to register this page ClrVirtualFree(pv, 0, MEM_RELEASE); RETURN NULL; } } RETURN pv; } /////////////////////////////////////////////////////// // void CCacheLineAllocator::VFree(void* pv) // ////////////////////////////////////////////////////// void CCacheLineAllocator::VFree(void* pv) { BOOL bRes = FALSE; CONTRACT_VOID { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(pv)); POSTCONDITION(bRes); } CONTRACT_END; // helper to call virtual free to release memory bRes = ClrVirtualFree (pv, 0, MEM_RELEASE); RETURN_VOID; } /////////////////////////////////////////////////////// // void *CCacheLineAllocator::GetCacheLine() // ////////////////////////////////////////////////////// //WARNING: must have a lock when calling this function void *CCacheLineAllocator::GetCacheLine64() { CONTRACT(void*) { NOTHROW; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; LPCacheLine tempPtr = m_freeList64.RemoveHead(); if (tempPtr != NULL) { // initialize the bucket before returning tempPtr->Init64(); RETURN tempPtr; } #define AllocSize (4096*16) ////////////////////////////////' /// Virtual Allocation for some more cache lines BYTE* ptr = (BYTE*)VAlloc(AllocSize); if(!ptr) RETURN NULL; tempPtr = (LPCacheLine)ptr; // Link all the buckets tempPtr = tempPtr+1; LPCacheLine maxPtr = (LPCacheLine)(ptr + AllocSize); while(tempPtr < maxPtr) { m_freeList64.InsertHead(tempPtr); tempPtr++; } // return the first block tempPtr = (LPCacheLine)ptr; tempPtr->Init64(); RETURN tempPtr; } /////////////////////////////////////////////////////// // void *CCacheLineAllocator::GetCacheLine32() // ////////////////////////////////////////////////////// //WARNING: must have a lock when calling this function void *CCacheLineAllocator::GetCacheLine32() { CONTRACT(void*) { NOTHROW; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(CONTRACT_RETURN NULL); POSTCONDITION(CheckPointer(RETVAL, NULL_OK)); } CONTRACT_END; LPCacheLine tempPtr = m_freeList32.RemoveHead(); if (tempPtr != NULL) { // initialize the bucket before returning tempPtr->Init32(); RETURN tempPtr; } tempPtr = (LPCacheLine)GetCacheLine64(); if (tempPtr != NULL) { m_freeList32.InsertHead(tempPtr); tempPtr = (LPCacheLine)((BYTE *)tempPtr+32); } RETURN tempPtr; } /////////////////////////////////////////////////////// // void CCacheLineAllocator::FreeCacheLine64(void * tempPtr) // ////////////////////////////////////////////////////// //WARNING: must have a lock when calling this function void CCacheLineAllocator::FreeCacheLine64(void * tempPtr) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(tempPtr)); } CONTRACTL_END; LPCacheLine pCLine = (LPCacheLine )tempPtr; m_freeList64.InsertHead(pCLine); } /////////////////////////////////////////////////////// // void CCacheLineAllocator::FreeCacheLine32(void * tempPtr) // ////////////////////////////////////////////////////// //WARNING: must have a lock when calling this function void CCacheLineAllocator::FreeCacheLine32(void * tempPtr) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; PRECONDITION(CheckPointer(tempPtr)); } CONTRACTL_END; LPCacheLine pCLine = (LPCacheLine )tempPtr; m_freeList32.InsertHead(pCLine); }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/inc/livedatatarget.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // // Define a Data-Target for a live process. // //***************************************************************************** #ifndef _LIVEPROC_DATATARGET_H_ #define _LIVEPROC_DATATARGET_H_ // Defines the Data-Target and other public interfaces. // Does not include IXClrData definitions. #include <clrdata.h> #ifndef TARGET_UNIX //--------------------------------------------------------------------------------------- // // Provides a simple legacy data-target implementation for a live, local, process. // Note that in arrowhead, most debuggers use ICorDebugDataTarget, and we have // implementations of this in MDbg. // class LiveProcDataTarget : public ICLRDataTarget { public: LiveProcDataTarget(HANDLE process, DWORD processId, CLRDATA_ADDRESS baseAddressOfEngine = NULL); // // IUnknown. // // This class is intended to be kept on the stack // or as a member and does not maintain a refcount. // STDMETHOD(QueryInterface)( THIS_ IN REFIID InterfaceId, OUT PVOID* Interface ); STDMETHOD_(ULONG, AddRef)( THIS ); STDMETHOD_(ULONG, Release)( THIS ); // // ICLRDataTarget. // virtual HRESULT STDMETHODCALLTYPE GetMachineType( /* [out] */ ULONG32 *machine); virtual HRESULT STDMETHODCALLTYPE GetPointerSize( /* [out] */ ULONG32 *size); virtual HRESULT STDMETHODCALLTYPE GetImageBase( /* [string][in] */ LPCWSTR name, /* [out] */ CLRDATA_ADDRESS *base); virtual HRESULT STDMETHODCALLTYPE ReadVirtual( /* [in] */ CLRDATA_ADDRESS address, /* [length_is][size_is][out] */ PBYTE buffer, /* [in] */ ULONG32 request, /* [optional][out] */ ULONG32 *done); virtual HRESULT STDMETHODCALLTYPE WriteVirtual( /* [in] */ CLRDATA_ADDRESS address, /* [size_is][in] */ PBYTE buffer, /* [in] */ ULONG32 request, /* [optional][out] */ ULONG32 *done); virtual HRESULT STDMETHODCALLTYPE GetTLSValue( /* [in] */ ULONG32 threadID, /* [in] */ ULONG32 index, /* [out] */ CLRDATA_ADDRESS* value); virtual HRESULT STDMETHODCALLTYPE SetTLSValue( /* [in] */ ULONG32 threadID, /* [in] */ ULONG32 index, /* [in] */ CLRDATA_ADDRESS value); virtual HRESULT STDMETHODCALLTYPE GetCurrentThreadID( /* [out] */ ULONG32* threadID); virtual HRESULT STDMETHODCALLTYPE GetThreadContext( /* [in] */ ULONG32 threadID, /* [in] */ ULONG32 contextFlags, /* [in] */ ULONG32 contextSize, /* [out, size_is(contextSize)] */ PBYTE context); virtual HRESULT STDMETHODCALLTYPE SetThreadContext( /* [in] */ ULONG32 threadID, /* [in] */ ULONG32 contextSize, /* [in, size_is(contextSize)] */ PBYTE context); virtual HRESULT STDMETHODCALLTYPE Request( /* [in] */ ULONG32 reqCode, /* [in] */ ULONG32 inBufferSize, /* [size_is][in] */ BYTE *inBuffer, /* [in] */ ULONG32 outBufferSize, /* [size_is][out] */ BYTE *outBuffer); private: HANDLE m_process; DWORD m_processId; CLRDATA_ADDRESS m_baseAddressOfEngine; }; #endif // TARGET_UNIX #endif // _LIVEPROC_DATATARGET_H_
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // // Define a Data-Target for a live process. // //***************************************************************************** #ifndef _LIVEPROC_DATATARGET_H_ #define _LIVEPROC_DATATARGET_H_ // Defines the Data-Target and other public interfaces. // Does not include IXClrData definitions. #include <clrdata.h> #ifndef TARGET_UNIX //--------------------------------------------------------------------------------------- // // Provides a simple legacy data-target implementation for a live, local, process. // Note that in arrowhead, most debuggers use ICorDebugDataTarget, and we have // implementations of this in MDbg. // class LiveProcDataTarget : public ICLRDataTarget { public: LiveProcDataTarget(HANDLE process, DWORD processId, CLRDATA_ADDRESS baseAddressOfEngine = NULL); // // IUnknown. // // This class is intended to be kept on the stack // or as a member and does not maintain a refcount. // STDMETHOD(QueryInterface)( THIS_ IN REFIID InterfaceId, OUT PVOID* Interface ); STDMETHOD_(ULONG, AddRef)( THIS ); STDMETHOD_(ULONG, Release)( THIS ); // // ICLRDataTarget. // virtual HRESULT STDMETHODCALLTYPE GetMachineType( /* [out] */ ULONG32 *machine); virtual HRESULT STDMETHODCALLTYPE GetPointerSize( /* [out] */ ULONG32 *size); virtual HRESULT STDMETHODCALLTYPE GetImageBase( /* [string][in] */ LPCWSTR name, /* [out] */ CLRDATA_ADDRESS *base); virtual HRESULT STDMETHODCALLTYPE ReadVirtual( /* [in] */ CLRDATA_ADDRESS address, /* [length_is][size_is][out] */ PBYTE buffer, /* [in] */ ULONG32 request, /* [optional][out] */ ULONG32 *done); virtual HRESULT STDMETHODCALLTYPE WriteVirtual( /* [in] */ CLRDATA_ADDRESS address, /* [size_is][in] */ PBYTE buffer, /* [in] */ ULONG32 request, /* [optional][out] */ ULONG32 *done); virtual HRESULT STDMETHODCALLTYPE GetTLSValue( /* [in] */ ULONG32 threadID, /* [in] */ ULONG32 index, /* [out] */ CLRDATA_ADDRESS* value); virtual HRESULT STDMETHODCALLTYPE SetTLSValue( /* [in] */ ULONG32 threadID, /* [in] */ ULONG32 index, /* [in] */ CLRDATA_ADDRESS value); virtual HRESULT STDMETHODCALLTYPE GetCurrentThreadID( /* [out] */ ULONG32* threadID); virtual HRESULT STDMETHODCALLTYPE GetThreadContext( /* [in] */ ULONG32 threadID, /* [in] */ ULONG32 contextFlags, /* [in] */ ULONG32 contextSize, /* [out, size_is(contextSize)] */ PBYTE context); virtual HRESULT STDMETHODCALLTYPE SetThreadContext( /* [in] */ ULONG32 threadID, /* [in] */ ULONG32 contextSize, /* [in, size_is(contextSize)] */ PBYTE context); virtual HRESULT STDMETHODCALLTYPE Request( /* [in] */ ULONG32 reqCode, /* [in] */ ULONG32 inBufferSize, /* [size_is][in] */ BYTE *inBuffer, /* [in] */ ULONG32 outBufferSize, /* [size_is][out] */ BYTE *outBuffer); private: HANDLE m_process; DWORD m_processId; CLRDATA_ADDRESS m_baseAddressOfEngine; }; #endif // TARGET_UNIX #endif // _LIVEPROC_DATATARGET_H_
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/inc/slist.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //----------------------------------------------------------------------------- // @File: slist.h // // // @commn: Bunch of utility classes // // HISTORY: // 02/03/98: created helper classes // SLink, link node for singly linked list, every class that is intrusively // linked should have a data member of this type // SList, template linked list class, contains only inline // methods for fast list operations, with proper type checking // // see below for futher info. on how to use these template classes // //----------------------------------------------------------------------------- //#ifndef _H_UTIL //#error "I am a part of util.hpp Please don't include me alone !" //#endif #ifndef _H_SLIST_ #define _H_SLIST_ //------------------------------------------------------------------ // struct SLink, to use a singly linked list // have a data member m_Link of type SLink in your class // and instantiate the template SList class //-------------------------------------------------------------------- struct SLink; typedef DPTR(struct SLink) PTR_SLink; struct SLink { PTR_SLink m_pNext; SLink() { LIMITED_METHOD_CONTRACT; m_pNext = NULL; } void InsertAfter(SLink* pLinkToInsert) { LIMITED_METHOD_CONTRACT; PRECONDITION_MSG(NULL == pLinkToInsert->m_pNext, "This method does not support inserting lists"); PTR_SLink pTemp = m_pNext; m_pNext = PTR_SLink(pLinkToInsert); pLinkToInsert->m_pNext = pTemp; } // find pLink within the list starting at pHead // if found remove the link from the list and return the link // otherwise return NULL static SLink* FindAndRemove(SLink *pHead, SLink* pLink, SLink ** ppPrior) { LIMITED_METHOD_CONTRACT; _ASSERTE(pHead != NULL); _ASSERTE(pLink != NULL); SLink* pFreeLink = NULL; *ppPrior = NULL; while (pHead->m_pNext != NULL) { if (pHead->m_pNext == pLink) { pFreeLink = pLink; pHead->m_pNext = pLink->m_pNext; *ppPrior = pHead; break; } pHead = pHead->m_pNext; } return pFreeLink; } }; //------------------------------------------------------------------ // class SList. Intrusive singly linked list. // // To use SList with the default instantiation, your class should // define a data member of type SLink and named 'm_Link'. To use a // different field name, you need to provide an explicit LinkPtr // template argument. For example: // 'SList<MyClass, false, MyClass*, &MyClass::m_FieldName>' // // SList has two different behaviours depending on boolean // fHead variable, // // if fHead is true, then the list allows only InsertHead operations // if fHead is false, then the list allows only InsertTail operations // the code is optimized to perform these operations // all methods are inline, and conditional compiled based on template // argument 'fHead' // so there is no actual code size increase //-------------------------------------------------------------- template <class T, bool fHead = false, typename __PTR = T*, SLink T::*LinkPtr = &T::m_Link> class SList { public: // typedef used by the Queue class below typedef T ENTRY_TYPE; protected: // used as sentinel SLink m_link; // slink.m_pNext == Null PTR_SLink m_pHead; PTR_SLink m_pTail; // get the list node within the object static SLink* GetLink (T* pLink) { LIMITED_METHOD_DAC_CONTRACT; return &(pLink->*LinkPtr); } // move to the beginning of the object given the pointer within the object static T* GetObject (SLink* pLink) { LIMITED_METHOD_DAC_CONTRACT; if (pLink == NULL) { return NULL; } else { #if 1 // Newer compilers define offsetof to be __builtin_offsetof, which doesn't use the // old-school memory model trick to determine offset. const UINT_PTR offset = (((UINT_PTR)&(((T *)0x1000)->*LinkPtr))-0x1000); return (T*)__PTR(dac_cast<TADDR>(pLink) - offset); #else return (T*)__PTR(dac_cast<TADDR>(pLink) - offsetof(T, *LinkPtr)); #endif } } public: SList() { WRAPPER_NO_CONTRACT; #ifndef DACCESS_COMPILE Init(); #endif // !defined(DACCESS_COMPILE) } void Init() { LIMITED_METHOD_CONTRACT; m_pHead = PTR_SLink(&m_link); // NOTE :: fHead variable is template argument // the following code is a compiled in, only if the fHead flag // is set to false, if (!fHead) { m_pTail = PTR_SLink(&m_link); } } bool IsEmpty() { LIMITED_METHOD_CONTRACT; return m_pHead->m_pNext == NULL; } #ifndef DACCESS_COMPILE void InsertTail(T *pObj) { LIMITED_METHOD_CONTRACT; // NOTE : conditional compilation on fHead template variable if (!fHead) { _ASSERTE(pObj != NULL); SLink *pLink = GetLink(pObj); m_pTail->m_pNext = pLink; m_pTail = pLink; } else {// you instantiated this class asking only for InsertHead operations _ASSERTE(0); } } void InsertHead(T *pObj) { LIMITED_METHOD_CONTRACT; // NOTE : conditional compilation on fHead template variable if (fHead) { _ASSERTE(pObj != NULL); SLink *pLink = GetLink(pObj); pLink->m_pNext = m_pHead->m_pNext; m_pHead->m_pNext = pLink; } else {// you instantiated this class asking only for InsertTail operations _ASSERTE(0); } } T* RemoveHead() { LIMITED_METHOD_CONTRACT; SLink* pLink = m_pHead->m_pNext; if (pLink != NULL) { m_pHead->m_pNext = pLink->m_pNext; } // conditionally compiled, if the instantiated class // uses Insert Tail operations if (!fHead) { if(m_pTail == pLink) { m_pTail = m_pHead; } } return GetObject(pLink); } #endif // !DACCESS_COMPILE T* GetHead() { WRAPPER_NO_CONTRACT; return GetObject(m_pHead->m_pNext); } T* GetTail() { WRAPPER_NO_CONTRACT; // conditional compile if (fHead) { // you instantiated this class asking only for InsertHead operations // you need to walk the list yourself to find the tail _ASSERTE(0); } return (m_pHead != m_pTail) ? GetObject(m_pTail) : NULL; } static T *GetNext(T *pObj) { WRAPPER_NO_CONTRACT; _ASSERTE(pObj != NULL); return GetObject(GetLink(pObj)->m_pNext); } T* FindAndRemove(T *pObj) { WRAPPER_NO_CONTRACT; _ASSERTE(pObj != NULL); SLink *prior; SLink *ret = SLink::FindAndRemove(m_pHead, GetLink(pObj), &prior); if (ret == m_pTail) m_pTail = PTR_SLink(prior); return GetObject(ret); } class Iterator { friend class SList; public: Iterator & operator++() { _ASSERTE(m_cur != NULL); m_cur = SList::GetNext(m_cur); return *this; } Iterator operator++(int) { Iterator it(m_cur); ++(*this); return it; } bool operator==(Iterator const & other) const { return m_cur == other.m_cur || (m_cur != NULL && other.m_cur != NULL && *m_cur == *other.m_cur); } bool operator!=(Iterator const & other) const { return !(*this == other); } T & operator*() { _ASSERTE(m_cur != NULL); return *m_cur; } T * operator->() const { return m_cur; } private: Iterator(SList * pList) : m_cur(pList->GetHead()) { } Iterator(T* pObj) : m_cur(pObj) { } Iterator() : m_cur(NULL) { } T* m_cur; }; Iterator begin() { return Iterator(GetHead()); } Iterator end() { return Iterator(); } }; template <typename ElemT> struct SListElem { SLink m_Link; ElemT m_Value; operator ElemT const &() const { return m_Value; } operator ElemT &() { return m_Value; } ElemT const & operator*() const { return m_Value; } ElemT & operator*() { return m_Value; } ElemT const & GetValue() const { return m_Value; } ElemT & GetValue() { return m_Value; } SListElem() : m_Link() , m_Value() { } template <typename T1> SListElem(T1&& val) : m_Link() , m_Value(std::forward<T1>(val)) { } template <typename T1, typename T2> SListElem(T1&& val1, T2&& val2) : m_Link() , m_Value(std::forward<T1>(val1), std::forward<T2>(val2)) { } template <typename T1, typename T2, typename T3> SListElem(T1&& val1, T2&& val2, T3&& val3) : m_Link() , m_Value(std::forward<T1>(val1), std::forward<T2>(val2), std::forward<T3>(val3)) { } template <typename T1, typename T2, typename T3, typename T4> SListElem(T1&& val1, T2&& val2, T3&& val3, T4&& val4) : m_Link() , m_Value(std::forward<T1>(val1), std::forward<T2>(val2), std::forward<T3>(val3), std::forward<T4>(val4)) { } }; #endif // _H_SLIST_ // End of file: list.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //----------------------------------------------------------------------------- // @File: slist.h // // // @commn: Bunch of utility classes // // HISTORY: // 02/03/98: created helper classes // SLink, link node for singly linked list, every class that is intrusively // linked should have a data member of this type // SList, template linked list class, contains only inline // methods for fast list operations, with proper type checking // // see below for futher info. on how to use these template classes // //----------------------------------------------------------------------------- //#ifndef _H_UTIL //#error "I am a part of util.hpp Please don't include me alone !" //#endif #ifndef _H_SLIST_ #define _H_SLIST_ //------------------------------------------------------------------ // struct SLink, to use a singly linked list // have a data member m_Link of type SLink in your class // and instantiate the template SList class //-------------------------------------------------------------------- struct SLink; typedef DPTR(struct SLink) PTR_SLink; struct SLink { PTR_SLink m_pNext; SLink() { LIMITED_METHOD_CONTRACT; m_pNext = NULL; } void InsertAfter(SLink* pLinkToInsert) { LIMITED_METHOD_CONTRACT; PRECONDITION_MSG(NULL == pLinkToInsert->m_pNext, "This method does not support inserting lists"); PTR_SLink pTemp = m_pNext; m_pNext = PTR_SLink(pLinkToInsert); pLinkToInsert->m_pNext = pTemp; } // find pLink within the list starting at pHead // if found remove the link from the list and return the link // otherwise return NULL static SLink* FindAndRemove(SLink *pHead, SLink* pLink, SLink ** ppPrior) { LIMITED_METHOD_CONTRACT; _ASSERTE(pHead != NULL); _ASSERTE(pLink != NULL); SLink* pFreeLink = NULL; *ppPrior = NULL; while (pHead->m_pNext != NULL) { if (pHead->m_pNext == pLink) { pFreeLink = pLink; pHead->m_pNext = pLink->m_pNext; *ppPrior = pHead; break; } pHead = pHead->m_pNext; } return pFreeLink; } }; //------------------------------------------------------------------ // class SList. Intrusive singly linked list. // // To use SList with the default instantiation, your class should // define a data member of type SLink and named 'm_Link'. To use a // different field name, you need to provide an explicit LinkPtr // template argument. For example: // 'SList<MyClass, false, MyClass*, &MyClass::m_FieldName>' // // SList has two different behaviours depending on boolean // fHead variable, // // if fHead is true, then the list allows only InsertHead operations // if fHead is false, then the list allows only InsertTail operations // the code is optimized to perform these operations // all methods are inline, and conditional compiled based on template // argument 'fHead' // so there is no actual code size increase //-------------------------------------------------------------- template <class T, bool fHead = false, typename __PTR = T*, SLink T::*LinkPtr = &T::m_Link> class SList { public: // typedef used by the Queue class below typedef T ENTRY_TYPE; protected: // used as sentinel SLink m_link; // slink.m_pNext == Null PTR_SLink m_pHead; PTR_SLink m_pTail; // get the list node within the object static SLink* GetLink (T* pLink) { LIMITED_METHOD_DAC_CONTRACT; return &(pLink->*LinkPtr); } // move to the beginning of the object given the pointer within the object static T* GetObject (SLink* pLink) { LIMITED_METHOD_DAC_CONTRACT; if (pLink == NULL) { return NULL; } else { #if 1 // Newer compilers define offsetof to be __builtin_offsetof, which doesn't use the // old-school memory model trick to determine offset. const UINT_PTR offset = (((UINT_PTR)&(((T *)0x1000)->*LinkPtr))-0x1000); return (T*)__PTR(dac_cast<TADDR>(pLink) - offset); #else return (T*)__PTR(dac_cast<TADDR>(pLink) - offsetof(T, *LinkPtr)); #endif } } public: SList() { WRAPPER_NO_CONTRACT; #ifndef DACCESS_COMPILE Init(); #endif // !defined(DACCESS_COMPILE) } void Init() { LIMITED_METHOD_CONTRACT; m_pHead = PTR_SLink(&m_link); // NOTE :: fHead variable is template argument // the following code is a compiled in, only if the fHead flag // is set to false, if (!fHead) { m_pTail = PTR_SLink(&m_link); } } bool IsEmpty() { LIMITED_METHOD_CONTRACT; return m_pHead->m_pNext == NULL; } #ifndef DACCESS_COMPILE void InsertTail(T *pObj) { LIMITED_METHOD_CONTRACT; // NOTE : conditional compilation on fHead template variable if (!fHead) { _ASSERTE(pObj != NULL); SLink *pLink = GetLink(pObj); m_pTail->m_pNext = pLink; m_pTail = pLink; } else {// you instantiated this class asking only for InsertHead operations _ASSERTE(0); } } void InsertHead(T *pObj) { LIMITED_METHOD_CONTRACT; // NOTE : conditional compilation on fHead template variable if (fHead) { _ASSERTE(pObj != NULL); SLink *pLink = GetLink(pObj); pLink->m_pNext = m_pHead->m_pNext; m_pHead->m_pNext = pLink; } else {// you instantiated this class asking only for InsertTail operations _ASSERTE(0); } } T* RemoveHead() { LIMITED_METHOD_CONTRACT; SLink* pLink = m_pHead->m_pNext; if (pLink != NULL) { m_pHead->m_pNext = pLink->m_pNext; } // conditionally compiled, if the instantiated class // uses Insert Tail operations if (!fHead) { if(m_pTail == pLink) { m_pTail = m_pHead; } } return GetObject(pLink); } #endif // !DACCESS_COMPILE T* GetHead() { WRAPPER_NO_CONTRACT; return GetObject(m_pHead->m_pNext); } T* GetTail() { WRAPPER_NO_CONTRACT; // conditional compile if (fHead) { // you instantiated this class asking only for InsertHead operations // you need to walk the list yourself to find the tail _ASSERTE(0); } return (m_pHead != m_pTail) ? GetObject(m_pTail) : NULL; } static T *GetNext(T *pObj) { WRAPPER_NO_CONTRACT; _ASSERTE(pObj != NULL); return GetObject(GetLink(pObj)->m_pNext); } T* FindAndRemove(T *pObj) { WRAPPER_NO_CONTRACT; _ASSERTE(pObj != NULL); SLink *prior; SLink *ret = SLink::FindAndRemove(m_pHead, GetLink(pObj), &prior); if (ret == m_pTail) m_pTail = PTR_SLink(prior); return GetObject(ret); } class Iterator { friend class SList; public: Iterator & operator++() { _ASSERTE(m_cur != NULL); m_cur = SList::GetNext(m_cur); return *this; } Iterator operator++(int) { Iterator it(m_cur); ++(*this); return it; } bool operator==(Iterator const & other) const { return m_cur == other.m_cur || (m_cur != NULL && other.m_cur != NULL && *m_cur == *other.m_cur); } bool operator!=(Iterator const & other) const { return !(*this == other); } T & operator*() { _ASSERTE(m_cur != NULL); return *m_cur; } T * operator->() const { return m_cur; } private: Iterator(SList * pList) : m_cur(pList->GetHead()) { } Iterator(T* pObj) : m_cur(pObj) { } Iterator() : m_cur(NULL) { } T* m_cur; }; Iterator begin() { return Iterator(GetHead()); } Iterator end() { return Iterator(); } }; template <typename ElemT> struct SListElem { SLink m_Link; ElemT m_Value; operator ElemT const &() const { return m_Value; } operator ElemT &() { return m_Value; } ElemT const & operator*() const { return m_Value; } ElemT & operator*() { return m_Value; } ElemT const & GetValue() const { return m_Value; } ElemT & GetValue() { return m_Value; } SListElem() : m_Link() , m_Value() { } template <typename T1> SListElem(T1&& val) : m_Link() , m_Value(std::forward<T1>(val)) { } template <typename T1, typename T2> SListElem(T1&& val1, T2&& val2) : m_Link() , m_Value(std::forward<T1>(val1), std::forward<T2>(val2)) { } template <typename T1, typename T2, typename T3> SListElem(T1&& val1, T2&& val2, T3&& val3) : m_Link() , m_Value(std::forward<T1>(val1), std::forward<T2>(val2), std::forward<T3>(val3)) { } template <typename T1, typename T2, typename T3, typename T4> SListElem(T1&& val1, T2&& val2, T3&& val3, T4&& val4) : m_Link() , m_Value(std::forward<T1>(val1), std::forward<T2>(val2), std::forward<T3>(val3), std::forward<T4>(val4)) { } }; #endif // _H_SLIST_ // End of file: list.h
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/nativeaot/Runtime/UniversalTransitionHelpers.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "CommonTypes.h" #include "CommonMacros.h" #include "PalRedhawkCommon.h" #include "PalRedhawk.h" #ifdef _DEBUG #define TRASH_SAVED_ARGUMENT_REGISTERS #endif #ifdef TRASH_SAVED_ARGUMENT_REGISTERS // // Define tables of predictable distinguished values that RhpUniversalTransition can use to // trash argument registers after they have been saved into the transition frame. // // Trashing these registers is a testability aid that makes it easier to detect bugs where // the transition frame content is not correctly propagated to the eventual callee. // // In the absence of trashing, such bugs can become undetectable if the code that // dispatches the call happens to never touch the impacted argument register (e.g., xmm3 on // amd64 or d5 on arm32). In such a case, the original enregistered argument will flow // unmodified into the eventual callee, obscuring the fact that the dispatcher failed to // propagate the transition frame copy of this register. // // These tables are manually aligned as a conservative safeguard to ensure that the // consumers can use arbitrary access widths without ever needing to worry about alignment. // The comments in each table show the %d/%f renderings of each 32-bit value, plus the // %I64d/%f rendering of the combined 64-bit value of each aligned pair of 32-bit values. // #define TRASH_VALUE_ALIGNMENT 16 EXTERN_C DECLSPEC_ALIGN(TRASH_VALUE_ALIGNMENT) const uint32_t RhpIntegerTrashValues[] = { // Lo32 Hi32 Lo32 Hi32 Hi32:Lo32 // ----------- ----------- --------- --------- ------------------ 0x07801001U, 0x07802002U, // (125833217, 125837314) (540467148372316161) 0x07803003U, 0x07804004U, // (125841411, 125845508) (540502341334347779) 0x07805005U, 0x07806006U, // (125849605, 125853702) (540537534296379397) 0x07807007U, 0x07808008U, // (125857799, 125861896) (540572727258411015) 0x07809009U, 0x0780a00aU, // (125865993, 125870090) (540607920220442633) 0x0780b00bU, 0x0780c00cU, // (125874187, 125878284) (540643113182474251) 0x0780d00dU, 0x0780e00eU, // (125882381, 125886478) (540678306144505869) 0x0780f00fU, 0x07810010U, // (125890575, 125894672) (540713499106537487) }; EXTERN_C DECLSPEC_ALIGN(TRASH_VALUE_ALIGNMENT) const uint32_t RhpFpTrashValues[] = { // Lo32 Hi32 Lo32 Hi32 Hi32:Lo32 // ----------- ----------- ------------------- ------------------- ------------------- 0x42001001U, 0x42002002U, // (32.0156288146972660, 32.0312576293945310) (8657061952.00781440) 0x42003003U, 0x42004004U, // (32.0468864440917970, 32.0625152587890630) (8724187200.02344320) 0x42005005U, 0x42006006U, // (32.0781440734863280, 32.0937728881835940) (8791312448.03907200) 0x42007007U, 0x42008008U, // (32.1094017028808590, 32.1250305175781250) (8858437696.05470090) 0x42009009U, 0x4200a00aU, // (32.1406593322753910, 32.1562881469726560) (8925562944.07032970) 0x4200b00bU, 0x4200c00cU, // (32.1719169616699220, 32.1875457763671880) (8992688192.08595850) 0x4200d00dU, 0x4200e00eU, // (32.2031745910644530, 32.2188034057617190) (9059813440.10158730) 0x4200f00fU, 0x42010010U, // (32.2344322204589840, 32.2500610351562500) (9126938688.11721610) }; #endif // TRASH_SAVED_ARGUMENT_REGISTERS
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "CommonTypes.h" #include "CommonMacros.h" #include "PalRedhawkCommon.h" #include "PalRedhawk.h" #ifdef _DEBUG #define TRASH_SAVED_ARGUMENT_REGISTERS #endif #ifdef TRASH_SAVED_ARGUMENT_REGISTERS // // Define tables of predictable distinguished values that RhpUniversalTransition can use to // trash argument registers after they have been saved into the transition frame. // // Trashing these registers is a testability aid that makes it easier to detect bugs where // the transition frame content is not correctly propagated to the eventual callee. // // In the absence of trashing, such bugs can become undetectable if the code that // dispatches the call happens to never touch the impacted argument register (e.g., xmm3 on // amd64 or d5 on arm32). In such a case, the original enregistered argument will flow // unmodified into the eventual callee, obscuring the fact that the dispatcher failed to // propagate the transition frame copy of this register. // // These tables are manually aligned as a conservative safeguard to ensure that the // consumers can use arbitrary access widths without ever needing to worry about alignment. // The comments in each table show the %d/%f renderings of each 32-bit value, plus the // %I64d/%f rendering of the combined 64-bit value of each aligned pair of 32-bit values. // #define TRASH_VALUE_ALIGNMENT 16 EXTERN_C DECLSPEC_ALIGN(TRASH_VALUE_ALIGNMENT) const uint32_t RhpIntegerTrashValues[] = { // Lo32 Hi32 Lo32 Hi32 Hi32:Lo32 // ----------- ----------- --------- --------- ------------------ 0x07801001U, 0x07802002U, // (125833217, 125837314) (540467148372316161) 0x07803003U, 0x07804004U, // (125841411, 125845508) (540502341334347779) 0x07805005U, 0x07806006U, // (125849605, 125853702) (540537534296379397) 0x07807007U, 0x07808008U, // (125857799, 125861896) (540572727258411015) 0x07809009U, 0x0780a00aU, // (125865993, 125870090) (540607920220442633) 0x0780b00bU, 0x0780c00cU, // (125874187, 125878284) (540643113182474251) 0x0780d00dU, 0x0780e00eU, // (125882381, 125886478) (540678306144505869) 0x0780f00fU, 0x07810010U, // (125890575, 125894672) (540713499106537487) }; EXTERN_C DECLSPEC_ALIGN(TRASH_VALUE_ALIGNMENT) const uint32_t RhpFpTrashValues[] = { // Lo32 Hi32 Lo32 Hi32 Hi32:Lo32 // ----------- ----------- ------------------- ------------------- ------------------- 0x42001001U, 0x42002002U, // (32.0156288146972660, 32.0312576293945310) (8657061952.00781440) 0x42003003U, 0x42004004U, // (32.0468864440917970, 32.0625152587890630) (8724187200.02344320) 0x42005005U, 0x42006006U, // (32.0781440734863280, 32.0937728881835940) (8791312448.03907200) 0x42007007U, 0x42008008U, // (32.1094017028808590, 32.1250305175781250) (8858437696.05470090) 0x42009009U, 0x4200a00aU, // (32.1406593322753910, 32.1562881469726560) (8925562944.07032970) 0x4200b00bU, 0x4200c00cU, // (32.1719169616699220, 32.1875457763671880) (8992688192.08595850) 0x4200d00dU, 0x4200e00eU, // (32.2031745910644530, 32.2188034057617190) (9059813440.10158730) 0x4200f00fU, 0x42010010U, // (32.2344322204589840, 32.2500610351562500) (9126938688.11721610) }; #endif // TRASH_SAVED_ARGUMENT_REGISTERS
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/native/public/mono/metadata/details/opcodes-functions.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION #ifndef MONO_API_FUNCTION #error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" #endif MONO_API_FUNCTION(const char*, mono_opcode_name, (int opcode)) MONO_API_FUNCTION(MonoOpcodeEnum, mono_opcode_value, (const mono_byte **ip, const mono_byte *end))
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // This file does not have ifdef guards, it is meant to be included multiple times with different definitions of MONO_API_FUNCTION #ifndef MONO_API_FUNCTION #error "MONO_API_FUNCTION(ret,name,args) macro not defined before including function declaration header" #endif MONO_API_FUNCTION(const char*, mono_opcode_name, (int opcode)) MONO_API_FUNCTION(MonoOpcodeEnum, mono_opcode_value, (const mono_byte **ip, const mono_byte *end))
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/src/handlemgr/handlemgr.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*++ Module Name: handlemgr.cpp Abstract: Implementation of a basic handle table --*/ #include "pal/thread.hpp" #include "pal/handlemgr.hpp" #include "pal/cs.hpp" #include "pal/malloc.hpp" #include "pal/dbgmsg.h" using namespace CorUnix; SET_DEFAULT_DEBUG_CHANNEL(HANDLE); /* Constants */ /* Special handles */ /* Pseudo handles constant for current thread and process */ const HANDLE hPseudoCurrentProcess = (HANDLE) 0xFFFFFF01; const HANDLE hPseudoCurrentThread = (HANDLE) 0xFFFFFF03; /* Pseudo handle constant for the global IO Completion port */ const HANDLE hPseudoGlobalIOCP = (HANDLE) 0xFFFFFF05; PAL_ERROR CSimpleHandleManager::Initialize( void ) { PAL_ERROR palError = NO_ERROR; InternalInitializeCriticalSection(&m_csLock); m_fLockInitialized = TRUE; m_dwTableGrowthRate = c_BasicGrowthRate; /* initialize the handle table - the free list is stored in the 'object' field, with the head in the global 'm_hiFreeListStart'. */ m_dwTableSize = m_dwTableGrowthRate; m_rghteHandleTable = reinterpret_cast<HANDLE_TABLE_ENTRY*>(InternalMalloc((m_dwTableSize * sizeof(HANDLE_TABLE_ENTRY)))); if(NULL == m_rghteHandleTable) { ERROR("Unable to create initial handle table array"); palError = ERROR_OUTOFMEMORY; goto InitializeExit; } for (DWORD i = 0; i < m_dwTableSize; i++) { m_rghteHandleTable[i].u.hiNextIndex = i + 1; m_rghteHandleTable[i].fEntryAllocated = FALSE; } m_rghteHandleTable[m_dwTableSize - 1].u.hiNextIndex = (HANDLE_INDEX)-1; m_hiFreeListStart = 0; m_hiFreeListEnd = m_dwTableSize - 1; TRACE("Handle Manager initialization complete.\n"); InitializeExit: return palError; } PAL_ERROR CSimpleHandleManager::AllocateHandle( CPalThread *pThread, IPalObject *pObject, HANDLE *ph ) { PAL_ERROR palError = NO_ERROR; DWORD dwIndex; Lock(pThread); /* if no free handles are available, we need to grow the handle table and add new handles to the pool */ if (m_hiFreeListStart == c_hiInvalid) { HANDLE_TABLE_ENTRY* rghteTempTable; TRACE("Handle pool empty (%d handles allocated), growing handle table " "by %d entries.\n", m_dwTableSize, m_dwTableGrowthRate ); /* make sure handle values don't overflow */ if (m_dwTableSize + m_dwTableGrowthRate >= c_MaxIndex) { WARN("Unable to allocate handle : maximum (%d) reached!\n", m_dwTableSize); palError = ERROR_OUTOFMEMORY; goto AllocateHandleExit; } /* grow handle table */ rghteTempTable = reinterpret_cast<HANDLE_TABLE_ENTRY*>(InternalRealloc( m_rghteHandleTable, (m_dwTableSize + m_dwTableGrowthRate) * sizeof(HANDLE_TABLE_ENTRY))); if (NULL == rghteTempTable) { WARN("not enough memory to grow handle table!\n"); palError = ERROR_OUTOFMEMORY; goto AllocateHandleExit; } m_rghteHandleTable = rghteTempTable; /* update handle table and handle pool */ for (DWORD dw = m_dwTableSize; dw < m_dwTableSize + m_dwTableGrowthRate; dw += 1) { /* new handles are initially invalid */ /* the last "old" handle was m_dwTableSize-1, so the new handles range from m_dwTableSize to m_dwTableSize+m_dwTableGrowthRate-1 */ m_rghteHandleTable[dw].u.hiNextIndex = dw + 1; m_rghteHandleTable[dw].fEntryAllocated = FALSE; } m_hiFreeListStart = m_dwTableSize; m_dwTableSize += m_dwTableGrowthRate; m_rghteHandleTable[m_dwTableSize - 1].u.hiNextIndex = (HANDLE_INDEX)-1; m_hiFreeListEnd = m_dwTableSize - 1; } /* take the next free handle */ dwIndex = m_hiFreeListStart; /* remove the handle from the pool */ m_hiFreeListStart = m_rghteHandleTable[dwIndex].u.hiNextIndex; /* clear the tail record if this is the last handle slot available */ if(m_hiFreeListStart == c_hiInvalid) { m_hiFreeListEnd = c_hiInvalid; } /* save the data associated with the new handle */ *ph = HandleIndexToHandle(dwIndex); pObject->AddReference(); m_rghteHandleTable[dwIndex].u.pObject = pObject; m_rghteHandleTable[dwIndex].fEntryAllocated = TRUE; AllocateHandleExit: Unlock(pThread); return palError; } PAL_ERROR CSimpleHandleManager::GetObjectFromHandle( CPalThread *pThread, HANDLE h, IPalObject **ppObject ) { PAL_ERROR palError = NO_ERROR; HANDLE_INDEX hi; Lock(pThread); if (!ValidateHandle(h)) { ERROR("Tried to dereference an invalid handle %p\n", h); palError = ERROR_INVALID_HANDLE; goto GetObjectFromHandleExit; } hi = HandleToHandleIndex(h); *ppObject = m_rghteHandleTable[hi].u.pObject; (*ppObject)->AddReference(); GetObjectFromHandleExit: Unlock(pThread); return palError; } PAL_ERROR CSimpleHandleManager::FreeHandle( CPalThread *pThread, HANDLE h ) { PAL_ERROR palError = NO_ERROR; IPalObject *pobj = NULL; HANDLE_INDEX hi = HandleToHandleIndex(h); Lock(pThread); if (!ValidateHandle(h)) { ERROR("Trying to free invalid handle %p.\n", h); palError = ERROR_INVALID_HANDLE; goto FreeHandleExit; } if (HandleIsSpecial(h)) { ASSERT("Trying to free Special Handle %p.\n", h); palError = ERROR_INVALID_HANDLE; goto FreeHandleExit; } pobj = m_rghteHandleTable[hi].u.pObject; m_rghteHandleTable[hi].fEntryAllocated = FALSE; /* add handle to the free pool */ if(m_hiFreeListEnd != c_hiInvalid) { m_rghteHandleTable[m_hiFreeListEnd].u.hiNextIndex = hi; } else { m_hiFreeListStart = hi; } m_rghteHandleTable[hi].u.hiNextIndex = c_hiInvalid; m_hiFreeListEnd = hi; FreeHandleExit: Unlock(pThread); if (NULL != pobj) { pobj->ReleaseReference(pThread); } return palError; } /*++ Function : ValidateHandle Check if a handle was allocated by this handle manager Parameters : HANDLE handle : handle to check. Return Value : TRUE if valid, FALSE if invalid. --*/ bool CSimpleHandleManager::ValidateHandle(HANDLE handle) { DWORD dwIndex; if (NULL == m_rghteHandleTable) { ASSERT("Handle Manager is not initialized!\n"); return FALSE; } if (handle == INVALID_HANDLE_VALUE || handle == 0) { TRACE( "INVALID_HANDLE_VALUE or NULL value is not a valid handle.\n" ); return FALSE; } if (HandleIsSpecial(handle)) { // // Special handles are valid in the general sense. They are not valid // in this context, though, as they were not allocated by the handle // manager. Hitting this case indicates a logic error within the PAL // (since clients of the handle manager should have already dealt with // the specialness of the handle) so we assert here. // ASSERT ("Handle %p is a special handle, returning FALSE.\n", handle); return FALSE; } dwIndex = HandleToHandleIndex(handle); if (dwIndex >= m_dwTableSize) { WARN( "The handle value(%p) is out of the bounds for the handle table.\n", handle ); return FALSE; } if (!m_rghteHandleTable[dwIndex].fEntryAllocated) { WARN("The handle value (%p) has not been allocated\n", handle); return FALSE; } return TRUE; } bool CorUnix::HandleIsSpecial( HANDLE h ) { return (hPseudoCurrentProcess == h || hPseudoCurrentThread == h || hPseudoGlobalIOCP == h); }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*++ Module Name: handlemgr.cpp Abstract: Implementation of a basic handle table --*/ #include "pal/thread.hpp" #include "pal/handlemgr.hpp" #include "pal/cs.hpp" #include "pal/malloc.hpp" #include "pal/dbgmsg.h" using namespace CorUnix; SET_DEFAULT_DEBUG_CHANNEL(HANDLE); /* Constants */ /* Special handles */ /* Pseudo handles constant for current thread and process */ const HANDLE hPseudoCurrentProcess = (HANDLE) 0xFFFFFF01; const HANDLE hPseudoCurrentThread = (HANDLE) 0xFFFFFF03; /* Pseudo handle constant for the global IO Completion port */ const HANDLE hPseudoGlobalIOCP = (HANDLE) 0xFFFFFF05; PAL_ERROR CSimpleHandleManager::Initialize( void ) { PAL_ERROR palError = NO_ERROR; InternalInitializeCriticalSection(&m_csLock); m_fLockInitialized = TRUE; m_dwTableGrowthRate = c_BasicGrowthRate; /* initialize the handle table - the free list is stored in the 'object' field, with the head in the global 'm_hiFreeListStart'. */ m_dwTableSize = m_dwTableGrowthRate; m_rghteHandleTable = reinterpret_cast<HANDLE_TABLE_ENTRY*>(InternalMalloc((m_dwTableSize * sizeof(HANDLE_TABLE_ENTRY)))); if(NULL == m_rghteHandleTable) { ERROR("Unable to create initial handle table array"); palError = ERROR_OUTOFMEMORY; goto InitializeExit; } for (DWORD i = 0; i < m_dwTableSize; i++) { m_rghteHandleTable[i].u.hiNextIndex = i + 1; m_rghteHandleTable[i].fEntryAllocated = FALSE; } m_rghteHandleTable[m_dwTableSize - 1].u.hiNextIndex = (HANDLE_INDEX)-1; m_hiFreeListStart = 0; m_hiFreeListEnd = m_dwTableSize - 1; TRACE("Handle Manager initialization complete.\n"); InitializeExit: return palError; } PAL_ERROR CSimpleHandleManager::AllocateHandle( CPalThread *pThread, IPalObject *pObject, HANDLE *ph ) { PAL_ERROR palError = NO_ERROR; DWORD dwIndex; Lock(pThread); /* if no free handles are available, we need to grow the handle table and add new handles to the pool */ if (m_hiFreeListStart == c_hiInvalid) { HANDLE_TABLE_ENTRY* rghteTempTable; TRACE("Handle pool empty (%d handles allocated), growing handle table " "by %d entries.\n", m_dwTableSize, m_dwTableGrowthRate ); /* make sure handle values don't overflow */ if (m_dwTableSize + m_dwTableGrowthRate >= c_MaxIndex) { WARN("Unable to allocate handle : maximum (%d) reached!\n", m_dwTableSize); palError = ERROR_OUTOFMEMORY; goto AllocateHandleExit; } /* grow handle table */ rghteTempTable = reinterpret_cast<HANDLE_TABLE_ENTRY*>(InternalRealloc( m_rghteHandleTable, (m_dwTableSize + m_dwTableGrowthRate) * sizeof(HANDLE_TABLE_ENTRY))); if (NULL == rghteTempTable) { WARN("not enough memory to grow handle table!\n"); palError = ERROR_OUTOFMEMORY; goto AllocateHandleExit; } m_rghteHandleTable = rghteTempTable; /* update handle table and handle pool */ for (DWORD dw = m_dwTableSize; dw < m_dwTableSize + m_dwTableGrowthRate; dw += 1) { /* new handles are initially invalid */ /* the last "old" handle was m_dwTableSize-1, so the new handles range from m_dwTableSize to m_dwTableSize+m_dwTableGrowthRate-1 */ m_rghteHandleTable[dw].u.hiNextIndex = dw + 1; m_rghteHandleTable[dw].fEntryAllocated = FALSE; } m_hiFreeListStart = m_dwTableSize; m_dwTableSize += m_dwTableGrowthRate; m_rghteHandleTable[m_dwTableSize - 1].u.hiNextIndex = (HANDLE_INDEX)-1; m_hiFreeListEnd = m_dwTableSize - 1; } /* take the next free handle */ dwIndex = m_hiFreeListStart; /* remove the handle from the pool */ m_hiFreeListStart = m_rghteHandleTable[dwIndex].u.hiNextIndex; /* clear the tail record if this is the last handle slot available */ if(m_hiFreeListStart == c_hiInvalid) { m_hiFreeListEnd = c_hiInvalid; } /* save the data associated with the new handle */ *ph = HandleIndexToHandle(dwIndex); pObject->AddReference(); m_rghteHandleTable[dwIndex].u.pObject = pObject; m_rghteHandleTable[dwIndex].fEntryAllocated = TRUE; AllocateHandleExit: Unlock(pThread); return palError; } PAL_ERROR CSimpleHandleManager::GetObjectFromHandle( CPalThread *pThread, HANDLE h, IPalObject **ppObject ) { PAL_ERROR palError = NO_ERROR; HANDLE_INDEX hi; Lock(pThread); if (!ValidateHandle(h)) { ERROR("Tried to dereference an invalid handle %p\n", h); palError = ERROR_INVALID_HANDLE; goto GetObjectFromHandleExit; } hi = HandleToHandleIndex(h); *ppObject = m_rghteHandleTable[hi].u.pObject; (*ppObject)->AddReference(); GetObjectFromHandleExit: Unlock(pThread); return palError; } PAL_ERROR CSimpleHandleManager::FreeHandle( CPalThread *pThread, HANDLE h ) { PAL_ERROR palError = NO_ERROR; IPalObject *pobj = NULL; HANDLE_INDEX hi = HandleToHandleIndex(h); Lock(pThread); if (!ValidateHandle(h)) { ERROR("Trying to free invalid handle %p.\n", h); palError = ERROR_INVALID_HANDLE; goto FreeHandleExit; } if (HandleIsSpecial(h)) { ASSERT("Trying to free Special Handle %p.\n", h); palError = ERROR_INVALID_HANDLE; goto FreeHandleExit; } pobj = m_rghteHandleTable[hi].u.pObject; m_rghteHandleTable[hi].fEntryAllocated = FALSE; /* add handle to the free pool */ if(m_hiFreeListEnd != c_hiInvalid) { m_rghteHandleTable[m_hiFreeListEnd].u.hiNextIndex = hi; } else { m_hiFreeListStart = hi; } m_rghteHandleTable[hi].u.hiNextIndex = c_hiInvalid; m_hiFreeListEnd = hi; FreeHandleExit: Unlock(pThread); if (NULL != pobj) { pobj->ReleaseReference(pThread); } return palError; } /*++ Function : ValidateHandle Check if a handle was allocated by this handle manager Parameters : HANDLE handle : handle to check. Return Value : TRUE if valid, FALSE if invalid. --*/ bool CSimpleHandleManager::ValidateHandle(HANDLE handle) { DWORD dwIndex; if (NULL == m_rghteHandleTable) { ASSERT("Handle Manager is not initialized!\n"); return FALSE; } if (handle == INVALID_HANDLE_VALUE || handle == 0) { TRACE( "INVALID_HANDLE_VALUE or NULL value is not a valid handle.\n" ); return FALSE; } if (HandleIsSpecial(handle)) { // // Special handles are valid in the general sense. They are not valid // in this context, though, as they were not allocated by the handle // manager. Hitting this case indicates a logic error within the PAL // (since clients of the handle manager should have already dealt with // the specialness of the handle) so we assert here. // ASSERT ("Handle %p is a special handle, returning FALSE.\n", handle); return FALSE; } dwIndex = HandleToHandleIndex(handle); if (dwIndex >= m_dwTableSize) { WARN( "The handle value(%p) is out of the bounds for the handle table.\n", handle ); return FALSE; } if (!m_rghteHandleTable[dwIndex].fEntryAllocated) { WARN("The handle value (%p) has not been allocated\n", handle); return FALSE; } return TRUE; } bool CorUnix::HandleIsSpecial( HANDLE h ) { return (hPseudoCurrentProcess == h || hPseudoCurrentThread == h || hPseudoGlobalIOCP == h); }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/gctoclreventsink.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "gctoclreventsink.h" #include "eventtrace.h" GCToCLREventSink g_gcToClrEventSink; void GCToCLREventSink::FireDynamicEvent(const char* eventName, void* payload, uint32_t payloadSize) { LIMITED_METHOD_CONTRACT; const size_t EventNameMaxSize = 255; WCHAR wideEventName[EventNameMaxSize]; if (MultiByteToWideChar(CP_ACP, 0, eventName, -1, wideEventName, EventNameMaxSize) == 0) { return; } FireEtwGCDynamicEvent(wideEventName, payloadSize, (const BYTE*)payload, GetClrInstanceId()); } void GCToCLREventSink::FireGCStart_V2(uint32_t count, uint32_t depth, uint32_t reason, uint32_t type) { #ifdef FEATURE_EVENT_TRACE LIMITED_METHOD_CONTRACT; ETW::GCLog::ETW_GC_INFO gcStartInfo; gcStartInfo.GCStart.Count = count; gcStartInfo.GCStart.Depth = depth; gcStartInfo.GCStart.Reason = static_cast<ETW::GCLog::ETW_GC_INFO::GC_REASON>(reason); gcStartInfo.GCStart.Type = static_cast<ETW::GCLog::ETW_GC_INFO::GC_TYPE>(type); ETW::GCLog::FireGcStart(&gcStartInfo); #endif } void GCToCLREventSink::FireGCGenerationRange(uint8_t generation, void* rangeStart, uint64_t rangeUsedLength, uint64_t rangeReservedLength) { LIMITED_METHOD_CONTRACT; FireEtwGCGenerationRange(generation, rangeStart, rangeUsedLength, rangeReservedLength, GetClrInstanceId()); } void GCToCLREventSink::FireGCEnd_V1(uint32_t count, uint32_t depth) { LIMITED_METHOD_CONTRACT; FireEtwGCEnd_V1(count, depth, GetClrInstanceId()); } void GCToCLREventSink::FireGCHeapStats_V2( uint64_t generationSize0, uint64_t totalPromotedSize0, uint64_t generationSize1, uint64_t totalPromotedSize1, uint64_t generationSize2, uint64_t totalPromotedSize2, uint64_t generationSize3, uint64_t totalPromotedSize3, uint64_t generationSize4, uint64_t totalPromotedSize4, uint64_t finalizationPromotedSize, uint64_t finalizationPromotedCount, uint32_t pinnedObjectCount, uint32_t sinkBlockCount, uint32_t gcHandleCount) { LIMITED_METHOD_CONTRACT; FireEtwGCHeapStats_V2(generationSize0, totalPromotedSize0, generationSize1, totalPromotedSize1, generationSize2, totalPromotedSize2, generationSize3, totalPromotedSize3, finalizationPromotedSize, finalizationPromotedCount, pinnedObjectCount, sinkBlockCount, gcHandleCount, GetClrInstanceId(), generationSize4, totalPromotedSize4); } void GCToCLREventSink::FireGCCreateSegment_V1(void* address, size_t size, uint32_t type) { LIMITED_METHOD_CONTRACT; FireEtwGCCreateSegment_V1((uint64_t)address, static_cast<uint64_t>(size), type, GetClrInstanceId()); } void GCToCLREventSink::FireGCFreeSegment_V1(void* address) { LIMITED_METHOD_CONTRACT; FireEtwGCFreeSegment_V1((uint64_t)address, GetClrInstanceId()); } void GCToCLREventSink::FireGCCreateConcurrentThread_V1() { LIMITED_METHOD_CONTRACT; FireEtwGCCreateConcurrentThread_V1(GetClrInstanceId()); } void GCToCLREventSink::FireGCTerminateConcurrentThread_V1() { LIMITED_METHOD_CONTRACT; FireEtwGCTerminateConcurrentThread_V1(GetClrInstanceId()); } void GCToCLREventSink::FireGCTriggered(uint32_t reason) { LIMITED_METHOD_CONTRACT; FireEtwGCTriggered(reason, GetClrInstanceId()); } void GCToCLREventSink::FireGCMarkWithType(uint32_t heapNum, uint32_t type, uint64_t bytes) { LIMITED_METHOD_CONTRACT; FireEtwGCMarkWithType(heapNum, GetClrInstanceId(), type, bytes); } void GCToCLREventSink::FireGCJoin_V2(uint32_t heap, uint32_t joinTime, uint32_t joinType, uint32_t joinId) { LIMITED_METHOD_CONTRACT; FireEtwGCJoin_V2(heap, joinTime, joinType, GetClrInstanceId(), joinId); } void GCToCLREventSink::FireGCGlobalHeapHistory_V4(uint64_t finalYoungestDesired, int32_t numHeaps, uint32_t condemnedGeneration, uint32_t gen0reductionCount, uint32_t reason, uint32_t globalMechanisms, uint32_t pauseMode, uint32_t memoryPressure, uint32_t condemnReasons0, uint32_t condemnReasons1, uint32_t count, uint32_t valuesLen, void *values) { LIMITED_METHOD_CONTRACT; FireEtwGCGlobalHeapHistory_V4(finalYoungestDesired, numHeaps, condemnedGeneration, gen0reductionCount, reason, globalMechanisms, GetClrInstanceId(), pauseMode, memoryPressure, condemnReasons0, condemnReasons1, count, valuesLen, values); } void GCToCLREventSink::FireGCAllocationTick_V1(uint32_t allocationAmount, uint32_t allocationKind) { LIMITED_METHOD_CONTRACT; FireEtwGCAllocationTick_V1(allocationAmount, allocationKind, GetClrInstanceId()); } void GCToCLREventSink::FireGCAllocationTick_V4(uint64_t allocationAmount, uint32_t allocationKind, uint32_t heapIndex, void* objectAddress, uint64_t objectSize) { LIMITED_METHOD_CONTRACT; void * typeId = nullptr; const WCHAR * name = nullptr; InlineSString<MAX_CLASSNAME_LENGTH> strTypeName; EX_TRY { TypeHandle th = GetThread()->GetTHAllocContextObj(); if (th != 0) { th.GetName(strTypeName); name = strTypeName.GetUnicode(); typeId = th.GetMethodTable(); } } EX_CATCH {} EX_END_CATCH(SwallowAllExceptions) if (typeId != nullptr) { FireEtwGCAllocationTick_V4((uint32_t)allocationAmount, allocationKind, GetClrInstanceId(), allocationAmount, typeId, name, heapIndex, objectAddress, objectSize); } } void GCToCLREventSink::FirePinObjectAtGCTime(void* object, uint8_t** ppObject) { LIMITED_METHOD_CONTRACT; Object* obj = (Object*)object; InlineSString<MAX_CLASSNAME_LENGTH> strTypeName; EX_TRY { FAULT_NOT_FATAL(); TypeHandle th = obj->GetGCSafeTypeHandleIfPossible(); if(th != NULL) { th.GetName(strTypeName); } FireEtwPinObjectAtGCTime(ppObject, object, obj->GetSize(), strTypeName.GetUnicode(), GetClrInstanceId()); } EX_CATCH {} EX_END_CATCH(SwallowAllExceptions) } void GCToCLREventSink::FirePinPlugAtGCTime(uint8_t* plugStart, uint8_t* plugEnd, uint8_t* gapBeforeSize) { LIMITED_METHOD_CONTRACT; FireEtwPinPlugAtGCTime(plugStart, plugEnd, gapBeforeSize, GetClrInstanceId()); } void GCToCLREventSink::FireGCPerHeapHistory_V3(void *freeListAllocated, void *freeListRejected, void *endOfSegAllocated, void *condemnedAllocated, void *pinnedAllocated, void *pinnedAllocatedAdvance, uint32_t runningFreeListEfficiency, uint32_t condemnReasons0, uint32_t condemnReasons1, uint32_t compactMechanisms, uint32_t expandMechanisms, uint32_t heapIndex, void *extraGen0Commit, uint32_t count, uint32_t valuesLen, void *values) { FireEtwGCPerHeapHistory_V3(GetClrInstanceId(), freeListAllocated, freeListRejected, endOfSegAllocated, condemnedAllocated, pinnedAllocated, pinnedAllocatedAdvance, runningFreeListEfficiency, condemnReasons0, condemnReasons1, compactMechanisms, expandMechanisms, heapIndex, extraGen0Commit, count, valuesLen, values); } void GCToCLREventSink::FireGCLOHCompact(uint16_t count, uint32_t valuesLen, void *values) { FireEtwGCLOHCompact(GetClrInstanceId(), count, valuesLen, values); } void GCToCLREventSink::FireGCFitBucketInfo(uint16_t bucketKind, size_t size, uint16_t count, uint32_t valuesLen, void *values) { FireEtwGCFitBucketInfo(GetClrInstanceId(), bucketKind, size, count, valuesLen, values); } void GCToCLREventSink::FireBGCBegin() { FireEtwBGCBegin(GetClrInstanceId()); } void GCToCLREventSink::FireBGC1stNonConEnd() { FireEtwBGC1stNonConEnd(GetClrInstanceId()); } void GCToCLREventSink::FireBGC1stConEnd() { FireEtwBGC1stConEnd(GetClrInstanceId()); } void GCToCLREventSink::FireBGC1stSweepEnd(uint32_t genNumber) { FireEtwBGC1stSweepEnd(genNumber, GetClrInstanceId()); } void GCToCLREventSink::FireBGC2ndNonConBegin() { FireEtwBGC2ndNonConBegin(GetClrInstanceId()); } void GCToCLREventSink::FireBGC2ndNonConEnd() { FireEtwBGC2ndNonConEnd(GetClrInstanceId()); } void GCToCLREventSink::FireBGC2ndConBegin() { FireEtwBGC2ndConBegin(GetClrInstanceId()); } void GCToCLREventSink::FireBGC2ndConEnd() { FireEtwBGC2ndConEnd(GetClrInstanceId()); } void GCToCLREventSink::FireBGCDrainMark(uint64_t objects) { FireEtwBGCDrainMark(objects, GetClrInstanceId()); } void GCToCLREventSink::FireBGCRevisit(uint64_t pages, uint64_t objects, uint32_t isLarge) { FireEtwBGCRevisit(pages, objects, isLarge, GetClrInstanceId()); } void GCToCLREventSink::FireBGCOverflow_V1(uint64_t min, uint64_t max, uint64_t objects, uint32_t isLarge, uint32_t genNumber) { FireEtwBGCOverflow_V1(min, max, objects, isLarge, GetClrInstanceId(), genNumber); } void GCToCLREventSink::FireBGCAllocWaitBegin(uint32_t reason) { FireEtwBGCAllocWaitBegin(reason, GetClrInstanceId()); } void GCToCLREventSink::FireBGCAllocWaitEnd(uint32_t reason) { FireEtwBGCAllocWaitEnd(reason, GetClrInstanceId()); } void GCToCLREventSink::FireGCFullNotify_V1(uint32_t genNumber, uint32_t isAlloc) { FireEtwGCFullNotify_V1(genNumber, isAlloc, GetClrInstanceId()); } void GCToCLREventSink::FireSetGCHandle(void *handleID, void *objectID, uint32_t kind, uint32_t generation) { FireEtwSetGCHandle(handleID, objectID, kind, generation, (uint64_t)dac_cast<TADDR>(AppDomain::GetCurrentDomain()), GetClrInstanceId()); } void GCToCLREventSink::FirePrvSetGCHandle(void *handleID, void *objectID, uint32_t kind, uint32_t generation) { FireEtwPrvSetGCHandle(handleID, objectID, kind, generation, (uint64_t)dac_cast<TADDR>(AppDomain::GetCurrentDomain()), GetClrInstanceId()); } void GCToCLREventSink::FireDestroyGCHandle(void *handleID) { FireEtwDestroyGCHandle(handleID, GetClrInstanceId()); } void GCToCLREventSink::FirePrvDestroyGCHandle(void *handleID) { FireEtwPrvDestroyGCHandle(handleID, GetClrInstanceId()); }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "gctoclreventsink.h" #include "eventtrace.h" GCToCLREventSink g_gcToClrEventSink; void GCToCLREventSink::FireDynamicEvent(const char* eventName, void* payload, uint32_t payloadSize) { LIMITED_METHOD_CONTRACT; const size_t EventNameMaxSize = 255; WCHAR wideEventName[EventNameMaxSize]; if (MultiByteToWideChar(CP_ACP, 0, eventName, -1, wideEventName, EventNameMaxSize) == 0) { return; } FireEtwGCDynamicEvent(wideEventName, payloadSize, (const BYTE*)payload, GetClrInstanceId()); } void GCToCLREventSink::FireGCStart_V2(uint32_t count, uint32_t depth, uint32_t reason, uint32_t type) { #ifdef FEATURE_EVENT_TRACE LIMITED_METHOD_CONTRACT; ETW::GCLog::ETW_GC_INFO gcStartInfo; gcStartInfo.GCStart.Count = count; gcStartInfo.GCStart.Depth = depth; gcStartInfo.GCStart.Reason = static_cast<ETW::GCLog::ETW_GC_INFO::GC_REASON>(reason); gcStartInfo.GCStart.Type = static_cast<ETW::GCLog::ETW_GC_INFO::GC_TYPE>(type); ETW::GCLog::FireGcStart(&gcStartInfo); #endif } void GCToCLREventSink::FireGCGenerationRange(uint8_t generation, void* rangeStart, uint64_t rangeUsedLength, uint64_t rangeReservedLength) { LIMITED_METHOD_CONTRACT; FireEtwGCGenerationRange(generation, rangeStart, rangeUsedLength, rangeReservedLength, GetClrInstanceId()); } void GCToCLREventSink::FireGCEnd_V1(uint32_t count, uint32_t depth) { LIMITED_METHOD_CONTRACT; FireEtwGCEnd_V1(count, depth, GetClrInstanceId()); } void GCToCLREventSink::FireGCHeapStats_V2( uint64_t generationSize0, uint64_t totalPromotedSize0, uint64_t generationSize1, uint64_t totalPromotedSize1, uint64_t generationSize2, uint64_t totalPromotedSize2, uint64_t generationSize3, uint64_t totalPromotedSize3, uint64_t generationSize4, uint64_t totalPromotedSize4, uint64_t finalizationPromotedSize, uint64_t finalizationPromotedCount, uint32_t pinnedObjectCount, uint32_t sinkBlockCount, uint32_t gcHandleCount) { LIMITED_METHOD_CONTRACT; FireEtwGCHeapStats_V2(generationSize0, totalPromotedSize0, generationSize1, totalPromotedSize1, generationSize2, totalPromotedSize2, generationSize3, totalPromotedSize3, finalizationPromotedSize, finalizationPromotedCount, pinnedObjectCount, sinkBlockCount, gcHandleCount, GetClrInstanceId(), generationSize4, totalPromotedSize4); } void GCToCLREventSink::FireGCCreateSegment_V1(void* address, size_t size, uint32_t type) { LIMITED_METHOD_CONTRACT; FireEtwGCCreateSegment_V1((uint64_t)address, static_cast<uint64_t>(size), type, GetClrInstanceId()); } void GCToCLREventSink::FireGCFreeSegment_V1(void* address) { LIMITED_METHOD_CONTRACT; FireEtwGCFreeSegment_V1((uint64_t)address, GetClrInstanceId()); } void GCToCLREventSink::FireGCCreateConcurrentThread_V1() { LIMITED_METHOD_CONTRACT; FireEtwGCCreateConcurrentThread_V1(GetClrInstanceId()); } void GCToCLREventSink::FireGCTerminateConcurrentThread_V1() { LIMITED_METHOD_CONTRACT; FireEtwGCTerminateConcurrentThread_V1(GetClrInstanceId()); } void GCToCLREventSink::FireGCTriggered(uint32_t reason) { LIMITED_METHOD_CONTRACT; FireEtwGCTriggered(reason, GetClrInstanceId()); } void GCToCLREventSink::FireGCMarkWithType(uint32_t heapNum, uint32_t type, uint64_t bytes) { LIMITED_METHOD_CONTRACT; FireEtwGCMarkWithType(heapNum, GetClrInstanceId(), type, bytes); } void GCToCLREventSink::FireGCJoin_V2(uint32_t heap, uint32_t joinTime, uint32_t joinType, uint32_t joinId) { LIMITED_METHOD_CONTRACT; FireEtwGCJoin_V2(heap, joinTime, joinType, GetClrInstanceId(), joinId); } void GCToCLREventSink::FireGCGlobalHeapHistory_V4(uint64_t finalYoungestDesired, int32_t numHeaps, uint32_t condemnedGeneration, uint32_t gen0reductionCount, uint32_t reason, uint32_t globalMechanisms, uint32_t pauseMode, uint32_t memoryPressure, uint32_t condemnReasons0, uint32_t condemnReasons1, uint32_t count, uint32_t valuesLen, void *values) { LIMITED_METHOD_CONTRACT; FireEtwGCGlobalHeapHistory_V4(finalYoungestDesired, numHeaps, condemnedGeneration, gen0reductionCount, reason, globalMechanisms, GetClrInstanceId(), pauseMode, memoryPressure, condemnReasons0, condemnReasons1, count, valuesLen, values); } void GCToCLREventSink::FireGCAllocationTick_V1(uint32_t allocationAmount, uint32_t allocationKind) { LIMITED_METHOD_CONTRACT; FireEtwGCAllocationTick_V1(allocationAmount, allocationKind, GetClrInstanceId()); } void GCToCLREventSink::FireGCAllocationTick_V4(uint64_t allocationAmount, uint32_t allocationKind, uint32_t heapIndex, void* objectAddress, uint64_t objectSize) { LIMITED_METHOD_CONTRACT; void * typeId = nullptr; const WCHAR * name = nullptr; InlineSString<MAX_CLASSNAME_LENGTH> strTypeName; EX_TRY { TypeHandle th = GetThread()->GetTHAllocContextObj(); if (th != 0) { th.GetName(strTypeName); name = strTypeName.GetUnicode(); typeId = th.GetMethodTable(); } } EX_CATCH {} EX_END_CATCH(SwallowAllExceptions) if (typeId != nullptr) { FireEtwGCAllocationTick_V4((uint32_t)allocationAmount, allocationKind, GetClrInstanceId(), allocationAmount, typeId, name, heapIndex, objectAddress, objectSize); } } void GCToCLREventSink::FirePinObjectAtGCTime(void* object, uint8_t** ppObject) { LIMITED_METHOD_CONTRACT; Object* obj = (Object*)object; InlineSString<MAX_CLASSNAME_LENGTH> strTypeName; EX_TRY { FAULT_NOT_FATAL(); TypeHandle th = obj->GetGCSafeTypeHandleIfPossible(); if(th != NULL) { th.GetName(strTypeName); } FireEtwPinObjectAtGCTime(ppObject, object, obj->GetSize(), strTypeName.GetUnicode(), GetClrInstanceId()); } EX_CATCH {} EX_END_CATCH(SwallowAllExceptions) } void GCToCLREventSink::FirePinPlugAtGCTime(uint8_t* plugStart, uint8_t* plugEnd, uint8_t* gapBeforeSize) { LIMITED_METHOD_CONTRACT; FireEtwPinPlugAtGCTime(plugStart, plugEnd, gapBeforeSize, GetClrInstanceId()); } void GCToCLREventSink::FireGCPerHeapHistory_V3(void *freeListAllocated, void *freeListRejected, void *endOfSegAllocated, void *condemnedAllocated, void *pinnedAllocated, void *pinnedAllocatedAdvance, uint32_t runningFreeListEfficiency, uint32_t condemnReasons0, uint32_t condemnReasons1, uint32_t compactMechanisms, uint32_t expandMechanisms, uint32_t heapIndex, void *extraGen0Commit, uint32_t count, uint32_t valuesLen, void *values) { FireEtwGCPerHeapHistory_V3(GetClrInstanceId(), freeListAllocated, freeListRejected, endOfSegAllocated, condemnedAllocated, pinnedAllocated, pinnedAllocatedAdvance, runningFreeListEfficiency, condemnReasons0, condemnReasons1, compactMechanisms, expandMechanisms, heapIndex, extraGen0Commit, count, valuesLen, values); } void GCToCLREventSink::FireGCLOHCompact(uint16_t count, uint32_t valuesLen, void *values) { FireEtwGCLOHCompact(GetClrInstanceId(), count, valuesLen, values); } void GCToCLREventSink::FireGCFitBucketInfo(uint16_t bucketKind, size_t size, uint16_t count, uint32_t valuesLen, void *values) { FireEtwGCFitBucketInfo(GetClrInstanceId(), bucketKind, size, count, valuesLen, values); } void GCToCLREventSink::FireBGCBegin() { FireEtwBGCBegin(GetClrInstanceId()); } void GCToCLREventSink::FireBGC1stNonConEnd() { FireEtwBGC1stNonConEnd(GetClrInstanceId()); } void GCToCLREventSink::FireBGC1stConEnd() { FireEtwBGC1stConEnd(GetClrInstanceId()); } void GCToCLREventSink::FireBGC1stSweepEnd(uint32_t genNumber) { FireEtwBGC1stSweepEnd(genNumber, GetClrInstanceId()); } void GCToCLREventSink::FireBGC2ndNonConBegin() { FireEtwBGC2ndNonConBegin(GetClrInstanceId()); } void GCToCLREventSink::FireBGC2ndNonConEnd() { FireEtwBGC2ndNonConEnd(GetClrInstanceId()); } void GCToCLREventSink::FireBGC2ndConBegin() { FireEtwBGC2ndConBegin(GetClrInstanceId()); } void GCToCLREventSink::FireBGC2ndConEnd() { FireEtwBGC2ndConEnd(GetClrInstanceId()); } void GCToCLREventSink::FireBGCDrainMark(uint64_t objects) { FireEtwBGCDrainMark(objects, GetClrInstanceId()); } void GCToCLREventSink::FireBGCRevisit(uint64_t pages, uint64_t objects, uint32_t isLarge) { FireEtwBGCRevisit(pages, objects, isLarge, GetClrInstanceId()); } void GCToCLREventSink::FireBGCOverflow_V1(uint64_t min, uint64_t max, uint64_t objects, uint32_t isLarge, uint32_t genNumber) { FireEtwBGCOverflow_V1(min, max, objects, isLarge, GetClrInstanceId(), genNumber); } void GCToCLREventSink::FireBGCAllocWaitBegin(uint32_t reason) { FireEtwBGCAllocWaitBegin(reason, GetClrInstanceId()); } void GCToCLREventSink::FireBGCAllocWaitEnd(uint32_t reason) { FireEtwBGCAllocWaitEnd(reason, GetClrInstanceId()); } void GCToCLREventSink::FireGCFullNotify_V1(uint32_t genNumber, uint32_t isAlloc) { FireEtwGCFullNotify_V1(genNumber, isAlloc, GetClrInstanceId()); } void GCToCLREventSink::FireSetGCHandle(void *handleID, void *objectID, uint32_t kind, uint32_t generation) { FireEtwSetGCHandle(handleID, objectID, kind, generation, (uint64_t)dac_cast<TADDR>(AppDomain::GetCurrentDomain()), GetClrInstanceId()); } void GCToCLREventSink::FirePrvSetGCHandle(void *handleID, void *objectID, uint32_t kind, uint32_t generation) { FireEtwPrvSetGCHandle(handleID, objectID, kind, generation, (uint64_t)dac_cast<TADDR>(AppDomain::GetCurrentDomain()), GetClrInstanceId()); } void GCToCLREventSink::FireDestroyGCHandle(void *handleID) { FireEtwDestroyGCHandle(handleID, GetClrInstanceId()); } void GCToCLREventSink::FirePrvDestroyGCHandle(void *handleID) { FireEtwPrvDestroyGCHandle(handleID, GetClrInstanceId()); }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/filemapping_memmgt/GetModuleFileNameW/test1/GetModuleFileNameW.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================= ** ** Source: getmodulefilenamew.c ** ** Purpose: Test the GetModuleFileNameW to retrieve the specified module ** full path and file name in UNICODE. ** ** **============================================================*/ #define UNICODE #include <palsuite.h> #define MODULENAMEBUFFERSIZE 1024 /* SHLEXT is defined only for Unix variants */ #if defined(SHLEXT) #define ModuleName "librotor_pal"SHLEXT #define Delimiter "/" #else #define ModuleName "rotor_pal.dll" #define Delimiter "\\" #endif PALTEST(filemapping_memmgt_GetModuleFileNameW_test1_paltest_getmodulefilenamew_test1, "filemapping_memmgt/GetModuleFileNameW/test1/paltest_getmodulefilenamew_test1") { HMODULE ModuleHandle; int err; WCHAR *lpModuleName; DWORD ModuleNameLength; WCHAR *ModuleFileNameBuf; char* TempBuf = NULL; char* LastBuf = NULL; char NewModuleFileNameBuf[MODULENAMEBUFFERSIZE+200] = ""; //Initialize the PAL environment err = PAL_Initialize(argc, argv); if(0 != err) { ExitProcess(FAIL); } ModuleFileNameBuf = (WCHAR*)malloc(MODULENAMEBUFFERSIZE*sizeof(WCHAR)); //convert a normal string to a wide one lpModuleName = convert(ModuleName); //load a module ModuleHandle = LoadLibrary(lpModuleName); //free the memory free(lpModuleName); if(!ModuleHandle) { Fail("Failed to call LoadLibrary API!\n"); } //retrieve the specified module full path and file name ModuleNameLength = GetModuleFileName( ModuleHandle,//specified module handle ModuleFileNameBuf,//buffer for module file name MODULENAMEBUFFERSIZE); //convert a wide full path name to a normal one strcpy(NewModuleFileNameBuf,convertC(ModuleFileNameBuf)); //strip out all full path TempBuf = strtok(NewModuleFileNameBuf,Delimiter); LastBuf = TempBuf; while(NULL != TempBuf) { LastBuf = TempBuf; TempBuf = strtok(NULL,Delimiter); } //free the memory free(ModuleFileNameBuf); if(0 == ModuleNameLength || strcmp(ModuleName,LastBuf)) { Trace("\nFailed to all GetModuleFileName API!\n"); err = FreeLibrary(ModuleHandle); if(0 == err) { Fail("\nFailed to all FreeLibrary API!\n"); } Fail(""); } //decrement the reference count of the loaded dll err = FreeLibrary(ModuleHandle); if(0 == err) { Fail("\nFailed to all FreeLibrary API!\n"); } 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: getmodulefilenamew.c ** ** Purpose: Test the GetModuleFileNameW to retrieve the specified module ** full path and file name in UNICODE. ** ** **============================================================*/ #define UNICODE #include <palsuite.h> #define MODULENAMEBUFFERSIZE 1024 /* SHLEXT is defined only for Unix variants */ #if defined(SHLEXT) #define ModuleName "librotor_pal"SHLEXT #define Delimiter "/" #else #define ModuleName "rotor_pal.dll" #define Delimiter "\\" #endif PALTEST(filemapping_memmgt_GetModuleFileNameW_test1_paltest_getmodulefilenamew_test1, "filemapping_memmgt/GetModuleFileNameW/test1/paltest_getmodulefilenamew_test1") { HMODULE ModuleHandle; int err; WCHAR *lpModuleName; DWORD ModuleNameLength; WCHAR *ModuleFileNameBuf; char* TempBuf = NULL; char* LastBuf = NULL; char NewModuleFileNameBuf[MODULENAMEBUFFERSIZE+200] = ""; //Initialize the PAL environment err = PAL_Initialize(argc, argv); if(0 != err) { ExitProcess(FAIL); } ModuleFileNameBuf = (WCHAR*)malloc(MODULENAMEBUFFERSIZE*sizeof(WCHAR)); //convert a normal string to a wide one lpModuleName = convert(ModuleName); //load a module ModuleHandle = LoadLibrary(lpModuleName); //free the memory free(lpModuleName); if(!ModuleHandle) { Fail("Failed to call LoadLibrary API!\n"); } //retrieve the specified module full path and file name ModuleNameLength = GetModuleFileName( ModuleHandle,//specified module handle ModuleFileNameBuf,//buffer for module file name MODULENAMEBUFFERSIZE); //convert a wide full path name to a normal one strcpy(NewModuleFileNameBuf,convertC(ModuleFileNameBuf)); //strip out all full path TempBuf = strtok(NewModuleFileNameBuf,Delimiter); LastBuf = TempBuf; while(NULL != TempBuf) { LastBuf = TempBuf; TempBuf = strtok(NULL,Delimiter); } //free the memory free(ModuleFileNameBuf); if(0 == ModuleNameLength || strcmp(ModuleName,LastBuf)) { Trace("\nFailed to all GetModuleFileName API!\n"); err = FreeLibrary(ModuleHandle); if(0 == err) { Fail("\nFailed to all FreeLibrary API!\n"); } Fail(""); } //decrement the reference count of the loaded dll err = FreeLibrary(ModuleHandle); if(0 == err) { Fail("\nFailed to all FreeLibrary API!\n"); } PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/debug/debug-pal/unix/processdescriptor.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <pal.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <limits.h> #include <pal_assert.h> #include "processdescriptor.h" ProcessDescriptor ProcessDescriptor::FromCurrentProcess() { #ifdef __APPLE__ return Create(GetCurrentProcessId(), PAL_GetApplicationGroupId()); #else return Create(GetCurrentProcessId(), nullptr); #endif }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <pal.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <limits.h> #include <pal_assert.h> #include "processdescriptor.h" ProcessDescriptor ProcessDescriptor::FromCurrentProcess() { #ifdef __APPLE__ return Create(GetCurrentProcessId(), PAL_GetApplicationGroupId()); #else return Create(GetCurrentProcessId(), nullptr); #endif }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/debug/di/shimcallback.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // File: ShimCallback.cpp // // // The V3 ICD debugging APIs have a lower abstraction level than V2. // This provides V2 ICD debugging functionality on top of the V3 debugger object. //***************************************************************************** #include "stdafx.h" #include "safewrap.h" #include "check.h" #include <limits.h> #include "shimpriv.h" // // Callback that shim provides, which then queues up the events. // ShimProxyCallback::ShimProxyCallback(ShimProcess * pShim) : m_cRef(0) { m_pShim = pShim; } // Implement IUnknown ULONG ShimProxyCallback::AddRef() { return InterlockedIncrement(&m_cRef); } ULONG ShimProxyCallback::Release() { LONG ref = InterlockedDecrement(&m_cRef); if (ref == 0) { delete this; return 0; } return ref; } HRESULT ShimProxyCallback::QueryInterface(REFIID riid, void **ppInterface) { if (riid == IID_ICorDebugManagedCallback) { *ppInterface = static_cast<ICorDebugManagedCallback*>(this); } else if (riid == IID_ICorDebugManagedCallback2) { *ppInterface = static_cast<ICorDebugManagedCallback2*>(this); } else if (riid == IID_ICorDebugManagedCallback3) { *ppInterface = static_cast<ICorDebugManagedCallback3*>(this); } else if (riid == IID_ICorDebugManagedCallback4) { *ppInterface = static_cast<ICorDebugManagedCallback4*>(this); } else if (riid == IID_IUnknown) { *ppInterface = static_cast<IUnknown*>(static_cast<ICorDebugManagedCallback*>(this)); } else { *ppInterface = NULL; return E_NOINTERFACE; } this->AddRef(); return S_OK; } // // Map from an old frame to a new one. // // Arguments: // pThread - thread that frame is on // pOldFrame - old frame before the continue, may have gotten neutered. // // Returns: // a new, non-neutered frame that matches the old frame. // // Notes: // Called by event handlers below (which are considered Outside the RS). // No adjust of reference, Thread already has reference. // @dbgtodo shim-stackwalks: this is used for exception callbacks, which may change for V3. ICorDebugFrame * UpdateFrame(ICorDebugThread * pThread, ICorDebugFrame * pOldFrame) { PUBLIC_API_ENTRY_FOR_SHIM(NULL); RSExtSmartPtr<ICorDebugFrame> pNewFrame; EX_TRY { CordbFrame * pFrame = static_cast<CordbFrame *> (pOldFrame); if (pFrame != NULL) { FramePointer fp = pFrame->GetFramePointer(); CordbThread * pThread2 = static_cast<CordbThread *> (pThread); pThread2->FindFrame(&pNewFrame, fp); // } } EX_CATCH { // Do not throw out of this function. Doing so means that the debugger never gets a chance to // continue the debuggee process. This will lead to a hang. Instead, try to make a best effort to // continue with a NULL ICDFrame. VS is able to handle this gracefully. pNewFrame.Assign(NULL); } EX_END_CATCH(SwallowAllExceptions); return pNewFrame; } // // Below this was autogenerated // // Implementation of ICorDebugManagedCallback::Breakpoint HRESULT ShimProxyCallback::Breakpoint(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugBreakpoint * pBreakpoint) { m_pShim->PreDispatchEvent(); class BreakpointEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugBreakpoint > m_pBreakpoint; public: // Ctor BreakpointEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugBreakpoint * pBreakpoint) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pBreakpoint.Assign(pBreakpoint); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->Breakpoint(m_pAppDomain, m_pThread, m_pBreakpoint); } }; // end class BreakpointEvent m_pShim->GetManagedEventQueue()->QueueEvent(new BreakpointEvent(pAppDomain, pThread, pBreakpoint)); return S_OK; } // end of methodICorDebugManagedCallback::Breakpoint // Implementation of ICorDebugManagedCallback::StepComplete HRESULT ShimProxyCallback::StepComplete(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugStepper * pStepper, CorDebugStepReason reason) { m_pShim->PreDispatchEvent(); class StepCompleteEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugStepper > m_pStepper; CorDebugStepReason m_reason; public: // Ctor StepCompleteEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugStepper * pStepper, CorDebugStepReason reason) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pStepper.Assign(pStepper); this->m_reason = reason; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->StepComplete(m_pAppDomain, m_pThread, m_pStepper, m_reason); } }; // end class StepCompleteEvent m_pShim->GetManagedEventQueue()->QueueEvent(new StepCompleteEvent(pAppDomain, pThread, pStepper, reason)); return S_OK; } // end of methodICorDebugManagedCallback::StepComplete // Implementation of ICorDebugManagedCallback::Break HRESULT ShimProxyCallback::Break(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) { m_pShim->PreDispatchEvent(); class BreakEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor BreakEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->Break(m_pAppDomain, m_pThread); } }; // end class BreakEvent m_pShim->GetManagedEventQueue()->QueueEvent(new BreakEvent(pAppDomain, pThread)); return S_OK; } // end of methodICorDebugManagedCallback::Break // Implementation of ICorDebugManagedCallback::Exception HRESULT ShimProxyCallback::Exception(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, BOOL fUnhandled) { m_pShim->PreDispatchEvent(); class ExceptionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; BOOL m_fUnhandled; public: // Ctor ExceptionEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, BOOL fUnhandled) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_fUnhandled = fUnhandled; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->Exception(m_pAppDomain, m_pThread, m_fUnhandled); } }; // end class ExceptionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ExceptionEvent(pAppDomain, pThread, fUnhandled)); return S_OK; } // end of methodICorDebugManagedCallback::Exception // Implementation of ICorDebugManagedCallback::EvalComplete HRESULT ShimProxyCallback::EvalComplete(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugEval * pEval) { m_pShim->PreDispatchEvent(); class EvalCompleteEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugEval > m_pEval; public: // Ctor EvalCompleteEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugEval * pEval) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pEval.Assign(pEval); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->EvalComplete(m_pAppDomain, m_pThread, m_pEval); } }; // end class EvalCompleteEvent m_pShim->GetManagedEventQueue()->QueueEvent(new EvalCompleteEvent(pAppDomain, pThread, pEval)); return S_OK; } // end of methodICorDebugManagedCallback::EvalComplete // Implementation of ICorDebugManagedCallback::EvalException HRESULT ShimProxyCallback::EvalException(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugEval * pEval) { m_pShim->PreDispatchEvent(); class EvalExceptionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugEval > m_pEval; public: // Ctor EvalExceptionEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugEval * pEval) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pEval.Assign(pEval); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->EvalException(m_pAppDomain, m_pThread, m_pEval); } }; // end class EvalExceptionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new EvalExceptionEvent(pAppDomain, pThread, pEval)); return S_OK; } // end of methodICorDebugManagedCallback::EvalException // Implementation of ICorDebugManagedCallback::CreateProcess // This will only be called for a Real create-process event. HRESULT ShimProxyCallback::CreateProcess(ICorDebugProcess * pProcess) { m_pShim->PreDispatchEvent(true); QueueCreateProcess(pProcess); return S_OK; } void ShimProxyCallback::QueueCreateProcess(ICorDebugProcess * pProcess) { class CreateProcessEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; public: // Ctor CreateProcessEvent(ICorDebugProcess * pProcess, ShimProcess * pShim) : ManagedEvent(), m_pShim(pShim) { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { // signal that we are in the callback--this will be cleared in code:CordbProcess::ContinueInternal m_pShim->SetInCreateProcess(true); return args.GetCallback1()->CreateProcess(m_pProcess); } // we need access to the shim in Dispatch so we can set the InCreateProcess flag to keep track of // when we are actually in the callback. We need this information to be able to emulate // the hresult logic in v2.0. ShimProcess * m_pShim; }; // end class CreateProcessEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pProcess)) { m_pShim->GetManagedEventQueue()->QueueEvent(new CreateProcessEvent(pProcess, m_pShim)); } } // end of methodICorDebugManagedCallback::CreateProcess // Implementation of ICorDebugManagedCallback::ExitProcess HRESULT ShimProxyCallback::ExitProcess(ICorDebugProcess * pProcess) { m_pShim->PreDispatchEvent(); class ExitProcessEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; public: // Ctor ExitProcessEvent(ICorDebugProcess * pProcess) : ManagedEvent() { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->ExitProcess(m_pProcess); } }; // end class ExitProcessEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pProcess); m_pShim->GetManagedEventQueue()->QueueEvent(new ExitProcessEvent(pProcess)); return S_OK; } // end of methodICorDebugManagedCallback::ExitProcess // Implementation of ICorDebugManagedCallback::CreateThread HRESULT ShimProxyCallback::CreateThread(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) { m_pShim->PreDispatchEvent(); class CreateThreadEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor CreateThreadEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->CreateThread(m_pAppDomain, m_pThread); } }; // end class CreateThreadEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pThread)) { m_pShim->GetManagedEventQueue()->QueueEvent(new CreateThreadEvent(pAppDomain, pThread)); } return S_OK; } // end of methodICorDebugManagedCallback::CreateThread // Implementation of ICorDebugManagedCallback::ExitThread HRESULT ShimProxyCallback::ExitThread(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) { m_pShim->PreDispatchEvent(); class ExitThreadEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor ExitThreadEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->ExitThread(m_pAppDomain, m_pThread); } }; // end class ExitThreadEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pThread); m_pShim->GetManagedEventQueue()->QueueEvent(new ExitThreadEvent(pAppDomain, pThread)); return S_OK; } // end of methodICorDebugManagedCallback::ExitThread // Called from fake attach events. // // Arguments: // pAppDomain - appdomain for the LoadModule debug event // pModule - module being loaded. // // Notes: // See code:ShimProcess::QueueFakeAttachEvents // This is the fake version of code:ShimProxyCallback::LoadModule. // It sends an IPC event to go in process to collect information that we can't yet get via // DAC from out-of-proc. void ShimProxyCallback::FakeLoadModule(ICorDebugAppDomain *pAppDomain, ICorDebugModule *pModule) { class FakeLoadModuleEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugModule > m_pModule; public: // Ctor FakeLoadModuleEvent(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule, ShimProcess * pShim) : ManagedEvent(), m_pShim(pShim) { this->m_pAppDomain.Assign(pAppDomain); this->m_pModule.Assign(pModule); } HRESULT Dispatch(DispatchArgs args) { // signal that we are in the callback--this will be cleared in code:CordbProcess::ContinueInternal m_pShim->SetInLoadModule(true); return args.GetCallback1()->LoadModule(m_pAppDomain, m_pModule); } // we need access to the shim in Dispatch so we can set the InLoadModule flag to keep track // when we are actually in the callback. We need this information to be able to emulate // the hresult logic in v2.0. ShimProcess * m_pShim; }; // end class LoadModuleEvent m_pShim->GetManagedEventQueue()->QueueEvent(new FakeLoadModuleEvent(pAppDomain, pModule, m_pShim)); } // end of methodICorDebugManagedCallback::LoadModule // Implementation of ICorDebugManagedCallback::LoadModule HRESULT ShimProxyCallback::LoadModule(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule) { m_pShim->PreDispatchEvent(); class LoadModuleEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugModule > m_pModule; public: // Ctor LoadModuleEvent(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pModule.Assign(pModule); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LoadModule(m_pAppDomain, m_pModule); } }; // end class LoadModuleEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pModule)) { m_pShim->GetManagedEventQueue()->QueueEvent(new LoadModuleEvent(pAppDomain, pModule)); } return S_OK; } // end of methodICorDebugManagedCallback::LoadModule // Implementation of ICorDebugManagedCallback::UnloadModule HRESULT ShimProxyCallback::UnloadModule(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule) { m_pShim->PreDispatchEvent(); class UnloadModuleEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugModule > m_pModule; public: // Ctor UnloadModuleEvent(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pModule.Assign(pModule); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->UnloadModule(m_pAppDomain, m_pModule); } }; // end class UnloadModuleEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pModule); m_pShim->GetManagedEventQueue()->QueueEvent(new UnloadModuleEvent(pAppDomain, pModule)); return S_OK; } // end of methodICorDebugManagedCallback::UnloadModule // Implementation of ICorDebugManagedCallback::LoadClass HRESULT ShimProxyCallback::LoadClass(ICorDebugAppDomain * pAppDomain, ICorDebugClass * pClass) { m_pShim->PreDispatchEvent(); class LoadClassEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugClass > m_pClass; public: // Ctor LoadClassEvent(ICorDebugAppDomain * pAppDomain, ICorDebugClass * pClass) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pClass.Assign(pClass); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LoadClass(m_pAppDomain, m_pClass); } }; // end class LoadClassEvent m_pShim->GetManagedEventQueue()->QueueEvent(new LoadClassEvent(pAppDomain, pClass)); return S_OK; } // end of methodICorDebugManagedCallback::LoadClass // Implementation of ICorDebugManagedCallback::UnloadClass HRESULT ShimProxyCallback::UnloadClass(ICorDebugAppDomain * pAppDomain, ICorDebugClass * pClass) { m_pShim->PreDispatchEvent(); class UnloadClassEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugClass > m_pClass; public: // Ctor UnloadClassEvent(ICorDebugAppDomain * pAppDomain, ICorDebugClass * pClass) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pClass.Assign(pClass); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->UnloadClass(m_pAppDomain, m_pClass); } }; // end class UnloadClassEvent m_pShim->GetManagedEventQueue()->QueueEvent(new UnloadClassEvent(pAppDomain, pClass)); return S_OK; } // end of methodICorDebugManagedCallback::UnloadClass // Implementation of ICorDebugManagedCallback::DebuggerError HRESULT ShimProxyCallback::DebuggerError(ICorDebugProcess * pProcess, HRESULT errorHR, DWORD errorCode) { m_pShim->PreDispatchEvent(); class DebuggerErrorEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; HRESULT m_errorHR; DWORD m_errorCode; public: // Ctor DebuggerErrorEvent(ICorDebugProcess * pProcess, HRESULT errorHR, DWORD errorCode) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_errorHR = errorHR; this->m_errorCode = errorCode; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->DebuggerError(m_pProcess, m_errorHR, m_errorCode); } }; // end class DebuggerErrorEvent m_pShim->GetManagedEventQueue()->QueueEvent(new DebuggerErrorEvent(pProcess, errorHR, errorCode)); return S_OK; } // end of methodICorDebugManagedCallback::DebuggerError // Implementation of ICorDebugManagedCallback::LogMessage HRESULT ShimProxyCallback::LogMessage(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, LONG lLevel, _In_ LPWSTR pLogSwitchName, _In_ LPWSTR pMessage) { m_pShim->PreDispatchEvent(); class LogMessageEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; LONG m_lLevel; StringCopyHolder m_pLogSwitchName; StringCopyHolder m_pMessage; public: // Ctor LogMessageEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, LONG lLevel, LPCWSTR pLogSwitchName, LPCWSTR pMessage) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_lLevel = lLevel; this->m_pLogSwitchName.AssignCopy(pLogSwitchName); this->m_pMessage.AssignCopy(pMessage); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LogMessage(m_pAppDomain, m_pThread, m_lLevel, const_cast<WCHAR*>((const WCHAR*)m_pLogSwitchName), const_cast<WCHAR*>((const WCHAR*)m_pMessage)); } }; // end class LogMessageEvent m_pShim->GetManagedEventQueue()->QueueEvent(new LogMessageEvent(pAppDomain, pThread, lLevel, pLogSwitchName, pMessage)); return S_OK; } // end of methodICorDebugManagedCallback::LogMessage // Implementation of ICorDebugManagedCallback::LogSwitch HRESULT ShimProxyCallback::LogSwitch(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, LONG lLevel, ULONG ulReason, _In_ LPWSTR pLogSwitchName, _In_ LPWSTR pParentName) { m_pShim->PreDispatchEvent(); class LogSwitchEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; LONG m_lLevel; ULONG m_ulReason; StringCopyHolder m_pLogSwitchName; StringCopyHolder m_pParentName; public: // Ctor LogSwitchEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, LONG lLevel, ULONG ulReason, LPCWSTR pLogSwitchName, LPCWSTR pParentName) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_lLevel = lLevel; this->m_ulReason = ulReason; this->m_pLogSwitchName.AssignCopy(pLogSwitchName); this->m_pParentName.AssignCopy(pParentName); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LogSwitch(m_pAppDomain, m_pThread, m_lLevel, m_ulReason, const_cast<WCHAR*>((const WCHAR*)m_pLogSwitchName), const_cast<WCHAR*>((const WCHAR*)m_pParentName)); } }; // end class LogSwitchEvent m_pShim->GetManagedEventQueue()->QueueEvent(new LogSwitchEvent(pAppDomain, pThread, lLevel, ulReason, pLogSwitchName, pParentName)); return S_OK; } // end of methodICorDebugManagedCallback::LogSwitch // Implementation of ICorDebugManagedCallback::CreateAppDomain HRESULT ShimProxyCallback::CreateAppDomain(ICorDebugProcess * pProcess, ICorDebugAppDomain * pAppDomain) { m_pShim->PreDispatchEvent(); class CreateAppDomainEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; public: // Ctor CreateAppDomainEvent(ICorDebugProcess * pProcess, ICorDebugAppDomain * pAppDomain) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_pAppDomain.Assign(pAppDomain); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->CreateAppDomain(m_pProcess, m_pAppDomain); } }; // end class CreateAppDomainEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pAppDomain)) { m_pShim->GetManagedEventQueue()->QueueEvent(new CreateAppDomainEvent(pProcess, pAppDomain)); } return S_OK; } // end of methodICorDebugManagedCallback::CreateAppDomain // Implementation of ICorDebugManagedCallback::ExitAppDomain HRESULT ShimProxyCallback::ExitAppDomain(ICorDebugProcess * pProcess, ICorDebugAppDomain * pAppDomain) { m_pShim->PreDispatchEvent(); class ExitAppDomainEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; public: // Ctor ExitAppDomainEvent(ICorDebugProcess * pProcess, ICorDebugAppDomain * pAppDomain) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_pAppDomain.Assign(pAppDomain); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->ExitAppDomain(m_pProcess, m_pAppDomain); } }; // end class ExitAppDomainEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pAppDomain); m_pShim->GetManagedEventQueue()->QueueEvent(new ExitAppDomainEvent(pProcess, pAppDomain)); return S_OK; } // end of methodICorDebugManagedCallback::ExitAppDomain // Implementation of ICorDebugManagedCallback::LoadAssembly HRESULT ShimProxyCallback::LoadAssembly(ICorDebugAppDomain * pAppDomain, ICorDebugAssembly * pAssembly) { m_pShim->PreDispatchEvent(); class LoadAssemblyEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugAssembly > m_pAssembly; public: // Ctor LoadAssemblyEvent(ICorDebugAppDomain * pAppDomain, ICorDebugAssembly * pAssembly) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pAssembly.Assign(pAssembly); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LoadAssembly(m_pAppDomain, m_pAssembly); } }; // end class LoadAssemblyEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pAssembly)) { m_pShim->GetManagedEventQueue()->QueueEvent(new LoadAssemblyEvent(pAppDomain, pAssembly)); } return S_OK; } // end of methodICorDebugManagedCallback::LoadAssembly // Implementation of ICorDebugManagedCallback::UnloadAssembly HRESULT ShimProxyCallback::UnloadAssembly(ICorDebugAppDomain * pAppDomain, ICorDebugAssembly * pAssembly) { m_pShim->PreDispatchEvent(); class UnloadAssemblyEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugAssembly > m_pAssembly; public: // Ctor UnloadAssemblyEvent(ICorDebugAppDomain * pAppDomain, ICorDebugAssembly * pAssembly) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pAssembly.Assign(pAssembly); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->UnloadAssembly(m_pAppDomain, m_pAssembly); } }; // end class UnloadAssemblyEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pAssembly); m_pShim->GetManagedEventQueue()->QueueEvent(new UnloadAssemblyEvent(pAppDomain, pAssembly)); return S_OK; } // end of methodICorDebugManagedCallback::UnloadAssembly // Implementation of ICorDebugManagedCallback::ControlCTrap HRESULT ShimProxyCallback::ControlCTrap(ICorDebugProcess * pProcess) { m_pShim->PreDispatchEvent(); class ControlCTrapEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess> m_pProcess; public: // Ctor ControlCTrapEvent(ICorDebugProcess * pProcess) : ManagedEvent() { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { HRESULT hr = args.GetCallback1()->ControlCTrap(m_pProcess); // Pass the callback result to the CordbProcess CordbProcess *proc = static_cast<CordbProcess*>((ICorDebugProcess*) m_pProcess); proc->HandleControlCTrapResult(hr); return hr; } }; // end class ControlCTrapEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ControlCTrapEvent(pProcess)); return S_OK; } // end of methodICorDebugManagedCallback::ControlCTrap // Implementation of ICorDebugManagedCallback::NameChange HRESULT ShimProxyCallback::NameChange(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) { m_pShim->PreDispatchEvent(); class NameChangeEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor NameChangeEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->NameChange(m_pAppDomain, m_pThread); } }; // end class NameChangeEvent m_pShim->GetManagedEventQueue()->QueueEvent(new NameChangeEvent(pAppDomain, pThread)); return S_OK; } // end of methodICorDebugManagedCallback::NameChange // Implementation of ICorDebugManagedCallback::UpdateModuleSymbols HRESULT ShimProxyCallback::UpdateModuleSymbols(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule, IStream * pSymbolStream) { m_pShim->PreDispatchEvent(); class UpdateModuleSymbolsEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugModule > m_pModule; RSExtSmartPtr<IStream > m_pSymbolStream; public: // Ctor UpdateModuleSymbolsEvent(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule, IStream * pSymbolStream) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pModule.Assign(pModule); this->m_pSymbolStream.Assign(pSymbolStream); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->UpdateModuleSymbols(m_pAppDomain, m_pModule, m_pSymbolStream); } }; // end class UpdateModuleSymbolsEvent m_pShim->GetManagedEventQueue()->QueueEvent(new UpdateModuleSymbolsEvent(pAppDomain, pModule, pSymbolStream)); return S_OK; } // end of methodICorDebugManagedCallback::UpdateModuleSymbols // Implementation of ICorDebugManagedCallback::EditAndContinueRemap HRESULT ShimProxyCallback::EditAndContinueRemap(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pFunction, BOOL fAccurate) { m_pShim->PreDispatchEvent(); class EditAndContinueRemapEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugFunction > m_pFunction; BOOL m_fAccurate; public: // Ctor EditAndContinueRemapEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pFunction, BOOL fAccurate) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pFunction.Assign(pFunction); this->m_fAccurate = fAccurate; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->EditAndContinueRemap(m_pAppDomain, m_pThread, m_pFunction, m_fAccurate); } }; // end class EditAndContinueRemapEvent m_pShim->GetManagedEventQueue()->QueueEvent(new EditAndContinueRemapEvent(pAppDomain, pThread, pFunction, fAccurate)); return S_OK; } // end of methodICorDebugManagedCallback::EditAndContinueRemap // Implementation of ICorDebugManagedCallback::BreakpointSetError HRESULT ShimProxyCallback::BreakpointSetError(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugBreakpoint * pBreakpoint, DWORD dwError) { m_pShim->PreDispatchEvent(); class BreakpointSetErrorEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugBreakpoint > m_pBreakpoint; DWORD m_dwError; public: // Ctor BreakpointSetErrorEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugBreakpoint * pBreakpoint, DWORD dwError) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pBreakpoint.Assign(pBreakpoint); this->m_dwError = dwError; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->BreakpointSetError(m_pAppDomain, m_pThread, m_pBreakpoint, m_dwError); } }; // end class BreakpointSetErrorEvent m_pShim->GetManagedEventQueue()->QueueEvent(new BreakpointSetErrorEvent(pAppDomain, pThread, pBreakpoint, dwError)); return S_OK; } // end of methodICorDebugManagedCallback::BreakpointSetError // Implementation of ICorDebugManagedCallback2::FunctionRemapOpportunity HRESULT ShimProxyCallback::FunctionRemapOpportunity(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pOldFunction, ICorDebugFunction * pNewFunction, ULONG32 oldILOffset) { m_pShim->PreDispatchEvent(); class FunctionRemapOpportunityEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugFunction > m_pOldFunction; RSExtSmartPtr<ICorDebugFunction > m_pNewFunction; ULONG32 m_oldILOffset; public: // Ctor FunctionRemapOpportunityEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pOldFunction, ICorDebugFunction * pNewFunction, ULONG32 oldILOffset) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pOldFunction.Assign(pOldFunction); this->m_pNewFunction.Assign(pNewFunction); this->m_oldILOffset = oldILOffset; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->FunctionRemapOpportunity(m_pAppDomain, m_pThread, m_pOldFunction, m_pNewFunction, m_oldILOffset); } }; // end class FunctionRemapOpportunityEvent m_pShim->GetManagedEventQueue()->QueueEvent(new FunctionRemapOpportunityEvent(pAppDomain, pThread, pOldFunction, pNewFunction, oldILOffset)); return S_OK; } // end of methodICorDebugManagedCallback2::FunctionRemapOpportunity // Implementation of ICorDebugManagedCallback2::CreateConnection HRESULT ShimProxyCallback::CreateConnection(ICorDebugProcess * pProcess, CONNID dwConnectionId, _In_ LPWSTR pConnectionName) { m_pShim->PreDispatchEvent(); class CreateConnectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; CONNID m_dwConnectionId; StringCopyHolder m_pConnectionName; public: // Ctor CreateConnectionEvent(ICorDebugProcess * pProcess, CONNID dwConnectionId, LPCWSTR pConnectionName) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_dwConnectionId = dwConnectionId; this->m_pConnectionName.AssignCopy(pConnectionName); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->CreateConnection(m_pProcess, m_dwConnectionId, const_cast<WCHAR*>((const WCHAR*)m_pConnectionName)); } }; // end class CreateConnectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new CreateConnectionEvent(pProcess, dwConnectionId, pConnectionName)); return S_OK; } // end of methodICorDebugManagedCallback2::CreateConnection // Implementation of ICorDebugManagedCallback2::ChangeConnection HRESULT ShimProxyCallback::ChangeConnection(ICorDebugProcess * pProcess, CONNID dwConnectionId) { m_pShim->PreDispatchEvent(); class ChangeConnectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; CONNID m_dwConnectionId; public: // Ctor ChangeConnectionEvent(ICorDebugProcess * pProcess, CONNID dwConnectionId) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_dwConnectionId = dwConnectionId; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->ChangeConnection(m_pProcess, m_dwConnectionId); } }; // end class ChangeConnectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ChangeConnectionEvent(pProcess, dwConnectionId)); return S_OK; } // end of methodICorDebugManagedCallback2::ChangeConnection // Implementation of ICorDebugManagedCallback2::DestroyConnection HRESULT ShimProxyCallback::DestroyConnection(ICorDebugProcess * pProcess, CONNID dwConnectionId) { m_pShim->PreDispatchEvent(); class DestroyConnectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; CONNID m_dwConnectionId; public: // Ctor DestroyConnectionEvent(ICorDebugProcess * pProcess, CONNID dwConnectionId) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_dwConnectionId = dwConnectionId; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->DestroyConnection(m_pProcess, m_dwConnectionId); } }; // end class DestroyConnectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new DestroyConnectionEvent(pProcess, dwConnectionId)); return S_OK; } // end of methodICorDebugManagedCallback2::DestroyConnection // Implementation of ICorDebugManagedCallback2::Exception HRESULT ShimProxyCallback::Exception(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFrame * pFrame, ULONG32 nOffset, CorDebugExceptionCallbackType dwEventType, DWORD dwFlags) { m_pShim->PreDispatchEvent(); class ExceptionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugFrame > m_pFrame; ULONG32 m_nOffset; CorDebugExceptionCallbackType m_dwEventType; DWORD m_dwFlags; public: // Ctor ExceptionEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFrame * pFrame, ULONG32 nOffset, CorDebugExceptionCallbackType dwEventType, DWORD dwFlags) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pFrame.Assign(pFrame); this->m_nOffset = nOffset; this->m_dwEventType = dwEventType; this->m_dwFlags = dwFlags; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->Exception(m_pAppDomain, m_pThread, UpdateFrame(m_pThread, m_pFrame), m_nOffset, m_dwEventType, m_dwFlags); } }; // end class ExceptionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ExceptionEvent(pAppDomain, pThread, pFrame, nOffset, dwEventType, dwFlags)); return S_OK; } // end of methodICorDebugManagedCallback2::Exception // Implementation of ICorDebugManagedCallback2::ExceptionUnwind HRESULT ShimProxyCallback::ExceptionUnwind(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, CorDebugExceptionUnwindCallbackType dwEventType, DWORD dwFlags) { m_pShim->PreDispatchEvent(); class ExceptionUnwindEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; CorDebugExceptionUnwindCallbackType m_dwEventType; DWORD m_dwFlags; public: // Ctor ExceptionUnwindEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, CorDebugExceptionUnwindCallbackType dwEventType, DWORD dwFlags) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_dwEventType = dwEventType; this->m_dwFlags = dwFlags; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->ExceptionUnwind(m_pAppDomain, m_pThread, m_dwEventType, m_dwFlags); } }; // end class ExceptionUnwindEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ExceptionUnwindEvent(pAppDomain, pThread, dwEventType, dwFlags)); return S_OK; } // end of methodICorDebugManagedCallback2::ExceptionUnwind // Implementation of ICorDebugManagedCallback2::FunctionRemapComplete HRESULT ShimProxyCallback::FunctionRemapComplete(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pFunction) { m_pShim->PreDispatchEvent(); class FunctionRemapCompleteEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugFunction > m_pFunction; public: // Ctor FunctionRemapCompleteEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pFunction) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pFunction.Assign(pFunction); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->FunctionRemapComplete(m_pAppDomain, m_pThread, m_pFunction); } }; // end class FunctionRemapCompleteEvent m_pShim->GetManagedEventQueue()->QueueEvent(new FunctionRemapCompleteEvent(pAppDomain, pThread, pFunction)); return S_OK; } // end of methodICorDebugManagedCallback2::FunctionRemapComplete // Implementation of ICorDebugManagedCallback2::MDANotification HRESULT ShimProxyCallback::MDANotification(ICorDebugController * pController, ICorDebugThread * pThread, ICorDebugMDA * pMDA) { m_pShim->PreDispatchEvent(); class MDANotificationEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugController > m_pController; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugMDA > m_pMDA; public: // Ctor MDANotificationEvent(ICorDebugController * pController, ICorDebugThread * pThread, ICorDebugMDA * pMDA) : ManagedEvent(pThread) { this->m_pController.Assign(pController); this->m_pThread.Assign(pThread); this->m_pMDA.Assign(pMDA); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->MDANotification(m_pController, m_pThread, m_pMDA); } }; // end class MDANotificationEvent m_pShim->GetManagedEventQueue()->QueueEvent(new MDANotificationEvent(pController, pThread, pMDA)); return S_OK; } // end of methodICorDebugManagedCallback2::MDANotification // Implementation of ICorDebugManagedCallback3::CustomNotification // Arguments: // input: // pThread - thread on which the notification occurred // pAppDomain - appDomain in which the notification occurred // Return value: S_OK HRESULT ShimProxyCallback::CustomNotification(ICorDebugThread * pThread, ICorDebugAppDomain * pAppDomain) { m_pShim->PreDispatchEvent(); class CustomNotificationEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor CustomNotificationEvent(ICorDebugThread * pThread, ICorDebugAppDomain * pAppDomain) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback3()->CustomNotification(m_pThread, m_pAppDomain); } }; // end class CustomNotificationEvent m_pShim->GetManagedEventQueue()->QueueEvent(new CustomNotificationEvent(pThread, pAppDomain)); return S_OK; } // Implementation of ICorDebugManagedCallback4::BeforeGarbageCollection // Arguments: // input: // pController - controller in which the notification occurred // Return value: S_OK HRESULT ShimProxyCallback::BeforeGarbageCollection(ICorDebugProcess* pProcess) { m_pShim->PreDispatchEvent(); class BeforeGarbageCollectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess> m_pProcess; public: // Ctor BeforeGarbageCollectionEvent(ICorDebugProcess* pProcess) : ManagedEvent() { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback4()->BeforeGarbageCollection(m_pProcess); } }; // end class BeforeGarbageCollectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new BeforeGarbageCollectionEvent(pProcess)); return S_OK; } // Implementation of ICorDebugManagedCallback4::AfterGarbageCollection // Arguments: // input: // pController - controller in which the notification occurred // Return value: S_OK HRESULT ShimProxyCallback::AfterGarbageCollection(ICorDebugProcess* pProcess) { m_pShim->PreDispatchEvent(); class AfterGarbageCollectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; public: // Ctor AfterGarbageCollectionEvent(ICorDebugProcess* pProcess) : ManagedEvent() { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback4()->AfterGarbageCollection(m_pProcess); } }; // end class AfterGarbageCollectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new AfterGarbageCollectionEvent(pProcess)); return S_OK; } // Implementation of ICorDebugManagedCallback4::DataBreakpoint // Arguments: // input: // pProcess - process in which the notification occurred // Return value: S_OK HRESULT ShimProxyCallback::DataBreakpoint(ICorDebugProcess* pProcess, ICorDebugThread* pThread, BYTE* pContext, ULONG32 contextSize) { m_pShim->PreDispatchEvent(); class DataBreakpointEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess> m_pProcess; RSExtSmartPtr<ICorDebugThread> m_pThread; CONTEXT m_context; ULONG32 m_contextSize; public: // Ctor DataBreakpointEvent(ICorDebugProcess* pProcess, ICorDebugThread* pThread, BYTE* pContext, ULONG32 contextSize) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_pThread.Assign(pThread); _ASSERTE(contextSize == sizeof(CONTEXT)); this->m_contextSize = min(contextSize, sizeof(CONTEXT)); memcpy(&(this->m_context), pContext, this->m_contextSize); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback4()->DataBreakpoint(m_pProcess, m_pThread, reinterpret_cast<BYTE*>(&m_context), m_contextSize); } }; // end class AfterGarbageCollectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new DataBreakpointEvent(pProcess, pThread, pContext, contextSize)); return S_OK; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // File: ShimCallback.cpp // // // The V3 ICD debugging APIs have a lower abstraction level than V2. // This provides V2 ICD debugging functionality on top of the V3 debugger object. //***************************************************************************** #include "stdafx.h" #include "safewrap.h" #include "check.h" #include <limits.h> #include "shimpriv.h" // // Callback that shim provides, which then queues up the events. // ShimProxyCallback::ShimProxyCallback(ShimProcess * pShim) : m_cRef(0) { m_pShim = pShim; } // Implement IUnknown ULONG ShimProxyCallback::AddRef() { return InterlockedIncrement(&m_cRef); } ULONG ShimProxyCallback::Release() { LONG ref = InterlockedDecrement(&m_cRef); if (ref == 0) { delete this; return 0; } return ref; } HRESULT ShimProxyCallback::QueryInterface(REFIID riid, void **ppInterface) { if (riid == IID_ICorDebugManagedCallback) { *ppInterface = static_cast<ICorDebugManagedCallback*>(this); } else if (riid == IID_ICorDebugManagedCallback2) { *ppInterface = static_cast<ICorDebugManagedCallback2*>(this); } else if (riid == IID_ICorDebugManagedCallback3) { *ppInterface = static_cast<ICorDebugManagedCallback3*>(this); } else if (riid == IID_ICorDebugManagedCallback4) { *ppInterface = static_cast<ICorDebugManagedCallback4*>(this); } else if (riid == IID_IUnknown) { *ppInterface = static_cast<IUnknown*>(static_cast<ICorDebugManagedCallback*>(this)); } else { *ppInterface = NULL; return E_NOINTERFACE; } this->AddRef(); return S_OK; } // // Map from an old frame to a new one. // // Arguments: // pThread - thread that frame is on // pOldFrame - old frame before the continue, may have gotten neutered. // // Returns: // a new, non-neutered frame that matches the old frame. // // Notes: // Called by event handlers below (which are considered Outside the RS). // No adjust of reference, Thread already has reference. // @dbgtodo shim-stackwalks: this is used for exception callbacks, which may change for V3. ICorDebugFrame * UpdateFrame(ICorDebugThread * pThread, ICorDebugFrame * pOldFrame) { PUBLIC_API_ENTRY_FOR_SHIM(NULL); RSExtSmartPtr<ICorDebugFrame> pNewFrame; EX_TRY { CordbFrame * pFrame = static_cast<CordbFrame *> (pOldFrame); if (pFrame != NULL) { FramePointer fp = pFrame->GetFramePointer(); CordbThread * pThread2 = static_cast<CordbThread *> (pThread); pThread2->FindFrame(&pNewFrame, fp); // } } EX_CATCH { // Do not throw out of this function. Doing so means that the debugger never gets a chance to // continue the debuggee process. This will lead to a hang. Instead, try to make a best effort to // continue with a NULL ICDFrame. VS is able to handle this gracefully. pNewFrame.Assign(NULL); } EX_END_CATCH(SwallowAllExceptions); return pNewFrame; } // // Below this was autogenerated // // Implementation of ICorDebugManagedCallback::Breakpoint HRESULT ShimProxyCallback::Breakpoint(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugBreakpoint * pBreakpoint) { m_pShim->PreDispatchEvent(); class BreakpointEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugBreakpoint > m_pBreakpoint; public: // Ctor BreakpointEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugBreakpoint * pBreakpoint) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pBreakpoint.Assign(pBreakpoint); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->Breakpoint(m_pAppDomain, m_pThread, m_pBreakpoint); } }; // end class BreakpointEvent m_pShim->GetManagedEventQueue()->QueueEvent(new BreakpointEvent(pAppDomain, pThread, pBreakpoint)); return S_OK; } // end of methodICorDebugManagedCallback::Breakpoint // Implementation of ICorDebugManagedCallback::StepComplete HRESULT ShimProxyCallback::StepComplete(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugStepper * pStepper, CorDebugStepReason reason) { m_pShim->PreDispatchEvent(); class StepCompleteEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugStepper > m_pStepper; CorDebugStepReason m_reason; public: // Ctor StepCompleteEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugStepper * pStepper, CorDebugStepReason reason) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pStepper.Assign(pStepper); this->m_reason = reason; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->StepComplete(m_pAppDomain, m_pThread, m_pStepper, m_reason); } }; // end class StepCompleteEvent m_pShim->GetManagedEventQueue()->QueueEvent(new StepCompleteEvent(pAppDomain, pThread, pStepper, reason)); return S_OK; } // end of methodICorDebugManagedCallback::StepComplete // Implementation of ICorDebugManagedCallback::Break HRESULT ShimProxyCallback::Break(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) { m_pShim->PreDispatchEvent(); class BreakEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor BreakEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->Break(m_pAppDomain, m_pThread); } }; // end class BreakEvent m_pShim->GetManagedEventQueue()->QueueEvent(new BreakEvent(pAppDomain, pThread)); return S_OK; } // end of methodICorDebugManagedCallback::Break // Implementation of ICorDebugManagedCallback::Exception HRESULT ShimProxyCallback::Exception(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, BOOL fUnhandled) { m_pShim->PreDispatchEvent(); class ExceptionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; BOOL m_fUnhandled; public: // Ctor ExceptionEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, BOOL fUnhandled) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_fUnhandled = fUnhandled; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->Exception(m_pAppDomain, m_pThread, m_fUnhandled); } }; // end class ExceptionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ExceptionEvent(pAppDomain, pThread, fUnhandled)); return S_OK; } // end of methodICorDebugManagedCallback::Exception // Implementation of ICorDebugManagedCallback::EvalComplete HRESULT ShimProxyCallback::EvalComplete(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugEval * pEval) { m_pShim->PreDispatchEvent(); class EvalCompleteEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugEval > m_pEval; public: // Ctor EvalCompleteEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugEval * pEval) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pEval.Assign(pEval); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->EvalComplete(m_pAppDomain, m_pThread, m_pEval); } }; // end class EvalCompleteEvent m_pShim->GetManagedEventQueue()->QueueEvent(new EvalCompleteEvent(pAppDomain, pThread, pEval)); return S_OK; } // end of methodICorDebugManagedCallback::EvalComplete // Implementation of ICorDebugManagedCallback::EvalException HRESULT ShimProxyCallback::EvalException(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugEval * pEval) { m_pShim->PreDispatchEvent(); class EvalExceptionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugEval > m_pEval; public: // Ctor EvalExceptionEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugEval * pEval) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pEval.Assign(pEval); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->EvalException(m_pAppDomain, m_pThread, m_pEval); } }; // end class EvalExceptionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new EvalExceptionEvent(pAppDomain, pThread, pEval)); return S_OK; } // end of methodICorDebugManagedCallback::EvalException // Implementation of ICorDebugManagedCallback::CreateProcess // This will only be called for a Real create-process event. HRESULT ShimProxyCallback::CreateProcess(ICorDebugProcess * pProcess) { m_pShim->PreDispatchEvent(true); QueueCreateProcess(pProcess); return S_OK; } void ShimProxyCallback::QueueCreateProcess(ICorDebugProcess * pProcess) { class CreateProcessEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; public: // Ctor CreateProcessEvent(ICorDebugProcess * pProcess, ShimProcess * pShim) : ManagedEvent(), m_pShim(pShim) { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { // signal that we are in the callback--this will be cleared in code:CordbProcess::ContinueInternal m_pShim->SetInCreateProcess(true); return args.GetCallback1()->CreateProcess(m_pProcess); } // we need access to the shim in Dispatch so we can set the InCreateProcess flag to keep track of // when we are actually in the callback. We need this information to be able to emulate // the hresult logic in v2.0. ShimProcess * m_pShim; }; // end class CreateProcessEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pProcess)) { m_pShim->GetManagedEventQueue()->QueueEvent(new CreateProcessEvent(pProcess, m_pShim)); } } // end of methodICorDebugManagedCallback::CreateProcess // Implementation of ICorDebugManagedCallback::ExitProcess HRESULT ShimProxyCallback::ExitProcess(ICorDebugProcess * pProcess) { m_pShim->PreDispatchEvent(); class ExitProcessEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; public: // Ctor ExitProcessEvent(ICorDebugProcess * pProcess) : ManagedEvent() { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->ExitProcess(m_pProcess); } }; // end class ExitProcessEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pProcess); m_pShim->GetManagedEventQueue()->QueueEvent(new ExitProcessEvent(pProcess)); return S_OK; } // end of methodICorDebugManagedCallback::ExitProcess // Implementation of ICorDebugManagedCallback::CreateThread HRESULT ShimProxyCallback::CreateThread(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) { m_pShim->PreDispatchEvent(); class CreateThreadEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor CreateThreadEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->CreateThread(m_pAppDomain, m_pThread); } }; // end class CreateThreadEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pThread)) { m_pShim->GetManagedEventQueue()->QueueEvent(new CreateThreadEvent(pAppDomain, pThread)); } return S_OK; } // end of methodICorDebugManagedCallback::CreateThread // Implementation of ICorDebugManagedCallback::ExitThread HRESULT ShimProxyCallback::ExitThread(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) { m_pShim->PreDispatchEvent(); class ExitThreadEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor ExitThreadEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->ExitThread(m_pAppDomain, m_pThread); } }; // end class ExitThreadEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pThread); m_pShim->GetManagedEventQueue()->QueueEvent(new ExitThreadEvent(pAppDomain, pThread)); return S_OK; } // end of methodICorDebugManagedCallback::ExitThread // Called from fake attach events. // // Arguments: // pAppDomain - appdomain for the LoadModule debug event // pModule - module being loaded. // // Notes: // See code:ShimProcess::QueueFakeAttachEvents // This is the fake version of code:ShimProxyCallback::LoadModule. // It sends an IPC event to go in process to collect information that we can't yet get via // DAC from out-of-proc. void ShimProxyCallback::FakeLoadModule(ICorDebugAppDomain *pAppDomain, ICorDebugModule *pModule) { class FakeLoadModuleEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugModule > m_pModule; public: // Ctor FakeLoadModuleEvent(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule, ShimProcess * pShim) : ManagedEvent(), m_pShim(pShim) { this->m_pAppDomain.Assign(pAppDomain); this->m_pModule.Assign(pModule); } HRESULT Dispatch(DispatchArgs args) { // signal that we are in the callback--this will be cleared in code:CordbProcess::ContinueInternal m_pShim->SetInLoadModule(true); return args.GetCallback1()->LoadModule(m_pAppDomain, m_pModule); } // we need access to the shim in Dispatch so we can set the InLoadModule flag to keep track // when we are actually in the callback. We need this information to be able to emulate // the hresult logic in v2.0. ShimProcess * m_pShim; }; // end class LoadModuleEvent m_pShim->GetManagedEventQueue()->QueueEvent(new FakeLoadModuleEvent(pAppDomain, pModule, m_pShim)); } // end of methodICorDebugManagedCallback::LoadModule // Implementation of ICorDebugManagedCallback::LoadModule HRESULT ShimProxyCallback::LoadModule(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule) { m_pShim->PreDispatchEvent(); class LoadModuleEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugModule > m_pModule; public: // Ctor LoadModuleEvent(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pModule.Assign(pModule); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LoadModule(m_pAppDomain, m_pModule); } }; // end class LoadModuleEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pModule)) { m_pShim->GetManagedEventQueue()->QueueEvent(new LoadModuleEvent(pAppDomain, pModule)); } return S_OK; } // end of methodICorDebugManagedCallback::LoadModule // Implementation of ICorDebugManagedCallback::UnloadModule HRESULT ShimProxyCallback::UnloadModule(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule) { m_pShim->PreDispatchEvent(); class UnloadModuleEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugModule > m_pModule; public: // Ctor UnloadModuleEvent(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pModule.Assign(pModule); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->UnloadModule(m_pAppDomain, m_pModule); } }; // end class UnloadModuleEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pModule); m_pShim->GetManagedEventQueue()->QueueEvent(new UnloadModuleEvent(pAppDomain, pModule)); return S_OK; } // end of methodICorDebugManagedCallback::UnloadModule // Implementation of ICorDebugManagedCallback::LoadClass HRESULT ShimProxyCallback::LoadClass(ICorDebugAppDomain * pAppDomain, ICorDebugClass * pClass) { m_pShim->PreDispatchEvent(); class LoadClassEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugClass > m_pClass; public: // Ctor LoadClassEvent(ICorDebugAppDomain * pAppDomain, ICorDebugClass * pClass) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pClass.Assign(pClass); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LoadClass(m_pAppDomain, m_pClass); } }; // end class LoadClassEvent m_pShim->GetManagedEventQueue()->QueueEvent(new LoadClassEvent(pAppDomain, pClass)); return S_OK; } // end of methodICorDebugManagedCallback::LoadClass // Implementation of ICorDebugManagedCallback::UnloadClass HRESULT ShimProxyCallback::UnloadClass(ICorDebugAppDomain * pAppDomain, ICorDebugClass * pClass) { m_pShim->PreDispatchEvent(); class UnloadClassEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugClass > m_pClass; public: // Ctor UnloadClassEvent(ICorDebugAppDomain * pAppDomain, ICorDebugClass * pClass) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pClass.Assign(pClass); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->UnloadClass(m_pAppDomain, m_pClass); } }; // end class UnloadClassEvent m_pShim->GetManagedEventQueue()->QueueEvent(new UnloadClassEvent(pAppDomain, pClass)); return S_OK; } // end of methodICorDebugManagedCallback::UnloadClass // Implementation of ICorDebugManagedCallback::DebuggerError HRESULT ShimProxyCallback::DebuggerError(ICorDebugProcess * pProcess, HRESULT errorHR, DWORD errorCode) { m_pShim->PreDispatchEvent(); class DebuggerErrorEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; HRESULT m_errorHR; DWORD m_errorCode; public: // Ctor DebuggerErrorEvent(ICorDebugProcess * pProcess, HRESULT errorHR, DWORD errorCode) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_errorHR = errorHR; this->m_errorCode = errorCode; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->DebuggerError(m_pProcess, m_errorHR, m_errorCode); } }; // end class DebuggerErrorEvent m_pShim->GetManagedEventQueue()->QueueEvent(new DebuggerErrorEvent(pProcess, errorHR, errorCode)); return S_OK; } // end of methodICorDebugManagedCallback::DebuggerError // Implementation of ICorDebugManagedCallback::LogMessage HRESULT ShimProxyCallback::LogMessage(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, LONG lLevel, _In_ LPWSTR pLogSwitchName, _In_ LPWSTR pMessage) { m_pShim->PreDispatchEvent(); class LogMessageEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; LONG m_lLevel; StringCopyHolder m_pLogSwitchName; StringCopyHolder m_pMessage; public: // Ctor LogMessageEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, LONG lLevel, LPCWSTR pLogSwitchName, LPCWSTR pMessage) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_lLevel = lLevel; this->m_pLogSwitchName.AssignCopy(pLogSwitchName); this->m_pMessage.AssignCopy(pMessage); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LogMessage(m_pAppDomain, m_pThread, m_lLevel, const_cast<WCHAR*>((const WCHAR*)m_pLogSwitchName), const_cast<WCHAR*>((const WCHAR*)m_pMessage)); } }; // end class LogMessageEvent m_pShim->GetManagedEventQueue()->QueueEvent(new LogMessageEvent(pAppDomain, pThread, lLevel, pLogSwitchName, pMessage)); return S_OK; } // end of methodICorDebugManagedCallback::LogMessage // Implementation of ICorDebugManagedCallback::LogSwitch HRESULT ShimProxyCallback::LogSwitch(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, LONG lLevel, ULONG ulReason, _In_ LPWSTR pLogSwitchName, _In_ LPWSTR pParentName) { m_pShim->PreDispatchEvent(); class LogSwitchEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; LONG m_lLevel; ULONG m_ulReason; StringCopyHolder m_pLogSwitchName; StringCopyHolder m_pParentName; public: // Ctor LogSwitchEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, LONG lLevel, ULONG ulReason, LPCWSTR pLogSwitchName, LPCWSTR pParentName) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_lLevel = lLevel; this->m_ulReason = ulReason; this->m_pLogSwitchName.AssignCopy(pLogSwitchName); this->m_pParentName.AssignCopy(pParentName); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LogSwitch(m_pAppDomain, m_pThread, m_lLevel, m_ulReason, const_cast<WCHAR*>((const WCHAR*)m_pLogSwitchName), const_cast<WCHAR*>((const WCHAR*)m_pParentName)); } }; // end class LogSwitchEvent m_pShim->GetManagedEventQueue()->QueueEvent(new LogSwitchEvent(pAppDomain, pThread, lLevel, ulReason, pLogSwitchName, pParentName)); return S_OK; } // end of methodICorDebugManagedCallback::LogSwitch // Implementation of ICorDebugManagedCallback::CreateAppDomain HRESULT ShimProxyCallback::CreateAppDomain(ICorDebugProcess * pProcess, ICorDebugAppDomain * pAppDomain) { m_pShim->PreDispatchEvent(); class CreateAppDomainEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; public: // Ctor CreateAppDomainEvent(ICorDebugProcess * pProcess, ICorDebugAppDomain * pAppDomain) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_pAppDomain.Assign(pAppDomain); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->CreateAppDomain(m_pProcess, m_pAppDomain); } }; // end class CreateAppDomainEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pAppDomain)) { m_pShim->GetManagedEventQueue()->QueueEvent(new CreateAppDomainEvent(pProcess, pAppDomain)); } return S_OK; } // end of methodICorDebugManagedCallback::CreateAppDomain // Implementation of ICorDebugManagedCallback::ExitAppDomain HRESULT ShimProxyCallback::ExitAppDomain(ICorDebugProcess * pProcess, ICorDebugAppDomain * pAppDomain) { m_pShim->PreDispatchEvent(); class ExitAppDomainEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; public: // Ctor ExitAppDomainEvent(ICorDebugProcess * pProcess, ICorDebugAppDomain * pAppDomain) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_pAppDomain.Assign(pAppDomain); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->ExitAppDomain(m_pProcess, m_pAppDomain); } }; // end class ExitAppDomainEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pAppDomain); m_pShim->GetManagedEventQueue()->QueueEvent(new ExitAppDomainEvent(pProcess, pAppDomain)); return S_OK; } // end of methodICorDebugManagedCallback::ExitAppDomain // Implementation of ICorDebugManagedCallback::LoadAssembly HRESULT ShimProxyCallback::LoadAssembly(ICorDebugAppDomain * pAppDomain, ICorDebugAssembly * pAssembly) { m_pShim->PreDispatchEvent(); class LoadAssemblyEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugAssembly > m_pAssembly; public: // Ctor LoadAssemblyEvent(ICorDebugAppDomain * pAppDomain, ICorDebugAssembly * pAssembly) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pAssembly.Assign(pAssembly); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->LoadAssembly(m_pAppDomain, m_pAssembly); } }; // end class LoadAssemblyEvent if (!m_pShim->RemoveDuplicateCreationEventIfPresent(pAssembly)) { m_pShim->GetManagedEventQueue()->QueueEvent(new LoadAssemblyEvent(pAppDomain, pAssembly)); } return S_OK; } // end of methodICorDebugManagedCallback::LoadAssembly // Implementation of ICorDebugManagedCallback::UnloadAssembly HRESULT ShimProxyCallback::UnloadAssembly(ICorDebugAppDomain * pAppDomain, ICorDebugAssembly * pAssembly) { m_pShim->PreDispatchEvent(); class UnloadAssemblyEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugAssembly > m_pAssembly; public: // Ctor UnloadAssemblyEvent(ICorDebugAppDomain * pAppDomain, ICorDebugAssembly * pAssembly) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pAssembly.Assign(pAssembly); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->UnloadAssembly(m_pAppDomain, m_pAssembly); } }; // end class UnloadAssemblyEvent m_pShim->RemoveDuplicateCreationEventIfPresent(pAssembly); m_pShim->GetManagedEventQueue()->QueueEvent(new UnloadAssemblyEvent(pAppDomain, pAssembly)); return S_OK; } // end of methodICorDebugManagedCallback::UnloadAssembly // Implementation of ICorDebugManagedCallback::ControlCTrap HRESULT ShimProxyCallback::ControlCTrap(ICorDebugProcess * pProcess) { m_pShim->PreDispatchEvent(); class ControlCTrapEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess> m_pProcess; public: // Ctor ControlCTrapEvent(ICorDebugProcess * pProcess) : ManagedEvent() { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { HRESULT hr = args.GetCallback1()->ControlCTrap(m_pProcess); // Pass the callback result to the CordbProcess CordbProcess *proc = static_cast<CordbProcess*>((ICorDebugProcess*) m_pProcess); proc->HandleControlCTrapResult(hr); return hr; } }; // end class ControlCTrapEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ControlCTrapEvent(pProcess)); return S_OK; } // end of methodICorDebugManagedCallback::ControlCTrap // Implementation of ICorDebugManagedCallback::NameChange HRESULT ShimProxyCallback::NameChange(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) { m_pShim->PreDispatchEvent(); class NameChangeEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor NameChangeEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->NameChange(m_pAppDomain, m_pThread); } }; // end class NameChangeEvent m_pShim->GetManagedEventQueue()->QueueEvent(new NameChangeEvent(pAppDomain, pThread)); return S_OK; } // end of methodICorDebugManagedCallback::NameChange // Implementation of ICorDebugManagedCallback::UpdateModuleSymbols HRESULT ShimProxyCallback::UpdateModuleSymbols(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule, IStream * pSymbolStream) { m_pShim->PreDispatchEvent(); class UpdateModuleSymbolsEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugModule > m_pModule; RSExtSmartPtr<IStream > m_pSymbolStream; public: // Ctor UpdateModuleSymbolsEvent(ICorDebugAppDomain * pAppDomain, ICorDebugModule * pModule, IStream * pSymbolStream) : ManagedEvent() { this->m_pAppDomain.Assign(pAppDomain); this->m_pModule.Assign(pModule); this->m_pSymbolStream.Assign(pSymbolStream); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->UpdateModuleSymbols(m_pAppDomain, m_pModule, m_pSymbolStream); } }; // end class UpdateModuleSymbolsEvent m_pShim->GetManagedEventQueue()->QueueEvent(new UpdateModuleSymbolsEvent(pAppDomain, pModule, pSymbolStream)); return S_OK; } // end of methodICorDebugManagedCallback::UpdateModuleSymbols // Implementation of ICorDebugManagedCallback::EditAndContinueRemap HRESULT ShimProxyCallback::EditAndContinueRemap(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pFunction, BOOL fAccurate) { m_pShim->PreDispatchEvent(); class EditAndContinueRemapEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugFunction > m_pFunction; BOOL m_fAccurate; public: // Ctor EditAndContinueRemapEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pFunction, BOOL fAccurate) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pFunction.Assign(pFunction); this->m_fAccurate = fAccurate; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->EditAndContinueRemap(m_pAppDomain, m_pThread, m_pFunction, m_fAccurate); } }; // end class EditAndContinueRemapEvent m_pShim->GetManagedEventQueue()->QueueEvent(new EditAndContinueRemapEvent(pAppDomain, pThread, pFunction, fAccurate)); return S_OK; } // end of methodICorDebugManagedCallback::EditAndContinueRemap // Implementation of ICorDebugManagedCallback::BreakpointSetError HRESULT ShimProxyCallback::BreakpointSetError(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugBreakpoint * pBreakpoint, DWORD dwError) { m_pShim->PreDispatchEvent(); class BreakpointSetErrorEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugBreakpoint > m_pBreakpoint; DWORD m_dwError; public: // Ctor BreakpointSetErrorEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugBreakpoint * pBreakpoint, DWORD dwError) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pBreakpoint.Assign(pBreakpoint); this->m_dwError = dwError; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback1()->BreakpointSetError(m_pAppDomain, m_pThread, m_pBreakpoint, m_dwError); } }; // end class BreakpointSetErrorEvent m_pShim->GetManagedEventQueue()->QueueEvent(new BreakpointSetErrorEvent(pAppDomain, pThread, pBreakpoint, dwError)); return S_OK; } // end of methodICorDebugManagedCallback::BreakpointSetError // Implementation of ICorDebugManagedCallback2::FunctionRemapOpportunity HRESULT ShimProxyCallback::FunctionRemapOpportunity(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pOldFunction, ICorDebugFunction * pNewFunction, ULONG32 oldILOffset) { m_pShim->PreDispatchEvent(); class FunctionRemapOpportunityEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugFunction > m_pOldFunction; RSExtSmartPtr<ICorDebugFunction > m_pNewFunction; ULONG32 m_oldILOffset; public: // Ctor FunctionRemapOpportunityEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pOldFunction, ICorDebugFunction * pNewFunction, ULONG32 oldILOffset) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pOldFunction.Assign(pOldFunction); this->m_pNewFunction.Assign(pNewFunction); this->m_oldILOffset = oldILOffset; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->FunctionRemapOpportunity(m_pAppDomain, m_pThread, m_pOldFunction, m_pNewFunction, m_oldILOffset); } }; // end class FunctionRemapOpportunityEvent m_pShim->GetManagedEventQueue()->QueueEvent(new FunctionRemapOpportunityEvent(pAppDomain, pThread, pOldFunction, pNewFunction, oldILOffset)); return S_OK; } // end of methodICorDebugManagedCallback2::FunctionRemapOpportunity // Implementation of ICorDebugManagedCallback2::CreateConnection HRESULT ShimProxyCallback::CreateConnection(ICorDebugProcess * pProcess, CONNID dwConnectionId, _In_ LPWSTR pConnectionName) { m_pShim->PreDispatchEvent(); class CreateConnectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; CONNID m_dwConnectionId; StringCopyHolder m_pConnectionName; public: // Ctor CreateConnectionEvent(ICorDebugProcess * pProcess, CONNID dwConnectionId, LPCWSTR pConnectionName) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_dwConnectionId = dwConnectionId; this->m_pConnectionName.AssignCopy(pConnectionName); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->CreateConnection(m_pProcess, m_dwConnectionId, const_cast<WCHAR*>((const WCHAR*)m_pConnectionName)); } }; // end class CreateConnectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new CreateConnectionEvent(pProcess, dwConnectionId, pConnectionName)); return S_OK; } // end of methodICorDebugManagedCallback2::CreateConnection // Implementation of ICorDebugManagedCallback2::ChangeConnection HRESULT ShimProxyCallback::ChangeConnection(ICorDebugProcess * pProcess, CONNID dwConnectionId) { m_pShim->PreDispatchEvent(); class ChangeConnectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; CONNID m_dwConnectionId; public: // Ctor ChangeConnectionEvent(ICorDebugProcess * pProcess, CONNID dwConnectionId) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_dwConnectionId = dwConnectionId; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->ChangeConnection(m_pProcess, m_dwConnectionId); } }; // end class ChangeConnectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ChangeConnectionEvent(pProcess, dwConnectionId)); return S_OK; } // end of methodICorDebugManagedCallback2::ChangeConnection // Implementation of ICorDebugManagedCallback2::DestroyConnection HRESULT ShimProxyCallback::DestroyConnection(ICorDebugProcess * pProcess, CONNID dwConnectionId) { m_pShim->PreDispatchEvent(); class DestroyConnectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; CONNID m_dwConnectionId; public: // Ctor DestroyConnectionEvent(ICorDebugProcess * pProcess, CONNID dwConnectionId) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_dwConnectionId = dwConnectionId; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->DestroyConnection(m_pProcess, m_dwConnectionId); } }; // end class DestroyConnectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new DestroyConnectionEvent(pProcess, dwConnectionId)); return S_OK; } // end of methodICorDebugManagedCallback2::DestroyConnection // Implementation of ICorDebugManagedCallback2::Exception HRESULT ShimProxyCallback::Exception(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFrame * pFrame, ULONG32 nOffset, CorDebugExceptionCallbackType dwEventType, DWORD dwFlags) { m_pShim->PreDispatchEvent(); class ExceptionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugFrame > m_pFrame; ULONG32 m_nOffset; CorDebugExceptionCallbackType m_dwEventType; DWORD m_dwFlags; public: // Ctor ExceptionEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFrame * pFrame, ULONG32 nOffset, CorDebugExceptionCallbackType dwEventType, DWORD dwFlags) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pFrame.Assign(pFrame); this->m_nOffset = nOffset; this->m_dwEventType = dwEventType; this->m_dwFlags = dwFlags; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->Exception(m_pAppDomain, m_pThread, UpdateFrame(m_pThread, m_pFrame), m_nOffset, m_dwEventType, m_dwFlags); } }; // end class ExceptionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ExceptionEvent(pAppDomain, pThread, pFrame, nOffset, dwEventType, dwFlags)); return S_OK; } // end of methodICorDebugManagedCallback2::Exception // Implementation of ICorDebugManagedCallback2::ExceptionUnwind HRESULT ShimProxyCallback::ExceptionUnwind(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, CorDebugExceptionUnwindCallbackType dwEventType, DWORD dwFlags) { m_pShim->PreDispatchEvent(); class ExceptionUnwindEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; CorDebugExceptionUnwindCallbackType m_dwEventType; DWORD m_dwFlags; public: // Ctor ExceptionUnwindEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, CorDebugExceptionUnwindCallbackType dwEventType, DWORD dwFlags) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_dwEventType = dwEventType; this->m_dwFlags = dwFlags; } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->ExceptionUnwind(m_pAppDomain, m_pThread, m_dwEventType, m_dwFlags); } }; // end class ExceptionUnwindEvent m_pShim->GetManagedEventQueue()->QueueEvent(new ExceptionUnwindEvent(pAppDomain, pThread, dwEventType, dwFlags)); return S_OK; } // end of methodICorDebugManagedCallback2::ExceptionUnwind // Implementation of ICorDebugManagedCallback2::FunctionRemapComplete HRESULT ShimProxyCallback::FunctionRemapComplete(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pFunction) { m_pShim->PreDispatchEvent(); class FunctionRemapCompleteEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugFunction > m_pFunction; public: // Ctor FunctionRemapCompleteEvent(ICorDebugAppDomain * pAppDomain, ICorDebugThread * pThread, ICorDebugFunction * pFunction) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); this->m_pFunction.Assign(pFunction); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->FunctionRemapComplete(m_pAppDomain, m_pThread, m_pFunction); } }; // end class FunctionRemapCompleteEvent m_pShim->GetManagedEventQueue()->QueueEvent(new FunctionRemapCompleteEvent(pAppDomain, pThread, pFunction)); return S_OK; } // end of methodICorDebugManagedCallback2::FunctionRemapComplete // Implementation of ICorDebugManagedCallback2::MDANotification HRESULT ShimProxyCallback::MDANotification(ICorDebugController * pController, ICorDebugThread * pThread, ICorDebugMDA * pMDA) { m_pShim->PreDispatchEvent(); class MDANotificationEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugController > m_pController; RSExtSmartPtr<ICorDebugThread > m_pThread; RSExtSmartPtr<ICorDebugMDA > m_pMDA; public: // Ctor MDANotificationEvent(ICorDebugController * pController, ICorDebugThread * pThread, ICorDebugMDA * pMDA) : ManagedEvent(pThread) { this->m_pController.Assign(pController); this->m_pThread.Assign(pThread); this->m_pMDA.Assign(pMDA); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback2()->MDANotification(m_pController, m_pThread, m_pMDA); } }; // end class MDANotificationEvent m_pShim->GetManagedEventQueue()->QueueEvent(new MDANotificationEvent(pController, pThread, pMDA)); return S_OK; } // end of methodICorDebugManagedCallback2::MDANotification // Implementation of ICorDebugManagedCallback3::CustomNotification // Arguments: // input: // pThread - thread on which the notification occurred // pAppDomain - appDomain in which the notification occurred // Return value: S_OK HRESULT ShimProxyCallback::CustomNotification(ICorDebugThread * pThread, ICorDebugAppDomain * pAppDomain) { m_pShim->PreDispatchEvent(); class CustomNotificationEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugAppDomain > m_pAppDomain; RSExtSmartPtr<ICorDebugThread > m_pThread; public: // Ctor CustomNotificationEvent(ICorDebugThread * pThread, ICorDebugAppDomain * pAppDomain) : ManagedEvent(pThread) { this->m_pAppDomain.Assign(pAppDomain); this->m_pThread.Assign(pThread); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback3()->CustomNotification(m_pThread, m_pAppDomain); } }; // end class CustomNotificationEvent m_pShim->GetManagedEventQueue()->QueueEvent(new CustomNotificationEvent(pThread, pAppDomain)); return S_OK; } // Implementation of ICorDebugManagedCallback4::BeforeGarbageCollection // Arguments: // input: // pController - controller in which the notification occurred // Return value: S_OK HRESULT ShimProxyCallback::BeforeGarbageCollection(ICorDebugProcess* pProcess) { m_pShim->PreDispatchEvent(); class BeforeGarbageCollectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess> m_pProcess; public: // Ctor BeforeGarbageCollectionEvent(ICorDebugProcess* pProcess) : ManagedEvent() { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback4()->BeforeGarbageCollection(m_pProcess); } }; // end class BeforeGarbageCollectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new BeforeGarbageCollectionEvent(pProcess)); return S_OK; } // Implementation of ICorDebugManagedCallback4::AfterGarbageCollection // Arguments: // input: // pController - controller in which the notification occurred // Return value: S_OK HRESULT ShimProxyCallback::AfterGarbageCollection(ICorDebugProcess* pProcess) { m_pShim->PreDispatchEvent(); class AfterGarbageCollectionEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess > m_pProcess; public: // Ctor AfterGarbageCollectionEvent(ICorDebugProcess* pProcess) : ManagedEvent() { this->m_pProcess.Assign(pProcess); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback4()->AfterGarbageCollection(m_pProcess); } }; // end class AfterGarbageCollectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new AfterGarbageCollectionEvent(pProcess)); return S_OK; } // Implementation of ICorDebugManagedCallback4::DataBreakpoint // Arguments: // input: // pProcess - process in which the notification occurred // Return value: S_OK HRESULT ShimProxyCallback::DataBreakpoint(ICorDebugProcess* pProcess, ICorDebugThread* pThread, BYTE* pContext, ULONG32 contextSize) { m_pShim->PreDispatchEvent(); class DataBreakpointEvent : public ManagedEvent { // callbacks parameters. These are strong references RSExtSmartPtr<ICorDebugProcess> m_pProcess; RSExtSmartPtr<ICorDebugThread> m_pThread; CONTEXT m_context; ULONG32 m_contextSize; public: // Ctor DataBreakpointEvent(ICorDebugProcess* pProcess, ICorDebugThread* pThread, BYTE* pContext, ULONG32 contextSize) : ManagedEvent() { this->m_pProcess.Assign(pProcess); this->m_pThread.Assign(pThread); _ASSERTE(contextSize == sizeof(CONTEXT)); this->m_contextSize = min(contextSize, sizeof(CONTEXT)); memcpy(&(this->m_context), pContext, this->m_contextSize); } HRESULT Dispatch(DispatchArgs args) { return args.GetCallback4()->DataBreakpoint(m_pProcess, m_pThread, reinterpret_cast<BYTE*>(&m_context), m_contextSize); } }; // end class AfterGarbageCollectionEvent m_pShim->GetManagedEventQueue()->QueueEvent(new DataBreakpointEvent(pProcess, pThread, pContext, contextSize)); return S_OK; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/mono/mono/metadata/icall-internals.h
/** * \file * Copyright 2016 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __MONO_METADATA_ICALL_INTERNALS_H__ #define __MONO_METADATA_ICALL_INTERNALS_H__ #include <config.h> #include <glib.h> #include <mono/metadata/object-internals.h> gconstpointer mono_lookup_internal_call_full (MonoMethod *method, gboolean warn_on_missing, mono_bool *uses_handles, mono_bool *foreign); MONO_PAL_API void mono_add_internal_call_with_flags (const char *name, const void* method, gboolean cooperative); MONO_PROFILER_API void mono_add_internal_call_internal (const char *name, gconstpointer method); MonoAssembly* mono_runtime_get_caller_from_stack_mark (MonoStackCrawlMark *stack_mark); typedef enum { MONO_ICALL_FLAGS_NONE = 0, MONO_ICALL_FLAGS_FOREIGN = 1 << 1, MONO_ICALL_FLAGS_USES_HANDLES = 1 << 2, MONO_ICALL_FLAGS_COOPERATIVE = 1 << 3, MONO_ICALL_FLAGS_NO_WRAPPER = 1 << 4 } MonoInternalCallFlags; gconstpointer mono_lookup_internal_call_full_with_flags (MonoMethod *method, gboolean warn_on_missing, guint32 *flags); void mono_dangerous_add_internal_call_coop (const char *name, const void* method); void mono_dangerous_add_internal_call_no_wrapper (const char *name, const void* method); gboolean mono_is_missing_icall_addr (gconstpointer addr); #ifdef __cplusplus #if !HOST_ANDROID #include <type_traits> #endif template <typename T> #if HOST_ANDROID inline void #else inline typename std::enable_if<std::is_function<T>::value || std::is_function<typename std::remove_pointer<T>::type>::value >::type #endif mono_add_internal_call_with_flags (const char *name, T method, gboolean cooperative) { return mono_add_internal_call_with_flags (name, (const void*)method, cooperative); } template <typename T> #if HOST_ANDROID inline void #else inline typename std::enable_if<std::is_function<T>::value || std::is_function<typename std::remove_pointer<T>::type>::value >::type #endif mono_add_internal_call_internal (const char *name, T method) { return mono_add_internal_call_internal (name, (const void*)method); } #endif // __cplusplus #endif /* __MONO_METADATA_ICALL_INTERNALS_H__ */
/** * \file * Copyright 2016 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __MONO_METADATA_ICALL_INTERNALS_H__ #define __MONO_METADATA_ICALL_INTERNALS_H__ #include <config.h> #include <glib.h> #include <mono/metadata/object-internals.h> gconstpointer mono_lookup_internal_call_full (MonoMethod *method, gboolean warn_on_missing, mono_bool *uses_handles, mono_bool *foreign); MONO_PAL_API void mono_add_internal_call_with_flags (const char *name, const void* method, gboolean cooperative); MONO_PROFILER_API void mono_add_internal_call_internal (const char *name, gconstpointer method); MonoAssembly* mono_runtime_get_caller_from_stack_mark (MonoStackCrawlMark *stack_mark); typedef enum { MONO_ICALL_FLAGS_NONE = 0, MONO_ICALL_FLAGS_FOREIGN = 1 << 1, MONO_ICALL_FLAGS_USES_HANDLES = 1 << 2, MONO_ICALL_FLAGS_COOPERATIVE = 1 << 3, MONO_ICALL_FLAGS_NO_WRAPPER = 1 << 4 } MonoInternalCallFlags; gconstpointer mono_lookup_internal_call_full_with_flags (MonoMethod *method, gboolean warn_on_missing, guint32 *flags); void mono_dangerous_add_internal_call_coop (const char *name, const void* method); void mono_dangerous_add_internal_call_no_wrapper (const char *name, const void* method); gboolean mono_is_missing_icall_addr (gconstpointer addr); #ifdef __cplusplus #if !HOST_ANDROID #include <type_traits> #endif template <typename T> #if HOST_ANDROID inline void #else inline typename std::enable_if<std::is_function<T>::value || std::is_function<typename std::remove_pointer<T>::type>::value >::type #endif mono_add_internal_call_with_flags (const char *name, T method, gboolean cooperative) { return mono_add_internal_call_with_flags (name, (const void*)method, cooperative); } template <typename T> #if HOST_ANDROID inline void #else inline typename std::enable_if<std::is_function<T>::value || std::is_function<typename std::remove_pointer<T>::type>::value >::type #endif mono_add_internal_call_internal (const char *name, T method) { return mono_add_internal_call_internal (name, (const void*)method); } #endif // __cplusplus #endif /* __MONO_METADATA_ICALL_INTERNALS_H__ */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/c_runtime/_snprintf_s/test14/test14.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test14.c ** ** Purpose: Tests sprintf_s with exponential format doubles (lowercase) ** ** **==========================================================================*/ #include <palsuite.h> #include "../_snprintf_s.h" /* * Notes: memcmp is used, as is strlen. */ PALTEST(c_runtime__snprintf_s_test14_paltest_snprintf_test14, "c_runtime/_snprintf_s/test14/paltest_snprintf_test14") { double val = 256.0; double neg = -256.0; if (PAL_Initialize(argc, argv) != 0) { return FAIL; } DoDoubleTest("foo %e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %le", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %he", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %Le", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %I64e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %14e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %-14e", val, "foo 2.560000e+002 ", "foo 2.560000e+02 "); DoDoubleTest("foo %.1e", val, "foo 2.6e+002", "foo 2.6e+02"); DoDoubleTest("foo %.8e", val, "foo 2.56000000e+002", "foo 2.56000000e+02"); DoDoubleTest("foo %014e", val, "foo 02.560000e+002", "foo 002.560000e+02"); DoDoubleTest("foo %#e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %+e", val, "foo +2.560000e+002", "foo +2.560000e+02"); DoDoubleTest("foo % e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %+e", neg, "foo -2.560000e+002", "foo -2.560000e+02"); DoDoubleTest("foo % e", neg, "foo -2.560000e+002", "foo -2.560000e+02"); 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: test14.c ** ** Purpose: Tests sprintf_s with exponential format doubles (lowercase) ** ** **==========================================================================*/ #include <palsuite.h> #include "../_snprintf_s.h" /* * Notes: memcmp is used, as is strlen. */ PALTEST(c_runtime__snprintf_s_test14_paltest_snprintf_test14, "c_runtime/_snprintf_s/test14/paltest_snprintf_test14") { double val = 256.0; double neg = -256.0; if (PAL_Initialize(argc, argv) != 0) { return FAIL; } DoDoubleTest("foo %e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %le", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %he", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %Le", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %I64e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %14e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %-14e", val, "foo 2.560000e+002 ", "foo 2.560000e+02 "); DoDoubleTest("foo %.1e", val, "foo 2.6e+002", "foo 2.6e+02"); DoDoubleTest("foo %.8e", val, "foo 2.56000000e+002", "foo 2.56000000e+02"); DoDoubleTest("foo %014e", val, "foo 02.560000e+002", "foo 002.560000e+02"); DoDoubleTest("foo %#e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %+e", val, "foo +2.560000e+002", "foo +2.560000e+02"); DoDoubleTest("foo % e", val, "foo 2.560000e+002", "foo 2.560000e+02"); DoDoubleTest("foo %+e", neg, "foo -2.560000e+002", "foo -2.560000e+02"); DoDoubleTest("foo % e", neg, "foo -2.560000e+002", "foo -2.560000e+02"); PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/c_runtime/strtod/test1/test1.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*===================================================================== ** ** Source: test1.c ** ** Purpose: Tests the PAL implementation of the strtod function. ** Convert a number of strings to doubles. Ensure they ** convert correctly. ** ** **===================================================================*/ #include <palsuite.h> struct testCase { double CorrectResult; /* The returned double value */ char ResultString[20]; /* The remainder string */ char string[20]; /* The test string */ }; PALTEST(c_runtime_strtod_test1_paltest_strtod_test1, "c_runtime/strtod/test1/paltest_strtod_test1") { char * endptr; double result; int i; struct testCase testCases[] = { {1234,"","1234"}, {-1234,"","-1234"}, {1234.44,"","1234.44"}, {1234e-5,"","1234e-5"}, {1234e+5,"","1234e+5"}, {12345E5,"","12345e5"}, {1234.657e-8,"","1234.657e-8"}, {1234567e-8,"foo","1234567e-8foo"}, {999,"foo","999 foo"}, {7,"foo"," 7foo"}, {0,"a7","a7"}, {-777777,"z zz","-777777z zz"} }; /* * Initialize the PAL */ if (0 != PAL_Initialize(argc,argv)) { return FAIL; } /* Loop through the structure to test each case */ for(i = 0; i < sizeof(testCases) / sizeof(struct testCase); i++) { result = strtod(testCases[i].string,&endptr); /* need to check the result and the endptr result */ if ((testCases[i].CorrectResult != result) && (strcmp(testCases[i].ResultString,endptr)!=0)) { Fail("ERROR: strtod returned %f instead of %f and " "\"%s\" instead of \"%s\" for the test of \"%s\"\n", result, testCases[i].CorrectResult, endptr, testCases[i].ResultString, testCases[i].string); } } 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: test1.c ** ** Purpose: Tests the PAL implementation of the strtod function. ** Convert a number of strings to doubles. Ensure they ** convert correctly. ** ** **===================================================================*/ #include <palsuite.h> struct testCase { double CorrectResult; /* The returned double value */ char ResultString[20]; /* The remainder string */ char string[20]; /* The test string */ }; PALTEST(c_runtime_strtod_test1_paltest_strtod_test1, "c_runtime/strtod/test1/paltest_strtod_test1") { char * endptr; double result; int i; struct testCase testCases[] = { {1234,"","1234"}, {-1234,"","-1234"}, {1234.44,"","1234.44"}, {1234e-5,"","1234e-5"}, {1234e+5,"","1234e+5"}, {12345E5,"","12345e5"}, {1234.657e-8,"","1234.657e-8"}, {1234567e-8,"foo","1234567e-8foo"}, {999,"foo","999 foo"}, {7,"foo"," 7foo"}, {0,"a7","a7"}, {-777777,"z zz","-777777z zz"} }; /* * Initialize the PAL */ if (0 != PAL_Initialize(argc,argv)) { return FAIL; } /* Loop through the structure to test each case */ for(i = 0; i < sizeof(testCases) / sizeof(struct testCase); i++) { result = strtod(testCases[i].string,&endptr); /* need to check the result and the endptr result */ if ((testCases[i].CorrectResult != result) && (strcmp(testCases[i].ResultString,endptr)!=0)) { Fail("ERROR: strtod returned %f instead of %f and " "\"%s\" instead of \"%s\" for the test of \"%s\"\n", result, testCases[i].CorrectResult, endptr, testCases[i].ResultString, testCases[i].string); } } PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/mono/mono/utils/w32subset.h
/** * \file * Define Win32 API subset defaults. * Other subsetters can fork this file, or * define symbols ahead of it, or after it (with undef). * * Note that #if of an undefined symbols is defined as if 0, * so that an implicit default here. * * Copyright 2019 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef HAVE_API_SUPPORT_WIN32_BSTR #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_BSTR 1 #else #define HAVE_API_SUPPORT_WIN32_BSTR 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CANCEL_IO #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CANCEL_IO 1 #else #define HAVE_API_SUPPORT_WIN32_CANCEL_IO 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CANCEL_IO_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CANCEL_IO_EX 1 #else #define HAVE_API_SUPPORT_WIN32_CANCEL_IO_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CANCEL_SYNCHRONOUS_IO #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CANCEL_SYNCHRONOUS_IO 1 #else #define HAVE_API_SUPPORT_WIN32_CANCEL_SYNCHRONOUS_IO 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_COMMAND_LINE_TO_ARGV #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_COMMAND_LINE_TO_ARGV 1 #else #define HAVE_API_SUPPORT_WIN32_COMMAND_LINE_TO_ARGV 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CONSOLE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CONSOLE 1 #else #define HAVE_API_SUPPORT_WIN32_CONSOLE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_COPY_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_COPY_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_COPY_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_COPY_FILE2 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_COPY_FILE2 1 #else #define HAVE_API_SUPPORT_WIN32_COPY_FILE2 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_COREE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_COREE 1 #else #define HAVE_API_SUPPORT_WIN32_COREE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CREATE_PROCESS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CREATE_PROCESS 1 #else #define HAVE_API_SUPPORT_WIN32_CREATE_PROCESS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CREATE_PROCESS_WITH_LOGON #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CREATE_PROCESS_WITH_LOGON 1 #else #define HAVE_API_SUPPORT_WIN32_CREATE_PROCESS_WITH_LOGON 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE 1 #else #define HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_DISCONNECT_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_DISCONNECT_EX 1 #else #define HAVE_API_SUPPORT_WIN32_DISCONNECT_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_ENUM_PROCESSES #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_ENUM_PROCESSES 1 #else #define HAVE_API_SUPPORT_WIN32_ENUM_PROCESSES 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_ENUM_PROCESS_MODULES #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_ENUM_PROCESS_MODULES 1 #else #define HAVE_API_SUPPORT_WIN32_ENUM_PROCESS_MODULES 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_ENUM_WINDOWS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_ENUM_WINDOWS 1 #else #define HAVE_API_SUPPORT_WIN32_ENUM_WINDOWS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_FILE_MAPPING #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_FILE_MAPPING 1 #else #define HAVE_API_SUPPORT_WIN32_FILE_MAPPING 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_FILE_MAPPING_FROM_APP #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_FILE_MAPPING_FROM_APP 1 #else #define HAVE_API_SUPPORT_WIN32_FILE_MAPPING_FROM_APP 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_FORMAT_MESSAGE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_FORMAT_MESSAGE 1 #else #define HAVE_API_SUPPORT_WIN32_FORMAT_MESSAGE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_ACP #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_ACP 1 #else #define HAVE_API_SUPPORT_WIN32_GET_ACP 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_CP_INFO_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_CP_INFO_EX 1 #else #define HAVE_API_SUPPORT_WIN32_GET_CP_INFO_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_DRIVE_TYPE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_DRIVE_TYPE 1 #else #define HAVE_API_SUPPORT_WIN32_GET_DRIVE_TYPE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_FILE_SIZE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_FILE_SIZE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_GET_FILE_SIZE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_FILE_VERSION_INFO #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_FILE_VERSION_INFO 1 #else #define HAVE_API_SUPPORT_WIN32_GET_FILE_VERSION_INFO 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS 1 #else #define HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_BASE_NAME #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_BASE_NAME 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_BASE_NAME 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_FILE_NAME_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_FILE_NAME_EX 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_FILE_NAME_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_INFORMATION #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_INFORMATION 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_INFORMATION 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_PRIORITY_CLASS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_PRIORITY_CLASS 1 #else #define HAVE_API_SUPPORT_WIN32_GET_PRIORITY_CLASS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_PROCESS_TIMES #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_PROCESS_TIMES 1 #else #define HAVE_API_SUPPORT_WIN32_GET_PROCESS_TIMES 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE 1 #else #define HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIME_AS_FILE_TIME #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIME_AS_FILE_TIME 1 #else #define HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIME_AS_FILE_TIME 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIMES #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIMES 1 #else #define HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIMES 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_WORKING_SET_SIZE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_WORKING_SET_SIZE 1 #else #define HAVE_API_SUPPORT_WIN32_GET_WORKING_SET_SIZE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_IS_WOW64_PROCESS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_IS_WOW64_PROCESS 1 #else #define HAVE_API_SUPPORT_WIN32_IS_WOW64_PROCESS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOAD_LIBRARY #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOAD_LIBRARY 1 #else #define HAVE_API_SUPPORT_WIN32_LOAD_LIBRARY 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOAD_PACKAGED_LIBRARY #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOAD_PACKAGED_LIBRARY 1 #else #define HAVE_API_SUPPORT_WIN32_LOAD_PACKAGED_LIBRARY 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOCAL_ALLOC_FREE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOCAL_ALLOC_FREE 1 #else #define HAVE_API_SUPPORT_WIN32_LOCAL_ALLOC_FREE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOCAL_INFO #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOCAL_INFO 1 #else #define HAVE_API_SUPPORT_WIN32_LOCAL_INFO 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOCAL_INFO_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOCAL_INFO_EX 1 #else #define HAVE_API_SUPPORT_WIN32_LOCAL_INFO_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOCK_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOCK_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_LOCK_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_MOVE_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_MOVE_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_MOVE_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_MOVE_FILE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_MOVE_FILE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_MOVE_FILE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_MSG_WAIT_FOR_MULTIPLE_OBJECTS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_MSG_WAIT_FOR_MULTIPLE_OBJECTS 1 #else #define HAVE_API_SUPPORT_WIN32_MSG_WAIT_FOR_MULTIPLE_OBJECTS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_OPEN_PROCESS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_OPEN_PROCESS 1 #else #define HAVE_API_SUPPORT_WIN32_OPEN_PROCESS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_OPEN_THREAD #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_OPEN_THREAD 1 #else #define HAVE_API_SUPPORT_WIN32_OPEN_THREAD 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_REPLACE_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_REPLACE_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_REPLACE_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_RESET_STKOFLW #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_RESET_STKOFLW 1 #else #define HAVE_API_SUPPORT_WIN32_RESET_STKOFLW 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SAFE_ARRAY #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SAFE_ARRAY 1 #else #define HAVE_API_SUPPORT_WIN32_SAFE_ARRAY 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_ERROR_MODE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_ERROR_MODE 1 #else #define HAVE_API_SUPPORT_WIN32_SET_ERROR_MODE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_PRIORITY_CLASS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_PRIORITY_CLASS 1 #else #define HAVE_API_SUPPORT_WIN32_SET_PRIORITY_CLASS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_THREAD_CONTEXT #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_THREAD_CONTEXT 1 #else #define HAVE_API_SUPPORT_WIN32_SET_THREAD_CONTEXT 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_THREAD_DESCRIPTION #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_THREAD_DESCRIPTION 1 #else #define HAVE_API_SUPPORT_WIN32_SET_THREAD_DESCRIPTION 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_THREAD_STACK_GUARANTEE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_THREAD_STACK_GUARANTEE 1 #else #define HAVE_API_SUPPORT_WIN32_SET_THREAD_STACK_GUARANTEE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_WORKING_SET_SIZE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_WORKING_SET_SIZE 1 #else #define HAVE_API_SUPPORT_WIN32_SET_WORKING_SET_SIZE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SHELL_EXECUTE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SHELL_EXECUTE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_SHELL_EXECUTE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SIGNAL_OBJECT_AND_WAIT #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SIGNAL_OBJECT_AND_WAIT 1 #else #define HAVE_API_SUPPORT_WIN32_SIGNAL_OBJECT_AND_WAIT 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_TIMERS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_TIMERS 1 #else #define HAVE_API_SUPPORT_WIN32_TIMERS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_TRANSMIT_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_TRANSMIT_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_TRANSMIT_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_UNLOCK_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_UNLOCK_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_UNLOCK_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_VER_LANGUAGE_NAME #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_VER_LANGUAGE_NAME 1 #else #define HAVE_API_SUPPORT_WIN32_VER_LANGUAGE_NAME 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_VER_QUERY_VALUE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_VER_QUERY_VALUE 1 #else #define HAVE_API_SUPPORT_WIN32_VER_QUERY_VALUE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_PIPE_OPEN_CLOSE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_PIPE_OPEN_CLOSE 1 #else #define HAVE_API_SUPPORT_WIN32_PIPE_OPEN_CLOSE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CONTEXT_XSTATE #define HAVE_API_SUPPORT_WIN32_CONTEXT_XSTATE 0 #endif
/** * \file * Define Win32 API subset defaults. * Other subsetters can fork this file, or * define symbols ahead of it, or after it (with undef). * * Note that #if of an undefined symbols is defined as if 0, * so that an implicit default here. * * Copyright 2019 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef HAVE_API_SUPPORT_WIN32_BSTR #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_BSTR 1 #else #define HAVE_API_SUPPORT_WIN32_BSTR 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CANCEL_IO #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CANCEL_IO 1 #else #define HAVE_API_SUPPORT_WIN32_CANCEL_IO 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CANCEL_IO_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CANCEL_IO_EX 1 #else #define HAVE_API_SUPPORT_WIN32_CANCEL_IO_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CANCEL_SYNCHRONOUS_IO #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CANCEL_SYNCHRONOUS_IO 1 #else #define HAVE_API_SUPPORT_WIN32_CANCEL_SYNCHRONOUS_IO 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_COMMAND_LINE_TO_ARGV #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_COMMAND_LINE_TO_ARGV 1 #else #define HAVE_API_SUPPORT_WIN32_COMMAND_LINE_TO_ARGV 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CONSOLE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CONSOLE 1 #else #define HAVE_API_SUPPORT_WIN32_CONSOLE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_COPY_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_COPY_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_COPY_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_COPY_FILE2 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_COPY_FILE2 1 #else #define HAVE_API_SUPPORT_WIN32_COPY_FILE2 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_COREE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_COREE 1 #else #define HAVE_API_SUPPORT_WIN32_COREE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CREATE_PROCESS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CREATE_PROCESS 1 #else #define HAVE_API_SUPPORT_WIN32_CREATE_PROCESS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CREATE_PROCESS_WITH_LOGON #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CREATE_PROCESS_WITH_LOGON 1 #else #define HAVE_API_SUPPORT_WIN32_CREATE_PROCESS_WITH_LOGON 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE 1 #else #define HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_CREATE_SEMAPHORE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_DISCONNECT_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_DISCONNECT_EX 1 #else #define HAVE_API_SUPPORT_WIN32_DISCONNECT_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_ENUM_PROCESSES #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_ENUM_PROCESSES 1 #else #define HAVE_API_SUPPORT_WIN32_ENUM_PROCESSES 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_ENUM_PROCESS_MODULES #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_ENUM_PROCESS_MODULES 1 #else #define HAVE_API_SUPPORT_WIN32_ENUM_PROCESS_MODULES 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_ENUM_WINDOWS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_ENUM_WINDOWS 1 #else #define HAVE_API_SUPPORT_WIN32_ENUM_WINDOWS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_FILE_MAPPING #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_FILE_MAPPING 1 #else #define HAVE_API_SUPPORT_WIN32_FILE_MAPPING 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_FILE_MAPPING_FROM_APP #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_FILE_MAPPING_FROM_APP 1 #else #define HAVE_API_SUPPORT_WIN32_FILE_MAPPING_FROM_APP 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_FORMAT_MESSAGE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_FORMAT_MESSAGE 1 #else #define HAVE_API_SUPPORT_WIN32_FORMAT_MESSAGE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_ACP #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_ACP 1 #else #define HAVE_API_SUPPORT_WIN32_GET_ACP 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_CP_INFO_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_CP_INFO_EX 1 #else #define HAVE_API_SUPPORT_WIN32_GET_CP_INFO_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_DRIVE_TYPE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_DRIVE_TYPE 1 #else #define HAVE_API_SUPPORT_WIN32_GET_DRIVE_TYPE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_FILE_SIZE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_FILE_SIZE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_GET_FILE_SIZE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_FILE_VERSION_INFO #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_FILE_VERSION_INFO 1 #else #define HAVE_API_SUPPORT_WIN32_GET_FILE_VERSION_INFO 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS 1 #else #define HAVE_API_SUPPORT_WIN32_GET_LOGICAL_DRIVE_STRINGS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_BASE_NAME #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_BASE_NAME 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_BASE_NAME 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_FILE_NAME_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_FILE_NAME_EX 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_FILE_NAME_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_HANDLE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_MODULE_INFORMATION #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_MODULE_INFORMATION 1 #else #define HAVE_API_SUPPORT_WIN32_GET_MODULE_INFORMATION 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_PRIORITY_CLASS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_PRIORITY_CLASS 1 #else #define HAVE_API_SUPPORT_WIN32_GET_PRIORITY_CLASS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_PROCESS_TIMES #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_PROCESS_TIMES 1 #else #define HAVE_API_SUPPORT_WIN32_GET_PROCESS_TIMES 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE 1 #else #define HAVE_API_SUPPORT_WIN32_GET_STD_HANDLE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIME_AS_FILE_TIME #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIME_AS_FILE_TIME 1 #else #define HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIME_AS_FILE_TIME 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIMES #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIMES 1 #else #define HAVE_API_SUPPORT_WIN32_GET_SYSTEM_TIMES 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_GET_WORKING_SET_SIZE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_GET_WORKING_SET_SIZE 1 #else #define HAVE_API_SUPPORT_WIN32_GET_WORKING_SET_SIZE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_IS_WOW64_PROCESS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_IS_WOW64_PROCESS 1 #else #define HAVE_API_SUPPORT_WIN32_IS_WOW64_PROCESS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOAD_LIBRARY #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOAD_LIBRARY 1 #else #define HAVE_API_SUPPORT_WIN32_LOAD_LIBRARY 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOAD_PACKAGED_LIBRARY #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOAD_PACKAGED_LIBRARY 1 #else #define HAVE_API_SUPPORT_WIN32_LOAD_PACKAGED_LIBRARY 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOCAL_ALLOC_FREE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOCAL_ALLOC_FREE 1 #else #define HAVE_API_SUPPORT_WIN32_LOCAL_ALLOC_FREE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOCAL_INFO #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOCAL_INFO 1 #else #define HAVE_API_SUPPORT_WIN32_LOCAL_INFO 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOCAL_INFO_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOCAL_INFO_EX 1 #else #define HAVE_API_SUPPORT_WIN32_LOCAL_INFO_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_LOCK_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_LOCK_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_LOCK_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_MOVE_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_MOVE_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_MOVE_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_MOVE_FILE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_MOVE_FILE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_MOVE_FILE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_MSG_WAIT_FOR_MULTIPLE_OBJECTS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_MSG_WAIT_FOR_MULTIPLE_OBJECTS 1 #else #define HAVE_API_SUPPORT_WIN32_MSG_WAIT_FOR_MULTIPLE_OBJECTS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_OPEN_PROCESS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_OPEN_PROCESS 1 #else #define HAVE_API_SUPPORT_WIN32_OPEN_PROCESS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_OPEN_THREAD #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_OPEN_THREAD 1 #else #define HAVE_API_SUPPORT_WIN32_OPEN_THREAD 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_REPLACE_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_REPLACE_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_REPLACE_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_RESET_STKOFLW #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_RESET_STKOFLW 1 #else #define HAVE_API_SUPPORT_WIN32_RESET_STKOFLW 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SAFE_ARRAY #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SAFE_ARRAY 1 #else #define HAVE_API_SUPPORT_WIN32_SAFE_ARRAY 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_ERROR_MODE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_ERROR_MODE 1 #else #define HAVE_API_SUPPORT_WIN32_SET_ERROR_MODE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_PRIORITY_CLASS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_PRIORITY_CLASS 1 #else #define HAVE_API_SUPPORT_WIN32_SET_PRIORITY_CLASS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_THREAD_CONTEXT #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_THREAD_CONTEXT 1 #else #define HAVE_API_SUPPORT_WIN32_SET_THREAD_CONTEXT 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_THREAD_DESCRIPTION #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_THREAD_DESCRIPTION 1 #else #define HAVE_API_SUPPORT_WIN32_SET_THREAD_DESCRIPTION 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_THREAD_STACK_GUARANTEE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_THREAD_STACK_GUARANTEE 1 #else #define HAVE_API_SUPPORT_WIN32_SET_THREAD_STACK_GUARANTEE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SET_WORKING_SET_SIZE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SET_WORKING_SET_SIZE 1 #else #define HAVE_API_SUPPORT_WIN32_SET_WORKING_SET_SIZE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SHELL_EXECUTE_EX #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SHELL_EXECUTE_EX 1 #else #define HAVE_API_SUPPORT_WIN32_SHELL_EXECUTE_EX 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_SIGNAL_OBJECT_AND_WAIT #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_SIGNAL_OBJECT_AND_WAIT 1 #else #define HAVE_API_SUPPORT_WIN32_SIGNAL_OBJECT_AND_WAIT 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_TIMERS #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_TIMERS 1 #else #define HAVE_API_SUPPORT_WIN32_TIMERS 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_TRANSMIT_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_TRANSMIT_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_TRANSMIT_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_UNLOCK_FILE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) || \ G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_UNLOCK_FILE 1 #else #define HAVE_API_SUPPORT_WIN32_UNLOCK_FILE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_VER_LANGUAGE_NAME #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_VER_LANGUAGE_NAME 1 #else #define HAVE_API_SUPPORT_WIN32_VER_LANGUAGE_NAME 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_VER_QUERY_VALUE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_VER_QUERY_VALUE 1 #else #define HAVE_API_SUPPORT_WIN32_VER_QUERY_VALUE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_PIPE_OPEN_CLOSE #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) #define HAVE_API_SUPPORT_WIN32_PIPE_OPEN_CLOSE 1 #else #define HAVE_API_SUPPORT_WIN32_PIPE_OPEN_CLOSE 0 #endif #endif #ifndef HAVE_API_SUPPORT_WIN32_CONTEXT_XSTATE #define HAVE_API_SUPPORT_WIN32_CONTEXT_XSTATE 0 #endif
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test6/child6.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================ ** ** Source: child6.c ** ** Purpose: Test for WaitForMultipleObjectsEx in multiple ** scenarios - child process ** ** **=========================================================*/ #include <palsuite.h> PALTEST(threading_WaitForMultipleObjectsEx_test6_paltest_waitformultipleobjectsex_test6_child, "threading/WaitForMultipleObjectsEx/test6/paltest_waitformultipleobjectsex_test6_child") { int i, iRet; BOOL bRet; BOOL bNamedEvent = 0; BOOL bMutex = 0; BOOL bMutexAndNamedEvent = 0; BOOL bSemaphore = 0; DWORD dwRet; HANDLE hNamedEvent; HANDLE hMutex; char szTestName[256]; WCHAR wszTestName[256] = { 0 }; char szEventName[128] = { 0 }; char szMutexName[128] = { 0 }; char szSemName[128] = { 0 }; WCHAR wszEventName[128]; WCHAR wszMutexName[128]; WCHAR wszSemName[128]; DWORD iExitCode = 0; HANDLE hSemaphore; if(0 != (PAL_Initialize(argc, argv))) { return ( FAIL ); } Trace("[child] Starting\n"); for (i=1; i<argc; i++) { if (0 == strcmp(argv[i],"-event")) { bNamedEvent = 1; } else if (0 == strcmp(argv[i],"-mutex")) { bMutex = 1; } else if (0 == strcmp(argv[i],"-mutex_and_named_event")) { bMutexAndNamedEvent = 1; } else if (0 == strcmp(argv[i],"-semaphore")) { bSemaphore = 1; } else if (0 == strcmp(argv[i],"-exitcode") && i < argc-1 ) { i++; iExitCode = atoi(argv[i]); Trace("[child] My exit code is %d\n", iExitCode); } else if ('-' != *argv[i]) { strncpy(szTestName, argv[i], 256); szTestName[255] = 0; iRet = MultiByteToWideChar(CP_ACP, 0, szTestName, strlen(szTestName)+1, wszTestName, 256); if (0 == iRet) { Fail("Failed to convert test string\n"); } } } sprintf_s(szEventName, 128, "%s_Event", szTestName); szEventName[127] = 0; sprintf_s(szMutexName, 128, "%s_Mutex", szTestName); szMutexName[127] = 0; sprintf_s(szSemName, 128, "%s_Semaphore", szTestName); szSemName[127] = 0; iRet = MultiByteToWideChar(CP_ACP, 0, szEventName, strlen(szEventName)+1, wszEventName, 128); iRet &= MultiByteToWideChar(CP_ACP, 0, szMutexName, strlen(szMutexName)+1, wszMutexName, 128); iRet &= MultiByteToWideChar(CP_ACP, 0, szSemName, strlen(szSemName)+1, wszSemName, 128); if (0 == iRet) { Fail("[child] Failed to convert strings\n"); } Trace("[child] TestName=%s Event: %S, Mutex: %S, Semaphore = %S\n", szTestName, wszEventName, wszMutexName, wszSemName); hNamedEvent = OpenEventW(0, FALSE, wszEventName); if (NULL == hNamedEvent) { Fail("[child] OpenEventW failed [szEventName=%s GetLastError()=%u]\n", szEventName, GetLastError()); } hMutex = OpenMutexW(0, FALSE, wszMutexName); if (NULL == hMutex) { Fail("[child] OpenMutexW failed [GetLastError()=%u]\n", GetLastError()); } hSemaphore = CreateSemaphoreExW(NULL, 0, 256, wszSemName, 0, 0); if (NULL == hSemaphore) { Fail("[child] CreateSemaphore failed [GetLastError()=%u]\n", GetLastError()); } if (bMutex) { Trace("[child] Going to wait on mutex %s\n", szMutexName); dwRet = WaitForSingleObject(hMutex, INFINITE); if (WAIT_FAILED == dwRet) { Fail("[child] WaitForMultipleObjects failed [GetLastError()=%u]\n", GetLastError()); } Trace("[child] Setting event %s\n", szEventName); bRet = SetEvent(hNamedEvent); if (FALSE == bRet) { Fail("[child] SetEvent failed [GetLastError()=%u]\n", GetLastError()); } // mutex will be abandoned } else if (bMutexAndNamedEvent) { dwRet = WaitForSingleObject(hMutex, INFINITE); if (WAIT_FAILED == dwRet) { Fail("[child] WaitForMultipleObjects failed [GetLastError()=%u]\n", GetLastError()); } Sleep(2000); bRet = ReleaseMutex(hMutex); if (FALSE == bRet) { Fail("[child] ReleaseMutex failed [GetLastError()=%u]\n", GetLastError()); } Sleep(1000); bRet = SetEvent(hNamedEvent); if (FALSE == bRet) { Fail("[child] SetEvent failed [GetLastError()=%u]\n", GetLastError()); } } else if (bSemaphore) { LONG lPrevCount = 42; Trace("[child] Going to wait on event %s\n", szEventName); dwRet = WaitForSingleObject(hNamedEvent, INFINITE); if (WAIT_FAILED == dwRet) { Fail("[child] WaitForMultipleObjects failed [GetLastError()=%u]\n", GetLastError()); } Trace("[child] Releasing semaphore %s\n", szSemName); bRet = ReleaseSemaphore(hSemaphore, 10, &lPrevCount); if (FALSE == bRet) { Fail("ReleaseMutex failed [GetLastError()=%u]\n", GetLastError()); } if (0 != lPrevCount) { Fail("Previous count from semaphore=%d, expected 0\n", lPrevCount); } } else if (bNamedEvent) { Sleep(1000); bRet = SetEvent(hNamedEvent); if (FALSE == bRet) { Fail("[child] SetEvent failed [GetLastError()=%u]\n", GetLastError()); } } Sleep(1000); Trace("[child] Done\n"); PAL_TerminateEx(iExitCode); return iExitCode; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================ ** ** Source: child6.c ** ** Purpose: Test for WaitForMultipleObjectsEx in multiple ** scenarios - child process ** ** **=========================================================*/ #include <palsuite.h> PALTEST(threading_WaitForMultipleObjectsEx_test6_paltest_waitformultipleobjectsex_test6_child, "threading/WaitForMultipleObjectsEx/test6/paltest_waitformultipleobjectsex_test6_child") { int i, iRet; BOOL bRet; BOOL bNamedEvent = 0; BOOL bMutex = 0; BOOL bMutexAndNamedEvent = 0; BOOL bSemaphore = 0; DWORD dwRet; HANDLE hNamedEvent; HANDLE hMutex; char szTestName[256]; WCHAR wszTestName[256] = { 0 }; char szEventName[128] = { 0 }; char szMutexName[128] = { 0 }; char szSemName[128] = { 0 }; WCHAR wszEventName[128]; WCHAR wszMutexName[128]; WCHAR wszSemName[128]; DWORD iExitCode = 0; HANDLE hSemaphore; if(0 != (PAL_Initialize(argc, argv))) { return ( FAIL ); } Trace("[child] Starting\n"); for (i=1; i<argc; i++) { if (0 == strcmp(argv[i],"-event")) { bNamedEvent = 1; } else if (0 == strcmp(argv[i],"-mutex")) { bMutex = 1; } else if (0 == strcmp(argv[i],"-mutex_and_named_event")) { bMutexAndNamedEvent = 1; } else if (0 == strcmp(argv[i],"-semaphore")) { bSemaphore = 1; } else if (0 == strcmp(argv[i],"-exitcode") && i < argc-1 ) { i++; iExitCode = atoi(argv[i]); Trace("[child] My exit code is %d\n", iExitCode); } else if ('-' != *argv[i]) { strncpy(szTestName, argv[i], 256); szTestName[255] = 0; iRet = MultiByteToWideChar(CP_ACP, 0, szTestName, strlen(szTestName)+1, wszTestName, 256); if (0 == iRet) { Fail("Failed to convert test string\n"); } } } sprintf_s(szEventName, 128, "%s_Event", szTestName); szEventName[127] = 0; sprintf_s(szMutexName, 128, "%s_Mutex", szTestName); szMutexName[127] = 0; sprintf_s(szSemName, 128, "%s_Semaphore", szTestName); szSemName[127] = 0; iRet = MultiByteToWideChar(CP_ACP, 0, szEventName, strlen(szEventName)+1, wszEventName, 128); iRet &= MultiByteToWideChar(CP_ACP, 0, szMutexName, strlen(szMutexName)+1, wszMutexName, 128); iRet &= MultiByteToWideChar(CP_ACP, 0, szSemName, strlen(szSemName)+1, wszSemName, 128); if (0 == iRet) { Fail("[child] Failed to convert strings\n"); } Trace("[child] TestName=%s Event: %S, Mutex: %S, Semaphore = %S\n", szTestName, wszEventName, wszMutexName, wszSemName); hNamedEvent = OpenEventW(0, FALSE, wszEventName); if (NULL == hNamedEvent) { Fail("[child] OpenEventW failed [szEventName=%s GetLastError()=%u]\n", szEventName, GetLastError()); } hMutex = OpenMutexW(0, FALSE, wszMutexName); if (NULL == hMutex) { Fail("[child] OpenMutexW failed [GetLastError()=%u]\n", GetLastError()); } hSemaphore = CreateSemaphoreExW(NULL, 0, 256, wszSemName, 0, 0); if (NULL == hSemaphore) { Fail("[child] CreateSemaphore failed [GetLastError()=%u]\n", GetLastError()); } if (bMutex) { Trace("[child] Going to wait on mutex %s\n", szMutexName); dwRet = WaitForSingleObject(hMutex, INFINITE); if (WAIT_FAILED == dwRet) { Fail("[child] WaitForMultipleObjects failed [GetLastError()=%u]\n", GetLastError()); } Trace("[child] Setting event %s\n", szEventName); bRet = SetEvent(hNamedEvent); if (FALSE == bRet) { Fail("[child] SetEvent failed [GetLastError()=%u]\n", GetLastError()); } // mutex will be abandoned } else if (bMutexAndNamedEvent) { dwRet = WaitForSingleObject(hMutex, INFINITE); if (WAIT_FAILED == dwRet) { Fail("[child] WaitForMultipleObjects failed [GetLastError()=%u]\n", GetLastError()); } Sleep(2000); bRet = ReleaseMutex(hMutex); if (FALSE == bRet) { Fail("[child] ReleaseMutex failed [GetLastError()=%u]\n", GetLastError()); } Sleep(1000); bRet = SetEvent(hNamedEvent); if (FALSE == bRet) { Fail("[child] SetEvent failed [GetLastError()=%u]\n", GetLastError()); } } else if (bSemaphore) { LONG lPrevCount = 42; Trace("[child] Going to wait on event %s\n", szEventName); dwRet = WaitForSingleObject(hNamedEvent, INFINITE); if (WAIT_FAILED == dwRet) { Fail("[child] WaitForMultipleObjects failed [GetLastError()=%u]\n", GetLastError()); } Trace("[child] Releasing semaphore %s\n", szSemName); bRet = ReleaseSemaphore(hSemaphore, 10, &lPrevCount); if (FALSE == bRet) { Fail("ReleaseMutex failed [GetLastError()=%u]\n", GetLastError()); } if (0 != lPrevCount) { Fail("Previous count from semaphore=%d, expected 0\n", lPrevCount); } } else if (bNamedEvent) { Sleep(1000); bRet = SetEvent(hNamedEvent); if (FALSE == bRet) { Fail("[child] SetEvent failed [GetLastError()=%u]\n", GetLastError()); } } Sleep(1000); Trace("[child] Done\n"); PAL_TerminateEx(iExitCode); return iExitCode; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/src/include/pal/cruntime.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*++ Module Name: include/pal/cruntime.h Abstract: Header file for C runtime utility functions. --*/ #ifndef _PAL_CRUNTIME_H_ #define _PAL_CRUNTIME_H_ #include <string.h> #include <stdarg.h> #include <pthread.h> #ifdef __cplusplus typedef char16_t wchar_16; // __wchar_16 (which is defined in palinternal.h) is defined as wchar_16_cpp. extern "C" { #endif // __cplusplus typedef enum { PFF_NONE = 0, PFF_MINUS = 1, PFF_POUND = 2, PFF_ZERO = 4, PFF_SPACE = 8, PFF_PLUS = 16 }PRINTF_FORMAT_FLAGS; typedef enum { WIDTH_DEFAULT = -1, WIDTH_STAR = -2, /* e.g. "%*.10s" */ WIDTH_INVALID = -3 /* e.g. "%*3.10s" */ }WIDTH_FLAGS; typedef enum { PRECISION_DEFAULT = -1, PRECISION_STAR = -2, /* e.g. "%10.*s" */ PRECISION_DOT = -3, /* e.g. "%10.s" */ PRECISION_INVALID = -4 /* e.g. "%10.*3s" */ }PRECISION_FLAGS; typedef enum { PFF_PREFIX_DEFAULT = -1, PFF_PREFIX_SHORT = 1, PFF_PREFIX_LONG = 2, PFF_PREFIX_LONGLONG = 3, PFF_PREFIX_LONG_W = 4 }PRINTF_PREFIXES; typedef enum { PFF_TYPE_DEFAULT = -1, PFF_TYPE_CHAR = 1, PFF_TYPE_STRING = 2, PFF_TYPE_WSTRING = 3, PFF_TYPE_INT = 4, PFF_TYPE_P = 5, PFF_TYPE_N = 6, PFF_TYPE_FLOAT = 7 }PRINTF_TYPES; typedef enum { SCANF_PREFIX_SHORT = 1, SCANF_PREFIX_LONG = 2, SCANF_PREFIX_LONGLONG = 3 }SCANF_PREFIXES; typedef enum { SCANF_TYPE_CHAR = 1, SCANF_TYPE_STRING = 2, SCANF_TYPE_INT = 3, SCANF_TYPE_N = 4, SCANF_TYPE_FLOAT = 5, SCANF_TYPE_BRACKETS = 6, SCANF_TYPE_SPACE = 7 }SCANF_TYPES; /******************************************************************************* Function: PAL_printf_arg_remover Parameters: ap - pointer to the va_list from which to remove arguments Width - the width of the current format option Precision - the precision of the current format option Type - the type of the argument for the current format option Prefix - the prefix for the current format option *******************************************************************************/ void PAL_printf_arg_remover(va_list *ap, INT Width, INT Precision, INT Type, INT Prefix); /*++ Function: Silent_PAL_vsnprintf See MSDN doc. --*/ INT Silent_PAL_vsnprintf(LPSTR Buffer, INT Count, LPCSTR Format, va_list ap); /*++ Function: Silent_PAL_vfprintf See MSDN doc. --*/ int Silent_PAL_vfprintf(PAL_FILE *stream, const char *format, va_list ap); /*++ struct PAL_FILE. Used to mimic the behavior of windows. fwrite under windows can set the ferror flag, under BSD fwrite doesn't. --*/ struct _FILE { FILE * bsdFilePtr; /* The BSD file to be passed to the functions needing it. */ INT PALferrorCode; /* The ferror code that fwrite sets, incase of error */ BOOL bTextMode; /* Boolean variable to denote that the fle is opened in text/binary mode*/ #if UNGETC_NOT_RETURN_EOF BOOL bWriteOnlyMode;/* Boolean variable to denote that the fle is opened in write-only mode*/ #endif //UNGETC_NOT_RETURN_EOF }; enum CRT_ERROR_CODES { PAL_FILE_NOERROR = 0, PAL_FILE_ERROR }; /* Global variables storing the std streams. Defined in cruntime/file.c. */ extern PAL_FILE PAL_Stdout; extern PAL_FILE PAL_Stdin; extern PAL_FILE PAL_Stderr; /*++ Functio: CRTInitStdStreams. Initilizes the standard streams. Returns TRUE on success, FALSE otherwise. --*/ BOOL CRTInitStdStreams( void ); #ifdef __cplusplus } #endif // __cplusplus #endif /* _PAL_CRUNTIME_H_ */
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*++ Module Name: include/pal/cruntime.h Abstract: Header file for C runtime utility functions. --*/ #ifndef _PAL_CRUNTIME_H_ #define _PAL_CRUNTIME_H_ #include <string.h> #include <stdarg.h> #include <pthread.h> #ifdef __cplusplus typedef char16_t wchar_16; // __wchar_16 (which is defined in palinternal.h) is defined as wchar_16_cpp. extern "C" { #endif // __cplusplus typedef enum { PFF_NONE = 0, PFF_MINUS = 1, PFF_POUND = 2, PFF_ZERO = 4, PFF_SPACE = 8, PFF_PLUS = 16 }PRINTF_FORMAT_FLAGS; typedef enum { WIDTH_DEFAULT = -1, WIDTH_STAR = -2, /* e.g. "%*.10s" */ WIDTH_INVALID = -3 /* e.g. "%*3.10s" */ }WIDTH_FLAGS; typedef enum { PRECISION_DEFAULT = -1, PRECISION_STAR = -2, /* e.g. "%10.*s" */ PRECISION_DOT = -3, /* e.g. "%10.s" */ PRECISION_INVALID = -4 /* e.g. "%10.*3s" */ }PRECISION_FLAGS; typedef enum { PFF_PREFIX_DEFAULT = -1, PFF_PREFIX_SHORT = 1, PFF_PREFIX_LONG = 2, PFF_PREFIX_LONGLONG = 3, PFF_PREFIX_LONG_W = 4 }PRINTF_PREFIXES; typedef enum { PFF_TYPE_DEFAULT = -1, PFF_TYPE_CHAR = 1, PFF_TYPE_STRING = 2, PFF_TYPE_WSTRING = 3, PFF_TYPE_INT = 4, PFF_TYPE_P = 5, PFF_TYPE_N = 6, PFF_TYPE_FLOAT = 7 }PRINTF_TYPES; typedef enum { SCANF_PREFIX_SHORT = 1, SCANF_PREFIX_LONG = 2, SCANF_PREFIX_LONGLONG = 3 }SCANF_PREFIXES; typedef enum { SCANF_TYPE_CHAR = 1, SCANF_TYPE_STRING = 2, SCANF_TYPE_INT = 3, SCANF_TYPE_N = 4, SCANF_TYPE_FLOAT = 5, SCANF_TYPE_BRACKETS = 6, SCANF_TYPE_SPACE = 7 }SCANF_TYPES; /******************************************************************************* Function: PAL_printf_arg_remover Parameters: ap - pointer to the va_list from which to remove arguments Width - the width of the current format option Precision - the precision of the current format option Type - the type of the argument for the current format option Prefix - the prefix for the current format option *******************************************************************************/ void PAL_printf_arg_remover(va_list *ap, INT Width, INT Precision, INT Type, INT Prefix); /*++ Function: Silent_PAL_vsnprintf See MSDN doc. --*/ INT Silent_PAL_vsnprintf(LPSTR Buffer, INT Count, LPCSTR Format, va_list ap); /*++ Function: Silent_PAL_vfprintf See MSDN doc. --*/ int Silent_PAL_vfprintf(PAL_FILE *stream, const char *format, va_list ap); /*++ struct PAL_FILE. Used to mimic the behavior of windows. fwrite under windows can set the ferror flag, under BSD fwrite doesn't. --*/ struct _FILE { FILE * bsdFilePtr; /* The BSD file to be passed to the functions needing it. */ INT PALferrorCode; /* The ferror code that fwrite sets, incase of error */ BOOL bTextMode; /* Boolean variable to denote that the fle is opened in text/binary mode*/ #if UNGETC_NOT_RETURN_EOF BOOL bWriteOnlyMode;/* Boolean variable to denote that the fle is opened in write-only mode*/ #endif //UNGETC_NOT_RETURN_EOF }; enum CRT_ERROR_CODES { PAL_FILE_NOERROR = 0, PAL_FILE_ERROR }; /* Global variables storing the std streams. Defined in cruntime/file.c. */ extern PAL_FILE PAL_Stdout; extern PAL_FILE PAL_Stdin; extern PAL_FILE PAL_Stderr; /*++ Functio: CRTInitStdStreams. Initilizes the standard streams. Returns TRUE on success, FALSE otherwise. --*/ BOOL CRTInitStdStreams( void ); #ifdef __cplusplus } #endif // __cplusplus #endif /* _PAL_CRUNTIME_H_ */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/tests/Interop/PInvoke/Varargs/VarargsNative.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <xplatform.h> #include <stdarg.h> extern "C" DLL_EXPORT void __cdecl TestVarArgs(LPWSTR formattedString, SIZE_T bufferSize, LPCWSTR format, ...) { va_list args; va_start(args, format); vswprintf_s(formattedString, bufferSize, format, args); va_end(args); } extern "C" DLL_EXPORT void STDMETHODCALLTYPE TestArgIterator(LPWSTR formattedString, SIZE_T bufferSize, LPCWSTR format, va_list args) { vswprintf_s(formattedString, bufferSize, format, args); }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <xplatform.h> #include <stdarg.h> extern "C" DLL_EXPORT void __cdecl TestVarArgs(LPWSTR formattedString, SIZE_T bufferSize, LPCWSTR format, ...) { va_list args; va_start(args, format); vswprintf_s(formattedString, bufferSize, format, args); va_end(args); } extern "C" DLL_EXPORT void STDMETHODCALLTYPE TestArgIterator(LPWSTR formattedString, SIZE_T bufferSize, LPCWSTR format, va_list args) { vswprintf_s(formattedString, bufferSize, format, args); }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/debug/ee/canary.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // File: Canary.h // // // Header file Debugger Canary // //***************************************************************************** #ifndef CANARY_H #define CANARY_H //----------------------------------------------------------------------------- // Canary. // // The helper thread needs to be very careful about what locks it takes. If it takes a lock // held by a suspended thread, then the whole process deadlocks (Since the suspended thread // is waiting for the helper to resume it). // In general, we try to avoid having the helper take such locks, but the problem is unsolvable // because: // - we don't know what that set of locks are (eg, OS apis may take new locks between versions) // - the helper may call into the EE and that takes unsafe locks. // The most prominent dangerous lock is the heap lock, which is why we have the "InteropSafe" heap. // Since we don't even know what locks are bad (eg, we can't actually find the Heaplock), we can't // explicitly check if the lock is safe to take. // So we spin up an auxiallary "Canary" thread which can sniff for locks that the helper thread will // need to take. Thus the helper thread can find out if the locks are available without actually taking them. // The "Canary" can call APIs that take the locks (such as regular "new" for the process heap lock). // The helper will wait on the canary with timeout. If the canary returns, the helper knows it's // safe to take the locks. If the canary times out, then the helper assumes it's blocked on the // locks and thus not safe for the helper to take them. //----------------------------------------------------------------------------- class HelperCanary { public: HelperCanary(); ~HelperCanary(); void Init(); bool AreLocksAvailable(); void ClearCache(); protected: static DWORD WINAPI ThreadProc(LPVOID param); void ThreadProc(); void TakeLocks(); bool AreLocksAvailableWorker(); // Flag to tell Canary thread to exit. bool m_fStop; // Flag to indicate Init has been run bool m_initialized; // Cache the answers between stops so that we don't have to ping the canary every time. bool m_fCachedValid; bool m_fCachedAnswer; HANDLE m_hCanaryThread; // handle for canary thread DWORD m_CanaryThreadId; // canary thread OS Thread ID // These counters are read + written by both helper and canary thread. // These need to be volatile because of how they're being accessed from different threads. // However, since each is only read from 1 thread, and written by another, and the WFSO/SetEvent // will give us a memory barrier, and we have a flexible polling operation, volatile is // sufficient to deal with memory barrier issues. Volatile<DWORD> m_RequestCounter; Volatile<DWORD> m_AnswerCounter; HandleHolder m_hPingEvent; // We use a Manual wait event to replace Sleep. HandleHolder m_hWaitEvent; }; #endif // CANARY_H
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // File: Canary.h // // // Header file Debugger Canary // //***************************************************************************** #ifndef CANARY_H #define CANARY_H //----------------------------------------------------------------------------- // Canary. // // The helper thread needs to be very careful about what locks it takes. If it takes a lock // held by a suspended thread, then the whole process deadlocks (Since the suspended thread // is waiting for the helper to resume it). // In general, we try to avoid having the helper take such locks, but the problem is unsolvable // because: // - we don't know what that set of locks are (eg, OS apis may take new locks between versions) // - the helper may call into the EE and that takes unsafe locks. // The most prominent dangerous lock is the heap lock, which is why we have the "InteropSafe" heap. // Since we don't even know what locks are bad (eg, we can't actually find the Heaplock), we can't // explicitly check if the lock is safe to take. // So we spin up an auxiallary "Canary" thread which can sniff for locks that the helper thread will // need to take. Thus the helper thread can find out if the locks are available without actually taking them. // The "Canary" can call APIs that take the locks (such as regular "new" for the process heap lock). // The helper will wait on the canary with timeout. If the canary returns, the helper knows it's // safe to take the locks. If the canary times out, then the helper assumes it's blocked on the // locks and thus not safe for the helper to take them. //----------------------------------------------------------------------------- class HelperCanary { public: HelperCanary(); ~HelperCanary(); void Init(); bool AreLocksAvailable(); void ClearCache(); protected: static DWORD WINAPI ThreadProc(LPVOID param); void ThreadProc(); void TakeLocks(); bool AreLocksAvailableWorker(); // Flag to tell Canary thread to exit. bool m_fStop; // Flag to indicate Init has been run bool m_initialized; // Cache the answers between stops so that we don't have to ping the canary every time. bool m_fCachedValid; bool m_fCachedAnswer; HANDLE m_hCanaryThread; // handle for canary thread DWORD m_CanaryThreadId; // canary thread OS Thread ID // These counters are read + written by both helper and canary thread. // These need to be volatile because of how they're being accessed from different threads. // However, since each is only read from 1 thread, and written by another, and the WFSO/SetEvent // will give us a memory barrier, and we have a flexible polling operation, volatile is // sufficient to deal with memory barrier issues. Volatile<DWORD> m_RequestCounter; Volatile<DWORD> m_AnswerCounter; HandleHolder m_hPingEvent; // We use a Manual wait event to replace Sleep. HandleHolder m_hWaitEvent; }; #endif // CANARY_H
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/src/libunwind/src/os-linux.h
/* libunwind - a platform-independent unwind library Copyright (C) 2003-2004 Hewlett-Packard Co Copyright (C) 2007 David Mosberger-Tang Contributed by David Mosberger-Tang <[email protected]> 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 os_linux_h #define os_linux_h struct map_iterator { off_t offset; int fd; size_t buf_size; char *buf; char *buf_end; char *path; }; static inline char * unw_ltoa (char *buf, long val) { char *cp = buf, tmp; ssize_t i, len; do { *cp++ = '0' + (val % 10); val /= 10; } while (val); /* reverse the order of the digits: */ len = cp - buf; --cp; for (i = 0; i < len / 2; ++i) { tmp = buf[i]; buf[i] = cp[-i]; cp[-i] = tmp; } return buf + len; } static inline int maps_init (struct map_iterator *mi, pid_t pid) { char path[sizeof ("/proc/0123456789/maps")], *cp; memcpy (path, "/proc/", 6); cp = unw_ltoa (path + 6, pid); assert (cp + 6 < path + sizeof (path)); memcpy (cp, "/maps", 6); mi->fd = open (path, O_RDONLY); if (mi->fd >= 0) { /* Try to allocate a page-sized buffer. */ mi->buf_size = getpagesize (); cp = mmap (NULL, mi->buf_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); if (cp == MAP_FAILED) { close(mi->fd); mi->fd = -1; return -1; } else { mi->offset = 0; mi->buf = mi->buf_end = cp + mi->buf_size; return 0; } } return -1; } static inline char * skip_whitespace (char *cp) { if (!cp) return NULL; while (*cp == ' ' || *cp == '\t') ++cp; return cp; } static inline char * scan_hex (char *cp, unsigned long *valp) { unsigned long num_digits = 0, digit, val = 0; cp = skip_whitespace (cp); if (!cp) return NULL; while (1) { digit = *cp; if ((digit - '0') <= 9) digit -= '0'; else if ((digit - 'a') < 6) digit -= 'a' - 10; else if ((digit - 'A') < 6) digit -= 'A' - 10; else break; val = (val << 4) | digit; ++num_digits; ++cp; } if (!num_digits) return NULL; *valp = val; return cp; } static inline char * scan_dec (char *cp, unsigned long *valp) { unsigned long num_digits = 0, digit, val = 0; if (!(cp = skip_whitespace (cp))) return NULL; while (1) { digit = *cp; if ((digit - '0') <= 9) { digit -= '0'; ++cp; } else break; val = (10 * val) + digit; ++num_digits; } if (!num_digits) return NULL; *valp = val; return cp; } static inline char * scan_char (char *cp, char *valp) { if (!cp) return NULL; *valp = *cp; /* don't step over NUL terminator */ if (*cp) ++cp; return cp; } /* Scan a string delimited by white-space. Fails on empty string or if string is doesn't fit in the specified buffer. */ static inline char * scan_string (char *cp, char *valp, size_t buf_size) { size_t i = 0; if (!(cp = skip_whitespace (cp))) return NULL; while (*cp != ' ' && *cp != '\t' && *cp != '\0') { if ((valp != NULL) && (i < buf_size - 1)) valp[i++] = *cp; ++cp; } if (i == 0 || i >= buf_size) return NULL; valp[i] = '\0'; return cp; } static inline int maps_next (struct map_iterator *mi, unsigned long *low, unsigned long *high, unsigned long *offset, unsigned long *flags) { char perm[16], dash = 0, colon = 0, *cp; unsigned long major, minor, inum; ssize_t i, nread; if (mi->fd < 0) return 0; while (1) { ssize_t bytes_left = mi->buf_end - mi->buf; char *eol = NULL; for (i = 0; i < bytes_left; ++i) { if (mi->buf[i] == '\n') { eol = mi->buf + i; break; } else if (mi->buf[i] == '\0') break; } if (!eol) { /* copy down the remaining bytes, if any */ if (bytes_left > 0) memmove (mi->buf_end - mi->buf_size, mi->buf, bytes_left); mi->buf = mi->buf_end - mi->buf_size; nread = read (mi->fd, mi->buf + bytes_left, mi->buf_size - bytes_left); if (nread <= 0) return 0; else if ((size_t) (nread + bytes_left) < mi->buf_size) { /* Move contents to the end of the buffer so we maintain the invariant that all bytes between mi->buf and mi->buf_end are valid. */ memmove (mi->buf_end - nread - bytes_left, mi->buf, nread + bytes_left); mi->buf = mi->buf_end - nread - bytes_left; } eol = mi->buf + bytes_left + nread - 1; for (i = bytes_left; i < bytes_left + nread; ++i) if (mi->buf[i] == '\n') { eol = mi->buf + i; break; } } cp = mi->buf; mi->buf = eol + 1; *eol = '\0'; /* scan: "LOW-HIGH PERM OFFSET MAJOR:MINOR INUM PATH" */ cp = scan_hex (cp, low); cp = scan_char (cp, &dash); cp = scan_hex (cp, high); cp = scan_string (cp, perm, sizeof (perm)); cp = scan_hex (cp, offset); cp = scan_hex (cp, &major); cp = scan_char (cp, &colon); cp = scan_hex (cp, &minor); cp = scan_dec (cp, &inum); cp = mi->path = skip_whitespace (cp); if (!cp) continue; cp = scan_string (cp, NULL, 0); if (dash != '-' || colon != ':') continue; /* skip line with unknown or bad format */ if (flags) { *flags = 0; if (perm[0] == 'r') { *flags |= PROT_READ; } if (perm[1] == 'w') { *flags |= PROT_WRITE; } if (perm[2] == 'x') { *flags |= PROT_EXEC; } } return 1; } return 0; } static inline void maps_close (struct map_iterator *mi) { if (mi->fd < 0) return; close (mi->fd); mi->fd = -1; if (mi->buf) { munmap (mi->buf_end - mi->buf_size, mi->buf_size); mi->buf = mi->buf_end = NULL; } } #endif /* os_linux_h */
/* libunwind - a platform-independent unwind library Copyright (C) 2003-2004 Hewlett-Packard Co Copyright (C) 2007 David Mosberger-Tang Contributed by David Mosberger-Tang <[email protected]> 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 os_linux_h #define os_linux_h struct map_iterator { off_t offset; int fd; size_t buf_size; char *buf; char *buf_end; char *path; }; static inline char * unw_ltoa (char *buf, long val) { char *cp = buf, tmp; ssize_t i, len; do { *cp++ = '0' + (val % 10); val /= 10; } while (val); /* reverse the order of the digits: */ len = cp - buf; --cp; for (i = 0; i < len / 2; ++i) { tmp = buf[i]; buf[i] = cp[-i]; cp[-i] = tmp; } return buf + len; } static inline int maps_init (struct map_iterator *mi, pid_t pid) { char path[sizeof ("/proc/0123456789/maps")], *cp; memcpy (path, "/proc/", 6); cp = unw_ltoa (path + 6, pid); assert (cp + 6 < path + sizeof (path)); memcpy (cp, "/maps", 6); mi->fd = open (path, O_RDONLY); if (mi->fd >= 0) { /* Try to allocate a page-sized buffer. */ mi->buf_size = getpagesize (); cp = mmap (NULL, mi->buf_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); if (cp == MAP_FAILED) { close(mi->fd); mi->fd = -1; return -1; } else { mi->offset = 0; mi->buf = mi->buf_end = cp + mi->buf_size; return 0; } } return -1; } static inline char * skip_whitespace (char *cp) { if (!cp) return NULL; while (*cp == ' ' || *cp == '\t') ++cp; return cp; } static inline char * scan_hex (char *cp, unsigned long *valp) { unsigned long num_digits = 0, digit, val = 0; cp = skip_whitespace (cp); if (!cp) return NULL; while (1) { digit = *cp; if ((digit - '0') <= 9) digit -= '0'; else if ((digit - 'a') < 6) digit -= 'a' - 10; else if ((digit - 'A') < 6) digit -= 'A' - 10; else break; val = (val << 4) | digit; ++num_digits; ++cp; } if (!num_digits) return NULL; *valp = val; return cp; } static inline char * scan_dec (char *cp, unsigned long *valp) { unsigned long num_digits = 0, digit, val = 0; if (!(cp = skip_whitespace (cp))) return NULL; while (1) { digit = *cp; if ((digit - '0') <= 9) { digit -= '0'; ++cp; } else break; val = (10 * val) + digit; ++num_digits; } if (!num_digits) return NULL; *valp = val; return cp; } static inline char * scan_char (char *cp, char *valp) { if (!cp) return NULL; *valp = *cp; /* don't step over NUL terminator */ if (*cp) ++cp; return cp; } /* Scan a string delimited by white-space. Fails on empty string or if string is doesn't fit in the specified buffer. */ static inline char * scan_string (char *cp, char *valp, size_t buf_size) { size_t i = 0; if (!(cp = skip_whitespace (cp))) return NULL; while (*cp != ' ' && *cp != '\t' && *cp != '\0') { if ((valp != NULL) && (i < buf_size - 1)) valp[i++] = *cp; ++cp; } if (i == 0 || i >= buf_size) return NULL; valp[i] = '\0'; return cp; } static inline int maps_next (struct map_iterator *mi, unsigned long *low, unsigned long *high, unsigned long *offset, unsigned long *flags) { char perm[16], dash = 0, colon = 0, *cp; unsigned long major, minor, inum; ssize_t i, nread; if (mi->fd < 0) return 0; while (1) { ssize_t bytes_left = mi->buf_end - mi->buf; char *eol = NULL; for (i = 0; i < bytes_left; ++i) { if (mi->buf[i] == '\n') { eol = mi->buf + i; break; } else if (mi->buf[i] == '\0') break; } if (!eol) { /* copy down the remaining bytes, if any */ if (bytes_left > 0) memmove (mi->buf_end - mi->buf_size, mi->buf, bytes_left); mi->buf = mi->buf_end - mi->buf_size; nread = read (mi->fd, mi->buf + bytes_left, mi->buf_size - bytes_left); if (nread <= 0) return 0; else if ((size_t) (nread + bytes_left) < mi->buf_size) { /* Move contents to the end of the buffer so we maintain the invariant that all bytes between mi->buf and mi->buf_end are valid. */ memmove (mi->buf_end - nread - bytes_left, mi->buf, nread + bytes_left); mi->buf = mi->buf_end - nread - bytes_left; } eol = mi->buf + bytes_left + nread - 1; for (i = bytes_left; i < bytes_left + nread; ++i) if (mi->buf[i] == '\n') { eol = mi->buf + i; break; } } cp = mi->buf; mi->buf = eol + 1; *eol = '\0'; /* scan: "LOW-HIGH PERM OFFSET MAJOR:MINOR INUM PATH" */ cp = scan_hex (cp, low); cp = scan_char (cp, &dash); cp = scan_hex (cp, high); cp = scan_string (cp, perm, sizeof (perm)); cp = scan_hex (cp, offset); cp = scan_hex (cp, &major); cp = scan_char (cp, &colon); cp = scan_hex (cp, &minor); cp = scan_dec (cp, &inum); cp = mi->path = skip_whitespace (cp); if (!cp) continue; cp = scan_string (cp, NULL, 0); if (dash != '-' || colon != ':') continue; /* skip line with unknown or bad format */ if (flags) { *flags = 0; if (perm[0] == 'r') { *flags |= PROT_READ; } if (perm[1] == 'w') { *flags |= PROT_WRITE; } if (perm[2] == 'x') { *flags |= PROT_EXEC; } } return 1; } return 0; } static inline void maps_close (struct map_iterator *mi) { if (mi->fd < 0) return; close (mi->fd); mi->fd = -1; if (mi->buf) { munmap (mi->buf_end - mi->buf_size, mi->buf_size); mi->buf = mi->buf_end = NULL; } } #endif /* os_linux_h */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/nativeaot/Runtime/gcinfodecoder.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "../../inc/gcinfodecoder.h"
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "../../inc/gcinfodecoder.h"
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/c_runtime/wcstoul/test1/test1.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test1.c ** ** Purpose: Test #1 for the wcstoul function ** ** **==========================================================================*/ #include <palsuite.h> /* * Notes: wcstoul should depend on the current locale's LC_NUMERIC category, * this is not currently tested. */ PALTEST(c_runtime_wcstoul_test1_paltest_wcstoul_test1, "c_runtime/wcstoul/test1/paltest_wcstoul_test1") { WCHAR teststr[] = {'1','2','3','4','5',0}; WCHAR *end; ULONG result = 27; ULONG l; if (0 != PAL_Initialize(argc, argv)) { return FAIL; } l = wcstoul(teststr, &end, 4); if (l != result) { Fail("ERROR: Expected wcstoul to return %u, got %u\n", result, l); } if (end != teststr + 3) { Fail("ERROR: Expected wcstoul to give an end value of %p, got %p\n", teststr + 3, end); } 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: test1.c ** ** Purpose: Test #1 for the wcstoul function ** ** **==========================================================================*/ #include <palsuite.h> /* * Notes: wcstoul should depend on the current locale's LC_NUMERIC category, * this is not currently tested. */ PALTEST(c_runtime_wcstoul_test1_paltest_wcstoul_test1, "c_runtime/wcstoul/test1/paltest_wcstoul_test1") { WCHAR teststr[] = {'1','2','3','4','5',0}; WCHAR *end; ULONG result = 27; ULONG l; if (0 != PAL_Initialize(argc, argv)) { return FAIL; } l = wcstoul(teststr, &end, 4); if (l != result) { Fail("ERROR: Expected wcstoul to return %u, got %u\n", result, l); } if (end != teststr + 3) { Fail("ERROR: Expected wcstoul to give an end value of %p, got %p\n", teststr + 3, end); } PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/gc/env/volatile.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // Volatile.h // // // Defines the Volatile<T> type, which provides uniform volatile-ness on // Visual C++ and GNU C++. // // Visual C++ treats accesses to volatile variables as follows: no read or write // can be removed by the compiler, no global memory access can be moved backwards past // a volatile read, and no global memory access can be moved forward past a volatile // write. // // The GCC volatile semantic is straight out of the C standard: the compiler is not // allowed to remove accesses to volatile variables, and it is not allowed to reorder // volatile accesses relative to other volatile accesses. It is allowed to freely // reorder non-volatile accesses relative to volatile accesses. // // We have lots of code that assumes that ordering of non-volatile accesses will be // constrained relative to volatile accesses. For example, this pattern appears all // over the place: // // static volatile int lock = 0; // // while (InterlockedCompareExchange(&lock, 0, 1)) // { // //spin // } // // //read and write variables protected by the lock // // lock = 0; // // This depends on the reads and writes in the critical section not moving past the // final statement, which releases the lock. If this should happen, then you have an // unintended race. // // The solution is to ban the use of the "volatile" keyword, and instead define our // own type Volatile<T>, which acts like a variable of type T except that accesses to // the variable are always given VC++'s volatile semantics. // // (NOTE: The code above is not intended to be an example of how a spinlock should be // implemented; it has many flaws, and should not be used. This code is intended only // to illustrate where we might get into trouble with GCC's volatile semantics.) // // @TODO: many of the variables marked volatile in the CLR do not actually need to be // volatile. For example, if a variable is just always passed to Interlocked functions // (such as a refcount variable), there is no need for it to be volatile. A future // cleanup task should be to examine each volatile variable and make them non-volatile // if possible. // // @TODO: link to a "Memory Models for CLR Devs" doc here (this doc does not yet exist). // #ifndef _VOLATILE_H_ #define _VOLATILE_H_ // // This code is extremely compiler- and CPU-specific, and will need to be altered to // support new compilers and/or CPUs. Here we enforce that we can only compile using // VC++, or GCC on x86 or AMD64. // #if !defined(_MSC_VER) && !defined(__GNUC__) #error The Volatile type is currently only defined for Visual C++ and GNU C++ #endif #if defined(__GNUC__) && !defined(HOST_X86) && !defined(HOST_AMD64) && !defined(HOST_ARM) && !defined(HOST_ARM64) && !defined(HOST_LOONGARCH64) && !defined(HOST_WASM) #error The Volatile type is currently only defined for GCC when targeting x86, AMD64, ARM, ARM64, LOONGARCH64 or Wasm #endif #if defined(__GNUC__) #if defined(HOST_ARM) || defined(HOST_ARM64) // This is functionally equivalent to the MemoryBarrier() macro used on ARM on Windows. #define VOLATILE_MEMORY_BARRIER() asm volatile ("dmb ish" : : : "memory") #elif defined(HOST_LOONGARCH64) #define VOLATILE_MEMORY_BARRIER() asm volatile ("dbar 0 " : : : "memory") #else // // For GCC, we prevent reordering by the compiler by inserting the following after a volatile // load (to prevent subsequent operations from moving before the read), and before a volatile // write (to prevent prior operations from moving past the write). We don't need to do anything // special to prevent CPU reorderings, because the x86 and AMD64 architectures are already // sufficiently constrained for our purposes. If we ever need to run on weaker CPU architectures // (such as PowerPC), then we will need to do more work. // // Please do not use this macro outside of this file. It is subject to change or removal without // notice. // #define VOLATILE_MEMORY_BARRIER() asm volatile ("" : : : "memory") #endif // HOST_ARM || HOST_ARM64 #elif (defined(HOST_ARM) || defined(HOST_ARM64)) && _ISO_VOLATILE // ARM & ARM64 have a very weak memory model and very few tools to control that model. We're forced to perform a full // memory barrier to preserve the volatile semantics. Technically this is only necessary on MP systems but we // currently don't have a cheap way to determine the number of CPUs from this header file. Revisit this if it // turns out to be a performance issue for the uni-proc case. #define VOLATILE_MEMORY_BARRIER() MemoryBarrier() #else // // On VC++, reorderings at the compiler and machine level are prevented by the use of the // "volatile" keyword in VolatileLoad and VolatileStore. This should work on any CPU architecture // targeted by VC++ with /iso_volatile-. // #define VOLATILE_MEMORY_BARRIER() #endif // __GNUC__ template<typename T> struct RemoveVolatile { typedef T type; }; template<typename T> struct RemoveVolatile<volatile T> { typedef T type; }; // // VolatileLoad loads a T from a pointer to T. It is guaranteed that this load will not be optimized // away by the compiler, and that any operation that occurs after this load, in program order, will // not be moved before this load. In general it is not guaranteed that the load will be atomic, though // this is the case for most aligned scalar data types. If you need atomic loads or stores, you need // to consult the compiler and CPU manuals to find which circumstances allow atomicity. // // Starting at version 3.8, clang errors out on initializing of type int * to volatile int *. To fix this, we add two templates to cast away volatility // Helper structures for casting away volatileness #if defined(HOST_ARM64) && defined(_MSC_VER) #include <arm64intr.h> #endif template<typename T> inline T VolatileLoad(T const * pt) { #ifndef DACCESS_COMPILE #if defined(HOST_ARM64) && defined(__GNUC__) T val; static const unsigned lockFreeAtomicSizeMask = (1 << 1) | (1 << 2) | (1 << 4) | (1 << 8); if((1 << sizeof(T)) & lockFreeAtomicSizeMask) { __atomic_load((T const *)pt, const_cast<typename RemoveVolatile<T>::type *>(&val), __ATOMIC_ACQUIRE); } else { val = *(T volatile const *)pt; asm volatile ("dmb ishld" : : : "memory"); } #elif defined(HOST_ARM64) && defined(_MSC_VER) // silence warnings on casts in branches that are not taken. #pragma warning(push) #pragma warning(disable : 4311) #pragma warning(disable : 4312) T val; T* pv = &val; switch (sizeof(T)) { case 1: *(unsigned __int8* )pv = __ldar8 ((unsigned __int8 volatile*)pt); break; case 2: *(unsigned __int16*)pv = __ldar16((unsigned __int16 volatile*)pt); break; case 4: *(unsigned __int32*)pv = __ldar32((unsigned __int32 volatile*)pt); break; case 8: *(unsigned __int64*)pv = __ldar64((unsigned __int64 volatile*)pt); break; default: val = *(T volatile const*)pt; __dmb(_ARM64_BARRIER_ISHLD); } #pragma warning(pop) #else T val = *(T volatile const *)pt; VOLATILE_MEMORY_BARRIER(); #endif #else T val = *pt; #endif return val; } template<typename T> inline T VolatileLoadWithoutBarrier(T const * pt) { #ifndef DACCESS_COMPILE T val = *(T volatile const *)pt; #else T val = *pt; #endif return val; } template <typename T> class Volatile; template<typename T> inline T VolatileLoad(Volatile<T> const * pt) { return pt->Load(); } // // VolatileStore stores a T into the target of a pointer to T. Is is guaranteed that this store will // not be optimized away by the compiler, and that any operation that occurs before this store, in program // order, will not be moved after this store. In general, it is not guaranteed that the store will be // atomic, though this is the case for most aligned scalar data types. If you need atomic loads or stores, // you need to consult the compiler and CPU manuals to find which circumstances allow atomicity. // template<typename T> inline void VolatileStore(T* pt, T val) { #ifndef DACCESS_COMPILE #if defined(HOST_ARM64) && defined(__GNUC__) static const unsigned lockFreeAtomicSizeMask = (1 << 1) | (1 << 2) | (1 << 4) | (1 << 8); if((1 << sizeof(T)) & lockFreeAtomicSizeMask) { __atomic_store((T volatile *)pt, &val, __ATOMIC_RELEASE); } else { VOLATILE_MEMORY_BARRIER(); *(T volatile *)pt = val; } #elif defined(HOST_ARM64) && defined(_MSC_VER) // silence warnings on casts in branches that are not taken. #pragma warning(push) #pragma warning(disable : 4311) #pragma warning(disable : 4312) T* pv = &val; switch (sizeof(T)) { case 1: __stlr8 ((unsigned __int8 volatile*)pt, *(unsigned __int8* )pv); break; case 2: __stlr16((unsigned __int16 volatile*)pt, *(unsigned __int16*)pv); break; case 4: __stlr32((unsigned __int32 volatile*)pt, *(unsigned __int32*)pv); break; case 8: __stlr64((unsigned __int64 volatile*)pt, *(unsigned __int64*)pv); break; default: __dmb(_ARM64_BARRIER_ISH); *(T volatile *)pt = val; } #pragma warning(pop) #else VOLATILE_MEMORY_BARRIER(); *(T volatile *)pt = val; #endif #else *pt = val; #endif } template<typename T> inline void VolatileStoreWithoutBarrier(T* pt, T val) { #ifndef DACCESS_COMPILE *(T volatile *)pt = val; #else *pt = val; #endif } // // Volatile<T> implements accesses with our volatile semantics over a variable of type T. // Wherever you would have used a "volatile Foo" or, equivalently, "Foo volatile", use Volatile<Foo> // instead. If Foo is a pointer type, use VolatilePtr. // // Note that there are still some things that don't work with a Volatile<T>, // that would have worked with a "volatile T". For example, you can't cast a Volatile<int> to a float. // You must instead cast to an int, then to a float. Or you can call Load on the Volatile<int>, and // cast the result to a float. In general, calling Load or Store explicitly will work around // any problems that can't be solved by operator overloading. // // @TODO: it's not clear that we actually *want* any operator overloading here. It's in here primarily // to ease the task of converting all of the old uses of the volatile keyword, but in the long // run it's probably better if users of this class are forced to call Load() and Store() explicitly. // This would make it much more clear where the memory barriers are, and which operations are actually // being performed, but it will have to wait for another cleanup effort. // template <typename T> class Volatile { private: // // The data which we are treating as volatile // T m_val; public: // // Default constructor. Results in an unitialized value! // inline Volatile() { } // // Allow initialization of Volatile<T> from a T // inline Volatile(const T& val) { ((volatile T &)m_val) = val; } // // Copy constructor // inline Volatile(const Volatile<T>& other) { ((volatile T &)m_val) = other.Load(); } // // Loads the value of the volatile variable. See code:VolatileLoad for the semantics of this operation. // inline T Load() const { return VolatileLoad(&m_val); } // // Loads the value of the volatile variable atomically without erecting the memory barrier. // inline T LoadWithoutBarrier() const { return ((volatile T &)m_val); } // // Stores a new value to the volatile variable. See code:VolatileStore for the semantics of this // operation. // inline void Store(const T& val) { VolatileStore(&m_val, val); } // // Stores a new value to the volatile variable atomically without erecting the memory barrier. // inline void StoreWithoutBarrier(const T& val) const { ((volatile T &)m_val) = val; } // // Gets a pointer to the volatile variable. This is dangerous, as it permits the variable to be // accessed without using Load and Store, but it is necessary for passing Volatile<T> to APIs like // InterlockedIncrement. // inline volatile T* GetPointer() { return (volatile T*)&m_val; } // // Gets the raw value of the variable. This is dangerous, as it permits the variable to be // accessed without using Load and Store // inline T& RawValue() { return m_val; } // // Allow casts from Volatile<T> to T. Note that this allows implicit casts, so you can // pass a Volatile<T> directly to a method that expects a T. // inline operator T() const { return this->Load(); } // // Assignment from T // inline Volatile<T>& operator=(T val) {Store(val); return *this;} // // Get the address of the volatile variable. This is dangerous, as it allows the value of the // volatile variable to be accessed directly, without going through Load and Store, but it is // necessary for passing Volatile<T> to APIs like InterlockedIncrement. Note that we are returning // a pointer to a volatile T here, so we cannot accidentally pass this pointer to an API that // expects a normal pointer. // inline T volatile * operator&() {return this->GetPointer();} inline T volatile const * operator&() const {return this->GetPointer();} // // Comparison operators // template<typename TOther> inline bool operator==(const TOther& other) const {return this->Load() == other;} template<typename TOther> inline bool operator!=(const TOther& other) const {return this->Load() != other;} // // Miscellaneous operators. Add more as necessary. // inline Volatile<T>& operator+=(T val) {Store(this->Load() + val); return *this;} inline Volatile<T>& operator-=(T val) {Store(this->Load() - val); return *this;} inline Volatile<T>& operator|=(T val) {Store(this->Load() | val); return *this;} inline Volatile<T>& operator&=(T val) {Store(this->Load() & val); return *this;} inline bool operator!() const { return !this->Load();} // // Prefix increment // inline Volatile& operator++() {this->Store(this->Load()+1); return *this;} // // Postfix increment // inline T operator++(int) {T val = this->Load(); this->Store(val+1); return val;} // // Prefix decrement // inline Volatile& operator--() {this->Store(this->Load()-1); return *this;} // // Postfix decrement // inline T operator--(int) {T val = this->Load(); this->Store(val-1); return val;} }; // // A VolatilePtr builds on Volatile<T> by adding operators appropriate to pointers. // Wherever you would have used "Foo * volatile", use "VolatilePtr<Foo>" instead. // // VolatilePtr also allows the substution of other types for the underlying pointer. This // allows you to wrap a VolatilePtr around a custom type that looks like a pointer. For example, // if what you want is a "volatile DPTR<Foo>", use "VolatilePtr<Foo, DPTR<Foo>>". // template <typename T, typename P = T*> class VolatilePtr : public Volatile<P> { public: // // Default constructor. Results in an uninitialized pointer! // inline VolatilePtr() { } // // Allow assignment from the pointer type. // inline VolatilePtr(P val) : Volatile<P>(val) { } // // Copy constructor // inline VolatilePtr(const VolatilePtr& other) : Volatile<P>(other) { } // // Cast to the pointer type // inline operator P() const { return (P)this->Load(); } // // Member access // inline P operator->() const { return (P)this->Load(); } // // Dereference the pointer // inline T& operator*() const { return *(P)this->Load(); } // // Access the pointer as an array // template <typename TIndex> inline T& operator[](TIndex index) { return ((P)this->Load())[index]; } }; #define VOLATILE(T) Volatile<T> #endif //_VOLATILE_H_
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // Volatile.h // // // Defines the Volatile<T> type, which provides uniform volatile-ness on // Visual C++ and GNU C++. // // Visual C++ treats accesses to volatile variables as follows: no read or write // can be removed by the compiler, no global memory access can be moved backwards past // a volatile read, and no global memory access can be moved forward past a volatile // write. // // The GCC volatile semantic is straight out of the C standard: the compiler is not // allowed to remove accesses to volatile variables, and it is not allowed to reorder // volatile accesses relative to other volatile accesses. It is allowed to freely // reorder non-volatile accesses relative to volatile accesses. // // We have lots of code that assumes that ordering of non-volatile accesses will be // constrained relative to volatile accesses. For example, this pattern appears all // over the place: // // static volatile int lock = 0; // // while (InterlockedCompareExchange(&lock, 0, 1)) // { // //spin // } // // //read and write variables protected by the lock // // lock = 0; // // This depends on the reads and writes in the critical section not moving past the // final statement, which releases the lock. If this should happen, then you have an // unintended race. // // The solution is to ban the use of the "volatile" keyword, and instead define our // own type Volatile<T>, which acts like a variable of type T except that accesses to // the variable are always given VC++'s volatile semantics. // // (NOTE: The code above is not intended to be an example of how a spinlock should be // implemented; it has many flaws, and should not be used. This code is intended only // to illustrate where we might get into trouble with GCC's volatile semantics.) // // @TODO: many of the variables marked volatile in the CLR do not actually need to be // volatile. For example, if a variable is just always passed to Interlocked functions // (such as a refcount variable), there is no need for it to be volatile. A future // cleanup task should be to examine each volatile variable and make them non-volatile // if possible. // // @TODO: link to a "Memory Models for CLR Devs" doc here (this doc does not yet exist). // #ifndef _VOLATILE_H_ #define _VOLATILE_H_ // // This code is extremely compiler- and CPU-specific, and will need to be altered to // support new compilers and/or CPUs. Here we enforce that we can only compile using // VC++, or GCC on x86 or AMD64. // #if !defined(_MSC_VER) && !defined(__GNUC__) #error The Volatile type is currently only defined for Visual C++ and GNU C++ #endif #if defined(__GNUC__) && !defined(HOST_X86) && !defined(HOST_AMD64) && !defined(HOST_ARM) && !defined(HOST_ARM64) && !defined(HOST_LOONGARCH64) && !defined(HOST_WASM) #error The Volatile type is currently only defined for GCC when targeting x86, AMD64, ARM, ARM64, LOONGARCH64 or Wasm #endif #if defined(__GNUC__) #if defined(HOST_ARM) || defined(HOST_ARM64) // This is functionally equivalent to the MemoryBarrier() macro used on ARM on Windows. #define VOLATILE_MEMORY_BARRIER() asm volatile ("dmb ish" : : : "memory") #elif defined(HOST_LOONGARCH64) #define VOLATILE_MEMORY_BARRIER() asm volatile ("dbar 0 " : : : "memory") #else // // For GCC, we prevent reordering by the compiler by inserting the following after a volatile // load (to prevent subsequent operations from moving before the read), and before a volatile // write (to prevent prior operations from moving past the write). We don't need to do anything // special to prevent CPU reorderings, because the x86 and AMD64 architectures are already // sufficiently constrained for our purposes. If we ever need to run on weaker CPU architectures // (such as PowerPC), then we will need to do more work. // // Please do not use this macro outside of this file. It is subject to change or removal without // notice. // #define VOLATILE_MEMORY_BARRIER() asm volatile ("" : : : "memory") #endif // HOST_ARM || HOST_ARM64 #elif (defined(HOST_ARM) || defined(HOST_ARM64)) && _ISO_VOLATILE // ARM & ARM64 have a very weak memory model and very few tools to control that model. We're forced to perform a full // memory barrier to preserve the volatile semantics. Technically this is only necessary on MP systems but we // currently don't have a cheap way to determine the number of CPUs from this header file. Revisit this if it // turns out to be a performance issue for the uni-proc case. #define VOLATILE_MEMORY_BARRIER() MemoryBarrier() #else // // On VC++, reorderings at the compiler and machine level are prevented by the use of the // "volatile" keyword in VolatileLoad and VolatileStore. This should work on any CPU architecture // targeted by VC++ with /iso_volatile-. // #define VOLATILE_MEMORY_BARRIER() #endif // __GNUC__ template<typename T> struct RemoveVolatile { typedef T type; }; template<typename T> struct RemoveVolatile<volatile T> { typedef T type; }; // // VolatileLoad loads a T from a pointer to T. It is guaranteed that this load will not be optimized // away by the compiler, and that any operation that occurs after this load, in program order, will // not be moved before this load. In general it is not guaranteed that the load will be atomic, though // this is the case for most aligned scalar data types. If you need atomic loads or stores, you need // to consult the compiler and CPU manuals to find which circumstances allow atomicity. // // Starting at version 3.8, clang errors out on initializing of type int * to volatile int *. To fix this, we add two templates to cast away volatility // Helper structures for casting away volatileness #if defined(HOST_ARM64) && defined(_MSC_VER) #include <arm64intr.h> #endif template<typename T> inline T VolatileLoad(T const * pt) { #ifndef DACCESS_COMPILE #if defined(HOST_ARM64) && defined(__GNUC__) T val; static const unsigned lockFreeAtomicSizeMask = (1 << 1) | (1 << 2) | (1 << 4) | (1 << 8); if((1 << sizeof(T)) & lockFreeAtomicSizeMask) { __atomic_load((T const *)pt, const_cast<typename RemoveVolatile<T>::type *>(&val), __ATOMIC_ACQUIRE); } else { val = *(T volatile const *)pt; asm volatile ("dmb ishld" : : : "memory"); } #elif defined(HOST_ARM64) && defined(_MSC_VER) // silence warnings on casts in branches that are not taken. #pragma warning(push) #pragma warning(disable : 4311) #pragma warning(disable : 4312) T val; T* pv = &val; switch (sizeof(T)) { case 1: *(unsigned __int8* )pv = __ldar8 ((unsigned __int8 volatile*)pt); break; case 2: *(unsigned __int16*)pv = __ldar16((unsigned __int16 volatile*)pt); break; case 4: *(unsigned __int32*)pv = __ldar32((unsigned __int32 volatile*)pt); break; case 8: *(unsigned __int64*)pv = __ldar64((unsigned __int64 volatile*)pt); break; default: val = *(T volatile const*)pt; __dmb(_ARM64_BARRIER_ISHLD); } #pragma warning(pop) #else T val = *(T volatile const *)pt; VOLATILE_MEMORY_BARRIER(); #endif #else T val = *pt; #endif return val; } template<typename T> inline T VolatileLoadWithoutBarrier(T const * pt) { #ifndef DACCESS_COMPILE T val = *(T volatile const *)pt; #else T val = *pt; #endif return val; } template <typename T> class Volatile; template<typename T> inline T VolatileLoad(Volatile<T> const * pt) { return pt->Load(); } // // VolatileStore stores a T into the target of a pointer to T. Is is guaranteed that this store will // not be optimized away by the compiler, and that any operation that occurs before this store, in program // order, will not be moved after this store. In general, it is not guaranteed that the store will be // atomic, though this is the case for most aligned scalar data types. If you need atomic loads or stores, // you need to consult the compiler and CPU manuals to find which circumstances allow atomicity. // template<typename T> inline void VolatileStore(T* pt, T val) { #ifndef DACCESS_COMPILE #if defined(HOST_ARM64) && defined(__GNUC__) static const unsigned lockFreeAtomicSizeMask = (1 << 1) | (1 << 2) | (1 << 4) | (1 << 8); if((1 << sizeof(T)) & lockFreeAtomicSizeMask) { __atomic_store((T volatile *)pt, &val, __ATOMIC_RELEASE); } else { VOLATILE_MEMORY_BARRIER(); *(T volatile *)pt = val; } #elif defined(HOST_ARM64) && defined(_MSC_VER) // silence warnings on casts in branches that are not taken. #pragma warning(push) #pragma warning(disable : 4311) #pragma warning(disable : 4312) T* pv = &val; switch (sizeof(T)) { case 1: __stlr8 ((unsigned __int8 volatile*)pt, *(unsigned __int8* )pv); break; case 2: __stlr16((unsigned __int16 volatile*)pt, *(unsigned __int16*)pv); break; case 4: __stlr32((unsigned __int32 volatile*)pt, *(unsigned __int32*)pv); break; case 8: __stlr64((unsigned __int64 volatile*)pt, *(unsigned __int64*)pv); break; default: __dmb(_ARM64_BARRIER_ISH); *(T volatile *)pt = val; } #pragma warning(pop) #else VOLATILE_MEMORY_BARRIER(); *(T volatile *)pt = val; #endif #else *pt = val; #endif } template<typename T> inline void VolatileStoreWithoutBarrier(T* pt, T val) { #ifndef DACCESS_COMPILE *(T volatile *)pt = val; #else *pt = val; #endif } // // Volatile<T> implements accesses with our volatile semantics over a variable of type T. // Wherever you would have used a "volatile Foo" or, equivalently, "Foo volatile", use Volatile<Foo> // instead. If Foo is a pointer type, use VolatilePtr. // // Note that there are still some things that don't work with a Volatile<T>, // that would have worked with a "volatile T". For example, you can't cast a Volatile<int> to a float. // You must instead cast to an int, then to a float. Or you can call Load on the Volatile<int>, and // cast the result to a float. In general, calling Load or Store explicitly will work around // any problems that can't be solved by operator overloading. // // @TODO: it's not clear that we actually *want* any operator overloading here. It's in here primarily // to ease the task of converting all of the old uses of the volatile keyword, but in the long // run it's probably better if users of this class are forced to call Load() and Store() explicitly. // This would make it much more clear where the memory barriers are, and which operations are actually // being performed, but it will have to wait for another cleanup effort. // template <typename T> class Volatile { private: // // The data which we are treating as volatile // T m_val; public: // // Default constructor. Results in an unitialized value! // inline Volatile() { } // // Allow initialization of Volatile<T> from a T // inline Volatile(const T& val) { ((volatile T &)m_val) = val; } // // Copy constructor // inline Volatile(const Volatile<T>& other) { ((volatile T &)m_val) = other.Load(); } // // Loads the value of the volatile variable. See code:VolatileLoad for the semantics of this operation. // inline T Load() const { return VolatileLoad(&m_val); } // // Loads the value of the volatile variable atomically without erecting the memory barrier. // inline T LoadWithoutBarrier() const { return ((volatile T &)m_val); } // // Stores a new value to the volatile variable. See code:VolatileStore for the semantics of this // operation. // inline void Store(const T& val) { VolatileStore(&m_val, val); } // // Stores a new value to the volatile variable atomically without erecting the memory barrier. // inline void StoreWithoutBarrier(const T& val) const { ((volatile T &)m_val) = val; } // // Gets a pointer to the volatile variable. This is dangerous, as it permits the variable to be // accessed without using Load and Store, but it is necessary for passing Volatile<T> to APIs like // InterlockedIncrement. // inline volatile T* GetPointer() { return (volatile T*)&m_val; } // // Gets the raw value of the variable. This is dangerous, as it permits the variable to be // accessed without using Load and Store // inline T& RawValue() { return m_val; } // // Allow casts from Volatile<T> to T. Note that this allows implicit casts, so you can // pass a Volatile<T> directly to a method that expects a T. // inline operator T() const { return this->Load(); } // // Assignment from T // inline Volatile<T>& operator=(T val) {Store(val); return *this;} // // Get the address of the volatile variable. This is dangerous, as it allows the value of the // volatile variable to be accessed directly, without going through Load and Store, but it is // necessary for passing Volatile<T> to APIs like InterlockedIncrement. Note that we are returning // a pointer to a volatile T here, so we cannot accidentally pass this pointer to an API that // expects a normal pointer. // inline T volatile * operator&() {return this->GetPointer();} inline T volatile const * operator&() const {return this->GetPointer();} // // Comparison operators // template<typename TOther> inline bool operator==(const TOther& other) const {return this->Load() == other;} template<typename TOther> inline bool operator!=(const TOther& other) const {return this->Load() != other;} // // Miscellaneous operators. Add more as necessary. // inline Volatile<T>& operator+=(T val) {Store(this->Load() + val); return *this;} inline Volatile<T>& operator-=(T val) {Store(this->Load() - val); return *this;} inline Volatile<T>& operator|=(T val) {Store(this->Load() | val); return *this;} inline Volatile<T>& operator&=(T val) {Store(this->Load() & val); return *this;} inline bool operator!() const { return !this->Load();} // // Prefix increment // inline Volatile& operator++() {this->Store(this->Load()+1); return *this;} // // Postfix increment // inline T operator++(int) {T val = this->Load(); this->Store(val+1); return val;} // // Prefix decrement // inline Volatile& operator--() {this->Store(this->Load()-1); return *this;} // // Postfix decrement // inline T operator--(int) {T val = this->Load(); this->Store(val-1); return val;} }; // // A VolatilePtr builds on Volatile<T> by adding operators appropriate to pointers. // Wherever you would have used "Foo * volatile", use "VolatilePtr<Foo>" instead. // // VolatilePtr also allows the substution of other types for the underlying pointer. This // allows you to wrap a VolatilePtr around a custom type that looks like a pointer. For example, // if what you want is a "volatile DPTR<Foo>", use "VolatilePtr<Foo, DPTR<Foo>>". // template <typename T, typename P = T*> class VolatilePtr : public Volatile<P> { public: // // Default constructor. Results in an uninitialized pointer! // inline VolatilePtr() { } // // Allow assignment from the pointer type. // inline VolatilePtr(P val) : Volatile<P>(val) { } // // Copy constructor // inline VolatilePtr(const VolatilePtr& other) : Volatile<P>(other) { } // // Cast to the pointer type // inline operator P() const { return (P)this->Load(); } // // Member access // inline P operator->() const { return (P)this->Load(); } // // Dereference the pointer // inline T& operator*() const { return *(P)this->Load(); } // // Access the pointer as an array // template <typename TIndex> inline T& operator[](TIndex index) { return ((P)this->Load())[index]; } }; #define VOLATILE(T) Volatile<T> #endif //_VOLATILE_H_
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/dllimportcallback.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // File: DllImportCallback.cpp // // #include "common.h" #include "threads.h" #include "excep.h" #include "object.h" #include "dllimportcallback.h" #include "mlinfo.h" #include "ceeload.h" #include "eeconfig.h" #include "dbginterface.h" #include "stubgen.h" #include "appdomain.inl" struct UM2MThunk_Args { UMEntryThunk *pEntryThunk; void *pAddr; void *pThunkArgs; int argLen; }; class UMEntryThunkFreeList { public: UMEntryThunkFreeList(size_t threshold) : m_threshold(threshold), m_count(0), m_pHead(NULL), m_pTail(NULL) { WRAPPER_NO_CONTRACT; m_crst.Init(CrstUMEntryThunkFreeListLock, CRST_UNSAFE_ANYMODE); } UMEntryThunk *GetUMEntryThunk() { WRAPPER_NO_CONTRACT; if (m_count < m_threshold) return NULL; CrstHolder ch(&m_crst); UMEntryThunk *pThunk = m_pHead; if (pThunk == NULL) return NULL; m_pHead = m_pHead->m_pNextFreeThunk; --m_count; return pThunk; } void AddToList(UMEntryThunk *pThunkRX, UMEntryThunk *pThunkRW) { CONTRACTL { NOTHROW; } CONTRACTL_END; CrstHolder ch(&m_crst); if (m_pHead == NULL) { m_pHead = pThunkRX; m_pTail = pThunkRX; } else { ExecutableWriterHolder<UMEntryThunk> tailThunkWriterHolder(m_pTail, sizeof(UMEntryThunk)); tailThunkWriterHolder.GetRW()->m_pNextFreeThunk = pThunkRX; m_pTail = pThunkRX; } pThunkRW->m_pNextFreeThunk = NULL; ++m_count; } private: // Used to delay reusing freed thunks size_t m_threshold; size_t m_count; UMEntryThunk *m_pHead; UMEntryThunk *m_pTail; CrstStatic m_crst; }; #define DEFAULT_THUNK_FREE_LIST_THRESHOLD 64 static UMEntryThunkFreeList s_thunkFreeList(DEFAULT_THUNK_FREE_LIST_THRESHOLD); PCODE UMThunkMarshInfo::GetExecStubEntryPoint() { LIMITED_METHOD_CONTRACT; return m_pILStub; } UMEntryThunkCache::UMEntryThunkCache(AppDomain *pDomain) : m_crst(CrstUMEntryThunkCache), m_pDomain(pDomain) { WRAPPER_NO_CONTRACT; _ASSERTE(pDomain != NULL); } UMEntryThunkCache::~UMEntryThunkCache() { WRAPPER_NO_CONTRACT; for (SHash<ThunkSHashTraits>::Iterator i = m_hash.Begin(); i != m_hash.End(); i++) { // UMEntryThunks in this cache own UMThunkMarshInfo in 1-1 fashion DestroyMarshInfo(i->m_pThunk->GetUMThunkMarshInfo()); UMEntryThunk::FreeUMEntryThunk(i->m_pThunk); } } UMEntryThunk *UMEntryThunkCache::GetUMEntryThunk(MethodDesc *pMD) { CONTRACT (UMEntryThunk *) { THROWS; GC_TRIGGERS; MODE_ANY; PRECONDITION(CheckPointer(pMD)); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; UMEntryThunk *pThunk; CrstHolder ch(&m_crst); const CacheElement *pElement = m_hash.LookupPtr(pMD); if (pElement != NULL) { pThunk = pElement->m_pThunk; } else { // cache miss -> create a new thunk pThunk = UMEntryThunk::CreateUMEntryThunk(); Holder<UMEntryThunk *, DoNothing, UMEntryThunk::FreeUMEntryThunk> umHolder; umHolder.Assign(pThunk); UMThunkMarshInfo *pMarshInfo = (UMThunkMarshInfo *)(void *)(m_pDomain->GetStubHeap()->AllocMem(S_SIZE_T(sizeof(UMThunkMarshInfo)))); Holder<UMThunkMarshInfo *, DoNothing, UMEntryThunkCache::DestroyMarshInfo> miHolder; miHolder.Assign(pMarshInfo); ExecutableWriterHolder<UMThunkMarshInfo> marshInfoWriterHolder(pMarshInfo, sizeof(UMThunkMarshInfo)); marshInfoWriterHolder.GetRW()->LoadTimeInit(pMD); ExecutableWriterHolder<UMEntryThunk> thunkWriterHolder(pThunk, sizeof(UMEntryThunk)); thunkWriterHolder.GetRW()->LoadTimeInit(pThunk, NULL, NULL, pMarshInfo, pMD); // add it to the cache CacheElement element; element.m_pMD = pMD; element.m_pThunk = pThunk; m_hash.Add(element); miHolder.SuppressRelease(); umHolder.SuppressRelease(); } RETURN pThunk; } // FailFast if a method marked UnmanagedCallersOnlyAttribute is // invoked directly from managed code. UMThunkStub.asm check the // mode and call this function to failfast. extern "C" VOID STDCALL ReversePInvokeBadTransition() { STATIC_CONTRACT_THROWS; STATIC_CONTRACT_GC_TRIGGERS; // Fail EEPOLICY_HANDLE_FATAL_ERROR_WITH_MESSAGE( COR_E_EXECUTIONENGINE, W("Invalid Program: attempted to call a UnmanagedCallersOnly method from managed code.") ); } PCODE TheUMEntryPrestubWorker(UMEntryThunk * pUMEntryThunk) { STATIC_CONTRACT_THROWS; STATIC_CONTRACT_GC_TRIGGERS; STATIC_CONTRACT_MODE_PREEMPTIVE; Thread * pThread = GetThreadNULLOk(); if (pThread == NULL) { CREATETHREAD_IF_NULL_FAILFAST(pThread, W("Failed to setup new thread during reverse P/Invoke")); } // Verify the current thread isn't in COOP mode. if (pThread->PreemptiveGCDisabled()) ReversePInvokeBadTransition(); INSTALL_MANAGED_EXCEPTION_DISPATCHER; // this method is called by stubs which are called by managed code, // so we need an unwind and continue handler so that our internal // exceptions don't leak out into managed code. INSTALL_UNWIND_AND_CONTINUE_HANDLER; ExecutableWriterHolder<UMEntryThunk> uMEntryThunkWriterHolder(pUMEntryThunk, sizeof(UMEntryThunk)); uMEntryThunkWriterHolder.GetRW()->RunTimeInit(pUMEntryThunk); UNINSTALL_UNWIND_AND_CONTINUE_HANDLER; UNINSTALL_MANAGED_EXCEPTION_DISPATCHER; return (PCODE)pUMEntryThunk->GetCode(); } UMEntryThunk* UMEntryThunk::CreateUMEntryThunk() { CONTRACT (UMEntryThunk*) { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; UMEntryThunk * p; p = s_thunkFreeList.GetUMEntryThunk(); if (p == NULL) p = (UMEntryThunk *)(void *)SystemDomain::GetGlobalLoaderAllocator()->GetExecutableHeap()->AllocMem(S_SIZE_T(sizeof(UMEntryThunk))); RETURN p; } void UMEntryThunk::Terminate() { CONTRACTL { NOTHROW; MODE_ANY; } CONTRACTL_END; ExecutableWriterHolder<UMEntryThunk> thunkWriterHolder(this, sizeof(UMEntryThunk)); m_code.Poison(); if (GetObjectHandle()) { DestroyLongWeakHandle(GetObjectHandle()); thunkWriterHolder.GetRW()->m_pObjectHandle = 0; } s_thunkFreeList.AddToList(this, thunkWriterHolder.GetRW()); } VOID UMEntryThunk::FreeUMEntryThunk(UMEntryThunk* p) { CONTRACTL { NOTHROW; GC_TRIGGERS; MODE_ANY; PRECONDITION(CheckPointer(p)); } CONTRACTL_END; p->Terminate(); } //------------------------------------------------------------------------- // This function is used to report error when we call collected delegate. // But memory that was allocated for thunk can be reused, due to it this // function will not be called in all cases of the collected delegate call, // also it may crash while trying to report the problem. //------------------------------------------------------------------------- VOID __fastcall UMEntryThunk::ReportViolation(UMEntryThunk* pEntryThunk) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_COOPERATIVE; PRECONDITION(CheckPointer(pEntryThunk)); } CONTRACTL_END; MethodDesc* pMethodDesc = pEntryThunk->GetMethod(); SString namespaceOrClassName; SString methodName; SString moduleName; pMethodDesc->GetMethodInfoNoSig(namespaceOrClassName, methodName); moduleName.SetUTF8(pMethodDesc->GetModule()->GetSimpleName()); SString message; message.Printf(W("A callback was made on a garbage collected delegate of type '%s!%s::%s'."), moduleName.GetUnicode(), namespaceOrClassName.GetUnicode(), methodName.GetUnicode()); EEPOLICY_HANDLE_FATAL_ERROR_WITH_MESSAGE(COR_E_FAILFAST, message.GetUnicode()); } UMThunkMarshInfo::~UMThunkMarshInfo() { CONTRACTL { NOTHROW; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; #ifdef _DEBUG FillMemory(this, sizeof(*this), 0xcc); #endif } MethodDesc* UMThunkMarshInfo::GetILStubMethodDesc(MethodDesc* pInvokeMD, PInvokeStaticSigInfo* pSigInfo, DWORD dwStubFlags) { STANDARD_VM_CONTRACT; MethodDesc* pStubMD = NULL; dwStubFlags |= NDIRECTSTUB_FL_REVERSE_INTEROP; // could be either delegate interop or not--that info is passed in from the caller #if defined(DEBUGGING_SUPPORTED) // Combining the next two lines, and eliminating jitDebuggerFlags, leads to bad codegen in x86 Release builds using Visual C++ 19.00.24215.1. CORJIT_FLAGS jitDebuggerFlags = GetDebuggerCompileFlags(pSigInfo->GetModule(), CORJIT_FLAGS()); if (jitDebuggerFlags.IsSet(CORJIT_FLAGS::CORJIT_FLAG_DEBUG_CODE)) { dwStubFlags |= NDIRECTSTUB_FL_GENERATEDEBUGGABLEIL; } #endif // DEBUGGING_SUPPORTED pStubMD = NDirect::CreateCLRToNativeILStub( pSigInfo, dwStubFlags, pInvokeMD // may be NULL ); return pStubMD; } //---------------------------------------------------------- // This initializer is called during load time. // It does not do any stub initialization or sigparsing. // The RunTimeInit() must be called subsequently to fully // UMThunkMarshInfo. //---------------------------------------------------------- VOID UMThunkMarshInfo::LoadTimeInit(MethodDesc* pMD) { LIMITED_METHOD_CONTRACT; PRECONDITION(pMD != NULL); LoadTimeInit(pMD->GetSignature(), pMD->GetModule(), pMD); } VOID UMThunkMarshInfo::LoadTimeInit(Signature sig, Module * pModule, MethodDesc * pMD) { LIMITED_METHOD_CONTRACT; FillMemory(this, sizeof(UMThunkMarshInfo), 0); // Prevent problems with partial deletes // This will be overwritten by the actual code pointer (or NULL) at the end of UMThunkMarshInfo::RunTimeInit() m_pILStub = (PCODE)1; m_pMD = pMD; m_pModule = pModule; m_sig = sig; } //---------------------------------------------------------- // This initializer finishes the init started by LoadTimeInit. // It does stub creation and can throw an exception. // // It can safely be called multiple times and by concurrent // threads. //---------------------------------------------------------- VOID UMThunkMarshInfo::RunTimeInit() { STANDARD_VM_CONTRACT; // Nothing to do if already inited if (IsCompletelyInited()) return; MethodDesc * pMD = GetMethod(); PInvokeStaticSigInfo sigInfo; if (pMD != NULL) new (&sigInfo) PInvokeStaticSigInfo(pMD); else new (&sigInfo) PInvokeStaticSigInfo(GetSignature(), GetModule()); DWORD dwStubFlags = 0; if (sigInfo.IsDelegateInterop()) dwStubFlags |= NDIRECTSTUB_FL_DELEGATE; MethodDesc* pStubMD = GetILStubMethodDesc(pMD, &sigInfo, dwStubFlags); PCODE pFinalILStub = JitILStub(pStubMD); // Must be the last thing we set! InterlockedCompareExchangeT<PCODE>(&m_pILStub, pFinalILStub, (PCODE)1); } #ifdef _DEBUG void STDCALL LogUMTransition(UMEntryThunk* thunk) { CONTRACTL { NOTHROW; DEBUG_ONLY; GC_NOTRIGGER; ENTRY_POINT; if (GetThreadNULLOk()) MODE_PREEMPTIVE; else MODE_ANY; DEBUG_ONLY; PRECONDITION(CheckPointer(thunk)); PRECONDITION((GetThreadNULLOk() != NULL) ? (!GetThread()->PreemptiveGCDisabled()) : TRUE); } CONTRACTL_END; BEGIN_ENTRYPOINT_VOIDRET; void** retESP = ((void**) &thunk) + 4; MethodDesc* method = thunk->GetMethod(); if (method) { LOG((LF_STUBS, LL_INFO1000000, "UNMANAGED -> MANAGED Stub To Method = %s::%s SIG %s Ret Address ESP = 0x%x ret = 0x%x\n", method->m_pszDebugClassName, method->m_pszDebugMethodName, method->m_pszDebugMethodSignature, retESP, *retESP)); } END_ENTRYPOINT_VOIDRET; } #endif // _DEBUG
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // File: DllImportCallback.cpp // // #include "common.h" #include "threads.h" #include "excep.h" #include "object.h" #include "dllimportcallback.h" #include "mlinfo.h" #include "ceeload.h" #include "eeconfig.h" #include "dbginterface.h" #include "stubgen.h" #include "appdomain.inl" struct UM2MThunk_Args { UMEntryThunk *pEntryThunk; void *pAddr; void *pThunkArgs; int argLen; }; class UMEntryThunkFreeList { public: UMEntryThunkFreeList(size_t threshold) : m_threshold(threshold), m_count(0), m_pHead(NULL), m_pTail(NULL) { WRAPPER_NO_CONTRACT; m_crst.Init(CrstUMEntryThunkFreeListLock, CRST_UNSAFE_ANYMODE); } UMEntryThunk *GetUMEntryThunk() { WRAPPER_NO_CONTRACT; if (m_count < m_threshold) return NULL; CrstHolder ch(&m_crst); UMEntryThunk *pThunk = m_pHead; if (pThunk == NULL) return NULL; m_pHead = m_pHead->m_pNextFreeThunk; --m_count; return pThunk; } void AddToList(UMEntryThunk *pThunkRX, UMEntryThunk *pThunkRW) { CONTRACTL { NOTHROW; } CONTRACTL_END; CrstHolder ch(&m_crst); if (m_pHead == NULL) { m_pHead = pThunkRX; m_pTail = pThunkRX; } else { ExecutableWriterHolder<UMEntryThunk> tailThunkWriterHolder(m_pTail, sizeof(UMEntryThunk)); tailThunkWriterHolder.GetRW()->m_pNextFreeThunk = pThunkRX; m_pTail = pThunkRX; } pThunkRW->m_pNextFreeThunk = NULL; ++m_count; } private: // Used to delay reusing freed thunks size_t m_threshold; size_t m_count; UMEntryThunk *m_pHead; UMEntryThunk *m_pTail; CrstStatic m_crst; }; #define DEFAULT_THUNK_FREE_LIST_THRESHOLD 64 static UMEntryThunkFreeList s_thunkFreeList(DEFAULT_THUNK_FREE_LIST_THRESHOLD); PCODE UMThunkMarshInfo::GetExecStubEntryPoint() { LIMITED_METHOD_CONTRACT; return m_pILStub; } UMEntryThunkCache::UMEntryThunkCache(AppDomain *pDomain) : m_crst(CrstUMEntryThunkCache), m_pDomain(pDomain) { WRAPPER_NO_CONTRACT; _ASSERTE(pDomain != NULL); } UMEntryThunkCache::~UMEntryThunkCache() { WRAPPER_NO_CONTRACT; for (SHash<ThunkSHashTraits>::Iterator i = m_hash.Begin(); i != m_hash.End(); i++) { // UMEntryThunks in this cache own UMThunkMarshInfo in 1-1 fashion DestroyMarshInfo(i->m_pThunk->GetUMThunkMarshInfo()); UMEntryThunk::FreeUMEntryThunk(i->m_pThunk); } } UMEntryThunk *UMEntryThunkCache::GetUMEntryThunk(MethodDesc *pMD) { CONTRACT (UMEntryThunk *) { THROWS; GC_TRIGGERS; MODE_ANY; PRECONDITION(CheckPointer(pMD)); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; UMEntryThunk *pThunk; CrstHolder ch(&m_crst); const CacheElement *pElement = m_hash.LookupPtr(pMD); if (pElement != NULL) { pThunk = pElement->m_pThunk; } else { // cache miss -> create a new thunk pThunk = UMEntryThunk::CreateUMEntryThunk(); Holder<UMEntryThunk *, DoNothing, UMEntryThunk::FreeUMEntryThunk> umHolder; umHolder.Assign(pThunk); UMThunkMarshInfo *pMarshInfo = (UMThunkMarshInfo *)(void *)(m_pDomain->GetStubHeap()->AllocMem(S_SIZE_T(sizeof(UMThunkMarshInfo)))); Holder<UMThunkMarshInfo *, DoNothing, UMEntryThunkCache::DestroyMarshInfo> miHolder; miHolder.Assign(pMarshInfo); ExecutableWriterHolder<UMThunkMarshInfo> marshInfoWriterHolder(pMarshInfo, sizeof(UMThunkMarshInfo)); marshInfoWriterHolder.GetRW()->LoadTimeInit(pMD); ExecutableWriterHolder<UMEntryThunk> thunkWriterHolder(pThunk, sizeof(UMEntryThunk)); thunkWriterHolder.GetRW()->LoadTimeInit(pThunk, NULL, NULL, pMarshInfo, pMD); // add it to the cache CacheElement element; element.m_pMD = pMD; element.m_pThunk = pThunk; m_hash.Add(element); miHolder.SuppressRelease(); umHolder.SuppressRelease(); } RETURN pThunk; } // FailFast if a method marked UnmanagedCallersOnlyAttribute is // invoked directly from managed code. UMThunkStub.asm check the // mode and call this function to failfast. extern "C" VOID STDCALL ReversePInvokeBadTransition() { STATIC_CONTRACT_THROWS; STATIC_CONTRACT_GC_TRIGGERS; // Fail EEPOLICY_HANDLE_FATAL_ERROR_WITH_MESSAGE( COR_E_EXECUTIONENGINE, W("Invalid Program: attempted to call a UnmanagedCallersOnly method from managed code.") ); } PCODE TheUMEntryPrestubWorker(UMEntryThunk * pUMEntryThunk) { STATIC_CONTRACT_THROWS; STATIC_CONTRACT_GC_TRIGGERS; STATIC_CONTRACT_MODE_PREEMPTIVE; Thread * pThread = GetThreadNULLOk(); if (pThread == NULL) { CREATETHREAD_IF_NULL_FAILFAST(pThread, W("Failed to setup new thread during reverse P/Invoke")); } // Verify the current thread isn't in COOP mode. if (pThread->PreemptiveGCDisabled()) ReversePInvokeBadTransition(); INSTALL_MANAGED_EXCEPTION_DISPATCHER; // this method is called by stubs which are called by managed code, // so we need an unwind and continue handler so that our internal // exceptions don't leak out into managed code. INSTALL_UNWIND_AND_CONTINUE_HANDLER; ExecutableWriterHolder<UMEntryThunk> uMEntryThunkWriterHolder(pUMEntryThunk, sizeof(UMEntryThunk)); uMEntryThunkWriterHolder.GetRW()->RunTimeInit(pUMEntryThunk); UNINSTALL_UNWIND_AND_CONTINUE_HANDLER; UNINSTALL_MANAGED_EXCEPTION_DISPATCHER; return (PCODE)pUMEntryThunk->GetCode(); } UMEntryThunk* UMEntryThunk::CreateUMEntryThunk() { CONTRACT (UMEntryThunk*) { THROWS; GC_NOTRIGGER; MODE_ANY; INJECT_FAULT(COMPlusThrowOM()); POSTCONDITION(CheckPointer(RETVAL)); } CONTRACT_END; UMEntryThunk * p; p = s_thunkFreeList.GetUMEntryThunk(); if (p == NULL) p = (UMEntryThunk *)(void *)SystemDomain::GetGlobalLoaderAllocator()->GetExecutableHeap()->AllocMem(S_SIZE_T(sizeof(UMEntryThunk))); RETURN p; } void UMEntryThunk::Terminate() { CONTRACTL { NOTHROW; MODE_ANY; } CONTRACTL_END; ExecutableWriterHolder<UMEntryThunk> thunkWriterHolder(this, sizeof(UMEntryThunk)); m_code.Poison(); if (GetObjectHandle()) { DestroyLongWeakHandle(GetObjectHandle()); thunkWriterHolder.GetRW()->m_pObjectHandle = 0; } s_thunkFreeList.AddToList(this, thunkWriterHolder.GetRW()); } VOID UMEntryThunk::FreeUMEntryThunk(UMEntryThunk* p) { CONTRACTL { NOTHROW; GC_TRIGGERS; MODE_ANY; PRECONDITION(CheckPointer(p)); } CONTRACTL_END; p->Terminate(); } //------------------------------------------------------------------------- // This function is used to report error when we call collected delegate. // But memory that was allocated for thunk can be reused, due to it this // function will not be called in all cases of the collected delegate call, // also it may crash while trying to report the problem. //------------------------------------------------------------------------- VOID __fastcall UMEntryThunk::ReportViolation(UMEntryThunk* pEntryThunk) { CONTRACTL { THROWS; GC_TRIGGERS; MODE_COOPERATIVE; PRECONDITION(CheckPointer(pEntryThunk)); } CONTRACTL_END; MethodDesc* pMethodDesc = pEntryThunk->GetMethod(); SString namespaceOrClassName; SString methodName; SString moduleName; pMethodDesc->GetMethodInfoNoSig(namespaceOrClassName, methodName); moduleName.SetUTF8(pMethodDesc->GetModule()->GetSimpleName()); SString message; message.Printf(W("A callback was made on a garbage collected delegate of type '%s!%s::%s'."), moduleName.GetUnicode(), namespaceOrClassName.GetUnicode(), methodName.GetUnicode()); EEPOLICY_HANDLE_FATAL_ERROR_WITH_MESSAGE(COR_E_FAILFAST, message.GetUnicode()); } UMThunkMarshInfo::~UMThunkMarshInfo() { CONTRACTL { NOTHROW; GC_TRIGGERS; MODE_ANY; } CONTRACTL_END; #ifdef _DEBUG FillMemory(this, sizeof(*this), 0xcc); #endif } MethodDesc* UMThunkMarshInfo::GetILStubMethodDesc(MethodDesc* pInvokeMD, PInvokeStaticSigInfo* pSigInfo, DWORD dwStubFlags) { STANDARD_VM_CONTRACT; MethodDesc* pStubMD = NULL; dwStubFlags |= NDIRECTSTUB_FL_REVERSE_INTEROP; // could be either delegate interop or not--that info is passed in from the caller #if defined(DEBUGGING_SUPPORTED) // Combining the next two lines, and eliminating jitDebuggerFlags, leads to bad codegen in x86 Release builds using Visual C++ 19.00.24215.1. CORJIT_FLAGS jitDebuggerFlags = GetDebuggerCompileFlags(pSigInfo->GetModule(), CORJIT_FLAGS()); if (jitDebuggerFlags.IsSet(CORJIT_FLAGS::CORJIT_FLAG_DEBUG_CODE)) { dwStubFlags |= NDIRECTSTUB_FL_GENERATEDEBUGGABLEIL; } #endif // DEBUGGING_SUPPORTED pStubMD = NDirect::CreateCLRToNativeILStub( pSigInfo, dwStubFlags, pInvokeMD // may be NULL ); return pStubMD; } //---------------------------------------------------------- // This initializer is called during load time. // It does not do any stub initialization or sigparsing. // The RunTimeInit() must be called subsequently to fully // UMThunkMarshInfo. //---------------------------------------------------------- VOID UMThunkMarshInfo::LoadTimeInit(MethodDesc* pMD) { LIMITED_METHOD_CONTRACT; PRECONDITION(pMD != NULL); LoadTimeInit(pMD->GetSignature(), pMD->GetModule(), pMD); } VOID UMThunkMarshInfo::LoadTimeInit(Signature sig, Module * pModule, MethodDesc * pMD) { LIMITED_METHOD_CONTRACT; FillMemory(this, sizeof(UMThunkMarshInfo), 0); // Prevent problems with partial deletes // This will be overwritten by the actual code pointer (or NULL) at the end of UMThunkMarshInfo::RunTimeInit() m_pILStub = (PCODE)1; m_pMD = pMD; m_pModule = pModule; m_sig = sig; } //---------------------------------------------------------- // This initializer finishes the init started by LoadTimeInit. // It does stub creation and can throw an exception. // // It can safely be called multiple times and by concurrent // threads. //---------------------------------------------------------- VOID UMThunkMarshInfo::RunTimeInit() { STANDARD_VM_CONTRACT; // Nothing to do if already inited if (IsCompletelyInited()) return; MethodDesc * pMD = GetMethod(); PInvokeStaticSigInfo sigInfo; if (pMD != NULL) new (&sigInfo) PInvokeStaticSigInfo(pMD); else new (&sigInfo) PInvokeStaticSigInfo(GetSignature(), GetModule()); DWORD dwStubFlags = 0; if (sigInfo.IsDelegateInterop()) dwStubFlags |= NDIRECTSTUB_FL_DELEGATE; MethodDesc* pStubMD = GetILStubMethodDesc(pMD, &sigInfo, dwStubFlags); PCODE pFinalILStub = JitILStub(pStubMD); // Must be the last thing we set! InterlockedCompareExchangeT<PCODE>(&m_pILStub, pFinalILStub, (PCODE)1); } #ifdef _DEBUG void STDCALL LogUMTransition(UMEntryThunk* thunk) { CONTRACTL { NOTHROW; DEBUG_ONLY; GC_NOTRIGGER; ENTRY_POINT; if (GetThreadNULLOk()) MODE_PREEMPTIVE; else MODE_ANY; DEBUG_ONLY; PRECONDITION(CheckPointer(thunk)); PRECONDITION((GetThreadNULLOk() != NULL) ? (!GetThread()->PreemptiveGCDisabled()) : TRUE); } CONTRACTL_END; BEGIN_ENTRYPOINT_VOIDRET; void** retESP = ((void**) &thunk) + 4; MethodDesc* method = thunk->GetMethod(); if (method) { LOG((LF_STUBS, LL_INFO1000000, "UNMANAGED -> MANAGED Stub To Method = %s::%s SIG %s Ret Address ESP = 0x%x ret = 0x%x\n", method->m_pszDebugClassName, method->m_pszDebugMethodName, method->m_pszDebugMethodSignature, retESP, *retESP)); } END_ENTRYPOINT_VOIDRET; } #endif // _DEBUG
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/ilstubcache.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // File: ILStubCache.h // // #ifdef _MSC_VER #pragma once #endif // _MSC_VER #ifndef _ILSTUBCACHE_H #define _ILSTUBCACHE_H #include "vars.hpp" #include "util.hpp" #include "crst.h" #include "stubgen.h" class ILStubHashBlobBase { public: size_t m_cbSizeOfBlob; // this is size of entire object!! }; class ILStubHashBlob : public ILStubHashBlobBase { public: BYTE m_rgbBlobData[1]; }; // // This class caches MethodDesc's for dynamically generated IL stubs, it is not // persisted in NGEN images. // class ILStubCache final { public: //--------------------------------------------------------- // Constructor //--------------------------------------------------------- ILStubCache(LoaderHeap* heap = NULL); void Init(LoaderHeap* pHeap); MethodDesc* GetStubMethodDesc( MethodDesc *pTargetMD, ILStubHashBlob* pHashBlob, DWORD dwStubFlags, // bitmask of NDirectStubFlags Module* pSigModule, PCCOR_SIGNATURE pSig, DWORD cbSig, AllocMemTracker* pamTracker, bool& bILStubCreator, MethodDesc* pLastMD); void DeleteEntry(ILStubHashBlob* pHashBlob); void AddMethodDescChunkWithLockTaken(MethodDesc *pMD); static MethodDesc* CreateAndLinkNewILStubMethodDesc( LoaderAllocator* pAllocator, MethodTable* pMT, DWORD dwStubFlags, // bitmask of NDirectStubFlags Module* pSigModule, PCCOR_SIGNATURE pSig, DWORD cbSig, SigTypeContext *pTypeContext, ILStubLinker* pStubLinker); MethodTable * GetStubMethodTable() { LIMITED_METHOD_CONTRACT; return m_pStubMT; } MethodTable* GetOrCreateStubMethodTable(Module* pLoaderModule); private: // static static MethodDesc* CreateNewMethodDesc( LoaderHeap* pCreationHeap, MethodTable* pMT, DWORD dwStubFlags, // bitmask of NDirectStubFlags Module* pSigModule, PCCOR_SIGNATURE pSig, DWORD cbSig, SigTypeContext *pTypeContext, AllocMemTracker* pamTracker); private: // Inner classes struct ILStubCacheEntry { MethodDesc *m_pMethodDesc; ILStubHashBlob *m_pBlob; }; class ILStubCacheTraits : public DefaultSHashTraits<ILStubCacheEntry> { public: using key_t = const ILStubHashBlob *; static const key_t GetKey(_In_ const element_t& e) { LIMITED_METHOD_CONTRACT; return e.m_pBlob; } static count_t Hash(_In_ key_t key); static bool Equals(_In_ key_t lhs, _In_ key_t rhs); static bool IsNull(_In_ const element_t& e) { LIMITED_METHOD_CONTRACT; return e.m_pMethodDesc == NULL; } static const element_t Null() { LIMITED_METHOD_CONTRACT; return ILStubCacheEntry(); } static bool IsDeleted(const element_t &e) { LIMITED_METHOD_CONTRACT; return e.m_pMethodDesc == (MethodDesc *)-1; } static const element_t Deleted() { LIMITED_METHOD_CONTRACT; return ILStubCacheEntry{(MethodDesc *)-1, NULL}; } }; private: Crst m_crst; LoaderHeap* m_heap; MethodTable* m_pStubMT; SHash<ILStubCacheTraits> m_hashMap; }; #endif //_ILSTUBCACHE_H
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // File: ILStubCache.h // // #ifdef _MSC_VER #pragma once #endif // _MSC_VER #ifndef _ILSTUBCACHE_H #define _ILSTUBCACHE_H #include "vars.hpp" #include "util.hpp" #include "crst.h" #include "stubgen.h" class ILStubHashBlobBase { public: size_t m_cbSizeOfBlob; // this is size of entire object!! }; class ILStubHashBlob : public ILStubHashBlobBase { public: BYTE m_rgbBlobData[1]; }; // // This class caches MethodDesc's for dynamically generated IL stubs, it is not // persisted in NGEN images. // class ILStubCache final { public: //--------------------------------------------------------- // Constructor //--------------------------------------------------------- ILStubCache(LoaderHeap* heap = NULL); void Init(LoaderHeap* pHeap); MethodDesc* GetStubMethodDesc( MethodDesc *pTargetMD, ILStubHashBlob* pHashBlob, DWORD dwStubFlags, // bitmask of NDirectStubFlags Module* pSigModule, PCCOR_SIGNATURE pSig, DWORD cbSig, AllocMemTracker* pamTracker, bool& bILStubCreator, MethodDesc* pLastMD); void DeleteEntry(ILStubHashBlob* pHashBlob); void AddMethodDescChunkWithLockTaken(MethodDesc *pMD); static MethodDesc* CreateAndLinkNewILStubMethodDesc( LoaderAllocator* pAllocator, MethodTable* pMT, DWORD dwStubFlags, // bitmask of NDirectStubFlags Module* pSigModule, PCCOR_SIGNATURE pSig, DWORD cbSig, SigTypeContext *pTypeContext, ILStubLinker* pStubLinker); MethodTable * GetStubMethodTable() { LIMITED_METHOD_CONTRACT; return m_pStubMT; } MethodTable* GetOrCreateStubMethodTable(Module* pLoaderModule); private: // static static MethodDesc* CreateNewMethodDesc( LoaderHeap* pCreationHeap, MethodTable* pMT, DWORD dwStubFlags, // bitmask of NDirectStubFlags Module* pSigModule, PCCOR_SIGNATURE pSig, DWORD cbSig, SigTypeContext *pTypeContext, AllocMemTracker* pamTracker); private: // Inner classes struct ILStubCacheEntry { MethodDesc *m_pMethodDesc; ILStubHashBlob *m_pBlob; }; class ILStubCacheTraits : public DefaultSHashTraits<ILStubCacheEntry> { public: using key_t = const ILStubHashBlob *; static const key_t GetKey(_In_ const element_t& e) { LIMITED_METHOD_CONTRACT; return e.m_pBlob; } static count_t Hash(_In_ key_t key); static bool Equals(_In_ key_t lhs, _In_ key_t rhs); static bool IsNull(_In_ const element_t& e) { LIMITED_METHOD_CONTRACT; return e.m_pMethodDesc == NULL; } static const element_t Null() { LIMITED_METHOD_CONTRACT; return ILStubCacheEntry(); } static bool IsDeleted(const element_t &e) { LIMITED_METHOD_CONTRACT; return e.m_pMethodDesc == (MethodDesc *)-1; } static const element_t Deleted() { LIMITED_METHOD_CONTRACT; return ILStubCacheEntry{(MethodDesc *)-1, NULL}; } }; private: Crst m_crst; LoaderHeap* m_heap; MethodTable* m_pStubMT; SHash<ILStubCacheTraits> m_hashMap; }; #endif //_ILSTUBCACHE_H
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/native/libs/System.Security.Cryptography.Native.Apple/pal_sec.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "pal_types.h" #include "pal_compiler.h" #include <Security/Security.h> /* Get an error message for an OSStatus error from the security library. Returns NULL if no message is available for the code. */ PALEXPORT CFStringRef AppleCryptoNative_SecCopyErrorMessageString(OSStatus osStatus);
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "pal_types.h" #include "pal_compiler.h" #include <Security/Security.h> /* Get an error message for an OSStatus error from the security library. Returns NULL if no message is available for the code. */ PALEXPORT CFStringRef AppleCryptoNative_SecCopyErrorMessageString(OSStatus osStatus);
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/src/libunwind/include/tdep-tilegx/libunwind_i.h
/* libunwind - a platform-independent unwind library Copyright (C) 2008 CodeSourcery Copyright (C) 2014 Tilera Corp. 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 TILEGX_LIBUNWIND_I_H #define TILEGX_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 struct { /* no Tilegx-specific fast trace */ } unw_tdep_frame_t; struct unw_addr_space { struct unw_accessors acc; int big_endian; tilegx_abi_t abi; 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 */ unw_word_t sigcontext_addr; unw_word_t sigcontext_sp; unw_word_t sigcontext_pc; }; #define DWARF_GET_LOC(l) ((l).val) #ifndef UNW_REMOTE_ONLY typedef long tilegx_reg_t; #endif #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) (intptr_t) \ tdep_uc_addr((c)->as_arg, (r)), 0)) #define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) #define DWARF_FPREG_LOC(c,r) (DWARF_LOC((unw_word_t) (intptr_t) \ tdep_uc_addr((c)->as_arg, (r)), 0)) /* Tilegx has no FP. */ static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { Debug (1, "Tielgx has no fp!\n"); abort(); return 0; } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { Debug (1, "Tielgx has no fp!\n"); abort(); 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 = *(tilegx_reg_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; *(tilegx_reg_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)) /* TILEGX has no fp. */ static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { Debug (1, "Tielgx has no fp!\n"); abort(); return 0; } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { Debug (1, "Tielgx has no fp!\n"); abort(); return 0; } 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); 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); 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_done UNW_OBJ(init_done) #define tdep_needs_initialization UNW_OBJ(needs_initialization) #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 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 /* TILEGX_LIBUNWIND_I_H */
/* libunwind - a platform-independent unwind library Copyright (C) 2008 CodeSourcery Copyright (C) 2014 Tilera Corp. 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 TILEGX_LIBUNWIND_I_H #define TILEGX_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 struct { /* no Tilegx-specific fast trace */ } unw_tdep_frame_t; struct unw_addr_space { struct unw_accessors acc; int big_endian; tilegx_abi_t abi; 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 */ unw_word_t sigcontext_addr; unw_word_t sigcontext_sp; unw_word_t sigcontext_pc; }; #define DWARF_GET_LOC(l) ((l).val) #ifndef UNW_REMOTE_ONLY typedef long tilegx_reg_t; #endif #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) (intptr_t) \ tdep_uc_addr((c)->as_arg, (r)), 0)) #define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) #define DWARF_FPREG_LOC(c,r) (DWARF_LOC((unw_word_t) (intptr_t) \ tdep_uc_addr((c)->as_arg, (r)), 0)) /* Tilegx has no FP. */ static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { Debug (1, "Tielgx has no fp!\n"); abort(); return 0; } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { Debug (1, "Tielgx has no fp!\n"); abort(); 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 = *(tilegx_reg_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; *(tilegx_reg_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)) /* TILEGX has no fp. */ static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { Debug (1, "Tielgx has no fp!\n"); abort(); return 0; } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { Debug (1, "Tielgx has no fp!\n"); abort(); return 0; } 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); 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); 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_done UNW_OBJ(init_done) #define tdep_needs_initialization UNW_OBJ(needs_initialization) #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 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 /* TILEGX_LIBUNWIND_I_H */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/c_runtime/atan/test1/test1.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================= ** ** Source: test1.c ** ** Purpose: Test to ensure that atan return the correct values ** ** Dependencies: PAL_Initialize ** PAL_Terminate ** Fail ** fabs ** **===========================================================================*/ #include <palsuite.h> // binary64 (double) has a machine epsilon of 2^-52 (approx. 2.22e-16). However, this // is slightly too accurate when writing tests meant to run against libm implementations // for various platforms. 2^-50 (approx. 8.88e-16) seems to be as accurate as we can get. // // The tests themselves will take PAL_EPSILON and adjust it according to the expected result // so that the delta used for comparison will compare the most significant digits and ignore // any digits that are outside the double precision range (15-17 digits). // For example, a test with an expect result in the format of 0.xxxxxxxxxxxxxxxxx will use // PAL_EPSILON for the variance, while an expected result in the format of 0.0xxxxxxxxxxxxxxxxx // will use PAL_EPSILON / 10 and and expected result in the format of x.xxxxxxxxxxxxxxxx will // use PAL_EPSILON * 10. #define PAL_EPSILON 8.8817841970012523e-16 #define PAL_NAN sqrt(-1.0) #define PAL_POSINF -log(0.0) #define PAL_NEGINF log(0.0) /** * Helper test structure */ struct test { double value; /* value to test the function with */ double expected; /* expected result */ double variance; /* maximum delta between the expected and actual result */ }; /** * atan_test1_validate * * test validation function */ void __cdecl atan_test1_validate(double value, double expected, double variance) { double result = atan(value); /* * The test is valid when the difference between result * and expected is less than or equal to variance */ double delta = fabs(result - expected); if (delta > variance) { Fail("atan(%g) returned %20.17g when it should have returned %20.17g", value, result, expected); } } /** * atan_test1_validate * * test validation function for values returning NaN */ void __cdecl atan_test1_validate_isnan(double value) { double result = atan(value); if (!_isnan(result)) { Fail("atan(%g) returned %20.17g when it should have returned %20.17g", value, result, PAL_NAN); } } /** * main * * executable entry point */ PALTEST(c_runtime_atan_test1_paltest_atan_test1, "c_runtime/atan/test1/paltest_atan_test1") { struct test tests[] = { /* value expected variance */ { 0, 0, PAL_EPSILON }, { 0.32951473309607836, 0.31830988618379067, PAL_EPSILON }, // expected: 1 / pi { 0.45054953406980750, 0.42331082513074800, PAL_EPSILON }, // expected: pi - e { 0.46382906716062964, 0.43429448190325183, PAL_EPSILON }, // expected: log10(e) { 0.73930295048660405, 0.63661977236758134, PAL_EPSILON }, // expected: 2 / pi { 0.83064087786078395, 0.69314718055994531, PAL_EPSILON }, // expected: ln(2) { 0.85451043200960189, 0.70710678118654752, PAL_EPSILON }, // expected: 1 / sqrt(2) { 1, 0.78539816339744831, PAL_EPSILON }, // expected: pi / 4 { 1.1134071468135374, 0.83900756059574755, PAL_EPSILON }, // expected: pi - ln(10) { 1.5574077246549022, 1, PAL_EPSILON * 10 }, { 2.1108768356626451, 1.1283791670955126, PAL_EPSILON * 10 }, // expected: 2 / sqrt(pi) { 6.3341191670421916, 1.4142135623730950, PAL_EPSILON * 10 }, // expected: sqrt(2) { 7.7635756709721848, 1.4426950408889634, PAL_EPSILON * 10 }, // expected: log2(e) { PAL_POSINF, 1.5707963267948966, PAL_EPSILON * 10 }, // expected: pi / 2 }; /* PAL initialization */ if (PAL_Initialize(argc, argv) != 0) { return FAIL; } for (int i = 0; i < (sizeof(tests) / sizeof(struct test)); i++) { atan_test1_validate( tests[i].value, tests[i].expected, tests[i].variance); atan_test1_validate(-tests[i].value, -tests[i].expected, tests[i].variance); } atan_test1_validate_isnan(PAL_NAN); 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: test1.c ** ** Purpose: Test to ensure that atan return the correct values ** ** Dependencies: PAL_Initialize ** PAL_Terminate ** Fail ** fabs ** **===========================================================================*/ #include <palsuite.h> // binary64 (double) has a machine epsilon of 2^-52 (approx. 2.22e-16). However, this // is slightly too accurate when writing tests meant to run against libm implementations // for various platforms. 2^-50 (approx. 8.88e-16) seems to be as accurate as we can get. // // The tests themselves will take PAL_EPSILON and adjust it according to the expected result // so that the delta used for comparison will compare the most significant digits and ignore // any digits that are outside the double precision range (15-17 digits). // For example, a test with an expect result in the format of 0.xxxxxxxxxxxxxxxxx will use // PAL_EPSILON for the variance, while an expected result in the format of 0.0xxxxxxxxxxxxxxxxx // will use PAL_EPSILON / 10 and and expected result in the format of x.xxxxxxxxxxxxxxxx will // use PAL_EPSILON * 10. #define PAL_EPSILON 8.8817841970012523e-16 #define PAL_NAN sqrt(-1.0) #define PAL_POSINF -log(0.0) #define PAL_NEGINF log(0.0) /** * Helper test structure */ struct test { double value; /* value to test the function with */ double expected; /* expected result */ double variance; /* maximum delta between the expected and actual result */ }; /** * atan_test1_validate * * test validation function */ void __cdecl atan_test1_validate(double value, double expected, double variance) { double result = atan(value); /* * The test is valid when the difference between result * and expected is less than or equal to variance */ double delta = fabs(result - expected); if (delta > variance) { Fail("atan(%g) returned %20.17g when it should have returned %20.17g", value, result, expected); } } /** * atan_test1_validate * * test validation function for values returning NaN */ void __cdecl atan_test1_validate_isnan(double value) { double result = atan(value); if (!_isnan(result)) { Fail("atan(%g) returned %20.17g when it should have returned %20.17g", value, result, PAL_NAN); } } /** * main * * executable entry point */ PALTEST(c_runtime_atan_test1_paltest_atan_test1, "c_runtime/atan/test1/paltest_atan_test1") { struct test tests[] = { /* value expected variance */ { 0, 0, PAL_EPSILON }, { 0.32951473309607836, 0.31830988618379067, PAL_EPSILON }, // expected: 1 / pi { 0.45054953406980750, 0.42331082513074800, PAL_EPSILON }, // expected: pi - e { 0.46382906716062964, 0.43429448190325183, PAL_EPSILON }, // expected: log10(e) { 0.73930295048660405, 0.63661977236758134, PAL_EPSILON }, // expected: 2 / pi { 0.83064087786078395, 0.69314718055994531, PAL_EPSILON }, // expected: ln(2) { 0.85451043200960189, 0.70710678118654752, PAL_EPSILON }, // expected: 1 / sqrt(2) { 1, 0.78539816339744831, PAL_EPSILON }, // expected: pi / 4 { 1.1134071468135374, 0.83900756059574755, PAL_EPSILON }, // expected: pi - ln(10) { 1.5574077246549022, 1, PAL_EPSILON * 10 }, { 2.1108768356626451, 1.1283791670955126, PAL_EPSILON * 10 }, // expected: 2 / sqrt(pi) { 6.3341191670421916, 1.4142135623730950, PAL_EPSILON * 10 }, // expected: sqrt(2) { 7.7635756709721848, 1.4426950408889634, PAL_EPSILON * 10 }, // expected: log2(e) { PAL_POSINF, 1.5707963267948966, PAL_EPSILON * 10 }, // expected: pi / 2 }; /* PAL initialization */ if (PAL_Initialize(argc, argv) != 0) { return FAIL; } for (int i = 0; i < (sizeof(tests) / sizeof(struct test)); i++) { atan_test1_validate( tests[i].value, tests[i].expected, tests[i].variance); atan_test1_validate(-tests[i].value, -tests[i].expected, tests[i].variance); } atan_test1_validate_isnan(PAL_NAN); PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/tests/Interop/PInvoke/Generics/GenericsNative.Vector256U.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <stdio.h> #include <stdint.h> #include <xplatform.h> #include <platformdefines.h> #if defined(TARGET_XARCH) #include <immintrin.h> #elif defined(TARGET_ARMARCH) // Intentionally empty #else #error Unsupported target architecture #endif #if defined(TARGET_XARCH) typedef __m256i Vector256U; #else typedef struct { uint32_t e00; uint32_t e01; uint32_t e02; uint32_t e03; uint32_t e04; uint32_t e05; uint32_t e06; uint32_t e07; } Vector256U; #endif static Vector256U Vector256UValue = { }; extern "C" DLL_EXPORT Vector256U STDMETHODCALLTYPE ENABLE_AVX GetVector256U(uint32_t e00, uint32_t e01, uint32_t e02, uint32_t e03, uint32_t e04, uint32_t e05, uint32_t e06, uint32_t e07) { union { uint32_t value[8]; Vector256U result; }; value[0] = e00; value[1] = e01; value[2] = e02; value[3] = e03; value[4] = e04; value[5] = e05; value[6] = e06; value[7] = e07; return result; } extern "C" DLL_EXPORT void STDMETHODCALLTYPE ENABLE_AVX GetVector256UOut(uint32_t e00, uint32_t e01, uint32_t e02, uint32_t e03, uint32_t e04, uint32_t e05, uint32_t e06, uint32_t e07, Vector256U* pValue) { Vector256U value = GetVector256U(e00, e01, e02, e03, e04, e05, e06, e07); #if defined(TARGET_XARCH) _mm_storeu_si128(((__m128i*)pValue) + 0, *(((__m128i*)&value) + 0)); _mm_storeu_si128(((__m128i*)pValue) + 1, *(((__m128i*)&value) + 1)); #else *pValue = value; #endif } extern "C" DLL_EXPORT const Vector256U* STDMETHODCALLTYPE ENABLE_AVX GetVector256UPtr(uint32_t e00, uint32_t e01, uint32_t e02, uint32_t e03, uint32_t e04, uint32_t e05, uint32_t e06, uint32_t e07) { GetVector256UOut(e00, e01, e02, e03, e04, e05, e06, e07, &Vector256UValue); return &Vector256UValue; } extern "C" DLL_EXPORT Vector256U STDMETHODCALLTYPE ENABLE_AVX AddVector256U(Vector256U lhs, Vector256U rhs) { throw "P/Invoke for Vector256<uint> should be unsupported."; } extern "C" DLL_EXPORT Vector256U STDMETHODCALLTYPE ENABLE_AVX AddVector256Us(const Vector256U* pValues, uint32_t count) { throw "P/Invoke for Vector256<uint> should be unsupported."; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <stdio.h> #include <stdint.h> #include <xplatform.h> #include <platformdefines.h> #if defined(TARGET_XARCH) #include <immintrin.h> #elif defined(TARGET_ARMARCH) // Intentionally empty #else #error Unsupported target architecture #endif #if defined(TARGET_XARCH) typedef __m256i Vector256U; #else typedef struct { uint32_t e00; uint32_t e01; uint32_t e02; uint32_t e03; uint32_t e04; uint32_t e05; uint32_t e06; uint32_t e07; } Vector256U; #endif static Vector256U Vector256UValue = { }; extern "C" DLL_EXPORT Vector256U STDMETHODCALLTYPE ENABLE_AVX GetVector256U(uint32_t e00, uint32_t e01, uint32_t e02, uint32_t e03, uint32_t e04, uint32_t e05, uint32_t e06, uint32_t e07) { union { uint32_t value[8]; Vector256U result; }; value[0] = e00; value[1] = e01; value[2] = e02; value[3] = e03; value[4] = e04; value[5] = e05; value[6] = e06; value[7] = e07; return result; } extern "C" DLL_EXPORT void STDMETHODCALLTYPE ENABLE_AVX GetVector256UOut(uint32_t e00, uint32_t e01, uint32_t e02, uint32_t e03, uint32_t e04, uint32_t e05, uint32_t e06, uint32_t e07, Vector256U* pValue) { Vector256U value = GetVector256U(e00, e01, e02, e03, e04, e05, e06, e07); #if defined(TARGET_XARCH) _mm_storeu_si128(((__m128i*)pValue) + 0, *(((__m128i*)&value) + 0)); _mm_storeu_si128(((__m128i*)pValue) + 1, *(((__m128i*)&value) + 1)); #else *pValue = value; #endif } extern "C" DLL_EXPORT const Vector256U* STDMETHODCALLTYPE ENABLE_AVX GetVector256UPtr(uint32_t e00, uint32_t e01, uint32_t e02, uint32_t e03, uint32_t e04, uint32_t e05, uint32_t e06, uint32_t e07) { GetVector256UOut(e00, e01, e02, e03, e04, e05, e06, e07, &Vector256UValue); return &Vector256UValue; } extern "C" DLL_EXPORT Vector256U STDMETHODCALLTYPE ENABLE_AVX AddVector256U(Vector256U lhs, Vector256U rhs) { throw "P/Invoke for Vector256<uint> should be unsupported."; } extern "C" DLL_EXPORT Vector256U STDMETHODCALLTYPE ENABLE_AVX AddVector256Us(const Vector256U* pValues, uint32_t count) { throw "P/Invoke for Vector256<uint> should be unsupported."; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/native/libs/System.Native/pal_datetime.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "pal_compiler.h" #include "pal_types.h" PALEXPORT int64_t SystemNative_GetSystemTimeAsTicks(void); #if defined(TARGET_ANDROID) PALEXPORT char* SystemNative_GetDefaultTimeZone(void); #endif
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "pal_compiler.h" #include "pal_types.h" PALEXPORT int64_t SystemNative_GetSystemTimeAsTicks(void); #if defined(TARGET_ANDROID) PALEXPORT char* SystemNative_GetDefaultTimeZone(void); #endif
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/ReferenceSource/i386/cgencpu.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // CGENX86.H - // // Various helper routines for generating x86 assembly code. // // DO NOT INCLUDE THIS FILE DIRECTLY - ALWAYS USE CGENSYS.H INSTEAD // #ifndef _TARGET_X86_ #error Should only include "cgenx86.h" for X86 builds #endif // _TARGET_X86_ #ifndef __cgenx86_h__ #define __cgenx86_h__ #include "utilcode.h" // Given a return address retrieved during stackwalk, // this is the offset by which it should be decremented to lend somewhere in a call instruction. #define STACKWALK_CONTROLPC_ADJUST_OFFSET 1 // preferred alignment for data #define DATA_ALIGNMENT 4 class MethodDesc; class FramedMethodFrame; class Module; class ComCallMethodDesc; class BaseDomain; // CPU-dependent functions Stub * GenerateInitPInvokeFrameHelper(); #ifdef MDA_SUPPORTED EXTERN_C void STDCALL PInvokeStackImbalanceHelper(void); #endif // MDA_SUPPORTED #ifndef FEATURE_CORECLR EXTERN_C void STDCALL CopyCtorCallStub(void); #endif // !FEATURE_CORECLR BOOL Runtime_Test_For_SSE2(); #ifdef CROSSGEN_COMPILE #define GetEEFuncEntryPoint(pfn) 0x1001 #else #define GetEEFuncEntryPoint(pfn) GFN_TADDR(pfn) #endif //********************************************************************** // To be used with GetSpecificCpuInfo() #define CPU_X86_FAMILY(cpuType) (((cpuType) & 0x0F00) >> 8) #define CPU_X86_MODEL(cpuType) (((cpuType) & 0x00F0) >> 4) // Stepping is masked out by GetSpecificCpuInfo() // #define CPU_X86_STEPPING(cpuType) (((cpuType) & 0x000F) ) #define CPU_X86_USE_CMOV(cpuFeat) ((cpuFeat & 0x00008001) == 0x00008001) #define CPU_X86_USE_SSE2(cpuFeat) (((cpuFeat & 0x04000000) == 0x04000000) && Runtime_Test_For_SSE2()) // Values for CPU_X86_FAMILY(cpuType) #define CPU_X86_486 4 #define CPU_X86_PENTIUM 5 #define CPU_X86_PENTIUM_PRO 6 #define CPU_X86_PENTIUM_4 0xF // Values for CPU_X86_MODEL(cpuType) for CPU_X86_PENTIUM_PRO #define CPU_X86_MODEL_PENTIUM_PRO_BANIAS 9 // Pentium M (Mobile PPro with P4 feautres) #define COMMETHOD_PREPAD 8 // # extra bytes to allocate in addition to sizeof(ComCallMethodDesc) #ifdef FEATURE_COMINTEROP #define COMMETHOD_CALL_PRESTUB_SIZE 5 // x86: CALL(E8) xx xx xx xx #define COMMETHOD_CALL_PRESTUB_ADDRESS_OFFSET 1 // the offset of the call target address inside the prestub #endif // FEATURE_COMINTEROP #define STACK_ALIGN_SIZE 4 #define JUMP_ALLOCATE_SIZE 8 // # bytes to allocate for a jump instruction #define BACK_TO_BACK_JUMP_ALLOCATE_SIZE 8 // # bytes to allocate for a back to back jump instruction #define HAS_COMPACT_ENTRYPOINTS 1 // Needed for PInvoke inlining in ngened images #define HAS_NDIRECT_IMPORT_PRECODE 1 #ifdef FEATURE_REMOTING #define HAS_REMOTING_PRECODE 1 #endif #ifdef FEATURE_PREJIT #define HAS_FIXUP_PRECODE 1 #define HAS_FIXUP_PRECODE_CHUNKS 1 #endif // ThisPtrRetBufPrecode one is necessary for closed delegates over static methods with return buffer #define HAS_THISPTR_RETBUF_PRECODE 1 #define CODE_SIZE_ALIGN 4 #define CACHE_LINE_SIZE 32 // As per Intel Optimization Manual the cache line size is 32 bytes #define LOG2SLOT LOG2_PTRSIZE #define ENREGISTERED_RETURNTYPE_MAXSIZE 8 #define ENREGISTERED_RETURNTYPE_INTEGER_MAXSIZE 4 #define CALLDESCR_ARGREGS 1 // CallDescrWorker has ArgumentRegister parameter // Max size of patched TLS helpers #ifdef _DEBUG // Debug build needs extra space for last error trashing #define TLS_GETTER_MAX_SIZE 0x20 #else #define TLS_GETTER_MAX_SIZE 0x10 #endif //======================================================================= // IMPORTANT: This value is used to figure out how much to allocate // for a fixed array of FieldMarshaler's. That means it must be at least // as large as the largest FieldMarshaler subclass. This requirement // is guarded by an assert. //======================================================================= #define MAXFIELDMARSHALERSIZE 24 //********************************************************************** // Parameter size //********************************************************************** typedef INT32 StackElemType; #define STACK_ELEM_SIZE sizeof(StackElemType) #include "stublinkerx86.h" // !! This expression assumes STACK_ELEM_SIZE is a power of 2. #define StackElemSize(parmSize) (((parmSize) + STACK_ELEM_SIZE - 1) & ~((ULONG)(STACK_ELEM_SIZE - 1))) //********************************************************************** // Frames //********************************************************************** //-------------------------------------------------------------------- // This represents some of the FramedMethodFrame fields that are // stored at negative offsets. //-------------------------------------------------------------------- typedef DPTR(struct CalleeSavedRegisters) PTR_CalleeSavedRegisters; struct CalleeSavedRegisters { INT32 edi; INT32 esi; INT32 ebx; INT32 ebp; }; //-------------------------------------------------------------------- // This represents the arguments that are stored in volatile registers. // This should not overlap the CalleeSavedRegisters since those are already // saved separately and it would be wasteful to save the same register twice. // If we do use a non-volatile register as an argument, then the ArgIterator // will probably have to communicate this back to the PromoteCallerStack // routine to avoid a double promotion. //-------------------------------------------------------------------- #define ENUM_ARGUMENT_REGISTERS() \ ARGUMENT_REGISTER(ECX) \ ARGUMENT_REGISTER(EDX) #define ENUM_ARGUMENT_REGISTERS_BACKWARD() \ ARGUMENT_REGISTER(EDX) \ ARGUMENT_REGISTER(ECX) typedef DPTR(struct ArgumentRegisters) PTR_ArgumentRegisters; struct ArgumentRegisters { #define ARGUMENT_REGISTER(regname) INT32 regname; ENUM_ARGUMENT_REGISTERS_BACKWARD() #undef ARGUMENT_REGISTER }; #define NUM_ARGUMENT_REGISTERS 2 #define SCRATCH_REGISTER_X86REG kEAX #define THIS_REG ECX #define THIS_kREG kECX #define ARGUMENT_REG1 ECX #define ARGUMENT_REG2 EDX // forward decl struct REGDISPLAY; typedef REGDISPLAY *PREGDISPLAY; // Sufficient context for Try/Catch restoration. struct EHContext { INT32 Eax; INT32 Ebx; INT32 Ecx; INT32 Edx; INT32 Esi; INT32 Edi; INT32 Ebp; INT32 Esp; INT32 Eip; void Setup(PCODE resumePC, PREGDISPLAY regs); void UpdateFrame(PREGDISPLAY regs); inline TADDR GetSP() { LIMITED_METHOD_CONTRACT; return (TADDR)Esp; } inline void SetSP(LPVOID esp) { LIMITED_METHOD_CONTRACT; Esp = (INT32)(size_t)esp; } inline LPVOID GetFP() { LIMITED_METHOD_CONTRACT; return (LPVOID)(UINT_PTR)Ebp; } inline void SetArg(LPVOID arg) { LIMITED_METHOD_CONTRACT; Eax = (INT32)(size_t)arg; } inline void Init() { Eax = 0; Ebx = 0; Ecx = 0; Edx = 0; Esi = 0; Edi = 0; Ebp = 0; Esp = 0; Eip = 0; } }; #define ARGUMENTREGISTERS_SIZE sizeof(ArgumentRegisters) //********************************************************************** // Exception handling //********************************************************************** inline PCODE GetIP(const CONTEXT * context) { LIMITED_METHOD_DAC_CONTRACT; return PCODE(context->Eip); } inline void SetIP(CONTEXT *context, PCODE eip) { LIMITED_METHOD_DAC_CONTRACT; context->Eip = (DWORD)eip; } inline TADDR GetSP(const CONTEXT * context) { LIMITED_METHOD_DAC_CONTRACT; return (TADDR)(context->Esp); } EXTERN_C LPVOID STDCALL GetCurrentSP(); inline void SetSP(CONTEXT *context, TADDR esp) { LIMITED_METHOD_DAC_CONTRACT; context->Esp = (DWORD)esp; } inline void SetFP(CONTEXT *context, TADDR ebp) { LIMITED_METHOD_DAC_CONTRACT; context->Ebp = (INT32)ebp; } inline TADDR GetFP(const CONTEXT * context) { LIMITED_METHOD_DAC_CONTRACT; return (TADDR)context->Ebp; } // Get Rel32 destination, emit jumpStub if necessary inline INT32 rel32UsingJumpStub(INT32 UNALIGNED * pRel32, PCODE target, MethodDesc *pMethod = NULL, LoaderAllocator *pLoaderAllocator = NULL) { // We do not need jump stubs on i386 LIMITED_METHOD_CONTRACT; TADDR baseAddr = (TADDR)pRel32 + 4; return (INT32)(target - baseAddr); } #ifndef CLR_STANDALONE_BINDER #ifdef FEATURE_COMINTEROP inline void emitCOMStubCall (ComCallMethodDesc *pCOMMethod, PCODE target) { WRAPPER_NO_CONTRACT; BYTE *pBuffer = (BYTE*)pCOMMethod - COMMETHOD_CALL_PRESTUB_SIZE; pBuffer[0] = X86_INSTR_CALL_REL32; //CALLNEAR32 *((LPVOID*)(1+pBuffer)) = (LPVOID) (((LPBYTE)target) - (pBuffer+5)); _ASSERTE(IS_ALIGNED(pBuffer + COMMETHOD_CALL_PRESTUB_ADDRESS_OFFSET, sizeof(void*)) && *((SSIZE_T*)(pBuffer + COMMETHOD_CALL_PRESTUB_ADDRESS_OFFSET)) == ((LPBYTE)target - (LPBYTE)pCOMMethod)); } #endif // FEATURE_COMINTEROP //------------------------------------------------------------------------ WORD GetUnpatchedCodeData(LPCBYTE pAddr); //------------------------------------------------------------------------ inline WORD GetUnpatchedOpcodeWORD(LPCBYTE pAddr) { WRAPPER_NO_CONTRACT; if (CORDebuggerAttached()) { return GetUnpatchedCodeData(pAddr); } else { return *((WORD *)pAddr); } } //------------------------------------------------------------------------ inline BYTE GetUnpatchedOpcodeBYTE(LPCBYTE pAddr) { WRAPPER_NO_CONTRACT; if (CORDebuggerAttached()) { return (BYTE) GetUnpatchedCodeData(pAddr); } else { return *pAddr; } } //------------------------------------------------------------------------ // The following must be a distinguishable set of instruction sequences for // various stub dispatch calls. // // An x86 JIT which uses full stub dispatch must generate only // the following stub dispatch calls: // // (1) isCallRelativeIndirect: // call dword ptr [rel32] ; FF 15 ---rel32---- // (2) isCallRelative: // call abc ; E8 ---rel32---- // (3) isCallRegisterIndirect: // 3-byte nop ; // call dword ptr [eax] ; FF 10 // // NOTE: You must be sure that pRetAddr is a true return address for // a stub dispatch call. BOOL isCallRelativeIndirect(const BYTE *pRetAddr); BOOL isCallRelative(const BYTE *pRetAddr); BOOL isCallRegisterIndirect(const BYTE *pRetAddr); inline BOOL isCallRelativeIndirect(const BYTE *pRetAddr) { LIMITED_METHOD_CONTRACT; BOOL fRet = (GetUnpatchedOpcodeWORD(&pRetAddr[-6]) == X86_INSTR_CALL_IND); _ASSERTE(!fRet || !isCallRelative(pRetAddr)); _ASSERTE(!fRet || !isCallRegisterIndirect(pRetAddr)); return fRet; } inline BOOL isCallRelative(const BYTE *pRetAddr) { LIMITED_METHOD_CONTRACT; BOOL fRet = (GetUnpatchedOpcodeBYTE(&pRetAddr[-5]) == X86_INSTR_CALL_REL32); _ASSERTE(!fRet || !isCallRelativeIndirect(pRetAddr)); _ASSERTE(!fRet || !isCallRegisterIndirect(pRetAddr)); return fRet; } inline BOOL isCallRegisterIndirect(const BYTE *pRetAddr) { LIMITED_METHOD_CONTRACT; BOOL fRet = (GetUnpatchedOpcodeWORD(&pRetAddr[-5]) == X86_INSTR_NOP3_1) && (GetUnpatchedOpcodeBYTE(&pRetAddr[-3]) == X86_INSTR_NOP3_3) && (GetUnpatchedOpcodeWORD(&pRetAddr[-2]) == X86_INSTR_CALL_IND_EAX); _ASSERTE(!fRet || !isCallRelative(pRetAddr)); _ASSERTE(!fRet || !isCallRelativeIndirect(pRetAddr)); return fRet; } //------------------------------------------------------------------------ inline void emitJump(LPBYTE pBuffer, LPVOID target) { LIMITED_METHOD_CONTRACT; pBuffer[0] = X86_INSTR_JMP_REL32; //JUMPNEAR32 *((LPVOID*)(1+pBuffer)) = (LPVOID) (((LPBYTE)target) - (pBuffer+5)); } //------------------------------------------------------------------------ inline void emitJumpInd(LPBYTE pBuffer, LPVOID target) { LIMITED_METHOD_CONTRACT; *((WORD*)pBuffer) = X86_INSTR_JMP_IND; // 0x25FF jmp dword ptr[addr32] *((LPVOID*)(2+pBuffer)) = target; } //------------------------------------------------------------------------ inline PCODE isJump(PCODE pCode) { LIMITED_METHOD_DAC_CONTRACT; return *PTR_BYTE(pCode) == X86_INSTR_JMP_REL32; } //------------------------------------------------------------------------ // Given the same pBuffer that was used by emitJump this method // decodes the instructions and returns the jump target inline PCODE decodeJump(PCODE pCode) { LIMITED_METHOD_DAC_CONTRACT; CONSISTENCY_CHECK(*PTR_BYTE(pCode) == X86_INSTR_JMP_REL32); return rel32Decode(pCode+1); } // // On IA64 back to back jumps should be separated by a nop bundle to get // the best performance from the hardware's branch prediction logic. // For all other platforms back to back jumps don't require anything special // That is why we have these two wrapper functions that call emitJump and decodeJump // //------------------------------------------------------------------------ inline void emitBackToBackJump(LPBYTE pBuffer, LPVOID target) { WRAPPER_NO_CONTRACT; emitJump(pBuffer, target); } //------------------------------------------------------------------------ inline PCODE isBackToBackJump(PCODE pBuffer) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return isJump(pBuffer); } //------------------------------------------------------------------------ inline PCODE decodeBackToBackJump(PCODE pBuffer) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return decodeJump(pBuffer); } EXTERN_C void __stdcall setFPReturn(int fpSize, INT64 retVal); EXTERN_C void __stdcall getFPReturn(int fpSize, INT64 *pretval); // SEH info forward declarations inline BOOL IsUnmanagedValueTypeReturnedByRef(UINT sizeofvaluetype) { LIMITED_METHOD_CONTRACT; // odd-sized small structures are not // enregistered e.g. struct { char a,b,c; } return (sizeofvaluetype > 8) || (sizeofvaluetype & (sizeofvaluetype - 1)); // check that the size is power of two } #include <pshpack1.h> DECLSPEC_ALIGN(4) struct UMEntryThunkCode { BYTE m_alignpad[2]; // used to guarantee alignment of backpactched portion BYTE m_movEAX; //MOV EAX,imm32 LPVOID m_uet; // pointer to start of this structure BYTE m_jmp; //JMP NEAR32 const BYTE * m_execstub; // pointer to destination code // make sure the backpatched portion is dword aligned. void Encode(BYTE* pTargetCode, void* pvSecretParam); LPCBYTE GetEntryPoint() const { LIMITED_METHOD_CONTRACT; return (LPCBYTE)&m_movEAX; } static int GetEntryPointOffset() { LIMITED_METHOD_CONTRACT; return 2; } }; #include <poppack.h> #endif //!CLR_STANDALONE_BINDER // ClrFlushInstructionCache is used when we want to call FlushInstructionCache // for a specific architecture in the common code, but not for other architectures. // On IA64 ClrFlushInstructionCache calls the Kernel FlushInstructionCache function // to flush the instruction cache. // We call ClrFlushInstructionCache whenever we create or modify code in the heap. // Currently ClrFlushInstructionCache has no effect on X86 // inline BOOL ClrFlushInstructionCache(LPCVOID pCodeAddr, size_t sizeOfCode) { // FlushInstructionCache(GetCurrentProcess(), pCodeAddr, sizeOfCode); MemoryBarrier(); return TRUE; } #ifndef FEATURE_IMPLICIT_TLS // // JIT HELPER ALIASING FOR PORTABILITY. // // Create alias for optimized implementations of helpers provided on this platform // #define JIT_MonEnter JIT_MonEnterWorker #define JIT_MonEnterWorker JIT_MonEnterWorker #define JIT_MonReliableEnter JIT_MonReliableEnter #define JIT_MonTryEnter JIT_MonTryEnter #define JIT_MonExit JIT_MonExitWorker #define JIT_MonExitWorker JIT_MonExitWorker #define JIT_MonEnterStatic JIT_MonEnterStatic #define JIT_MonExitStatic JIT_MonExitStatic #endif // optimized static helpers generated dynamically at runtime // #define JIT_GetSharedGCStaticBase // #define JIT_GetSharedNonGCStaticBase // #define JIT_GetSharedGCStaticBaseNoCtor // #define JIT_GetSharedNonGCStaticBaseNoCtor #define JIT_ChkCastClass JIT_ChkCastClass #define JIT_ChkCastClassSpecial JIT_ChkCastClassSpecial #define JIT_IsInstanceOfClass JIT_IsInstanceOfClass #define JIT_ChkCastInterface JIT_ChkCastInterface #define JIT_IsInstanceOfInterface JIT_IsInstanceOfInterface #define JIT_NewCrossContext JIT_NewCrossContext #define JIT_Stelem_Ref JIT_Stelem_Ref #endif // __cgenx86_h__
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // CGENX86.H - // // Various helper routines for generating x86 assembly code. // // DO NOT INCLUDE THIS FILE DIRECTLY - ALWAYS USE CGENSYS.H INSTEAD // #ifndef _TARGET_X86_ #error Should only include "cgenx86.h" for X86 builds #endif // _TARGET_X86_ #ifndef __cgenx86_h__ #define __cgenx86_h__ #include "utilcode.h" // Given a return address retrieved during stackwalk, // this is the offset by which it should be decremented to lend somewhere in a call instruction. #define STACKWALK_CONTROLPC_ADJUST_OFFSET 1 // preferred alignment for data #define DATA_ALIGNMENT 4 class MethodDesc; class FramedMethodFrame; class Module; class ComCallMethodDesc; class BaseDomain; // CPU-dependent functions Stub * GenerateInitPInvokeFrameHelper(); #ifdef MDA_SUPPORTED EXTERN_C void STDCALL PInvokeStackImbalanceHelper(void); #endif // MDA_SUPPORTED #ifndef FEATURE_CORECLR EXTERN_C void STDCALL CopyCtorCallStub(void); #endif // !FEATURE_CORECLR BOOL Runtime_Test_For_SSE2(); #ifdef CROSSGEN_COMPILE #define GetEEFuncEntryPoint(pfn) 0x1001 #else #define GetEEFuncEntryPoint(pfn) GFN_TADDR(pfn) #endif //********************************************************************** // To be used with GetSpecificCpuInfo() #define CPU_X86_FAMILY(cpuType) (((cpuType) & 0x0F00) >> 8) #define CPU_X86_MODEL(cpuType) (((cpuType) & 0x00F0) >> 4) // Stepping is masked out by GetSpecificCpuInfo() // #define CPU_X86_STEPPING(cpuType) (((cpuType) & 0x000F) ) #define CPU_X86_USE_CMOV(cpuFeat) ((cpuFeat & 0x00008001) == 0x00008001) #define CPU_X86_USE_SSE2(cpuFeat) (((cpuFeat & 0x04000000) == 0x04000000) && Runtime_Test_For_SSE2()) // Values for CPU_X86_FAMILY(cpuType) #define CPU_X86_486 4 #define CPU_X86_PENTIUM 5 #define CPU_X86_PENTIUM_PRO 6 #define CPU_X86_PENTIUM_4 0xF // Values for CPU_X86_MODEL(cpuType) for CPU_X86_PENTIUM_PRO #define CPU_X86_MODEL_PENTIUM_PRO_BANIAS 9 // Pentium M (Mobile PPro with P4 feautres) #define COMMETHOD_PREPAD 8 // # extra bytes to allocate in addition to sizeof(ComCallMethodDesc) #ifdef FEATURE_COMINTEROP #define COMMETHOD_CALL_PRESTUB_SIZE 5 // x86: CALL(E8) xx xx xx xx #define COMMETHOD_CALL_PRESTUB_ADDRESS_OFFSET 1 // the offset of the call target address inside the prestub #endif // FEATURE_COMINTEROP #define STACK_ALIGN_SIZE 4 #define JUMP_ALLOCATE_SIZE 8 // # bytes to allocate for a jump instruction #define BACK_TO_BACK_JUMP_ALLOCATE_SIZE 8 // # bytes to allocate for a back to back jump instruction #define HAS_COMPACT_ENTRYPOINTS 1 // Needed for PInvoke inlining in ngened images #define HAS_NDIRECT_IMPORT_PRECODE 1 #ifdef FEATURE_REMOTING #define HAS_REMOTING_PRECODE 1 #endif #ifdef FEATURE_PREJIT #define HAS_FIXUP_PRECODE 1 #define HAS_FIXUP_PRECODE_CHUNKS 1 #endif // ThisPtrRetBufPrecode one is necessary for closed delegates over static methods with return buffer #define HAS_THISPTR_RETBUF_PRECODE 1 #define CODE_SIZE_ALIGN 4 #define CACHE_LINE_SIZE 32 // As per Intel Optimization Manual the cache line size is 32 bytes #define LOG2SLOT LOG2_PTRSIZE #define ENREGISTERED_RETURNTYPE_MAXSIZE 8 #define ENREGISTERED_RETURNTYPE_INTEGER_MAXSIZE 4 #define CALLDESCR_ARGREGS 1 // CallDescrWorker has ArgumentRegister parameter // Max size of patched TLS helpers #ifdef _DEBUG // Debug build needs extra space for last error trashing #define TLS_GETTER_MAX_SIZE 0x20 #else #define TLS_GETTER_MAX_SIZE 0x10 #endif //======================================================================= // IMPORTANT: This value is used to figure out how much to allocate // for a fixed array of FieldMarshaler's. That means it must be at least // as large as the largest FieldMarshaler subclass. This requirement // is guarded by an assert. //======================================================================= #define MAXFIELDMARSHALERSIZE 24 //********************************************************************** // Parameter size //********************************************************************** typedef INT32 StackElemType; #define STACK_ELEM_SIZE sizeof(StackElemType) #include "stublinkerx86.h" // !! This expression assumes STACK_ELEM_SIZE is a power of 2. #define StackElemSize(parmSize) (((parmSize) + STACK_ELEM_SIZE - 1) & ~((ULONG)(STACK_ELEM_SIZE - 1))) //********************************************************************** // Frames //********************************************************************** //-------------------------------------------------------------------- // This represents some of the FramedMethodFrame fields that are // stored at negative offsets. //-------------------------------------------------------------------- typedef DPTR(struct CalleeSavedRegisters) PTR_CalleeSavedRegisters; struct CalleeSavedRegisters { INT32 edi; INT32 esi; INT32 ebx; INT32 ebp; }; //-------------------------------------------------------------------- // This represents the arguments that are stored in volatile registers. // This should not overlap the CalleeSavedRegisters since those are already // saved separately and it would be wasteful to save the same register twice. // If we do use a non-volatile register as an argument, then the ArgIterator // will probably have to communicate this back to the PromoteCallerStack // routine to avoid a double promotion. //-------------------------------------------------------------------- #define ENUM_ARGUMENT_REGISTERS() \ ARGUMENT_REGISTER(ECX) \ ARGUMENT_REGISTER(EDX) #define ENUM_ARGUMENT_REGISTERS_BACKWARD() \ ARGUMENT_REGISTER(EDX) \ ARGUMENT_REGISTER(ECX) typedef DPTR(struct ArgumentRegisters) PTR_ArgumentRegisters; struct ArgumentRegisters { #define ARGUMENT_REGISTER(regname) INT32 regname; ENUM_ARGUMENT_REGISTERS_BACKWARD() #undef ARGUMENT_REGISTER }; #define NUM_ARGUMENT_REGISTERS 2 #define SCRATCH_REGISTER_X86REG kEAX #define THIS_REG ECX #define THIS_kREG kECX #define ARGUMENT_REG1 ECX #define ARGUMENT_REG2 EDX // forward decl struct REGDISPLAY; typedef REGDISPLAY *PREGDISPLAY; // Sufficient context for Try/Catch restoration. struct EHContext { INT32 Eax; INT32 Ebx; INT32 Ecx; INT32 Edx; INT32 Esi; INT32 Edi; INT32 Ebp; INT32 Esp; INT32 Eip; void Setup(PCODE resumePC, PREGDISPLAY regs); void UpdateFrame(PREGDISPLAY regs); inline TADDR GetSP() { LIMITED_METHOD_CONTRACT; return (TADDR)Esp; } inline void SetSP(LPVOID esp) { LIMITED_METHOD_CONTRACT; Esp = (INT32)(size_t)esp; } inline LPVOID GetFP() { LIMITED_METHOD_CONTRACT; return (LPVOID)(UINT_PTR)Ebp; } inline void SetArg(LPVOID arg) { LIMITED_METHOD_CONTRACT; Eax = (INT32)(size_t)arg; } inline void Init() { Eax = 0; Ebx = 0; Ecx = 0; Edx = 0; Esi = 0; Edi = 0; Ebp = 0; Esp = 0; Eip = 0; } }; #define ARGUMENTREGISTERS_SIZE sizeof(ArgumentRegisters) //********************************************************************** // Exception handling //********************************************************************** inline PCODE GetIP(const CONTEXT * context) { LIMITED_METHOD_DAC_CONTRACT; return PCODE(context->Eip); } inline void SetIP(CONTEXT *context, PCODE eip) { LIMITED_METHOD_DAC_CONTRACT; context->Eip = (DWORD)eip; } inline TADDR GetSP(const CONTEXT * context) { LIMITED_METHOD_DAC_CONTRACT; return (TADDR)(context->Esp); } EXTERN_C LPVOID STDCALL GetCurrentSP(); inline void SetSP(CONTEXT *context, TADDR esp) { LIMITED_METHOD_DAC_CONTRACT; context->Esp = (DWORD)esp; } inline void SetFP(CONTEXT *context, TADDR ebp) { LIMITED_METHOD_DAC_CONTRACT; context->Ebp = (INT32)ebp; } inline TADDR GetFP(const CONTEXT * context) { LIMITED_METHOD_DAC_CONTRACT; return (TADDR)context->Ebp; } // Get Rel32 destination, emit jumpStub if necessary inline INT32 rel32UsingJumpStub(INT32 UNALIGNED * pRel32, PCODE target, MethodDesc *pMethod = NULL, LoaderAllocator *pLoaderAllocator = NULL) { // We do not need jump stubs on i386 LIMITED_METHOD_CONTRACT; TADDR baseAddr = (TADDR)pRel32 + 4; return (INT32)(target - baseAddr); } #ifndef CLR_STANDALONE_BINDER #ifdef FEATURE_COMINTEROP inline void emitCOMStubCall (ComCallMethodDesc *pCOMMethod, PCODE target) { WRAPPER_NO_CONTRACT; BYTE *pBuffer = (BYTE*)pCOMMethod - COMMETHOD_CALL_PRESTUB_SIZE; pBuffer[0] = X86_INSTR_CALL_REL32; //CALLNEAR32 *((LPVOID*)(1+pBuffer)) = (LPVOID) (((LPBYTE)target) - (pBuffer+5)); _ASSERTE(IS_ALIGNED(pBuffer + COMMETHOD_CALL_PRESTUB_ADDRESS_OFFSET, sizeof(void*)) && *((SSIZE_T*)(pBuffer + COMMETHOD_CALL_PRESTUB_ADDRESS_OFFSET)) == ((LPBYTE)target - (LPBYTE)pCOMMethod)); } #endif // FEATURE_COMINTEROP //------------------------------------------------------------------------ WORD GetUnpatchedCodeData(LPCBYTE pAddr); //------------------------------------------------------------------------ inline WORD GetUnpatchedOpcodeWORD(LPCBYTE pAddr) { WRAPPER_NO_CONTRACT; if (CORDebuggerAttached()) { return GetUnpatchedCodeData(pAddr); } else { return *((WORD *)pAddr); } } //------------------------------------------------------------------------ inline BYTE GetUnpatchedOpcodeBYTE(LPCBYTE pAddr) { WRAPPER_NO_CONTRACT; if (CORDebuggerAttached()) { return (BYTE) GetUnpatchedCodeData(pAddr); } else { return *pAddr; } } //------------------------------------------------------------------------ // The following must be a distinguishable set of instruction sequences for // various stub dispatch calls. // // An x86 JIT which uses full stub dispatch must generate only // the following stub dispatch calls: // // (1) isCallRelativeIndirect: // call dword ptr [rel32] ; FF 15 ---rel32---- // (2) isCallRelative: // call abc ; E8 ---rel32---- // (3) isCallRegisterIndirect: // 3-byte nop ; // call dword ptr [eax] ; FF 10 // // NOTE: You must be sure that pRetAddr is a true return address for // a stub dispatch call. BOOL isCallRelativeIndirect(const BYTE *pRetAddr); BOOL isCallRelative(const BYTE *pRetAddr); BOOL isCallRegisterIndirect(const BYTE *pRetAddr); inline BOOL isCallRelativeIndirect(const BYTE *pRetAddr) { LIMITED_METHOD_CONTRACT; BOOL fRet = (GetUnpatchedOpcodeWORD(&pRetAddr[-6]) == X86_INSTR_CALL_IND); _ASSERTE(!fRet || !isCallRelative(pRetAddr)); _ASSERTE(!fRet || !isCallRegisterIndirect(pRetAddr)); return fRet; } inline BOOL isCallRelative(const BYTE *pRetAddr) { LIMITED_METHOD_CONTRACT; BOOL fRet = (GetUnpatchedOpcodeBYTE(&pRetAddr[-5]) == X86_INSTR_CALL_REL32); _ASSERTE(!fRet || !isCallRelativeIndirect(pRetAddr)); _ASSERTE(!fRet || !isCallRegisterIndirect(pRetAddr)); return fRet; } inline BOOL isCallRegisterIndirect(const BYTE *pRetAddr) { LIMITED_METHOD_CONTRACT; BOOL fRet = (GetUnpatchedOpcodeWORD(&pRetAddr[-5]) == X86_INSTR_NOP3_1) && (GetUnpatchedOpcodeBYTE(&pRetAddr[-3]) == X86_INSTR_NOP3_3) && (GetUnpatchedOpcodeWORD(&pRetAddr[-2]) == X86_INSTR_CALL_IND_EAX); _ASSERTE(!fRet || !isCallRelative(pRetAddr)); _ASSERTE(!fRet || !isCallRelativeIndirect(pRetAddr)); return fRet; } //------------------------------------------------------------------------ inline void emitJump(LPBYTE pBuffer, LPVOID target) { LIMITED_METHOD_CONTRACT; pBuffer[0] = X86_INSTR_JMP_REL32; //JUMPNEAR32 *((LPVOID*)(1+pBuffer)) = (LPVOID) (((LPBYTE)target) - (pBuffer+5)); } //------------------------------------------------------------------------ inline void emitJumpInd(LPBYTE pBuffer, LPVOID target) { LIMITED_METHOD_CONTRACT; *((WORD*)pBuffer) = X86_INSTR_JMP_IND; // 0x25FF jmp dword ptr[addr32] *((LPVOID*)(2+pBuffer)) = target; } //------------------------------------------------------------------------ inline PCODE isJump(PCODE pCode) { LIMITED_METHOD_DAC_CONTRACT; return *PTR_BYTE(pCode) == X86_INSTR_JMP_REL32; } //------------------------------------------------------------------------ // Given the same pBuffer that was used by emitJump this method // decodes the instructions and returns the jump target inline PCODE decodeJump(PCODE pCode) { LIMITED_METHOD_DAC_CONTRACT; CONSISTENCY_CHECK(*PTR_BYTE(pCode) == X86_INSTR_JMP_REL32); return rel32Decode(pCode+1); } // // On IA64 back to back jumps should be separated by a nop bundle to get // the best performance from the hardware's branch prediction logic. // For all other platforms back to back jumps don't require anything special // That is why we have these two wrapper functions that call emitJump and decodeJump // //------------------------------------------------------------------------ inline void emitBackToBackJump(LPBYTE pBuffer, LPVOID target) { WRAPPER_NO_CONTRACT; emitJump(pBuffer, target); } //------------------------------------------------------------------------ inline PCODE isBackToBackJump(PCODE pBuffer) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return isJump(pBuffer); } //------------------------------------------------------------------------ inline PCODE decodeBackToBackJump(PCODE pBuffer) { WRAPPER_NO_CONTRACT; SUPPORTS_DAC; return decodeJump(pBuffer); } EXTERN_C void __stdcall setFPReturn(int fpSize, INT64 retVal); EXTERN_C void __stdcall getFPReturn(int fpSize, INT64 *pretval); // SEH info forward declarations inline BOOL IsUnmanagedValueTypeReturnedByRef(UINT sizeofvaluetype) { LIMITED_METHOD_CONTRACT; // odd-sized small structures are not // enregistered e.g. struct { char a,b,c; } return (sizeofvaluetype > 8) || (sizeofvaluetype & (sizeofvaluetype - 1)); // check that the size is power of two } #include <pshpack1.h> DECLSPEC_ALIGN(4) struct UMEntryThunkCode { BYTE m_alignpad[2]; // used to guarantee alignment of backpactched portion BYTE m_movEAX; //MOV EAX,imm32 LPVOID m_uet; // pointer to start of this structure BYTE m_jmp; //JMP NEAR32 const BYTE * m_execstub; // pointer to destination code // make sure the backpatched portion is dword aligned. void Encode(BYTE* pTargetCode, void* pvSecretParam); LPCBYTE GetEntryPoint() const { LIMITED_METHOD_CONTRACT; return (LPCBYTE)&m_movEAX; } static int GetEntryPointOffset() { LIMITED_METHOD_CONTRACT; return 2; } }; #include <poppack.h> #endif //!CLR_STANDALONE_BINDER // ClrFlushInstructionCache is used when we want to call FlushInstructionCache // for a specific architecture in the common code, but not for other architectures. // On IA64 ClrFlushInstructionCache calls the Kernel FlushInstructionCache function // to flush the instruction cache. // We call ClrFlushInstructionCache whenever we create or modify code in the heap. // Currently ClrFlushInstructionCache has no effect on X86 // inline BOOL ClrFlushInstructionCache(LPCVOID pCodeAddr, size_t sizeOfCode) { // FlushInstructionCache(GetCurrentProcess(), pCodeAddr, sizeOfCode); MemoryBarrier(); return TRUE; } #ifndef FEATURE_IMPLICIT_TLS // // JIT HELPER ALIASING FOR PORTABILITY. // // Create alias for optimized implementations of helpers provided on this platform // #define JIT_MonEnter JIT_MonEnterWorker #define JIT_MonEnterWorker JIT_MonEnterWorker #define JIT_MonReliableEnter JIT_MonReliableEnter #define JIT_MonTryEnter JIT_MonTryEnter #define JIT_MonExit JIT_MonExitWorker #define JIT_MonExitWorker JIT_MonExitWorker #define JIT_MonEnterStatic JIT_MonEnterStatic #define JIT_MonExitStatic JIT_MonExitStatic #endif // optimized static helpers generated dynamically at runtime // #define JIT_GetSharedGCStaticBase // #define JIT_GetSharedNonGCStaticBase // #define JIT_GetSharedGCStaticBaseNoCtor // #define JIT_GetSharedNonGCStaticBaseNoCtor #define JIT_ChkCastClass JIT_ChkCastClass #define JIT_ChkCastClassSpecial JIT_ChkCastClassSpecial #define JIT_IsInstanceOfClass JIT_IsInstanceOfClass #define JIT_ChkCastInterface JIT_ChkCastInterface #define JIT_IsInstanceOfInterface JIT_IsInstanceOfInterface #define JIT_NewCrossContext JIT_NewCrossContext #define JIT_Stelem_Ref JIT_Stelem_Ref #endif // __cgenx86_h__
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/src/thread/context.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*++ Module Name: context.c Abstract: Implementation of GetThreadContext/SetThreadContext/DebugBreak. There are a lot of architecture specifics here. --*/ #include "pal/dbgmsg.h" SET_DEFAULT_DEBUG_CHANNEL(THREAD); // some headers have code with asserts, so do this first #include "pal/palinternal.h" #include "pal/context.h" #include "pal/debug.h" #include "pal/thread.hpp" #include "pal/utils.h" #include "pal/virtual.h" #if HAVE_SYS_PTRACE_H #include <sys/ptrace.h> #endif #include <errno.h> #include <unistd.h> extern PGET_GCMARKER_EXCEPTION_CODE g_getGcMarkerExceptionCode; #define CONTEXT_AREA_MASK 0xffff #ifdef HOST_X86 #define CONTEXT_ALL_FLOATING (CONTEXT_FLOATING_POINT | CONTEXT_EXTENDED_REGISTERS) #elif defined(HOST_AMD64) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #elif defined(HOST_ARM) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #elif defined(HOST_ARM64) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #elif defined(HOST_LOONGARCH64) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #elif defined(HOST_S390X) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #else #error Unexpected architecture. #endif #if !HAVE_MACH_EXCEPTIONS #ifndef __GLIBC__ typedef int __ptrace_request; #endif #if HAVE_MACHINE_REG_H #include <machine/reg.h> #endif // HAVE_MACHINE_REG_H #if HAVE_MACHINE_NPX_H #include <machine/npx.h> #endif // HAVE_MACHINE_NPX_H #if HAVE_PT_REGS #include <asm/ptrace.h> #endif // HAVE_PT_REGS #endif // !HAVE_MACH_EXCEPTIONS #ifdef HOST_AMD64 #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Rbp) \ ASSIGN_REG(Rip) \ ASSIGN_REG(SegCs) \ ASSIGN_REG(EFlags) \ ASSIGN_REG(Rsp) \ #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(Rdi) \ ASSIGN_REG(Rsi) \ ASSIGN_REG(Rbx) \ ASSIGN_REG(Rdx) \ ASSIGN_REG(Rcx) \ ASSIGN_REG(Rax) \ ASSIGN_REG(R8) \ ASSIGN_REG(R9) \ ASSIGN_REG(R10) \ ASSIGN_REG(R11) \ ASSIGN_REG(R12) \ ASSIGN_REG(R13) \ ASSIGN_REG(R14) \ ASSIGN_REG(R15) \ #elif defined(HOST_X86) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Ebp) \ ASSIGN_REG(Eip) \ ASSIGN_REG(SegCs) \ ASSIGN_REG(EFlags) \ ASSIGN_REG(Esp) \ ASSIGN_REG(SegSs) \ #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(Edi) \ ASSIGN_REG(Esi) \ ASSIGN_REG(Ebx) \ ASSIGN_REG(Edx) \ ASSIGN_REG(Ecx) \ ASSIGN_REG(Eax) \ #elif defined(HOST_ARM) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Sp) \ ASSIGN_REG(Lr) \ ASSIGN_REG(Pc) \ ASSIGN_REG(Cpsr) \ #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(R0) \ ASSIGN_REG(R1) \ ASSIGN_REG(R2) \ ASSIGN_REG(R3) \ ASSIGN_REG(R4) \ ASSIGN_REG(R5) \ ASSIGN_REG(R6) \ ASSIGN_REG(R7) \ ASSIGN_REG(R8) \ ASSIGN_REG(R9) \ ASSIGN_REG(R10) \ ASSIGN_REG(R11) \ ASSIGN_REG(R12) #elif defined(HOST_ARM64) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Cpsr) \ ASSIGN_REG(Fp) \ ASSIGN_REG(Sp) \ ASSIGN_REG(Lr) \ ASSIGN_REG(Pc) #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(X0) \ ASSIGN_REG(X1) \ ASSIGN_REG(X2) \ ASSIGN_REG(X3) \ ASSIGN_REG(X4) \ ASSIGN_REG(X5) \ ASSIGN_REG(X6) \ ASSIGN_REG(X7) \ ASSIGN_REG(X8) \ ASSIGN_REG(X9) \ ASSIGN_REG(X10) \ ASSIGN_REG(X11) \ ASSIGN_REG(X12) \ ASSIGN_REG(X13) \ ASSIGN_REG(X14) \ ASSIGN_REG(X15) \ ASSIGN_REG(X16) \ ASSIGN_REG(X17) \ ASSIGN_REG(X18) \ ASSIGN_REG(X19) \ ASSIGN_REG(X20) \ ASSIGN_REG(X21) \ ASSIGN_REG(X22) \ ASSIGN_REG(X23) \ ASSIGN_REG(X24) \ ASSIGN_REG(X25) \ ASSIGN_REG(X26) \ ASSIGN_REG(X27) \ ASSIGN_REG(X28) #elif defined(HOST_LOONGARCH64) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Fp) \ ASSIGN_REG(Sp) \ ASSIGN_REG(Ra) \ ASSIGN_REG(Pc) #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(R0) \ ASSIGN_REG(Tp) \ ASSIGN_REG(A0) \ ASSIGN_REG(A1) \ ASSIGN_REG(A2) \ ASSIGN_REG(A3) \ ASSIGN_REG(A4) \ ASSIGN_REG(A5) \ ASSIGN_REG(A6) \ ASSIGN_REG(A7) \ ASSIGN_REG(T0) \ ASSIGN_REG(T1) \ ASSIGN_REG(T2) \ ASSIGN_REG(T3) \ ASSIGN_REG(T4) \ ASSIGN_REG(T5) \ ASSIGN_REG(T6) \ ASSIGN_REG(T7) \ ASSIGN_REG(T8) \ ASSIGN_REG(S0) \ ASSIGN_REG(S1) \ ASSIGN_REG(S2) \ ASSIGN_REG(S3) \ ASSIGN_REG(S4) \ ASSIGN_REG(S5) \ ASSIGN_REG(S6) \ ASSIGN_REG(S7) \ ASSIGN_REG(S8) \ ASSIGN_REG(X0) #elif defined(HOST_S390X) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(PSWMask) \ ASSIGN_REG(PSWAddr) \ ASSIGN_REG(R15) \ #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(R0) \ ASSIGN_REG(R1) \ ASSIGN_REG(R2) \ ASSIGN_REG(R3) \ ASSIGN_REG(R4) \ ASSIGN_REG(R5) \ ASSIGN_REG(R5) \ ASSIGN_REG(R6) \ ASSIGN_REG(R7) \ ASSIGN_REG(R8) \ ASSIGN_REG(R9) \ ASSIGN_REG(R10) \ ASSIGN_REG(R11) \ ASSIGN_REG(R12) \ ASSIGN_REG(R13) \ ASSIGN_REG(R14) #else #error "Don't know how to assign registers on this architecture" #endif #define ASSIGN_ALL_REGS \ ASSIGN_CONTROL_REGS \ ASSIGN_INTEGER_REGS \ #if !HAVE_MACH_EXCEPTIONS /*++ Function: CONTEXT_GetRegisters Abstract retrieve the machine registers value of the indicated process. Parameter processId: process ID lpContext: context structure in which the machine registers value will be returned. Return returns TRUE if it succeeds, FALSE otherwise --*/ BOOL CONTEXT_GetRegisters(DWORD processId, LPCONTEXT lpContext) { #if HAVE_BSD_REGS_T int regFd = -1; #endif // HAVE_BSD_REGS_T BOOL bRet = FALSE; if (processId == GetCurrentProcessId()) { CONTEXT_CaptureContext(lpContext); } else { ucontext_t registers; #if HAVE_PT_REGS struct pt_regs ptrace_registers; if (ptrace((__ptrace_request)PTRACE_GETREGS, processId, (caddr_t) &ptrace_registers, 0) == -1) #elif HAVE_BSD_REGS_T struct reg ptrace_registers; if (PAL_PTRACE(PT_GETREGS, processId, &ptrace_registers, 0) == -1) #endif { ASSERT("Failed ptrace(PT_GETREGS, processId:%d) errno:%d (%s)\n", processId, errno, strerror(errno)); } #if HAVE_PT_REGS #define ASSIGN_REG(reg) MCREG_##reg(registers.uc_mcontext) = PTREG_##reg(ptrace_registers); #elif HAVE_BSD_REGS_T #define ASSIGN_REG(reg) MCREG_##reg(registers.uc_mcontext) = BSDREG_##reg(ptrace_registers); #else #define ASSIGN_REG(reg) ASSERT("Don't know how to get the context of another process on this platform!"); return bRet; #endif ASSIGN_ALL_REGS #undef ASSIGN_REG CONTEXTFromNativeContext(&registers, lpContext, lpContext->ContextFlags); } bRet = TRUE; #if HAVE_BSD_REGS_T if (regFd != -1) { close(regFd); } #endif // HAVE_BSD_REGS_T return bRet; } /*++ Function: GetThreadContext See MSDN doc. --*/ BOOL CONTEXT_GetThreadContext( DWORD dwProcessId, pthread_t self, LPCONTEXT lpContext) { BOOL ret = FALSE; if (lpContext == NULL) { ERROR("Invalid lpContext parameter value\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } /* How to consider the case when self is different from the current thread of its owner process. Machine registers values could be retreived by a ptrace(pid, ...) call or from the "/proc/%pid/reg" file content. Unfortunately, these two methods only depend on process ID, not on thread ID. */ if (dwProcessId == GetCurrentProcessId()) { if (self != pthread_self()) { DWORD flags; // There aren't any APIs for this. We can potentially get the // context of another thread by using per-thread signals, but // on FreeBSD signal handlers that are called as a result // of signals raised via pthread_kill don't get a valid // sigcontext or ucontext_t. But we need this to return TRUE // to avoid an assertion in the CLR in code that manages to // cope reasonably well without a valid thread context. // Given that, we'll zero out our structure and return TRUE. ERROR("GetThreadContext on a thread other than the current " "thread is returning TRUE\n"); flags = lpContext->ContextFlags; memset(lpContext, 0, sizeof(*lpContext)); lpContext->ContextFlags = flags; ret = TRUE; goto EXIT; } } if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { if (CONTEXT_GetRegisters(dwProcessId, lpContext) == FALSE) { SetLastError(ERROR_INTERNAL_ERROR); goto EXIT; } } ret = TRUE; EXIT: return ret; } /*++ Function: SetThreadContext See MSDN doc. --*/ BOOL CONTEXT_SetThreadContext( DWORD dwProcessId, pthread_t self, CONST CONTEXT *lpContext) { BOOL ret = FALSE; #if HAVE_PT_REGS struct pt_regs ptrace_registers; #elif HAVE_BSD_REGS_T struct reg ptrace_registers; #endif if (lpContext == NULL) { ERROR("Invalid lpContext parameter value\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } /* How to consider the case when self is different from the current thread of its owner process. Machine registers values could be retreived by a ptrace(pid, ...) call or from the "/proc/%pid/reg" file content. Unfortunately, these two methods only depend on process ID, not on thread ID. */ if (dwProcessId == GetCurrentProcessId()) { // Need to implement SetThreadContext(current thread) for the IX architecture; look at common_signal_handler. _ASSERT(FALSE); ASSERT("SetThreadContext should be called for cross-process only.\n"); SetLastError(ERROR_INVALID_PARAMETER); goto EXIT; } if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { #if HAVE_PT_REGS if (ptrace((__ptrace_request)PTRACE_GETREGS, dwProcessId, (caddr_t)&ptrace_registers, 0) == -1) #elif HAVE_BSD_REGS_T if (PAL_PTRACE(PT_GETREGS, dwProcessId, &ptrace_registers, 0) == -1) #endif { ASSERT("Failed ptrace(PT_GETREGS, processId:%d) errno:%d (%s)\n", dwProcessId, errno, strerror(errno)); SetLastError(ERROR_INTERNAL_ERROR); goto EXIT; } #if HAVE_PT_REGS #define ASSIGN_REG(reg) PTREG_##reg(ptrace_registers) = lpContext->reg; #elif HAVE_BSD_REGS_T #define ASSIGN_REG(reg) BSDREG_##reg(ptrace_registers) = lpContext->reg; #else #define ASSIGN_REG(reg) ASSERT("Don't know how to set the context of another process on this platform!"); return FALSE; #endif if (lpContext->ContextFlags & CONTEXT_CONTROL & CONTEXT_AREA_MASK) { ASSIGN_CONTROL_REGS } if (lpContext->ContextFlags & CONTEXT_INTEGER & CONTEXT_AREA_MASK) { ASSIGN_INTEGER_REGS } #undef ASSIGN_REG #if HAVE_PT_REGS if (ptrace((__ptrace_request)PTRACE_SETREGS, dwProcessId, (caddr_t)&ptrace_registers, 0) == -1) #elif HAVE_BSD_REGS_T if (PAL_PTRACE(PT_SETREGS, dwProcessId, &ptrace_registers, 0) == -1) #endif { ASSERT("Failed ptrace(PT_SETREGS, processId:%d) errno:%d (%s)\n", dwProcessId, errno, strerror(errno)); SetLastError(ERROR_INTERNAL_ERROR); goto EXIT; } } ret = TRUE; EXIT: return ret; } #endif // !HAVE_MACH_EXCEPTIONS /*++ Function : CONTEXTToNativeContext Converts a CONTEXT record to a native context. Parameters : CONST CONTEXT *lpContext : CONTEXT to convert native_context_t *native : native context to fill in Return value : None --*/ void CONTEXTToNativeContext(CONST CONTEXT *lpContext, native_context_t *native) { #define ASSIGN_REG(reg) MCREG_##reg(native->uc_mcontext) = lpContext->reg; if ((lpContext->ContextFlags & CONTEXT_CONTROL) == CONTEXT_CONTROL) { ASSIGN_CONTROL_REGS } if ((lpContext->ContextFlags & CONTEXT_INTEGER) == CONTEXT_INTEGER) { ASSIGN_INTEGER_REGS } #undef ASSIGN_REG #if !HAVE_FPREGS_WITH_CW #if (HAVE_GREGSET_T || HAVE___GREGSET_T) && !defined(HOST_S390X) && !defined(HOST_LOONGARCH64) #if HAVE_GREGSET_T if (native->uc_mcontext.fpregs == nullptr) #elif HAVE___GREGSET_T if (native->uc_mcontext.__fpregs == nullptr) #endif // HAVE_GREGSET_T { // If the pointer to the floating point state in the native context // is not valid, we can't copy floating point registers regardless of // whether CONTEXT_FLOATING_POINT is set in the CONTEXT's flags. return; } #endif // (HAVE_GREGSET_T || HAVE___GREGSET_T) && !HOST_S390X && !HOST_LOONGARCH64 #endif // !HAVE_FPREGS_WITH_CW if ((lpContext->ContextFlags & CONTEXT_FLOATING_POINT) == CONTEXT_FLOATING_POINT) { #ifdef HOST_AMD64 FPREG_ControlWord(native) = lpContext->FltSave.ControlWord; FPREG_StatusWord(native) = lpContext->FltSave.StatusWord; #if HAVE_FPREGS_WITH_CW FPREG_TagWord1(native) = lpContext->FltSave.TagWord >> 8; FPREG_TagWord2(native) = lpContext->FltSave.TagWord & 0xff; #else FPREG_TagWord(native) = lpContext->FltSave.TagWord; #endif FPREG_ErrorOffset(native) = lpContext->FltSave.ErrorOffset; FPREG_ErrorSelector(native) = lpContext->FltSave.ErrorSelector; FPREG_DataOffset(native) = lpContext->FltSave.DataOffset; FPREG_DataSelector(native) = lpContext->FltSave.DataSelector; FPREG_MxCsr(native) = lpContext->FltSave.MxCsr; FPREG_MxCsr_Mask(native) = lpContext->FltSave.MxCsr_Mask; for (int i = 0; i < 8; i++) { FPREG_St(native, i) = lpContext->FltSave.FloatRegisters[i]; } for (int i = 0; i < 16; i++) { FPREG_Xmm(native, i) = lpContext->FltSave.XmmRegisters[i]; } #elif defined(HOST_ARM64) #ifdef TARGET_OSX _STRUCT_ARM_NEON_STATE64* fp = GetNativeSigSimdContext(native); fp->__fpsr = lpContext->Fpsr; fp->__fpcr = lpContext->Fpcr; for (int i = 0; i < 32; i++) { *(NEON128*) &fp->__v[i] = lpContext->V[i]; } #else // TARGET_OSX fpsimd_context* fp = GetNativeSigSimdContext(native); if (fp) { fp->fpsr = lpContext->Fpsr; fp->fpcr = lpContext->Fpcr; for (int i = 0; i < 32; i++) { *(NEON128*) &fp->vregs[i] = lpContext->V[i]; } } #endif // TARGET_OSX #elif defined(HOST_ARM) VfpSigFrame* fp = GetNativeSigSimdContext(native); if (fp) { fp->Fpscr = lpContext->Fpscr; for (int i = 0; i < 32; i++) { fp->D[i] = lpContext->D[i]; } } #elif defined(HOST_S390X) fpregset_t *fp = &native->uc_mcontext.fpregs; static_assert_no_msg(sizeof(fp->fprs) == sizeof(lpContext->Fpr)); memcpy(fp->fprs, lpContext->Fpr, sizeof(lpContext->Fpr)); #elif defined(HOST_LOONGARCH64) for (int i = 0; i < 32; i++) { native->uc_mcontext.__fpregs[i].__val64[0] = lpContext->F[i]; } #endif } // TODO: Enable for all Unix systems #if defined(HOST_AMD64) && defined(XSTATE_SUPPORTED) if ((lpContext->ContextFlags & CONTEXT_XSTATE) == CONTEXT_XSTATE) { _ASSERTE(FPREG_HasYmmRegisters(native)); memcpy_s(FPREG_Xstate_Ymmh(native), sizeof(M128A) * 16, lpContext->VectorRegister, sizeof(M128A) * 16); } #endif //HOST_AMD64 && XSTATE_SUPPORTED } /*++ Function : CONTEXTFromNativeContext Converts a native context to a CONTEXT record. Parameters : const native_context_t *native : native context to convert LPCONTEXT lpContext : CONTEXT to fill in ULONG contextFlags : flags that determine which registers are valid in native and which ones to set in lpContext Return value : None --*/ void CONTEXTFromNativeContext(const native_context_t *native, LPCONTEXT lpContext, ULONG contextFlags) { lpContext->ContextFlags = contextFlags; #define ASSIGN_REG(reg) lpContext->reg = MCREG_##reg(native->uc_mcontext); if ((contextFlags & CONTEXT_CONTROL) == CONTEXT_CONTROL) { ASSIGN_CONTROL_REGS #if defined(HOST_ARM) // WinContext assumes that the least bit of Pc is always 1 (denoting thumb) // although the pc value retrived from native context might not have set the least bit. // This becomes especially problematic if the context is on the JIT_WRITEBARRIER. lpContext->Pc |= 0x1; #endif } if ((contextFlags & CONTEXT_INTEGER) == CONTEXT_INTEGER) { ASSIGN_INTEGER_REGS } #undef ASSIGN_REG #if !HAVE_FPREGS_WITH_CW #if (HAVE_GREGSET_T || HAVE___GREGSET_T) && !defined(HOST_S390X) && !defined(HOST_LOONGARCH64) #if HAVE_GREGSET_T if (native->uc_mcontext.fpregs == nullptr) #elif HAVE___GREGSET_T if (native->uc_mcontext.__fpregs == nullptr) #endif // HAVE_GREGSET_T { // Reset the CONTEXT_FLOATING_POINT bit(s) and the CONTEXT_XSTATE bit(s) so it's // clear that the floating point and extended state data in the CONTEXT is not // valid. Since these flags are defined as the architecture bit(s) OR'd with one // or more other bits, we first get the bits that are unique to each by resetting // the architecture bits. We determine what those are by inverting the union of // CONTEXT_CONTROL and CONTEXT_INTEGER, both of which should also have the // architecture bit(s) set. const ULONG floatingPointFlags = CONTEXT_FLOATING_POINT & ~(CONTEXT_CONTROL & CONTEXT_INTEGER); const ULONG xstateFlags = CONTEXT_XSTATE & ~(CONTEXT_CONTROL & CONTEXT_INTEGER); lpContext->ContextFlags &= ~(floatingPointFlags | xstateFlags); // Bail out regardless of whether the caller wanted CONTEXT_FLOATING_POINT or CONTEXT_XSTATE return; } #endif // (HAVE_GREGSET_T || HAVE___GREGSET_T) && !HOST_S390X #endif // !HAVE_FPREGS_WITH_CW if ((contextFlags & CONTEXT_FLOATING_POINT) == CONTEXT_FLOATING_POINT) { #ifdef HOST_AMD64 lpContext->FltSave.ControlWord = FPREG_ControlWord(native); lpContext->FltSave.StatusWord = FPREG_StatusWord(native); #if HAVE_FPREGS_WITH_CW lpContext->FltSave.TagWord = ((DWORD)FPREG_TagWord1(native) << 8) | FPREG_TagWord2(native); #else lpContext->FltSave.TagWord = FPREG_TagWord(native); #endif lpContext->FltSave.ErrorOffset = FPREG_ErrorOffset(native); lpContext->FltSave.ErrorSelector = FPREG_ErrorSelector(native); lpContext->FltSave.DataOffset = FPREG_DataOffset(native); lpContext->FltSave.DataSelector = FPREG_DataSelector(native); lpContext->FltSave.MxCsr = FPREG_MxCsr(native); lpContext->FltSave.MxCsr_Mask = FPREG_MxCsr_Mask(native); for (int i = 0; i < 8; i++) { lpContext->FltSave.FloatRegisters[i] = FPREG_St(native, i); } for (int i = 0; i < 16; i++) { lpContext->FltSave.XmmRegisters[i] = FPREG_Xmm(native, i); } #elif defined(HOST_ARM64) #ifdef TARGET_OSX const _STRUCT_ARM_NEON_STATE64* fp = GetConstNativeSigSimdContext(native); lpContext->Fpsr = fp->__fpsr; lpContext->Fpcr = fp->__fpcr; for (int i = 0; i < 32; i++) { lpContext->V[i] = *(NEON128*) &fp->__v[i]; } #else // TARGET_OSX const fpsimd_context* fp = GetConstNativeSigSimdContext(native); if (fp) { lpContext->Fpsr = fp->fpsr; lpContext->Fpcr = fp->fpcr; for (int i = 0; i < 32; i++) { lpContext->V[i] = *(NEON128*) &fp->vregs[i]; } } #endif // TARGET_OSX #elif defined(HOST_ARM) const VfpSigFrame* fp = GetConstNativeSigSimdContext(native); if (fp) { lpContext->Fpscr = fp->Fpscr; for (int i = 0; i < 32; i++) { lpContext->D[i] = fp->D[i]; } } else { // Floating point state is not valid // Mark the context correctly lpContext->ContextFlags &= ~(ULONG)CONTEXT_FLOATING_POINT; } #elif defined(HOST_S390X) const fpregset_t *fp = &native->uc_mcontext.fpregs; static_assert_no_msg(sizeof(fp->fprs) == sizeof(lpContext->Fpr)); memcpy(lpContext->Fpr, fp->fprs, sizeof(lpContext->Fpr)); #elif defined(HOST_LOONGARCH64) lpContext->Fcsr = native->uc_mcontext.__fcsr; for (int i = 0; i < 32; i++) { lpContext->F[i] = native->uc_mcontext.__fpregs[i].__val64[0]; } #endif } #ifdef HOST_AMD64 if ((contextFlags & CONTEXT_XSTATE) == CONTEXT_XSTATE) { // TODO: Enable for all Unix systems #if XSTATE_SUPPORTED if (FPREG_HasYmmRegisters(native)) { memcpy_s(lpContext->VectorRegister, sizeof(M128A) * 16, FPREG_Xstate_Ymmh(native), sizeof(M128A) * 16); } else #endif // XSTATE_SUPPORTED { // Reset the CONTEXT_XSTATE bit(s) so it's clear that the extended state data in // the CONTEXT is not valid. const ULONG xstateFlags = CONTEXT_XSTATE & ~(CONTEXT_CONTROL & CONTEXT_INTEGER); lpContext->ContextFlags &= ~xstateFlags; } } #endif // HOST_AMD64 } #if !HAVE_MACH_EXCEPTIONS /*++ Function : GetNativeContextPC Returns the program counter from the native context. Parameters : const native_context_t *native : native context Return value : The program counter from the native context. --*/ LPVOID GetNativeContextPC(const native_context_t *context) { #ifdef HOST_AMD64 return (LPVOID)MCREG_Rip(context->uc_mcontext); #elif defined(HOST_X86) return (LPVOID) MCREG_Eip(context->uc_mcontext); #elif defined(HOST_ARM) return (LPVOID) MCREG_Pc(context->uc_mcontext); #elif defined(HOST_ARM64) return (LPVOID) MCREG_Pc(context->uc_mcontext); #elif defined(HOST_LOONGARCH64) return (LPVOID) MCREG_Pc(context->uc_mcontext); #elif defined(HOST_S390X) return (LPVOID) MCREG_PSWAddr(context->uc_mcontext); #else # error implement me for this architecture #endif } /*++ Function : GetNativeContextSP Returns the stack pointer from the native context. Parameters : const native_context_t *native : native context Return value : The stack pointer from the native context. --*/ LPVOID GetNativeContextSP(const native_context_t *context) { #ifdef HOST_AMD64 return (LPVOID)MCREG_Rsp(context->uc_mcontext); #elif defined(HOST_X86) return (LPVOID) MCREG_Esp(context->uc_mcontext); #elif defined(HOST_ARM) return (LPVOID) MCREG_Sp(context->uc_mcontext); #elif defined(HOST_ARM64) return (LPVOID) MCREG_Sp(context->uc_mcontext); #elif defined(HOST_LOONGARCH64) return (LPVOID) MCREG_Sp(context->uc_mcontext); #elif defined(HOST_S390X) return (LPVOID) MCREG_R15(context->uc_mcontext); #else # error implement me for this architecture #endif } /*++ Function : CONTEXTGetExceptionCodeForSignal Translates signal and context information to a Win32 exception code. Parameters : const siginfo_t *siginfo : signal information from a signal handler const native_context_t *context : context information Return value : The Win32 exception code that corresponds to the signal and context information. --*/ #ifdef ILL_ILLOPC // If si_code values are available for all signals, use those. DWORD CONTEXTGetExceptionCodeForSignal(const siginfo_t *siginfo, const native_context_t *context) { // IMPORTANT NOTE: This function must not call any signal unsafe functions // since it is called from signal handlers. // That includes ASSERT and TRACE macros. switch (siginfo->si_signo) { case SIGILL: switch (siginfo->si_code) { case ILL_ILLOPC: // Illegal opcode case ILL_ILLOPN: // Illegal operand case ILL_ILLADR: // Illegal addressing mode case ILL_ILLTRP: // Illegal trap case ILL_COPROC: // Co-processor error return EXCEPTION_ILLEGAL_INSTRUCTION; case ILL_PRVOPC: // Privileged opcode case ILL_PRVREG: // Privileged register return EXCEPTION_PRIV_INSTRUCTION; case ILL_BADSTK: // Internal stack error return EXCEPTION_STACK_OVERFLOW; default: break; } break; case SIGFPE: switch (siginfo->si_code) { case FPE_INTDIV: return EXCEPTION_INT_DIVIDE_BY_ZERO; case FPE_INTOVF: return EXCEPTION_INT_OVERFLOW; case FPE_FLTDIV: return EXCEPTION_FLT_DIVIDE_BY_ZERO; case FPE_FLTOVF: return EXCEPTION_FLT_OVERFLOW; case FPE_FLTUND: return EXCEPTION_FLT_UNDERFLOW; case FPE_FLTRES: return EXCEPTION_FLT_INEXACT_RESULT; case FPE_FLTINV: return EXCEPTION_FLT_INVALID_OPERATION; case FPE_FLTSUB: return EXCEPTION_FLT_INVALID_OPERATION; default: break; } break; case SIGSEGV: switch (siginfo->si_code) { case SI_USER: // User-generated signal, sometimes sent // for SIGSEGV under normal circumstances case SEGV_MAPERR: // Address not mapped to object case SEGV_ACCERR: // Invalid permissions for mapped object return EXCEPTION_ACCESS_VIOLATION; #ifdef SI_KERNEL case SI_KERNEL: { // Identify privileged instructions that are not identified as such by the system if (g_getGcMarkerExceptionCode != nullptr) { DWORD exceptionCode = g_getGcMarkerExceptionCode(GetNativeContextPC(context)); if (exceptionCode != 0) { return exceptionCode; } } return EXCEPTION_ACCESS_VIOLATION; } #endif default: break; } break; case SIGBUS: switch (siginfo->si_code) { case BUS_ADRALN: // Invalid address alignment return EXCEPTION_DATATYPE_MISALIGNMENT; case BUS_ADRERR: // Non-existent physical address return EXCEPTION_ACCESS_VIOLATION; case BUS_OBJERR: // Object-specific hardware error default: break; } break; case SIGTRAP: switch (siginfo->si_code) { #ifdef SI_KERNEL case SI_KERNEL: #endif case SI_USER: case TRAP_BRKPT: // Process breakpoint return EXCEPTION_BREAKPOINT; case TRAP_TRACE: // Process trace trap return EXCEPTION_SINGLE_STEP; default: // Got unknown SIGTRAP signal with code siginfo->si_code; return EXCEPTION_ILLEGAL_INSTRUCTION; } default: break; } // Got unknown signal number siginfo->si_signo with code siginfo->si_code; return EXCEPTION_ILLEGAL_INSTRUCTION; } #else // ILL_ILLOPC DWORD CONTEXTGetExceptionCodeForSignal(const siginfo_t *siginfo, const native_context_t *context) { // IMPORTANT NOTE: This function must not call any signal unsafe functions // since it is called from signal handlers. // That includes ASSERT and TRACE macros. int trap; if (siginfo->si_signo == SIGFPE) { // Floating point exceptions are mapped by their si_code. switch (siginfo->si_code) { case FPE_INTDIV : return EXCEPTION_INT_DIVIDE_BY_ZERO; case FPE_INTOVF : return EXCEPTION_INT_OVERFLOW; case FPE_FLTDIV : return EXCEPTION_FLT_DIVIDE_BY_ZERO; case FPE_FLTOVF : return EXCEPTION_FLT_OVERFLOW; case FPE_FLTUND : return EXCEPTION_FLT_UNDERFLOW; case FPE_FLTRES : return EXCEPTION_FLT_INEXACT_RESULT; case FPE_FLTINV : return EXCEPTION_FLT_INVALID_OPERATION; case FPE_FLTSUB :/* subscript out of range */ return EXCEPTION_FLT_INVALID_OPERATION; default: // Got unknown signal code siginfo->si_code; return 0; } } trap = context->uc_mcontext.mc_trapno; switch (trap) { case T_PRIVINFLT : /* privileged instruction */ return EXCEPTION_PRIV_INSTRUCTION; case T_BPTFLT : /* breakpoint instruction */ return EXCEPTION_BREAKPOINT; case T_ARITHTRAP : /* arithmetic trap */ return 0; /* let the caller pick an exception code */ #ifdef T_ASTFLT case T_ASTFLT : /* system forced exception : ^C, ^\. SIGINT signal handler shouldn't be calling this function, since it doesn't need an exception code */ // Trap code T_ASTFLT received, shouldn't get here; return 0; #endif // T_ASTFLT case T_PROTFLT : /* protection fault */ return EXCEPTION_ACCESS_VIOLATION; case T_TRCTRAP : /* debug exception (sic) */ return EXCEPTION_SINGLE_STEP; case T_PAGEFLT : /* page fault */ return EXCEPTION_ACCESS_VIOLATION; case T_ALIGNFLT : /* alignment fault */ return EXCEPTION_DATATYPE_MISALIGNMENT; case T_DIVIDE : return EXCEPTION_INT_DIVIDE_BY_ZERO; case T_NMI : /* non-maskable trap */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_OFLOW : return EXCEPTION_INT_OVERFLOW; case T_BOUND : /* bound instruction fault */ return EXCEPTION_ARRAY_BOUNDS_EXCEEDED; case T_DNA : /* device not available fault */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_DOUBLEFLT : /* double fault */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_FPOPFLT : /* fp coprocessor operand fetch fault */ return EXCEPTION_FLT_INVALID_OPERATION; case T_TSSFLT : /* invalid tss fault */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_SEGNPFLT : /* segment not present fault */ return EXCEPTION_ACCESS_VIOLATION; case T_STKFLT : /* stack fault */ return EXCEPTION_STACK_OVERFLOW; case T_MCHK : /* machine check trap */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_RESERVED : /* reserved (unknown) */ return EXCEPTION_ILLEGAL_INSTRUCTION; default: // Got unknown trap code trap; break; } return EXCEPTION_ILLEGAL_INSTRUCTION; } #endif // ILL_ILLOPC #else // !HAVE_MACH_EXCEPTIONS #include <mach/message.h> #include <mach/thread_act.h> #include "../exception/machexception.h" /*++ Function: CONTEXT_GetThreadContextFromPort Helper for GetThreadContext that uses a mach_port --*/ kern_return_t CONTEXT_GetThreadContextFromPort( mach_port_t Port, LPCONTEXT lpContext) { // Extract the CONTEXT from the Mach thread. kern_return_t MachRet = KERN_SUCCESS; mach_msg_type_number_t StateCount; thread_state_flavor_t StateFlavor; #if defined(HOST_AMD64) if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS) & CONTEXT_AREA_MASK) { x86_thread_state64_t State; StateFlavor = x86_THREAD_STATE64; #elif defined(HOST_ARM64) if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { arm_thread_state64_t State; StateFlavor = ARM_THREAD_STATE64; #else #error Unexpected architecture. #endif StateCount = sizeof(State) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { ASSERT("thread_get_state(THREAD_STATE) failed: %d\n", MachRet); goto exit; } CONTEXT_GetThreadContextFromThreadState(StateFlavor, (thread_state_t)&State, lpContext); } if (lpContext->ContextFlags & CONTEXT_ALL_FLOATING & CONTEXT_AREA_MASK) { #if defined(HOST_AMD64) // The thread_get_state for floating point state can fail for some flavors when the processor is not // in the right mode at the time we are taking the state. So we will try to get the AVX state first and // if it fails, get the FLOAT state and if that fails, take AVX512 state. Both AVX and AVX512 states // are supersets of the FLOAT state. // Check a few fields to make sure the assumption is correct. static_assert_no_msg(sizeof(x86_avx_state64_t) > sizeof(x86_float_state64_t)); static_assert_no_msg(sizeof(x86_avx512_state64_t) > sizeof(x86_avx_state64_t)); static_assert_no_msg(offsetof(x86_avx_state64_t, __fpu_fcw) == offsetof(x86_float_state64_t, __fpu_fcw)); static_assert_no_msg(offsetof(x86_avx_state64_t, __fpu_xmm0) == offsetof(x86_float_state64_t, __fpu_xmm0)); static_assert_no_msg(offsetof(x86_avx512_state64_t, __fpu_fcw) == offsetof(x86_float_state64_t, __fpu_fcw)); static_assert_no_msg(offsetof(x86_avx512_state64_t, __fpu_xmm0) == offsetof(x86_float_state64_t, __fpu_xmm0)); x86_avx512_state64_t State; StateFlavor = x86_AVX_STATE64; StateCount = sizeof(x86_avx_state64_t) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { // The AVX state is not available, try to get the AVX512 state. StateFlavor = x86_AVX512_STATE64; StateCount = sizeof(x86_avx512_state64_t) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { // Neither the AVX nor the AVX512 state is not available, try to get at least the FLOAT state. lpContext->ContextFlags &= ~(CONTEXT_XSTATE & CONTEXT_AREA_MASK); StateFlavor = x86_FLOAT_STATE64; StateCount = sizeof(x86_float_state64_t) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { // We were unable to get any floating point state. This case was observed on OSX with AVX512 capable processors. lpContext->ContextFlags &= ~((CONTEXT_XSTATE | CONTEXT_ALL_FLOATING) & CONTEXT_AREA_MASK); } } } #elif defined(HOST_ARM64) arm_neon_state64_t State; StateFlavor = ARM_NEON_STATE64; StateCount = sizeof(arm_neon_state64_t) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { // We were unable to get any floating point state. lpContext->ContextFlags &= ~((CONTEXT_ALL_FLOATING) & CONTEXT_AREA_MASK); } #else #error Unexpected architecture. #endif CONTEXT_GetThreadContextFromThreadState(StateFlavor, (thread_state_t)&State, lpContext); } exit: return MachRet; } /*++ Function: CONTEXT_GetThreadContextFromThreadState --*/ void CONTEXT_GetThreadContextFromThreadState( thread_state_flavor_t threadStateFlavor, thread_state_t threadState, LPCONTEXT lpContext) { switch (threadStateFlavor) { #if defined (HOST_AMD64) case x86_THREAD_STATE64: if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS) & CONTEXT_AREA_MASK) { x86_thread_state64_t *pState = (x86_thread_state64_t *)threadState; lpContext->Rax = pState->__rax; lpContext->Rbx = pState->__rbx; lpContext->Rcx = pState->__rcx; lpContext->Rdx = pState->__rdx; lpContext->Rdi = pState->__rdi; lpContext->Rsi = pState->__rsi; lpContext->Rbp = pState->__rbp; lpContext->Rsp = pState->__rsp; lpContext->R8 = pState->__r8; lpContext->R9 = pState->__r9; lpContext->R10 = pState->__r10; lpContext->R11 = pState->__r11; lpContext->R12 = pState->__r12; lpContext->R13 = pState->__r13; lpContext->R14 = pState->__r14; lpContext->R15 = pState->__r15; lpContext->EFlags = pState->__rflags; lpContext->Rip = pState->__rip; lpContext->SegCs = pState->__cs; // RtlRestoreContext uses the actual ss instead of this one // to build the iret frame so just set it zero. lpContext->SegSs = 0; lpContext->SegDs = 0; lpContext->SegEs = 0; lpContext->SegFs = pState->__fs; lpContext->SegGs = pState->__gs; } break; case x86_AVX_STATE64: case x86_AVX512_STATE64: if (lpContext->ContextFlags & CONTEXT_XSTATE & CONTEXT_AREA_MASK) { x86_avx_state64_t *pState = (x86_avx_state64_t *)threadState; memcpy(&lpContext->VectorRegister, &pState->__fpu_ymmh0, 16 * 16); } // Intentional fall-through, the AVX states are supersets of the FLOAT state FALLTHROUGH; case x86_FLOAT_STATE64: if (lpContext->ContextFlags & CONTEXT_FLOATING_POINT & CONTEXT_AREA_MASK) { x86_float_state64_t *pState = (x86_float_state64_t *)threadState; lpContext->FltSave.ControlWord = *(DWORD*)&pState->__fpu_fcw; lpContext->FltSave.StatusWord = *(DWORD*)&pState->__fpu_fsw; lpContext->FltSave.TagWord = pState->__fpu_ftw; lpContext->FltSave.ErrorOffset = pState->__fpu_ip; lpContext->FltSave.ErrorSelector = pState->__fpu_cs; lpContext->FltSave.DataOffset = pState->__fpu_dp; lpContext->FltSave.DataSelector = pState->__fpu_ds; lpContext->FltSave.MxCsr = pState->__fpu_mxcsr; lpContext->FltSave.MxCsr_Mask = pState->__fpu_mxcsrmask; // note: we don't save the mask for x86 // Windows stores the floating point registers in a packed layout (each 10-byte register end to end // for a total of 80 bytes). But Mach returns each register in an 16-bit structure (presumably for // alignment purposes). So we can't just memcpy the registers over in a single block, we need to copy // them individually. for (int i = 0; i < 8; i++) memcpy(&lpContext->FltSave.FloatRegisters[i], (&pState->__fpu_stmm0)[i].__mmst_reg, 10); // AMD64's FLOATING_POINT includes the xmm registers. memcpy(&lpContext->Xmm0, &pState->__fpu_xmm0, 16 * 16); } break; case x86_THREAD_STATE: { x86_thread_state_t *pState = (x86_thread_state_t *)threadState; CONTEXT_GetThreadContextFromThreadState((thread_state_flavor_t)pState->tsh.flavor, (thread_state_t)&pState->uts, lpContext); } break; case x86_FLOAT_STATE: { x86_float_state_t *pState = (x86_float_state_t *)threadState; CONTEXT_GetThreadContextFromThreadState((thread_state_flavor_t)pState->fsh.flavor, (thread_state_t)&pState->ufs, lpContext); } break; #elif defined(HOST_ARM64) case ARM_THREAD_STATE64: if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { arm_thread_state64_t *pState = (arm_thread_state64_t*)threadState; memcpy(&lpContext->X0, &pState->__x[0], 29 * 8); lpContext->Cpsr = pState->__cpsr; lpContext->Fp = arm_thread_state64_get_fp(*pState); lpContext->Sp = arm_thread_state64_get_sp(*pState); lpContext->Lr = (uint64_t)arm_thread_state64_get_lr_fptr(*pState); lpContext->Pc = (uint64_t)arm_thread_state64_get_pc_fptr(*pState); } break; case ARM_NEON_STATE64: if (lpContext->ContextFlags & CONTEXT_FLOATING_POINT & CONTEXT_AREA_MASK) { arm_neon_state64_t *pState = (arm_neon_state64_t*)threadState; memcpy(&lpContext->V[0], &pState->__v, 32 * 16); lpContext->Fpsr = pState->__fpsr; lpContext->Fpcr = pState->__fpcr; } break; #else #error Unexpected architecture. #endif default: ASSERT("Invalid thread state flavor %d\n", threadStateFlavor); break; } } /*++ Function: GetThreadContext See MSDN doc. --*/ BOOL CONTEXT_GetThreadContext( DWORD dwProcessId, pthread_t self, LPCONTEXT lpContext) { BOOL ret = FALSE; if (lpContext == NULL) { ERROR("Invalid lpContext parameter value\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } if (GetCurrentProcessId() == dwProcessId) { if (self != pthread_self()) { // the target thread is in the current process, but isn't // the current one: extract the CONTEXT from the Mach thread. mach_port_t mptPort; mptPort = pthread_mach_thread_np(self); ret = (CONTEXT_GetThreadContextFromPort(mptPort, lpContext) == KERN_SUCCESS); } else { CONTEXT_CaptureContext(lpContext); ret = TRUE; } } else { ASSERT("Cross-process GetThreadContext() is not supported on this platform\n"); SetLastError(ERROR_NOACCESS); } EXIT: return ret; } /*++ Function: SetThreadContextOnPort Helper for CONTEXT_SetThreadContext --*/ kern_return_t CONTEXT_SetThreadContextOnPort( mach_port_t Port, IN CONST CONTEXT *lpContext) { kern_return_t MachRet = KERN_SUCCESS; mach_msg_type_number_t StateCount; thread_state_flavor_t StateFlavor; if (lpContext->ContextFlags & (CONTEXT_CONTROL|CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { #ifdef HOST_AMD64 x86_thread_state64_t State; StateFlavor = x86_THREAD_STATE64; State.__rax = lpContext->Rax; State.__rbx = lpContext->Rbx; State.__rcx = lpContext->Rcx; State.__rdx = lpContext->Rdx; State.__rdi = lpContext->Rdi; State.__rsi = lpContext->Rsi; State.__rbp = lpContext->Rbp; State.__rsp = lpContext->Rsp; State.__r8 = lpContext->R8; State.__r9 = lpContext->R9; State.__r10 = lpContext->R10; State.__r11 = lpContext->R11; State.__r12 = lpContext->R12; State.__r13 = lpContext->R13; State.__r14 = lpContext->R14; State.__r15 = lpContext->R15; // State.ss = lpContext->SegSs; State.__rflags = lpContext->EFlags; State.__rip = lpContext->Rip; State.__cs = lpContext->SegCs; // State.ds = lpContext->SegDs_PAL_Undefined; // State.es = lpContext->SegEs_PAL_Undefined; State.__fs = lpContext->SegFs; State.__gs = lpContext->SegGs; #elif defined(HOST_ARM64) arm_thread_state64_t State; StateFlavor = ARM_THREAD_STATE64; memcpy(&State.__x[0], &lpContext->X0, 29 * 8); State.__cpsr = lpContext->Cpsr; arm_thread_state64_set_fp(State, lpContext->Fp); arm_thread_state64_set_sp(State, lpContext->Sp); arm_thread_state64_set_lr_fptr(State, lpContext->Lr); arm_thread_state64_set_pc_fptr(State, lpContext->Pc); #else #error Unexpected architecture. #endif StateCount = sizeof(State) / sizeof(natural_t); MachRet = thread_set_state(Port, StateFlavor, (thread_state_t)&State, StateCount); if (MachRet != KERN_SUCCESS) { ASSERT("thread_set_state(THREAD_STATE) failed: %d\n", MachRet); goto EXIT; } } if (lpContext->ContextFlags & CONTEXT_ALL_FLOATING & CONTEXT_AREA_MASK) { #ifdef HOST_AMD64 #ifdef XSTATE_SUPPORTED // We're relying on the fact that the initial portion of // x86_avx_state64_t is identical to x86_float_state64_t. // Check a few fields to make sure the assumption is correct. static_assert_no_msg(sizeof(x86_avx_state64_t) > sizeof(x86_float_state64_t)); static_assert_no_msg(offsetof(x86_avx_state64_t, __fpu_fcw) == offsetof(x86_float_state64_t, __fpu_fcw)); static_assert_no_msg(offsetof(x86_avx_state64_t, __fpu_xmm0) == offsetof(x86_float_state64_t, __fpu_xmm0)); x86_avx_state64_t State; if (lpContext->ContextFlags & CONTEXT_XSTATE & CONTEXT_AREA_MASK) { StateFlavor = x86_AVX_STATE64; StateCount = sizeof(State) / sizeof(natural_t); } else { StateFlavor = x86_FLOAT_STATE64; StateCount = sizeof(x86_float_state64_t) / sizeof(natural_t); } #else x86_float_state64_t State; StateFlavor = x86_FLOAT_STATE64; StateCount = sizeof(State) / sizeof(natural_t); #endif #elif defined(HOST_ARM64) arm_neon_state64_t State; StateFlavor = ARM_NEON_STATE64; StateCount = sizeof(State) / sizeof(natural_t); #else #error Unexpected architecture. #endif // If we're setting only one of the floating point or extended registers (of which Mach supports only // the xmm values) then we don't have values for the other set. This is a problem since Mach only // supports setting both groups as a single unit. So in this case we'll need to fetch the current // values first. if ((lpContext->ContextFlags & CONTEXT_ALL_FLOATING) != CONTEXT_ALL_FLOATING) { mach_msg_type_number_t StateCountGet = StateCount; MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCountGet); if (MachRet != KERN_SUCCESS) { ASSERT("thread_get_state(FLOAT_STATE) failed: %d\n", MachRet); goto EXIT; } _ASSERTE(StateCountGet == StateCount); } if (lpContext->ContextFlags & CONTEXT_FLOATING_POINT & CONTEXT_AREA_MASK) { #ifdef HOST_AMD64 *(DWORD*)&State.__fpu_fcw = lpContext->FltSave.ControlWord; *(DWORD*)&State.__fpu_fsw = lpContext->FltSave.StatusWord; State.__fpu_ftw = lpContext->FltSave.TagWord; State.__fpu_ip = lpContext->FltSave.ErrorOffset; State.__fpu_cs = lpContext->FltSave.ErrorSelector; State.__fpu_dp = lpContext->FltSave.DataOffset; State.__fpu_ds = lpContext->FltSave.DataSelector; State.__fpu_mxcsr = lpContext->FltSave.MxCsr; State.__fpu_mxcsrmask = lpContext->FltSave.MxCsr_Mask; // note: we don't save the mask for x86 // Windows stores the floating point registers in a packed layout (each 10-byte register end to // end for a total of 80 bytes). But Mach returns each register in an 16-bit structure (presumably // for alignment purposes). So we can't just memcpy the registers over in a single block, we need // to copy them individually. for (int i = 0; i < 8; i++) memcpy((&State.__fpu_stmm0)[i].__mmst_reg, &lpContext->FltSave.FloatRegisters[i], 10); memcpy(&State.__fpu_xmm0, &lpContext->Xmm0, 16 * 16); #elif defined(HOST_ARM64) memcpy(&State.__v, &lpContext->V[0], 32 * 16); State.__fpsr = lpContext->Fpsr; State.__fpcr = lpContext->Fpcr; #else #error Unexpected architecture. #endif } #if defined(HOST_AMD64) && defined(XSTATE_SUPPORTED) if (lpContext->ContextFlags & CONTEXT_XSTATE & CONTEXT_AREA_MASK) { memcpy(&State.__fpu_ymmh0, lpContext->VectorRegister, 16 * 16); } #endif MachRet = thread_set_state(Port, StateFlavor, (thread_state_t)&State, StateCount); if (MachRet != KERN_SUCCESS) { ASSERT("thread_set_state(FLOAT_STATE) failed: %d\n", MachRet); goto EXIT; } } EXIT: return MachRet; } /*++ Function: SetThreadContext See MSDN doc. --*/ BOOL CONTEXT_SetThreadContext( DWORD dwProcessId, pthread_t self, CONST CONTEXT *lpContext) { BOOL ret = FALSE; if (lpContext == NULL) { ERROR("Invalid lpContext parameter value\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } if (dwProcessId != GetCurrentProcessId()) { // GetThreadContext() of a thread in another process ASSERT("Cross-process GetThreadContext() is not supported\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } if (self != pthread_self()) { // hThread is in the current process, but isn't the current // thread. Extract the CONTEXT from the Mach thread. mach_port_t mptPort; mptPort = pthread_mach_thread_np(self); ret = (CONTEXT_SetThreadContextOnPort(mptPort, lpContext) == KERN_SUCCESS); } else { MachSetThreadContext(const_cast<CONTEXT *>(lpContext)); ASSERT("MachSetThreadContext should never return\n"); } EXIT: return ret; } #endif // !HAVE_MACH_EXCEPTIONS /*++ Function: DBG_FlushInstructionCache: processor-specific portion of FlushInstructionCache See MSDN doc. --*/ BOOL DBG_FlushInstructionCache( IN LPCVOID lpBaseAddress, IN SIZE_T dwSize) { #ifndef HOST_ARM // Intrinsic should do the right thing across all platforms (except Linux arm) __builtin___clear_cache((char *)lpBaseAddress, (char *)((INT_PTR)lpBaseAddress + dwSize)); #else // HOST_ARM // On Linux/arm (at least on 3.10) we found that there is a problem with __do_cache_op (arch/arm/kernel/traps.c) // implementing cacheflush syscall. cacheflush flushes only the first page in range [lpBaseAddress, lpBaseAddress + dwSize) // and leaves other pages in undefined state which causes random tests failures (often due to SIGSEGV) with no particular pattern. // // As a workaround, we call __builtin___clear_cache on each page separately. const SIZE_T pageSize = GetVirtualPageSize(); INT_PTR begin = (INT_PTR)lpBaseAddress; const INT_PTR end = begin + dwSize; while (begin < end) { INT_PTR endOrNextPageBegin = ALIGN_UP(begin + 1, pageSize); if (endOrNextPageBegin > end) endOrNextPageBegin = end; __builtin___clear_cache((char *)begin, (char *)endOrNextPageBegin); begin = endOrNextPageBegin; } #endif // HOST_ARM return TRUE; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*++ Module Name: context.c Abstract: Implementation of GetThreadContext/SetThreadContext/DebugBreak. There are a lot of architecture specifics here. --*/ #include "pal/dbgmsg.h" SET_DEFAULT_DEBUG_CHANNEL(THREAD); // some headers have code with asserts, so do this first #include "pal/palinternal.h" #include "pal/context.h" #include "pal/debug.h" #include "pal/thread.hpp" #include "pal/utils.h" #include "pal/virtual.h" #if HAVE_SYS_PTRACE_H #include <sys/ptrace.h> #endif #include <errno.h> #include <unistd.h> extern PGET_GCMARKER_EXCEPTION_CODE g_getGcMarkerExceptionCode; #define CONTEXT_AREA_MASK 0xffff #ifdef HOST_X86 #define CONTEXT_ALL_FLOATING (CONTEXT_FLOATING_POINT | CONTEXT_EXTENDED_REGISTERS) #elif defined(HOST_AMD64) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #elif defined(HOST_ARM) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #elif defined(HOST_ARM64) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #elif defined(HOST_LOONGARCH64) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #elif defined(HOST_S390X) #define CONTEXT_ALL_FLOATING CONTEXT_FLOATING_POINT #else #error Unexpected architecture. #endif #if !HAVE_MACH_EXCEPTIONS #ifndef __GLIBC__ typedef int __ptrace_request; #endif #if HAVE_MACHINE_REG_H #include <machine/reg.h> #endif // HAVE_MACHINE_REG_H #if HAVE_MACHINE_NPX_H #include <machine/npx.h> #endif // HAVE_MACHINE_NPX_H #if HAVE_PT_REGS #include <asm/ptrace.h> #endif // HAVE_PT_REGS #endif // !HAVE_MACH_EXCEPTIONS #ifdef HOST_AMD64 #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Rbp) \ ASSIGN_REG(Rip) \ ASSIGN_REG(SegCs) \ ASSIGN_REG(EFlags) \ ASSIGN_REG(Rsp) \ #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(Rdi) \ ASSIGN_REG(Rsi) \ ASSIGN_REG(Rbx) \ ASSIGN_REG(Rdx) \ ASSIGN_REG(Rcx) \ ASSIGN_REG(Rax) \ ASSIGN_REG(R8) \ ASSIGN_REG(R9) \ ASSIGN_REG(R10) \ ASSIGN_REG(R11) \ ASSIGN_REG(R12) \ ASSIGN_REG(R13) \ ASSIGN_REG(R14) \ ASSIGN_REG(R15) \ #elif defined(HOST_X86) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Ebp) \ ASSIGN_REG(Eip) \ ASSIGN_REG(SegCs) \ ASSIGN_REG(EFlags) \ ASSIGN_REG(Esp) \ ASSIGN_REG(SegSs) \ #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(Edi) \ ASSIGN_REG(Esi) \ ASSIGN_REG(Ebx) \ ASSIGN_REG(Edx) \ ASSIGN_REG(Ecx) \ ASSIGN_REG(Eax) \ #elif defined(HOST_ARM) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Sp) \ ASSIGN_REG(Lr) \ ASSIGN_REG(Pc) \ ASSIGN_REG(Cpsr) \ #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(R0) \ ASSIGN_REG(R1) \ ASSIGN_REG(R2) \ ASSIGN_REG(R3) \ ASSIGN_REG(R4) \ ASSIGN_REG(R5) \ ASSIGN_REG(R6) \ ASSIGN_REG(R7) \ ASSIGN_REG(R8) \ ASSIGN_REG(R9) \ ASSIGN_REG(R10) \ ASSIGN_REG(R11) \ ASSIGN_REG(R12) #elif defined(HOST_ARM64) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Cpsr) \ ASSIGN_REG(Fp) \ ASSIGN_REG(Sp) \ ASSIGN_REG(Lr) \ ASSIGN_REG(Pc) #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(X0) \ ASSIGN_REG(X1) \ ASSIGN_REG(X2) \ ASSIGN_REG(X3) \ ASSIGN_REG(X4) \ ASSIGN_REG(X5) \ ASSIGN_REG(X6) \ ASSIGN_REG(X7) \ ASSIGN_REG(X8) \ ASSIGN_REG(X9) \ ASSIGN_REG(X10) \ ASSIGN_REG(X11) \ ASSIGN_REG(X12) \ ASSIGN_REG(X13) \ ASSIGN_REG(X14) \ ASSIGN_REG(X15) \ ASSIGN_REG(X16) \ ASSIGN_REG(X17) \ ASSIGN_REG(X18) \ ASSIGN_REG(X19) \ ASSIGN_REG(X20) \ ASSIGN_REG(X21) \ ASSIGN_REG(X22) \ ASSIGN_REG(X23) \ ASSIGN_REG(X24) \ ASSIGN_REG(X25) \ ASSIGN_REG(X26) \ ASSIGN_REG(X27) \ ASSIGN_REG(X28) #elif defined(HOST_LOONGARCH64) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(Fp) \ ASSIGN_REG(Sp) \ ASSIGN_REG(Ra) \ ASSIGN_REG(Pc) #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(R0) \ ASSIGN_REG(Tp) \ ASSIGN_REG(A0) \ ASSIGN_REG(A1) \ ASSIGN_REG(A2) \ ASSIGN_REG(A3) \ ASSIGN_REG(A4) \ ASSIGN_REG(A5) \ ASSIGN_REG(A6) \ ASSIGN_REG(A7) \ ASSIGN_REG(T0) \ ASSIGN_REG(T1) \ ASSIGN_REG(T2) \ ASSIGN_REG(T3) \ ASSIGN_REG(T4) \ ASSIGN_REG(T5) \ ASSIGN_REG(T6) \ ASSIGN_REG(T7) \ ASSIGN_REG(T8) \ ASSIGN_REG(S0) \ ASSIGN_REG(S1) \ ASSIGN_REG(S2) \ ASSIGN_REG(S3) \ ASSIGN_REG(S4) \ ASSIGN_REG(S5) \ ASSIGN_REG(S6) \ ASSIGN_REG(S7) \ ASSIGN_REG(S8) \ ASSIGN_REG(X0) #elif defined(HOST_S390X) #define ASSIGN_CONTROL_REGS \ ASSIGN_REG(PSWMask) \ ASSIGN_REG(PSWAddr) \ ASSIGN_REG(R15) \ #define ASSIGN_INTEGER_REGS \ ASSIGN_REG(R0) \ ASSIGN_REG(R1) \ ASSIGN_REG(R2) \ ASSIGN_REG(R3) \ ASSIGN_REG(R4) \ ASSIGN_REG(R5) \ ASSIGN_REG(R5) \ ASSIGN_REG(R6) \ ASSIGN_REG(R7) \ ASSIGN_REG(R8) \ ASSIGN_REG(R9) \ ASSIGN_REG(R10) \ ASSIGN_REG(R11) \ ASSIGN_REG(R12) \ ASSIGN_REG(R13) \ ASSIGN_REG(R14) #else #error "Don't know how to assign registers on this architecture" #endif #define ASSIGN_ALL_REGS \ ASSIGN_CONTROL_REGS \ ASSIGN_INTEGER_REGS \ #if !HAVE_MACH_EXCEPTIONS /*++ Function: CONTEXT_GetRegisters Abstract retrieve the machine registers value of the indicated process. Parameter processId: process ID lpContext: context structure in which the machine registers value will be returned. Return returns TRUE if it succeeds, FALSE otherwise --*/ BOOL CONTEXT_GetRegisters(DWORD processId, LPCONTEXT lpContext) { #if HAVE_BSD_REGS_T int regFd = -1; #endif // HAVE_BSD_REGS_T BOOL bRet = FALSE; if (processId == GetCurrentProcessId()) { CONTEXT_CaptureContext(lpContext); } else { ucontext_t registers; #if HAVE_PT_REGS struct pt_regs ptrace_registers; if (ptrace((__ptrace_request)PTRACE_GETREGS, processId, (caddr_t) &ptrace_registers, 0) == -1) #elif HAVE_BSD_REGS_T struct reg ptrace_registers; if (PAL_PTRACE(PT_GETREGS, processId, &ptrace_registers, 0) == -1) #endif { ASSERT("Failed ptrace(PT_GETREGS, processId:%d) errno:%d (%s)\n", processId, errno, strerror(errno)); } #if HAVE_PT_REGS #define ASSIGN_REG(reg) MCREG_##reg(registers.uc_mcontext) = PTREG_##reg(ptrace_registers); #elif HAVE_BSD_REGS_T #define ASSIGN_REG(reg) MCREG_##reg(registers.uc_mcontext) = BSDREG_##reg(ptrace_registers); #else #define ASSIGN_REG(reg) ASSERT("Don't know how to get the context of another process on this platform!"); return bRet; #endif ASSIGN_ALL_REGS #undef ASSIGN_REG CONTEXTFromNativeContext(&registers, lpContext, lpContext->ContextFlags); } bRet = TRUE; #if HAVE_BSD_REGS_T if (regFd != -1) { close(regFd); } #endif // HAVE_BSD_REGS_T return bRet; } /*++ Function: GetThreadContext See MSDN doc. --*/ BOOL CONTEXT_GetThreadContext( DWORD dwProcessId, pthread_t self, LPCONTEXT lpContext) { BOOL ret = FALSE; if (lpContext == NULL) { ERROR("Invalid lpContext parameter value\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } /* How to consider the case when self is different from the current thread of its owner process. Machine registers values could be retreived by a ptrace(pid, ...) call or from the "/proc/%pid/reg" file content. Unfortunately, these two methods only depend on process ID, not on thread ID. */ if (dwProcessId == GetCurrentProcessId()) { if (self != pthread_self()) { DWORD flags; // There aren't any APIs for this. We can potentially get the // context of another thread by using per-thread signals, but // on FreeBSD signal handlers that are called as a result // of signals raised via pthread_kill don't get a valid // sigcontext or ucontext_t. But we need this to return TRUE // to avoid an assertion in the CLR in code that manages to // cope reasonably well without a valid thread context. // Given that, we'll zero out our structure and return TRUE. ERROR("GetThreadContext on a thread other than the current " "thread is returning TRUE\n"); flags = lpContext->ContextFlags; memset(lpContext, 0, sizeof(*lpContext)); lpContext->ContextFlags = flags; ret = TRUE; goto EXIT; } } if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { if (CONTEXT_GetRegisters(dwProcessId, lpContext) == FALSE) { SetLastError(ERROR_INTERNAL_ERROR); goto EXIT; } } ret = TRUE; EXIT: return ret; } /*++ Function: SetThreadContext See MSDN doc. --*/ BOOL CONTEXT_SetThreadContext( DWORD dwProcessId, pthread_t self, CONST CONTEXT *lpContext) { BOOL ret = FALSE; #if HAVE_PT_REGS struct pt_regs ptrace_registers; #elif HAVE_BSD_REGS_T struct reg ptrace_registers; #endif if (lpContext == NULL) { ERROR("Invalid lpContext parameter value\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } /* How to consider the case when self is different from the current thread of its owner process. Machine registers values could be retreived by a ptrace(pid, ...) call or from the "/proc/%pid/reg" file content. Unfortunately, these two methods only depend on process ID, not on thread ID. */ if (dwProcessId == GetCurrentProcessId()) { // Need to implement SetThreadContext(current thread) for the IX architecture; look at common_signal_handler. _ASSERT(FALSE); ASSERT("SetThreadContext should be called for cross-process only.\n"); SetLastError(ERROR_INVALID_PARAMETER); goto EXIT; } if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { #if HAVE_PT_REGS if (ptrace((__ptrace_request)PTRACE_GETREGS, dwProcessId, (caddr_t)&ptrace_registers, 0) == -1) #elif HAVE_BSD_REGS_T if (PAL_PTRACE(PT_GETREGS, dwProcessId, &ptrace_registers, 0) == -1) #endif { ASSERT("Failed ptrace(PT_GETREGS, processId:%d) errno:%d (%s)\n", dwProcessId, errno, strerror(errno)); SetLastError(ERROR_INTERNAL_ERROR); goto EXIT; } #if HAVE_PT_REGS #define ASSIGN_REG(reg) PTREG_##reg(ptrace_registers) = lpContext->reg; #elif HAVE_BSD_REGS_T #define ASSIGN_REG(reg) BSDREG_##reg(ptrace_registers) = lpContext->reg; #else #define ASSIGN_REG(reg) ASSERT("Don't know how to set the context of another process on this platform!"); return FALSE; #endif if (lpContext->ContextFlags & CONTEXT_CONTROL & CONTEXT_AREA_MASK) { ASSIGN_CONTROL_REGS } if (lpContext->ContextFlags & CONTEXT_INTEGER & CONTEXT_AREA_MASK) { ASSIGN_INTEGER_REGS } #undef ASSIGN_REG #if HAVE_PT_REGS if (ptrace((__ptrace_request)PTRACE_SETREGS, dwProcessId, (caddr_t)&ptrace_registers, 0) == -1) #elif HAVE_BSD_REGS_T if (PAL_PTRACE(PT_SETREGS, dwProcessId, &ptrace_registers, 0) == -1) #endif { ASSERT("Failed ptrace(PT_SETREGS, processId:%d) errno:%d (%s)\n", dwProcessId, errno, strerror(errno)); SetLastError(ERROR_INTERNAL_ERROR); goto EXIT; } } ret = TRUE; EXIT: return ret; } #endif // !HAVE_MACH_EXCEPTIONS /*++ Function : CONTEXTToNativeContext Converts a CONTEXT record to a native context. Parameters : CONST CONTEXT *lpContext : CONTEXT to convert native_context_t *native : native context to fill in Return value : None --*/ void CONTEXTToNativeContext(CONST CONTEXT *lpContext, native_context_t *native) { #define ASSIGN_REG(reg) MCREG_##reg(native->uc_mcontext) = lpContext->reg; if ((lpContext->ContextFlags & CONTEXT_CONTROL) == CONTEXT_CONTROL) { ASSIGN_CONTROL_REGS } if ((lpContext->ContextFlags & CONTEXT_INTEGER) == CONTEXT_INTEGER) { ASSIGN_INTEGER_REGS } #undef ASSIGN_REG #if !HAVE_FPREGS_WITH_CW #if (HAVE_GREGSET_T || HAVE___GREGSET_T) && !defined(HOST_S390X) && !defined(HOST_LOONGARCH64) #if HAVE_GREGSET_T if (native->uc_mcontext.fpregs == nullptr) #elif HAVE___GREGSET_T if (native->uc_mcontext.__fpregs == nullptr) #endif // HAVE_GREGSET_T { // If the pointer to the floating point state in the native context // is not valid, we can't copy floating point registers regardless of // whether CONTEXT_FLOATING_POINT is set in the CONTEXT's flags. return; } #endif // (HAVE_GREGSET_T || HAVE___GREGSET_T) && !HOST_S390X && !HOST_LOONGARCH64 #endif // !HAVE_FPREGS_WITH_CW if ((lpContext->ContextFlags & CONTEXT_FLOATING_POINT) == CONTEXT_FLOATING_POINT) { #ifdef HOST_AMD64 FPREG_ControlWord(native) = lpContext->FltSave.ControlWord; FPREG_StatusWord(native) = lpContext->FltSave.StatusWord; #if HAVE_FPREGS_WITH_CW FPREG_TagWord1(native) = lpContext->FltSave.TagWord >> 8; FPREG_TagWord2(native) = lpContext->FltSave.TagWord & 0xff; #else FPREG_TagWord(native) = lpContext->FltSave.TagWord; #endif FPREG_ErrorOffset(native) = lpContext->FltSave.ErrorOffset; FPREG_ErrorSelector(native) = lpContext->FltSave.ErrorSelector; FPREG_DataOffset(native) = lpContext->FltSave.DataOffset; FPREG_DataSelector(native) = lpContext->FltSave.DataSelector; FPREG_MxCsr(native) = lpContext->FltSave.MxCsr; FPREG_MxCsr_Mask(native) = lpContext->FltSave.MxCsr_Mask; for (int i = 0; i < 8; i++) { FPREG_St(native, i) = lpContext->FltSave.FloatRegisters[i]; } for (int i = 0; i < 16; i++) { FPREG_Xmm(native, i) = lpContext->FltSave.XmmRegisters[i]; } #elif defined(HOST_ARM64) #ifdef TARGET_OSX _STRUCT_ARM_NEON_STATE64* fp = GetNativeSigSimdContext(native); fp->__fpsr = lpContext->Fpsr; fp->__fpcr = lpContext->Fpcr; for (int i = 0; i < 32; i++) { *(NEON128*) &fp->__v[i] = lpContext->V[i]; } #else // TARGET_OSX fpsimd_context* fp = GetNativeSigSimdContext(native); if (fp) { fp->fpsr = lpContext->Fpsr; fp->fpcr = lpContext->Fpcr; for (int i = 0; i < 32; i++) { *(NEON128*) &fp->vregs[i] = lpContext->V[i]; } } #endif // TARGET_OSX #elif defined(HOST_ARM) VfpSigFrame* fp = GetNativeSigSimdContext(native); if (fp) { fp->Fpscr = lpContext->Fpscr; for (int i = 0; i < 32; i++) { fp->D[i] = lpContext->D[i]; } } #elif defined(HOST_S390X) fpregset_t *fp = &native->uc_mcontext.fpregs; static_assert_no_msg(sizeof(fp->fprs) == sizeof(lpContext->Fpr)); memcpy(fp->fprs, lpContext->Fpr, sizeof(lpContext->Fpr)); #elif defined(HOST_LOONGARCH64) for (int i = 0; i < 32; i++) { native->uc_mcontext.__fpregs[i].__val64[0] = lpContext->F[i]; } #endif } // TODO: Enable for all Unix systems #if defined(HOST_AMD64) && defined(XSTATE_SUPPORTED) if ((lpContext->ContextFlags & CONTEXT_XSTATE) == CONTEXT_XSTATE) { _ASSERTE(FPREG_HasYmmRegisters(native)); memcpy_s(FPREG_Xstate_Ymmh(native), sizeof(M128A) * 16, lpContext->VectorRegister, sizeof(M128A) * 16); } #endif //HOST_AMD64 && XSTATE_SUPPORTED } /*++ Function : CONTEXTFromNativeContext Converts a native context to a CONTEXT record. Parameters : const native_context_t *native : native context to convert LPCONTEXT lpContext : CONTEXT to fill in ULONG contextFlags : flags that determine which registers are valid in native and which ones to set in lpContext Return value : None --*/ void CONTEXTFromNativeContext(const native_context_t *native, LPCONTEXT lpContext, ULONG contextFlags) { lpContext->ContextFlags = contextFlags; #define ASSIGN_REG(reg) lpContext->reg = MCREG_##reg(native->uc_mcontext); if ((contextFlags & CONTEXT_CONTROL) == CONTEXT_CONTROL) { ASSIGN_CONTROL_REGS #if defined(HOST_ARM) // WinContext assumes that the least bit of Pc is always 1 (denoting thumb) // although the pc value retrived from native context might not have set the least bit. // This becomes especially problematic if the context is on the JIT_WRITEBARRIER. lpContext->Pc |= 0x1; #endif } if ((contextFlags & CONTEXT_INTEGER) == CONTEXT_INTEGER) { ASSIGN_INTEGER_REGS } #undef ASSIGN_REG #if !HAVE_FPREGS_WITH_CW #if (HAVE_GREGSET_T || HAVE___GREGSET_T) && !defined(HOST_S390X) && !defined(HOST_LOONGARCH64) #if HAVE_GREGSET_T if (native->uc_mcontext.fpregs == nullptr) #elif HAVE___GREGSET_T if (native->uc_mcontext.__fpregs == nullptr) #endif // HAVE_GREGSET_T { // Reset the CONTEXT_FLOATING_POINT bit(s) and the CONTEXT_XSTATE bit(s) so it's // clear that the floating point and extended state data in the CONTEXT is not // valid. Since these flags are defined as the architecture bit(s) OR'd with one // or more other bits, we first get the bits that are unique to each by resetting // the architecture bits. We determine what those are by inverting the union of // CONTEXT_CONTROL and CONTEXT_INTEGER, both of which should also have the // architecture bit(s) set. const ULONG floatingPointFlags = CONTEXT_FLOATING_POINT & ~(CONTEXT_CONTROL & CONTEXT_INTEGER); const ULONG xstateFlags = CONTEXT_XSTATE & ~(CONTEXT_CONTROL & CONTEXT_INTEGER); lpContext->ContextFlags &= ~(floatingPointFlags | xstateFlags); // Bail out regardless of whether the caller wanted CONTEXT_FLOATING_POINT or CONTEXT_XSTATE return; } #endif // (HAVE_GREGSET_T || HAVE___GREGSET_T) && !HOST_S390X #endif // !HAVE_FPREGS_WITH_CW if ((contextFlags & CONTEXT_FLOATING_POINT) == CONTEXT_FLOATING_POINT) { #ifdef HOST_AMD64 lpContext->FltSave.ControlWord = FPREG_ControlWord(native); lpContext->FltSave.StatusWord = FPREG_StatusWord(native); #if HAVE_FPREGS_WITH_CW lpContext->FltSave.TagWord = ((DWORD)FPREG_TagWord1(native) << 8) | FPREG_TagWord2(native); #else lpContext->FltSave.TagWord = FPREG_TagWord(native); #endif lpContext->FltSave.ErrorOffset = FPREG_ErrorOffset(native); lpContext->FltSave.ErrorSelector = FPREG_ErrorSelector(native); lpContext->FltSave.DataOffset = FPREG_DataOffset(native); lpContext->FltSave.DataSelector = FPREG_DataSelector(native); lpContext->FltSave.MxCsr = FPREG_MxCsr(native); lpContext->FltSave.MxCsr_Mask = FPREG_MxCsr_Mask(native); for (int i = 0; i < 8; i++) { lpContext->FltSave.FloatRegisters[i] = FPREG_St(native, i); } for (int i = 0; i < 16; i++) { lpContext->FltSave.XmmRegisters[i] = FPREG_Xmm(native, i); } #elif defined(HOST_ARM64) #ifdef TARGET_OSX const _STRUCT_ARM_NEON_STATE64* fp = GetConstNativeSigSimdContext(native); lpContext->Fpsr = fp->__fpsr; lpContext->Fpcr = fp->__fpcr; for (int i = 0; i < 32; i++) { lpContext->V[i] = *(NEON128*) &fp->__v[i]; } #else // TARGET_OSX const fpsimd_context* fp = GetConstNativeSigSimdContext(native); if (fp) { lpContext->Fpsr = fp->fpsr; lpContext->Fpcr = fp->fpcr; for (int i = 0; i < 32; i++) { lpContext->V[i] = *(NEON128*) &fp->vregs[i]; } } #endif // TARGET_OSX #elif defined(HOST_ARM) const VfpSigFrame* fp = GetConstNativeSigSimdContext(native); if (fp) { lpContext->Fpscr = fp->Fpscr; for (int i = 0; i < 32; i++) { lpContext->D[i] = fp->D[i]; } } else { // Floating point state is not valid // Mark the context correctly lpContext->ContextFlags &= ~(ULONG)CONTEXT_FLOATING_POINT; } #elif defined(HOST_S390X) const fpregset_t *fp = &native->uc_mcontext.fpregs; static_assert_no_msg(sizeof(fp->fprs) == sizeof(lpContext->Fpr)); memcpy(lpContext->Fpr, fp->fprs, sizeof(lpContext->Fpr)); #elif defined(HOST_LOONGARCH64) lpContext->Fcsr = native->uc_mcontext.__fcsr; for (int i = 0; i < 32; i++) { lpContext->F[i] = native->uc_mcontext.__fpregs[i].__val64[0]; } #endif } #ifdef HOST_AMD64 if ((contextFlags & CONTEXT_XSTATE) == CONTEXT_XSTATE) { // TODO: Enable for all Unix systems #if XSTATE_SUPPORTED if (FPREG_HasYmmRegisters(native)) { memcpy_s(lpContext->VectorRegister, sizeof(M128A) * 16, FPREG_Xstate_Ymmh(native), sizeof(M128A) * 16); } else #endif // XSTATE_SUPPORTED { // Reset the CONTEXT_XSTATE bit(s) so it's clear that the extended state data in // the CONTEXT is not valid. const ULONG xstateFlags = CONTEXT_XSTATE & ~(CONTEXT_CONTROL & CONTEXT_INTEGER); lpContext->ContextFlags &= ~xstateFlags; } } #endif // HOST_AMD64 } #if !HAVE_MACH_EXCEPTIONS /*++ Function : GetNativeContextPC Returns the program counter from the native context. Parameters : const native_context_t *native : native context Return value : The program counter from the native context. --*/ LPVOID GetNativeContextPC(const native_context_t *context) { #ifdef HOST_AMD64 return (LPVOID)MCREG_Rip(context->uc_mcontext); #elif defined(HOST_X86) return (LPVOID) MCREG_Eip(context->uc_mcontext); #elif defined(HOST_ARM) return (LPVOID) MCREG_Pc(context->uc_mcontext); #elif defined(HOST_ARM64) return (LPVOID) MCREG_Pc(context->uc_mcontext); #elif defined(HOST_LOONGARCH64) return (LPVOID) MCREG_Pc(context->uc_mcontext); #elif defined(HOST_S390X) return (LPVOID) MCREG_PSWAddr(context->uc_mcontext); #else # error implement me for this architecture #endif } /*++ Function : GetNativeContextSP Returns the stack pointer from the native context. Parameters : const native_context_t *native : native context Return value : The stack pointer from the native context. --*/ LPVOID GetNativeContextSP(const native_context_t *context) { #ifdef HOST_AMD64 return (LPVOID)MCREG_Rsp(context->uc_mcontext); #elif defined(HOST_X86) return (LPVOID) MCREG_Esp(context->uc_mcontext); #elif defined(HOST_ARM) return (LPVOID) MCREG_Sp(context->uc_mcontext); #elif defined(HOST_ARM64) return (LPVOID) MCREG_Sp(context->uc_mcontext); #elif defined(HOST_LOONGARCH64) return (LPVOID) MCREG_Sp(context->uc_mcontext); #elif defined(HOST_S390X) return (LPVOID) MCREG_R15(context->uc_mcontext); #else # error implement me for this architecture #endif } /*++ Function : CONTEXTGetExceptionCodeForSignal Translates signal and context information to a Win32 exception code. Parameters : const siginfo_t *siginfo : signal information from a signal handler const native_context_t *context : context information Return value : The Win32 exception code that corresponds to the signal and context information. --*/ #ifdef ILL_ILLOPC // If si_code values are available for all signals, use those. DWORD CONTEXTGetExceptionCodeForSignal(const siginfo_t *siginfo, const native_context_t *context) { // IMPORTANT NOTE: This function must not call any signal unsafe functions // since it is called from signal handlers. // That includes ASSERT and TRACE macros. switch (siginfo->si_signo) { case SIGILL: switch (siginfo->si_code) { case ILL_ILLOPC: // Illegal opcode case ILL_ILLOPN: // Illegal operand case ILL_ILLADR: // Illegal addressing mode case ILL_ILLTRP: // Illegal trap case ILL_COPROC: // Co-processor error return EXCEPTION_ILLEGAL_INSTRUCTION; case ILL_PRVOPC: // Privileged opcode case ILL_PRVREG: // Privileged register return EXCEPTION_PRIV_INSTRUCTION; case ILL_BADSTK: // Internal stack error return EXCEPTION_STACK_OVERFLOW; default: break; } break; case SIGFPE: switch (siginfo->si_code) { case FPE_INTDIV: return EXCEPTION_INT_DIVIDE_BY_ZERO; case FPE_INTOVF: return EXCEPTION_INT_OVERFLOW; case FPE_FLTDIV: return EXCEPTION_FLT_DIVIDE_BY_ZERO; case FPE_FLTOVF: return EXCEPTION_FLT_OVERFLOW; case FPE_FLTUND: return EXCEPTION_FLT_UNDERFLOW; case FPE_FLTRES: return EXCEPTION_FLT_INEXACT_RESULT; case FPE_FLTINV: return EXCEPTION_FLT_INVALID_OPERATION; case FPE_FLTSUB: return EXCEPTION_FLT_INVALID_OPERATION; default: break; } break; case SIGSEGV: switch (siginfo->si_code) { case SI_USER: // User-generated signal, sometimes sent // for SIGSEGV under normal circumstances case SEGV_MAPERR: // Address not mapped to object case SEGV_ACCERR: // Invalid permissions for mapped object return EXCEPTION_ACCESS_VIOLATION; #ifdef SI_KERNEL case SI_KERNEL: { // Identify privileged instructions that are not identified as such by the system if (g_getGcMarkerExceptionCode != nullptr) { DWORD exceptionCode = g_getGcMarkerExceptionCode(GetNativeContextPC(context)); if (exceptionCode != 0) { return exceptionCode; } } return EXCEPTION_ACCESS_VIOLATION; } #endif default: break; } break; case SIGBUS: switch (siginfo->si_code) { case BUS_ADRALN: // Invalid address alignment return EXCEPTION_DATATYPE_MISALIGNMENT; case BUS_ADRERR: // Non-existent physical address return EXCEPTION_ACCESS_VIOLATION; case BUS_OBJERR: // Object-specific hardware error default: break; } break; case SIGTRAP: switch (siginfo->si_code) { #ifdef SI_KERNEL case SI_KERNEL: #endif case SI_USER: case TRAP_BRKPT: // Process breakpoint return EXCEPTION_BREAKPOINT; case TRAP_TRACE: // Process trace trap return EXCEPTION_SINGLE_STEP; default: // Got unknown SIGTRAP signal with code siginfo->si_code; return EXCEPTION_ILLEGAL_INSTRUCTION; } default: break; } // Got unknown signal number siginfo->si_signo with code siginfo->si_code; return EXCEPTION_ILLEGAL_INSTRUCTION; } #else // ILL_ILLOPC DWORD CONTEXTGetExceptionCodeForSignal(const siginfo_t *siginfo, const native_context_t *context) { // IMPORTANT NOTE: This function must not call any signal unsafe functions // since it is called from signal handlers. // That includes ASSERT and TRACE macros. int trap; if (siginfo->si_signo == SIGFPE) { // Floating point exceptions are mapped by their si_code. switch (siginfo->si_code) { case FPE_INTDIV : return EXCEPTION_INT_DIVIDE_BY_ZERO; case FPE_INTOVF : return EXCEPTION_INT_OVERFLOW; case FPE_FLTDIV : return EXCEPTION_FLT_DIVIDE_BY_ZERO; case FPE_FLTOVF : return EXCEPTION_FLT_OVERFLOW; case FPE_FLTUND : return EXCEPTION_FLT_UNDERFLOW; case FPE_FLTRES : return EXCEPTION_FLT_INEXACT_RESULT; case FPE_FLTINV : return EXCEPTION_FLT_INVALID_OPERATION; case FPE_FLTSUB :/* subscript out of range */ return EXCEPTION_FLT_INVALID_OPERATION; default: // Got unknown signal code siginfo->si_code; return 0; } } trap = context->uc_mcontext.mc_trapno; switch (trap) { case T_PRIVINFLT : /* privileged instruction */ return EXCEPTION_PRIV_INSTRUCTION; case T_BPTFLT : /* breakpoint instruction */ return EXCEPTION_BREAKPOINT; case T_ARITHTRAP : /* arithmetic trap */ return 0; /* let the caller pick an exception code */ #ifdef T_ASTFLT case T_ASTFLT : /* system forced exception : ^C, ^\. SIGINT signal handler shouldn't be calling this function, since it doesn't need an exception code */ // Trap code T_ASTFLT received, shouldn't get here; return 0; #endif // T_ASTFLT case T_PROTFLT : /* protection fault */ return EXCEPTION_ACCESS_VIOLATION; case T_TRCTRAP : /* debug exception (sic) */ return EXCEPTION_SINGLE_STEP; case T_PAGEFLT : /* page fault */ return EXCEPTION_ACCESS_VIOLATION; case T_ALIGNFLT : /* alignment fault */ return EXCEPTION_DATATYPE_MISALIGNMENT; case T_DIVIDE : return EXCEPTION_INT_DIVIDE_BY_ZERO; case T_NMI : /* non-maskable trap */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_OFLOW : return EXCEPTION_INT_OVERFLOW; case T_BOUND : /* bound instruction fault */ return EXCEPTION_ARRAY_BOUNDS_EXCEEDED; case T_DNA : /* device not available fault */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_DOUBLEFLT : /* double fault */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_FPOPFLT : /* fp coprocessor operand fetch fault */ return EXCEPTION_FLT_INVALID_OPERATION; case T_TSSFLT : /* invalid tss fault */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_SEGNPFLT : /* segment not present fault */ return EXCEPTION_ACCESS_VIOLATION; case T_STKFLT : /* stack fault */ return EXCEPTION_STACK_OVERFLOW; case T_MCHK : /* machine check trap */ return EXCEPTION_ILLEGAL_INSTRUCTION; case T_RESERVED : /* reserved (unknown) */ return EXCEPTION_ILLEGAL_INSTRUCTION; default: // Got unknown trap code trap; break; } return EXCEPTION_ILLEGAL_INSTRUCTION; } #endif // ILL_ILLOPC #else // !HAVE_MACH_EXCEPTIONS #include <mach/message.h> #include <mach/thread_act.h> #include "../exception/machexception.h" /*++ Function: CONTEXT_GetThreadContextFromPort Helper for GetThreadContext that uses a mach_port --*/ kern_return_t CONTEXT_GetThreadContextFromPort( mach_port_t Port, LPCONTEXT lpContext) { // Extract the CONTEXT from the Mach thread. kern_return_t MachRet = KERN_SUCCESS; mach_msg_type_number_t StateCount; thread_state_flavor_t StateFlavor; #if defined(HOST_AMD64) if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS) & CONTEXT_AREA_MASK) { x86_thread_state64_t State; StateFlavor = x86_THREAD_STATE64; #elif defined(HOST_ARM64) if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { arm_thread_state64_t State; StateFlavor = ARM_THREAD_STATE64; #else #error Unexpected architecture. #endif StateCount = sizeof(State) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { ASSERT("thread_get_state(THREAD_STATE) failed: %d\n", MachRet); goto exit; } CONTEXT_GetThreadContextFromThreadState(StateFlavor, (thread_state_t)&State, lpContext); } if (lpContext->ContextFlags & CONTEXT_ALL_FLOATING & CONTEXT_AREA_MASK) { #if defined(HOST_AMD64) // The thread_get_state for floating point state can fail for some flavors when the processor is not // in the right mode at the time we are taking the state. So we will try to get the AVX state first and // if it fails, get the FLOAT state and if that fails, take AVX512 state. Both AVX and AVX512 states // are supersets of the FLOAT state. // Check a few fields to make sure the assumption is correct. static_assert_no_msg(sizeof(x86_avx_state64_t) > sizeof(x86_float_state64_t)); static_assert_no_msg(sizeof(x86_avx512_state64_t) > sizeof(x86_avx_state64_t)); static_assert_no_msg(offsetof(x86_avx_state64_t, __fpu_fcw) == offsetof(x86_float_state64_t, __fpu_fcw)); static_assert_no_msg(offsetof(x86_avx_state64_t, __fpu_xmm0) == offsetof(x86_float_state64_t, __fpu_xmm0)); static_assert_no_msg(offsetof(x86_avx512_state64_t, __fpu_fcw) == offsetof(x86_float_state64_t, __fpu_fcw)); static_assert_no_msg(offsetof(x86_avx512_state64_t, __fpu_xmm0) == offsetof(x86_float_state64_t, __fpu_xmm0)); x86_avx512_state64_t State; StateFlavor = x86_AVX_STATE64; StateCount = sizeof(x86_avx_state64_t) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { // The AVX state is not available, try to get the AVX512 state. StateFlavor = x86_AVX512_STATE64; StateCount = sizeof(x86_avx512_state64_t) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { // Neither the AVX nor the AVX512 state is not available, try to get at least the FLOAT state. lpContext->ContextFlags &= ~(CONTEXT_XSTATE & CONTEXT_AREA_MASK); StateFlavor = x86_FLOAT_STATE64; StateCount = sizeof(x86_float_state64_t) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { // We were unable to get any floating point state. This case was observed on OSX with AVX512 capable processors. lpContext->ContextFlags &= ~((CONTEXT_XSTATE | CONTEXT_ALL_FLOATING) & CONTEXT_AREA_MASK); } } } #elif defined(HOST_ARM64) arm_neon_state64_t State; StateFlavor = ARM_NEON_STATE64; StateCount = sizeof(arm_neon_state64_t) / sizeof(natural_t); MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCount); if (MachRet != KERN_SUCCESS) { // We were unable to get any floating point state. lpContext->ContextFlags &= ~((CONTEXT_ALL_FLOATING) & CONTEXT_AREA_MASK); } #else #error Unexpected architecture. #endif CONTEXT_GetThreadContextFromThreadState(StateFlavor, (thread_state_t)&State, lpContext); } exit: return MachRet; } /*++ Function: CONTEXT_GetThreadContextFromThreadState --*/ void CONTEXT_GetThreadContextFromThreadState( thread_state_flavor_t threadStateFlavor, thread_state_t threadState, LPCONTEXT lpContext) { switch (threadStateFlavor) { #if defined (HOST_AMD64) case x86_THREAD_STATE64: if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS) & CONTEXT_AREA_MASK) { x86_thread_state64_t *pState = (x86_thread_state64_t *)threadState; lpContext->Rax = pState->__rax; lpContext->Rbx = pState->__rbx; lpContext->Rcx = pState->__rcx; lpContext->Rdx = pState->__rdx; lpContext->Rdi = pState->__rdi; lpContext->Rsi = pState->__rsi; lpContext->Rbp = pState->__rbp; lpContext->Rsp = pState->__rsp; lpContext->R8 = pState->__r8; lpContext->R9 = pState->__r9; lpContext->R10 = pState->__r10; lpContext->R11 = pState->__r11; lpContext->R12 = pState->__r12; lpContext->R13 = pState->__r13; lpContext->R14 = pState->__r14; lpContext->R15 = pState->__r15; lpContext->EFlags = pState->__rflags; lpContext->Rip = pState->__rip; lpContext->SegCs = pState->__cs; // RtlRestoreContext uses the actual ss instead of this one // to build the iret frame so just set it zero. lpContext->SegSs = 0; lpContext->SegDs = 0; lpContext->SegEs = 0; lpContext->SegFs = pState->__fs; lpContext->SegGs = pState->__gs; } break; case x86_AVX_STATE64: case x86_AVX512_STATE64: if (lpContext->ContextFlags & CONTEXT_XSTATE & CONTEXT_AREA_MASK) { x86_avx_state64_t *pState = (x86_avx_state64_t *)threadState; memcpy(&lpContext->VectorRegister, &pState->__fpu_ymmh0, 16 * 16); } // Intentional fall-through, the AVX states are supersets of the FLOAT state FALLTHROUGH; case x86_FLOAT_STATE64: if (lpContext->ContextFlags & CONTEXT_FLOATING_POINT & CONTEXT_AREA_MASK) { x86_float_state64_t *pState = (x86_float_state64_t *)threadState; lpContext->FltSave.ControlWord = *(DWORD*)&pState->__fpu_fcw; lpContext->FltSave.StatusWord = *(DWORD*)&pState->__fpu_fsw; lpContext->FltSave.TagWord = pState->__fpu_ftw; lpContext->FltSave.ErrorOffset = pState->__fpu_ip; lpContext->FltSave.ErrorSelector = pState->__fpu_cs; lpContext->FltSave.DataOffset = pState->__fpu_dp; lpContext->FltSave.DataSelector = pState->__fpu_ds; lpContext->FltSave.MxCsr = pState->__fpu_mxcsr; lpContext->FltSave.MxCsr_Mask = pState->__fpu_mxcsrmask; // note: we don't save the mask for x86 // Windows stores the floating point registers in a packed layout (each 10-byte register end to end // for a total of 80 bytes). But Mach returns each register in an 16-bit structure (presumably for // alignment purposes). So we can't just memcpy the registers over in a single block, we need to copy // them individually. for (int i = 0; i < 8; i++) memcpy(&lpContext->FltSave.FloatRegisters[i], (&pState->__fpu_stmm0)[i].__mmst_reg, 10); // AMD64's FLOATING_POINT includes the xmm registers. memcpy(&lpContext->Xmm0, &pState->__fpu_xmm0, 16 * 16); } break; case x86_THREAD_STATE: { x86_thread_state_t *pState = (x86_thread_state_t *)threadState; CONTEXT_GetThreadContextFromThreadState((thread_state_flavor_t)pState->tsh.flavor, (thread_state_t)&pState->uts, lpContext); } break; case x86_FLOAT_STATE: { x86_float_state_t *pState = (x86_float_state_t *)threadState; CONTEXT_GetThreadContextFromThreadState((thread_state_flavor_t)pState->fsh.flavor, (thread_state_t)&pState->ufs, lpContext); } break; #elif defined(HOST_ARM64) case ARM_THREAD_STATE64: if (lpContext->ContextFlags & (CONTEXT_CONTROL | CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { arm_thread_state64_t *pState = (arm_thread_state64_t*)threadState; memcpy(&lpContext->X0, &pState->__x[0], 29 * 8); lpContext->Cpsr = pState->__cpsr; lpContext->Fp = arm_thread_state64_get_fp(*pState); lpContext->Sp = arm_thread_state64_get_sp(*pState); lpContext->Lr = (uint64_t)arm_thread_state64_get_lr_fptr(*pState); lpContext->Pc = (uint64_t)arm_thread_state64_get_pc_fptr(*pState); } break; case ARM_NEON_STATE64: if (lpContext->ContextFlags & CONTEXT_FLOATING_POINT & CONTEXT_AREA_MASK) { arm_neon_state64_t *pState = (arm_neon_state64_t*)threadState; memcpy(&lpContext->V[0], &pState->__v, 32 * 16); lpContext->Fpsr = pState->__fpsr; lpContext->Fpcr = pState->__fpcr; } break; #else #error Unexpected architecture. #endif default: ASSERT("Invalid thread state flavor %d\n", threadStateFlavor); break; } } /*++ Function: GetThreadContext See MSDN doc. --*/ BOOL CONTEXT_GetThreadContext( DWORD dwProcessId, pthread_t self, LPCONTEXT lpContext) { BOOL ret = FALSE; if (lpContext == NULL) { ERROR("Invalid lpContext parameter value\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } if (GetCurrentProcessId() == dwProcessId) { if (self != pthread_self()) { // the target thread is in the current process, but isn't // the current one: extract the CONTEXT from the Mach thread. mach_port_t mptPort; mptPort = pthread_mach_thread_np(self); ret = (CONTEXT_GetThreadContextFromPort(mptPort, lpContext) == KERN_SUCCESS); } else { CONTEXT_CaptureContext(lpContext); ret = TRUE; } } else { ASSERT("Cross-process GetThreadContext() is not supported on this platform\n"); SetLastError(ERROR_NOACCESS); } EXIT: return ret; } /*++ Function: SetThreadContextOnPort Helper for CONTEXT_SetThreadContext --*/ kern_return_t CONTEXT_SetThreadContextOnPort( mach_port_t Port, IN CONST CONTEXT *lpContext) { kern_return_t MachRet = KERN_SUCCESS; mach_msg_type_number_t StateCount; thread_state_flavor_t StateFlavor; if (lpContext->ContextFlags & (CONTEXT_CONTROL|CONTEXT_INTEGER) & CONTEXT_AREA_MASK) { #ifdef HOST_AMD64 x86_thread_state64_t State; StateFlavor = x86_THREAD_STATE64; State.__rax = lpContext->Rax; State.__rbx = lpContext->Rbx; State.__rcx = lpContext->Rcx; State.__rdx = lpContext->Rdx; State.__rdi = lpContext->Rdi; State.__rsi = lpContext->Rsi; State.__rbp = lpContext->Rbp; State.__rsp = lpContext->Rsp; State.__r8 = lpContext->R8; State.__r9 = lpContext->R9; State.__r10 = lpContext->R10; State.__r11 = lpContext->R11; State.__r12 = lpContext->R12; State.__r13 = lpContext->R13; State.__r14 = lpContext->R14; State.__r15 = lpContext->R15; // State.ss = lpContext->SegSs; State.__rflags = lpContext->EFlags; State.__rip = lpContext->Rip; State.__cs = lpContext->SegCs; // State.ds = lpContext->SegDs_PAL_Undefined; // State.es = lpContext->SegEs_PAL_Undefined; State.__fs = lpContext->SegFs; State.__gs = lpContext->SegGs; #elif defined(HOST_ARM64) arm_thread_state64_t State; StateFlavor = ARM_THREAD_STATE64; memcpy(&State.__x[0], &lpContext->X0, 29 * 8); State.__cpsr = lpContext->Cpsr; arm_thread_state64_set_fp(State, lpContext->Fp); arm_thread_state64_set_sp(State, lpContext->Sp); arm_thread_state64_set_lr_fptr(State, lpContext->Lr); arm_thread_state64_set_pc_fptr(State, lpContext->Pc); #else #error Unexpected architecture. #endif StateCount = sizeof(State) / sizeof(natural_t); MachRet = thread_set_state(Port, StateFlavor, (thread_state_t)&State, StateCount); if (MachRet != KERN_SUCCESS) { ASSERT("thread_set_state(THREAD_STATE) failed: %d\n", MachRet); goto EXIT; } } if (lpContext->ContextFlags & CONTEXT_ALL_FLOATING & CONTEXT_AREA_MASK) { #ifdef HOST_AMD64 #ifdef XSTATE_SUPPORTED // We're relying on the fact that the initial portion of // x86_avx_state64_t is identical to x86_float_state64_t. // Check a few fields to make sure the assumption is correct. static_assert_no_msg(sizeof(x86_avx_state64_t) > sizeof(x86_float_state64_t)); static_assert_no_msg(offsetof(x86_avx_state64_t, __fpu_fcw) == offsetof(x86_float_state64_t, __fpu_fcw)); static_assert_no_msg(offsetof(x86_avx_state64_t, __fpu_xmm0) == offsetof(x86_float_state64_t, __fpu_xmm0)); x86_avx_state64_t State; if (lpContext->ContextFlags & CONTEXT_XSTATE & CONTEXT_AREA_MASK) { StateFlavor = x86_AVX_STATE64; StateCount = sizeof(State) / sizeof(natural_t); } else { StateFlavor = x86_FLOAT_STATE64; StateCount = sizeof(x86_float_state64_t) / sizeof(natural_t); } #else x86_float_state64_t State; StateFlavor = x86_FLOAT_STATE64; StateCount = sizeof(State) / sizeof(natural_t); #endif #elif defined(HOST_ARM64) arm_neon_state64_t State; StateFlavor = ARM_NEON_STATE64; StateCount = sizeof(State) / sizeof(natural_t); #else #error Unexpected architecture. #endif // If we're setting only one of the floating point or extended registers (of which Mach supports only // the xmm values) then we don't have values for the other set. This is a problem since Mach only // supports setting both groups as a single unit. So in this case we'll need to fetch the current // values first. if ((lpContext->ContextFlags & CONTEXT_ALL_FLOATING) != CONTEXT_ALL_FLOATING) { mach_msg_type_number_t StateCountGet = StateCount; MachRet = thread_get_state(Port, StateFlavor, (thread_state_t)&State, &StateCountGet); if (MachRet != KERN_SUCCESS) { ASSERT("thread_get_state(FLOAT_STATE) failed: %d\n", MachRet); goto EXIT; } _ASSERTE(StateCountGet == StateCount); } if (lpContext->ContextFlags & CONTEXT_FLOATING_POINT & CONTEXT_AREA_MASK) { #ifdef HOST_AMD64 *(DWORD*)&State.__fpu_fcw = lpContext->FltSave.ControlWord; *(DWORD*)&State.__fpu_fsw = lpContext->FltSave.StatusWord; State.__fpu_ftw = lpContext->FltSave.TagWord; State.__fpu_ip = lpContext->FltSave.ErrorOffset; State.__fpu_cs = lpContext->FltSave.ErrorSelector; State.__fpu_dp = lpContext->FltSave.DataOffset; State.__fpu_ds = lpContext->FltSave.DataSelector; State.__fpu_mxcsr = lpContext->FltSave.MxCsr; State.__fpu_mxcsrmask = lpContext->FltSave.MxCsr_Mask; // note: we don't save the mask for x86 // Windows stores the floating point registers in a packed layout (each 10-byte register end to // end for a total of 80 bytes). But Mach returns each register in an 16-bit structure (presumably // for alignment purposes). So we can't just memcpy the registers over in a single block, we need // to copy them individually. for (int i = 0; i < 8; i++) memcpy((&State.__fpu_stmm0)[i].__mmst_reg, &lpContext->FltSave.FloatRegisters[i], 10); memcpy(&State.__fpu_xmm0, &lpContext->Xmm0, 16 * 16); #elif defined(HOST_ARM64) memcpy(&State.__v, &lpContext->V[0], 32 * 16); State.__fpsr = lpContext->Fpsr; State.__fpcr = lpContext->Fpcr; #else #error Unexpected architecture. #endif } #if defined(HOST_AMD64) && defined(XSTATE_SUPPORTED) if (lpContext->ContextFlags & CONTEXT_XSTATE & CONTEXT_AREA_MASK) { memcpy(&State.__fpu_ymmh0, lpContext->VectorRegister, 16 * 16); } #endif MachRet = thread_set_state(Port, StateFlavor, (thread_state_t)&State, StateCount); if (MachRet != KERN_SUCCESS) { ASSERT("thread_set_state(FLOAT_STATE) failed: %d\n", MachRet); goto EXIT; } } EXIT: return MachRet; } /*++ Function: SetThreadContext See MSDN doc. --*/ BOOL CONTEXT_SetThreadContext( DWORD dwProcessId, pthread_t self, CONST CONTEXT *lpContext) { BOOL ret = FALSE; if (lpContext == NULL) { ERROR("Invalid lpContext parameter value\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } if (dwProcessId != GetCurrentProcessId()) { // GetThreadContext() of a thread in another process ASSERT("Cross-process GetThreadContext() is not supported\n"); SetLastError(ERROR_NOACCESS); goto EXIT; } if (self != pthread_self()) { // hThread is in the current process, but isn't the current // thread. Extract the CONTEXT from the Mach thread. mach_port_t mptPort; mptPort = pthread_mach_thread_np(self); ret = (CONTEXT_SetThreadContextOnPort(mptPort, lpContext) == KERN_SUCCESS); } else { MachSetThreadContext(const_cast<CONTEXT *>(lpContext)); ASSERT("MachSetThreadContext should never return\n"); } EXIT: return ret; } #endif // !HAVE_MACH_EXCEPTIONS /*++ Function: DBG_FlushInstructionCache: processor-specific portion of FlushInstructionCache See MSDN doc. --*/ BOOL DBG_FlushInstructionCache( IN LPCVOID lpBaseAddress, IN SIZE_T dwSize) { #ifndef HOST_ARM // Intrinsic should do the right thing across all platforms (except Linux arm) __builtin___clear_cache((char *)lpBaseAddress, (char *)((INT_PTR)lpBaseAddress + dwSize)); #else // HOST_ARM // On Linux/arm (at least on 3.10) we found that there is a problem with __do_cache_op (arch/arm/kernel/traps.c) // implementing cacheflush syscall. cacheflush flushes only the first page in range [lpBaseAddress, lpBaseAddress + dwSize) // and leaves other pages in undefined state which causes random tests failures (often due to SIGSEGV) with no particular pattern. // // As a workaround, we call __builtin___clear_cache on each page separately. const SIZE_T pageSize = GetVirtualPageSize(); INT_PTR begin = (INT_PTR)lpBaseAddress; const INT_PTR end = begin + dwSize; while (begin < end) { INT_PTR endOrNextPageBegin = ALIGN_UP(begin + 1, pageSize); if (endOrNextPageBegin > end) endOrNextPageBegin = end; __builtin___clear_cache((char *)begin, (char *)endOrNextPageBegin); begin = endOrNextPageBegin; } #endif // HOST_ARM return TRUE; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/c_runtime/fprintf/test16/test16.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test16.c (fprintf) ** ** Purpose: Tests the decimal notation double specifier (%f). ** This test is modeled after the fprintf series. ** ** **==========================================================================*/ #include <palsuite.h> #include "../fprintf.h" /* * Depends on memcmp, strlen, fopen, fseek and fgets. */ PALTEST(c_runtime_fprintf_test16_paltest_fprintf_test16, "c_runtime/fprintf/test16/paltest_fprintf_test16") { double val = 2560.001; double neg = -2560.001; if (PAL_Initialize(argc, argv) != 0) return(FAIL); DoDoubleTest("foo %f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %lf", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %hf", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %Lf", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %I64f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %12f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %-12f", val, "foo 2560.001000 ", "foo 2560.001000 "); DoDoubleTest("foo %.1f", val, "foo 2560.0", "foo 2560.0"); DoDoubleTest("foo %.8f", val, "foo 2560.00100000", "foo 2560.00100000"); DoDoubleTest("foo %012f", val, "foo 02560.001000", "foo 02560.001000"); DoDoubleTest("foo %#f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %+f", val, "foo +2560.001000", "foo +2560.001000"); DoDoubleTest("foo % f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %+f", neg, "foo -2560.001000", "foo -2560.001000"); DoDoubleTest("foo % f", neg, "foo -2560.001000", "foo -2560.001000"); 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: test16.c (fprintf) ** ** Purpose: Tests the decimal notation double specifier (%f). ** This test is modeled after the fprintf series. ** ** **==========================================================================*/ #include <palsuite.h> #include "../fprintf.h" /* * Depends on memcmp, strlen, fopen, fseek and fgets. */ PALTEST(c_runtime_fprintf_test16_paltest_fprintf_test16, "c_runtime/fprintf/test16/paltest_fprintf_test16") { double val = 2560.001; double neg = -2560.001; if (PAL_Initialize(argc, argv) != 0) return(FAIL); DoDoubleTest("foo %f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %lf", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %hf", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %Lf", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %I64f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %12f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %-12f", val, "foo 2560.001000 ", "foo 2560.001000 "); DoDoubleTest("foo %.1f", val, "foo 2560.0", "foo 2560.0"); DoDoubleTest("foo %.8f", val, "foo 2560.00100000", "foo 2560.00100000"); DoDoubleTest("foo %012f", val, "foo 02560.001000", "foo 02560.001000"); DoDoubleTest("foo %#f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %+f", val, "foo +2560.001000", "foo +2560.001000"); DoDoubleTest("foo % f", val, "foo 2560.001000", "foo 2560.001000"); DoDoubleTest("foo %+f", neg, "foo -2560.001000", "foo -2560.001000"); DoDoubleTest("foo % f", neg, "foo -2560.001000", "foo -2560.001000"); PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/mono/mono/metadata/runtime.h
/** * \file * Runtime functions * * Author: * Jonathan Pryor * * (C) 2010 Novell, Inc. */ #ifndef _MONO_METADATA_RUNTIME_H_ #define _MONO_METADATA_RUNTIME_H_ #include <glib.h> #include <mono/metadata/metadata.h> #include <mono/utils/mono-publib.h> #include <mono/utils/mono-compiler.h> MONO_COMPONENT_API gboolean mono_runtime_try_shutdown (void); void mono_runtime_init_tls (void); MONO_PROFILER_API char* mono_runtime_get_aotid (void); MONO_COMPONENT_API MonoAssembly* mono_runtime_get_entry_assembly (void); void mono_runtime_ensure_entry_assembly (MonoAssembly *assembly); #endif /* _MONO_METADATA_RUNTIME_H_ */
/** * \file * Runtime functions * * Author: * Jonathan Pryor * * (C) 2010 Novell, Inc. */ #ifndef _MONO_METADATA_RUNTIME_H_ #define _MONO_METADATA_RUNTIME_H_ #include <glib.h> #include <mono/metadata/metadata.h> #include <mono/utils/mono-publib.h> #include <mono/utils/mono-compiler.h> MONO_COMPONENT_API gboolean mono_runtime_try_shutdown (void); void mono_runtime_init_tls (void); MONO_PROFILER_API char* mono_runtime_get_aotid (void); MONO_COMPONENT_API MonoAssembly* mono_runtime_get_entry_assembly (void); void mono_runtime_ensure_entry_assembly (MonoAssembly *assembly); #endif /* _MONO_METADATA_RUNTIME_H_ */
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/pal/tests/palsuite/filemapping_memmgt/VirtualAlloc/test5/VirtualAlloc.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================= ** ** Source: virtualalloc.c ** ** Purpose: Positive test the VirtualAlloc API. ** Call VirtualAlloc with MEM_COMMIT allocation type ** and PAGE_READONLY access protection ** ** **============================================================*/ #include <palsuite.h> PALTEST(filemapping_memmgt_VirtualAlloc_test5_paltest_virtualalloc_test5, "filemapping_memmgt/VirtualAlloc/test5/paltest_virtualalloc_test5") { int err; LPVOID lpVirtualAddress; //Initialize the PAL environment err = PAL_Initialize(argc, argv); if(0 != err) { ExitProcess(FAIL); } //Allocate the physical storage in memory or in the paging file on disk lpVirtualAddress = VirtualAlloc(NULL,//system determine where to allocate the region 1024, //specify the size MEM_COMMIT, //allocation type PAGE_EXECUTE_READWRITE); //access protection if(NULL == lpVirtualAddress) { Fail("\nFailed to call VirtualAlloc API!\n"); } //decommit the specified region err = VirtualFree(lpVirtualAddress,1024,MEM_DECOMMIT); if(0 == err) { Fail("\nFailed to call VirtualFree API!\n"); } 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: virtualalloc.c ** ** Purpose: Positive test the VirtualAlloc API. ** Call VirtualAlloc with MEM_COMMIT allocation type ** and PAGE_READONLY access protection ** ** **============================================================*/ #include <palsuite.h> PALTEST(filemapping_memmgt_VirtualAlloc_test5_paltest_virtualalloc_test5, "filemapping_memmgt/VirtualAlloc/test5/paltest_virtualalloc_test5") { int err; LPVOID lpVirtualAddress; //Initialize the PAL environment err = PAL_Initialize(argc, argv); if(0 != err) { ExitProcess(FAIL); } //Allocate the physical storage in memory or in the paging file on disk lpVirtualAddress = VirtualAlloc(NULL,//system determine where to allocate the region 1024, //specify the size MEM_COMMIT, //allocation type PAGE_EXECUTE_READWRITE); //access protection if(NULL == lpVirtualAddress) { Fail("\nFailed to call VirtualAlloc API!\n"); } //decommit the specified region err = VirtualFree(lpVirtualAddress,1024,MEM_DECOMMIT); if(0 == err) { Fail("\nFailed to call VirtualFree API!\n"); } PAL_Terminate(); return PASS; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/vm/rejit.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // ReJit.cpp // // // This module implements the tracking and execution of rejit requests. In order to avoid // any overhead on the non-profiled case we don't intrude on any 'normal' data structures // except one member on the AppDomain to hold our main hashtable and crst (the // ReJitManager). See comments in rejit.h to understand relationships between ReJitInfo, // SharedReJitInfo, and ReJitManager, particularly SharedReJitInfo::InternalFlags which // capture the state of a rejit request, and ReJitInfo::InternalFlags which captures the // state of a particular MethodDesc from a rejit request. // // A ReJIT request (tracked via SharedReJitInfo) is made at the level of a (Module *, // methodDef) pair, and thus affects all instantiations of a generic. Each MethodDesc // affected by a ReJIT request has its state tracked via a ReJitInfo instance. A // ReJitInfo can represent a rejit request against an already-jitted MethodDesc, or a // rejit request against a not-yet-jitted MethodDesc (called a "pre-rejit" request). A // Pre-ReJIT request happens when a profiler specifies a (Module *, methodDef) pair that // has not yet been JITted, or that represents a generic function which always has the // potential to JIT new instantiations in the future. // // Top-level functions in this file of most interest are: // // * (static) code:ReJitManager::RequestReJIT: // Profiling API just delegates all rejit requests directly to this function. It is // responsible for recording the request into the appropriate ReJITManagers and for // jump-stamping any already-JITted functions affected by the request (so that future // calls hit the prestub) // // * code:ReJitManager::DoReJitIfNecessary: // MethodDesc::DoPrestub calls this to determine whether it's been invoked to do a rejit. // If so, ReJitManager::DoReJitIfNecessary is responsible for (indirectly) gathering the // appropriate IL and codegen flags, calling UnsafeJitFunction(), and redirecting the // jump-stamp from the prestub to the newly-rejitted code. // // * code:ReJitManager::GetCurrentReJitFlags: // CEEInfo::canInline() calls this as part of its calculation of whether it may inline a // given method. (Profilers may specify on a per-rejit-request basis whether the rejit of // a method may inline callees.) // // // #Invariants: // // For a given Module/MethodDef there is at most 1 SharedReJitInfo that is not Reverted, // though there may be many that are in the Reverted state. If a method is rejitted // multiple times, with multiple versions actively in use on the stacks, then all but the // most recent are put into the Reverted state even though they may not yet be physically // reverted and pitched yet. // // For a given MethodDesc there is at most 1 ReJitInfo in the kJumpToPrestub or kJumpToRejittedCode // state. // // The ReJitManager::m_crstTable lock is held whenever reading or writing to that // ReJitManager instance's table (including state transitions applied to the ReJitInfo & // SharedReJitInfo instances stored in that table). // // The ReJitManager::m_crstTable lock is never held during callbacks to the profiler // such as GetReJITParameters, ReJITStarted, JITComplete, ReportReJITError // // Any thread holding the ReJitManager::m_crstTable lock can't block during runtime suspension // therefore it can't call any GC_TRIGGERS functions // // Transitions between SharedRejitInfo states happen only in the following cicumstances: // 1) New SharedRejitInfo added to table (Requested State) // Inside RequestRejit // Global Crst held, table Crst held // // 2) Requested -> GettingReJITParameters // Inside DoRejitIfNecessary // Global Crst NOT held, table Crst held // // 3) GettingReJITParameters -> Active // Inside DoRejitIfNecessary // Global Crst NOT held, table Crst held // // 4) * -> Reverted // Inside RequestRejit or RequestRevert // Global Crst held, table Crst held // // // Transitions between RejitInfo states happen only in the following circumstances: // 1) New RejitInfo added to table (kJumpNone state) // Inside RequestRejit // Global Crst MAY/MAY NOT be held, table Crst held // Allowed SharedReJit states: Requested, GettingReJITParameters, Active // // 2) kJumpNone -> kJumpToPrestub // Inside RequestRejit // Global Crst MAY/MAY NOT be held, table Crst held // Allowed SharedReJit states: Requested, GettingReJITParameters, Active // // 3) kJumpToPreStub -> kJumpToRejittedCode // Inside DoReJitIfNecessary // Global Crst NOT held, table Crst held // Allowed SharedReJit states: Active // // 4) * -> kJumpNone // Inside RequestRevert, RequestRejit // Global Crst held, table crst held // Allowed SharedReJit states: Reverted // // // #Beware Invariant misconceptions - don't make bad assumptions! // Even if a SharedReJitInfo is in the Reverted state: // a) RejitInfos may still be in the kJumpToPreStub or kJumpToRejittedCode state // Reverted really just means the runtime has started reverting, but it may not // be complete yet on the thread executing Revert or RequestRejit. // b) The code for this version of the method may be executing on any number of // threads. Even after transitioning all rejit infos to kJumpNone state we // have no power to abort or hijack threads already running the rejitted code. // // Even if a SharedReJitInfo is in the Active state: // a) The corresponding ReJitInfos may not be jump-stamped yet. // Some thread is still in the progress of getting this thread jump-stamped // OR it is a place-holder ReJitInfo. // b) An older ReJitInfo linked to a reverted SharedReJitInfo could still be // in kJumpToPreStub or kJumpToReJittedCode state. RequestRejit is still in // progress on some thread. // // // #Known issues with REJIT at this time: // NGEN inlined methods will not be properly rejitted // Exception callstacks through rejitted code do not produce correct StackTraces // Live debugging is not supported when rejit is enabled // Rejit leaks rejitted methods, RejitInfos, and SharedRejitInfos until AppDomain unload // Dump debugging doesn't correctly locate RejitInfos that are keyed by MethodDesc // Metadata update creates large memory increase switching to RW (not specifically a rejit issue) // // ====================================================================================== #include "common.h" #include "rejit.h" #include "method.hpp" #include "eeconfig.h" #include "methoditer.h" #include "dbginterface.h" #include "threadsuspend.h" #ifdef FEATURE_REJIT #ifdef FEATURE_CODE_VERSIONING #include "../debug/ee/debugger.h" #include "../debug/ee/walker.h" #include "../debug/ee/controller.h" #include "codeversion.h" // This is just used as a unique id. Overflow is OK. If we happen to have more than 4+Billion rejits // and somehow manage to not run out of memory, we'll just have to redefine ReJITID as size_t. /* static */ static ReJITID s_GlobalReJitId = 1; /* static */ CrstStatic ReJitManager::s_csGlobalRequest; //--------------------------------------------------------------------------------------- // Helpers //static CORJIT_FLAGS ReJitManager::JitFlagsFromProfCodegenFlags(DWORD dwCodegenFlags) { LIMITED_METHOD_DAC_CONTRACT; CORJIT_FLAGS jitFlags; if ((dwCodegenFlags & COR_PRF_CODEGEN_DISABLE_ALL_OPTIMIZATIONS) != 0) { jitFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_DEBUG_CODE); } if ((dwCodegenFlags & COR_PRF_CODEGEN_DISABLE_INLINING) != 0) { jitFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_NO_INLINING); } // In the future more flags may be added that need to be converted here (e.g., // COR_PRF_CODEGEN_ENTERLEAVE / CORJIT_FLAG_PROF_ENTERLEAVE) return jitFlags; } //--------------------------------------------------------------------------------------- // ProfilerFunctionControl implementation ProfilerFunctionControl::ProfilerFunctionControl(LoaderHeap * pHeap) : m_refCount(1), m_pHeap(pHeap), m_dwCodegenFlags(0), m_cbIL(0), m_pbIL(NULL), m_cInstrumentedMapEntries(0), m_rgInstrumentedMapEntries(NULL) { LIMITED_METHOD_CONTRACT; } ProfilerFunctionControl::~ProfilerFunctionControl() { LIMITED_METHOD_CONTRACT; // Intentionally not deleting m_pbIL or m_rgInstrumentedMapEntries, as its ownership gets transferred to the // SharedReJitInfo that manages that rejit request. } HRESULT ProfilerFunctionControl::QueryInterface(REFIID id, void** pInterface) { LIMITED_METHOD_CONTRACT; if ((id != IID_IUnknown) && (id != IID_ICorProfilerFunctionControl)) { *pInterface = NULL; return E_NOINTERFACE; } *pInterface = this; this->AddRef(); return S_OK; } ULONG ProfilerFunctionControl::AddRef() { LIMITED_METHOD_CONTRACT; return InterlockedIncrement(&m_refCount); } ULONG ProfilerFunctionControl::Release() { LIMITED_METHOD_CONTRACT; ULONG refCount = InterlockedDecrement(&m_refCount); if (0 == refCount) { delete this; } return refCount; } //--------------------------------------------------------------------------------------- // // Profiler calls this to specify a set of flags from COR_PRF_CODEGEN_FLAGS // to control rejitting a particular methodDef. // // Arguments: // * flags - set of flags from COR_PRF_CODEGEN_FLAGS // // Return Value: // Always S_OK; // HRESULT ProfilerFunctionControl::SetCodegenFlags(DWORD flags) { LIMITED_METHOD_CONTRACT; m_dwCodegenFlags = flags; return S_OK; } //--------------------------------------------------------------------------------------- // // Profiler calls this to specify the IL to use when rejitting a particular methodDef. // // Arguments: // * cbNewILMethodHeader - Size in bytes of pbNewILMethodHeader // * pbNewILMethodHeader - Pointer to beginning of IL header + IL bytes. // // Return Value: // HRESULT indicating success or failure. // // Notes: // Caller owns allocating and freeing pbNewILMethodHeader as expected. // SetILFunctionBody copies pbNewILMethodHeader into a separate buffer. // HRESULT ProfilerFunctionControl::SetILFunctionBody(ULONG cbNewILMethodHeader, LPCBYTE pbNewILMethodHeader) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (cbNewILMethodHeader == 0) { return E_INVALIDARG; } if (pbNewILMethodHeader == NULL) { return E_INVALIDARG; } _ASSERTE(m_cbIL == 0); _ASSERTE(m_pbIL == NULL); #ifdef DACCESS_COMPILE m_pbIL = new (nothrow) BYTE[cbNewILMethodHeader]; #else // IL is stored on the appropriate loader heap, and its memory will be owned by the // SharedReJitInfo we copy the pointer to. m_pbIL = (LPBYTE) (void *) m_pHeap->AllocMem_NoThrow(S_SIZE_T(cbNewILMethodHeader)); #endif if (m_pbIL == NULL) { return E_OUTOFMEMORY; } m_cbIL = cbNewILMethodHeader; memcpy(m_pbIL, pbNewILMethodHeader, cbNewILMethodHeader); return S_OK; } HRESULT ProfilerFunctionControl::SetILInstrumentedCodeMap(ULONG cILMapEntries, COR_IL_MAP * rgILMapEntries) { #ifdef DACCESS_COMPILE // I'm not sure why any of these methods would need to be compiled in DAC? Could we remove the // entire class from the DAC'ized code build? _ASSERTE(!"This shouldn't be called in DAC"); return E_NOTIMPL; #else CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (cILMapEntries >= (MAXULONG / sizeof(COR_IL_MAP))) { // Too big! The allocation below would overflow when calculating the size. return E_INVALIDARG; } if (g_pDebugInterface == NULL) { return CORPROF_E_DEBUGGING_DISABLED; } // copy the il map and il map entries into the corresponding fields. m_cInstrumentedMapEntries = cILMapEntries; // IL is stored on the appropriate loader heap, and its memory will be owned by the // SharedReJitInfo we copy the pointer to. m_rgInstrumentedMapEntries = (COR_IL_MAP*) (void *) m_pHeap->AllocMem_NoThrow(S_SIZE_T(cILMapEntries * sizeof(COR_IL_MAP))); if (m_rgInstrumentedMapEntries == NULL) return E_OUTOFMEMORY; memcpy_s(m_rgInstrumentedMapEntries, sizeof(COR_IL_MAP) * cILMapEntries, rgILMapEntries, sizeof(COR_IL_MAP) * cILMapEntries); return S_OK; #endif // DACCESS_COMPILE } //--------------------------------------------------------------------------------------- // // ReJitManager may use this to access the codegen flags the profiler had set on this // ICorProfilerFunctionControl. // // Return Value: // * codegen flags previously set via SetCodegenFlags; 0 if none were set. // DWORD ProfilerFunctionControl::GetCodegenFlags() { return m_dwCodegenFlags; } //--------------------------------------------------------------------------------------- // // ReJitManager may use this to access the IL header + instructions the // profiler had set on this ICorProfilerFunctionControl via SetIL // // Return Value: // * Pointer to ProfilerFunctionControl-allocated buffer containing the // IL header and instructions the profiler had provided. // LPBYTE ProfilerFunctionControl::GetIL() { return m_pbIL; } //--------------------------------------------------------------------------------------- // // ReJitManager may use this to access the count of instrumented map entry flags the // profiler had set on this ICorProfilerFunctionControl. // // Return Value: // * size of the instrumented map entry array // ULONG ProfilerFunctionControl::GetInstrumentedMapEntryCount() { return m_cInstrumentedMapEntries; } //--------------------------------------------------------------------------------------- // // ReJitManager may use this to access the instrumented map entries the // profiler had set on this ICorProfilerFunctionControl. // // Return Value: // * the array of instrumented map entries // COR_IL_MAP* ProfilerFunctionControl::GetInstrumentedMapEntries() { return m_rgInstrumentedMapEntries; } #ifndef DACCESS_COMPILE NativeImageInliningIterator::NativeImageInliningIterator() : m_pModule(NULL), m_pInlinee(NULL), m_dynamicBuffer(NULL), m_dynamicBufferSize(0), m_dynamicAvailable(0), m_currentPos(-1) { } HRESULT NativeImageInliningIterator::Reset(Module *pModule, MethodDesc *pInlinee) { _ASSERTE(pModule != NULL); _ASSERTE(pInlinee != NULL); m_pModule = pModule; m_pInlinee = pInlinee; HRESULT hr = S_OK; EX_TRY { // Trying to use the existing buffer BOOL incompleteData; Module *inlineeModule = m_pInlinee->GetModule(); mdMethodDef mdInlinee = m_pInlinee->GetMemberDef(); COUNT_T methodsAvailable = m_pModule->GetReadyToRunInliners(inlineeModule, mdInlinee, m_dynamicBufferSize, m_dynamicBuffer, &incompleteData); // If the existing buffer is not large enough, reallocate. if (methodsAvailable > m_dynamicBufferSize) { COUNT_T newSize = max(methodsAvailable, s_bufferSize); m_dynamicBuffer = new MethodInModule[newSize]; m_dynamicBufferSize = newSize; methodsAvailable = m_pModule->GetReadyToRunInliners(inlineeModule, mdInlinee, m_dynamicBufferSize, m_dynamicBuffer, &incompleteData); _ASSERTE(methodsAvailable <= m_dynamicBufferSize); } m_dynamicAvailable = methodsAvailable; } EX_CATCH_HRESULT(hr); if (FAILED(hr)) { m_currentPos = s_failurePos; } else { m_currentPos = -1; } return hr; } BOOL NativeImageInliningIterator::Next() { if (m_currentPos == s_failurePos) { return FALSE; } m_currentPos++; return m_currentPos < m_dynamicAvailable; } MethodDesc *NativeImageInliningIterator::GetMethodDesc() { // this evaluates true when m_currentPos == s_failurePos or m_currentPos == (COUNT_T)-1 // m_currentPos is an unsigned type if (m_currentPos >= m_dynamicAvailable) { return NULL; } MethodInModule mm = m_dynamicBuffer[m_currentPos]; Module *pModule = mm.m_module; mdMethodDef mdInliner = mm.m_methodDef; return pModule->LookupMethodDef(mdInliner); } //--------------------------------------------------------------------------------------- // ReJitManager implementation // All the state-changey stuff is kept up here in the !DACCESS_COMPILE block. // The more read-only inspection-y stuff follows the block. //--------------------------------------------------------------------------------------- // // ICorProfilerInfo4::RequestReJIT calls into this method to do most of the // work. Takes care of finding the appropriate ReJitManager instances to // record the rejit requests and perform jmp-stamping. // // Arguments: // * cFunctions - Element count of rgModuleIDs & rgMethodDefs // * rgModuleIDs - Parallel array of ModuleIDs to rejit // * rgMethodDefs - Parallel array of methodDefs to rejit // // Return Value: // HRESULT indicating success or failure of the overall operation. Each // individual methodDef (or MethodDesc associated with the methodDef) // may encounter its own failure, which is reported by the ReJITError() // callback, which is called into the profiler directly. // // static HRESULT ReJitManager::RequestReJIT( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], COR_PRF_REJIT_FLAGS flags) { return ReJitManager::UpdateActiveILVersions(cFunctions, rgModuleIDs, rgMethodDefs, NULL, FALSE, flags); } // static HRESULT ReJitManager::UpdateActiveILVersions( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], HRESULT rgHrStatuses[], BOOL fIsRevert, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; // Serialize all RequestReJIT() and Revert() calls against each other (even across AppDomains) CrstHolder ch(&(s_csGlobalRequest)); HRESULT hr = S_OK; // Request at least 1 method to reJIT! _ASSERTE ((cFunctions != 0) && (rgModuleIDs != NULL) && (rgMethodDefs != NULL)); // Temporary storage to batch up all the ReJitInfos that will get jump stamped // later when the runtime is suspended. // //DESKTOP WARNING: On CoreCLR we are safe but if this code ever gets ported back //there aren't any protections against domain unload. Any of these moduleIDs //code version managers, or code versions would become invalid if the domain which //contains them was unloaded. SHash<CodeActivationBatchTraits> mgrToCodeActivationBatch; CDynArray<CodeVersionManager::CodePublishError> errorRecords; for (ULONG i = 0; i < cFunctions; i++) { Module * pModule = reinterpret_cast< Module * >(rgModuleIDs[i]); if (pModule == NULL || TypeFromToken(rgMethodDefs[i]) != mdtMethodDef) { ReportReJITError(pModule, rgMethodDefs[i], NULL, E_INVALIDARG); continue; } if (pModule->IsBeingUnloaded()) { ReportReJITError(pModule, rgMethodDefs[i], NULL, CORPROF_E_DATAINCOMPLETE); continue; } if (pModule->IsReflection()) { ReportReJITError(pModule, rgMethodDefs[i], NULL, CORPROF_E_MODULE_IS_DYNAMIC); continue; } if (!pModule->GetMDImport()->IsValidToken(rgMethodDefs[i])) { ReportReJITError(pModule, rgMethodDefs[i], NULL, E_INVALIDARG); continue; } MethodDesc * pMD = pModule->LookupMethodDef(rgMethodDefs[i]); if (pMD != NULL) { _ASSERTE(!pMD->IsNoMetadata()); // Weird, non-user functions can't be rejitted if (!pMD->IsIL()) { // Intentionally not reporting an error in this case, to be consistent // with the pre-rejit case, as we have no opportunity to report an error // in a pre-rejit request for a non-IL method, since the rejit manager // never gets a call from the prestub worker for non-IL methods. Thus, // since pre-rejit requests silently ignore rejit requests for non-IL // methods, regular rejit requests will also silently ignore rejit requests for // non-IL methods to be consistent. continue; } } hr = UpdateActiveILVersion(&mgrToCodeActivationBatch, pModule, rgMethodDefs[i], fIsRevert, static_cast<COR_PRF_REJIT_FLAGS>(flags | COR_PRF_REJIT_INLINING_CALLBACKS)); if (FAILED(hr)) { return hr; } if ((flags & COR_PRF_REJIT_BLOCK_INLINING) == COR_PRF_REJIT_BLOCK_INLINING) { hr = UpdateNativeInlinerActiveILVersions(&mgrToCodeActivationBatch, pMD, fIsRevert, flags); if (FAILED(hr)) { return hr; } hr = UpdateJitInlinerActiveILVersions(&mgrToCodeActivationBatch, pMD, fIsRevert, flags); if (FAILED(hr)) { return hr; } } } // for (ULONG i = 0; i < cFunctions; i++) // For each code versioning mgr, if there's work to do, // enter the code versioning mgr's crst, and do the batched work. SHash<CodeActivationBatchTraits>::Iterator beginIter = mgrToCodeActivationBatch.Begin(); SHash<CodeActivationBatchTraits>::Iterator endIter = mgrToCodeActivationBatch.End(); { MethodDescBackpatchInfoTracker::ConditionalLockHolderForGCCoop slotBackpatchLockHolder; for (SHash<CodeActivationBatchTraits>::Iterator iter = beginIter; iter != endIter; iter++) { CodeActivationBatch * pCodeActivationBatch = *iter; CodeVersionManager * pCodeVersionManager = pCodeActivationBatch->m_pCodeVersionManager; int cMethodsToActivate = pCodeActivationBatch->m_methodsToActivate.Count(); if (cMethodsToActivate == 0) { continue; } { // SetActiveILCodeVersions takes the SystemDomain crst, which needs to be acquired before the // ThreadStore crsts SystemDomain::LockHolder lh; hr = pCodeVersionManager->SetActiveILCodeVersions(pCodeActivationBatch->m_methodsToActivate.Ptr(), pCodeActivationBatch->m_methodsToActivate.Count(), &errorRecords); if (FAILED(hr)) break; } } } if (FAILED(hr)) { _ASSERTE(hr == E_OUTOFMEMORY); return hr; } // Report any errors that were batched up for (int i = 0; i < errorRecords.Count(); i++) { if (rgHrStatuses != NULL) { for (DWORD j = 0; j < cFunctions; j++) { if (rgMethodDefs[j] == errorRecords[i].methodDef && reinterpret_cast<Module*>(rgModuleIDs[j]) == errorRecords[i].pModule) { rgHrStatuses[j] = errorRecords[i].hrStatus; } } } else { ReportReJITError(&(errorRecords[i])); } } // We got through processing everything, but profiler will need to see the individual ReJITError // callbacks to know what, if anything, failed. return S_OK; } // static HRESULT ReJitManager::UpdateActiveILVersion( SHash<CodeActivationBatchTraits> *pMgrToCodeActivationBatch, Module *pModule, mdMethodDef methodDef, BOOL fIsRevert, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; _ASSERTE(pMgrToCodeActivationBatch != NULL); _ASSERTE(pModule != NULL); _ASSERTE(methodDef != mdTokenNil); HRESULT hr = S_OK; CodeVersionManager * pCodeVersionManager = pModule->GetCodeVersionManager(); _ASSERTE(pCodeVersionManager != NULL); CodeActivationBatch * pCodeActivationBatch = pMgrToCodeActivationBatch->Lookup(pCodeVersionManager); if (pCodeActivationBatch == NULL) { pCodeActivationBatch = new (nothrow)CodeActivationBatch(pCodeVersionManager); if (pCodeActivationBatch == NULL) { return E_OUTOFMEMORY; } hr = S_OK; EX_TRY { // This throws when out of memory, but remains internally // consistent (without adding the new element) pMgrToCodeActivationBatch->Add(pCodeActivationBatch); } EX_CATCH_HRESULT(hr); _ASSERT(hr == S_OK || hr == E_OUTOFMEMORY); if (FAILED(hr)) { return hr; } } { CodeVersionManager::LockHolder codeVersioningLockHolder; // Bind the il code version ILCodeVersion* pILCodeVersion = pCodeActivationBatch->m_methodsToActivate.Append(); if (pILCodeVersion == NULL) { return E_OUTOFMEMORY; } if (fIsRevert) { // activate the original version *pILCodeVersion = ILCodeVersion(pModule, methodDef); } else { // activate an unused or new IL version hr = ReJitManager::BindILVersion(pCodeVersionManager, pModule, methodDef, pILCodeVersion, flags); if (FAILED(hr)) { _ASSERTE(hr == E_OUTOFMEMORY); return hr; } } } return hr; } // static HRESULT ReJitManager::UpdateNativeInlinerActiveILVersions( SHash<CodeActivationBatchTraits> *pMgrToCodeActivationBatch, MethodDesc *pInlinee, BOOL fIsRevert, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; _ASSERTE(pMgrToCodeActivationBatch != NULL); _ASSERTE(pInlinee != NULL); HRESULT hr = S_OK; // Iterate through all modules, for any that are NGEN or R2R need to check if there are inliners there and call // RequestReJIT on them // TODO: is the default domain enough for coreclr? AppDomain::AssemblyIterator domainAssemblyIterator = SystemDomain::System()->DefaultDomain()->IterateAssembliesEx((AssemblyIterationFlags) (kIncludeLoaded | kIncludeExecution)); CollectibleAssemblyHolder<DomainAssembly *> pDomainAssembly; NativeImageInliningIterator inlinerIter; while (domainAssemblyIterator.Next(pDomainAssembly.This())) { _ASSERTE(pDomainAssembly != NULL); _ASSERTE(pDomainAssembly->GetAssembly() != NULL); Module * pModule = pDomainAssembly->GetModule(); if (pModule->HasReadyToRunInlineTrackingMap()) { inlinerIter.Reset(pModule, pInlinee); MethodDesc *pInliner = NULL; while (inlinerIter.Next()) { pInliner = inlinerIter.GetMethodDesc(); { CodeVersionManager *pCodeVersionManager = pModule->GetCodeVersionManager(); CodeVersionManager::LockHolder codeVersioningLockHolder; ILCodeVersion ilVersion = pCodeVersionManager->GetActiveILCodeVersion(pInliner); if (!ilVersion.HasDefaultIL()) { // This method has already been ReJITted, no need to request another ReJIT at this point. // The ReJITted method will be in the JIT inliner check below. continue; } } hr = UpdateActiveILVersion(pMgrToCodeActivationBatch, pInliner->GetModule(), pInliner->GetMemberDef(), fIsRevert, flags); if (FAILED(hr)) { ReportReJITError(pInliner->GetModule(), pInliner->GetMemberDef(), NULL, hr); } } } } return S_OK; } // static HRESULT ReJitManager::UpdateJitInlinerActiveILVersions( SHash<CodeActivationBatchTraits> *pMgrToCodeActivationBatch, MethodDesc *pInlinee, BOOL fIsRevert, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; _ASSERTE(pMgrToCodeActivationBatch != NULL); _ASSERTE(pInlinee != NULL); HRESULT hr = S_OK; Module *pModule = pInlinee->GetModule(); if (pModule->HasJitInlineTrackingMap()) { // JITInlineTrackingMap::VisitInliners wants to be in cooperative mode, // but UpdateActiveILVersion wants to be in preemptive mode. Rather than do // a bunch of mode switching just batch up the inliners. InlineSArray<MethodDesc *, 10> inliners; auto lambda = [&](MethodDesc *inliner, MethodDesc *inlinee) { _ASSERTE(!inliner->IsNoMetadata()); if (inliner->IsIL()) { EX_TRY { // InlineSArray can throw if we run out of memory, // need to guard against it. inliners.Append(inliner); } EX_CATCH_HRESULT(hr); return SUCCEEDED(hr); } // Keep going return true; }; JITInlineTrackingMap *pMap = pModule->GetJitInlineTrackingMap(); pMap->VisitInliners(pInlinee, lambda); if (FAILED(hr)) { return hr; } EX_TRY { // InlineSArray iterator can throw for (auto it = inliners.Begin(); it != inliners.End(); ++it) { Module *inlinerModule = (*it)->GetModule(); mdMethodDef inlinerMethodDef = (*it)->GetMemberDef(); hr = UpdateActiveILVersion(pMgrToCodeActivationBatch, inlinerModule, inlinerMethodDef, fIsRevert, flags); if (FAILED(hr)) { ReportReJITError(inlinerModule, inlinerMethodDef, NULL, hr); } } } EX_CATCH_HRESULT(hr); } return hr; } // static HRESULT ReJitManager::BindILVersion( CodeVersionManager *pCodeVersionManager, PTR_Module pModule, mdMethodDef methodDef, ILCodeVersion *pILCodeVersion, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_PREEMPTIVE; CAN_TAKE_LOCK; PRECONDITION(CheckPointer(pCodeVersionManager)); PRECONDITION(CheckPointer(pModule)); PRECONDITION(CheckPointer(pILCodeVersion)); } CONTRACTL_END; _ASSERTE(CodeVersionManager::IsLockOwnedByCurrentThread()); _ASSERTE((pModule != NULL) && (methodDef != mdTokenNil)); // Check if there was there a previous rejit request for this method that hasn't been exposed back // to the profiler yet ILCodeVersion ilCodeVersion = pCodeVersionManager->GetActiveILCodeVersion(pModule, methodDef); BOOL fDoCallback = (flags & COR_PRF_REJIT_INLINING_CALLBACKS) == COR_PRF_REJIT_INLINING_CALLBACKS; if (ilCodeVersion.GetRejitState() == ILCodeVersion::kStateRequested) { // We can 'reuse' this instance because the profiler doesn't know about // it yet. (This likely happened because a profiler called RequestReJIT // twice in a row, without us having a chance to jmp-stamp the code yet OR // while iterating through instantiations of a generic, the iterator found // duplicate entries for the same instantiation.) // TODO: this assert likely needs to be removed. This code path should be // hit for any duplicates, and that can happen regardless of whether this // is the first ReJIT or not. _ASSERTE(ilCodeVersion.HasDefaultIL()); *pILCodeVersion = ilCodeVersion; if (fDoCallback) { // There could be a case where the method that a profiler requested ReJIT on also ends up in the // inlining graph from a different method. In that case we should override the previous setting, // but we should never override a request to get the callback with a request to suppress it. pILCodeVersion->SetEnableReJITCallback(true); } return S_FALSE; } // Either there was no ILCodeVersion yet for this MethodDesc OR whatever we've found // couldn't be reused (and needed to be reverted). Create a new ILCodeVersion to return // to the caller. HRESULT hr = pCodeVersionManager->AddILCodeVersion(pModule, methodDef, InterlockedIncrement(reinterpret_cast<LONG*>(&s_GlobalReJitId)), pILCodeVersion); pILCodeVersion->SetEnableReJITCallback(fDoCallback); return hr; } //--------------------------------------------------------------------------------------- // // ICorProfilerInfo4::RequestRevert calls into this guy to do most of the // work. Takes care of finding the appropriate ReJitManager instances to // perform the revert // // Arguments: // * cFunctions - Element count of rgModuleIDs & rgMethodDefs // * rgModuleIDs - Parallel array of ModuleIDs to revert // * rgMethodDefs - Parallel array of methodDefs to revert // * rgHrStatuses - [out] Parallel array of HRESULTs indicating success/failure // of reverting each (ModuleID, methodDef). // // Return Value: // HRESULT indicating success or failure of the overall operation. Each // individual methodDef (or MethodDesc associated with the methodDef) // may encounter its own failure, which is reported by the rgHrStatuses // [out] parameter. // // static HRESULT ReJitManager::RequestRevert( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], HRESULT rgHrStatuses[]) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; return UpdateActiveILVersions(cFunctions, rgModuleIDs, rgMethodDefs, rgHrStatuses, TRUE, static_cast<COR_PRF_REJIT_FLAGS>(0)); } // static HRESULT ReJitManager::ConfigureILCodeVersion(ILCodeVersion ilCodeVersion) { STANDARD_VM_CONTRACT; _ASSERTE(!CodeVersionManager::IsLockOwnedByCurrentThread()); HRESULT hr = S_OK; Module* pModule = ilCodeVersion.GetModule(); mdMethodDef methodDef = ilCodeVersion.GetMethodDef(); BOOL fNeedsParameters = FALSE; BOOL fWaitForParameters = FALSE; { // Serialize access to the rejit state CodeVersionManager::LockHolder codeVersioningLockHolder; switch (ilCodeVersion.GetRejitState()) { case ILCodeVersion::kStateRequested: ilCodeVersion.SetRejitState(ILCodeVersion::kStateGettingReJITParameters); fNeedsParameters = TRUE; break; case ILCodeVersion::kStateGettingReJITParameters: fWaitForParameters = TRUE; break; default: return S_OK; } } if (fNeedsParameters) { HRESULT hr = S_OK; ReleaseHolder<ProfilerFunctionControl> pFuncControl = NULL; if (ilCodeVersion.GetEnableReJITCallback()) { // Here's where we give a chance for the rejit requestor to // examine and modify the IL & codegen flags before it gets to // the JIT. This allows one to add probe calls for things like // code coverage, performance, or whatever. These will be // stored in pShared. _ASSERTE(pModule != NULL); _ASSERTE(methodDef != mdTokenNil); pFuncControl = new (nothrow)ProfilerFunctionControl(pModule->GetLoaderAllocator()->GetLowFrequencyHeap()); if (pFuncControl == NULL) { hr = E_OUTOFMEMORY; } else { BEGIN_PROFILER_CALLBACK(CORProfilerPresent()); hr = (&g_profControlBlock)->GetReJITParameters( (ModuleID)pModule, methodDef, pFuncControl); END_PROFILER_CALLBACK(); } } if (!ilCodeVersion.GetEnableReJITCallback() || FAILED(hr)) { { // Historically on failure we would revert to the kRequested state and fall-back // to the initial code gen. The next time the method ran it would try again. // // Preserving that behavior is possible, but a bit awkward now that we have // Precode swapping as well. Instead of doing that I am acting as if GetReJITParameters // had succeeded, using the original IL, no jit flags, and no modified IL mapping. // This is similar to a fallback except the profiler won't get any further attempts // to provide the parameters correctly. If the profiler wants another attempt it would // need to call RequestRejit again. // // This code path also happens if the GetReJITParameters callback was suppressed due to // the method being ReJITted as an inliner by the runtime (instead of by the user). CodeVersionManager::LockHolder codeVersioningLockHolder; if (ilCodeVersion.GetRejitState() == ILCodeVersion::kStateGettingReJITParameters) { ilCodeVersion.SetRejitState(ILCodeVersion::kStateActive); ilCodeVersion.SetIL(ILCodeVersion(pModule, methodDef).GetIL()); } } if (FAILED(hr)) { // Only call if the GetReJITParamters call failed ReportReJITError(pModule, methodDef, pModule->LookupMethodDef(methodDef), hr); } return S_OK; } else { _ASSERTE(pFuncControl != NULL); CodeVersionManager::LockHolder codeVersioningLockHolder; if (ilCodeVersion.GetRejitState() == ILCodeVersion::kStateGettingReJITParameters) { // Inside the above call to ICorProfilerCallback4::GetReJITParameters, the profiler // will have used the specified pFuncControl to provide its IL and codegen flags. // So now we transfer it out to the SharedReJitInfo. ilCodeVersion.SetJitFlags(pFuncControl->GetCodegenFlags()); ilCodeVersion.SetIL((COR_ILMETHOD*)pFuncControl->GetIL()); // ilCodeVersion is now the owner of the memory for the IL buffer ilCodeVersion.SetInstrumentedILMap(pFuncControl->GetInstrumentedMapEntryCount(), pFuncControl->GetInstrumentedMapEntries()); ilCodeVersion.SetRejitState(ILCodeVersion::kStateActive); } } } else if (fWaitForParameters) { // This feels annoying, but it doesn't appear like we have the good threading primitves // for this. What I would like is an AutoResetEvent that atomically exits the table // Crst when I wait on it. From what I can tell our AutoResetEvent doesn't have // that atomic transition which means this ordering could occur: // [Thread 1] detect kStateGettingParameters and exit table lock // [Thread 2] enter table lock, transition kStateGettingParameters -> kStateActive // [Thread 2] signal AutoResetEvent // [Thread 2] exit table lock // [Thread 1] wait on AutoResetEvent (which may never be signaled again) // // Another option would be ManualResetEvents, one for each SharedReJitInfo, but // that feels like a lot of memory overhead to handle a case which occurs rarely. // A third option would be dynamically creating ManualResetEvents in a side // dictionary on demand, but that feels like a lot of complexity for an event // that occurs rarely. // // I just ended up with this simple polling loop. Assuming profiler // writers implement GetReJITParameters performantly we will only iterate // this loop once, and even then only in the rare case of threads racing // to JIT the same IL. If this really winds up causing performance issues // We can build something more sophisticated. while (true) { { CodeVersionManager::LockHolder codeVersioningLockHolder; if (ilCodeVersion.GetRejitState() == ILCodeVersion::kStateActive) { break; // the other thread got the parameters succesfully, go race to rejit } } ClrSleepEx(1, FALSE); } } return S_OK; } #endif // DACCESS_COMPILE // The rest of the ReJitManager methods are safe to compile for DAC //--------------------------------------------------------------------------------------- // // Used by profiler to get the ReJITID corrseponding to a (MethodDesc *, PCODE) pair. // Can also be used to determine whether (MethodDesc *, PCODE) corresponds to a rejit // (vs. a regular JIT) for the purposes of deciding whether to notify the debugger about // the rejit (and building the debugger JIT info structure). // // Arguments: // * pMD - MethodDesc * of interestg // * pCodeStart - PCODE of the particular interesting JITting of that MethodDesc * // // Return Value: // 0 if no such ReJITID found (e.g., PCODE is from a JIT and not a rejit), else the // ReJITID requested. // // static ReJITID ReJitManager::GetReJitId(PTR_MethodDesc pMD, PCODE pCodeStart) { CONTRACTL { NOTHROW; CAN_TAKE_LOCK; GC_TRIGGERS; PRECONDITION(CheckPointer(pMD)); PRECONDITION(pCodeStart != NULL); } CONTRACTL_END; // Fast-path: If the rejit map is empty, no need to look up anything. Do this outside // of a lock to impact our caller (the prestub worker) as little as possible. If the // map is nonempty, we'll acquire the lock at that point and do the lookup for real. CodeVersionManager* pCodeVersionManager = pMD->GetCodeVersionManager(); if (pCodeVersionManager->GetNonDefaultILVersionCount() == 0) { return 0; } CodeVersionManager::LockHolder codeVersioningLockHolder; return ReJitManager::GetReJitIdNoLock(pMD, pCodeStart); } //--------------------------------------------------------------------------------------- // // See comment above code:ReJitManager::GetReJitId for main details of what this does. // // This function is basically the same as GetReJitId, except caller is expected to take // the ReJitManager lock directly (via ReJitManager::TableLockHolder). This exists so // that ETW can explicitly take the triggering ReJitManager lock up front, and in the // proper order, to avoid lock leveling issues, and triggering issues with other locks it // takes that are CRST_UNSAFE_ANYMODE // ReJITID ReJitManager::GetReJitIdNoLock(PTR_MethodDesc pMD, PCODE pCodeStart) { CONTRACTL { NOTHROW; CANNOT_TAKE_LOCK; GC_NOTRIGGER; PRECONDITION(CheckPointer(pMD)); PRECONDITION(pCodeStart != NULL); } CONTRACTL_END; // Caller must ensure this lock is taken! _ASSERTE(CodeVersionManager::IsLockOwnedByCurrentThread()); NativeCodeVersion nativeCodeVersion = pMD->GetCodeVersionManager()->GetNativeCodeVersion(pMD, pCodeStart); if (nativeCodeVersion.IsNull()) { return 0; } return nativeCodeVersion.GetILCodeVersion().GetVersionId(); } //--------------------------------------------------------------------------------------- // // Called by profiler to retrieve an array of ReJITIDs corresponding to a MethodDesc * // // Arguments: // * pMD - MethodDesc * to look up // * cReJitIds - Element count capacity of reJitIds // * pcReJitIds - [out] Place total count of ReJITIDs found here; may be more than // cReJitIds if profiler passed an array that's too small to hold them all // * reJitIds - [out] Place ReJITIDs found here. Count of ReJITIDs returned here is // min(cReJitIds, *pcReJitIds) // // Return Value: // * S_OK: ReJITIDs successfully returned, array is big enough // * S_FALSE: ReJITIDs successfully found, but array was not big enough. Only // cReJitIds were returned and cReJitIds < *pcReJitId (latter being the total // number of ReJITIDs available). // // static HRESULT ReJitManager::GetReJITIDs(PTR_MethodDesc pMD, ULONG cReJitIds, ULONG * pcReJitIds, ReJITID reJitIds[]) { CONTRACTL { NOTHROW; CAN_TAKE_LOCK; GC_NOTRIGGER; PRECONDITION(CheckPointer(pMD)); PRECONDITION(pcReJitIds != NULL); PRECONDITION((cReJitIds == 0) == (reJitIds == NULL)); } CONTRACTL_END; CodeVersionManager* pCodeVersionManager = pMD->GetCodeVersionManager(); CodeVersionManager::LockHolder codeVersioningLockHolder; ULONG cnt = 0; ILCodeVersionCollection ilCodeVersions = pCodeVersionManager->GetILCodeVersions(pMD); for (ILCodeVersionIterator iter = ilCodeVersions.Begin(), end = ilCodeVersions.End(); iter != end; iter++) { ILCodeVersion curILVersion = *iter; if (curILVersion.GetRejitState() == ILCodeVersion::kStateActive) { if (cnt < cReJitIds) { reJitIds[cnt] = curILVersion.GetVersionId(); } ++cnt; // no overflow _ASSERTE(cnt != 0); } } *pcReJitIds = cnt; return (cnt > cReJitIds) ? S_FALSE : S_OK; } #endif // FEATURE_CODE_VERSIONING #else // FEATURE_REJIT // On architectures that don't support rejit, just keep around some do-nothing // stubs so the rest of the VM doesn't have to be littered with #ifdef FEATURE_REJIT // static HRESULT ReJitManager::RequestReJIT( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], COR_PRF_REJIT_FLAGS flags) { return E_NOTIMPL; } // static HRESULT ReJitManager::RequestRevert( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], HRESULT rgHrStatuses[]) { return E_NOTIMPL; } ReJITID ReJitManager::GetReJitId(PTR_MethodDesc pMD, PCODE pCodeStart) { return 0; } ReJITID ReJitManager::GetReJitIdNoLock(PTR_MethodDesc pMD, PCODE pCodeStart) { return 0; } HRESULT ReJitManager::GetReJITIDs(PTR_MethodDesc pMD, ULONG cReJitIds, ULONG * pcReJitIds, ReJITID reJitIds[]) { return E_NOTIMPL; } #endif // FEATURE_REJIT
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // ReJit.cpp // // // This module implements the tracking and execution of rejit requests. In order to avoid // any overhead on the non-profiled case we don't intrude on any 'normal' data structures // except one member on the AppDomain to hold our main hashtable and crst (the // ReJitManager). See comments in rejit.h to understand relationships between ReJitInfo, // SharedReJitInfo, and ReJitManager, particularly SharedReJitInfo::InternalFlags which // capture the state of a rejit request, and ReJitInfo::InternalFlags which captures the // state of a particular MethodDesc from a rejit request. // // A ReJIT request (tracked via SharedReJitInfo) is made at the level of a (Module *, // methodDef) pair, and thus affects all instantiations of a generic. Each MethodDesc // affected by a ReJIT request has its state tracked via a ReJitInfo instance. A // ReJitInfo can represent a rejit request against an already-jitted MethodDesc, or a // rejit request against a not-yet-jitted MethodDesc (called a "pre-rejit" request). A // Pre-ReJIT request happens when a profiler specifies a (Module *, methodDef) pair that // has not yet been JITted, or that represents a generic function which always has the // potential to JIT new instantiations in the future. // // Top-level functions in this file of most interest are: // // * (static) code:ReJitManager::RequestReJIT: // Profiling API just delegates all rejit requests directly to this function. It is // responsible for recording the request into the appropriate ReJITManagers and for // jump-stamping any already-JITted functions affected by the request (so that future // calls hit the prestub) // // * code:ReJitManager::DoReJitIfNecessary: // MethodDesc::DoPrestub calls this to determine whether it's been invoked to do a rejit. // If so, ReJitManager::DoReJitIfNecessary is responsible for (indirectly) gathering the // appropriate IL and codegen flags, calling UnsafeJitFunction(), and redirecting the // jump-stamp from the prestub to the newly-rejitted code. // // * code:ReJitManager::GetCurrentReJitFlags: // CEEInfo::canInline() calls this as part of its calculation of whether it may inline a // given method. (Profilers may specify on a per-rejit-request basis whether the rejit of // a method may inline callees.) // // // #Invariants: // // For a given Module/MethodDef there is at most 1 SharedReJitInfo that is not Reverted, // though there may be many that are in the Reverted state. If a method is rejitted // multiple times, with multiple versions actively in use on the stacks, then all but the // most recent are put into the Reverted state even though they may not yet be physically // reverted and pitched yet. // // For a given MethodDesc there is at most 1 ReJitInfo in the kJumpToPrestub or kJumpToRejittedCode // state. // // The ReJitManager::m_crstTable lock is held whenever reading or writing to that // ReJitManager instance's table (including state transitions applied to the ReJitInfo & // SharedReJitInfo instances stored in that table). // // The ReJitManager::m_crstTable lock is never held during callbacks to the profiler // such as GetReJITParameters, ReJITStarted, JITComplete, ReportReJITError // // Any thread holding the ReJitManager::m_crstTable lock can't block during runtime suspension // therefore it can't call any GC_TRIGGERS functions // // Transitions between SharedRejitInfo states happen only in the following cicumstances: // 1) New SharedRejitInfo added to table (Requested State) // Inside RequestRejit // Global Crst held, table Crst held // // 2) Requested -> GettingReJITParameters // Inside DoRejitIfNecessary // Global Crst NOT held, table Crst held // // 3) GettingReJITParameters -> Active // Inside DoRejitIfNecessary // Global Crst NOT held, table Crst held // // 4) * -> Reverted // Inside RequestRejit or RequestRevert // Global Crst held, table Crst held // // // Transitions between RejitInfo states happen only in the following circumstances: // 1) New RejitInfo added to table (kJumpNone state) // Inside RequestRejit // Global Crst MAY/MAY NOT be held, table Crst held // Allowed SharedReJit states: Requested, GettingReJITParameters, Active // // 2) kJumpNone -> kJumpToPrestub // Inside RequestRejit // Global Crst MAY/MAY NOT be held, table Crst held // Allowed SharedReJit states: Requested, GettingReJITParameters, Active // // 3) kJumpToPreStub -> kJumpToRejittedCode // Inside DoReJitIfNecessary // Global Crst NOT held, table Crst held // Allowed SharedReJit states: Active // // 4) * -> kJumpNone // Inside RequestRevert, RequestRejit // Global Crst held, table crst held // Allowed SharedReJit states: Reverted // // // #Beware Invariant misconceptions - don't make bad assumptions! // Even if a SharedReJitInfo is in the Reverted state: // a) RejitInfos may still be in the kJumpToPreStub or kJumpToRejittedCode state // Reverted really just means the runtime has started reverting, but it may not // be complete yet on the thread executing Revert or RequestRejit. // b) The code for this version of the method may be executing on any number of // threads. Even after transitioning all rejit infos to kJumpNone state we // have no power to abort or hijack threads already running the rejitted code. // // Even if a SharedReJitInfo is in the Active state: // a) The corresponding ReJitInfos may not be jump-stamped yet. // Some thread is still in the progress of getting this thread jump-stamped // OR it is a place-holder ReJitInfo. // b) An older ReJitInfo linked to a reverted SharedReJitInfo could still be // in kJumpToPreStub or kJumpToReJittedCode state. RequestRejit is still in // progress on some thread. // // // #Known issues with REJIT at this time: // NGEN inlined methods will not be properly rejitted // Exception callstacks through rejitted code do not produce correct StackTraces // Live debugging is not supported when rejit is enabled // Rejit leaks rejitted methods, RejitInfos, and SharedRejitInfos until AppDomain unload // Dump debugging doesn't correctly locate RejitInfos that are keyed by MethodDesc // Metadata update creates large memory increase switching to RW (not specifically a rejit issue) // // ====================================================================================== #include "common.h" #include "rejit.h" #include "method.hpp" #include "eeconfig.h" #include "methoditer.h" #include "dbginterface.h" #include "threadsuspend.h" #ifdef FEATURE_REJIT #ifdef FEATURE_CODE_VERSIONING #include "../debug/ee/debugger.h" #include "../debug/ee/walker.h" #include "../debug/ee/controller.h" #include "codeversion.h" // This is just used as a unique id. Overflow is OK. If we happen to have more than 4+Billion rejits // and somehow manage to not run out of memory, we'll just have to redefine ReJITID as size_t. /* static */ static ReJITID s_GlobalReJitId = 1; /* static */ CrstStatic ReJitManager::s_csGlobalRequest; //--------------------------------------------------------------------------------------- // Helpers //static CORJIT_FLAGS ReJitManager::JitFlagsFromProfCodegenFlags(DWORD dwCodegenFlags) { LIMITED_METHOD_DAC_CONTRACT; CORJIT_FLAGS jitFlags; if ((dwCodegenFlags & COR_PRF_CODEGEN_DISABLE_ALL_OPTIMIZATIONS) != 0) { jitFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_DEBUG_CODE); } if ((dwCodegenFlags & COR_PRF_CODEGEN_DISABLE_INLINING) != 0) { jitFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_NO_INLINING); } // In the future more flags may be added that need to be converted here (e.g., // COR_PRF_CODEGEN_ENTERLEAVE / CORJIT_FLAG_PROF_ENTERLEAVE) return jitFlags; } //--------------------------------------------------------------------------------------- // ProfilerFunctionControl implementation ProfilerFunctionControl::ProfilerFunctionControl(LoaderHeap * pHeap) : m_refCount(1), m_pHeap(pHeap), m_dwCodegenFlags(0), m_cbIL(0), m_pbIL(NULL), m_cInstrumentedMapEntries(0), m_rgInstrumentedMapEntries(NULL) { LIMITED_METHOD_CONTRACT; } ProfilerFunctionControl::~ProfilerFunctionControl() { LIMITED_METHOD_CONTRACT; // Intentionally not deleting m_pbIL or m_rgInstrumentedMapEntries, as its ownership gets transferred to the // SharedReJitInfo that manages that rejit request. } HRESULT ProfilerFunctionControl::QueryInterface(REFIID id, void** pInterface) { LIMITED_METHOD_CONTRACT; if ((id != IID_IUnknown) && (id != IID_ICorProfilerFunctionControl)) { *pInterface = NULL; return E_NOINTERFACE; } *pInterface = this; this->AddRef(); return S_OK; } ULONG ProfilerFunctionControl::AddRef() { LIMITED_METHOD_CONTRACT; return InterlockedIncrement(&m_refCount); } ULONG ProfilerFunctionControl::Release() { LIMITED_METHOD_CONTRACT; ULONG refCount = InterlockedDecrement(&m_refCount); if (0 == refCount) { delete this; } return refCount; } //--------------------------------------------------------------------------------------- // // Profiler calls this to specify a set of flags from COR_PRF_CODEGEN_FLAGS // to control rejitting a particular methodDef. // // Arguments: // * flags - set of flags from COR_PRF_CODEGEN_FLAGS // // Return Value: // Always S_OK; // HRESULT ProfilerFunctionControl::SetCodegenFlags(DWORD flags) { LIMITED_METHOD_CONTRACT; m_dwCodegenFlags = flags; return S_OK; } //--------------------------------------------------------------------------------------- // // Profiler calls this to specify the IL to use when rejitting a particular methodDef. // // Arguments: // * cbNewILMethodHeader - Size in bytes of pbNewILMethodHeader // * pbNewILMethodHeader - Pointer to beginning of IL header + IL bytes. // // Return Value: // HRESULT indicating success or failure. // // Notes: // Caller owns allocating and freeing pbNewILMethodHeader as expected. // SetILFunctionBody copies pbNewILMethodHeader into a separate buffer. // HRESULT ProfilerFunctionControl::SetILFunctionBody(ULONG cbNewILMethodHeader, LPCBYTE pbNewILMethodHeader) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (cbNewILMethodHeader == 0) { return E_INVALIDARG; } if (pbNewILMethodHeader == NULL) { return E_INVALIDARG; } _ASSERTE(m_cbIL == 0); _ASSERTE(m_pbIL == NULL); #ifdef DACCESS_COMPILE m_pbIL = new (nothrow) BYTE[cbNewILMethodHeader]; #else // IL is stored on the appropriate loader heap, and its memory will be owned by the // SharedReJitInfo we copy the pointer to. m_pbIL = (LPBYTE) (void *) m_pHeap->AllocMem_NoThrow(S_SIZE_T(cbNewILMethodHeader)); #endif if (m_pbIL == NULL) { return E_OUTOFMEMORY; } m_cbIL = cbNewILMethodHeader; memcpy(m_pbIL, pbNewILMethodHeader, cbNewILMethodHeader); return S_OK; } HRESULT ProfilerFunctionControl::SetILInstrumentedCodeMap(ULONG cILMapEntries, COR_IL_MAP * rgILMapEntries) { #ifdef DACCESS_COMPILE // I'm not sure why any of these methods would need to be compiled in DAC? Could we remove the // entire class from the DAC'ized code build? _ASSERTE(!"This shouldn't be called in DAC"); return E_NOTIMPL; #else CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_ANY; } CONTRACTL_END; if (cILMapEntries >= (MAXULONG / sizeof(COR_IL_MAP))) { // Too big! The allocation below would overflow when calculating the size. return E_INVALIDARG; } if (g_pDebugInterface == NULL) { return CORPROF_E_DEBUGGING_DISABLED; } // copy the il map and il map entries into the corresponding fields. m_cInstrumentedMapEntries = cILMapEntries; // IL is stored on the appropriate loader heap, and its memory will be owned by the // SharedReJitInfo we copy the pointer to. m_rgInstrumentedMapEntries = (COR_IL_MAP*) (void *) m_pHeap->AllocMem_NoThrow(S_SIZE_T(cILMapEntries * sizeof(COR_IL_MAP))); if (m_rgInstrumentedMapEntries == NULL) return E_OUTOFMEMORY; memcpy_s(m_rgInstrumentedMapEntries, sizeof(COR_IL_MAP) * cILMapEntries, rgILMapEntries, sizeof(COR_IL_MAP) * cILMapEntries); return S_OK; #endif // DACCESS_COMPILE } //--------------------------------------------------------------------------------------- // // ReJitManager may use this to access the codegen flags the profiler had set on this // ICorProfilerFunctionControl. // // Return Value: // * codegen flags previously set via SetCodegenFlags; 0 if none were set. // DWORD ProfilerFunctionControl::GetCodegenFlags() { return m_dwCodegenFlags; } //--------------------------------------------------------------------------------------- // // ReJitManager may use this to access the IL header + instructions the // profiler had set on this ICorProfilerFunctionControl via SetIL // // Return Value: // * Pointer to ProfilerFunctionControl-allocated buffer containing the // IL header and instructions the profiler had provided. // LPBYTE ProfilerFunctionControl::GetIL() { return m_pbIL; } //--------------------------------------------------------------------------------------- // // ReJitManager may use this to access the count of instrumented map entry flags the // profiler had set on this ICorProfilerFunctionControl. // // Return Value: // * size of the instrumented map entry array // ULONG ProfilerFunctionControl::GetInstrumentedMapEntryCount() { return m_cInstrumentedMapEntries; } //--------------------------------------------------------------------------------------- // // ReJitManager may use this to access the instrumented map entries the // profiler had set on this ICorProfilerFunctionControl. // // Return Value: // * the array of instrumented map entries // COR_IL_MAP* ProfilerFunctionControl::GetInstrumentedMapEntries() { return m_rgInstrumentedMapEntries; } #ifndef DACCESS_COMPILE NativeImageInliningIterator::NativeImageInliningIterator() : m_pModule(NULL), m_pInlinee(NULL), m_dynamicBuffer(NULL), m_dynamicBufferSize(0), m_dynamicAvailable(0), m_currentPos(-1) { } HRESULT NativeImageInliningIterator::Reset(Module *pModule, MethodDesc *pInlinee) { _ASSERTE(pModule != NULL); _ASSERTE(pInlinee != NULL); m_pModule = pModule; m_pInlinee = pInlinee; HRESULT hr = S_OK; EX_TRY { // Trying to use the existing buffer BOOL incompleteData; Module *inlineeModule = m_pInlinee->GetModule(); mdMethodDef mdInlinee = m_pInlinee->GetMemberDef(); COUNT_T methodsAvailable = m_pModule->GetReadyToRunInliners(inlineeModule, mdInlinee, m_dynamicBufferSize, m_dynamicBuffer, &incompleteData); // If the existing buffer is not large enough, reallocate. if (methodsAvailable > m_dynamicBufferSize) { COUNT_T newSize = max(methodsAvailable, s_bufferSize); m_dynamicBuffer = new MethodInModule[newSize]; m_dynamicBufferSize = newSize; methodsAvailable = m_pModule->GetReadyToRunInliners(inlineeModule, mdInlinee, m_dynamicBufferSize, m_dynamicBuffer, &incompleteData); _ASSERTE(methodsAvailable <= m_dynamicBufferSize); } m_dynamicAvailable = methodsAvailable; } EX_CATCH_HRESULT(hr); if (FAILED(hr)) { m_currentPos = s_failurePos; } else { m_currentPos = -1; } return hr; } BOOL NativeImageInliningIterator::Next() { if (m_currentPos == s_failurePos) { return FALSE; } m_currentPos++; return m_currentPos < m_dynamicAvailable; } MethodDesc *NativeImageInliningIterator::GetMethodDesc() { // this evaluates true when m_currentPos == s_failurePos or m_currentPos == (COUNT_T)-1 // m_currentPos is an unsigned type if (m_currentPos >= m_dynamicAvailable) { return NULL; } MethodInModule mm = m_dynamicBuffer[m_currentPos]; Module *pModule = mm.m_module; mdMethodDef mdInliner = mm.m_methodDef; return pModule->LookupMethodDef(mdInliner); } //--------------------------------------------------------------------------------------- // ReJitManager implementation // All the state-changey stuff is kept up here in the !DACCESS_COMPILE block. // The more read-only inspection-y stuff follows the block. //--------------------------------------------------------------------------------------- // // ICorProfilerInfo4::RequestReJIT calls into this method to do most of the // work. Takes care of finding the appropriate ReJitManager instances to // record the rejit requests and perform jmp-stamping. // // Arguments: // * cFunctions - Element count of rgModuleIDs & rgMethodDefs // * rgModuleIDs - Parallel array of ModuleIDs to rejit // * rgMethodDefs - Parallel array of methodDefs to rejit // // Return Value: // HRESULT indicating success or failure of the overall operation. Each // individual methodDef (or MethodDesc associated with the methodDef) // may encounter its own failure, which is reported by the ReJITError() // callback, which is called into the profiler directly. // // static HRESULT ReJitManager::RequestReJIT( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], COR_PRF_REJIT_FLAGS flags) { return ReJitManager::UpdateActiveILVersions(cFunctions, rgModuleIDs, rgMethodDefs, NULL, FALSE, flags); } // static HRESULT ReJitManager::UpdateActiveILVersions( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], HRESULT rgHrStatuses[], BOOL fIsRevert, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; // Serialize all RequestReJIT() and Revert() calls against each other (even across AppDomains) CrstHolder ch(&(s_csGlobalRequest)); HRESULT hr = S_OK; // Request at least 1 method to reJIT! _ASSERTE ((cFunctions != 0) && (rgModuleIDs != NULL) && (rgMethodDefs != NULL)); // Temporary storage to batch up all the ReJitInfos that will get jump stamped // later when the runtime is suspended. // //DESKTOP WARNING: On CoreCLR we are safe but if this code ever gets ported back //there aren't any protections against domain unload. Any of these moduleIDs //code version managers, or code versions would become invalid if the domain which //contains them was unloaded. SHash<CodeActivationBatchTraits> mgrToCodeActivationBatch; CDynArray<CodeVersionManager::CodePublishError> errorRecords; for (ULONG i = 0; i < cFunctions; i++) { Module * pModule = reinterpret_cast< Module * >(rgModuleIDs[i]); if (pModule == NULL || TypeFromToken(rgMethodDefs[i]) != mdtMethodDef) { ReportReJITError(pModule, rgMethodDefs[i], NULL, E_INVALIDARG); continue; } if (pModule->IsBeingUnloaded()) { ReportReJITError(pModule, rgMethodDefs[i], NULL, CORPROF_E_DATAINCOMPLETE); continue; } if (pModule->IsReflection()) { ReportReJITError(pModule, rgMethodDefs[i], NULL, CORPROF_E_MODULE_IS_DYNAMIC); continue; } if (!pModule->GetMDImport()->IsValidToken(rgMethodDefs[i])) { ReportReJITError(pModule, rgMethodDefs[i], NULL, E_INVALIDARG); continue; } MethodDesc * pMD = pModule->LookupMethodDef(rgMethodDefs[i]); if (pMD != NULL) { _ASSERTE(!pMD->IsNoMetadata()); // Weird, non-user functions can't be rejitted if (!pMD->IsIL()) { // Intentionally not reporting an error in this case, to be consistent // with the pre-rejit case, as we have no opportunity to report an error // in a pre-rejit request for a non-IL method, since the rejit manager // never gets a call from the prestub worker for non-IL methods. Thus, // since pre-rejit requests silently ignore rejit requests for non-IL // methods, regular rejit requests will also silently ignore rejit requests for // non-IL methods to be consistent. continue; } } hr = UpdateActiveILVersion(&mgrToCodeActivationBatch, pModule, rgMethodDefs[i], fIsRevert, static_cast<COR_PRF_REJIT_FLAGS>(flags | COR_PRF_REJIT_INLINING_CALLBACKS)); if (FAILED(hr)) { return hr; } if ((flags & COR_PRF_REJIT_BLOCK_INLINING) == COR_PRF_REJIT_BLOCK_INLINING) { hr = UpdateNativeInlinerActiveILVersions(&mgrToCodeActivationBatch, pMD, fIsRevert, flags); if (FAILED(hr)) { return hr; } hr = UpdateJitInlinerActiveILVersions(&mgrToCodeActivationBatch, pMD, fIsRevert, flags); if (FAILED(hr)) { return hr; } } } // for (ULONG i = 0; i < cFunctions; i++) // For each code versioning mgr, if there's work to do, // enter the code versioning mgr's crst, and do the batched work. SHash<CodeActivationBatchTraits>::Iterator beginIter = mgrToCodeActivationBatch.Begin(); SHash<CodeActivationBatchTraits>::Iterator endIter = mgrToCodeActivationBatch.End(); { MethodDescBackpatchInfoTracker::ConditionalLockHolderForGCCoop slotBackpatchLockHolder; for (SHash<CodeActivationBatchTraits>::Iterator iter = beginIter; iter != endIter; iter++) { CodeActivationBatch * pCodeActivationBatch = *iter; CodeVersionManager * pCodeVersionManager = pCodeActivationBatch->m_pCodeVersionManager; int cMethodsToActivate = pCodeActivationBatch->m_methodsToActivate.Count(); if (cMethodsToActivate == 0) { continue; } { // SetActiveILCodeVersions takes the SystemDomain crst, which needs to be acquired before the // ThreadStore crsts SystemDomain::LockHolder lh; hr = pCodeVersionManager->SetActiveILCodeVersions(pCodeActivationBatch->m_methodsToActivate.Ptr(), pCodeActivationBatch->m_methodsToActivate.Count(), &errorRecords); if (FAILED(hr)) break; } } } if (FAILED(hr)) { _ASSERTE(hr == E_OUTOFMEMORY); return hr; } // Report any errors that were batched up for (int i = 0; i < errorRecords.Count(); i++) { if (rgHrStatuses != NULL) { for (DWORD j = 0; j < cFunctions; j++) { if (rgMethodDefs[j] == errorRecords[i].methodDef && reinterpret_cast<Module*>(rgModuleIDs[j]) == errorRecords[i].pModule) { rgHrStatuses[j] = errorRecords[i].hrStatus; } } } else { ReportReJITError(&(errorRecords[i])); } } // We got through processing everything, but profiler will need to see the individual ReJITError // callbacks to know what, if anything, failed. return S_OK; } // static HRESULT ReJitManager::UpdateActiveILVersion( SHash<CodeActivationBatchTraits> *pMgrToCodeActivationBatch, Module *pModule, mdMethodDef methodDef, BOOL fIsRevert, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; _ASSERTE(pMgrToCodeActivationBatch != NULL); _ASSERTE(pModule != NULL); _ASSERTE(methodDef != mdTokenNil); HRESULT hr = S_OK; CodeVersionManager * pCodeVersionManager = pModule->GetCodeVersionManager(); _ASSERTE(pCodeVersionManager != NULL); CodeActivationBatch * pCodeActivationBatch = pMgrToCodeActivationBatch->Lookup(pCodeVersionManager); if (pCodeActivationBatch == NULL) { pCodeActivationBatch = new (nothrow)CodeActivationBatch(pCodeVersionManager); if (pCodeActivationBatch == NULL) { return E_OUTOFMEMORY; } hr = S_OK; EX_TRY { // This throws when out of memory, but remains internally // consistent (without adding the new element) pMgrToCodeActivationBatch->Add(pCodeActivationBatch); } EX_CATCH_HRESULT(hr); _ASSERT(hr == S_OK || hr == E_OUTOFMEMORY); if (FAILED(hr)) { return hr; } } { CodeVersionManager::LockHolder codeVersioningLockHolder; // Bind the il code version ILCodeVersion* pILCodeVersion = pCodeActivationBatch->m_methodsToActivate.Append(); if (pILCodeVersion == NULL) { return E_OUTOFMEMORY; } if (fIsRevert) { // activate the original version *pILCodeVersion = ILCodeVersion(pModule, methodDef); } else { // activate an unused or new IL version hr = ReJitManager::BindILVersion(pCodeVersionManager, pModule, methodDef, pILCodeVersion, flags); if (FAILED(hr)) { _ASSERTE(hr == E_OUTOFMEMORY); return hr; } } } return hr; } // static HRESULT ReJitManager::UpdateNativeInlinerActiveILVersions( SHash<CodeActivationBatchTraits> *pMgrToCodeActivationBatch, MethodDesc *pInlinee, BOOL fIsRevert, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; _ASSERTE(pMgrToCodeActivationBatch != NULL); _ASSERTE(pInlinee != NULL); HRESULT hr = S_OK; // Iterate through all modules, for any that are NGEN or R2R need to check if there are inliners there and call // RequestReJIT on them // TODO: is the default domain enough for coreclr? AppDomain::AssemblyIterator domainAssemblyIterator = SystemDomain::System()->DefaultDomain()->IterateAssembliesEx((AssemblyIterationFlags) (kIncludeLoaded | kIncludeExecution)); CollectibleAssemblyHolder<DomainAssembly *> pDomainAssembly; NativeImageInliningIterator inlinerIter; while (domainAssemblyIterator.Next(pDomainAssembly.This())) { _ASSERTE(pDomainAssembly != NULL); _ASSERTE(pDomainAssembly->GetAssembly() != NULL); Module * pModule = pDomainAssembly->GetModule(); if (pModule->HasReadyToRunInlineTrackingMap()) { inlinerIter.Reset(pModule, pInlinee); MethodDesc *pInliner = NULL; while (inlinerIter.Next()) { pInliner = inlinerIter.GetMethodDesc(); { CodeVersionManager *pCodeVersionManager = pModule->GetCodeVersionManager(); CodeVersionManager::LockHolder codeVersioningLockHolder; ILCodeVersion ilVersion = pCodeVersionManager->GetActiveILCodeVersion(pInliner); if (!ilVersion.HasDefaultIL()) { // This method has already been ReJITted, no need to request another ReJIT at this point. // The ReJITted method will be in the JIT inliner check below. continue; } } hr = UpdateActiveILVersion(pMgrToCodeActivationBatch, pInliner->GetModule(), pInliner->GetMemberDef(), fIsRevert, flags); if (FAILED(hr)) { ReportReJITError(pInliner->GetModule(), pInliner->GetMemberDef(), NULL, hr); } } } } return S_OK; } // static HRESULT ReJitManager::UpdateJitInlinerActiveILVersions( SHash<CodeActivationBatchTraits> *pMgrToCodeActivationBatch, MethodDesc *pInlinee, BOOL fIsRevert, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; _ASSERTE(pMgrToCodeActivationBatch != NULL); _ASSERTE(pInlinee != NULL); HRESULT hr = S_OK; Module *pModule = pInlinee->GetModule(); if (pModule->HasJitInlineTrackingMap()) { // JITInlineTrackingMap::VisitInliners wants to be in cooperative mode, // but UpdateActiveILVersion wants to be in preemptive mode. Rather than do // a bunch of mode switching just batch up the inliners. InlineSArray<MethodDesc *, 10> inliners; auto lambda = [&](MethodDesc *inliner, MethodDesc *inlinee) { _ASSERTE(!inliner->IsNoMetadata()); if (inliner->IsIL()) { EX_TRY { // InlineSArray can throw if we run out of memory, // need to guard against it. inliners.Append(inliner); } EX_CATCH_HRESULT(hr); return SUCCEEDED(hr); } // Keep going return true; }; JITInlineTrackingMap *pMap = pModule->GetJitInlineTrackingMap(); pMap->VisitInliners(pInlinee, lambda); if (FAILED(hr)) { return hr; } EX_TRY { // InlineSArray iterator can throw for (auto it = inliners.Begin(); it != inliners.End(); ++it) { Module *inlinerModule = (*it)->GetModule(); mdMethodDef inlinerMethodDef = (*it)->GetMemberDef(); hr = UpdateActiveILVersion(pMgrToCodeActivationBatch, inlinerModule, inlinerMethodDef, fIsRevert, flags); if (FAILED(hr)) { ReportReJITError(inlinerModule, inlinerMethodDef, NULL, hr); } } } EX_CATCH_HRESULT(hr); } return hr; } // static HRESULT ReJitManager::BindILVersion( CodeVersionManager *pCodeVersionManager, PTR_Module pModule, mdMethodDef methodDef, ILCodeVersion *pILCodeVersion, COR_PRF_REJIT_FLAGS flags) { CONTRACTL { NOTHROW; GC_NOTRIGGER; MODE_PREEMPTIVE; CAN_TAKE_LOCK; PRECONDITION(CheckPointer(pCodeVersionManager)); PRECONDITION(CheckPointer(pModule)); PRECONDITION(CheckPointer(pILCodeVersion)); } CONTRACTL_END; _ASSERTE(CodeVersionManager::IsLockOwnedByCurrentThread()); _ASSERTE((pModule != NULL) && (methodDef != mdTokenNil)); // Check if there was there a previous rejit request for this method that hasn't been exposed back // to the profiler yet ILCodeVersion ilCodeVersion = pCodeVersionManager->GetActiveILCodeVersion(pModule, methodDef); BOOL fDoCallback = (flags & COR_PRF_REJIT_INLINING_CALLBACKS) == COR_PRF_REJIT_INLINING_CALLBACKS; if (ilCodeVersion.GetRejitState() == ILCodeVersion::kStateRequested) { // We can 'reuse' this instance because the profiler doesn't know about // it yet. (This likely happened because a profiler called RequestReJIT // twice in a row, without us having a chance to jmp-stamp the code yet OR // while iterating through instantiations of a generic, the iterator found // duplicate entries for the same instantiation.) // TODO: this assert likely needs to be removed. This code path should be // hit for any duplicates, and that can happen regardless of whether this // is the first ReJIT or not. _ASSERTE(ilCodeVersion.HasDefaultIL()); *pILCodeVersion = ilCodeVersion; if (fDoCallback) { // There could be a case where the method that a profiler requested ReJIT on also ends up in the // inlining graph from a different method. In that case we should override the previous setting, // but we should never override a request to get the callback with a request to suppress it. pILCodeVersion->SetEnableReJITCallback(true); } return S_FALSE; } // Either there was no ILCodeVersion yet for this MethodDesc OR whatever we've found // couldn't be reused (and needed to be reverted). Create a new ILCodeVersion to return // to the caller. HRESULT hr = pCodeVersionManager->AddILCodeVersion(pModule, methodDef, InterlockedIncrement(reinterpret_cast<LONG*>(&s_GlobalReJitId)), pILCodeVersion); pILCodeVersion->SetEnableReJITCallback(fDoCallback); return hr; } //--------------------------------------------------------------------------------------- // // ICorProfilerInfo4::RequestRevert calls into this guy to do most of the // work. Takes care of finding the appropriate ReJitManager instances to // perform the revert // // Arguments: // * cFunctions - Element count of rgModuleIDs & rgMethodDefs // * rgModuleIDs - Parallel array of ModuleIDs to revert // * rgMethodDefs - Parallel array of methodDefs to revert // * rgHrStatuses - [out] Parallel array of HRESULTs indicating success/failure // of reverting each (ModuleID, methodDef). // // Return Value: // HRESULT indicating success or failure of the overall operation. Each // individual methodDef (or MethodDesc associated with the methodDef) // may encounter its own failure, which is reported by the rgHrStatuses // [out] parameter. // // static HRESULT ReJitManager::RequestRevert( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], HRESULT rgHrStatuses[]) { CONTRACTL { NOTHROW; GC_TRIGGERS; CAN_TAKE_LOCK; MODE_PREEMPTIVE; } CONTRACTL_END; return UpdateActiveILVersions(cFunctions, rgModuleIDs, rgMethodDefs, rgHrStatuses, TRUE, static_cast<COR_PRF_REJIT_FLAGS>(0)); } // static HRESULT ReJitManager::ConfigureILCodeVersion(ILCodeVersion ilCodeVersion) { STANDARD_VM_CONTRACT; _ASSERTE(!CodeVersionManager::IsLockOwnedByCurrentThread()); HRESULT hr = S_OK; Module* pModule = ilCodeVersion.GetModule(); mdMethodDef methodDef = ilCodeVersion.GetMethodDef(); BOOL fNeedsParameters = FALSE; BOOL fWaitForParameters = FALSE; { // Serialize access to the rejit state CodeVersionManager::LockHolder codeVersioningLockHolder; switch (ilCodeVersion.GetRejitState()) { case ILCodeVersion::kStateRequested: ilCodeVersion.SetRejitState(ILCodeVersion::kStateGettingReJITParameters); fNeedsParameters = TRUE; break; case ILCodeVersion::kStateGettingReJITParameters: fWaitForParameters = TRUE; break; default: return S_OK; } } if (fNeedsParameters) { HRESULT hr = S_OK; ReleaseHolder<ProfilerFunctionControl> pFuncControl = NULL; if (ilCodeVersion.GetEnableReJITCallback()) { // Here's where we give a chance for the rejit requestor to // examine and modify the IL & codegen flags before it gets to // the JIT. This allows one to add probe calls for things like // code coverage, performance, or whatever. These will be // stored in pShared. _ASSERTE(pModule != NULL); _ASSERTE(methodDef != mdTokenNil); pFuncControl = new (nothrow)ProfilerFunctionControl(pModule->GetLoaderAllocator()->GetLowFrequencyHeap()); if (pFuncControl == NULL) { hr = E_OUTOFMEMORY; } else { BEGIN_PROFILER_CALLBACK(CORProfilerPresent()); hr = (&g_profControlBlock)->GetReJITParameters( (ModuleID)pModule, methodDef, pFuncControl); END_PROFILER_CALLBACK(); } } if (!ilCodeVersion.GetEnableReJITCallback() || FAILED(hr)) { { // Historically on failure we would revert to the kRequested state and fall-back // to the initial code gen. The next time the method ran it would try again. // // Preserving that behavior is possible, but a bit awkward now that we have // Precode swapping as well. Instead of doing that I am acting as if GetReJITParameters // had succeeded, using the original IL, no jit flags, and no modified IL mapping. // This is similar to a fallback except the profiler won't get any further attempts // to provide the parameters correctly. If the profiler wants another attempt it would // need to call RequestRejit again. // // This code path also happens if the GetReJITParameters callback was suppressed due to // the method being ReJITted as an inliner by the runtime (instead of by the user). CodeVersionManager::LockHolder codeVersioningLockHolder; if (ilCodeVersion.GetRejitState() == ILCodeVersion::kStateGettingReJITParameters) { ilCodeVersion.SetRejitState(ILCodeVersion::kStateActive); ilCodeVersion.SetIL(ILCodeVersion(pModule, methodDef).GetIL()); } } if (FAILED(hr)) { // Only call if the GetReJITParamters call failed ReportReJITError(pModule, methodDef, pModule->LookupMethodDef(methodDef), hr); } return S_OK; } else { _ASSERTE(pFuncControl != NULL); CodeVersionManager::LockHolder codeVersioningLockHolder; if (ilCodeVersion.GetRejitState() == ILCodeVersion::kStateGettingReJITParameters) { // Inside the above call to ICorProfilerCallback4::GetReJITParameters, the profiler // will have used the specified pFuncControl to provide its IL and codegen flags. // So now we transfer it out to the SharedReJitInfo. ilCodeVersion.SetJitFlags(pFuncControl->GetCodegenFlags()); ilCodeVersion.SetIL((COR_ILMETHOD*)pFuncControl->GetIL()); // ilCodeVersion is now the owner of the memory for the IL buffer ilCodeVersion.SetInstrumentedILMap(pFuncControl->GetInstrumentedMapEntryCount(), pFuncControl->GetInstrumentedMapEntries()); ilCodeVersion.SetRejitState(ILCodeVersion::kStateActive); } } } else if (fWaitForParameters) { // This feels annoying, but it doesn't appear like we have the good threading primitves // for this. What I would like is an AutoResetEvent that atomically exits the table // Crst when I wait on it. From what I can tell our AutoResetEvent doesn't have // that atomic transition which means this ordering could occur: // [Thread 1] detect kStateGettingParameters and exit table lock // [Thread 2] enter table lock, transition kStateGettingParameters -> kStateActive // [Thread 2] signal AutoResetEvent // [Thread 2] exit table lock // [Thread 1] wait on AutoResetEvent (which may never be signaled again) // // Another option would be ManualResetEvents, one for each SharedReJitInfo, but // that feels like a lot of memory overhead to handle a case which occurs rarely. // A third option would be dynamically creating ManualResetEvents in a side // dictionary on demand, but that feels like a lot of complexity for an event // that occurs rarely. // // I just ended up with this simple polling loop. Assuming profiler // writers implement GetReJITParameters performantly we will only iterate // this loop once, and even then only in the rare case of threads racing // to JIT the same IL. If this really winds up causing performance issues // We can build something more sophisticated. while (true) { { CodeVersionManager::LockHolder codeVersioningLockHolder; if (ilCodeVersion.GetRejitState() == ILCodeVersion::kStateActive) { break; // the other thread got the parameters succesfully, go race to rejit } } ClrSleepEx(1, FALSE); } } return S_OK; } #endif // DACCESS_COMPILE // The rest of the ReJitManager methods are safe to compile for DAC //--------------------------------------------------------------------------------------- // // Used by profiler to get the ReJITID corrseponding to a (MethodDesc *, PCODE) pair. // Can also be used to determine whether (MethodDesc *, PCODE) corresponds to a rejit // (vs. a regular JIT) for the purposes of deciding whether to notify the debugger about // the rejit (and building the debugger JIT info structure). // // Arguments: // * pMD - MethodDesc * of interestg // * pCodeStart - PCODE of the particular interesting JITting of that MethodDesc * // // Return Value: // 0 if no such ReJITID found (e.g., PCODE is from a JIT and not a rejit), else the // ReJITID requested. // // static ReJITID ReJitManager::GetReJitId(PTR_MethodDesc pMD, PCODE pCodeStart) { CONTRACTL { NOTHROW; CAN_TAKE_LOCK; GC_TRIGGERS; PRECONDITION(CheckPointer(pMD)); PRECONDITION(pCodeStart != NULL); } CONTRACTL_END; // Fast-path: If the rejit map is empty, no need to look up anything. Do this outside // of a lock to impact our caller (the prestub worker) as little as possible. If the // map is nonempty, we'll acquire the lock at that point and do the lookup for real. CodeVersionManager* pCodeVersionManager = pMD->GetCodeVersionManager(); if (pCodeVersionManager->GetNonDefaultILVersionCount() == 0) { return 0; } CodeVersionManager::LockHolder codeVersioningLockHolder; return ReJitManager::GetReJitIdNoLock(pMD, pCodeStart); } //--------------------------------------------------------------------------------------- // // See comment above code:ReJitManager::GetReJitId for main details of what this does. // // This function is basically the same as GetReJitId, except caller is expected to take // the ReJitManager lock directly (via ReJitManager::TableLockHolder). This exists so // that ETW can explicitly take the triggering ReJitManager lock up front, and in the // proper order, to avoid lock leveling issues, and triggering issues with other locks it // takes that are CRST_UNSAFE_ANYMODE // ReJITID ReJitManager::GetReJitIdNoLock(PTR_MethodDesc pMD, PCODE pCodeStart) { CONTRACTL { NOTHROW; CANNOT_TAKE_LOCK; GC_NOTRIGGER; PRECONDITION(CheckPointer(pMD)); PRECONDITION(pCodeStart != NULL); } CONTRACTL_END; // Caller must ensure this lock is taken! _ASSERTE(CodeVersionManager::IsLockOwnedByCurrentThread()); NativeCodeVersion nativeCodeVersion = pMD->GetCodeVersionManager()->GetNativeCodeVersion(pMD, pCodeStart); if (nativeCodeVersion.IsNull()) { return 0; } return nativeCodeVersion.GetILCodeVersion().GetVersionId(); } //--------------------------------------------------------------------------------------- // // Called by profiler to retrieve an array of ReJITIDs corresponding to a MethodDesc * // // Arguments: // * pMD - MethodDesc * to look up // * cReJitIds - Element count capacity of reJitIds // * pcReJitIds - [out] Place total count of ReJITIDs found here; may be more than // cReJitIds if profiler passed an array that's too small to hold them all // * reJitIds - [out] Place ReJITIDs found here. Count of ReJITIDs returned here is // min(cReJitIds, *pcReJitIds) // // Return Value: // * S_OK: ReJITIDs successfully returned, array is big enough // * S_FALSE: ReJITIDs successfully found, but array was not big enough. Only // cReJitIds were returned and cReJitIds < *pcReJitId (latter being the total // number of ReJITIDs available). // // static HRESULT ReJitManager::GetReJITIDs(PTR_MethodDesc pMD, ULONG cReJitIds, ULONG * pcReJitIds, ReJITID reJitIds[]) { CONTRACTL { NOTHROW; CAN_TAKE_LOCK; GC_NOTRIGGER; PRECONDITION(CheckPointer(pMD)); PRECONDITION(pcReJitIds != NULL); PRECONDITION((cReJitIds == 0) == (reJitIds == NULL)); } CONTRACTL_END; CodeVersionManager* pCodeVersionManager = pMD->GetCodeVersionManager(); CodeVersionManager::LockHolder codeVersioningLockHolder; ULONG cnt = 0; ILCodeVersionCollection ilCodeVersions = pCodeVersionManager->GetILCodeVersions(pMD); for (ILCodeVersionIterator iter = ilCodeVersions.Begin(), end = ilCodeVersions.End(); iter != end; iter++) { ILCodeVersion curILVersion = *iter; if (curILVersion.GetRejitState() == ILCodeVersion::kStateActive) { if (cnt < cReJitIds) { reJitIds[cnt] = curILVersion.GetVersionId(); } ++cnt; // no overflow _ASSERTE(cnt != 0); } } *pcReJitIds = cnt; return (cnt > cReJitIds) ? S_FALSE : S_OK; } #endif // FEATURE_CODE_VERSIONING #else // FEATURE_REJIT // On architectures that don't support rejit, just keep around some do-nothing // stubs so the rest of the VM doesn't have to be littered with #ifdef FEATURE_REJIT // static HRESULT ReJitManager::RequestReJIT( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], COR_PRF_REJIT_FLAGS flags) { return E_NOTIMPL; } // static HRESULT ReJitManager::RequestRevert( ULONG cFunctions, ModuleID rgModuleIDs[], mdMethodDef rgMethodDefs[], HRESULT rgHrStatuses[]) { return E_NOTIMPL; } ReJITID ReJitManager::GetReJitId(PTR_MethodDesc pMD, PCODE pCodeStart) { return 0; } ReJITID ReJitManager::GetReJitIdNoLock(PTR_MethodDesc pMD, PCODE pCodeStart) { return 0; } HRESULT ReJitManager::GetReJITIDs(PTR_MethodDesc pMD, ULONG cReJitIds, ULONG * pcReJitIds, ReJITID reJitIds[]) { return E_NOTIMPL; } #endif // FEATURE_REJIT
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/tests/JIT/jit64/mcc/interop/native_i6s.cpp
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdio.h> #include "native.h" MCC_API VType6 WINAPI sum( unsigned __int64 c1, VType6 v1, double c2, VType6 v2, float c3, VType6 v3, int c4, VType6 v4, unsigned short c5, VType6 v5, unsigned int c6, VType6 v6, float c7, VType6 v7, __int64 c8, VType6 v8, float c9, VType6 v9, double c10, VType6 v10, float c11, VType6 v11, short c12, VType6 v12) { VType6 res; // zero out res res.reset(); // check values of parameters c1 thru c12 int nfail = 12; if (c1 != (unsigned __int64)1) { printf("ERROR! Parameter c1 => expected %d, actual %d.\n", 1, (int)c1); } else { nfail--; } if (c2 != (double)2.0) { printf("ERROR! Parameter c2 => expected %d, actual %d.\n", 2, (int)c2); } else { nfail--; } if (c3 != (float)3.0) { printf("ERROR! Parameter c3 => expected %d, actual %d.\n", 3, (int)c3); } else { nfail--; } if (c4 != (int)4) { printf("ERROR! Parameter c4 => expected %d, actual %d.\n", 4, (int)c4); } else { nfail--; } if (c5 != (unsigned short)5) { printf("ERROR! Parameter c5 => expected %d, actual %d.\n", 5, (int)c5); } else { nfail--; } if (c6 != (unsigned int)6) { printf("ERROR! Parameter c6 => expected %d, actual %d.\n", 6, (int)c6); } else { nfail--; } if (c7 != (float)7.0) { printf("ERROR! Parameter c7 => expected %d, actual %d.\n", 7, (int)c7); } else { nfail--; } if (c8 != (__int64)8) { printf("ERROR! Parameter c8 => expected %d, actual %d.\n", 8, (int)c8); } else { nfail--; } if (c9 != (float)9.0) { printf("ERROR! Parameter c9 => expected %d, actual %d.\n", 9, (int)c9); } else { nfail--; } if (c10 != (double)10.0) { printf("ERROR! Parameter c10 => expected %d, actual %d.\n", 10, (int)c10); } else { nfail--; } if (c11 != (float)11.0) { printf("ERROR! Parameter c11 => expected %d, actual %d.\n", 11, (int)c11); } else { nfail--; } if (c12 != (short)12) { printf("ERROR! Parameter c12 => expected %d, actual %d.\n", 12, (int)c12); } else { nfail--; } if (nfail == 0) { res.add(v1); res.add(v2); res.add(v3); res.add(v4); res.add(v5); res.add(v6); res.add(v7); res.add(v8); res.add(v9); res.add(v10); res.add(v11); res.add(v12); } return res; }
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdio.h> #include "native.h" MCC_API VType6 WINAPI sum( unsigned __int64 c1, VType6 v1, double c2, VType6 v2, float c3, VType6 v3, int c4, VType6 v4, unsigned short c5, VType6 v5, unsigned int c6, VType6 v6, float c7, VType6 v7, __int64 c8, VType6 v8, float c9, VType6 v9, double c10, VType6 v10, float c11, VType6 v11, short c12, VType6 v12) { VType6 res; // zero out res res.reset(); // check values of parameters c1 thru c12 int nfail = 12; if (c1 != (unsigned __int64)1) { printf("ERROR! Parameter c1 => expected %d, actual %d.\n", 1, (int)c1); } else { nfail--; } if (c2 != (double)2.0) { printf("ERROR! Parameter c2 => expected %d, actual %d.\n", 2, (int)c2); } else { nfail--; } if (c3 != (float)3.0) { printf("ERROR! Parameter c3 => expected %d, actual %d.\n", 3, (int)c3); } else { nfail--; } if (c4 != (int)4) { printf("ERROR! Parameter c4 => expected %d, actual %d.\n", 4, (int)c4); } else { nfail--; } if (c5 != (unsigned short)5) { printf("ERROR! Parameter c5 => expected %d, actual %d.\n", 5, (int)c5); } else { nfail--; } if (c6 != (unsigned int)6) { printf("ERROR! Parameter c6 => expected %d, actual %d.\n", 6, (int)c6); } else { nfail--; } if (c7 != (float)7.0) { printf("ERROR! Parameter c7 => expected %d, actual %d.\n", 7, (int)c7); } else { nfail--; } if (c8 != (__int64)8) { printf("ERROR! Parameter c8 => expected %d, actual %d.\n", 8, (int)c8); } else { nfail--; } if (c9 != (float)9.0) { printf("ERROR! Parameter c9 => expected %d, actual %d.\n", 9, (int)c9); } else { nfail--; } if (c10 != (double)10.0) { printf("ERROR! Parameter c10 => expected %d, actual %d.\n", 10, (int)c10); } else { nfail--; } if (c11 != (float)11.0) { printf("ERROR! Parameter c11 => expected %d, actual %d.\n", 11, (int)c11); } else { nfail--; } if (c12 != (short)12) { printf("ERROR! Parameter c12 => expected %d, actual %d.\n", 12, (int)c12); } else { nfail--; } if (nfail == 0) { res.add(v1); res.add(v2); res.add(v3); res.add(v4); res.add(v5); res.add(v6); res.add(v7); res.add(v8); res.add(v9); res.add(v10); res.add(v11); res.add(v12); } return res; }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/native/libs/System.Native/pal_interfaceaddresses.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "pal_compiler.h" #include "pal_maphardwaretype.h" #include "pal_types.h" typedef enum { OperationalStatus_Up = 1, OperationalStatus_Down = 2, OperationalStatus_Unknown = 4, OperationalStatus_LowerLayerDown = 7, } OperationalStatus; typedef struct { uint32_t InterfaceIndex; // The index of the interface to which this address belongs. uint8_t AddressBytes[8]; // A pointer to the bytes containing the address. uint8_t NumAddressBytes; // The number of bytes actually stored in the address. uint8_t _padding; uint16_t HardwareType; } LinkLayerAddressInfo; typedef struct { uint32_t InterfaceIndex; uint8_t AddressBytes[16]; uint8_t NumAddressBytes; uint8_t PrefixLength; uint8_t _padding[2]; } IpAddressInfo; typedef struct { char Name[16]; // OS Interface name. int64_t Speed; // Link speed for physical interfaces. uint32_t InterfaceIndex; // Interface index. int32_t Mtu; // Interface MTU. uint16_t HardwareType; // Interface mapped from L2 to NetworkInterfaceType. uint8_t OperationalState; // Operational status. uint8_t NumAddressBytes; // The number of bytes actually stored in the address. uint8_t AddressBytes[8]; // Link address. uint8_t SupportsMulticast; // Interface supports multicast. uint8_t _padding[3]; } NetworkInterfaceInfo; typedef void (*IPv4AddressFound)(void* context, const char* interfaceName, IpAddressInfo* addressInfo); typedef void (*IPv6AddressFound)(void* context, const char* interfaceName, IpAddressInfo* info, uint32_t* scopeId); typedef void (*LinkLayerAddressFound)(void* context, const char* interfaceName, LinkLayerAddressInfo* llAddress); typedef void (*GatewayAddressFound)(void* context, IpAddressInfo* addressInfo); PALEXPORT int32_t SystemNative_EnumerateInterfaceAddresses( void* context, IPv4AddressFound onIpv4Found, IPv6AddressFound onIpv6Found, LinkLayerAddressFound onLinkLayerFound); PALEXPORT int32_t SystemNative_GetNetworkInterfaces(int32_t * interfaceCount, NetworkInterfaceInfo** interfaces, int32_t * addressCount, IpAddressInfo **addressList); PALEXPORT int32_t SystemNative_EnumerateGatewayAddressesForInterface(void* context, uint32_t interfaceIndex, GatewayAddressFound onGatewayFound);
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma once #include "pal_compiler.h" #include "pal_maphardwaretype.h" #include "pal_types.h" typedef enum { OperationalStatus_Up = 1, OperationalStatus_Down = 2, OperationalStatus_Unknown = 4, OperationalStatus_LowerLayerDown = 7, } OperationalStatus; typedef struct { uint32_t InterfaceIndex; // The index of the interface to which this address belongs. uint8_t AddressBytes[8]; // A pointer to the bytes containing the address. uint8_t NumAddressBytes; // The number of bytes actually stored in the address. uint8_t _padding; uint16_t HardwareType; } LinkLayerAddressInfo; typedef struct { uint32_t InterfaceIndex; uint8_t AddressBytes[16]; uint8_t NumAddressBytes; uint8_t PrefixLength; uint8_t _padding[2]; } IpAddressInfo; typedef struct { char Name[16]; // OS Interface name. int64_t Speed; // Link speed for physical interfaces. uint32_t InterfaceIndex; // Interface index. int32_t Mtu; // Interface MTU. uint16_t HardwareType; // Interface mapped from L2 to NetworkInterfaceType. uint8_t OperationalState; // Operational status. uint8_t NumAddressBytes; // The number of bytes actually stored in the address. uint8_t AddressBytes[8]; // Link address. uint8_t SupportsMulticast; // Interface supports multicast. uint8_t _padding[3]; } NetworkInterfaceInfo; typedef void (*IPv4AddressFound)(void* context, const char* interfaceName, IpAddressInfo* addressInfo); typedef void (*IPv6AddressFound)(void* context, const char* interfaceName, IpAddressInfo* info, uint32_t* scopeId); typedef void (*LinkLayerAddressFound)(void* context, const char* interfaceName, LinkLayerAddressInfo* llAddress); typedef void (*GatewayAddressFound)(void* context, IpAddressInfo* addressInfo); PALEXPORT int32_t SystemNative_EnumerateInterfaceAddresses( void* context, IPv4AddressFound onIpv4Found, IPv6AddressFound onIpv6Found, LinkLayerAddressFound onLinkLayerFound); PALEXPORT int32_t SystemNative_GetNetworkInterfaces(int32_t * interfaceCount, NetworkInterfaceInfo** interfaces, int32_t * addressCount, IpAddressInfo **addressList); PALEXPORT int32_t SystemNative_EnumerateGatewayAddressesForInterface(void* context, uint32_t interfaceIndex, GatewayAddressFound onGatewayFound);
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/coreclr/inc/icorjitinfoimpl_generated.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // DO NOT EDIT THIS FILE! IT IS AUTOGENERATED // To regenerate run the gen script in src/coreclr/tools/Common/JitInterface/ThunkGenerator // and follow the instructions in docs/project/updating-jitinterface.md // ICorJitInfoImpl: declare for implementation all the members of the ICorJitInfo interface (which are // specified as pure virtual methods). This is done once, here, and all implementations share it, // to avoid duplicated declarations. This file is #include'd within all the ICorJitInfo implementation // classes. // // NOTE: this file is in exactly the same order, with exactly the same whitespace, as the ICorJitInfo // interface declaration (with the "virtual" and "= 0" syntax removed). This is to make it easy to compare // against the interface declaration. /**********************************************************************************/ // clang-format off /**********************************************************************************/ public: bool isIntrinsic( CORINFO_METHOD_HANDLE ftn) override; uint32_t getMethodAttribs( CORINFO_METHOD_HANDLE ftn) override; void setMethodAttribs( CORINFO_METHOD_HANDLE ftn, CorInfoMethodRuntimeFlags attribs) override; void getMethodSig( CORINFO_METHOD_HANDLE ftn, CORINFO_SIG_INFO* sig, CORINFO_CLASS_HANDLE memberParent) override; bool getMethodInfo( CORINFO_METHOD_HANDLE ftn, CORINFO_METHOD_INFO* info) override; CorInfoInline canInline( CORINFO_METHOD_HANDLE callerHnd, CORINFO_METHOD_HANDLE calleeHnd) override; void reportInliningDecision( CORINFO_METHOD_HANDLE inlinerHnd, CORINFO_METHOD_HANDLE inlineeHnd, CorInfoInline inlineResult, const char* reason) override; bool canTailCall( CORINFO_METHOD_HANDLE callerHnd, CORINFO_METHOD_HANDLE declaredCalleeHnd, CORINFO_METHOD_HANDLE exactCalleeHnd, bool fIsTailPrefix) override; void reportTailCallDecision( CORINFO_METHOD_HANDLE callerHnd, CORINFO_METHOD_HANDLE calleeHnd, bool fIsTailPrefix, CorInfoTailCall tailCallResult, const char* reason) override; void getEHinfo( CORINFO_METHOD_HANDLE ftn, unsigned EHnumber, CORINFO_EH_CLAUSE* clause) override; CORINFO_CLASS_HANDLE getMethodClass( CORINFO_METHOD_HANDLE method) override; CORINFO_MODULE_HANDLE getMethodModule( CORINFO_METHOD_HANDLE method) override; void getMethodVTableOffset( CORINFO_METHOD_HANDLE method, unsigned* offsetOfIndirection, unsigned* offsetAfterIndirection, bool* isRelative) override; bool resolveVirtualMethod( CORINFO_DEVIRTUALIZATION_INFO* info) override; CORINFO_METHOD_HANDLE getUnboxedEntry( CORINFO_METHOD_HANDLE ftn, bool* requiresInstMethodTableArg) override; CORINFO_CLASS_HANDLE getDefaultComparerClass( CORINFO_CLASS_HANDLE elemType) override; CORINFO_CLASS_HANDLE getDefaultEqualityComparerClass( CORINFO_CLASS_HANDLE elemType) override; void expandRawHandleIntrinsic( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_GENERICHANDLE_RESULT* pResult) override; bool isIntrinsicType( CORINFO_CLASS_HANDLE classHnd) override; CorInfoCallConvExtension getUnmanagedCallConv( CORINFO_METHOD_HANDLE method, CORINFO_SIG_INFO* callSiteSig, bool* pSuppressGCTransition) override; bool pInvokeMarshalingRequired( CORINFO_METHOD_HANDLE method, CORINFO_SIG_INFO* callSiteSig) override; bool satisfiesMethodConstraints( CORINFO_CLASS_HANDLE parent, CORINFO_METHOD_HANDLE method) override; bool isCompatibleDelegate( CORINFO_CLASS_HANDLE objCls, CORINFO_CLASS_HANDLE methodParentCls, CORINFO_METHOD_HANDLE method, CORINFO_CLASS_HANDLE delegateCls, bool* pfIsOpenDelegate) override; void methodMustBeLoadedBeforeCodeIsRun( CORINFO_METHOD_HANDLE method) override; CORINFO_METHOD_HANDLE mapMethodDeclToMethodImpl( CORINFO_METHOD_HANDLE method) override; void getGSCookie( GSCookie* pCookieVal, GSCookie** ppCookieVal) override; void setPatchpointInfo( PatchpointInfo* patchpointInfo) override; PatchpointInfo* getOSRInfo( unsigned* ilOffset) override; void resolveToken( CORINFO_RESOLVED_TOKEN* pResolvedToken) override; bool tryResolveToken( CORINFO_RESOLVED_TOKEN* pResolvedToken) override; void findSig( CORINFO_MODULE_HANDLE module, unsigned sigTOK, CORINFO_CONTEXT_HANDLE context, CORINFO_SIG_INFO* sig) override; void findCallSiteSig( CORINFO_MODULE_HANDLE module, unsigned methTOK, CORINFO_CONTEXT_HANDLE context, CORINFO_SIG_INFO* sig) override; CORINFO_CLASS_HANDLE getTokenTypeAsHandle( CORINFO_RESOLVED_TOKEN* pResolvedToken) override; bool isValidToken( CORINFO_MODULE_HANDLE module, unsigned metaTOK) override; bool isValidStringRef( CORINFO_MODULE_HANDLE module, unsigned metaTOK) override; const char16_t* getStringLiteral( CORINFO_MODULE_HANDLE module, unsigned metaTOK, int* length) override; CorInfoType asCorInfoType( CORINFO_CLASS_HANDLE cls) override; const char* getClassName( CORINFO_CLASS_HANDLE cls) override; const char* getClassNameFromMetadata( CORINFO_CLASS_HANDLE cls, const char** namespaceName) override; CORINFO_CLASS_HANDLE getTypeInstantiationArgument( CORINFO_CLASS_HANDLE cls, unsigned index) override; int appendClassName( char16_t** ppBuf, int* pnBufLen, CORINFO_CLASS_HANDLE cls, bool fNamespace, bool fFullInst, bool fAssembly) override; bool isValueClass( CORINFO_CLASS_HANDLE cls) override; CorInfoInlineTypeCheck canInlineTypeCheck( CORINFO_CLASS_HANDLE cls, CorInfoInlineTypeCheckSource source) override; uint32_t getClassAttribs( CORINFO_CLASS_HANDLE cls) override; CORINFO_MODULE_HANDLE getClassModule( CORINFO_CLASS_HANDLE cls) override; CORINFO_ASSEMBLY_HANDLE getModuleAssembly( CORINFO_MODULE_HANDLE mod) override; const char* getAssemblyName( CORINFO_ASSEMBLY_HANDLE assem) override; void* LongLifetimeMalloc( size_t sz) override; void LongLifetimeFree( void* obj) override; size_t getClassModuleIdForStatics( CORINFO_CLASS_HANDLE cls, CORINFO_MODULE_HANDLE* pModule, void** ppIndirection) override; unsigned getClassSize( CORINFO_CLASS_HANDLE cls) override; unsigned getHeapClassSize( CORINFO_CLASS_HANDLE cls) override; bool canAllocateOnStack( CORINFO_CLASS_HANDLE cls) override; unsigned getClassAlignmentRequirement( CORINFO_CLASS_HANDLE cls, bool fDoubleAlignHint) override; unsigned getClassGClayout( CORINFO_CLASS_HANDLE cls, uint8_t* gcPtrs) override; unsigned getClassNumInstanceFields( CORINFO_CLASS_HANDLE cls) override; CORINFO_FIELD_HANDLE getFieldInClass( CORINFO_CLASS_HANDLE clsHnd, int32_t num) override; bool checkMethodModifier( CORINFO_METHOD_HANDLE hMethod, const char* modifier, bool fOptional) override; CorInfoHelpFunc getNewHelper( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_METHOD_HANDLE callerHandle, bool* pHasSideEffects) override; CorInfoHelpFunc getNewArrHelper( CORINFO_CLASS_HANDLE arrayCls) override; CorInfoHelpFunc getCastingHelper( CORINFO_RESOLVED_TOKEN* pResolvedToken, bool fThrowing) override; CorInfoHelpFunc getSharedCCtorHelper( CORINFO_CLASS_HANDLE clsHnd) override; CORINFO_CLASS_HANDLE getTypeForBox( CORINFO_CLASS_HANDLE cls) override; CorInfoHelpFunc getBoxHelper( CORINFO_CLASS_HANDLE cls) override; CorInfoHelpFunc getUnBoxHelper( CORINFO_CLASS_HANDLE cls) override; bool getReadyToRunHelper( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_LOOKUP_KIND* pGenericLookupKind, CorInfoHelpFunc id, CORINFO_CONST_LOOKUP* pLookup) override; void getReadyToRunDelegateCtorHelper( CORINFO_RESOLVED_TOKEN* pTargetMethod, CORINFO_CLASS_HANDLE delegateType, CORINFO_LOOKUP* pLookup) override; const char* getHelperName( CorInfoHelpFunc helpFunc) override; CorInfoInitClassResult initClass( CORINFO_FIELD_HANDLE field, CORINFO_METHOD_HANDLE method, CORINFO_CONTEXT_HANDLE context) override; void classMustBeLoadedBeforeCodeIsRun( CORINFO_CLASS_HANDLE cls) override; CORINFO_CLASS_HANDLE getBuiltinClass( CorInfoClassId classId) override; CorInfoType getTypeForPrimitiveValueClass( CORINFO_CLASS_HANDLE cls) override; CorInfoType getTypeForPrimitiveNumericClass( CORINFO_CLASS_HANDLE cls) override; bool canCast( CORINFO_CLASS_HANDLE child, CORINFO_CLASS_HANDLE parent) override; bool areTypesEquivalent( CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2) override; TypeCompareState compareTypesForCast( CORINFO_CLASS_HANDLE fromClass, CORINFO_CLASS_HANDLE toClass) override; TypeCompareState compareTypesForEquality( CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2) override; CORINFO_CLASS_HANDLE mergeClasses( CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2) override; bool isMoreSpecificType( CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2) override; CORINFO_CLASS_HANDLE getParentType( CORINFO_CLASS_HANDLE cls) override; CorInfoType getChildType( CORINFO_CLASS_HANDLE clsHnd, CORINFO_CLASS_HANDLE* clsRet) override; bool satisfiesClassConstraints( CORINFO_CLASS_HANDLE cls) override; bool isSDArray( CORINFO_CLASS_HANDLE cls) override; unsigned getArrayRank( CORINFO_CLASS_HANDLE cls) override; CorInfoArrayIntrinsic getArrayIntrinsicID( CORINFO_METHOD_HANDLE ftn) override; void* getArrayInitializationData( CORINFO_FIELD_HANDLE field, uint32_t size) override; CorInfoIsAccessAllowedResult canAccessClass( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_METHOD_HANDLE callerHandle, CORINFO_HELPER_DESC* pAccessHelper) override; const char* getFieldName( CORINFO_FIELD_HANDLE ftn, const char** moduleName) override; CORINFO_CLASS_HANDLE getFieldClass( CORINFO_FIELD_HANDLE field) override; CorInfoType getFieldType( CORINFO_FIELD_HANDLE field, CORINFO_CLASS_HANDLE* structType, CORINFO_CLASS_HANDLE memberParent) override; unsigned getFieldOffset( CORINFO_FIELD_HANDLE field) override; void getFieldInfo( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_METHOD_HANDLE callerHandle, CORINFO_ACCESS_FLAGS flags, CORINFO_FIELD_INFO* pResult) override; bool isFieldStatic( CORINFO_FIELD_HANDLE fldHnd) override; void getBoundaries( CORINFO_METHOD_HANDLE ftn, unsigned int* cILOffsets, uint32_t** pILOffsets, ICorDebugInfo::BoundaryTypes* implicitBoundaries) override; void setBoundaries( CORINFO_METHOD_HANDLE ftn, uint32_t cMap, ICorDebugInfo::OffsetMapping* pMap) override; void getVars( CORINFO_METHOD_HANDLE ftn, uint32_t* cVars, ICorDebugInfo::ILVarInfo** vars, bool* extendOthers) override; void setVars( CORINFO_METHOD_HANDLE ftn, uint32_t cVars, ICorDebugInfo::NativeVarInfo* vars) override; void* allocateArray( size_t cBytes) override; void freeArray( void* array) override; CORINFO_ARG_LIST_HANDLE getArgNext( CORINFO_ARG_LIST_HANDLE args) override; CorInfoTypeWithMod getArgType( CORINFO_SIG_INFO* sig, CORINFO_ARG_LIST_HANDLE args, CORINFO_CLASS_HANDLE* vcTypeRet) override; CORINFO_CLASS_HANDLE getArgClass( CORINFO_SIG_INFO* sig, CORINFO_ARG_LIST_HANDLE args) override; CorInfoHFAElemType getHFAType( CORINFO_CLASS_HANDLE hClass) override; JITINTERFACE_HRESULT GetErrorHRESULT( struct _EXCEPTION_POINTERS* pExceptionPointers) override; uint32_t GetErrorMessage( char16_t* buffer, uint32_t bufferLength) override; int FilterException( struct _EXCEPTION_POINTERS* pExceptionPointers) override; void ThrowExceptionForJitResult( JITINTERFACE_HRESULT result) override; void ThrowExceptionForHelper( const CORINFO_HELPER_DESC* throwHelper) override; bool runWithErrorTrap( ICorJitInfo::errorTrapFunction function, void* parameter) override; bool runWithSPMIErrorTrap( ICorJitInfo::errorTrapFunction function, void* parameter) override; void getEEInfo( CORINFO_EE_INFO* pEEInfoOut) override; const char16_t* getJitTimeLogFilename() override; mdMethodDef getMethodDefFromMethod( CORINFO_METHOD_HANDLE hMethod) override; const char* getMethodName( CORINFO_METHOD_HANDLE ftn, const char** moduleName) override; const char* getMethodNameFromMetadata( CORINFO_METHOD_HANDLE ftn, const char** className, const char** namespaceName, const char** enclosingClassName) override; unsigned getMethodHash( CORINFO_METHOD_HANDLE ftn) override; size_t findNameOfToken( CORINFO_MODULE_HANDLE moduleHandle, mdToken token, char* szFQName, size_t FQNameCapacity) override; bool getSystemVAmd64PassStructInRegisterDescriptor( CORINFO_CLASS_HANDLE structHnd, SYSTEMV_AMD64_CORINFO_STRUCT_REG_PASSING_DESCRIPTOR* structPassInRegDescPtr) override; uint32_t getLoongArch64PassStructInRegisterFlags( CORINFO_CLASS_HANDLE structHnd) override; uint32_t getThreadTLSIndex( void** ppIndirection) override; const void* getInlinedCallFrameVptr( void** ppIndirection) override; int32_t* getAddrOfCaptureThreadGlobal( void** ppIndirection) override; void* getHelperFtn( CorInfoHelpFunc ftnNum, void** ppIndirection) override; void getFunctionEntryPoint( CORINFO_METHOD_HANDLE ftn, CORINFO_CONST_LOOKUP* pResult, CORINFO_ACCESS_FLAGS accessFlags) override; void getFunctionFixedEntryPoint( CORINFO_METHOD_HANDLE ftn, bool isUnsafeFunctionPointer, CORINFO_CONST_LOOKUP* pResult) override; void* getMethodSync( CORINFO_METHOD_HANDLE ftn, void** ppIndirection) override; CorInfoHelpFunc getLazyStringLiteralHelper( CORINFO_MODULE_HANDLE handle) override; CORINFO_MODULE_HANDLE embedModuleHandle( CORINFO_MODULE_HANDLE handle, void** ppIndirection) override; CORINFO_CLASS_HANDLE embedClassHandle( CORINFO_CLASS_HANDLE handle, void** ppIndirection) override; CORINFO_METHOD_HANDLE embedMethodHandle( CORINFO_METHOD_HANDLE handle, void** ppIndirection) override; CORINFO_FIELD_HANDLE embedFieldHandle( CORINFO_FIELD_HANDLE handle, void** ppIndirection) override; void embedGenericHandle( CORINFO_RESOLVED_TOKEN* pResolvedToken, bool fEmbedParent, CORINFO_GENERICHANDLE_RESULT* pResult) override; void getLocationOfThisType( CORINFO_METHOD_HANDLE context, CORINFO_LOOKUP_KIND* pLookupKind) override; void getAddressOfPInvokeTarget( CORINFO_METHOD_HANDLE method, CORINFO_CONST_LOOKUP* pLookup) override; void* GetCookieForPInvokeCalliSig( CORINFO_SIG_INFO* szMetaSig, void** ppIndirection) override; bool canGetCookieForPInvokeCalliSig( CORINFO_SIG_INFO* szMetaSig) override; CORINFO_JUST_MY_CODE_HANDLE getJustMyCodeHandle( CORINFO_METHOD_HANDLE method, CORINFO_JUST_MY_CODE_HANDLE** ppIndirection) override; void GetProfilingHandle( bool* pbHookFunction, void** pProfilerHandle, bool* pbIndirectedHandles) override; void getCallInfo( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_RESOLVED_TOKEN* pConstrainedResolvedToken, CORINFO_METHOD_HANDLE callerHandle, CORINFO_CALLINFO_FLAGS flags, CORINFO_CALL_INFO* pResult) override; bool canAccessFamily( CORINFO_METHOD_HANDLE hCaller, CORINFO_CLASS_HANDLE hInstanceType) override; bool isRIDClassDomainID( CORINFO_CLASS_HANDLE cls) override; unsigned getClassDomainID( CORINFO_CLASS_HANDLE cls, void** ppIndirection) override; void* getFieldAddress( CORINFO_FIELD_HANDLE field, void** ppIndirection) override; CORINFO_CLASS_HANDLE getStaticFieldCurrentClass( CORINFO_FIELD_HANDLE field, bool* pIsSpeculative) override; CORINFO_VARARGS_HANDLE getVarArgsHandle( CORINFO_SIG_INFO* pSig, void** ppIndirection) override; bool canGetVarArgsHandle( CORINFO_SIG_INFO* pSig) override; InfoAccessType constructStringLiteral( CORINFO_MODULE_HANDLE module, mdToken metaTok, void** ppValue) override; InfoAccessType emptyStringLiteral( void** ppValue) override; uint32_t getFieldThreadLocalStoreID( CORINFO_FIELD_HANDLE field, void** ppIndirection) override; void addActiveDependency( CORINFO_MODULE_HANDLE moduleFrom, CORINFO_MODULE_HANDLE moduleTo) override; CORINFO_METHOD_HANDLE GetDelegateCtor( CORINFO_METHOD_HANDLE methHnd, CORINFO_CLASS_HANDLE clsHnd, CORINFO_METHOD_HANDLE targetMethodHnd, DelegateCtorArgs* pCtorData) override; void MethodCompileComplete( CORINFO_METHOD_HANDLE methHnd) override; bool getTailCallHelpers( CORINFO_RESOLVED_TOKEN* callToken, CORINFO_SIG_INFO* sig, CORINFO_GET_TAILCALL_HELPERS_FLAGS flags, CORINFO_TAILCALL_HELPERS* pResult) override; bool convertPInvokeCalliToCall( CORINFO_RESOLVED_TOKEN* pResolvedToken, bool mustConvert) override; bool notifyInstructionSetUsage( CORINFO_InstructionSet instructionSet, bool supportEnabled) override; void updateEntryPointForTailCall( CORINFO_CONST_LOOKUP* entryPoint) override; void allocMem( AllocMemArgs* pArgs) override; void reserveUnwindInfo( bool isFunclet, bool isColdCode, uint32_t unwindSize) override; void allocUnwindInfo( uint8_t* pHotCode, uint8_t* pColdCode, uint32_t startOffset, uint32_t endOffset, uint32_t unwindSize, uint8_t* pUnwindBlock, CorJitFuncKind funcKind) override; void* allocGCInfo( size_t size) override; void setEHcount( unsigned cEH) override; void setEHinfo( unsigned EHnumber, const CORINFO_EH_CLAUSE* clause) override; bool logMsg( unsigned level, const char* fmt, va_list args) override; int doAssert( const char* szFile, int iLine, const char* szExpr) override; void reportFatalError( CorJitResult result) override; JITINTERFACE_HRESULT getPgoInstrumentationResults( CORINFO_METHOD_HANDLE ftnHnd, ICorJitInfo::PgoInstrumentationSchema** pSchema, uint32_t* pCountSchemaItems, uint8_t** pInstrumentationData, ICorJitInfo::PgoSource* pgoSource) override; JITINTERFACE_HRESULT allocPgoInstrumentationBySchema( CORINFO_METHOD_HANDLE ftnHnd, ICorJitInfo::PgoInstrumentationSchema* pSchema, uint32_t countSchemaItems, uint8_t** pInstrumentationData) override; void recordCallSite( uint32_t instrOffset, CORINFO_SIG_INFO* callSig, CORINFO_METHOD_HANDLE methodHandle) override; void recordRelocation( void* location, void* locationRW, void* target, uint16_t fRelocType, uint16_t slotNum, int32_t addlDelta) override; uint16_t getRelocTypeHint( void* target) override; uint32_t getExpectedTargetArchitecture() override; uint32_t getJitFlags( CORJIT_FLAGS* flags, uint32_t sizeInBytes) override; bool doesFieldBelongToClass( CORINFO_FIELD_HANDLE fldHnd, CORINFO_CLASS_HANDLE cls) override; /**********************************************************************************/ // clang-format on /**********************************************************************************/
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // DO NOT EDIT THIS FILE! IT IS AUTOGENERATED // To regenerate run the gen script in src/coreclr/tools/Common/JitInterface/ThunkGenerator // and follow the instructions in docs/project/updating-jitinterface.md // ICorJitInfoImpl: declare for implementation all the members of the ICorJitInfo interface (which are // specified as pure virtual methods). This is done once, here, and all implementations share it, // to avoid duplicated declarations. This file is #include'd within all the ICorJitInfo implementation // classes. // // NOTE: this file is in exactly the same order, with exactly the same whitespace, as the ICorJitInfo // interface declaration (with the "virtual" and "= 0" syntax removed). This is to make it easy to compare // against the interface declaration. /**********************************************************************************/ // clang-format off /**********************************************************************************/ public: bool isIntrinsic( CORINFO_METHOD_HANDLE ftn) override; uint32_t getMethodAttribs( CORINFO_METHOD_HANDLE ftn) override; void setMethodAttribs( CORINFO_METHOD_HANDLE ftn, CorInfoMethodRuntimeFlags attribs) override; void getMethodSig( CORINFO_METHOD_HANDLE ftn, CORINFO_SIG_INFO* sig, CORINFO_CLASS_HANDLE memberParent) override; bool getMethodInfo( CORINFO_METHOD_HANDLE ftn, CORINFO_METHOD_INFO* info) override; CorInfoInline canInline( CORINFO_METHOD_HANDLE callerHnd, CORINFO_METHOD_HANDLE calleeHnd) override; void reportInliningDecision( CORINFO_METHOD_HANDLE inlinerHnd, CORINFO_METHOD_HANDLE inlineeHnd, CorInfoInline inlineResult, const char* reason) override; bool canTailCall( CORINFO_METHOD_HANDLE callerHnd, CORINFO_METHOD_HANDLE declaredCalleeHnd, CORINFO_METHOD_HANDLE exactCalleeHnd, bool fIsTailPrefix) override; void reportTailCallDecision( CORINFO_METHOD_HANDLE callerHnd, CORINFO_METHOD_HANDLE calleeHnd, bool fIsTailPrefix, CorInfoTailCall tailCallResult, const char* reason) override; void getEHinfo( CORINFO_METHOD_HANDLE ftn, unsigned EHnumber, CORINFO_EH_CLAUSE* clause) override; CORINFO_CLASS_HANDLE getMethodClass( CORINFO_METHOD_HANDLE method) override; CORINFO_MODULE_HANDLE getMethodModule( CORINFO_METHOD_HANDLE method) override; void getMethodVTableOffset( CORINFO_METHOD_HANDLE method, unsigned* offsetOfIndirection, unsigned* offsetAfterIndirection, bool* isRelative) override; bool resolveVirtualMethod( CORINFO_DEVIRTUALIZATION_INFO* info) override; CORINFO_METHOD_HANDLE getUnboxedEntry( CORINFO_METHOD_HANDLE ftn, bool* requiresInstMethodTableArg) override; CORINFO_CLASS_HANDLE getDefaultComparerClass( CORINFO_CLASS_HANDLE elemType) override; CORINFO_CLASS_HANDLE getDefaultEqualityComparerClass( CORINFO_CLASS_HANDLE elemType) override; void expandRawHandleIntrinsic( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_GENERICHANDLE_RESULT* pResult) override; bool isIntrinsicType( CORINFO_CLASS_HANDLE classHnd) override; CorInfoCallConvExtension getUnmanagedCallConv( CORINFO_METHOD_HANDLE method, CORINFO_SIG_INFO* callSiteSig, bool* pSuppressGCTransition) override; bool pInvokeMarshalingRequired( CORINFO_METHOD_HANDLE method, CORINFO_SIG_INFO* callSiteSig) override; bool satisfiesMethodConstraints( CORINFO_CLASS_HANDLE parent, CORINFO_METHOD_HANDLE method) override; bool isCompatibleDelegate( CORINFO_CLASS_HANDLE objCls, CORINFO_CLASS_HANDLE methodParentCls, CORINFO_METHOD_HANDLE method, CORINFO_CLASS_HANDLE delegateCls, bool* pfIsOpenDelegate) override; void methodMustBeLoadedBeforeCodeIsRun( CORINFO_METHOD_HANDLE method) override; CORINFO_METHOD_HANDLE mapMethodDeclToMethodImpl( CORINFO_METHOD_HANDLE method) override; void getGSCookie( GSCookie* pCookieVal, GSCookie** ppCookieVal) override; void setPatchpointInfo( PatchpointInfo* patchpointInfo) override; PatchpointInfo* getOSRInfo( unsigned* ilOffset) override; void resolveToken( CORINFO_RESOLVED_TOKEN* pResolvedToken) override; bool tryResolveToken( CORINFO_RESOLVED_TOKEN* pResolvedToken) override; void findSig( CORINFO_MODULE_HANDLE module, unsigned sigTOK, CORINFO_CONTEXT_HANDLE context, CORINFO_SIG_INFO* sig) override; void findCallSiteSig( CORINFO_MODULE_HANDLE module, unsigned methTOK, CORINFO_CONTEXT_HANDLE context, CORINFO_SIG_INFO* sig) override; CORINFO_CLASS_HANDLE getTokenTypeAsHandle( CORINFO_RESOLVED_TOKEN* pResolvedToken) override; bool isValidToken( CORINFO_MODULE_HANDLE module, unsigned metaTOK) override; bool isValidStringRef( CORINFO_MODULE_HANDLE module, unsigned metaTOK) override; const char16_t* getStringLiteral( CORINFO_MODULE_HANDLE module, unsigned metaTOK, int* length) override; CorInfoType asCorInfoType( CORINFO_CLASS_HANDLE cls) override; const char* getClassName( CORINFO_CLASS_HANDLE cls) override; const char* getClassNameFromMetadata( CORINFO_CLASS_HANDLE cls, const char** namespaceName) override; CORINFO_CLASS_HANDLE getTypeInstantiationArgument( CORINFO_CLASS_HANDLE cls, unsigned index) override; int appendClassName( char16_t** ppBuf, int* pnBufLen, CORINFO_CLASS_HANDLE cls, bool fNamespace, bool fFullInst, bool fAssembly) override; bool isValueClass( CORINFO_CLASS_HANDLE cls) override; CorInfoInlineTypeCheck canInlineTypeCheck( CORINFO_CLASS_HANDLE cls, CorInfoInlineTypeCheckSource source) override; uint32_t getClassAttribs( CORINFO_CLASS_HANDLE cls) override; CORINFO_MODULE_HANDLE getClassModule( CORINFO_CLASS_HANDLE cls) override; CORINFO_ASSEMBLY_HANDLE getModuleAssembly( CORINFO_MODULE_HANDLE mod) override; const char* getAssemblyName( CORINFO_ASSEMBLY_HANDLE assem) override; void* LongLifetimeMalloc( size_t sz) override; void LongLifetimeFree( void* obj) override; size_t getClassModuleIdForStatics( CORINFO_CLASS_HANDLE cls, CORINFO_MODULE_HANDLE* pModule, void** ppIndirection) override; unsigned getClassSize( CORINFO_CLASS_HANDLE cls) override; unsigned getHeapClassSize( CORINFO_CLASS_HANDLE cls) override; bool canAllocateOnStack( CORINFO_CLASS_HANDLE cls) override; unsigned getClassAlignmentRequirement( CORINFO_CLASS_HANDLE cls, bool fDoubleAlignHint) override; unsigned getClassGClayout( CORINFO_CLASS_HANDLE cls, uint8_t* gcPtrs) override; unsigned getClassNumInstanceFields( CORINFO_CLASS_HANDLE cls) override; CORINFO_FIELD_HANDLE getFieldInClass( CORINFO_CLASS_HANDLE clsHnd, int32_t num) override; bool checkMethodModifier( CORINFO_METHOD_HANDLE hMethod, const char* modifier, bool fOptional) override; CorInfoHelpFunc getNewHelper( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_METHOD_HANDLE callerHandle, bool* pHasSideEffects) override; CorInfoHelpFunc getNewArrHelper( CORINFO_CLASS_HANDLE arrayCls) override; CorInfoHelpFunc getCastingHelper( CORINFO_RESOLVED_TOKEN* pResolvedToken, bool fThrowing) override; CorInfoHelpFunc getSharedCCtorHelper( CORINFO_CLASS_HANDLE clsHnd) override; CORINFO_CLASS_HANDLE getTypeForBox( CORINFO_CLASS_HANDLE cls) override; CorInfoHelpFunc getBoxHelper( CORINFO_CLASS_HANDLE cls) override; CorInfoHelpFunc getUnBoxHelper( CORINFO_CLASS_HANDLE cls) override; bool getReadyToRunHelper( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_LOOKUP_KIND* pGenericLookupKind, CorInfoHelpFunc id, CORINFO_CONST_LOOKUP* pLookup) override; void getReadyToRunDelegateCtorHelper( CORINFO_RESOLVED_TOKEN* pTargetMethod, CORINFO_CLASS_HANDLE delegateType, CORINFO_LOOKUP* pLookup) override; const char* getHelperName( CorInfoHelpFunc helpFunc) override; CorInfoInitClassResult initClass( CORINFO_FIELD_HANDLE field, CORINFO_METHOD_HANDLE method, CORINFO_CONTEXT_HANDLE context) override; void classMustBeLoadedBeforeCodeIsRun( CORINFO_CLASS_HANDLE cls) override; CORINFO_CLASS_HANDLE getBuiltinClass( CorInfoClassId classId) override; CorInfoType getTypeForPrimitiveValueClass( CORINFO_CLASS_HANDLE cls) override; CorInfoType getTypeForPrimitiveNumericClass( CORINFO_CLASS_HANDLE cls) override; bool canCast( CORINFO_CLASS_HANDLE child, CORINFO_CLASS_HANDLE parent) override; bool areTypesEquivalent( CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2) override; TypeCompareState compareTypesForCast( CORINFO_CLASS_HANDLE fromClass, CORINFO_CLASS_HANDLE toClass) override; TypeCompareState compareTypesForEquality( CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2) override; CORINFO_CLASS_HANDLE mergeClasses( CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2) override; bool isMoreSpecificType( CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2) override; CORINFO_CLASS_HANDLE getParentType( CORINFO_CLASS_HANDLE cls) override; CorInfoType getChildType( CORINFO_CLASS_HANDLE clsHnd, CORINFO_CLASS_HANDLE* clsRet) override; bool satisfiesClassConstraints( CORINFO_CLASS_HANDLE cls) override; bool isSDArray( CORINFO_CLASS_HANDLE cls) override; unsigned getArrayRank( CORINFO_CLASS_HANDLE cls) override; CorInfoArrayIntrinsic getArrayIntrinsicID( CORINFO_METHOD_HANDLE ftn) override; void* getArrayInitializationData( CORINFO_FIELD_HANDLE field, uint32_t size) override; CorInfoIsAccessAllowedResult canAccessClass( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_METHOD_HANDLE callerHandle, CORINFO_HELPER_DESC* pAccessHelper) override; const char* getFieldName( CORINFO_FIELD_HANDLE ftn, const char** moduleName) override; CORINFO_CLASS_HANDLE getFieldClass( CORINFO_FIELD_HANDLE field) override; CorInfoType getFieldType( CORINFO_FIELD_HANDLE field, CORINFO_CLASS_HANDLE* structType, CORINFO_CLASS_HANDLE memberParent) override; unsigned getFieldOffset( CORINFO_FIELD_HANDLE field) override; void getFieldInfo( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_METHOD_HANDLE callerHandle, CORINFO_ACCESS_FLAGS flags, CORINFO_FIELD_INFO* pResult) override; bool isFieldStatic( CORINFO_FIELD_HANDLE fldHnd) override; void getBoundaries( CORINFO_METHOD_HANDLE ftn, unsigned int* cILOffsets, uint32_t** pILOffsets, ICorDebugInfo::BoundaryTypes* implicitBoundaries) override; void setBoundaries( CORINFO_METHOD_HANDLE ftn, uint32_t cMap, ICorDebugInfo::OffsetMapping* pMap) override; void getVars( CORINFO_METHOD_HANDLE ftn, uint32_t* cVars, ICorDebugInfo::ILVarInfo** vars, bool* extendOthers) override; void setVars( CORINFO_METHOD_HANDLE ftn, uint32_t cVars, ICorDebugInfo::NativeVarInfo* vars) override; void* allocateArray( size_t cBytes) override; void freeArray( void* array) override; CORINFO_ARG_LIST_HANDLE getArgNext( CORINFO_ARG_LIST_HANDLE args) override; CorInfoTypeWithMod getArgType( CORINFO_SIG_INFO* sig, CORINFO_ARG_LIST_HANDLE args, CORINFO_CLASS_HANDLE* vcTypeRet) override; CORINFO_CLASS_HANDLE getArgClass( CORINFO_SIG_INFO* sig, CORINFO_ARG_LIST_HANDLE args) override; CorInfoHFAElemType getHFAType( CORINFO_CLASS_HANDLE hClass) override; JITINTERFACE_HRESULT GetErrorHRESULT( struct _EXCEPTION_POINTERS* pExceptionPointers) override; uint32_t GetErrorMessage( char16_t* buffer, uint32_t bufferLength) override; int FilterException( struct _EXCEPTION_POINTERS* pExceptionPointers) override; void ThrowExceptionForJitResult( JITINTERFACE_HRESULT result) override; void ThrowExceptionForHelper( const CORINFO_HELPER_DESC* throwHelper) override; bool runWithErrorTrap( ICorJitInfo::errorTrapFunction function, void* parameter) override; bool runWithSPMIErrorTrap( ICorJitInfo::errorTrapFunction function, void* parameter) override; void getEEInfo( CORINFO_EE_INFO* pEEInfoOut) override; const char16_t* getJitTimeLogFilename() override; mdMethodDef getMethodDefFromMethod( CORINFO_METHOD_HANDLE hMethod) override; const char* getMethodName( CORINFO_METHOD_HANDLE ftn, const char** moduleName) override; const char* getMethodNameFromMetadata( CORINFO_METHOD_HANDLE ftn, const char** className, const char** namespaceName, const char** enclosingClassName) override; unsigned getMethodHash( CORINFO_METHOD_HANDLE ftn) override; size_t findNameOfToken( CORINFO_MODULE_HANDLE moduleHandle, mdToken token, char* szFQName, size_t FQNameCapacity) override; bool getSystemVAmd64PassStructInRegisterDescriptor( CORINFO_CLASS_HANDLE structHnd, SYSTEMV_AMD64_CORINFO_STRUCT_REG_PASSING_DESCRIPTOR* structPassInRegDescPtr) override; uint32_t getLoongArch64PassStructInRegisterFlags( CORINFO_CLASS_HANDLE structHnd) override; uint32_t getThreadTLSIndex( void** ppIndirection) override; const void* getInlinedCallFrameVptr( void** ppIndirection) override; int32_t* getAddrOfCaptureThreadGlobal( void** ppIndirection) override; void* getHelperFtn( CorInfoHelpFunc ftnNum, void** ppIndirection) override; void getFunctionEntryPoint( CORINFO_METHOD_HANDLE ftn, CORINFO_CONST_LOOKUP* pResult, CORINFO_ACCESS_FLAGS accessFlags) override; void getFunctionFixedEntryPoint( CORINFO_METHOD_HANDLE ftn, bool isUnsafeFunctionPointer, CORINFO_CONST_LOOKUP* pResult) override; void* getMethodSync( CORINFO_METHOD_HANDLE ftn, void** ppIndirection) override; CorInfoHelpFunc getLazyStringLiteralHelper( CORINFO_MODULE_HANDLE handle) override; CORINFO_MODULE_HANDLE embedModuleHandle( CORINFO_MODULE_HANDLE handle, void** ppIndirection) override; CORINFO_CLASS_HANDLE embedClassHandle( CORINFO_CLASS_HANDLE handle, void** ppIndirection) override; CORINFO_METHOD_HANDLE embedMethodHandle( CORINFO_METHOD_HANDLE handle, void** ppIndirection) override; CORINFO_FIELD_HANDLE embedFieldHandle( CORINFO_FIELD_HANDLE handle, void** ppIndirection) override; void embedGenericHandle( CORINFO_RESOLVED_TOKEN* pResolvedToken, bool fEmbedParent, CORINFO_GENERICHANDLE_RESULT* pResult) override; void getLocationOfThisType( CORINFO_METHOD_HANDLE context, CORINFO_LOOKUP_KIND* pLookupKind) override; void getAddressOfPInvokeTarget( CORINFO_METHOD_HANDLE method, CORINFO_CONST_LOOKUP* pLookup) override; void* GetCookieForPInvokeCalliSig( CORINFO_SIG_INFO* szMetaSig, void** ppIndirection) override; bool canGetCookieForPInvokeCalliSig( CORINFO_SIG_INFO* szMetaSig) override; CORINFO_JUST_MY_CODE_HANDLE getJustMyCodeHandle( CORINFO_METHOD_HANDLE method, CORINFO_JUST_MY_CODE_HANDLE** ppIndirection) override; void GetProfilingHandle( bool* pbHookFunction, void** pProfilerHandle, bool* pbIndirectedHandles) override; void getCallInfo( CORINFO_RESOLVED_TOKEN* pResolvedToken, CORINFO_RESOLVED_TOKEN* pConstrainedResolvedToken, CORINFO_METHOD_HANDLE callerHandle, CORINFO_CALLINFO_FLAGS flags, CORINFO_CALL_INFO* pResult) override; bool canAccessFamily( CORINFO_METHOD_HANDLE hCaller, CORINFO_CLASS_HANDLE hInstanceType) override; bool isRIDClassDomainID( CORINFO_CLASS_HANDLE cls) override; unsigned getClassDomainID( CORINFO_CLASS_HANDLE cls, void** ppIndirection) override; void* getFieldAddress( CORINFO_FIELD_HANDLE field, void** ppIndirection) override; CORINFO_CLASS_HANDLE getStaticFieldCurrentClass( CORINFO_FIELD_HANDLE field, bool* pIsSpeculative) override; CORINFO_VARARGS_HANDLE getVarArgsHandle( CORINFO_SIG_INFO* pSig, void** ppIndirection) override; bool canGetVarArgsHandle( CORINFO_SIG_INFO* pSig) override; InfoAccessType constructStringLiteral( CORINFO_MODULE_HANDLE module, mdToken metaTok, void** ppValue) override; InfoAccessType emptyStringLiteral( void** ppValue) override; uint32_t getFieldThreadLocalStoreID( CORINFO_FIELD_HANDLE field, void** ppIndirection) override; void addActiveDependency( CORINFO_MODULE_HANDLE moduleFrom, CORINFO_MODULE_HANDLE moduleTo) override; CORINFO_METHOD_HANDLE GetDelegateCtor( CORINFO_METHOD_HANDLE methHnd, CORINFO_CLASS_HANDLE clsHnd, CORINFO_METHOD_HANDLE targetMethodHnd, DelegateCtorArgs* pCtorData) override; void MethodCompileComplete( CORINFO_METHOD_HANDLE methHnd) override; bool getTailCallHelpers( CORINFO_RESOLVED_TOKEN* callToken, CORINFO_SIG_INFO* sig, CORINFO_GET_TAILCALL_HELPERS_FLAGS flags, CORINFO_TAILCALL_HELPERS* pResult) override; bool convertPInvokeCalliToCall( CORINFO_RESOLVED_TOKEN* pResolvedToken, bool mustConvert) override; bool notifyInstructionSetUsage( CORINFO_InstructionSet instructionSet, bool supportEnabled) override; void updateEntryPointForTailCall( CORINFO_CONST_LOOKUP* entryPoint) override; void allocMem( AllocMemArgs* pArgs) override; void reserveUnwindInfo( bool isFunclet, bool isColdCode, uint32_t unwindSize) override; void allocUnwindInfo( uint8_t* pHotCode, uint8_t* pColdCode, uint32_t startOffset, uint32_t endOffset, uint32_t unwindSize, uint8_t* pUnwindBlock, CorJitFuncKind funcKind) override; void* allocGCInfo( size_t size) override; void setEHcount( unsigned cEH) override; void setEHinfo( unsigned EHnumber, const CORINFO_EH_CLAUSE* clause) override; bool logMsg( unsigned level, const char* fmt, va_list args) override; int doAssert( const char* szFile, int iLine, const char* szExpr) override; void reportFatalError( CorJitResult result) override; JITINTERFACE_HRESULT getPgoInstrumentationResults( CORINFO_METHOD_HANDLE ftnHnd, ICorJitInfo::PgoInstrumentationSchema** pSchema, uint32_t* pCountSchemaItems, uint8_t** pInstrumentationData, ICorJitInfo::PgoSource* pgoSource) override; JITINTERFACE_HRESULT allocPgoInstrumentationBySchema( CORINFO_METHOD_HANDLE ftnHnd, ICorJitInfo::PgoInstrumentationSchema* pSchema, uint32_t countSchemaItems, uint8_t** pInstrumentationData) override; void recordCallSite( uint32_t instrOffset, CORINFO_SIG_INFO* callSig, CORINFO_METHOD_HANDLE methodHandle) override; void recordRelocation( void* location, void* locationRW, void* target, uint16_t fRelocType, uint16_t slotNum, int32_t addlDelta) override; uint16_t getRelocTypeHint( void* target) override; uint32_t getExpectedTargetArchitecture() override; uint32_t getJitFlags( CORJIT_FLAGS* flags, uint32_t sizeInBytes) override; bool doesFieldBelongToClass( CORINFO_FIELD_HANDLE fldHnd, CORINFO_CLASS_HANDLE cls) override; /**********************************************************************************/ // clang-format on /**********************************************************************************/
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1300/Generated1300.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 Generated1300 { .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_C1772`1<T0> extends class G2_C722`2<!T0,class BaseClass1> implements class IBase1`1<class BaseClass1> { .method public hidebysig newslot virtual instance string Method4() cil managed noinlining { ldstr "G3_C1772::Method4.17909()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass1>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G3_C1772::Method4.MI.17910()" ret } .method public hidebysig newslot virtual instance string Method5() cil managed noinlining { ldstr "G3_C1772::Method5.17911()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass1>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G3_C1772::Method6.17913<" 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 ClassMethod4942() cil managed noinlining { ldstr "G3_C1772::ClassMethod4942.17914()" ret } .method public hidebysig newslot virtual instance string ClassMethod4943() cil managed noinlining { ldstr "G3_C1772::ClassMethod4943.17915()" ret } .method public hidebysig newslot virtual instance string ClassMethod4944<M0>() cil managed noinlining { ldstr "G3_C1772::ClassMethod4944.17916<" 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 ClassMethod4945<M0>() cil managed noinlining { ldstr "G3_C1772::ClassMethod4945.17917<" 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 'G2_C722<T0,class BaseClass1>.ClassMethod2815'() cil managed noinlining { .override method instance string class G2_C722`2<!T0,class BaseClass1>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ret } .method public hidebysig newslot virtual instance string 'G2_C722<T0,class BaseClass1>.ClassMethod2816'() cil managed noinlining { .override method instance string class G2_C722`2<!T0,class BaseClass1>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ret } .method public hidebysig newslot virtual instance string 'G2_C722<T0,class BaseClass1>.ClassMethod2818'<M0>() cil managed noinlining { .override method instance string class G2_C722`2<!T0,class BaseClass1>::ClassMethod2818<[1]>() ldstr "G3_C1772::ClassMethod2818.MI.17920<" 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 class G2_C722`2<!T0,class BaseClass1>::.ctor() ret } } .class public G2_C722`2<T0, T1> extends class G1_C13`2<!T1,class BaseClass0> implements class IBase2`2<class BaseClass1,!T0>, IBase0 { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G2_C722::Method7.11654<" 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 "G2_C722::Method0.11655()" ret } .method public hidebysig virtual instance string Method1() cil managed noinlining { ldstr "G2_C722::Method1.11656()" ret } .method public hidebysig newslot virtual instance string Method2<M0>() cil managed noinlining { ldstr "G2_C722::Method2.11657<" 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 Method3<M0>() cil managed noinlining { ldstr "G2_C722::Method3.11658<" 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.Method3'<M0>() cil managed noinlining { .override method instance string IBase0::Method3<[1]>() ldstr "G2_C722::Method3.MI.11659<" 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 ClassMethod2815() cil managed noinlining { ldstr "G2_C722::ClassMethod2815.11660()" ret } .method public hidebysig newslot virtual instance string ClassMethod2816() cil managed noinlining { ldstr "G2_C722::ClassMethod2816.11661()" ret } .method public hidebysig newslot virtual instance string ClassMethod2817<M0>() cil managed noinlining { ldstr "G2_C722::ClassMethod2817.11662<" 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 ClassMethod2818<M0>() cil managed noinlining { ldstr "G2_C722::ClassMethod2818.11663<" 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 class G1_C13`2<!T1,class BaseClass0>::.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_C13`2<T0, T1> implements class IBase2`2<!T0,!T1>, class IBase1`1<!T0> { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C13::Method7.4871<" 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 Method4() cil managed noinlining { ldstr "G1_C13::Method4.4872()" ret } .method public hidebysig newslot virtual instance string Method5() cil managed noinlining { ldstr "G1_C13::Method5.4873()" ret } .method public hidebysig newslot virtual instance string 'IBase1<T0>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<!T0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ret } .method public hidebysig newslot virtual instance string Method6<M0>() cil managed noinlining { ldstr "G1_C13::Method6.4875<" 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 ClassMethod1348<M0>() cil managed noinlining { ldstr "G1_C13::ClassMethod1348.4876<" 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 ClassMethod1349<M0>() cil managed noinlining { ldstr "G1_C13::ClassMethod1349.4877<" 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 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 Generated1300 { .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_C1772.T<T0,(class G3_C1772`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 23 .locals init (string[] actualResults) ldc.i4.s 18 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1772.T<T0,(class G3_C1772`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 18 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod4942() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod4943() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod4944<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod4945<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 17 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1772.A<(class G3_C1772`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 23 .locals init (string[] actualResults) ldc.i4.s 18 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1772.A<(class G3_C1772`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 18 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4942() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4943() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4944<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4945<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 17 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`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_C1772.B<(class G3_C1772`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 23 .locals init (string[] actualResults) ldc.i4.s 18 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1772.B<(class G3_C1772`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 18 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4942() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4943() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4944<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4945<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 17 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`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_C722.T.T<T0,T1,(class G2_C722`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_C722.T.T<T0,T1,(class G2_C722`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_C722`2<!!T0,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722.A.T<T1,(class G2_C722`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_C722.A.T<T1,(class G2_C722`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_C722`2<class BaseClass0,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722.A.A<(class G2_C722`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_C722.A.A<(class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722.A.B<(class G2_C722`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_C722.A.B<(class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722.B.T<T1,(class G2_C722`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_C722.B.T<T1,(class G2_C722`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_C722`2<class BaseClass1,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722.B.A<(class G2_C722`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_C722.B.A<(class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722.B.B<(class G2_C722`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_C722.B.B<(class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C13.T.T<T0,T1,(class G1_C13`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.G1_C13.T.T<T0,T1,(class G1_C13`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 G1_C13`2<!!T0,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<!!T0,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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_C13.A.T<T1,(class G1_C13`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.G1_C13.A.T<T1,(class G1_C13`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 G1_C13`2<class BaseClass0,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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_C13.A.A<(class G1_C13`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.G1_C13.A.A<(class G1_C13`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 G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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 G1_C13`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_C13.A.B<(class G1_C13`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.G1_C13.A.B<(class G1_C13`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 G1_C13`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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 G1_C13`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_C13.B.T<T1,(class G1_C13`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.G1_C13.B.T<T1,(class G1_C13`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 G1_C13`2<class BaseClass1,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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_C13.B.A<(class G1_C13`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.G1_C13.B.A<(class G1_C13`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 G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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 G1_C13`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_C13.B.B<(class G1_C13`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.G1_C13.B.B<(class G1_C13`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 G1_C13`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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 G1_C13`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.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_C1772`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4945<object>() ldstr "G3_C1772::ClassMethod4945.17917<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4944<object>() ldstr "G3_C1772::ClassMethod4944.17916<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4943() ldstr "G3_C1772::ClassMethod4943.17915()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4942() ldstr "G3_C1772::ClassMethod4942.17914()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method5() ldstr "G3_C1772::Method5.17911()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method4() ldstr "G3_C1772::Method4.17909()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2818<object>() ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1772`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4945<object>() ldstr "G3_C1772::ClassMethod4945.17917<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4944<object>() ldstr "G3_C1772::ClassMethod4944.17916<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4943() ldstr "G3_C1772::ClassMethod4943.17915()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4942() ldstr "G3_C1772::ClassMethod4942.17914()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method5() ldstr "G3_C1772::Method5.17911()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method4() ldstr "G3_C1772::Method4.17909()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2818<object>() ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C722`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2818<object>() ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2816() ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2815() ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C722`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C722`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2818<object>() ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2816() ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2815() ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C722`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C1772`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass1,class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.A<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.B<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.A<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass0,class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.T<class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.B<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G3_C1772::ClassMethod4942.17914()#G3_C1772::ClassMethod4943.17915()#G3_C1772::ClassMethod4944.17916<System.Object>()#G3_C1772::ClassMethod4945.17917<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G3_C1772::Method4.17909()#G3_C1772::Method5.17911()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G3_C1772.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G3_C1772::ClassMethod4942.17914()#G3_C1772::ClassMethod4943.17915()#G3_C1772::ClassMethod4944.17916<System.Object>()#G3_C1772::ClassMethod4945.17917<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G3_C1772::Method4.17909()#G3_C1772::Method5.17911()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G3_C1772.A<class G3_C1772`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1772`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass1,class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.T<class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.A<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.B<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.A<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass1,class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.B<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G3_C1772::ClassMethod4942.17914()#G3_C1772::ClassMethod4943.17915()#G3_C1772::ClassMethod4944.17916<System.Object>()#G3_C1772::ClassMethod4945.17917<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G3_C1772::Method4.17909()#G3_C1772::Method5.17911()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G3_C1772.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G3_C1772::ClassMethod4942.17914()#G3_C1772::ClassMethod4943.17915()#G3_C1772::ClassMethod4944.17916<System.Object>()#G3_C1772::ClassMethod4945.17917<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G3_C1772::Method4.17909()#G3_C1772::Method5.17911()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G3_C1772.B<class G3_C1772`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C722`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.A.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.A.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C722`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.A<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.B<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.A<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.B<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C722`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.A.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.A.A<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.A<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.A<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C722`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.A<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.B<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.A<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.B<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G2_C722`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_C1772`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" 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 G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass0>" 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 G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass0>" 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 G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod4945<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod4945.17917<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod4944<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod4944.17916<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod4943() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod4943.17915()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod4942() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod4942.17914()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method5() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method5.17911()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method4() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method4.17909()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod2818<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod2817<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod2816() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod2815() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method3<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method2<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method1() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method0() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1772`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<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 G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<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 G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<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 G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod4945<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod4945.17917<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod4944<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod4944.17916<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod4943() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod4943.17915()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod4942() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod4942.17914()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method5() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method5.17911()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method4() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method4.17909()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod2818<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod2817<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod2816() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod2815() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method3<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method2<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method1() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method0() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C722`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2818<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2817<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2816() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2815() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C722`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C722`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2818<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2817<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2816() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2815() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C722`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`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 Generated1300::MethodCallingTest() call void Generated1300::ConstrainedCallsTest() call void Generated1300::StructConstrainedInterfaceCallsTest() call void Generated1300::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 Generated1300 { .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_C1772`1<T0> extends class G2_C722`2<!T0,class BaseClass1> implements class IBase1`1<class BaseClass1> { .method public hidebysig newslot virtual instance string Method4() cil managed noinlining { ldstr "G3_C1772::Method4.17909()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass1>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G3_C1772::Method4.MI.17910()" ret } .method public hidebysig newslot virtual instance string Method5() cil managed noinlining { ldstr "G3_C1772::Method5.17911()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass1>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G3_C1772::Method6.17913<" 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 ClassMethod4942() cil managed noinlining { ldstr "G3_C1772::ClassMethod4942.17914()" ret } .method public hidebysig newslot virtual instance string ClassMethod4943() cil managed noinlining { ldstr "G3_C1772::ClassMethod4943.17915()" ret } .method public hidebysig newslot virtual instance string ClassMethod4944<M0>() cil managed noinlining { ldstr "G3_C1772::ClassMethod4944.17916<" 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 ClassMethod4945<M0>() cil managed noinlining { ldstr "G3_C1772::ClassMethod4945.17917<" 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 'G2_C722<T0,class BaseClass1>.ClassMethod2815'() cil managed noinlining { .override method instance string class G2_C722`2<!T0,class BaseClass1>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ret } .method public hidebysig newslot virtual instance string 'G2_C722<T0,class BaseClass1>.ClassMethod2816'() cil managed noinlining { .override method instance string class G2_C722`2<!T0,class BaseClass1>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ret } .method public hidebysig newslot virtual instance string 'G2_C722<T0,class BaseClass1>.ClassMethod2818'<M0>() cil managed noinlining { .override method instance string class G2_C722`2<!T0,class BaseClass1>::ClassMethod2818<[1]>() ldstr "G3_C1772::ClassMethod2818.MI.17920<" 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 class G2_C722`2<!T0,class BaseClass1>::.ctor() ret } } .class public G2_C722`2<T0, T1> extends class G1_C13`2<!T1,class BaseClass0> implements class IBase2`2<class BaseClass1,!T0>, IBase0 { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G2_C722::Method7.11654<" 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 "G2_C722::Method0.11655()" ret } .method public hidebysig virtual instance string Method1() cil managed noinlining { ldstr "G2_C722::Method1.11656()" ret } .method public hidebysig newslot virtual instance string Method2<M0>() cil managed noinlining { ldstr "G2_C722::Method2.11657<" 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 Method3<M0>() cil managed noinlining { ldstr "G2_C722::Method3.11658<" 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.Method3'<M0>() cil managed noinlining { .override method instance string IBase0::Method3<[1]>() ldstr "G2_C722::Method3.MI.11659<" 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 ClassMethod2815() cil managed noinlining { ldstr "G2_C722::ClassMethod2815.11660()" ret } .method public hidebysig newslot virtual instance string ClassMethod2816() cil managed noinlining { ldstr "G2_C722::ClassMethod2816.11661()" ret } .method public hidebysig newslot virtual instance string ClassMethod2817<M0>() cil managed noinlining { ldstr "G2_C722::ClassMethod2817.11662<" 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 ClassMethod2818<M0>() cil managed noinlining { ldstr "G2_C722::ClassMethod2818.11663<" 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 class G1_C13`2<!T1,class BaseClass0>::.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_C13`2<T0, T1> implements class IBase2`2<!T0,!T1>, class IBase1`1<!T0> { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C13::Method7.4871<" 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 Method4() cil managed noinlining { ldstr "G1_C13::Method4.4872()" ret } .method public hidebysig newslot virtual instance string Method5() cil managed noinlining { ldstr "G1_C13::Method5.4873()" ret } .method public hidebysig newslot virtual instance string 'IBase1<T0>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<!T0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ret } .method public hidebysig newslot virtual instance string Method6<M0>() cil managed noinlining { ldstr "G1_C13::Method6.4875<" 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 ClassMethod1348<M0>() cil managed noinlining { ldstr "G1_C13::ClassMethod1348.4876<" 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 ClassMethod1349<M0>() cil managed noinlining { ldstr "G1_C13::ClassMethod1349.4877<" 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 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 Generated1300 { .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_C1772.T<T0,(class G3_C1772`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 23 .locals init (string[] actualResults) ldc.i4.s 18 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1772.T<T0,(class G3_C1772`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 18 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod4942() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod4943() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod4944<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::ClassMethod4945<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 17 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1772.A<(class G3_C1772`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 23 .locals init (string[] actualResults) ldc.i4.s 18 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1772.A<(class G3_C1772`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 18 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4942() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4943() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4944<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4945<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 17 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`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_C1772.B<(class G3_C1772`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 23 .locals init (string[] actualResults) ldc.i4.s 18 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1772.B<(class G3_C1772`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 18 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4942() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4943() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4944<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4945<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 16 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 17 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1772`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_C722.T.T<T0,T1,(class G2_C722`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_C722.T.T<T0,T1,(class G2_C722`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_C722`2<!!T0,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722.A.T<T1,(class G2_C722`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_C722.A.T<T1,(class G2_C722`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_C722`2<class BaseClass0,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722.A.A<(class G2_C722`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_C722.A.A<(class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722.A.B<(class G2_C722`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_C722.A.B<(class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722.B.T<T1,(class G2_C722`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_C722.B.T<T1,(class G2_C722`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_C722`2<class BaseClass1,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722.B.A<(class G2_C722`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_C722.B.A<(class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722.B.B<(class G2_C722`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_C722.B.B<(class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C722`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_C13.T.T<T0,T1,(class G1_C13`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.G1_C13.T.T<T0,T1,(class G1_C13`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 G1_C13`2<!!T0,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<!!T0,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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_C13.A.T<T1,(class G1_C13`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.G1_C13.A.T<T1,(class G1_C13`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 G1_C13`2<class BaseClass0,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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_C13.A.A<(class G1_C13`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.G1_C13.A.A<(class G1_C13`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 G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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 G1_C13`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_C13.A.B<(class G1_C13`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.G1_C13.A.B<(class G1_C13`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 G1_C13`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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 G1_C13`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_C13.B.T<T1,(class G1_C13`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.G1_C13.B.T<T1,(class G1_C13`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 G1_C13`2<class BaseClass1,!!T1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,!!T1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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_C13.B.A<(class G1_C13`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.G1_C13.B.A<(class G1_C13`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 G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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 G1_C13`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_C13.B.B<(class G1_C13`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.G1_C13.B.B<(class G1_C13`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 G1_C13`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C13`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 G1_C13`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.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_C1772`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4945<object>() ldstr "G3_C1772::ClassMethod4945.17917<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4944<object>() ldstr "G3_C1772::ClassMethod4944.17916<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4943() ldstr "G3_C1772::ClassMethod4943.17915()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod4942() ldstr "G3_C1772::ClassMethod4942.17914()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method5() ldstr "G3_C1772::Method5.17911()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method4() ldstr "G3_C1772::Method4.17909()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2818<object>() ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass0> callvirt instance string class G3_C1772`1<class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1772`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4945<object>() ldstr "G3_C1772::ClassMethod4945.17917<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4944<object>() ldstr "G3_C1772::ClassMethod4944.17916<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4943() ldstr "G3_C1772::ClassMethod4943.17915()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod4942() ldstr "G3_C1772::ClassMethod4942.17914()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method6<object>() ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method5() ldstr "G3_C1772::Method5.17911()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method4() ldstr "G3_C1772::Method4.17909()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2818<object>() ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2816() ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod2815() ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1772`1<class BaseClass1> callvirt instance string class G3_C1772`1<class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C722`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2818<object>() ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2816() ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2815() ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C722`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C722`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2818<object>() ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2816() ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2815() ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C722`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C13`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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 "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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 "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C722`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C1772`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass1,class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.A<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.B<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.A<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass0,class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.T<class BaseClass1,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.B<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G3_C1772`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G3_C1772::ClassMethod4942.17914()#G3_C1772::ClassMethod4943.17915()#G3_C1772::ClassMethod4944.17916<System.Object>()#G3_C1772::ClassMethod4945.17917<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G3_C1772::Method4.17909()#G3_C1772::Method5.17911()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G3_C1772.T<class BaseClass0,class G3_C1772`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G3_C1772::ClassMethod4942.17914()#G3_C1772::ClassMethod4943.17915()#G3_C1772::ClassMethod4944.17916<System.Object>()#G3_C1772::ClassMethod4945.17917<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G3_C1772::Method4.17909()#G3_C1772::Method5.17911()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G3_C1772.A<class G3_C1772`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1772`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass1,class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.T<class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.A<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.B<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1772::Method4.MI.17910()#G3_C1772::Method5.MI.17912()#G3_C1772::Method6.17913<System.Object>()#" call void Generated1300::M.IBase1.A<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass1,class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.B<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G3_C1772`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G3_C1772::ClassMethod4942.17914()#G3_C1772::ClassMethod4943.17915()#G3_C1772::ClassMethod4944.17916<System.Object>()#G3_C1772::ClassMethod4945.17917<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G3_C1772::Method4.17909()#G3_C1772::Method5.17911()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G3_C1772.T<class BaseClass1,class G3_C1772`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G3_C1772::ClassMethod2815.MI.17918()#G3_C1772::ClassMethod2816.MI.17919()#G2_C722::ClassMethod2817.11662<System.Object>()#G3_C1772::ClassMethod2818.MI.17920<System.Object>()#G3_C1772::ClassMethod4942.17914()#G3_C1772::ClassMethod4943.17915()#G3_C1772::ClassMethod4944.17916<System.Object>()#G3_C1772::ClassMethod4945.17917<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G3_C1772::Method4.17909()#G3_C1772::Method5.17911()#G3_C1772::Method6.17913<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G3_C1772.B<class G3_C1772`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C722`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.A.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.A.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G2_C722`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C722`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.A<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.B<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.A<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.T<class BaseClass1,class G2_C722`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.A.B<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G2_C722`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C722`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.A.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.A.A<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.A<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.A<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G2_C722`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C722`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G1_C13.B.A<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.A<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.B<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.A<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.A.B<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.IBase2.B.B<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.T<class BaseClass0,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::Method4.4872()#G1_C13::Method5.MI.4874()#G1_C13::Method6.4875<System.Object>()#" call void Generated1300::M.IBase1.A<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.T.T<class BaseClass1,class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.T<class BaseClass1,class G2_C722`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C13::ClassMethod1348.4876<System.Object>()#G1_C13::ClassMethod1349.4877<System.Object>()#G2_C722::ClassMethod2815.11660()#G2_C722::ClassMethod2816.11661()#G2_C722::ClassMethod2817.11662<System.Object>()#G2_C722::ClassMethod2818.11663<System.Object>()#G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.11658<System.Object>()#G1_C13::Method4.4872()#G1_C13::Method5.4873()#G1_C13::Method6.4875<System.Object>()#G2_C722::Method7.11654<System.Object>()#" call void Generated1300::M.G2_C722.B.B<class G2_C722`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C722::Method0.11655()#G2_C722::Method1.11656()#G2_C722::Method2.11657<System.Object>()#G2_C722::Method3.MI.11659<System.Object>()#" call void Generated1300::M.IBase0<class G2_C722`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_C1772`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass0>" 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 G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass0>" 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 G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<class BaseClass0>" 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 G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass0>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod4945<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod4945.17917<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod4944<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod4944.17916<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod4943() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod4943.17915()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod4942() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod4942.17914()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method5() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method5.17911()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method4() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::Method4.17909()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod2818<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod2817<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod2816() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod2815() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method3<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method2<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method1() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method0() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass0>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G3_C1772`1<class BaseClass0> on type class G3_C1772`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1772`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1772`1<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 G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<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 G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`1<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 G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method4.MI.17910()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method5.MI.17912()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G3_C1772`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_C1772`1<class BaseClass1>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod4945<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod4945.17917<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod4944<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod4944.17916<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod4943() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod4943.17915()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod4942() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod4942.17914()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method6.17913<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method5() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method5.17911()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method4() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::Method4.17909()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod2818<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2818.MI.17920<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod2817<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod2816() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2816.MI.17919()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod2815() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G3_C1772::ClassMethod2815.MI.17918()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method3<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method2<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method1() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method0() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod1349<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1772`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1772`1<class BaseClass1>::ClassMethod1348<object>() calli default string(class G3_C1772`1<class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G3_C1772`1<class BaseClass1> on type class G3_C1772`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C722`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2818<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2817<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2816() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod2815() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass0,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C722`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2818<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2817<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2816() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod2815() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C722`2<class BaseClass0,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass0,class BaseClass1>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C722`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2818<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2817<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2816() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod2815() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass1,class BaseClass0>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass0>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C722`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C13`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C13`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G1_C13`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method5.MI.4874()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2818<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::ClassMethod2818.11663<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2817<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::ClassMethod2817.11662<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2816() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::ClassMethod2816.11661()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod2815() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::ClassMethod2815.11660()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method3.11658<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method7.11654<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1349<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::ClassMethod1349.4877<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::ClassMethod1348<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::ClassMethod1348.4876<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method6.4875<System.Object>()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method5.4873()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C722`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C722`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C722`2<class BaseClass1,class BaseClass1>) ldstr "G1_C13::Method4.4872()" ldstr "class G2_C722`2<class BaseClass1,class BaseClass1> on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method0.11655()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method1.11656()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method2.11657<System.Object>()" ldstr "IBase0 on type class G2_C722`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_C722`2<class BaseClass1,class BaseClass1>) ldstr "G2_C722::Method3.MI.11659<System.Object>()" ldstr "IBase0 on type class G2_C722`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 Generated1300::MethodCallingTest() call void Generated1300::ConstrainedCallsTest() call void Generated1300::StructConstrainedInterfaceCallsTest() call void Generated1300::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/ObjectiveC/PendingExceptionTests.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.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ObjectiveC; using Microsoft.DotNet.RemoteExecutor; using Xunit; using static System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal; namespace System.Runtime.InteropServices.Tests { [PlatformSpecific(TestPlatforms.OSX)] [SkipOnMono("Not currently implemented on Mono")] public unsafe class PendingExceptionTests { private sealed class PendingException : Exception { public PendingException(string message) : base(message) { } } [UnmanagedCallersOnly] private static IntPtr MsgSend(IntPtr inst, IntPtr sel) => SetPendingException(); [UnmanagedCallersOnly] private static IntPtr MsgSendFpret(IntPtr inst, IntPtr sel) => SetPendingException(); [UnmanagedCallersOnly] private static void MsgSendStret(IntPtr* ret, IntPtr inst, IntPtr sel) => *ret = SetPendingException(); [UnmanagedCallersOnly] private static IntPtr MsgSendSuper(IntPtr inst, IntPtr sel) => SetPendingException(); [UnmanagedCallersOnly] private static void MsgSendSuperStret(IntPtr* ret, IntPtr inst, IntPtr sel) => *ret = SetPendingException(); private static IntPtr SetPendingException([CallerMemberName] string callerName = "") { ObjectiveCMarshal.SetMessageSendPendingException(new PendingException(callerName)); return IntPtr.Zero; } [ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))] [InlineData(MessageSendFunction.MsgSend)] [InlineData(MessageSendFunction.MsgSendFpret)] [InlineData(MessageSendFunction.MsgSendStret)] [InlineData(MessageSendFunction.MsgSendSuper)] [InlineData(MessageSendFunction.MsgSendSuperStret)] public void ValidateSetMessageSendPendingException(MessageSendFunction func) { // Pass functions to override as a string for remote execution RemoteExecutor.Invoke((string funcToOverrideAsStr) => { MessageSendFunction msgSend = Enum.Parse<MessageSendFunction>(funcToOverrideAsStr); Assert.True(Enum.IsDefined<MessageSendFunction>(msgSend)); ValidateSetMessageSendPendingExceptionImpl(msgSend); }, func.ToString()).Dispose(); } private static void ValidateSetMessageSendPendingExceptionImpl(MessageSendFunction msgSend) { if (!LibObjC.SupportedOnPlatform(msgSend)) { return; } IntPtr func = msgSend switch { MessageSendFunction.MsgSend => (IntPtr)(delegate* unmanaged<IntPtr, IntPtr, IntPtr>)&MsgSend, MessageSendFunction.MsgSendFpret => (IntPtr)(delegate* unmanaged<IntPtr, IntPtr, IntPtr>)&MsgSendFpret, MessageSendFunction.MsgSendStret => (IntPtr)(delegate* unmanaged<IntPtr*, IntPtr, IntPtr, void>)&MsgSendStret, MessageSendFunction.MsgSendSuper => (IntPtr)(delegate* unmanaged<IntPtr, IntPtr, IntPtr>)&MsgSendSuper, MessageSendFunction.MsgSendSuperStret => (IntPtr)(delegate* unmanaged<IntPtr*, IntPtr, IntPtr, void>)&MsgSendSuperStret, _ => throw new Exception($"Unknown {nameof(MessageSendFunction)}"), }; // Override message send function // // We are using the overriding mechanism to enable validating in the Libraries test suite. // Technically any Objective-C code that is entered via msgSend could call the managed SetMessageSendPendingException() // and it would be thrown when returning from the P/Invoke. This approach avoids us having to // create a pure Objective-C library for testing this behavior. ObjectiveCMarshal.SetMessageSendCallback(msgSend, func); // Call message send function through P/Invoke IntPtr inst = IntPtr.Zero; IntPtr sel = IntPtr.Zero; Exception ex = Assert.Throws<PendingException>(() => LibObjC.CallPInvoke(msgSend, inst, sel)); Assert.Equal(msgSend.ToString(), ex.Message); } } }
// 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.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ObjectiveC; using Microsoft.DotNet.RemoteExecutor; using Xunit; using static System.Runtime.InteropServices.ObjectiveC.ObjectiveCMarshal; namespace System.Runtime.InteropServices.Tests { [PlatformSpecific(TestPlatforms.OSX)] [SkipOnMono("Not currently implemented on Mono")] public unsafe class PendingExceptionTests { private sealed class PendingException : Exception { public PendingException(string message) : base(message) { } } [UnmanagedCallersOnly] private static IntPtr MsgSend(IntPtr inst, IntPtr sel) => SetPendingException(); [UnmanagedCallersOnly] private static IntPtr MsgSendFpret(IntPtr inst, IntPtr sel) => SetPendingException(); [UnmanagedCallersOnly] private static void MsgSendStret(IntPtr* ret, IntPtr inst, IntPtr sel) => *ret = SetPendingException(); [UnmanagedCallersOnly] private static IntPtr MsgSendSuper(IntPtr inst, IntPtr sel) => SetPendingException(); [UnmanagedCallersOnly] private static void MsgSendSuperStret(IntPtr* ret, IntPtr inst, IntPtr sel) => *ret = SetPendingException(); private static IntPtr SetPendingException([CallerMemberName] string callerName = "") { ObjectiveCMarshal.SetMessageSendPendingException(new PendingException(callerName)); return IntPtr.Zero; } [ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))] [InlineData(MessageSendFunction.MsgSend)] [InlineData(MessageSendFunction.MsgSendFpret)] [InlineData(MessageSendFunction.MsgSendStret)] [InlineData(MessageSendFunction.MsgSendSuper)] [InlineData(MessageSendFunction.MsgSendSuperStret)] public void ValidateSetMessageSendPendingException(MessageSendFunction func) { // Pass functions to override as a string for remote execution RemoteExecutor.Invoke((string funcToOverrideAsStr) => { MessageSendFunction msgSend = Enum.Parse<MessageSendFunction>(funcToOverrideAsStr); Assert.True(Enum.IsDefined<MessageSendFunction>(msgSend)); ValidateSetMessageSendPendingExceptionImpl(msgSend); }, func.ToString()).Dispose(); } private static void ValidateSetMessageSendPendingExceptionImpl(MessageSendFunction msgSend) { if (!LibObjC.SupportedOnPlatform(msgSend)) { return; } IntPtr func = msgSend switch { MessageSendFunction.MsgSend => (IntPtr)(delegate* unmanaged<IntPtr, IntPtr, IntPtr>)&MsgSend, MessageSendFunction.MsgSendFpret => (IntPtr)(delegate* unmanaged<IntPtr, IntPtr, IntPtr>)&MsgSendFpret, MessageSendFunction.MsgSendStret => (IntPtr)(delegate* unmanaged<IntPtr*, IntPtr, IntPtr, void>)&MsgSendStret, MessageSendFunction.MsgSendSuper => (IntPtr)(delegate* unmanaged<IntPtr, IntPtr, IntPtr>)&MsgSendSuper, MessageSendFunction.MsgSendSuperStret => (IntPtr)(delegate* unmanaged<IntPtr*, IntPtr, IntPtr, void>)&MsgSendSuperStret, _ => throw new Exception($"Unknown {nameof(MessageSendFunction)}"), }; // Override message send function // // We are using the overriding mechanism to enable validating in the Libraries test suite. // Technically any Objective-C code that is entered via msgSend could call the managed SetMessageSendPendingException() // and it would be thrown when returning from the P/Invoke. This approach avoids us having to // create a pure Objective-C library for testing this behavior. ObjectiveCMarshal.SetMessageSendCallback(msgSend, func); // Call message send function through P/Invoke IntPtr inst = IntPtr.Zero; IntPtr sel = IntPtr.Zero; Exception ex = Assert.Throws<PendingException>(() => LibObjC.CallPInvoke(msgSend, inst, sel)); Assert.Equal(msgSend.ToString(), ex.Message); } } }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/tests/JIT/Regression/JitBlue/GitHub_18408/GitHub_18408.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; using System.Runtime.CompilerServices; class MetadataReader { [MethodImpl(MethodImplOptions.NoInlining)] public Method GetMethod(MethodHandle handle) { return new Method(this, handle, MethodAttributes.Abstract); } } struct Handle { int _value; public MethodHandle ToMethodHandle(MetadataReader reader) { return new MethodHandle(this); } public int GetValue() { return _value; } } static class MetadataReaderExtensions { public static unsafe Handle AsHandle(this int token) { return *(Handle*)&token; } } struct MethodHandle { internal int _value; [MethodImpl(MethodImplOptions.NoInlining)] internal MethodHandle(Handle value) { _value = value.GetValue(); } public Method GetMethod(MetadataReader reader) { return reader.GetMethod(this); } } struct Method { internal MetadataReader _reader; internal MethodHandle _handle; internal MethodAttributes _flags; public Method(MetadataReader r, MethodHandle h, MethodAttributes f) { _reader = r; _handle = h; _flags = f; } public MethodAttributes Flags => _flags; } struct QMethodDefinition { private QMethodDefinition(MetadataReader reader, int token) { _reader = reader; _handle = token; } public static QMethodDefinition FromObjectAndInt(MetadataReader reader, int token) { return new QMethodDefinition(reader, token); } public MetadataReader Reader { get { return _reader; } } public int Token { get { return _handle; } } public bool IsValid { get { return _reader == null; } } private readonly MetadataReader _reader; private readonly int _handle; public MetadataReader NativeFormatReader { get { return _reader; } } public MethodHandle NativeFormatHandle { get { return _handle.AsHandle().ToMethodHandle(NativeFormatReader); } } } class GitHub_18408 { [MethodImpl(MethodImplOptions.NoInlining)] static object foo(QMethodDefinition methodHandle) { Method method = methodHandle.NativeFormatHandle.GetMethod(methodHandle.NativeFormatReader); return (method.Flags != (MethodAttributes)0) ? new object() : null; } public static int Main(string[] args) { MetadataReader r = new MetadataReader(); if (foo(QMethodDefinition.FromObjectAndInt(r, 1)) == null) { Console.WriteLine("FAIL"); return -1; } Console.WriteLine("PASS"); 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; using System.Reflection; using System.Threading; using System.Runtime.CompilerServices; class MetadataReader { [MethodImpl(MethodImplOptions.NoInlining)] public Method GetMethod(MethodHandle handle) { return new Method(this, handle, MethodAttributes.Abstract); } } struct Handle { int _value; public MethodHandle ToMethodHandle(MetadataReader reader) { return new MethodHandle(this); } public int GetValue() { return _value; } } static class MetadataReaderExtensions { public static unsafe Handle AsHandle(this int token) { return *(Handle*)&token; } } struct MethodHandle { internal int _value; [MethodImpl(MethodImplOptions.NoInlining)] internal MethodHandle(Handle value) { _value = value.GetValue(); } public Method GetMethod(MetadataReader reader) { return reader.GetMethod(this); } } struct Method { internal MetadataReader _reader; internal MethodHandle _handle; internal MethodAttributes _flags; public Method(MetadataReader r, MethodHandle h, MethodAttributes f) { _reader = r; _handle = h; _flags = f; } public MethodAttributes Flags => _flags; } struct QMethodDefinition { private QMethodDefinition(MetadataReader reader, int token) { _reader = reader; _handle = token; } public static QMethodDefinition FromObjectAndInt(MetadataReader reader, int token) { return new QMethodDefinition(reader, token); } public MetadataReader Reader { get { return _reader; } } public int Token { get { return _handle; } } public bool IsValid { get { return _reader == null; } } private readonly MetadataReader _reader; private readonly int _handle; public MetadataReader NativeFormatReader { get { return _reader; } } public MethodHandle NativeFormatHandle { get { return _handle.AsHandle().ToMethodHandle(NativeFormatReader); } } } class GitHub_18408 { [MethodImpl(MethodImplOptions.NoInlining)] static object foo(QMethodDefinition methodHandle) { Method method = methodHandle.NativeFormatHandle.GetMethod(methodHandle.NativeFormatReader); return (method.Flags != (MethodAttributes)0) ? new object() : null; } public static int Main(string[] args) { MetadataReader r = new MetadataReader(); if (foo(QMethodDefinition.FromObjectAndInt(r, 1)) == null) { Console.WriteLine("FAIL"); return -1; } Console.WriteLine("PASS"); return 100; } }
-1
dotnet/runtime
66,398
Reenable compiler warning 4244 under coreclr/
Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
AaronRobinsonMSFT
2022-03-09T15:46:00Z
2022-03-10T01:12:51Z
763936ed098deaa1588935f17d7cc0a07c27c3fa
b71eba8b3a74fa6282dc1526e68abbd26f3e385f
Reenable compiler warning 4244 under coreclr/. Contributes to https://github.com/dotnet/runtime/issues/66154 Reenable and fix MSVC compiler warnings under `coreclr/`. /cc @GrabYourPitchforks @jkotas @janvorli
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b72699/b72699.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).il" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).il" /> </ItemGroup> </Project>
-1