Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
44904026
Commit
44904026
authored
Apr 17, 2011
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added control flow graph and trace tree.
parent
ca1df2da
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
88 additions
and
14 deletions
+88
-14
portfolio/tracing/Makefile
portfolio/tracing/Makefile
+1
-0
portfolio/tracing/code/Makefile
portfolio/tracing/code/Makefile
+20
-0
portfolio/tracing/code/cfg-example.js
portfolio/tracing/code/cfg-example.js
+15
-0
portfolio/tracing/images/control-flow-graph.dia
portfolio/tracing/images/control-flow-graph.dia
+0
-0
portfolio/tracing/images/trace-tree.dia
portfolio/tracing/images/trace-tree.dia
+0
-0
portfolio/tracing/presentation.tex
portfolio/tracing/presentation.tex
+52
-14
No files found.
portfolio/tracing/Makefile
View file @
44904026
...
@@ -16,6 +16,7 @@ clean:
...
@@ -16,6 +16,7 @@ clean:
compile
:
presentation.pdf
compile
:
presentation.pdf
highlight
:
basic-example.tex
highlight
:
basic-example.tex
$(MAKE)
-C
code
%.pdf
:
%.tex
%.pdf
:
%.tex
pdflatex
$^
pdflatex
$^
...
...
portfolio/tracing/code/Makefile
0 → 100644
View file @
44904026
# Sander van Veen - 6167969 - University of Amsterdam - <sandervv@gmail.com>
#
# Basic Makefile used to simplify the compilation. Running "make" (without any
# arguments) from the command line will build the report for this assignment.
#
.PHONY
:
all clean highlight
SHELL
:=
/bin/bash
all
:
highlight
clean
:
rm
-vf
*
.tex
highlight
:
cfg-example.tex
cfg-example.tex
:
cfg-example.js
pygmentize
-O
style
=
colorful
-o
$@
$^
portfolio/tracing/code/cfg-example.js
0 → 100644
View file @
44904026
function
A
(
x
)
{
y
=
0
;
// 1
do
{
// 2
if
(
x
>
42
)
{
if
(
y
>
1000
)
{
// 3
return
x
;
// 7
}
}
else
{
y
++
;
// 4
}
}
while
(
++
x
<
1000
);
// 5
return
y
;
// 6
}
portfolio/tracing/images/control-flow-graph.dia
0 → 100644
View file @
44904026
File added
portfolio/tracing/images/trace-tree.dia
0 → 100644
View file @
44904026
File added
portfolio/tracing/presentation.tex
View file @
44904026
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
\usepackage
[dutch]
{
babel
}
\usepackage
[dutch]
{
babel
}
\usepackage
[utf8]
{
inputenc
}
\usepackage
[utf8]
{
inputenc
}
\usepackage
{
beamerthemesplit
}
\usepackage
{
beamerthemesplit
}
\usepackage
{
graphics,url,float
}
\usepackage
{
graphics,
booktabs,
url,float
}
\definecolor
{
kugreen
}{
RGB
}{
110,131,163
}
\definecolor
{
kugreen
}{
RGB
}{
110,131,163
}
\setbeamercovered
{
transparent
}
\setbeamercovered
{
transparent
}
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
\subtitle
{
Executing typeless, dynamic languages faster
}
\subtitle
{
Executing typeless, dynamic languages faster
}
\author
{
Sander van Veen
}
\author
{
Sander van Veen
}
\institute
{
Universiteit van Amsterdam
}
\institute
{
Universiteit van Amsterdam
}
\date
{
10 april
2011
}
\date
{
2 mei
2011
}
\begin{document}
\begin{document}
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
\begin{itemize}
\begin{itemize}
\item
Typeless: objecten of primitieven.
\item
Typeless: objecten of primitieven.
\item
Dynamic: alles kan veranderen.
\item
Dynamic: alles kan
\emph
{
at runtime
}
veranderen.
\end{itemize}
\end{itemize}
JavaScript voorbeeld:
JavaScript voorbeeld:
...
@@ -89,20 +89,21 @@
...
@@ -89,20 +89,21 @@
Firefox gebruikt 64 bits voor alle types:
Firefox gebruikt 64 bits voor alle types:
\begin{center}
\begin{center}
\begin{tabular}
{
|l|ll|
}
\hlin
e
\begin{tabular}
{
l|ll
}
\toprul
e
JavaScript waarde
&
eerste 32 bits
&
laatste 32 bits
\\
\
hlin
e
JavaScript waarde
&
eerste 32 bits
&
laatste 32 bits
\\
\
midrul
e
37
&
INTEGER
\_
TAG
&
37
\\
\hline
42
&
INTEGER
\_
TAG
&
42
\\
"hi"
&
STRING
\_
TAG
&
0x20506638
\\
\hline
"hi"
&
STRING
\_
TAG
&
0x20506638
\\
\{
key: "value"
\}
&
OBJECT
\_
TAG
&
0x86753090
\\
\hline
\{
key: "value"
\}
&
OBJECT
\_
TAG
&
0x86753090
\\
3.1415
&
0x400921CA
&
0xC083126F
\\
\
hlin
e
3.1415
&
0x400921CA
&
0xC083126F
\\
\
bottomrul
e
\end{tabular}
\end{tabular}
\end{center}
\end{center}
``NaN unboxing''
zorgt voor onderscheid TAGs en double
:
``NaN unboxing''
is de techniek voor onderscheid in variabel typen
:
\begin{itemize}
\begin{itemize}
\item
Double: sign 1 bit, exponent 11 bits en mantissa 52 bits.
\item
Double: sign 1 bit, exponent 11 bits en mantissa 52 bits.
\item
IEEE 754: alle exponent bits 1
$
\rightarrow
$
float is
\texttt
{
NaN
}
of
$
\pm
\infty
$
.
\item
IEEE 754: alle exponent bits op 1
$
\rightarrow
$
float is
\texttt
{
NaN
}
of
$
\pm
\infty
$
.
\item
Dus: bij
\texttt
{
NaN
}
bepalen de 14 bits na de exponent de TAG.
\item
Dus: bij
\texttt
{
NaN
}
bepalen de 14 bits na de exponent de TAG.
\end{itemize}
\end{itemize}
...
@@ -122,17 +123,54 @@
...
@@ -122,17 +123,54 @@
\begin{itemize}
\begin{itemize}
\pause
\item
Interpreter
\pause
\item
Interpreter
\pause
\item
Method Just-In-Time compiler (JägerMonkey)
\pause
\item
Method Just-In-Time compiler (JägerMonkey)
\pause
\item
\alert
{
Trace
Just-In-Time
compiler (TraceMonkey)
}
\pause
\item
\alert
{
Trace compiler (TraceMonkey)
}
\end{itemize}
\end{itemize}
\end{itemize}
\end{itemize}
}
% }}}
}
% }}}
\frame
{
\frametitle
{
Trace Just-In-Time compiler
}
% {{{
\frame
{
\frametitle
{
Control flow graph
}
% {{{
\begin{columns}
[t]
\column
{
.6
\textwidth
}
\textbf
{
Code voorbeeld
}
\input
{
code/cfg-example.tex
}
\column
{
.4
\textwidth
}
\textbf
{
Control flow graph van A
}
\includegraphics
[width=6cm]
{
images/control-flow-graph.pdf
}
\end{columns}
}
% }}}
}
% }}}
% \includegraphics[width=10cm]{images/toetspagina-1.png}
\frame
{
\frametitle
{
Trace vs Just-In-Time compiler
}
% {{{
\begin{columns}
[t]
\column
{
.5
\textwidth
}
\textbf
{
Trace compiler
}
\begin{itemize}
\item
Eenheid is een ``loop''.
\item
Benodigd: Traces opnemen.
\includegraphics
[width=6cm]
{
images/trace-tree.pdf
}
\end{itemize}
\column
{
.5
\textwidth
}
\textbf
{
Just-In-Time compiler
}
\begin{itemize}
\item
Eenheid is een ``method''.
\item
Benodigd: Control flow graph.
\includegraphics
[width=6cm]
{
images/control-flow-graph.pdf
}
\end{itemize}
\end{columns}
}
% }}}
\end{document}
\end{document}
% vim: foldmethod=marker
% vim: foldmethod=marker
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment