[pypy-commit] extradoc extradoc: add the trace of the example as a figure

bivab noreply at buildbot.pypy.org
Fri Jul 20 14:16:00 CEST 2012


Author: David Schneider <david.schneider at picle.org>
Branch: extradoc
Changeset: r4316:058dd9ffdec2
Date: 2012-07-20 14:15 +0200
http://bitbucket.org/pypy/extradoc/changeset/058dd9ffdec2/

Log:	add the trace of the example as a figure

diff --git a/talk/vmil2012/Makefile b/talk/vmil2012/Makefile
--- a/talk/vmil2012/Makefile
+++ b/talk/vmil2012/Makefile
@@ -1,5 +1,5 @@
 
-jit-guards.pdf: paper.tex paper.bib
+jit-guards.pdf: paper.tex paper.bib figures/log.tex
 	pdflatex paper
 	bibtex paper
 	pdflatex paper
diff --git a/talk/vmil2012/figures/log.tex b/talk/vmil2012/figures/log.tex
new file mode 100644
--- /dev/null
+++ b/talk/vmil2012/figures/log.tex
@@ -0,0 +1,26 @@
+\begin{verbatim}
+[i0, i1, p2]
+label(i0, i1, p2, descr=label0))
+guard_nonnull_class(p2, Even) [i1, i0, p2]
+i4 = getfield_gc(p2, descr='value')
+i6 = int_rshift(i4, 2)
+i8 = int_eq(i6, 1)
+guard_false(i8) [i6, i1, i0]
+i10 = int_and(i6, 1)
+i11 = int_is_zero(i10)
+guard_true(i11) [i6, i1, i0]
+i13 = int_lt(i1, 100)
+guard_true(i13) [i1, i0, i6]
+i15 = int_add(i1, 1)
+label(i0, i15, i6, descr=label1)
+i16 = int_rshift(i6, 2)
+i17 = int_eq(i16, 1)
+guard_false(i17) [i16, i15, i0]
+i18 = int_and(i16, 1)
+i19 = int_is_zero(i18)
+guard_true(i19) [i16, i15, i0]
+i20 = int_lt(i15, 100)
+guard_true(i20) [i15, i0, i16]
+i21 = int_add(i15, 1)
+jump(i0, i21, i16, descr=label1)
+\end{verbatim}
diff --git a/talk/vmil2012/paper.tex b/talk/vmil2012/paper.tex
--- a/talk/vmil2012/paper.tex
+++ b/talk/vmil2012/paper.tex
@@ -310,6 +310,11 @@
 \bivab{mention that the failargs also go into the bridge}
 % section Resume Data (end)
 
+\begin{figure}
+\input{figures/log.tex}
+\caption{Optimized trace}
+\label{fig:trace-log}
+\end{figure}
 \section{Guards in the Backend}
 \label{sec:Guards in the Backend}
 


More information about the pypy-commit mailing list