Skip to content

Instantly share code, notes, and snippets.

@SpringMT
Created March 29, 2016 09:39
Show Gist options
  • Select an option

  • Save SpringMT/9d260cb35bfddf2c366b to your computer and use it in GitHub Desktop.

Select an option

Save SpringMT/9d260cb35bfddf2c366b to your computer and use it in GitHub Desktop.
puts RubyVM::InstructionSequence.compile("exit(0) []").disasm
== disasm: #<ISeq:<compiled>@<compiled>>================================
0000 trace 1 ( 1)
0002 putself
0003 putobject_OP_INT2FIX_O_0_C_
0004 opt_send_without_block <callinfo!mid:exit, argc:1, FCALL|ARGS_SIMPLE>, <callcache>
0007 opt_send_without_block <callinfo!mid:[], argc:0, ARGS_SIMPLE>, <callcache>
0010 leave
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment