Closed
Bug 1513040
Opened 5 years ago
Closed 5 years ago
Minor ParseNode cleanups
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: jorendorff, Assigned: khyperia)
References
Details
Attachments
(2 files)
Split off from bug 1512428 comment 2: - Rename all ParseNodeKinds that are expressions to have names that end with Expr, and all statements to end in Stmt. (For now, make an exception for Function and Class, which can occur as either declarations or expressions.) Also Star -> MulExpr. - In a separate changeset, change FOR_EACH_PARSE_NODE_KIND to use a class name (like TernaryNode) instead of an arity enum (like PN_TERNARY) as the second argument. Each class will have to have something like `static constexpr TernaryNode::arity()`, not a big deal. Then move `ParseNodeVisitor::visit_PN_TERNARY_children(ParseNode*& pn)` to `TernaryNode::visitChildren<V>(V&)`, and likewise for the other visit_*_children methods. This should make some of the `unsafe{Kid,Left,Right,Kid2,Kid3,Blah}Reference()` methods unnecessary.
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → khyperia
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D14321
Pushed by ahauck@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e69ec9477ef8 Rename ParseNodeKinds to end with Stmt or Expr. r=jorendorff https://hg.mozilla.org/integration/autoland/rev/bab13130b3f0 Change FOR_EACH_PARSE_NODE_KIND to use type instead of arity. r=jorendorff
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e69ec9477ef8 https://hg.mozilla.org/mozilla-central/rev/bab13130b3f0
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
Comment 5•5 years ago
|
||
Backed out 3 changesets (Bug 1512428, Bug 1513040) for causing raptor tp6-5 perma failures on Windows 7 opt/pgo Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=success%2Cpending%2Crunning%2Ctestfailed%2Cbusted%2Cexception%2Cusercancel%2Crunnable&searchStr=windows%2C7%2Ctp6-5&revision=bab13130b3f0880709e8c00ce77fec3ddd9eeea2&selectedJob=217671261 failure logs: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=217662963&repo=autoland&lineNumber=1255
Status: RESOLVED → REOPENED
status-firefox66:
fixed → ---
Flags: needinfo?(khyperia)
Resolution: FIXED → ---
Target Milestone: mozilla66 → ---
Assignee | ||
Comment 6•5 years ago
|
||
Quick note: The issue was in the base bug this patch is based off of ( https://bugzilla.mozilla.org/show_bug.cgi?id=1512428 ) so I'm going to land these again with the fix for the base bug. (The try run I mention in the other thread's comments includes these patches).
Flags: needinfo?(khyperia)
Pushed by ahauck@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6356c45cfbb7 Rename ParseNodeKinds to end with Stmt or Expr. r=jorendorff https://hg.mozilla.org/integration/autoland/rev/598f93e37949 Change FOR_EACH_PARSE_NODE_KIND to use type instead of arity. r=jorendorff
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6356c45cfbb7 https://hg.mozilla.org/mozilla-central/rev/598f93e37949
Status: REOPENED → RESOLVED
Closed: 5 years ago → 5 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•