Skip to content

Instantly share code, notes, and snippets.

@evanphx
Created August 29, 2008 18:40
Show Gist options
  • Save evanphx/8030 to your computer and use it in GitHub Desktop.
Save evanphx/8030 to your computer and use it in GitHub Desktop.
sark :: git/rbx » rake 'compile_ruby[suck.rb]'
(in /Users/evanphx/git/rbx)
Compiling suck.rb
:push_nil [1, 0, 0]
[:set_local, 0] [0, 1, 1]
:pop [-1, 1, 1]
[:push_local, 0] [1, 0, 1]
[:send_method, 0] [0, 1, 1]
:meta_push_0 [1, 1, 1]
[:send_stack, 1, 1] [-1, 2, 2]
[:set_local, 1] [0, 1, 2]
:pop [-1, 1, 2]
[:push_local, 1] [1, 0, 2]
:dup_top [1, 1, 2]
[:push_int, 116] [1, 2, 2]
:swap_stack [0, 3, 3]
[:send_stack, 2, 1] [-1, 3, 3]
[:goto_if_false, 31] [-1, 2, 3]
:pop [-1, 1, 3]
:push_true [1, 0, 3]
:ret [-1, 1, 3]
[:goto, 795] [0, 0, 3]
:dup_top [1, 0, 3]
[:push_int, 102] [1, 1, 3]
:swap_stack [0, 2, 3]
[:send_stack, 3, 1] [-1, 2, 3]
[:goto_if_false, 45] [-1, 1, 3]
:pop [-1, 0, 3]
:push_false [1, -1, 3]
:ret [-1, 0, 3]
[:goto, 795] [0, -1, 3]
:dup_top [1, -1, 3]
[:push_int, 110] [1, 0, 3]
:swap_stack [0, 1, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment