Created
July 14, 2009 23:22
-
-
Save subbuss/147322 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth jruby] java -cp lib/jruby.jar org.jruby.compiler.ir.IR_Builder -e "class C < A; def foo(n, &blk); puts "hi!"; n = 0; super; end; end" | |
Script: | |
file: "-e" | |
class: | |
Class: | |
className: _DUMMY_ | |
instrs: | |
0 DEF_CLASS_METH(_DUMMY_, __file__) | |
1 %v_0 = GET_CONST(Class _DUMMY_, A) | |
2 CONST(Class _DUMMY_, C) = Class C | |
classes: | |
[Class: | |
className: C | |
instrs: | |
0 DEF_INST_METH(C, foo) | |
methods: | |
[Method: | |
name: foo | |
instrs: | |
0 self = RECV_ARG(0) | |
1 n = RECV_ARG(1) | |
2 blk = RECV_ARG(2) | |
3 %v_0 = CALL(hi!, [self]) | |
4 %v_1 = CALL(puts, [self, %v_0]) | |
5 n = 0:fixnum | |
6 %v_2 = CALL(super, [self, n, blk]) | |
7 RETURN(%v_2) | |
]] | |
methods: | |
[Method: | |
name: __file__] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment