diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-12-30 22:06:01 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-12-30 22:13:50 +0300 |
commit | c4d265a26ce263b0685ba1df315e1241d39e7aff (patch) | |
tree | c045977f06afb14e171aabed3c18902afc6da525 /src/System.Private.CoreLib | |
parent | ec8865f2166aabd2a3e39f84f42ece6f088446eb (diff) |
Miscellaneous fixes for trivial issues found by adhoc testing
- Add intrisic attributes to Object.GetType/Type.GetTypeFromHandle (Object.GetType is commented out under TODO)
- Implement temporary marshalling for bool since it is used by every other Win32 API
- Implement HandleException method on JIT-EE interface
Diffstat (limited to 'src/System.Private.CoreLib')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Object.cs | 4 | ||||
-rw-r--r-- | src/System.Private.CoreLib/src/System/Type.cs | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/src/System/Object.cs b/src/System.Private.CoreLib/src/System/Object.cs index 2bc655ec3..10c7ea611 100644 --- a/src/System.Private.CoreLib/src/System/Object.cs +++ b/src/System.Private.CoreLib/src/System/Object.cs @@ -74,6 +74,10 @@ namespace System } #endif +#if CORERT + // CORERT-TODO: RuntimeTypeHandle + // [Intrinsic] +#endif public Type GetType() { return ReflectionCoreNonPortable.GetRuntimeTypeForEEType(EETypePtr); diff --git a/src/System.Private.CoreLib/src/System/Type.cs b/src/System.Private.CoreLib/src/System/Type.cs index f04950d36..c3027b995 100644 --- a/src/System.Private.CoreLib/src/System/Type.cs +++ b/src/System.Private.CoreLib/src/System/Type.cs @@ -101,7 +101,9 @@ namespace System return RuntimeAugments.Callbacks.GetType(typeName, throwOnError, ignoreCase); } - [MethodImplAttribute(MethodImplOptions.NoInlining)] +#if CORERT + [Intrinsic] +#endif public static Type GetTypeFromHandle(RuntimeTypeHandle handle) { return ReflectionCoreNonPortable.GetTypeForRuntimeTypeHandle(handle); |