mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insns.def (expandarray): fix stack inc.
* bootstraptest/test_knownbug.rb, test_massign.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ac7794478c
commit
ea5aa33504
4 changed files with 13 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jan 24 02:13:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* insns.def (expandarray): fix stack inc.
|
||||
* bootstraptest/test_knownbug.rb, test_massign.rb: move a fixed test.
|
||||
|
||||
Thu Jan 24 01:00:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* encoding.{c, h} (rb_usascii_encoding): added.
|
||||
|
|
|
@ -17,14 +17,6 @@ assert_equal 'ok', %q{
|
|||
end
|
||||
}, '[ruby-core:14537]'
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
while true
|
||||
*, z = 1
|
||||
break
|
||||
end
|
||||
:ok
|
||||
}, '[ruby-dev:32892]'
|
||||
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
1.times do
|
||||
|
|
|
@ -174,3 +174,10 @@ assert_equal 'ok', %q{
|
|||
:ok
|
||||
}, '[ruby-dev:32581]'
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
while true
|
||||
*, z = 1
|
||||
break
|
||||
end
|
||||
:ok
|
||||
}, '[ruby-dev:32892]'
|
||||
|
|
|
@ -450,7 +450,7 @@ DEFINE_INSN
|
|||
expandarray
|
||||
(rb_num_t num, rb_num_t flag)
|
||||
(..., VALUE ary)
|
||||
(...) // inc += flag == 0x02 ? num : ((num > 0) ? num - 1 + (flag ? 1 : 0) : num + 1 - (flag ? 1 : 0));
|
||||
(...) // inc += num - 1 + (flag & 1 ? 1 : 0);
|
||||
{
|
||||
vm_expandarray(GET_CFP(), ary, num, flag);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue