mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
LibJS: Make async functions & generators faster with helper types
Instead of returning internal generator results as ordinary JS::Objects with properties, we now use GeneratorResult and CompletionCell which both inherit from Cell directly and allow efficient access to state. 1.59x speedup on JetStream3/lazy-collections.js :^)
This commit is contained in:
parent
1022566bff
commit
a0bb31f7a0
Notes:
github-actions[bot]
2025-04-01 00:31:35 +00:00
Author: https://github.com/awesomekling
Commit: a0bb31f7a0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4161
12 changed files with 259 additions and 93 deletions
|
@ -91,7 +91,6 @@ namespace JS {
|
|||
P(construct) \
|
||||
P(constructor) \
|
||||
P(containing) \
|
||||
P(continuation) \
|
||||
P(copyWithin) \
|
||||
P(cos) \
|
||||
P(cosh) \
|
||||
|
@ -277,7 +276,6 @@ namespace JS {
|
|||
P(Intl) \
|
||||
P(is) \
|
||||
P(isArray) \
|
||||
P(isAwait) \
|
||||
P(isDisjointFrom) \
|
||||
P(isError) \
|
||||
P(isExtensible) \
|
||||
|
@ -409,7 +407,6 @@ namespace JS {
|
|||
P(reason) \
|
||||
P(reduce) \
|
||||
P(reduceRight) \
|
||||
P(result) \
|
||||
P(Reflect) \
|
||||
P(RegExp) \
|
||||
P(region) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue