Better error for JRuby command-line args passed to ng server. #819
Merge remote-tracking branch 'github/master' into better_nailgun_server_error
Isolate arity and args from successive calls to Proc#curry.

Fixes #1523.
Avoid creating singleton classes during Proc#curry logic.
Mask 1.9-only spec.
[IR] Renamed INTERPRET_SCRIPT --> INTERPRET_ROOT to get it into backtraces

* Discovered that MRI test runner had broken because Kernel#caller
  was returning []. Traced this to the fact that backtrace generation
  was skipping INTERPRET_SCRIPT since it was not present in filtered
  list of Interpreter frame types in FrameType.java.

* Perhaps this test case should be added to rubyspecs to verify that
  output is not an empty array.

def foo
  caller
end
p foo
[Truffle] Remove debug message.
[IR] Bug fix in IRBuilder restoring $!

* With the following ruby snippet, the original exception
  raised in "foo" never reached the top-level because the return
  in foo's rescue handler didn't restore "$!". Discovered that
  IR building wasn't restoring them properly.

* Discovered by running MRI test on test_whileuntil.rb -- the exception
  is still being lost there, so more digging to be done.

---------------
def foo
  raise "test exception 1 in foo"
rescue Exception => e
  return "foo: caught #{e}"
end

def bar
  begin
    raise "test exception 2 in bar"
  ensure
    p foo
  end
end

begin
  bar
rescue Exception => e
  p "top: caught #{e}"
end
---------------
[IR] Continuation of fix around save/restore of $!

* Unclear why I was setting $! to nil if the scope didn't have
  any ensure/rescue blocks. Seems quite buggy.

* This introduces an additional rubyspec failure -- to be investigated.

* However, this is the right fix and ensures that the following snippet
  runs correctly. Now, test/mri/ruby/test_whileuntil.rb runs and
  generates the right exception trace on completion.

-----------------------------
def foo
  str = ""
  begin
    raise "test exception 1 in foo"
  rescue Exception => e
    str = "foo: caught #{e}"
  end
  return str
end

def bar
  begin
    raise "test exception 2 in bar"
  ensure
    p foo
  end
end

begin
  bar
rescue Exception => e
  p "top: caught #{e}"
end
-----------------------------
[IR] IRBuilder fix: Don't clobber variable that receive arguments.

* There were known FIXMEs around ToAryInstr overwriting variables
  into which incoming arguments were received. This manifested in
  a bug where "super" needed access to the incoming args, but had
  been clobbered.

* test/mri/ruby/test_whileuntil.rb now runs without errors.

* With the bug, for the following snippet, C::foo would output [2]
  for b instead of 2

----------------
class C
  def foo(a,b,d=nil)
    p "C:foo a:#{a}; b:#{b}; d:#{d}"
  end
end

class D < C
  def foo(a,(b,c),d=nil)
    p "D:foo a:#{a}; b:#{b}"
    super
  end
end

D.new.foo(1,2)
----------------
[Truffle] - Renaming class CallNode -> RubyCallNode

Truffle already has a class named CallNode - to avoid confusion
between the truffle class and JRuby/Truffle class.
[Truffle] Improve script to build Graal bundles (add checksum)
[Truffle] fix for GNU sed
bump for version
fix the order of execution to ensure bin/*.bat files are packed
[skip ci]
Merging
fix the order of execution to ensure bin/*.bat files are packed
maybe hack for the common problem of not loading the bouncy-castle jars
[Truffle] Allow removable of Truffle classes.
[Truffle] Move printing of runtime into the bridge object.