Closed Bug 1523592 Opened 5 years ago Closed 5 years ago

Move %TypedArray%.prototype[@@toStringTag] getter from JS to C++

Categories

(Core :: JavaScript: Standard Library, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

Follow-up from bug 1518833 comment #2.

Also makes Object.prototype.toString a bit faster when called with TypedArrays, because it's cheaper to call a JSFunction implemented in C++ from C++ code.

Attached patch bug1523592.patchSplinter Review
Attachment #9039776 - Flags: review?(jorendorff)
Comment on attachment 9039776 [details] [diff] [review]
bug1523592.patch

Review of attachment 9039776 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, I remember noticing this code lately and thinking it seemed a bit circuitous.
Attachment #9039776 - Flags: review?(jorendorff) → review+

Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bbe4b321e60a
Move %TypedArray%.prototype[@@toStringTag] getter from JS to C++. r=jorendorff

Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: