diff options
author | Daniel Harvey <dharvey@microsoft.com> | 2017-04-13 21:23:56 +0300 |
---|---|---|
committer | Daniel Harvey <dharvey@microsoft.com> | 2017-04-13 21:23:56 +0300 |
commit | 2073e44b6055b2079728e4e2d89be9b66bee3961 (patch) | |
tree | feb71f69d3545f21462bb924d961936997c1b906 /src/Runtime.Base | |
parent | 20894a4cb106bc8c13e453d47184ba8cf23e06ff (diff) |
Implement RuntimeHelpers.Equals by adding a runtime method to perform the value comparison.
[tfs-changeset: 1654211]
Diffstat (limited to 'src/Runtime.Base')
-rw-r--r-- | src/Runtime.Base/src/System/Runtime/InternalCalls.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Runtime.Base/src/System/Runtime/InternalCalls.cs b/src/Runtime.Base/src/System/Runtime/InternalCalls.cs index 26bc3336e..943c3c14f 100644 --- a/src/Runtime.Base/src/System/Runtime/InternalCalls.cs +++ b/src/Runtime.Base/src/System/Runtime/InternalCalls.cs @@ -164,6 +164,11 @@ namespace System.Runtime [ManuallyManaged(GcPollPolicy.Never)] internal extern static unsafe void RhpCopyObjectContents(object objDest, object objSrc); + [RuntimeImport(Redhawk.BaseName, "RhpCompareObjectContents")] + [MethodImpl(MethodImplOptions.InternalCall)] + [ManuallyManaged(GcPollPolicy.Never)] + internal extern static bool RhpCompareObjectContentsAndPadding(object obj1, object obj2); + [RuntimeImport(Redhawk.BaseName, "RhpAssignRef")] [MethodImpl(MethodImplOptions.InternalCall)] [ManuallyManaged(GcPollPolicy.Never)] |