ladybird/Libraries/LibJS/AsmIntGen
Andreas Kling 1ff61754a7 LibJS: Re-box double arithmetic results as Int32 when possible
When the asmint computes a double result for Add, Sub, Mul,
Math.floor, Math.ceil, or Math.sqrt, try to store it as Int32
if the value is a whole number in [INT32_MIN, INT32_MAX] and
not -0.0. This mirrors the JS::Value(double) constructor and
allows downstream int32 fast paths to fire.

Also add label uniquification to the DSL macro expander so the
same macro can be used multiple times in one handler without
label collisions.
2026-03-19 09:42:04 +01:00
..
src LibJS: Re-box double arithmetic results as Int32 when possible 2026-03-19 09:42:04 +01:00
Cargo.lock LibJS: Add AsmIntGen assembly interpreter code generator 2026-03-07 13:09:59 +01:00
Cargo.toml LibJS: Use the 2024 Rust edition for AsmIntGen and ByteCodeDef 2026-03-11 16:57:09 -04:00