ladybird/Tests/LibJS
Andreas Kling 73812e12d2 LibJS: Fast path Array.prototype.indexOf on packed arrays
Skip the generic HasProperty and Get loop when indexOf operates on a
simple packed array. In that case every index below length is an own
data property, so a direct scan of the packed indexed property storage
gives the same strict-equality result without the per-element property
lookup
ceremony.

Only use the fast path when the current packed storage size still
matches the length captured before fromIndex coercion, since that
coercion can run user code and mutate the receiver. Add coverage for
length and storage mutations during fromIndex coercion.
2026-04-27 08:39:37 +02:00
..
AST LibJS: Materialize arguments object for shorthand { arguments } 2026-04-27 08:04:11 +02:00
Bytecode LibJS: Allocate local variable indices in source order 2026-04-27 08:04:11 +02:00
Runtime LibJS: Fast path Array.prototype.indexOf on packed arrays 2026-04-27 08:39:37 +02:00
CMakeLists.txt LibJS: Add deferred PrimitiveString substrings 2026-04-11 00:35:36 +02:00
test-js-ast.py LibJS: Support .mjs files in test-js-ast and test-js-bytecode 2026-02-19 12:02:50 +01:00
test-js-bytecode.py LibJS: Support .mjs files in test-js-ast and test-js-bytecode 2026-02-19 12:02:50 +01:00
test-js.cpp LibJS: Remove gc from the global object 2026-04-24 18:36:23 +02:00
test-primitive-string.cpp LibJS: Reuse cached ASCII strings for substrings 2026-04-12 19:15:50 +02:00
test-value-js.cpp LibJS: Make Value() default-construct the undefined value 2025-04-05 11:20:26 +02:00