ladybird/Libraries/LibJS/Tests/builtins/Function
Aliaksandr Kalenik 1274f4e2f7 LibJS: Optimize Function.prototype.apply()
...by avoiding `CreateListFromArrayLike` in cases when we could directly
use elements of underlying object's indexed properties storage.

Makes this program go 2.1x faster:
```js
function target(a, b, c) {
    return a + b + c;
}

const args = [1, 2, 3];
let result = 0;

(function() {
    for (let i = 0; i < 10_000_000; i++) {
        result += target.apply(null, args);
    }
})();
```
2025-06-03 17:16:01 +02:00
..
Function.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Function.prototype.@@hasInstance.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Function.prototype.apply.js LibJS: Optimize Function.prototype.apply() 2025-06-03 17:16:01 +02:00
Function.prototype.bind.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Function.prototype.call.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Function.prototype.js Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Function.prototype.toString.js LibJS: Use an Intl prototype for a Function.prototype.toString test 2024-11-18 17:46:41 -05:00