]> gitweb.factorcode.org Git - factor.git/commitdiff
next-fastcall-param word was not being called; on x86 its equivalent to inc but on...
authorSlava Pestov <slava@factorcode.org>
Sat, 22 Aug 2009 01:15:19 +0000 (20:15 -0500)
committerSlava Pestov <slava@factorcode.org>
Sat, 22 Aug 2009 01:15:19 +0000 (20:15 -0500)
basis/compiler/codegen/codegen.factor

index d1a09394cd99374c611054e5c97cc2dcb00a58ec..d1b5558beb53868d62960755f07483e267d9c512 100755 (executable)
@@ -267,7 +267,7 @@ M: ##alien-global generate-insn
     %alien-global ;
 
 ! ##alien-invoke
-GENERIC: next-fastcall-param ( reg-class -- )
+GENERIC: next-fastcall-param ( rep -- )
 
 : ?dummy-stack-params ( rep -- )
     dummy-stack-params? [ rep-size cell align stack-params +@ ] [ drop ] if ;
@@ -300,7 +300,7 @@ M: reg-class reg-class-full?
     stack-params dup ;
 
 : alloc-fastcall-param ( rep -- n reg-class rep )
-    [ reg-class-of [ get ] [ inc ] [ ] tri ] keep ;
+    [ [ reg-class-of get ] [ reg-class-of ] [ next-fastcall-param ] tri ] keep ;
 
 : alloc-parameter ( parameter -- reg rep )
     c-type-rep dup reg-class-of reg-class-full?