5 #define RETURN_REG %rax
8 #define STACK_PADDING 56
10 #define NV_TEMP_REG %rbp
12 #define ARITH_TEMP_1 %r8
13 #define ARITH_TEMP_2 %r9
14 #define DIV_RESULT %rax
23 #define PUSH_NONVOLATILE \
32 #define POP_NONVOLATILE \
48 #define PUSH_NONVOLATILE \
55 #define POP_NONVOLATILE \
64 #define QUOT_XT_OFFSET 28
66 /* We pass a function pointer to memcpy to work around a Mac OS X
67 ABI limitation which would otherwise require us to do a bizzaro PC-relative
68 trampoline to retrieve the function address */
69 DEF(void,set_callstack,(F_STACK_FRAME *to, F_STACK_FRAME *from, CELL length, void *memcpy)):
70 sub ARG2,ARG0 /* compute new stack pointer */
72 call *ARG3 /* call memcpy */
73 ret /* return _with new stack_ */
75 DEF(long long,read_timestamp_counter,(void)):
82 DEF(void,primitive_inline_cache_miss,(void)):
84 DEF(void,primitive_inline_cache_miss_tail,(void)):
85 sub $STACK_PADDING,%rsp
87 call MANGLE(inline_cache_miss)
88 add $STACK_PADDING,%rsp
91 DEF(void,get_sse_env,(void*)):
95 DEF(void,set_sse_env,(const void*)):
99 DEF(void,get_x87_env,(void*)):
104 DEF(void,set_x87_env,(const void*)):