Skip to content

Instantly share code, notes, and snippets.

@wecing
Created April 8, 2014 06:04
Show Gist options
  • Save wecing/10095922 to your computer and use it in GitHub Desktop.
Save wecing/10095922 to your computer and use it in GitHub Desktop.
IR of closure.lisp, phase 2
<build-in "display" $-3>
<build-in "+" $-7>
func #22 {
$-4 <- getupval 1
$-5 <- getupval 0
$-6 <- getarg 0
$23 <- deref $-4
$24 <- deref $-5
$16 <- funcall 3 $-7 $23 $24 $-6
}
func #21 {
$-4 <- getupval 0
$25 <- getarg 0
$-5 <- newref $25
$15 <- newclosure 2 #22 $-5 $-4
}
func #20 {
$26 <- getarg 0
$-4 <- newref $26
$14 <- newclosure 1 #21 $-4
}
func #19 {
$-2 <- getarg 0
$7 <- value 6
$6 <- funcall 1 $-2 $7
$5 <- set $-2 $6
$10 <- value 1
$9 <- funcall 1 $-2 $10
$8 <- funcall 1 $-3 $9
}
func #18 {
$-1 <- getarg 0
$4 <- newclosure 0 #19
$12 <- value 5
$11 <- funcall 1 $-1 $12
$3 <- funcall 1 $4 $11
}
func #17 {
$2 <- newclosure 0 #18
$13 <- newclosure 0 #20
$1 <- funcall 1 $2 $13
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment