Guest User

Untitled

a guest
Oct 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. ~/Code/rubinius ‹ruby-1.9.3› ‹master*› $ bin/rbx compile -B -e "foo { return }"
  2.  
  3. ============= :__script__ ==============
  4. Arguments: 0 required, 0 post, 0 total
  5. Arity: 0
  6. Locals: 0
  7. Stack size: 2
  8. Lines to IP: 1: 0..9
  9.  
  10. 0000: push_self
  11. 0001: create_block #<Rubinius::CompiledMethod __block__ file=(snippet)>
  12. 0003: allow_private
  13. 0004: send_stack_with_block :foo, 0
  14. 0007: pop
  15. 0008: push_true
  16. 0009: ret
  17. ----------------------------------------
  18.  
  19. ============== :__block__ ==============
  20. Arguments: 0 required, 0 post, 0 total, (splat -2)
  21. Arity: -1
  22. Locals: 0
  23. Stack size: 2
  24. Lines to IP: 1: 0..2
  25.  
  26. 0000: push_nil
  27. 0001: raise_return
  28. 0002: ret
  29. ----------------------------------------
Add Comment
Please, Sign In to add comment