Change inlining heuristic so that it behaves the same with dip and >r/r>

db4
Slava Pestov 2008-11-24 05:46:26 -06:00
parent a264adc74c
commit 1fa819191d
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ DEFER: (flat-length)
: word-flat-length ( word -- n )
{
! special-case
{ [ dup { dip 2dip 3dip } memq? ] [ drop 1 ] }
! not inline
{ [ dup inline? not ] [ drop 1 ] }
! recursive and inline