-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add IL Emit support for MethodInfo.Invoke() and friends" (#69373
) * Revert "Fix Assembly.GetCallingAssembly() (#69225)" This reverts commit 8420dae. * Revert "Add IL Emit support for MethodInfo.Invoke() and friends (#67917)" This reverts commit 5195418.
- Loading branch information
Showing
45 changed files
with
656 additions
and
1,197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/coreclr/System.Private.CoreLib/src/System/Reflection/ConstructorInvoker.CoreCLR.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/coreclr/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethodInvoker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// 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.Reflection.Emit | ||
{ | ||
internal sealed partial class DynamicMethodInvoker | ||
{ | ||
private readonly DynamicMethod _dynamicMethod; | ||
|
||
public DynamicMethodInvoker(DynamicMethod dynamicMethod) | ||
{ | ||
_dynamicMethod = dynamicMethod; | ||
} | ||
|
||
public unsafe object? InvokeUnsafe(object? obj, IntPtr* args, BindingFlags invokeAttr) | ||
{ | ||
// Todo: add strategy for calling IL Emit-based version | ||
return _dynamicMethod.InvokeNonEmitUnsafe(obj, args, invokeAttr); | ||
} | ||
} | ||
} |
33 changes: 0 additions & 33 deletions
33
src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodInvoker.CoreCLR.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.