* benchmark/driver.rb: add new option `--ruby-arg [ARG]'
  which is passed as a launch parameter for each ruby's execution.
  ($ ruby [ARG] [File])



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2012-10-19

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* benchmark/bmx_temp.rb: removed.
  This file should not be in repository.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c (vm_search_method): remove needless local variable.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* benchmark/driver.rb: remove unexpected `output'.
  (commit miss)



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c, vm_eval.c: use TH_PUSH_TAG() instead of PUSH_TAG().



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* method.h (rb_method_cfunc_t::invoker): add new field (func ptr)
  `invoker'. `invoker' function invoke cfunc body
  (rb_method_cfunc_t::func).
  `invoker' is set at method definition timing.
  With this change, the big `switch' (branch) in `call_cfunc()'
  is no longer needed.
  However, the performance benefit is only a bit.
* vm_core.h (rb_call_info_t::aux::func): add a new field to store
  cfunc body function pointer.
* vm_method.c (call_cfunc_invoker_func): add a new function which
  returns a suitable invoke function.
* vm_method.c (setup_method_cfunc_struct): added.
* vm_method.c (rb_add_method): fix to set `invoker'.
* vm_eval.c (vm_call0_body): catch up above changes.
* vm_insnhelper.c (call_cfunc): removed.
* vm_insnhelper.c (vm_call_cfunc): fix to call cfunc body
  with `invoker' function.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
set encoding to ASCII for appropriate String#unpack modifiers

* pack.c (pack_unpack): set encoding of the
  'H','h','B' and 'B' modifiers to US-ASCII.
* test/ruby/test_pack.rb: tests for the above.
  [ruby-core:47653][Bug #7050]
* test/test_securerandom.rb: tests for SecureRandom.hex
  from tenderlove. [ruby-core:46792][Bug #6799]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm.c: pass through thrown objects

* vm.c (rb_vm_jump_tag_but_local_jump): pass through thrown objects.
  [ruby-dev:46234] [Bug #7185]
* vm_eval.c (rb_eval_cmd): if state is non-zero, val should be nil and
  rb_vm_jump_tag_but_local_jump() just jump tag.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* hash.c (initialize_copy): unset the default proc if there isn't one
  for the target hash, call to_hash, check frozen status.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2012-10-20

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/open-uri.rb: Documentation for OpenURI


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/socket/socket.c: Documentation for Socket
  Based on a patch by David Albert
  [Bug #7105] [ruby-core:47828]



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* include/ruby/ruby.h: add C APIs.
  VALUE rb_newobj_of(VALUE klass, VALUE flags)
  #define NEWOBJ_OF(obj,type,klass,flags)
  These allow to change a allocation strategy depending on klass
  or flags.

* gc.c: ditto

* array.c: use new C API.
* bignum.c: ditto
* class.c: ditto
* complex.c: ditto
* ext/socket/ancdata.c: ditto
* ext/socket/option.c: ditto
* hash.c: ditto
* io.c: ditto
* marshal.c: ditto
* numeric.c: ditto
* object.c: ditto
* random.c: ditto
* range.c: ditto
* rational.c: ditto
* re.c: ditto
* string.c: ditto
* struct.c: ditto
  [Feature #7177][Feature #7047]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e