From c7c3bbc5f5e463d6b837537c348e86c67de4d3ea Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sun, 30 Nov 2008 08:05:36 -0600 Subject: [PATCH] Fix register assignments on 64-bit x86 --- basis/cpu/x86/64/64.factor | 2 -- basis/cpu/x86/64/unix/unix.factor | 4 ++++ basis/cpu/x86/64/winnt/winnt.factor | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/basis/cpu/x86/64/64.factor b/basis/cpu/x86/64/64.factor index b6c76a78fd..6472ec0edf 100644 --- a/basis/cpu/x86/64/64.factor +++ b/basis/cpu/x86/64/64.factor @@ -21,8 +21,6 @@ M: x86.64 machine-registers M: x86.64 ds-reg R14 ; M: x86.64 rs-reg R15 ; M: x86.64 stack-reg RSP ; -M: x86.64 temp-reg-1 R8 ; -M: x86.64 temp-reg-2 R9 ; M:: x86.64 %dispatch ( src temp offset -- ) ! Load jump table base. diff --git a/basis/cpu/x86/64/unix/unix.factor b/basis/cpu/x86/64/unix/unix.factor index ddb412873a..f5fb5b9640 100644 --- a/basis/cpu/x86/64/unix/unix.factor +++ b/basis/cpu/x86/64/unix/unix.factor @@ -52,3 +52,7 @@ M: x86.64 dummy-stack-params? f ; M: x86.64 dummy-int-params? f ; M: x86.64 dummy-fp-params? f ; + +M: x86.64 temp-reg-1 R8 ; + +M: x86.64 temp-reg-2 R9 ; diff --git a/basis/cpu/x86/64/winnt/winnt.factor b/basis/cpu/x86/64/winnt/winnt.factor index 629ba23e06..4c6af6c1e7 100644 --- a/basis/cpu/x86/64/winnt/winnt.factor +++ b/basis/cpu/x86/64/winnt/winnt.factor @@ -20,6 +20,10 @@ M: x86.64 dummy-int-params? t ; M: x86.64 dummy-fp-params? t ; +M: x86.64 temp-reg-1 RAX ; + +M: x86.64 temp-reg-2 RCX ; + << "longlong" "ptrdiff_t" typedef "longlong" "intptr_t" typedef