Closed Bug 1520996 Opened 7 years ago Closed 7 years ago

Add dedicate ParseNode subclass for property definition and use enum kind instead of JSOp to specify getter/setter.

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: arai, Assigned: khyperia)

References

Details

Attachments

(1 file)

Bug 1501577 added emitter helper for object/class, but the consumer of it is still using JSOp to determine whether the property is getter/setter/other.
We should add another variant of ParseNode subclass for property definition (including class methods/fields) and use enum kind to tell what it is.

See Also: → 1518391
Depends on: es-fields
Assignee: nobody → khyperia
Status: NEW → ASSIGNED

This will take a very slight memory regression until JSOP is entirely
removed from ParseNode (which will regain a lot more memory).

Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: