<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_compile_prism.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) 86320a53002a3adaf35ad7434c70e86747a8b345: [Backport #21326] [Backport #21807]</title>
<updated>2026-01-25T08:20:48+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2026-01-25T08:12:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=55920677854fe757c36368785f6dfdbce0b49ab7'/>
<id>55920677854fe757c36368785f6dfdbce0b49ab7</id>
<content type='text'>
	[PATCH] Fix compilation for forwarding params in Prism

	[Bug #21326]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[PATCH] Fix compilation for forwarding params in Prism

	[Bug #21326]
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 0b0da6c4b26f80ad6985722d3fc0f5cdee09125d: [Backport #21648]</title>
<updated>2025-12-08T23:03:34+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2025-12-08T23:03:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d0b778cd19fdda858121d8f2405da2768603c9b1'/>
<id>d0b778cd19fdda858121d8f2405da2768603c9b1</id>
<content type='text'>
	[PATCH] Correctly compile splats in for-loop index in prism

	Fixes [Bug #21648]

	This is a followup to https://github.com/ruby/ruby/pull/13597.
	The added test passed but didn't emit the same instructions.

	This also handles bare splats and aligns instructions for all cases
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[PATCH] Correctly compile splats in for-loop index in prism

	Fixes [Bug #21648]

	This is a followup to https://github.com/ruby/ruby/pull/13597.
	The added test passed but didn't emit the same instructions.

	This also handles bare splats and aligns instructions for all cases
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 5ec9a392cdf7f971221dc073dd466bce877d8acb: [Backport #21439]</title>
<updated>2025-07-14T21:04:20+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2025-07-14T21:04:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=585469aff3de855a9f3db8e51f12bf87300981af'/>
<id>585469aff3de855a9f3db8e51f12bf87300981af</id>
<content type='text'>
	[Bug #21439] Fix `PM_SPLAT_NODE` compilation error in for loops (#13597)

	[Bug #21439] Fix PM_SPLAT_NODE compilation error in for loops

	This commit fixes a crash that occurred when using splat nodes (*) as
	the index variable in for loops. The error "Unexpected node type for
	index in for node: PM_SPLAT_NODE" was thrown because the compiler
	didn't know how to handle splat nodes in this context.

	The fix allows code like `for *x in [[1,2], [3,4]]` to compile and
	execute correctly, where the splat collects each sub-array.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[Bug #21439] Fix `PM_SPLAT_NODE` compilation error in for loops (#13597)

	[Bug #21439] Fix PM_SPLAT_NODE compilation error in for loops

	This commit fixes a crash that occurred when using splat nodes (*) as
	the index variable in for loops. The error "Unexpected node type for
	index in for node: PM_SPLAT_NODE" was thrown because the compiler
	didn't know how to handle splat nodes in this context.

	The fix allows code like `for *x in [[1,2], [3,4]]` to compile and
	execute correctly, where the splat collects each sub-array.
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 63723c8d5908569918fb27e070ae5bc9de33c8bd: [Backport #21014]</title>
<updated>2025-02-14T01:54:21+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2025-02-14T01:54:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9240f01b1fbe5ea4f6a2017d35f8f605f84f0039'/>
<id>9240f01b1fbe5ea4f6a2017d35f8f605f84f0039</id>
<content type='text'>
	Correctly set node_id on iseq location

	The iseq location object has a slot for node ids.  parse.y was correctly
	populating that field but Prism was not. This commit populates the field
	with the ast node id for that iseq

	[Bug #21014]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Correctly set node_id on iseq location

	The iseq location object has a slot for node ids.  parse.y was correctly
	populating that field but Prism was not. This commit populates the field
	with the ast node id for that iseq

	[Bug #21014]
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 31905d9e23ec6d1fa2a52f1ef2533f2056e7c9fb: [Backport #21001]</title>
<updated>2025-02-14T01:52:03+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2025-02-14T01:52:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=68013d43a35a8368caa7b30c501e270333d04b35'/>
<id>68013d43a35a8368caa7b30c501e270333d04b35</id>
<content type='text'>
	Allow escaping from ensures through next

	Fixes [Bug #21001]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Allow escaping from ensures through next

	Fixes [Bug #21001]
</pre>
</div>
</content>
</entry>
<entry>
<title>[PRISM] Treat it as a local when compiling patterns</title>
<updated>2024-12-20T13:19:57+00:00</updated>
<author>
<name>Matt Valentine-House</name>
<email>matt@eightbitraptor.com</email>
</author>
<published>2024-12-20T09:52:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e8d393c8ae0c6282262b7a7886947379a9fd81a3'/>
<id>e8d393c8ae0c6282262b7a7886947379a9fd81a3</id>
<content type='text'>
Fixes [Bug #20973]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes [Bug #20973]
</pre>
</div>
</content>
</entry>
<entry>
<title>[PRISM] Fix compiling popped opt_str_uminus and opt_str_freeze</title>
<updated>2024-12-20T13:19:09+00:00</updated>
<author>
<name>Kazuki Yamaguchi</name>
<email>k@rhe.jp</email>
</author>
<published>2024-12-20T06:37:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0397bfa2c83f442cb46dd0219d30c52aa7ff6d16'/>
<id>0397bfa2c83f442cb46dd0219d30c52aa7ff6d16</id>
<content type='text'>
Put a pop as needed. This example currently causes [BUG]:

	$ ruby --parser=prism -e'1.times{"".freeze;nil}'
	-e:1: [BUG] Stack consistency error (sp: 15, bp: 14)
	ruby 3.4.0dev (2024-12-20T00:48:01Z master 978df259ca) +PRISM [x86_64-linux]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Put a pop as needed. This example currently causes [BUG]:

	$ ruby --parser=prism -e'1.times{"".freeze;nil}'
	-e:1: [BUG] Stack consistency error (sp: 15, bp: 14)
	ruby 3.4.0dev (2024-12-20T00:48:01Z master 978df259ca) +PRISM [x86_64-linux]
</pre>
</div>
</content>
</entry>
<entry>
<title>[PRISM] Recurse use_deconstructed_cache in Alternation Nodes</title>
<updated>2024-12-17T15:13:53+00:00</updated>
<author>
<name>Matt Valentine-House</name>
<email>matt@eightbitraptor.com</email>
</author>
<published>2024-12-17T12:13:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=86cf18e01e8be1db6194b7cb27357150998d9056'/>
<id>86cf18e01e8be1db6194b7cb27357150998d9056</id>
<content type='text'>
This fixes the behavioural difference between Prism and parse.y when
evaluating the following code

```ruby
1 in [1 | [1]]
```

Fixes [Bug #20956]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the behavioural difference between Prism and parse.y when
evaluating the following code

```ruby
1 in [1 | [1]]
```

Fixes [Bug #20956]
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix intermediate array off-by-one error</title>
<updated>2024-10-04T19:04:26+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-10-04T17:57:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=30038656aa3a4931abefd99b8166c26599d168fd'/>
<id>30038656aa3a4931abefd99b8166c26599d168fd</id>
<content type='text'>
Co-authored-by: Adam Hess &lt;HParker@github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Adam Hess &lt;HParker@github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #20763] Add tests</title>
<updated>2024-09-27T17:45:22+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-09-27T17:35:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=027ef60500c43fecbd4784cf24a99f6955606567'/>
<id>027ef60500c43fecbd4784cf24a99f6955606567</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
