]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix jit-dispatch on x86-64; was broken on windows
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 16 Dec 2008 02:55:24 +0000 (20:55 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 16 Dec 2008 02:55:24 +0000 (20:55 -0600)
basis/cpu/x86/bootstrap.factor

index 42fcfaa6a2421f0d851c884a701ea24485059b80..26488b8d959659762ce7609a68e2a80962aa3772 100644 (file)
@@ -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 ( -- )