aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * tool/compile_prelude.rb: evaluates in the main context.nobu2009-09-082-1/+6
| | | | | | | [ruby-core:25474] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (iseq_mark): no need to mark inline cache entries.ko12009-09-083-11/+11
| | | | | | | | | * insns.def (onceinlinecache, setinlinecache): save a value to mark cached value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson.nobu2009-09-073-0/+82
| | | | | | | see [ruby-dev:39249]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (sdr, nsdr): nodoc.nobu2009-09-072-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_tell): adjustment for ungotten data.nobu2009-09-073-0/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_encname_bom_p): removed magic number.nobu2009-09-072-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (Init_IO): added rdocs for constants.nobu2009-09-071-8/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/inspector.rb (IRB::INSPECTORS.def_inspector): supportmatz2009-09-072-1/+13
| | | | | | | object without #inspect defined. a patch from Daniel Bovensiepen. [ruby-core:25200] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_*): add IC operands.ko12009-09-064-22/+44
| | | | | | | | | | | | | * vm_insnhelper.h (CALL_SIMPLE_METHOD): add a version which use an inline cache. USE_IC_FOR_SPECIALIZED_METHOD macro switchs the behaviour. This change also removes CALL_SIMPLE_METHOD_IC() macro. * tool/instruction.rb: fix elimination process to ignore variable "ic". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk: move a id.h generation rule.ko12009-09-063-3/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * benchmark/driver.rb: remove RUBY_VERSION output.ko12009-09-062-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c: rename macro name ENABLE_IC_FOR_IVARko12009-09-062-4/+9
| | | | | | | | to USE_IC_FOR_IVAR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-09-07svn2009-09-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri/common.rb (URI.escape): obsoleted.naruse2009-09-062-0/+8
| | | | | | * lib/uri/common.rb (URI,unescape): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.h (CALL_SIMPLE_METHOD_IC): make a macroko12009-09-063-4/+16
| | | | | | | | | invoke simple method with inline cache entry. * insns.def (opt_length, opt_size): fix to use inline method cache. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/id.h.tmpl: fix this.ko12009-09-063-170/+8
| | | | | | | | * id.h: removed. Because this file is generated automatically. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_specialized_instruction), insns.def (opt_size):ko12009-09-067-2/+50
| | | | | | | | | optimize #size methods (by specialized instruction). * id.c, id.h, vm.c, vm_insnhelper.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (setinstancevariable), vm_insnhelper.c (vm_setivar):ko12009-09-063-4/+55
| | | | | | | | fix to use inline cache (trivial optimization). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: fixed rdoc, a patch from Nobuhiro IMAI at [ruby-core:25433].nobu2009-09-062-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_next_argv): fixed indent.nobu2009-09-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-09-06svn2009-09-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: Add rdoc for ARGF.naruse2009-09-052-6/+648
| | | | | | contributed by Run Paint Run Run. [ruby-core:23854] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (flo_quo, int_round): added rdoc.nobu2009-09-051-2/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): op_asgn to aref should return rhs.nobu2009-09-053-16/+56
| | | | | | | [ruby-core:25387] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (FIXNUM_OR): typo.nobu2009-09-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (FIXNUM_INC, FIXNUM_OR): trivial optimizations.nobu2009-09-051-10/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): &&= and ||= should return rhs.nobu2009-09-051-2/+8
| | | | | | | [ruby-dev:39163] (#1996), [ruby-core:25143] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): &&= and ||= should return rhs.nobu2009-09-053-28/+64
| | | | | | | [ruby-dev:39163] (#1996), [ruby-core:25143] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update comment.akr2009-09-051-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (Init_Regexp): new methods. [ruby-core:24748]nobu2009-09-051-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (update_char_offset): position should be long.nobu2009-09-043-9/+65
| | | | | | | | | | * re.c (match_hash, match_equal): new methods. [ruby-core:24748] * re.c (reg_match_pos, rb_reg_eqq, rb_reg_s_quote): get rid of use VALUE as int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (update_char_offset):nobu2009-09-042-5/+15
| | | | | | | | | | | | * re.c (rb_reg_equal): * re.c (reg_match_pos): * re.c (rb_reg_eqq): * re.c (static VALUE): * re.c (Init_Regexp): [ruby-core:24748] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_binmode_after_closed): test for [ruby-core:25363].nobu2009-09-042-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (round): added declaration. [ruby-dev:39222]nobu2009-09-042-3/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_idiv): added rdoc.nobu2009-09-041-1/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_div, rb_big_idiv): fixed indent.nobu2009-09-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (Init_Dir): alias Dir#path to Dir#to_path. [ruby-core:25326]matz2009-09-032-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (random_rand): fixed rdoc. [ruby-core:25332]nobu2009-09-032-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/abstract.rb (do_OPTIONS): method namesnobu2009-09-033-4/+8
| | | | | | | are symbols now. [ruby-core:24580] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (literal_concat_gen): concat body from dstr instead ofnobu2009-09-033-1/+16
| | | | | | | nd_next. [ruby-core:25284] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-09-03svn2009-09-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (fname): removed duplication.nobu2009-09-031-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_gamma): get rid of direct comparison between toonobu2009-09-023-3/+22
| | | | | | | big double and integer, with gcc on x86_64. [ruby-core:25257] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (domain_check): simplified.nobu2009-09-022-9/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (math_gamma): constified fact_table.nobu2009-09-021-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (obj_free): fix to free method table (fix memory leak).ko12009-09-022-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/instruction.rb: executable.nobu2009-09-021-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/instruction.rb (RubyVM::InstructionsLoader#make_stackcaching_insns):nobu2009-09-012-8/+8
| | | | | | | simplified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NaN is now 0.0/0 because of 1.8/1.9 compat.naruse2009-09-012-1/+6
| | | | | | | * ext/json/lib/json/common.rb (NaN): Change definition of NaN to 0.0/0 for 1.8/1.9 compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add tests of JSON 1.1.9.naruse2009-09-016-70/+153
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e