Files
ladybird/Libraries/LibJS/Rust/src
Andreas Kling c379587adf LibJS/Rust: Don't pass preferred_dst for destructuring assignment RHS
When the LHS of an assignment is a destructuring pattern, don't pass
preferred_dst when generating the RHS expression. This matches the C++
pipeline which always allocates a fresh register for the RHS value.

The difference was visible when a destructuring assignment appeared
inside a logical AND expression: the C++ pipeline would allocate the
RHS into a fresh register and then copy it to the AND result register,
while the Rust pipeline would evaluate the RHS directly into the AND
result register, omitting the copy.
2026-03-01 21:20:54 +01:00
..