Closed
Bug 1335049
Opened 7 years ago
Closed 7 years ago
Some bytecode documentation's stack count doesn't match to actual value.
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•7 years ago
|
||
Fixed "Stack:" in Opcodes.h * JSOP_GETPROP_SUPER / JSOP_OPTIMIZE_SPREADCALL lack of "," between values * JSOP_GOSUB this actually pushes values, but when it resumes from next PC, those values are popped, and also those values are mentioned in JSOP_FINALLY so I think "Stack:" for JSOP_GOSUB shouldn't contain them * JSOP_DERIVEDCONSTRUCTOR input is prototype for the constructor * JSOP_THROWSETCONST / JSOP_THROWSETALIASEDCONST / JSOP_THROWSETCALLEE they implicitly use the value for the assignment * JSOP_INITIALYIELD it keeps generator value on the stack also added a code to verify count in make_opcode_doc.py. it doesn't check for following conditions: * when one of nuses/ndefs is -1 * when "Stack:" contains "..." this matches to stack operations (JSOP_DUPAT/JSOP_PICK/JSOP_UNPICK) and JSOP_INITHOMEOBJECT
Attachment #8831706 -
Flags: review?(jdemooij)
Comment 2•7 years ago
|
||
Comment on attachment 8831706 [details] [diff] [review] Fix bytecode documentation stack notation to match nuses/ndefs, and verify it in make_opcode_doc.py. Review of attachment 8831706 [details] [diff] [review]: ----------------------------------------------------------------- Nice.
Attachment #8831706 -
Flags: review?(jdemooij) → review+
Assignee | ||
Comment 3•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a2648889cc0355e7ad3cd600ec92ece45327a73a Bug 1335049 - Fix bytecode documentation stack notation to match nuses/ndefs, and verify it in make_opcode_doc.py. r=jandem
Comment 4•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a2648889cc03
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•