diff --git a/library/compiler/linearizer.factor b/library/compiler/linearizer.factor index 9d39ef8e52..2f67034160 100644 --- a/library/compiler/linearizer.factor +++ b/library/compiler/linearizer.factor @@ -34,6 +34,8 @@ USE: namespaces USE: words USE: strings USE: errors +USE: prettyprint +USE: kernel-internals ! The linear IR is close to assembly language. It also resembles ! Forth code in some sense. It exists so that pattern matching @@ -51,7 +53,7 @@ SYMBOL: #jump ( tail-call ) SYMBOL: #jump-label ( tail-call ) SYMBOL: #return-to ( push addr on C stack ) -! #dispatch is linearized as #dispatch followed by a #target +! dispatch is linearized as dispatch followed by a #target ! for each dispatch table entry. The linearizer ensures the ! correct number of #targets is emitted. SYMBOL: #target ( part of jump table ) @@ -127,8 +129,7 @@ SYMBOL: #target ( part of jump table ) : linearize-ifte ( param -- ) #! The parameter is a list of two lists, each one a dataflow #! IR. - uncons car -