[pypy-svn] r78052 - pypy/extradoc/talk/pepm2011

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Oct 18 17:39:03 CEST 2010


Author: cfbolz
Date: Mon Oct 18 17:39:02 2010
New Revision: 78052

Modified:
   pypy/extradoc/talk/pepm2011/paper.tex
Log:
stop using the graphic for the traces


Modified: pypy/extradoc/talk/pepm2011/paper.tex
==============================================================================
--- pypy/extradoc/talk/pepm2011/paper.tex	(original)
+++ pypy/extradoc/talk/pepm2011/paper.tex	Mon Oct 18 17:39:02 2010
@@ -664,7 +664,29 @@
 and \lstinline{guard_class} operations).
 
 \begin{figure}
-\includegraphics{figures/step1.pdf}
+\begin{lstlisting}[mathescape]
+# arguments to the trace: $p_{0}$, $p_{1}$
+guard_class($p_1$, BoxedInteger)
+$i_2$ = getfield($p_1$, intval)
+guard_class($p_0$, BoxedInteger)
+$i_3$ = getfield($p_0$, intval)
+$i_4$ = int_add($i_2$, $i_3$)
+$i_9$ = int_add($i_4$, -100)
+
+guard_class($p_0$, BoxedInteger)
+$i_{12}$ = getfield($p_0$, intval)
+$i_{14}$ = int_add($i_{12}$, -1)
+
+$i_{17}$ = int_gt($i_{14}$, 0)
+guard_true($i_{17}$)
+
+$p_{15}$ = new(BoxedInteger)
+setfield($p_{15}$, intval, $i_{14}$)
+$p_{10}$ = new(BoxedInteger)
+setfield($p_{10}$, intval, $i_9$)
+
+jump($p_{15}$, $p_{10}$)
+\end{lstlisting}
 \caption{Resulting Trace After Allocation Removal}
 \label{fig:step1}
 \end{figure}



More information about the Pypy-commit mailing list