Closed
Bug 1476657
Opened 7 years ago
Closed 7 years ago
[Static Analysis] DEAD_STORE errors in js/src/frontend/Parser.cpp
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: rbartlensky, Assigned: rbartlensky)
References
Details
Attachments
(1 file)
js/src/frontend/Parser.cpp:1837: error: DEAD_STORE
The value written to &cursor (type js::BindingName*) is never used.
1835.
1836. bindings->constStart = cursor - start;
1837. > cursor = FreshlyInitializeBindings(cursor, consts);
1838.
1839. bindings->length = numBindings;
js/src/frontend/Parser.cpp:1907: error: DEAD_STORE
The value written to &cursor (type js::BindingName*) is never used.
1905.
1906. bindings->constStart = cursor - start;
1907. > cursor = FreshlyInitializeBindings(cursor, consts);
1908.
1909. bindings->length = numBindings;
js/src/frontend/Parser.cpp:1947: error: DEAD_STORE
The value written to &cursor (type js::BindingName*) is never used.
1945. BindingName* cursor = start;
1946.
1947. > cursor = FreshlyInitializeBindings(cursor, vars);
1948.
1949. bindings->length = numBindings;
js/src/frontend/Parser.cpp:2046: error: DEAD_STORE
The value written to &cursor (type js::BindingName*) is never used.
2044.
2045. bindings->varStart = cursor - start;
2046. > cursor = FreshlyInitializeBindings(cursor, vars);
2047.
2048. bindings->length = numBindings;
js/src/frontend/Parser.cpp:2087: error: DEAD_STORE
The value written to &cursor (type js::BindingName*) is never used.
2085. BindingName* cursor = start;
2086.
2087. > cursor = FreshlyInitializeBindings(cursor, vars);
2088.
2089. bindings->length = numBindings;
js/src/frontend/Parser.cpp:2144: error: DEAD_STORE
The value written to &cursor (type js::BindingName*) is never used.
2142.
2143. bindings->constStart = cursor - start;
2144. > cursor = FreshlyInitializeBindings(cursor, consts);
2145.
2146. bindings->length = numBindings;
js/src/frontend/Parser.cpp:4857: error: DEAD_STORE
The value written to &declKind (type int) is never used.
4855. // Annex B.3.5 has different early errors for vars in for-of loops.
4856. if (declKind == DeclarationKind::Var)
4857. > declKind = DeclarationKind::ForOfVar;
4858. } else {
4859. *forHeadKind = ParseNodeKind::ForHead;
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8993048 [details]
Bug 1476657: Fix DEAD_STORE issues in js/src/frontend/Parser.cpp.
https://reviewboard.mozilla.org/r/257854/#review264852
Thanks!
Attachment #8993048 -
Flags: review?(arai.unmht) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by rgurzau@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6d259e78aa9c
Fix DEAD_STORE issues in js/src/frontend/Parser.cpp. r=arai
Keywords: checkin-needed
Backout by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a88fbbebadcc
Backed out changeset 6d259e78aa9c for bustage in /builds/worker/workspace/build/src/js/src/frontend/Parser.cpp on a CLOSED TREE
Assignee | ||
Comment 5•7 years ago
|
||
It seems that someone solved the issues already.
Assignee | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•7 years ago
|
||
My bad, my tree wasn't merged properly...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•7 years ago
|
||
I added 'Unused << ' everywhere, could you confirm that it is fine?
Flags: needinfo?(arai.unmht)
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 11•7 years ago
|
||
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/358b59601fb9
Fix DEAD_STORE issues in js/src/frontend/Parser.cpp. r=arai
Keywords: checkin-needed
Comment 12•7 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in
before you can comment on or make changes to this bug.
Description
•