[JSC] Bits from Operand should fit in bits reserved in AbstractHeap's Payload
Created attachment 388475 [details] Patch
<rdar://problem/58270260>
Comment on attachment 388475 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388475&action=review r=me with suggestion. > Source/JavaScriptCore/bytecode/Operands.h:41 > +enum class OperandKind : uint32_t { Argument, Local, Tmp }; // Keep bit-width in sync with Operand::operandKindBits' definition. Nit You can add a `LastOperandKind = Tmp` then compute kindBits from that via getMSBSet.
Comment on attachment 388475 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388475&action=review >> Source/JavaScriptCore/bytecode/Operands.h:41 >> +enum class OperandKind : uint32_t { Argument, Local, Tmp }; // Keep bit-width in sync with Operand::operandKindBits' definition. > > Nit You can add a `LastOperandKind = Tmp` then compute kindBits from that via getMSBSet. Sounds nice. Fixed.
Committed r254968: <https://trac.webkit.org/changeset/254968>
Follow-up fix. https://trac.webkit.org/changeset/254975/webkit