Files
ladybird/Libraries/LibJS/Runtime/GeneratorObject.cpp
Aliaksandr Kalenik 5538d62c9e LibJS: Store pending completion on generator instead of CompletionCell
Avoids a heap allocation per generator/async-generator resumption by
storing the pending completion value and type directly on the
GeneratorObject / AsyncGenerator, instead of allocating a separate
CompletionCell and passing it into the executable.

GetCompletionFields and SetCompletionType now read/write the fields on
the generator object directly.
2026-05-03 12:24:04 +02:00

10 KiB