compiler.cfg.stack-analysis: fix outdated tests
parent
4191deb525
commit
9cbd6c52a6
|
@ -99,7 +99,7 @@ IN: compiler.cfg.stack-analysis.tests
|
||||||
! Correct height tracking
|
! Correct height tracking
|
||||||
[ t ] [
|
[ t ] [
|
||||||
[ pick [ <array> ] [ drop ] if swap ] test-stack-analysis eliminate-dead-code
|
[ pick [ <array> ] [ drop ] if swap ] test-stack-analysis eliminate-dead-code
|
||||||
reverse-post-order 3 swap nth
|
reverse-post-order 4 swap nth
|
||||||
instructions>> [ ##peek? ] filter first2 [ loc>> ] [ loc>> ] bi*
|
instructions>> [ ##peek? ] filter first2 [ loc>> ] [ loc>> ] bi*
|
||||||
2array { D 1 D 0 } set=
|
2array { D 1 D 0 } set=
|
||||||
] unit-test
|
] unit-test
|
||||||
|
@ -170,9 +170,9 @@ IN: compiler.cfg.stack-analysis.tests
|
||||||
! Inserted ##peeks reference the wrong stack location
|
! Inserted ##peeks reference the wrong stack location
|
||||||
[ t ] [
|
[ t ] [
|
||||||
[ [ "B" ] 2dip dup [ [ /mod ] dip ] when ] test-stack-analysis
|
[ [ "B" ] 2dip dup [ [ /mod ] dip ] when ] test-stack-analysis
|
||||||
eliminate-dead-code reverse-post-order 3 swap nth
|
eliminate-dead-code reverse-post-order 4 swap nth
|
||||||
instructions>> [ ##peek? ] filter [ loc>> ] map
|
instructions>> [ ##peek? ] filter [ loc>> ] map
|
||||||
{ R 0 D 0 D 1 } set=
|
{ D 0 D 1 } set=
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
[ D 0 ] [
|
[ D 0 ] [
|
||||||
|
|
Loading…
Reference in New Issue