matz
b13b3e624b
* numeric.c (int_pow): overflow detection using FIT_SQRT_LONG().
...
[ruby-dev:31215]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 17:29:24 +00:00
matz
2a5c48a54d
update ChangeLog entry
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 17:09:38 +00:00
matz
716ad250e9
* insns.def (opt_div): FIX2NUM may not work for corner cases.
...
[ruby-dev:31210]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 17:08:12 +00:00
akr
3a4e0f1f5a
refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 16:34:19 +00:00
matz
3e6f0e6a20
* numeric.c (int_round): should not return false, but self.
...
[ruby-dev:31212]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 15:38:48 +00:00
akr
4122a13560
check values around 16bit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 15:20:49 +00:00
akr
744701f404
more tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 14:50:06 +00:00
akr
3cf28c2caa
add assertions using equations taken from Hacker's Delight.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 13:31:41 +00:00
akr
71467c78c2
new file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 12:51:27 +00:00
akr
d2113feba8
more tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 10:21:50 +00:00
ko1
b626539e9b
* include/ruby/intern.h: remove unused function declarations.
...
* include/ruby/ruby.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 09:36:04 +00:00
akr
c6818f4104
check (-0x4000000000000000)/(-1) too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 09:35:29 +00:00
akr
c393603f94
add test for [ruby-dev:31210].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 09:33:17 +00:00
matz
0b0b62e9a4
* insns.def (opt_succ): use cast to shut a warning up.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 08:42:27 +00:00
akr
a309f10475
sentence generator updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 08:40:09 +00:00
matz
53d317b9ac
* vm.c (vm_free): clear free'ed living_threads field.
...
[ruby-dev:31163]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 08:37:37 +00:00
akr
d98a362c1a
* lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
...
http_proxy environment variable to avoid case insensitive
environment search.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 07:59:40 +00:00
ko1
aebce0bb76
fill ChangeLog entry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 06:21:26 +00:00
nobu
9dbaa0a9a9
* win32/win32.c (CreateChild): enclose command line except for
...
command.com which can not handle quotes. [ruby-talk:258939]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 06:02:18 +00:00
akr
091fb1c2e4
add test for [ruby-dev:31197].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 03:47:18 +00:00
akr
853999fb20
add test for [ruby-dev:31153].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 03:44:53 +00:00
akr
4bb5091496
add test for [ruby-dev:31160].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 03:35:04 +00:00
nobu
113a709cce
* range.c (range_max, range_min): return nil for empty set as well as
...
1.8 and Enumerable. [ruby-dev:31198]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 02:33:11 +00:00
matz
608545ced0
* parse.y (bvar): semicolon was lost for ripper description.
...
[ruby-dev:31140]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 02:31:56 +00:00
nobu
e6dc7d3d6f
* parse.y (ripper_warningS): unused in ripper right now.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 02:25:29 +00:00
nobu
4a0ea31319
* parse.y (debug_lines): use rb_hash_lookup() to get rid of
...
call of Hash#default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 02:17:58 +00:00
nobu
b1d5c752fb
* parse.y (dsym): convert also literals containing NUL to
...
symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 02:16:27 +00:00
nobu
6dcf9f16cc
* parse.y (program, stmt, primary): reduced duplicated code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 02:09:40 +00:00
nobu
f64a557efd
* array.c (rb_ary_flatten_bang): check argument if valid
...
integer. [ruby-dev:31197]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 01:33:31 +00:00
nobu
b53224b493
* lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand
...
::CONFIG which is an alias of MAKEFILE_CONFIG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 01:10:48 +00:00
akr
8f79c623f3
add tests for [ruby-dev:31189] and [ruby-dev:31190].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 13:23:29 +00:00
usa
f603c4ae08
* ChangeLog: ML ref.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 12:41:27 +00:00
usa
d504f64a3b
* insns.def (opt_succ): use LONG_MAX as maximum Fixnum VALUE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 12:40:49 +00:00
akr
c13cd729bf
* range.c (range_max): use FIX2LONG instead of FIX2INT to avoid
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@12743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 09:52:48 +00:00
nobu
4c289d8d10
* struct.c (rb_struct_init_copy): disallow changing the size.
...
[ruby-dev:31168]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 08:03:18 +00:00
ko1
6b6bf4dd48
* blockinlining.c: remove "yarv" prefix.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@12741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 04:25:46 +00:00
nobu
2e601474e7
* insns.def (opt_succ): fixed typo. [ruby-dev:31189]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 03:24:31 +00:00
nobu
1fe38a5cae
* thread.c (thread_join): pthread_t may not be pointer.
...
* thread_pthread.ci (ubf_select_each): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 01:30:48 +00:00
nobu
0fcf8e17aa
* thread_pthread.ci (thread_start_func_2): not use a directive inside
...
a macro argument. [ruby-talk:258763]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-12 01:19:18 +00:00
usa
2e4f2aaaf0
* include/ruby/ruby.h (FIX2ULONG): drop sign bit for LLP64 platform.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-11 20:35:10 +00:00
ko1
302c311199
* hash.c (rb_hash_lookup): added. this function is similar to
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@12734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 10:39:39 +00:00
ko1
bc1e2ab306
* eval.c, insnhelper.ci, vm.c: change cref index (-1 -> 2).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 10:22:30 +00:00
ko1
3ead5dcfb4
* eval.c (exec_under): add proper casts.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 09:52:21 +00:00
ko1
a6e3d19f3a
* vm.c, insnhelper.ci: fix svar interface.
...
* compile.c (iseq_compile_each), yarvcore.h: fix to use new
svar interface for flip flop.
* eval.c: ditto.
* insns.def: ditto.
* include/ruby/intern.h: remove "rb_svar()" declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 08:04:52 +00:00
nobu
d4662d49d9
* compile.c (rb_iseq_compile): formatted if/else to switch statement.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 07:52:03 +00:00
nobu
e86a6e2514
* bootstraptest/test_flip.rb: set property.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 07:21:05 +00:00
nobu
c0258a9ea6
* bootstraptest/test_flip.rb: new test for flip-flop operator.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 06:57:56 +00:00
nobu
c18e8ad7e9
* bcc32/{Makefile.sub,setup.mak}: remove surplus slash from srcdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-10 05:50:10 +00:00
usa
a87664923f
* 2007-07-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-08 19:16:33 +00:00
usa
a6ae274c3b
* cont.c (cont_restore_1): workaround for x64-mswin64's SEH.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-08 17:19:01 +00:00