https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112022-06-14T01:26:37ZRuby Issue Tracking SystemRuby master - Feature #18825: Specialized instruction for "array literal + `.hash`"https://bugs.ruby-lang.org/issues/18825?journal_id=979632022-06-14T01:26:37Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul></ul><p>Just an idea. Is it possible to introduce a general instruction like <code>opt_newarray_send</code> instead of individual <code>opt_newarray_*</code> instructions?</p> Ruby master - Feature #18825: Specialized instruction for "array literal + `.hash`"https://bugs.ruby-lang.org/issues/18825?journal_id=979992022-06-14T17:24:44Ztenderlovemaking (Aaron Patterson)tenderlove@ruby-lang.org
<ul></ul><p>mame (Yusuke Endoh) wrote in <a href="#note-1">#note-1</a>:</p>
<blockquote>
<p>Just an idea. Is it possible to introduce a general instruction like <code>opt_newarray_send</code> instead of individual <code>opt_newarray_*</code> instructions?</p>
</blockquote>
<p>It should be possible (IMO). But I guess it means the bytecode might be larger for <code>opt_newarray_min</code> and <code>opt_newarray_max</code> because we probably need to add a parameter for <code>opt_newarray_send</code>. Maybe it's not a big deal though. I will try making a patch.</p> Ruby master - Feature #18825: Specialized instruction for "array literal + `.hash`"https://bugs.ruby-lang.org/issues/18825?journal_id=1028492023-04-18T22:15:31Ztenderlovemaking (Aaron Patterson)tenderlove@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>Closing in favor of <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Add a new instruction for sending messages to ephemeral stack arrays (Closed)" href="https://bugs.ruby-lang.org/issues/18897">#18897</a></p>