]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/cpu/x86/64/64.factor
quick test vocab for mt stuff
[factor.git] / basis / cpu / x86 / 64 / 64.factor
index a0ca3d17c70fb6127b0878798d7c76d5182e5b6c..925de44c23409d7ef5b7fd1b5ccc3947e524b50b 100644 (file)
@@ -123,6 +123,8 @@ M:: x86.64 %unbox-large-struct ( n c-type -- )
     [ ]
     tri copy-register ;
 
+
+
 M:: x86.64 %box ( n rep func -- )
     n [
         n
@@ -131,7 +133,7 @@ M:: x86.64 %box ( n rep func -- )
     ] [
         rep load-return-value
     ] if
-    func %vm-invoke-2nd-arg ;
+    rep int-rep? [ func %vm-invoke-2nd-arg ] [ func %vm-invoke-1st-arg ] if ;
 
 M: x86.64 %box-long-long ( n func -- )
     [ int-rep ] dip %box ;