Files
ladybird/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
Andreas Kling 749cf2d1b5 LibJS: Cache the shape for normal ECMAScriptFunctionObject prototypes
Instead of creating a unique new prototype shape every time a function
object is instantiated, we now keep one cached with the intrinsics.

This avoids a whole lot of shape allocations, reducing GC pressure.
2024-09-26 20:23:43 +02:00

41 KiB