Merge branch 'master' of git://factorcode.org/git/factor
commit
0e32dafb38
|
@ -37,3 +37,10 @@ IN: alarms.tests
|
||||||
[ stop-alarm ] [ start-alarm ] bi
|
[ stop-alarm ] [ start-alarm ] bi
|
||||||
4 seconds sleep
|
4 seconds sleep
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
|
[ { 0 } ] [
|
||||||
|
{ 0 }
|
||||||
|
dup '[ 3 seconds sleep 1 _ set-first ] 1 seconds later
|
||||||
|
2 seconds sleep stop-alarm
|
||||||
|
1/2 seconds sleep
|
||||||
|
] unit-test
|
||||||
|
|
|
@ -583,7 +583,7 @@ M:: x86 %store-stack-param ( src n rep -- )
|
||||||
#! input values to callbacks; the callback has its own
|
#! input values to callbacks; the callback has its own
|
||||||
#! stack frame set up, and we want to read the frame
|
#! stack frame set up, and we want to read the frame
|
||||||
#! set up by the caller.
|
#! set up by the caller.
|
||||||
frame-reg swap 2 cells + [+] ;
|
[ frame-reg ] dip 2 cells + reserved-stack-space + [+] ;
|
||||||
|
|
||||||
M:: x86 %load-stack-param ( dst n rep -- )
|
M:: x86 %load-stack-param ( dst n rep -- )
|
||||||
dst n next-stack@ rep %copy ;
|
dst n next-stack@ rep %copy ;
|
||||||
|
|
Loading…
Reference in New Issue