Skip to content

vm: assign globally unique irep ids - #96

Open
Dahrkael wants to merge 1 commit into
mrubyedge:masterfrom
Dahrkael:pr/1f-irep-ids
Open

Dahrkael wants to merge 1 commit into
mrubyedge:masterfrom
Dahrkael:pr/1f-irep-ids

Conversation

@Dahrkael

Copy link
Copy Markdown
Contributor

IREP ids key closure environments (cur_env, has_env_ref and the __irep_id check in op_return). Numbering was per file, so loading two blobs into one VM let a method returning from one file capture its registers into another file's live block env. Allocate ids from a global counter. Adds a cross-file regression test.

IREP ids key closure environments (`cur_env`, `has_env_ref` and the `__irep_id` check in `op_return`). Numbering was per file, so loading two blobs into one VM let a method returning from one file capture its registers into another file's live block env. Allocate ids from a global counter. Adds a cross-file regression test.
@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