Closed
Bug 1046176
Opened 11 years ago
Closed 11 years ago
UnsafeSetReservedSlot post barrier always bails
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: jandem, Assigned: jandem)
Details
Attachments
(1 file)
|
929 bytes,
patch
|
nbp
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Using callInfo.thisArg() instead of callInfo.getArg(0) means we'll always bail (thisArg() is undefined and MPostWriteBarrier expects an object).
With this patch, the for-of micro-benchmark below improves from 152 to 12 ms. This affects all for-of loops so we should fix it on branches as well.
function f(arr) {
var t = new Date;
for (var i=0; i<100000; i++) {
for (var e of arr) {}
}
print(new Date - t);
}
f([1, 2, 3]);
Attachment #8464739 -
Flags: review?(nicolas.b.pierron)
Updated•11 years ago
|
Attachment #8464739 -
Flags: review?(nicolas.b.pierron) → review+
| Assignee | ||
Comment 1•11 years ago
|
||
[Tracking Requested - why for this release]:
Pretty serious performance issue (see numbers in comment 0) with a trivial fix. GGC will be enabled in 32, so this only affects beta and later.
status-firefox31:
--- → unaffected
status-firefox32:
--- → affected
status-firefox33:
--- → affected
status-firefox34:
--- → affected
tracking-firefox32:
--- → ?
tracking-firefox33:
--- → ?
tracking-firefox34:
--- → ?
| Assignee | ||
Comment 2•11 years ago
|
||
Updated•11 years ago
|
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
| Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 8464739 [details] [diff] [review]
Patch
Approval Request Comment
[Feature/regressing bug #]: Bug 928140, but it only affects versions with GGC (Firefox 32+)
[User impact if declined]: Pretty serious performance issues in some cases
[Describe test coverage new/current, TBPL]: Patch is on m-c; trivial fix
[Risks and why]: Very low risk; one-liner
[String/UUID change made/needed]: None
Attachment #8464739 -
Flags: approval-mozilla-beta?
Attachment #8464739 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8464739 -
Flags: approval-mozilla-beta?
Attachment #8464739 -
Flags: approval-mozilla-beta+
Attachment #8464739 -
Flags: approval-mozilla-aurora?
Attachment #8464739 -
Flags: approval-mozilla-aurora+
Comment 5•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•