Skip to content

[bytecode]: section 5 function debug name stub (PHX-070-p7) - #153

Merged
JamalLyons merged 1 commit into
trunkfrom
agent/v0-sprint/20260621-phx070-fn-names
Jun 21, 2026
Merged

[bytecode]: section 5 function debug name stub (PHX-070-p7)#153
JamalLyons merged 1 commit into
trunkfrom
agent/v0-sprint/20260621-phx070-fn-names

Conversation

@JamalLyons

Copy link
Copy Markdown
Member

Summary

  • Extends PHX0 section 5 to sub-version 2 with a per-function_id debug name table appended after the PC span map (v1 payloads still decode).
  • Codegen records function display names in dev builds; linker merge_from merges names; verifier rejects unknown function ids in the name table.
  • Unit/integration tests cover round-trip, v1 backward compat, merge, codegen emission, and link merge.

Test plan

  • cargo test -p phx-bytecode
  • cargo test -p phx-compiler --test codegen codegen_emits_function
  • cargo test -p phx-compiler --test link link_dev_profile
  • just pre-commit

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@JamalLyons
JamalLyons merged commit 6127799 into trunk Jun 21, 2026
1 check passed
@JamalLyons
JamalLyons deleted the agent/v0-sprint/20260621-phx070-fn-names branch June 21, 2026 11:48
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.

1 participant