Skip to content

refactor(symbols): AddressBaseMode for Field/Index plans - #77

Merged
rieske merged 4 commits into
masterfrom
feature/address-base-mode
Jul 26, 2026
Merged

refactor(symbols): AddressBaseMode for Field/Index plans#77
rieske merged 4 commits into
masterfrom
feature/address-base-mode

Conversation

@rieske

@rieske rieske commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • AddressBaseMode (LeaObject | PointerValue) replaces baseIsPointer / baseIsArray on Field/Index plans
  • IR + StackMachine take the mode; CG prefers plan over AST dual flags
  • Drop unused LvalueAddress; addressBaseUsesLea names the LEA path

Stack

Phase A PR 2/3 — base: #76 CallPlan variant

Test plan

  • symbolsTest, struct/array/init functional tests
  • CI + Coveralls

@mergify

mergify Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 93.246% (+0.003%) from 93.243% — feature/address-base-mode into feature/callplan-variant

@rieske

rieske commented Jul 26, 2026

Copy link
Copy Markdown
Owner Author

Code review

No issues found. Checked for bugs, incomplete migrations, and stack consistency with Phase A goals.

🤖 Generated with Grok code-review

Base automatically changed from feature/callplan-variant to master July 26, 2026 08:46
rieske added 4 commits July 26, 2026 11:47
Replace dual baseIsPointer/baseIsArray flags with SA-owned AddressBaseMode
(LeaObject | PointerValue | LvalueAddress). Propagate through Field/Index
quadruples and StackMachine; LvalueAddress reserved for nested bases.
AddressBaseMode on IndexPlan is the sole base story. Remove unused AST
flag and require IndexPlan for array codegen (Coveralls recovery).
AddressBaseMode is only LeaObject|PointerValue. addressBaseUsesLea names
the LEA path without implying arrays only.
@rieske
rieske force-pushed the feature/address-base-mode branch from ce35301 to 52bc4e1 Compare July 26, 2026 08:47
@rieske
rieske merged commit 57b82ea into master Jul 26, 2026
4 checks passed
@rieske
rieske deleted the feature/address-base-mode branch July 26, 2026 08:51
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