Open
Bug 1127015
Opened 11 years ago
Updated 3 years ago
Convert some enums to enum classes in js/src/jit
Categories
(Core :: JavaScript Engine: JIT, defect, P5)
Core
JavaScript Engine: JIT
Tracking
()
NEW
People
(Reporter: jandem, Unassigned)
References
(Blocks 1 open bug)
Details
We have some enums that are used a lot (MIRType, FrameType etc) and with enum classes we get better type safety (no more implicit conversion to integer and for instance comparing a MIRType to a JSValueType will be a compile error).
They also no longer pollute the namespace with the enum values (although these enums use a prefix so it's not really an issue). So we'd just replace:
MIRType_Int32 -> MIRType::Int32
JitFrame_BaselineJS -> FrameType::BaselineJS
etc.
Updated•9 years ago
|
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•