summaryrefslogtreecommitdiff
path: root/src/vm/commethodrental.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/commethodrental.h')
-rw-r--r--src/vm/commethodrental.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/vm/commethodrental.h b/src/vm/commethodrental.h
new file mode 100644
index 0000000000..0523af274e
--- /dev/null
+++ b/src/vm/commethodrental.h
@@ -0,0 +1,29 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+////////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef _COMMETHODRENTAL_H_
+#define _COMMETHODRENTAL_H_
+
+#include "excep.h"
+#include "fcall.h"
+
+#ifdef FEATURE_METHOD_RENTAL
+// COMMethodRental
+// This class implements SwapMethodBody for our MethodRenting story
+class COMMethodRental
+{
+public:
+
+ // COMMethodRental.SwapMethodBody -- this function will swap an existing method body with
+ // a new method body
+ //
+ static
+ void QCALLTYPE SwapMethodBody(EnregisteredTypeHandle cls, INT32 tkMethod, LPVOID rgMethod, INT32 iSize, INT32 flags, QCall::StackCrawlMarkHandle stackMark);
+};
+#endif // FEATURE_METHOD_RENTAL
+
+#endif //_COMMETHODRENTAL_H_