aboutsummaryrefslogtreecommitdiff
path: root/src/lj_frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_frame.h')
-rw-r--r--src/lj_frame.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lj_frame.h b/src/lj_frame.h
index fc0e281c..db2e4da1 100644
--- a/src/lj_frame.h
+++ b/src/lj_frame.h
@@ -116,6 +116,17 @@ enum { LJ_CONT_TAILCALL, LJ_CONT_FFI_CALLBACK }; /* Special continuations. */
116 116
117/* These definitions must match with the arch-specific *.dasc files. */ 117/* These definitions must match with the arch-specific *.dasc files. */
118#if LJ_TARGET_X86 118#if LJ_TARGET_X86
119#if LJ_ABI_WIN
120#define CFRAME_OFS_ERRF (19*4)
121#define CFRAME_OFS_NRES (18*4)
122#define CFRAME_OFS_PREV (17*4)
123#define CFRAME_OFS_L (16*4)
124#define CFRAME_OFS_SEH (9*4)
125#define CFRAME_OFS_PC (6*4)
126#define CFRAME_OFS_MULTRES (5*4)
127#define CFRAME_SIZE (16*4)
128#define CFRAME_SHIFT_MULTRES 0
129#else
119#define CFRAME_OFS_ERRF (15*4) 130#define CFRAME_OFS_ERRF (15*4)
120#define CFRAME_OFS_NRES (14*4) 131#define CFRAME_OFS_NRES (14*4)
121#define CFRAME_OFS_PREV (13*4) 132#define CFRAME_OFS_PREV (13*4)
@@ -124,6 +135,7 @@ enum { LJ_CONT_TAILCALL, LJ_CONT_FFI_CALLBACK }; /* Special continuations. */
124#define CFRAME_OFS_MULTRES (5*4) 135#define CFRAME_OFS_MULTRES (5*4)
125#define CFRAME_SIZE (12*4) 136#define CFRAME_SIZE (12*4)
126#define CFRAME_SHIFT_MULTRES 0 137#define CFRAME_SHIFT_MULTRES 0
138#endif
127#elif LJ_TARGET_X64 139#elif LJ_TARGET_X64
128#if LJ_ABI_WIN 140#if LJ_ABI_WIN
129#define CFRAME_OFS_PREV (13*8) 141#define CFRAME_OFS_PREV (13*8)