feat(ir): element steps and copy reports through the ArrayList record #838
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!838
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/565-arraylist-element-steps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #565 (follow-up of #526, step 3a of epic #55).
ir/elements.trb: recognizes the window layout (items,start,count, viawindowLayoutOf), rebases the window once with the setter'sown()and writes the element in place as onePathStep.Elementchain.ir/explain-copies.trb: the window record counts as the list (noun, held-row notes, live-alias notes); the rebase call forgets the storage facts only.tests/command-line/copiesis anArrayListagain; the pinned report text does not change (same line and column).elements.test.trb, 15 inexplain-copies.test.trb, harness helperstdListFiles.Local: unit tests and
torb format --checkonly. Gates, bootstrap andtests/command-line/copiesare CI-verified.ArrayList, the hash tables and the tries onBuffer#55Approved at
5de6207.stdShapedList/stdListFilesharness helper. Cases: field of an element, nested index write, method and closure on an element, mixed ArrayList + runtime list, and look-alikesetbodies (third statement, noown()) that keep the round trip. Notes at the write, no note when the alias is dead or another row is written. CI green for this head (tier A/B, bootstrap, gates, every-host-C, pdisc).windowSetterOfaccepts only the body[own(self), self.items.set(...)]by shape (onevarself-parameter, void result, forward on field 0 of the window layout). The rewrite runsown()first, then oneField(items)+Elementstep, so the window rebase and the panic site stay.forgetStoragekeeps only the element facts acrossown().windowLayoutOfis made public for reuse, nothing else.Non-blocking:
ArrayList.atreader; I found none in this diff.