Skip to content

Instantly share code, notes, and snippets.

@enebo
Created November 18, 2020 19:46
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 enebo/10e9f76f22cb877e707032e548435b8e to your computer and use it in GitHub Desktop.
Save enebo/10e9f76f22cb877e707032e548435b8e to your computer and use it in GitHub Desktop.
RootNode line: 0
DefnNode*:initialize line: 0
ArgsNode line: 1
ListNode line: 1
ListNode line: 1
ListNode line: 1
ListNode line: 1
EnsureNode line: 1
SuperNode* line: 1
ArrayNode line: 1
VCallNode*:a line: 1
CallNode*:close line: 3
VCallNode*:a line: 3
, null, null
:Instructions
2020-11-18T13:44:33.215-06:00 [main] INFO BasicCompilerPassListener : Finished Add Missing Initialization on scope in 0ms.
2020-11-18T13:44:33.232-06:00 [main] INFO IRScope : :0 initialize
0 [DEAD]%self = recv_self()
1 %v_0 = load_implicit_closure()
2 %current_module = copy(module<0>)
3 check_arity(;req: 0, opt: 0, *r: false, kw: false)
4 %v_2 = get_global_var($!)
5 label(LBL_0:6)
6 exc_region_start(LBL_3:20)
7 line_num(;n: 1)
8 %v_6 = call_0o(%self ;n:a, t:VA, cl:false)
9 %v_7 = unresolved_super(%self, %v_6, %v_0 ;n:-dynamic-super_target-, t:SU, cl:true)
10 exc_region_end()
11 %v_5 = copy(%v_7)
12 label(LBL_4:13)
13 exc_region_start(UNRESCUED_REGION_0:-1)
14 line_num(;n: 3)
15 %v_3 = call_0o(%self ;n:a, t:VA, cl:false)
16 %v_4 = call_0o(%v_3 ;n:close, t:NO, cl:false)
17 exc_region_end()
18 jump(LBL_2:27)
19 label(LBL_3:20)
20 %v_8 = recv_jruby_exc()
21 label(LBL_1:22)
22 line_num(;n: 3)
23 %v_3 = call_0o(%self ;n:a, t:VA, cl:false)
24 %v_4 = call_0o(%v_3 ;n:close, t:NO, cl:false)
25 throw(%v_8)
26 label(LBL_2:27)
27 return(%v_5)
def initialize
super(a)
ensure
a.close
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment