Skip to content

Instantly share code, notes, and snippets.

@headius
Created October 21, 2014 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/580b9ea177f2f0f97ff5 to your computer and use it in GitHub Desktop.
Save headius/580b9ea177f2f0f97ff5 to your computer and use it in GitHub Desktop.
Linearized instructions for JIT:
0 %v_7 = nil
1 %v_6 = nil
2 %v_9 = nil
3 %v_8 = nil
4 %v_3 = nil
5 %v_2 = nil
6 %v_5 = nil
7 %v_4 = nil
8 %current_module = nil
9 %self = recv_self
10 %current_scope = scope<0>
11 %current_module = module<0>
12 thread_poll
13 line_num(0)
14 %v_2 = get_global_var($!)
15 %v_4 = call(VARIABLE, 'raise', %self, [])
16 %v_3 = copy(%v_4)
17 return(%v_3)
18 return(nil)
19 %v_5 = recv_ruby_exc
20 %v_6 = inheritance_search_const(%current_module, StandardError)
21 %v_7 = rescue_eqq(%v_6, %v_5)
22 b_true(%v_7, CL1_LBL_4:-1)
23 throw(%v_5)
24 %v_8 = recv_jruby_exc
25 %v_9 = runtime_helper(HANDLE_BREAK_AND_RETURNS_IN_LAMBDA, [%v_8])
26 return(%v_9)
27 put_global_var($!) = %v_2
28 thread_poll
29 return(nil)
TypeError: null is not a type/class
-e_CLOSURE_1__-e_0 at -e:20
times at org/jruby/RubyFixnum.java:296
__script__ at -e:5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment