Closed
Bug 1380087
Opened 9 years ago
Closed 9 years ago
Add IsMapObject and IsSetObject intrinsic for self-hosted code
Categories
(Core :: JavaScript: Standard Library, enhancement)
Core
JavaScript: Standard Library
Tracking
()
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file)
|
7.84 KB,
patch
|
till
:
review+
|
Details | Diff | Splinter Review |
So we don't need to call Map|Set.prototype.has within a try-catch block.
Improves this µ-benchmark from 270ms to ~160ms (*) for me:
var s = new Set(Array(100).fill(0).map((v, k) => k + 1));
var q = 0;
function fn() { ++q; }
var t = Date.now();
for (var i = 0; i < 100000; ++i) {
s.forEach(fn);
}
print(Date.now() - t, q);
(*) Interestingly I also get ~160ms when testing with v8/jsc/chakra!
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8885399 -
Flags: review?(till)
Comment 2•9 years ago
|
||
Comment on attachment 8885399 [details] [diff] [review]
bug1380087.patch
Review of attachment 8885399 [details] [diff] [review]:
-----------------------------------------------------------------
Huh, I had forgotten about these ugly hacks :( Thank you for fixing them.
Attachment #8885399 -
Flags: review?(till) → review+
| Assignee | ||
Comment 3•9 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=3cff2827909ce0abd19b1968ed7ffcf941469cd1
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4e27c8cad5d1
Add an intrinsic to test for Map and Set objects. r=till
Keywords: checkin-needed
Comment 5•9 years ago
|
||
backed this out in https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=0e71e43dcee8655ce22cb3ad2cef44e17e06fea7&filter-searchStr=Linux+debug+Xpcshell+tests+executed+by+TaskCluster+test-linux32%2Fdebug-xpcshell-6+tc-X(X6) because of xpc x6 failures like https://treeherder.mozilla.org/logviewer.html#?job_id=113972672&repo=autoland which are still occur after the backout of bug 1379983
Flags: needinfo?(andrebargull)
Backout by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/812f0d47226f
Backed out changeset 4e27c8cad5d1
| Assignee | ||
Comment 7•9 years ago
|
||
The latests try (https://treeherder.mozilla.org/#/jobs?repo=try&revision=baaf2d8b31d38b5fc5d32fdec94dc884673bc770) didn't show any failures in test_available_free_space.js, so I guess it's one of these known intermittent bugs (bug 1368219, bug 1380607, bug 1378088), therefore requesting checkin-needed again.
Flags: needinfo?(andrebargull)
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8ff407adc162
Add an intrinsic to test for Map and Set objects. r=till
Keywords: checkin-needed
Comment 9•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•