mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibJS: Use premade shape when creating mapped arguments objects
Knocks out a 0.4% profile item on Speedometer 3.
This commit is contained in:
parent
ed5ad267c7
commit
e0b32b1863
Notes:
github-actions[bot]
2025-04-18 23:14:55 +00:00
Author: https://github.com/awesomekling
Commit: e0b32b1863
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4400
4 changed files with 25 additions and 5 deletions
|
@ -13,7 +13,7 @@ namespace JS {
|
|||
GC_DEFINE_ALLOCATOR(ArgumentsObject);
|
||||
|
||||
ArgumentsObject::ArgumentsObject(Realm& realm, Environment& environment)
|
||||
: Object(ConstructWithPrototypeTag::Tag, realm.intrinsics().object_prototype(), MayInterfereWithIndexedPropertyAccess::Yes)
|
||||
: Object(realm.intrinsics().mapped_arguments_object_shape(), MayInterfereWithIndexedPropertyAccess::Yes)
|
||||
, m_environment(environment)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue