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>2016-03-04 07:21:42 +0300
committerJan Kotas <jkotas@microsoft.com>2016-03-08 19:54:49 +0300
commitc2a2abeb5ec63c8329f56f78a1ccb7e8f7613164 (patch)
treece7283e4ff6a9f097b77f8070f95b39a1795b00e /src/Native/Runtime/ICodeManager.h
parenta15c0e8da841a8015093267bd98b8fb93e8a3e21 (diff)
Enable hardware exception handling on Windows
Diffstat (limited to 'src/Native/Runtime/ICodeManager.h')
-rw-r--r--src/Native/Runtime/ICodeManager.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Native/Runtime/ICodeManager.h b/src/Native/Runtime/ICodeManager.h
index 19c753e0e..c3be1bcd9 100644
--- a/src/Native/Runtime/ICodeManager.h
+++ b/src/Native/Runtime/ICodeManager.h
@@ -66,6 +66,17 @@ struct EHClause
void* m_pTargetType;
};
+// Constants used with RhpGetClasslibFunction, to indicate which classlib function
+// we are interested in.
+// Note: make sure you change the def in System\Runtime\exceptionhandling.cs if you change this!
+enum class ClasslibFunctionId
+{
+ GetRuntimeException = 0,
+ FailFast = 1,
+ UnhandledExceptionHandler = 2,
+ AppendExceptionStackFrame = 3,
+};
+
class ICodeManager
{
public:
@@ -104,4 +115,6 @@ public:
virtual bool EHEnumInit(MethodInfo * pMethodInfo, PTR_VOID * pMethodStartAddress, EHEnumState * pEHEnumState) = 0;
virtual bool EHEnumNext(EHEnumState * pEHEnumState, EHClause * pEHClause) = 0;
+
+ virtual void * GetClasslibFunction(ClasslibFunctionId functionId) = 0;
};