ChangeLog: fix a typo of r37185.

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

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_core.h (VM_CALL_*): rename VM_CALL_*_BIT
  to VM_CALL_* (remove `_BIT' suffix).
  Add comments on each macros.
  Remove unused macro VM_CALL_TAILRECURSION_BIT.
* compile.c, iseq.c, insns.def, vm_insnhelper.c: ditto.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.h (CI_SET_FASTPATH): add new parameter `enabled'.
  If `enable' is 0 then CI_SET_FASTPATH() doesn't work.
  And add new configuration option OPT_CALL_FASTPATH. If this macro
  was defined by 0, then CI_SET_FASTPATH() doesn't work any more.
* vm_insnhelper.c (vm_call_method): Pass `0' for `enabled' parameter
  of CI_SET_FASTPATH if this method is protected.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* method.h: introduce new method type VM_METHOD_TYPE_CFUNC_FAST.
  This method is similar to VM_METHOD_TYPE_CFUNC methods, but
  called cfunc without building new frame (does not push new control
  frame). If error is occured in cfunc, the backtrace only shows
  caller frame and upper.
  This kind of methods can be added by rb_define_method_fast().
  This feature is similar to specialized instructions (opt_plus, etc),
  but more flexible (but a bit slower).
* class.c (rb_define_method_fast): added.
  Maybe it will be renamed soon.
* vm_insnhelper.c (vm_call_method): support method type
  VM_METHOD_TYPE_CFUNC_FAST.
* proc.c (rb_method_entry_arity): catch up new method type.
* vm_method.c (rb_add_method_cfunc_fast): added.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c (vm_call_method): disable CI_SET_FASTPATH() if
  this method call needs splat argument because cahced functions
  (vm_call_attrset, vm_call_ivar, vm_call_cfunc_fast_(unary|binary))
  do not check an arity.
* bootstraptest/test_method.rb: add a test to check an above issue.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c (VM_CALLEE_SETUP_ARG): fix wrong condition.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_regexp.rb
  (TextRegexp#test_raw_hyphen_and_tk_char_type_after_range): ignoring
  warnings are already set in setup method.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_regexp.rb
  (TextRegexp#test_raw_hyphen_and_tk_char_type_after_range): use
  Regexp.new instead of literal to ignore a parser warning.


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

* file.c (check_path_encoding): new function to ensure path name
  encoding to be ASCII-compatible.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
file.c: ASCII-compatible

* file.c (rb_file_join): path names must be ASCII-compatible.
  [ruby-core:48012] [Bug #7168]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
file.c: ASCII-compatible

* file.c (rb_file_join): check nul-byte only for strings, since
  FilePathStringValue() does it.  [ruby-core:48012] [Bug #7168]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
file.c: hide result

* file.c (rb_file_join): hide the result under construction until
  return.


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

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_file): rename from file_assertion.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
file.c: ASCII-compatible

* file.c (rb_file_join): need to check again after any conversion run.
  [ruby-core:48012] [Bug #7168]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* benchmark/driver.rb: some refactoring.
  (1) Remove `average differential'.
  In this benchmark driver, We should not care about `average'.
  We use fastest score because this score should not include
  any disturbances (affections of background process, etc).
  If you care about timing affect, I recommend `median'
  score with more than 5 examinations rather than simple
  `average' score (`average' score was affected by error scores).
  (2) Show log file name.
  (3) Change default directory from './' to driver's directory.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* benchmark/driver.rb (show_results): Show speedup ratio
  with first executables score at last of results
  if two or more executrables are given.



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