Skip to content

Instantly share code, notes, and snippets.

@shyouhei
Created January 17, 2017 22:28
Show Gist options
  • Select an option

  • Save shyouhei/b99f43ac64ec83351e16aae90c8f2a82 to your computer and use it in GitHub Desktop.

Select an option

Save shyouhei/b99f43ac64ec83351e16aae90c8f2a82 to your computer and use it in GitHub Desktop.
zsh % ./miniruby --dump=insns -ve '[*ary1, *ary2]'
ruby 2.5.0dev (2017-01-17) [x86_64-darwin15]
== disasm: #<ISeq:<main>@-e>============================================
0000 trace 1 ( 1)
0002 putself
0003 opt_send_without_block <callinfo!mid:ary1, argc:0, FCALL|VCALL|ARGS_SIMPLE>, <callcache>
0006 splatarray true
0008 putself
0009 opt_send_without_block <callinfo!mid:ary2, argc:0, FCALL|VCALL|ARGS_SIMPLE>, <callcache>
0012 concatarray
0013 leave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment