+/* Return value marshalling for calls between gsharedvt and normal code */
+typedef enum {
+ GSHAREDVT_RET_NONE = 0,
+ GSHAREDVT_RET_IREGS = 1,
+ GSHAREDVT_RET_DOUBLE_FPSTACK = 2,
+ GSHAREDVT_RET_FLOAT_FPSTACK = 3,
+ GSHAREDVT_RET_STACK_POP = 4,
+ GSHAREDVT_RET_I1 = 5,
+ GSHAREDVT_RET_U1 = 6,
+ GSHAREDVT_RET_I2 = 7,
+ GSHAREDVT_RET_U2 = 8,
+ GSHAREDVT_RET_IREG = 9
+} GSharedVtRetMarshal;
+
+typedef struct {
+ /* Method address to call */
+ gpointer addr;
+ /* The trampoline reads this, so keep the size explicit */
+ int ret_marshal;
+ /* If ret_marshal != NONE, this is the stack slot of the vret arg, else -1 */
+ int vret_arg_slot;
+ /* The stack slot where the return value will be stored */
+ int vret_slot;
+ int stack_usage, map_count;
+ /* If not -1, then make a virtual call using this vtable offset */
+ int vcall_offset;
+ /* If 1, make an indirect call to the address in the rgctx reg */
+ int calli;
+ /* Whenever this is a in or an out call */
+ int gsharedvt_in;
+ int map [MONO_ZERO_LEN_ARRAY];
+} GSharedVtCallInfo;
+