Skip to content

Instantly share code, notes, and snippets.

@rocky
Created May 2, 2011 20:54
Show Gist options
  • Save rocky/952343 to your computer and use it in GitHub Desktop.
Save rocky/952343 to your computer and use it in GitHub Desktop.
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
Stack size: 5
Lines to IP: 1: 0..9, 1073741823: 10..17, 1: 18..41, 1073741823: 42..47
0000: push_exception_state
0001: set_stack_local 0
0003: pop
0004: setup_unwind 13, 0
0007: push_self
0008: send_method :foo
0010: pop_unwind
0011: goto 42
0013: push_exception_state
0014: set_stack_local 1
0016: pop
0017: push_current_exception
0018: dup_top
0019: push_const_fast :StandardError, 2
0022: swap_stack
0023: send_stack :===, 1
0026: goto_if_true 30
0028: goto 37
0030: pop
0031: push_self
0032: send_method :bar
0034: clear_exception
0035: goto 42
0037: pop
0038: push_stack_local 1
0040: restore_exception_state
0041: reraise
0042: push_stack_local 0
0044: restore_exception_state
0045: pop
0046: push_true
0047: ret
----------------------------------------
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
Stack size: 5
Lines to IP: 1: 0..47
0000: push_exception_state
0001: set_stack_local 0
0003: pop
0004: setup_unwind 13, 0
0007: push_self
0008: send_method :foo
0010: pop_unwind
0011: goto 42
0013: push_exception_state
0014: set_stack_local 1
0016: pop
0017: push_current_exception
0018: dup_top
0019: push_const_fast :StandardError, 2
0022: swap_stack
0023: send_stack :===, 1
0026: goto_if_true 30
0028: goto 37
0030: pop
0031: push_self
0032: send_method :bar
0034: clear_exception
0035: goto 42
0037: pop
0038: push_stack_local 1
0040: restore_exception_state
0041: reraise
0042: push_stack_local 0
0044: restore_exception_state
0045: pop
0046: push_true
0047: ret
----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment