summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-09-07 16:26:38 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-09-07 16:26:38 +0900
commit2f2f8107d0d21f5ebaaaf3b2d7ed6d09dfec91d5 (patch)
treea53407c61568d3b38d3fc0f3feb50ba0621cf0d6 /tool
parent1e008105bc4576af46036f1c73f96f7f93bee319 (diff)
compile.c (compile_list): allow an odd-length hidden array literal
An array literal [1,2,...,301] was compiled to the following iseq: duparray [1,2,...,300] putobject [301] concatarray The Array literal optimization took every two elements maybe because it must handle not only Array but also Hash. Now the optimization takes each element if it is an Array literal. So the new iseq is: duparray [1,2,...,301].
Diffstat (limited to 'tool')
0 files changed, 0 insertions, 0 deletions