summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]nobu2007-07-143-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (fix_pow): integer power calculation: 0**n => 0, matz2007-07-143-5/+28
| | | | | | | | | 1**n => 1, -1**n => 1 (n: even) / -1 (n: odd). * test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rename mark_current_thread to mark_current_machine_context.akr2007-07-142-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make mark_current_thread static.akr2007-07-141-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* change --enable-valgrind to --with-valgrind.akr2007-07-142-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: add --enable-valgrind.akr2007-07-146-28/+108
| | | | | | | | | | | | | | | | | * gc.h (SET_MACHINE_STACK_END): new macro to replace rb_gc_set_stack_end. it find out accurate stack boundary by asm using gcc on x86. * thread.c (rb_gc_set_stack_end): don't define if asm-version SET_MACHINE_STACK_END is available. * gc.c (mark_current_thread): extracted from garbage_collect. it use SET_MACHINE_STACK_END to not scan out of stack area. it notify conservative GC information to valgrind if --enable-valgrind. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (sort_by_cmp): check if reentered. [ruby-dev:24291]nobu2007-07-142-1/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more assertions.akr2007-07-141-2/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/ext/generator/generator.c (check_max_nesting): wrongmatz2007-07-142-1/+7
| | | | | | | format specifier. a patch from pegacorn <subscriber.jp AT gmail.com>. [ruby-dev:31217] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (int_pow): overflow detection using FIT_SQRT_LONG().matz2007-07-132-6/+11
| | | | | | [ruby-dev:31215] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update ChangeLog entrymatz2007-07-131-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_div): FIX2NUM may not work for corner cases.matz2007-07-132-1/+6
| | | | | | [ruby-dev:31210] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refined.akr2007-07-131-16/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (int_round): should not return false, but self.matz2007-07-133-4/+9
| | | | | | [ruby-dev:31212] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check values around 16bit.akr2007-07-131-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more tests.akr2007-07-131-0/+30
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add assertions using equations taken from Hacker's Delight.akr2007-07-131-0/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* new file.akr2007-07-131-0/+302
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more tests.akr2007-07-131-0/+52
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h: remove unused function declarations.ko12007-07-133-16/+6
| | | | | | | | * include/ruby/ruby.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check (-0x4000000000000000)/(-1) too.akr2007-07-131-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31210].akr2007-07-131-0/+32
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_succ): use cast to shut a warning up.matz2007-07-132-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sentence generator updated.akr2007-07-132-1/+195
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_free): clear free'ed living_threads field.matz2007-07-132-0/+6
| | | | | | [ruby-dev:31163] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to accessakr2007-07-132-1/+7
| | | | | | | | http_proxy environment variable to avoid case insensitive environment search. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fill ChangeLog entry.ko12007-07-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (CreateChild): enclose command line except fornobu2007-07-132-10/+24
| | | | | | | command.com which can not handle quotes. [ruby-talk:258939] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31197].akr2007-07-131-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31153].akr2007-07-131-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31160].akr2007-07-131-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_max, range_min): return nil for empty set as well asnobu2007-07-133-1/+13
| | | | | | | 1.8 and Enumerable. [ruby-dev:31198] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (bvar): semicolon was lost for ripper description.matz2007-07-132-1/+6
| | | | | | [ruby-dev:31140] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (ripper_warningS): unused in ripper right now.nobu2007-07-132-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (debug_lines): use rb_hash_lookup() to get rid ofnobu2007-07-132-2/+5
| | | | | | | call of Hash#default. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dsym): convert also literals containing NUL tonobu2007-07-132-7/+7
| | | | | | | symbol. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (program, stmt, primary): reduced duplicated code.nobu2007-07-132-12/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_flatten_bang): check argument if validnobu2007-07-132-2/+6
| | | | | | | integer. [ruby-dev:31197] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (link_command, cc_command, cpp_command): do not expandnobu2007-07-133-12/+19
| | | | | | | ::CONFIG which is an alias of MAKEFILE_CONFIG. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests for [ruby-dev:31189] and [ruby-dev:31190].akr2007-07-122-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: ML ref.usa2007-07-121-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_succ): use LONG_MAX as maximum Fixnum VALUE.usa2007-07-122-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_max): use FIX2LONG instead of FIX2INT to avoidakr2007-07-123-6/+19
| | | | | | | | | | | | | | RangeError by ((-0x80000001)...(-0x80000001)).max on LP64. * insns.def (opt_plus): use FIX2LONG instead of FIX2INT to avoid RangeError by 0x3fffffffffffffff+1 on LP64. * insns.def (opt_succ): don't use 0x80000000 which assumes 32bit VALUE. use FIX2LONG instead of FIX2INT. [ruby-dev:31190] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (rb_struct_init_copy): disallow changing the size.nobu2007-07-122-8/+8
| | | | | | | [ruby-dev:31168] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * blockinlining.c: remove "yarv" prefix.ko12007-07-1235-931/+800
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * array.c, numeric.c: ditto. * insnhelper.ci, insns.def, vm_evalbody.ci: ditto. * yarvcore.c: removed. * yarvcore.h: renamed to core.h. * cont.c, debug.c, error.c, process.c, signal.c : ditto. * ext/probeprofiler/probeprofiler.c: ditto. * id.c, id.h: added. * inits.c: ditto. * compile.c: rename internal functions. * compile.h: fix debug flag. * eval.c, object.c, vm.c: remove ruby_top_self. use rb_vm_top_self() instead. * eval_intern.h, eval_load: ditto. * gc.c: rename yarv_machine_stack_mark() to rb_gc_mark_machine_stack(). * insnhelper.h: remove unused macros. * iseq.c: add iseq_compile() to create iseq object from source string. * proc.c: rename a internal function. * template/insns.inc.tmpl: remove YARV prefix. * thread.c: * vm.c (rb_iseq_eval): added. * vm.c: move some functions from yarvcore.c. * vm_dump.c: fix to remove compiler warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_succ): fixed typo. [ruby-dev:31189]nobu2007-07-122-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_join): pthread_t may not be pointer.nobu2007-07-123-9/+15
| | | | | | | * thread_pthread.ci (ubf_select_each): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.ci (thread_start_func_2): not use a directive insidenobu2007-07-124-20/+14
| | | | | | | a macro argument. [ruby-talk:258763] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (FIX2ULONG): drop sign bit for LLP64 platform.usa2007-07-113-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_lookup): added. this function is similar toko12007-07-104-1/+23
| | | | | | | | | | | rb_hash_aref(), but doesn't call Hash#default when no entry exists. * include/ruby/intern.h: ditto. * insnhelper.ci (lfp_svar_get): use rb_hash_lookup(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e