Closed Bug 1693046 Opened 4 years ago Closed 4 years ago

Remove JSClass parameter from NewObjectGCKind

Categories

(Core :: JavaScript Engine, task)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

Remove JSClass parameter from NewObjectGCKind because it's effectively unused.

js::CreateThis() calls into NewObject() via NewObjectWithClassProto(),
and NewObject() asserts when the class is either ArrayObject::class_ or
JSFunction::class_ and the AllocKind is neither AllocKind::FUNCTION nor
AllocKind::FUNCTION_EXTENDED. That means js::CreateThis() is never called
for arrays and functions and therefore it's okay to ignore the JSClass*
passed to NewObjectGCKind().

Also remove the reference to bug 547327, because the bug has been closed.

Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/integration/autoland/rev/78953b4969b3 Remove JSClass parameter from NewObjectGCKind. r=jandem
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: