summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * include/ruby/ruby.h: introduce flonum technique forko12012-08-2313-104/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 64bit CPU environment (sizeof(double) == sizeof(VALUE)). flonum technique enables to avoid double object creation if the double value d is in range about between 1.72723e-77 < |d| <= 1.15792e+77 or 0.0. flonum Float value is immediate and their lowest two bits are b10. If flonum is activated, then USE_FLONUM macro is 1. I'll write detailed in this technique on https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/Flonum_tech * benchmark/bmx_temp.rb: add an benchmark for simple Float calculation. * gc.c (id2ref, rb_obj_id): add flonum Float support. * include/ruby/intern.h: move decl of rb_float_new(double) to include/ruby/ruby.h. * insns.def, vm.c, vm_insnhelper.c: add flonum optimization and simplify source code. * vm_insnhelper.h (FLONUM_2_P): added. * marshal.c: support flonum output. * numeric.c (rb_float_new_in_heap): added. * parse.y: support flonum. * random.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): add dependency to header files whenusa2012-08-232-1/+11
| | | | | | | | depend files don't exist. now we can remove simple (and often wrong) depend files in most cases. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/depend: add dependency to $(ruby_headers).ko12012-08-232-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (invokesuper): reverted r36640 partially to make supershugo2012-08-233-22/+29
| | | | | | | | in a thread work correctly. [ruby-core:47284] [Bug #6907] * test/ruby/test_super.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/configure.bat: added help message of --with(out)?-ext.usa2012-08-231-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/configure.bat: support --with(out)?-ext(ensions) options.usa2012-08-232-5/+18
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Fixing Haiku build.naruse2012-08-233-4/+18
| | | | | | | | | | | - -lbe is not required for linking - stack protector doesn't work for now because of the default gcc's bug by Takashi Toyoshima <toyoshim@gmail.com> https://github.com/ruby/ruby/pull/167 * signal.c (ruby_signal): haiku doesn't have SIGBUS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/open-uri/test_open-uri.rb (TestOpenURI#test_read_timeout): thisusa2012-08-232-1/+7
| | | | | | | | test expects that the server thread will be killed in sleep, but 0.01 sec is too short to reach there. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: use the value of --with-opt-dir on building rubynaruse2012-08-232-16/+27
| | | | | | itself. [ruby-dev:46064] [Bug #6900] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ID_H_TARGET): revert a part of r36724 and r36751. theyusa2012-08-232-3/+10
| | | | | | | break mswin build from clean source. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck: removed. Fixes [ruby-core:43360]tenderlove2012-08-2257-18722/+33
| | | | | | | | | * test/syck: removed. * lib/yaml.rb: only require psych, show a warning if people try to set the engine to syck. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-08-23svn2012-08-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def: search up the cf stack for an object that is an instancetenderlove2012-08-223-9/+27
| | | | | | | | of the recipient class. Fixes [ruby-core:47186] * test/ruby/test_super.rb: related test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c: [ruby-core:47266].tadf2012-08-222-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c: [ruby-core:47226].tadf2012-08-224-1/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/mkmf.rb: ruby_headersnobu2012-08-221-1/+2
| | | | | | * ChangeLog: add missed description of ruby_headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/mkmf.rb: ruby_headersnobu2012-08-222-7/+14
| | | | | | | * lib/mkmf.rb (configuration): extact least ruby headers list as ruby_headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .travis.yml (before_script): remove -s for debug.nobu2012-08-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typokazu2012-08-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typo of ChangeLog.ko12012-08-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update ChangeLog.ko12012-08-221-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .travis.yml (before_script): debugging for -j.nobu2012-08-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_setup_method): fix last commit.ko12012-08-222-4/+10
| | | | | | | | [ruby-dev:46065] [Bug #6901] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_trace.c: support TracePoint. [ruby-trunk - Feature #6895]ko12012-08-225-50/+658
| | | | | | | | | | | | * test/ruby/test_settracefunc.rb: add tests for above. * proc.c (rb_binding_new_with_cfp): add an internal function. * vm.c (rb_vm_control_frame_id_and_class): add an internal function. * vm_trace.c: add rb_add_event_hook2() and rb_thread_add_event_hook2(). Give us the good name for them! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .travis.yml (before_script): Turned out that make -j is broken.shyouhei2012-08-222-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_setup_method): should not enable tail callshugo2012-08-223-1/+29
| | | | | | | optimization for frames with VM_FRAME_FLAG_FINISH. [ruby-dev:46065] [Bug #6901] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/test_case.rb: run test with psych if exist.naruse2012-08-223-7/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * nacl/pepper_main.c (init_loadpath): Pushes the correct load path onyugui2012-08-222-2/+9
| | | | | | other architectures than x86_64. Fixes #6873. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ac_cv_func_shutdown): shutdown(2) has a dummyyugui2012-08-222-0/+7
| | | | | | | implementation but has no declaration and does not work in NativeClient SDK pepper_20. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (vm_backtrace.o): Added missing dependencies.yugui2012-08-224-3/+14
| | | | | | | | * ext/nkf/depend (nkf.o): ditto. * ext/ripper/depend (ripper.o) ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/util.rb (CGI.escapeHTML): use &#39;naruse2012-08-214-5/+9
| | | | | | [ruby-core:47221] [Bug #6861] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Suppress warningsnaruse2012-08-213-2/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c: keep first zeronobu2012-08-211-1/+1
| | | | | | * bignum.c (bigdivrem): keep first digit even if zero. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bignum.c: suppress an empty-body warningnobu2012-08-211-1/+1
| | | | | | | * bignum.c (bigdivrem): move decrement to the loop body, to suppress an empty-body warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: noral blocksnobu2012-08-211-12/+12
| | | | | | | * configure.in: use noral blocks instead of dnl, so that matching parentheses would match. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-08-22svn2012-08-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: escape #-marksnobu2012-08-211-5/+5
| | | | | | | * configure.in: escape #-marks, so that matching parentheses would match. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: no bare case statementnobu2012-08-211-6/+3
| | | | | | | * configure.in (RUBY_CHECK_SIZEOF): use single test instead of split bare case statement, so that matching parentheses would match. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* addr2line.c: suppress warningsnobu2012-08-211-1/+3
| | | | | | | * addr2line.c (fill_lines): check file size overflow only if it is necessary, and suppress a sign-compare warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/observer.rb: fix typo.ayumin2012-08-212-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make FileUtils tests safe when interrupting in setuperegon2012-08-212-2/+7
| | | | | | | | * test/fileutils/test_fileutils.rb (TestFileUtils#teardown): do not assume cwd is TMPROOT and never remove current directory. [ruby-core:47224][Bug #6884] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * addr2line.c (fill_lines): need check and cast of the file size ofusa2012-08-212-3/+13
| | | | | | | target binary because there are some platforms which off_t > size_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .travis.yml (compiler): [experimental] clang support.shyouhei2012-08-212-5/+59
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/func.rb (DL::Function#bind): fixes an error inusa2012-08-212-1/+9
| | | | | | | | | | test/dl/test_import.rb (DL::TestImport#test_carried_function) introduced by r36718. the instance of the anonymous class which wraps the block should have same methods and instance variables of self. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (scriptbin.mk): no need to include twice.usa2012-08-212-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: id.hnobu2012-08-211-4/+2
| | | | | | | * common.mk (ID_H_TARGET): timestamp file makes no senses now. object files depending on id.h are always updated after parse.y is touched. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove trainling spaces.nobu2012-08-2124-45/+45
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/unit/test.rb (Test::Unit::ProxyError): new exception class tousa2012-08-213-1/+19
| | | | | | | | | | | wrap exceptions raised in workers in parallel test mode. * test/unit/parallel.rb (Test::Unit::Worker#puke): use above warpper exception. [Bug #6882] [ruby-dev:46054] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_continuation.rb (tracing_with_thread_set_trace_func):ko12012-08-212-1/+6
| | | | | | | | fix to use Thread#set_trace_func(nil), not set_trace_func(nil). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 3.3.0 (r7676)ryan2012-08-217-420/+336
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e