|
@@ -26,7 +26,7 @@
|
|
|
|
|
|
\def\racketEd{0}
|
|
\def\racketEd{0}
|
|
\def\pythonEd{1}
|
|
\def\pythonEd{1}
|
|
-\def\edition{0}
|
|
|
|
|
|
+\def\edition{1}
|
|
|
|
|
|
% material that is specific to the Racket edition of the book
|
|
% material that is specific to the Racket edition of the book
|
|
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
|
|
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
|
|
@@ -18135,16 +18135,16 @@ that you should place the \itm{arity} in the tag that is stored at
|
|
position $0$ of the tuple. Recall that in
|
|
position $0$ of the tuple. Recall that in
|
|
section~\ref{sec:select-instructions-gc} a portion of the 64-bit tag
|
|
section~\ref{sec:select-instructions-gc} a portion of the 64-bit tag
|
|
was not used. We store the arity in the $5$ bits starting at position
|
|
was not used. We store the arity in the $5$ bits starting at position
|
|
-$58$.
|
|
|
|
|
|
+$57$.
|
|
|
|
|
|
\racket{Compile the \code{procedure-arity} operator into a sequence of
|
|
\racket{Compile the \code{procedure-arity} operator into a sequence of
|
|
instructions that access the tag from position $0$ of the vector and
|
|
instructions that access the tag from position $0$ of the vector and
|
|
-extract the $5$ bits starting at position $58$ from the tag.}
|
|
|
|
|
|
+extract the $5$ bits starting at position $57$ from the tag.}
|
|
%
|
|
%
|
|
\python{Compile a call to the \code{arity} operator to a sequence of
|
|
\python{Compile a call to the \code{arity} operator to a sequence of
|
|
instructions that access the tag from position $0$ of the tuple
|
|
instructions that access the tag from position $0$ of the tuple
|
|
(representing a closure) and extract the $5$ bits starting at position
|
|
(representing a closure) and extract the $5$ bits starting at position
|
|
-$58$ from the tag.}
|
|
|
|
|
|
+$57$ from the tag.}
|
|
|
|
|
|
Figure~\ref{fig:Llambda-passes} provides an overview of the passes
|
|
Figure~\ref{fig:Llambda-passes} provides an overview of the passes
|
|
needed for the compilation of \LangLam{}.
|
|
needed for the compilation of \LangLam{}.
|