Closed
Bug 1303463
Opened 8 years ago
Closed 8 years ago
Use safer STRICT_ASSIGN on VisualStudio.
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla52
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
2.09 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
As discovered in bug 1303085, VisualStudio doesn't do STRICT_ASSIGN as expected on float on some case.
changing it to use safer version solves the issue.
Assignee | ||
Comment 1•8 years ago
|
||
testing a patch with bug 1303085.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2950d3c9fdb6
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•8 years ago
|
||
Can I have your feedback on this approach?
I'll check performance impact shortly.
Attachment #8792166 -
Flags: feedback?(jwalden+bmo)
Assignee | ||
Comment 3•8 years ago
|
||
Assignee | ||
Comment 4•8 years ago
|
||
I don't see any performance difference between them, with the following code:
function f() {
var y = 0;
for (var x = -100; x <= 100; x += 0.0001) {
y += Math.exp(x) * 0.00000001;
}
return y;
}
result on my windows 10 laptop (32bit)
before: 617.4ms
after: 614.1ms
we could go with it.
Assignee | ||
Comment 5•8 years ago
|
||
Comment on attachment 8792166 [details] [diff] [review]
Use safer STRICT_ASSIGN on VisualStudio.
so, changing to safer STRICT_ASSIGN doesn't introduce any performance issue,
and it solves the issue in bug 1303085.
Attachment #8792166 -
Flags: feedback?(jwalden+bmo) → review?(jwalden+bmo)
Assignee | ||
Comment 6•8 years ago
|
||
so far, I confirmed the issue about correctness only with float type, and we don't have STRICT_ASSIGN with float in tree.
so this issue won't affect existing functions.
Comment 7•8 years ago
|
||
Comment on attachment 8792166 [details] [diff] [review]
Use safer STRICT_ASSIGN on VisualStudio.
Review of attachment 8792166 [details] [diff] [review]:
-----------------------------------------------------------------
This is, um, super rubberstampy.
Attachment #8792166 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 8•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e407c6185ace3581212d8ba05cc7ec27ca563d11
Bug 1303463 - Use safer STRICT_ASSIGN on VisualStudio. r=jwalden
Comment 9•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Comment 10•8 years ago
|
||
Mark 51 as won't fix. If it's worth uplifting to 51, feel free to nominate it.
You need to log in
before you can comment on or make changes to this bug.
Description
•