Skip to content

Instantly share code, notes, and snippets.

@headius
Created January 8, 2016 04:58
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/a41848e219177daa7b3f to your computer and use it in GitHub Desktop.
Save headius/a41848e219177daa7b3f to your computer and use it in GitHub Desktop.
JRuby boolean options no longer need =true at the end
$ jruby -Xir.print -e 'puts "Hello!"'
2016-01-07T22:57:36.180-06:00: IRScope: Printing final IR for -e
begin SCRIPT_BODY<-e>
signature(pre=0,opt=0,post=0,rest=NONE,kwargs=0,kwreq=0,kwrest=false)
0: *%self := recv_self
1: %v_0 := load_frame_closure
2: %current_scope := copy(scope<0>)
3: %current_module := copy(mod<0>)
4: line_num(lineNumber: 0)
5: %v_3 := call_1f(*%self, fix<1>, fixNum: 1, callType: FUNCTIONAL, name: puts, potentiallyRefined: false)
6: return(%v_3)
Hello!
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment