2009-07-23 21:54:38 -04:00
|
|
|
! Copyright (C) 2009 Slava Pestov.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2016-05-02 19:16:50 -04:00
|
|
|
USING: accessors compiler.cfg.registers kernel math ;
|
2009-07-23 21:54:38 -04:00
|
|
|
IN: compiler.cfg.stacks.height
|
|
|
|
|
|
|
|
: record-stack-heights ( ds-height rs-height bb -- )
|
2016-05-02 19:16:50 -04:00
|
|
|
[ rs-height<< ] keep ds-height<< ;
|
2009-07-23 21:54:38 -04:00
|
|
|
|
|
|
|
GENERIC# untranslate-loc 1 ( loc bb -- loc' )
|
|
|
|
|
2016-05-02 19:16:50 -04:00
|
|
|
M: ds-loc untranslate-loc ( loc bb -- loc' )
|
|
|
|
[ n>> ] [ ds-height>> ] bi* + <ds-loc> ;
|
|
|
|
M: rs-loc untranslate-loc ( loc bb -- loc' )
|
|
|
|
[ n>> ] [ rs-height>> ] bi* + <rs-loc> ;
|