From 5a4511925242dfc6ca2fd5e60ce6b08a49240a3e Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Mon, 15 Dec 2008 20:55:24 -0600 Subject: [PATCH] Fix jit-dispatch on x86-64; was broken on windows --- basis/cpu/x86/bootstrap.factor | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/basis/cpu/x86/bootstrap.factor b/basis/cpu/x86/bootstrap.factor index 42fcfaa6a2..26488b8d95 100644 --- a/basis/cpu/x86/bootstrap.factor +++ b/basis/cpu/x86/bootstrap.factor @@ -79,9 +79,10 @@ big-endian off ! compute quotation location temp0 temp1 ADD ! load quotation - temp0 temp0 array-start-offset [+] MOV - ! execute branch - temp0 quot-xt-offset [+] JMP + arg temp0 array-start-offset [+] MOV + ! execute branch. the quot must be in arg, since it might + ! not be compiled yet + arg quot-xt-offset [+] JMP ] rc-absolute-cell rt-immediate 1 rex-length + jit-dispatch jit-define : jit->r ( -- )