Closed Bug 1787756 Opened 2 years ago Closed 2 years ago

Remove JSObject::isBoundFunction()

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Remove JSObject::isBoundFunction() because all callers are definitely JSFunction and therefore can directly call JSFunction::isBoundFunction().

Drive-by changes:

  • Use needsPrototypeProperty() in fun_enumerate, because it's more
    efficient and more closely follows fun_resolve.
  • Remove unused function fromShapeFieldPointer().

CanReuseScriptForClone() is now only used for an assertion.

Depends on D155838

Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/5d79e42afc06
Part 1: Remove JSObject::isBoundFunction(). r=jonco
https://hg.mozilla.org/integration/autoland/rev/e736a7acaeb0
Part 2: CanReuseScriptForClone can be a static function. r=jonco
Blocks: sm-runtime
Severity: -- → N/A
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: