diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2016-09-28 05:11:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-28 05:11:14 +0300 |
commit | 26c847356902cb646a63127aea35bea1f63974e1 (patch) | |
tree | f0e7ca038f56af28c28141a081a9c405254f4096 /src/Runtime.Base | |
parent | a05f4934a88a17288799bc996f8fcd744b414909 (diff) |
Shared generics work (#1933)
Diffstat (limited to 'src/Runtime.Base')
-rw-r--r-- | src/Runtime.Base/src/System/Runtime/TypeCast.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Runtime.Base/src/System/Runtime/TypeCast.cs b/src/Runtime.Base/src/System/Runtime/TypeCast.cs index 51d53ba8b..e9be72e0e 100644 --- a/src/Runtime.Base/src/System/Runtime/TypeCast.cs +++ b/src/Runtime.Base/src/System/Runtime/TypeCast.cs @@ -42,6 +42,12 @@ namespace System.Runtime AllowSizeEquivalence = 2, } + [RuntimeExport("RhTypeCast_IsInstanceOfClass2")] // Helper with RyuJIT calling convention + static public unsafe object IsInstanceOfClass2(void* pvTargetType, object obj) + { + return IsInstanceOfClass(obj, pvTargetType); + } + [RuntimeExport("RhTypeCast_IsInstanceOfClass")] static public unsafe object IsInstanceOfClass(object obj, void* pvTargetType) { @@ -152,6 +158,12 @@ namespace System.Runtime } } + [RuntimeExport("RhTypeCast_CheckCastClass2")] // Helper with RyuJIT calling convention + static public unsafe object CheckCastClass2(void* pvTargetEEType, Object obj) + { + return CheckCastClass(obj, pvTargetEEType); + } + [RuntimeExport("RhTypeCast_CheckCastClass")] static public unsafe object CheckCastClass(Object obj, void* pvTargetEEType) { |