summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-23 07:10:56 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-23 07:10:56 +0000
commitfe1915792f75760cae4a29fe98ca38806b6235f9 (patch)
treeb0b1e300f1105da8124013b71adab030b9182ee8 /parse.y
parent3ca48540a397adc35a51b75c70339219410b2b57 (diff)
downloadruby-fe1915792f75760cae4a29fe98ca38806b6235f9.tar.gz
ruby-fe1915792f75760cae4a29fe98ca38806b6235f9.tar.xz
ruby-fe1915792f75760cae4a29fe98ca38806b6235f9.zip
* compile.c, insns.def, parse.y: fix massign order. This change
causes performance problem. Try vm1_swap benchmark. [ruby-dev:31522] * insns.def, insnhelper.ci: move process body of expandarray insn to vm_expandarray(). * bootstraptest/test_knownbug.rb, bootstraptest/test_massign.rb: move a solved test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 64532067c..e76c7c318 100644
--- a/parse.y
+++ b/parse.y
@@ -978,7 +978,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
{
/*%%%*/
value_expr($3);
- $1->nd_value = ($1->nd_head) ? NEW_TO_ARY($3) : NEW_ARRAY($3);
+ $1->nd_value = $3;
$$ = $1;
/*%
$$ = dispatch2(massign, $1, $3);