You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// PreserveDependencyAttribute.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <marek.safar@gmail.com>
|
||||
//
|
||||
// Copyright (C) 2018 Microsoft Corporation
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
namespace System.Runtime.CompilerServices {
|
||||
[AttributeUsage (AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple = true)]
|
||||
/*public*/ sealed class PreserveDependencyAttribute : Attribute {
|
||||
public PreserveDependencyAttribute (string metadataSignature)
|
||||
{
|
||||
}
|
||||
|
||||
public PreserveDependencyAttribute (string metadataSignature, string condition)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -141,8 +141,6 @@ namespace System.Runtime.CompilerServices
|
||||
[MonoTODO("Currently a no-op")]
|
||||
public static void PrepareDelegate (Delegate d)
|
||||
{
|
||||
if (d == null)
|
||||
throw new ArgumentNullException ("d");
|
||||
}
|
||||
|
||||
// extracted from ../../../../external/referencesource/mscorlib/system/runtime/compilerservices/runtimehelpers.cs
|
||||
|
||||
@@ -26,6 +26,14 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if BIT64
|
||||
using nuint = System.UInt64;
|
||||
using nint = System.Int64;
|
||||
#else
|
||||
using nuint = System.UInt32;
|
||||
using nint = System.Int32;
|
||||
#endif
|
||||
|
||||
namespace System.Runtime.CompilerServices
|
||||
{
|
||||
static partial class Unsafe
|
||||
@@ -60,7 +68,12 @@ namespace System.Runtime.CompilerServices
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static ref TTo As<TFrom, TTo>(ref TFrom source)
|
||||
public static ref TTo As<TFrom, TTo> (ref TFrom source)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public unsafe static void* AsPointer<T> (ref T value)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
@@ -95,6 +108,11 @@ namespace System.Runtime.CompilerServices
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public unsafe static T ReadUnaligned<T> (void* source)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static T ReadUnaligned<T> (ref byte source)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
@@ -114,5 +132,12 @@ namespace System.Runtime.CompilerServices
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
|
||||
[MethodImpl (MethodImplOptions.AggressiveInlining)]
|
||||
unsafe internal static ref T AddByteOffset<T> (ref T source, nuint byteOffset)
|
||||
{
|
||||
return ref AddByteOffset (ref source, (IntPtr)(void*)byteOffset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -348,4 +348,21 @@
|
||||
ret
|
||||
}
|
||||
|
||||
.method public hidebysig static bool IsAddressGreaterThan<T>(!!T& left, !!T& right) cil managed aggressiveinlining
|
||||
{
|
||||
.maxstack 2
|
||||
ldarg.0
|
||||
ldarg.1
|
||||
cgt.un
|
||||
ret
|
||||
}
|
||||
|
||||
.method public hidebysig static bool IsAddressLessThan<T>(!!T& left, !!T& right) cil managed aggressiveinlining
|
||||
{
|
||||
.maxstack 2
|
||||
ldarg.0
|
||||
ldarg.1
|
||||
clt.un
|
||||
ret
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user