Skip to content

vm: implement ARYPUSH - #98

Open
Dahrkael wants to merge 1 commit into
mrubyedge:masterfrom
Dahrkael:pr/1m-arypush
Open

Dahrkael wants to merge 1 commit into
mrubyedge:masterfrom
Dahrkael:pr/1m-arypush

Conversation

@Dahrkael

Copy link
Copy Markdown
Contributor

OP_ARYPUSH completes array literals that exceed the OP_ARRAY2 operand range: the compiler builds them in batches and flushes the rest with ARYPUSH, which the VM left commented out / unimplemented.

Append R[a+1..a+b] to R[a] when it is an array, or build the array when R[a] is nil. The new 144-element literal regression test exercises the flush path.

OP_ARYPUSH completes array literals that exceed the OP_ARRAY2 operand range:
the compiler builds them in batches and flushes the rest with ARYPUSH, which
the VM left commented out / unimplemented.

Append R[a+1..a+b] to R[a] when it is an array, or build the array when R[a]
is nil. The new 144-element literal regression test exercises the flush path.
@udzura udzura self-assigned this Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants