diff options
Diffstat (limited to 'js/src/jit/Safepoints.h')
-rw-r--r-- | js/src/jit/Safepoints.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/src/jit/Safepoints.h b/js/src/jit/Safepoints.h index 1626d924c8..4c5858851c 100644 --- a/js/src/jit/Safepoints.h +++ b/js/src/jit/Safepoints.h @@ -28,7 +28,7 @@ class SafepointWriter public: explicit SafepointWriter(uint32_t slotCount, uint32_t argumentCount); - MOZ_MUST_USE bool init(TempAllocator& alloc); + [[nodiscard]] bool init(TempAllocator& alloc); private: // A safepoint entry is written in the order these functions appear. @@ -83,7 +83,7 @@ class SafepointReader void advanceFromGcSlots(); void advanceFromValueSlots(); void advanceFromNunboxSlots(); - MOZ_MUST_USE bool getSlotFromBitmap(SafepointSlotEntry* entry); + [[nodiscard]] bool getSlotFromBitmap(SafepointSlotEntry* entry); public: SafepointReader(IonScript* script, const SafepointIndex* si); @@ -111,17 +111,17 @@ class SafepointReader uint32_t osiReturnPointOffset() const; // Returns true if a slot was read, false if there are no more slots. - MOZ_MUST_USE bool getGcSlot(SafepointSlotEntry* entry); + [[nodiscard]] bool getGcSlot(SafepointSlotEntry* entry); // Returns true if a slot was read, false if there are no more value slots. - MOZ_MUST_USE bool getValueSlot(SafepointSlotEntry* entry); + [[nodiscard]] bool getValueSlot(SafepointSlotEntry* entry); // Returns true if a nunbox slot was read, false if there are no more // nunbox slots. - MOZ_MUST_USE bool getNunboxSlot(LAllocation* type, LAllocation* payload); + [[nodiscard]] bool getNunboxSlot(LAllocation* type, LAllocation* payload); // Returns true if a slot was read, false if there are no more slots. - MOZ_MUST_USE bool getSlotsOrElementsSlot(SafepointSlotEntry* entry); + [[nodiscard]] bool getSlotsOrElementsSlot(SafepointSlotEntry* entry); }; } // namespace jit |