Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-12-16 07:27:15 +0300
committerJan Kotas <jkotas@microsoft.com>2015-12-16 11:14:14 +0300
commit5c5d71e4540cc99acce91cd0b266a45e6cbd25ec (patch)
tree5b51b394c75432ba9c905da61656a2487294a710 /src/JitInterface
parentf5344359d2fa7fe539352e6502cfcf33dadfe164 (diff)
Implement JITInterface methods needed by JitDump
Diffstat (limited to 'src/JitInterface')
-rw-r--r--src/JitInterface/src/CorInfoImpl.cs17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/JitInterface/src/CorInfoImpl.cs b/src/JitInterface/src/CorInfoImpl.cs
index c4709a136..c93f49dc8 100644
--- a/src/JitInterface/src/CorInfoImpl.cs
+++ b/src/JitInterface/src/CorInfoImpl.cs
@@ -10,7 +10,6 @@ using System.Runtime.InteropServices;
using System.Reflection;
using Internal.TypeSystem;
-using Internal.TypeSystem.Ecma;
using Internal.IL;
@@ -1006,7 +1005,9 @@ namespace Internal.JitInterface
}
private byte* getHelperName(CorInfoHelpFunc helpFunc)
- { throw new NotImplementedException("getHelperName"); }
+ {
+ return (byte*)GetPin(StringToUTF8(helpFunc.ToString()));
+ }
private CorInfoInitClassResult initClass(CORINFO_FIELD_STRUCT_* field, CORINFO_METHOD_STRUCT_* method, CORINFO_CONTEXT_STRUCT* context, [MarshalAs(UnmanagedType.Bool)]bool speculative)
{
@@ -1181,7 +1182,11 @@ namespace Internal.JitInterface
var field = HandleToObject(ftn);
if (moduleName != null)
{
- throw new NotImplementedException("getFieldName");
+ MetadataType typeDef = field.OwningType.GetTypeDefinition() as MetadataType;
+ if (typeDef != null)
+ *moduleName = (byte*)GetPin(StringToUTF8(typeDef.GetFullName()));
+ else
+ *moduleName = (byte*)GetPin(StringToUTF8("unknown"));
}
return (byte*)GetPin(StringToUTF8(field.Name));
@@ -1474,9 +1479,9 @@ namespace Internal.JitInterface
if (moduleName != null)
{
- EcmaType ecmaType = method.OwningType.GetTypeDefinition() as EcmaType;
- if (ecmaType != null)
- *moduleName = (byte*)GetPin(StringToUTF8(ecmaType.GetFullName()));
+ MetadataType typeDef = method.OwningType.GetTypeDefinition() as MetadataType;
+ if (typeDef != null)
+ *moduleName = (byte*)GetPin(StringToUTF8(typeDef.GetFullName()));
else
*moduleName = (byte*)GetPin(StringToUTF8("unknown"));
}