Files
ladybird/Tests/LibJS/Bytecode/input/double-constant-deduplication.js
Andreas Kling 02b0746676 LibJS: Deduplicate double constants in bytecode generator
Add a deduplication cache for double constants, matching the existing
approach for int32 and string constants. Multiple references to the
same floating-point value now share a single constant table entry.
2026-03-20 00:51:23 -05:00

9 lines
100 B
JavaScript

function foo() {
let a = 0.5;
let b = 0.5;
let c = 0.5;
return a + b + c;
}
foo();