mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* insnhelper.ci (vm_expandarray): assignment should be placed
after creating new array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
34530b1ad3
commit
3e3953cd66
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Sep 14 16:24:04 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* insnhelper.ci (vm_expandarray): assignment should be placed
|
||||||
|
after creating new array.
|
||||||
|
|
||||||
Fri Sep 14 16:17:30 2007 Koichi Sasada <ko1@atdot.net>
|
Fri Sep 14 16:17:30 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* bootstraptest/runner.rb: add a stress test (-s).
|
* bootstraptest/runner.rb: add a stress test (-s).
|
||||||
|
|
|
@ -1334,7 +1334,7 @@ vm_expandarray(rb_control_frame_t *cfp, VALUE ary, int num, int flag)
|
||||||
int is_splat = flag & 0x01;
|
int is_splat = flag & 0x01;
|
||||||
int space_size = num + is_splat;
|
int space_size = num + is_splat;
|
||||||
VALUE *base = cfp->sp, *ptr;
|
VALUE *base = cfp->sp, *ptr;
|
||||||
volatile VALUE tmp_ary = ary;
|
volatile VALUE tmp_ary;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
cfp->sp += space_size;
|
cfp->sp += space_size;
|
||||||
|
@ -1342,6 +1342,8 @@ vm_expandarray(rb_control_frame_t *cfp, VALUE ary, int num, int flag)
|
||||||
if (TYPE(ary) != T_ARRAY) {
|
if (TYPE(ary) != T_ARRAY) {
|
||||||
ary = rb_ary_to_ary(ary);
|
ary = rb_ary_to_ary(ary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tmp_ary = ary;
|
||||||
ptr = RARRAY_PTR(ary);
|
ptr = RARRAY_PTR(ary);
|
||||||
len = RARRAY_LEN(ary);
|
len = RARRAY_LEN(ary);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue