Don't need known-tag templates any more

db4
Slava Pestov 2008-10-11 14:08:00 -05:00
parent 048d8daf09
commit 68c9b22cef
2 changed files with 1 additions and 7 deletions

View File

@ -9,8 +9,6 @@ IN: compiler.cfg.stacks
! Converting stack operations into register operations, while
! doing a bit of optimization along the way.
SYMBOL: known-tag
PREDICATE: small-slot < integer cells small-enough? ;
PREDICATE: small-tagged < integer tag-fixnum small-enough? ;

View File

@ -73,11 +73,7 @@ TUPLE: template input output scratch clobber gc ;
} cond ;
: class-matches? ( actual expected -- ? )
{
{ f [ drop t ] }
{ known-tag [ dup [ class-tag >boolean ] when ] }
[ class<= ]
} case ;
dup [ class<= ] [ 2drop t ] if ;
: spec-matches? ( value spec -- ? )
2dup first value-matches?