Guest User

Untitled

a guest
Nov 19th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. < == disasm: #<ISeq:bar@./sample.rb>======================================
  2. ---
  3. > == disasm: #<ISeq:bar@./sample2.rb>=====================================
  4. 39c39
  5. < [ 1] foo
  6. ---
  7. > [ 1] test
  8. 41,46c41,47
  9. < 0001 getlocal foo, 0 <==== ローカル変数fooが定義されている
  10. < 0004 send <callinfo!mid:baz, argc:1, FCALL|ARGS_SIMPLE>, <callcache>, nil
  11. < 0008 setlocal foo, 0
  12. < 0011 getlocal foo, 0 ( 5)
  13. < 0014 leave
  14. < == disasm: #<ISeq:baz@./sample.rb>======================================
  15. ---
  16. > 0001 putself
  17. > 0002 send <callinfo!mid:foo, argc:0, FCALL|VCALL|ARGS_SIMPLE>, <callcache>, nil <==== fooメソッドが呼び出されている
  18. > 0006 send <callinfo!mid:baz, argc:1, FCALL|ARGS_SIMPLE>, <callcache>, nil
  19. > 0010 setlocal test, 0
  20. > 0013 getlocal test, 0 ( 5)
  21. > 0016 leave
  22. > == disasm: #<ISeq:baz@./sample2.rb>=====================================
Add Comment
Please, Sign In to add comment