mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
9 lines
100 B
JavaScript
9 lines
100 B
JavaScript
function foo() {
|
|
let a = 0.5;
|
|
let b = 0.5;
|
|
let c = 0.5;
|
|
return a + b + c;
|
|
}
|
|
|
|
foo();
|