Don't need known-tag templates any more
parent
048d8daf09
commit
68c9b22cef
|
@ -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? ;
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue