You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support recursive and multi-leaf packed AS3 aggregates across the internal device ABI #1063
The packed-AS3 internal device ABI currently supports only a narrow shape: one direct shared-memory pointer leaf inside a byte-faithful packed struct.
The target-stable storage machinery is already recursive and can represent broader aggregate shapes by replacing AS3 pointer leaves with generic pointers at the physical ABI boundary. However, the admission logic still rejects:
multiple direct AS3 pointer leaves;
AS3 pointer leaves nested inside structs;
AS3 pointer leaves nested inside tuples.
This prevents otherwise representable packed aggregates from being returned by value from internal device functions, which also blocks source-level call/return flows that bounce such values through device helpers.
Proposed scope
Extend the packed-AS3 internal ABI admission logic to support:
multiple direct AS3 pointer leaves;
recursively nested AS3 leaves through structs;
recursively nested AS3 leaves through tuples.
The semantic value inside the function should continue to use the original packed aggregate with AS3 pointers. Only the physical internal ABI carrier should recursively replace AS3 leaves with generic pointers.
Out of scope
Keep the following fail-closed:
arrays containing AS3 pointer leaves;
vectors containing AS3 pointer leaves;
kernel-entry ABI changes;
whole-value packed AS3 loads/stores;
packed-AS3 field projections that require local materialization;
enums and other unrelated aggregate kinds.
Arrays should be handled separately with an explicit bounded expansion policy.
Acceptance criteria
A packed struct with two or more direct AS3 pointer leaves can be returned by value from an internal device function.
A packed struct containing a nested struct with AS3 leaves can be returned by value from an internal device function.
A packed struct containing a nested tuple with AS3 leaves can be returned by value from an internal device function.
The physical ABI carrier contains generic-pointer replacements for every admitted AS3 leaf.
The semantic SSA aggregate continues to contain AS3 pointers.
Arrays and vectors remain rejected.
Existing packed-AS3 and shared-memory regressions continue to pass.
Activity