-
-
Notifications
You must be signed in to change notification settings - Fork 159
perf(codegen): representation-selection Phase 3b — shape-proven object locals (Ptr<Shape>, delete the guard diamond) #6911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
84d2281
test(gap): Phase 3b shape-proven object locals — eligible shapes + §5…
16168c4
perf(codegen): Phase 3b collector — shape-proven Ptr<Shape> locals fa…
f9beea1
perf(codegen): Phase 3b consumers — bare fixed-offset access + unguar…
817d136
test(gap): Phase 3b barriers test — constructs limited to shipped-exa…
5c13994
style: cargo fmt
3dd52f4
perf(codegen): Phase 3b target 1 — typed-receiver clone widened to ex…
d58ea31
docs(codegen): correct the class-field inline-guard LICM claim (verif…
b091b8b
test(gap): Phase 3b — extends-chain typed-receiver section
dee0acd
test: shape_barrier_sites in stable_facts test helper
e6acf14
perf(codegen): numeric-field proof — either-side non-BigInt rule for …
471e29b
cleanup: drop unreachable Return(None) arms + dead helper in ptr_shap…
f3f75f5
changelog: Phase 3b shape-proven object locals (#6911)
14442c9
fix(review): CodeRabbit round 1 — internal this.m() param soundness, …
02c65b5
test: accept Phase 3b direct dispatch in scalar-summary negative fixt…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| perf(codegen): representation-selection Phase 3b — shape-proven object locals (`Ptr<Shape>`) | ||
|
|
||
| For a function-local proven to hold exactly one `new C(...)` object with a | ||
| statically-immutable shape (provenance + containment + `this`-flow + dispatch | ||
| stability, with a module-wide first-increment kill on any | ||
| defineProperty/delete/setPrototypeOf/Proxy/mutating-Reflect site), field | ||
| accesses lower to the bare fixed-offset form — no per-access guard diamond, no | ||
| volatile gate, no fallback arm, no phi — and method calls dispatch directly | ||
| with no shape guard. Anon-shape record literals and extends chains qualify; | ||
| the typed-receiver f64 method clone is widened from extends-free classes to | ||
| fully-modeled chains with chain-global field indexes. Raw-f64 stores keep the | ||
| plain-finite check with a boxed-setter downgrade side exit; boxed stores keep | ||
| the generational write barrier; the local's slot stays a tagged-at-rest, | ||
| shadow-bound GC root (raw pointers never stored at rest; the mark/rewrite | ||
| raw-asymmetry is tracked as #6910). Gated by `PERRY_PTR_SHAPE_LOCALS` | ||
| (default on, object-cache keyed). Implements Phase 3b of | ||
| `docs/representation-selection-rfc.md`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.