Closed Bug 1643944 Opened 4 years ago Closed 4 years ago

CacheIR: Optimize function.name

Categories

(Core :: JavaScript Engine: JIT, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: evilpie, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

We should optimize function.name when that property has not been resolved yet. Similar to what I did for the length property in bug 1332946. This happens around 500 times on reddit.

Severity: -- → N/A
Priority: -- → P3

name is non-nullptr if and only if the non-resolve hook fast-path was taken.
That means we can change if (!name) to use a simple else statement.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED

Optimise function.name similar to the existing function.length optimisation.

Depends on D90965

Transpile LoadFunctionName using the same approach as taken for LoadFunctionLength.

Depends on D90966

Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6f10ebed59c7
Part 1: Use else-statement in finishBoundFunctionInit. r=evilpie
https://hg.mozilla.org/integration/autoland/rev/4cda8cdf45cc
Part 2: Optimise function.name in CacheIR. r=evilpie
https://hg.mozilla.org/integration/autoland/rev/3ee21418fd0a
Part 3: Transpile LoadFunctionName. r=evilpie
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: