summaryrefslogtreecommitdiff
path: root/src/vm/i386/asmconstants.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/i386/asmconstants.h')
-rw-r--r--src/vm/i386/asmconstants.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vm/i386/asmconstants.h b/src/vm/i386/asmconstants.h
index c42b167f32..ee34300387 100644
--- a/src/vm/i386/asmconstants.h
+++ b/src/vm/i386/asmconstants.h
@@ -467,6 +467,24 @@ ASMCONSTANTS_C_ASSERT(Thread__m_pDomain == offsetof(Thread, m_pDomain));
#endif
+#ifdef FEATURE_STUBS_AS_IL
+// DelegateObject from src/vm/object.h
+#define DelegateObject___target 0x04 // offset 0 is m_pMethTab of base class Object
+#define DelegateObject___methodBase 0x08
+#define DelegateObject___methodPtr 0x0c
+#define DelegateObject___methodPtrAux 0x10
+#define DelegateObject___invocationList 0x14
+#define DelegateObject___invocationCount 0x18
+
+ASMCONSTANTS_C_ASSERT(DelegateObject___target == offsetof(DelegateObject, _target));
+ASMCONSTANTS_C_ASSERT(DelegateObject___methodBase == offsetof(DelegateObject, _methodBase));
+ASMCONSTANTS_C_ASSERT(DelegateObject___methodPtr == offsetof(DelegateObject, _methodPtr));
+ASMCONSTANTS_C_ASSERT(DelegateObject___methodPtrAux == offsetof(DelegateObject, _methodPtrAux));
+ASMCONSTANTS_C_ASSERT(DelegateObject___invocationList == offsetof(DelegateObject, _invocationList));
+ASMCONSTANTS_C_ASSERT(DelegateObject___invocationCount == offsetof(DelegateObject, _invocationCount));
+
+#endif
+
#undef ASMCONSTANTS_C_ASSERT
#undef ASMCONSTANTS_RUNTIME_ASSERT