VM: an unused #define we can eliminate
parent
81057c4108
commit
510193f012
|
@ -10,7 +10,6 @@ void flush_icache(cell start, cell len);
|
||||||
(((ucontext_t*)ucontext)->uc_mcontext.arm_sp)
|
(((ucontext_t*)ucontext)->uc_mcontext.arm_sp)
|
||||||
#define UAP_PROGRAM_COUNTER(ucontext) \
|
#define UAP_PROGRAM_COUNTER(ucontext) \
|
||||||
(((ucontext_t*)ucontext)->uc_mcontext.arm_pc)
|
(((ucontext_t*)ucontext)->uc_mcontext.arm_pc)
|
||||||
#define UAP_STACK_POINTER_TYPE greg_t
|
|
||||||
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0
|
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0
|
||||||
|
|
||||||
#define CODE_TO_FUNCTION_POINTER(code) (void)0
|
#define CODE_TO_FUNCTION_POINTER(code) (void)0
|
||||||
|
|
|
@ -15,8 +15,6 @@ namespace factor {
|
||||||
#define FUNCTION_CODE_POINTER(ptr) ptr
|
#define FUNCTION_CODE_POINTER(ptr) ptr
|
||||||
#define FUNCTION_TOC_POINTER(ptr) ptr
|
#define FUNCTION_TOC_POINTER(ptr) ptr
|
||||||
|
|
||||||
#define UAP_STACK_POINTER_TYPE unsigned long
|
|
||||||
|
|
||||||
inline static unsigned int uap_fpu_status(void* uap) {
|
inline static unsigned int uap_fpu_status(void* uap) {
|
||||||
union {
|
union {
|
||||||
double as_double;
|
double as_double;
|
||||||
|
|
|
@ -24,8 +24,6 @@ namespace factor {
|
||||||
|
|
||||||
#define FUNCTION_TOC_POINTER(ptr) (function_descriptor_field((void*)ptr, 1))
|
#define FUNCTION_TOC_POINTER(ptr) (function_descriptor_field((void*)ptr, 1))
|
||||||
|
|
||||||
#define UAP_STACK_POINTER_TYPE unsigned long
|
|
||||||
|
|
||||||
inline static unsigned int uap_fpu_status(void* uap) {
|
inline static unsigned int uap_fpu_status(void* uap) {
|
||||||
union {
|
union {
|
||||||
double as_double;
|
double as_double;
|
||||||
|
|
|
@ -57,5 +57,4 @@ inline static void uap_clear_fpu_status(void* uap) {
|
||||||
#define FUNCTION_CODE_POINTER(ptr) ptr
|
#define FUNCTION_CODE_POINTER(ptr) ptr
|
||||||
#define FUNCTION_TOC_POINTER(ptr) ptr
|
#define FUNCTION_TOC_POINTER(ptr) ptr
|
||||||
|
|
||||||
#define UAP_STACK_POINTER_TYPE greg_t
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,8 +25,6 @@ inline static void uap_clear_fpu_status(void* uap) {
|
||||||
#define FUNCTION_CODE_POINTER(ptr) ptr
|
#define FUNCTION_CODE_POINTER(ptr) ptr
|
||||||
#define FUNCTION_TOC_POINTER(ptr) ptr
|
#define FUNCTION_TOC_POINTER(ptr) ptr
|
||||||
|
|
||||||
#define UAP_STACK_POINTER_TYPE greg_t
|
|
||||||
|
|
||||||
/* Must match the leaf-stack-frame-size, signal-handler-stack-frame-size,
|
/* Must match the leaf-stack-frame-size, signal-handler-stack-frame-size,
|
||||||
and stack-frame-size constants in bootstrap/assembler/x86.64.unix.factor */
|
and stack-frame-size constants in bootstrap/assembler/x86.64.unix.factor */
|
||||||
static const unsigned LEAF_FRAME_SIZE = 16;
|
static const unsigned LEAF_FRAME_SIZE = 16;
|
||||||
|
|
|
@ -11,8 +11,6 @@ const char* default_image_path();
|
||||||
#define UAP_STACK_POINTER(ucontext) (((ucontext_t*)ucontext)->uc_stack.ss_sp)
|
#define UAP_STACK_POINTER(ucontext) (((ucontext_t*)ucontext)->uc_stack.ss_sp)
|
||||||
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0
|
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0
|
||||||
|
|
||||||
#define UAP_STACK_POINTER_TYPE void*
|
|
||||||
|
|
||||||
#define CODE_TO_FUNCTION_POINTER(code) (void)0
|
#define CODE_TO_FUNCTION_POINTER(code) (void)0
|
||||||
#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
|
#define CODE_TO_FUNCTION_POINTER_CALLBACK(vm, code) (void)0
|
||||||
#define FUNCTION_CODE_POINTER(ptr) ptr
|
#define FUNCTION_CODE_POINTER(ptr) ptr
|
||||||
|
|
Loading…
Reference in New Issue