ladybird/Libraries/LibJS/Tests
Aliaksandr Kalenik bd6750aaa5 LibJS: Skip prototype chain lookup in internal_set() for arrays
...when Array.prototype and Object.prototype are intact.

If `internal_set()` is called on an array exotic object with a numeric
PropertyKey, and:
- the prototype chain has not been modified (i.e., there are no getters
  or setters for indexed properties), and
- the array is not the target of a Proxy object,

then we can directly store the value in the receiver's indexed
properties, without checking whether it already exists somewhere in the
prototype chain.

1.7x improvement on the following program:
```js
function f() {
    let a = [];
    let i = 0;
    while (i < 10_000_000) {
        a.push(i);
        i++;
    }
}

f();
```
2025-05-23 14:51:32 +02:00
..
builtins LibJS: Skip prototype chain lookup in internal_set() for arrays 2025-05-23 14:51:32 +02:00
classes LibJS: Set empty function parameters on ClassStaticInit scope 2025-04-05 18:20:36 +01:00
functions
iterators
loops
math
modules LibJS: Remove support for the "assert" keyword for import attributes 2025-01-21 14:58:32 +01:00
operators LibJS: Return the allocated dst register from deleting super properties 2024-12-14 12:08:50 -08:00
regress LibJS: Skip caching get_by_id() if object's shape is changed by a getter 2025-05-20 19:10:56 -04:00
syntax LibJS: Allow division after IdentifierNames in optional chain 2024-11-11 20:19:26 +01:00
add-values-to-primitive.js
arguments-callee.js
arguments-object.js
assignment-evaluation-order.js
async-this-value.js
automatic-semicolon-insertion.js
break-continue-syntax-errors.js
comments-basic.js
computed-property-sideeffects.js
computed-property-throws.js
const-declaration-missing-initializer.js
const-reassignment.js
copy-this-to-local.js
custom-@@hasInstance.js
custom-@@toPrimitive.js
custom-@@toStringTag.js
debugger-statement.js
duplicated-variable-declarations.js
empty-statements.js
eval-aliasing.js
eval-basic.js
eval-redeclaration.js LibJS: Remove [[VarNames]] from GlobalEnvironment 2025-04-29 07:33:08 -04:00
exception-in-catch-block.js
exception-ReferenceError.js
exponentiation-basic.js
for-loop-per-iteration-env-bug.js
gc-deeply-nested-object-graph.js
global-var-let-const.js
if-statement-function-declaration.js
indexed-access-prototype-indirection.js
indexed-access-string-object.js
inline-cache-edge-cases.js
invalid-lhs-in-assignment.js
labels.js
let-scoping.js
new-expression.js
non-writable-assignment.js
null-or-undefined-access.js
numeric-literals-basic.js
object-basic.js LibJS: Allow async functions named "async" as function properties 2024-12-26 17:23:10 +01:00
object-expression-__proto__.js
object-expression-computed-property.js
object-expression-numeric-property.js
object-getter-setter-shorthand.js
object-method-shorthand.js
object-spread.js
ordinary-to-primitive.js
parseInt.js
parser-declaration-in-single-statement-context.js
parser-invalid-destructuring-assignment-target.js
parser-line-terminators.js
parser-unary-associativity.js
permanently-screwed-by-eval.js
postfix-increment-eval-order.js
program-non-strict.js
program-strict-mode.js
redefine-next-in-builtin-iterators.js LibJS: Disable optimization in IteratorNextUnpack if next() is redefined 2025-05-12 07:41:29 -04:00
return.js
runtime-error-call-stack-size.js LibJS: Handle call stack limit exceptions in NewPromiseReactionJob 2025-02-05 08:05:01 -05:00
statement-with-many-labels.js
strict-mode-blocks.js
strict-mode-errors.js
string-basic.js
string-concatenation.js
string-escapes.js
string-spread.js
switch-basic.js
switch-break.js
switch-default-before-case.js
tagged-template-literals.js LibJS: Use correct this value for tagged template literals with members 2025-01-17 17:15:12 +01:00
template-literals.js
test-common-tests.js
test-common.js LibJS: Close sync iterator when async wrapper yields rejection 2025-04-29 07:33:08 -04:00
this-value-strict.js
this-value.js
throw-basic.js
to-number-basic.js
to-number-exception.js
try-catch-finally-nested.js
try-catch-finally-return.js
try-catch-finally.js
try-finally-break.js LibJS: Avoid emptying the return value register in try/finally 2025-03-27 12:18:30 +00:00
try-finally-continue.js
try-return-finally.js
unicode-identifier-escape.js
update-expression-on-member-expression.js
update-expressions-basic.js
use-strict-directive.js
using-declaration.js
using-for-loops.js
var-multiple-declarator.js
var-scoping.js LibJS: Propagate direct eval presence if the current scope is screwed 2025-01-17 14:36:03 +01:00
variable-undefined.js
with-basic.js