]> gitweb.factorcode.org Git - factor.git/commitdiff
cpu.x86.32.bootstrap: update unwind-native-frames
authorJoe Groff <arcata@gmail.com>
Tue, 20 Dec 2011 02:42:14 +0000 (18:42 -0800)
committerJoe Groff <arcata@gmail.com>
Tue, 20 Dec 2011 02:42:14 +0000 (18:42 -0800)
The arguments passed from C are in a different position now.

basis/cpu/x86/32/bootstrap.factor

index 2bb9eac877d57a5e1d35ee8c86559cb596549934..55bed69cbe68fd470e32431ba96542a7944706e3 100755 (executable)
@@ -102,6 +102,8 @@ IN: bootstrap.x86
 [ jit-jump-quot ]
 \ (call) define-combinator-primitive
 
+! unwind-native-frames is marked as "special" in vm/quotations.cpp
+! so it does not have a standard prolog
 [
     ! Load ds and rs registers
     jit-load-vm
@@ -115,8 +117,8 @@ IN: bootstrap.x86
     ctx-reg jit-update-seh
 
     ! Load arguments
-    EAX ESP stack-frame-size [+] MOV
-    EDX ESP stack-frame-size 4 + [+] MOV
+    EAX ESP cell [+] MOV
+    EDX ESP 2 cells [+] MOV
 
     ! Unwind stack frames
     ESP EDX MOV