Closed Bug 1448836 Opened 6 years ago Closed 6 years ago

Directly call NumberToAtom in parser

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

Parser.cpp defines DoubleToAtom which essentially boils down to calling NumberToAtom, only that DoubleToAtom is slower.
Attached patch bug1448836.patchSplinter Review
Directly call NumberToAtom in Parser.cpp instead of going through ToAtom -> ToAtomSlow -> NumberToAtom. We can do almost the same in FoldConstants.cpp except that we also need to recover from OOM because |FoldElement| is infallible.
Attachment #8962367 - Flags: review?(jorendorff)
Attachment #8962367 - Flags: review?(jorendorff) → review+
Priority: -- → P3
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/dce494e35759
Call NumberToAtom when argument is double value. r=jorendorff
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/dce494e35759
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: