new Object() is deathly slow
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
People
(Reporter: bzbarsky, Assigned: anba)
References
Details
Attachments
(5 files)
Comment 1•9 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
CreateThis
always allocates an AllocKind::OBJECT4
object (cf. NewObjectGCKind()
),
so we can end up with allocating an object with fewer reserved slots than indicated
by its class. To avoid this situation inline the relevant bits of CreateThis
into
JS_NewObjectForConstructor
.
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Both functions are now only used for obj_construct
, so inline resp. move them
next to obj_construct
.
Depends on D160639
Assignee | ||
Comment 5•2 years ago
|
||
Inline new Object()
calls by using the same CacheIR instructions we use when
creating object literals.
Depends on D160640
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D160641
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9dca46830de3
https://hg.mozilla.org/mozilla-central/rev/6c098893465f
https://hg.mozilla.org/mozilla-central/rev/b17767ae7ab0
https://hg.mozilla.org/mozilla-central/rev/d05811d05349
Updated•2 years ago
|
Description
•