summaryrefslogtreecommitdiff
path: root/js/src/jit/CodeGenerator.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-04 20:06:50 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-08 13:48:12 +0100
commit706d07b3d560955745a7dd4addb0ea52ac18d94b (patch)
tree581db1c66c37f92bf7759aae1ef45acc7ad38201 /js/src/jit/CodeGenerator.h
parenteb7be8c637b7b382161d009b302ae9713470c553 (diff)
downloaduxp-706d07b3d560955745a7dd4addb0ea52ac18d94b.tar.gz
Issue #2342: Use [[nodiscard]] in /js
Diffstat (limited to 'js/src/jit/CodeGenerator.h')
-rw-r--r--js/src/jit/CodeGenerator.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/src/jit/CodeGenerator.h b/js/src/jit/CodeGenerator.h
index b0fd03538d..bd8549842a 100644
--- a/js/src/jit/CodeGenerator.h
+++ b/js/src/jit/CodeGenerator.h
@@ -56,7 +56,7 @@ class OutOfLineNaNToZero;
class CodeGenerator final : public CodeGeneratorSpecific
{
void generateArgumentsChecks(bool bailout = true);
- MOZ_MUST_USE bool generateBody();
+ [[nodiscard]] bool generateBody();
ConstantOrRegister toConstantOrRegister(LInstruction* lir, size_t n, MIRType type);
@@ -65,11 +65,11 @@ class CodeGenerator final : public CodeGeneratorSpecific
~CodeGenerator();
public:
- MOZ_MUST_USE bool generate();
- MOZ_MUST_USE bool generateWasm(wasm::SigIdDesc sigId, wasm::TrapOffset trapOffset,
+ [[nodiscard]] bool generate();
+ [[nodiscard]] bool generateWasm(wasm::SigIdDesc sigId, wasm::TrapOffset trapOffset,
wasm::FuncOffsets *offsets);
- MOZ_MUST_USE bool link(JSContext* cx, CompilerConstraintList* constraints);
- MOZ_MUST_USE bool linkSharedStubs(JSContext* cx);
+ [[nodiscard]] bool link(JSContext* cx, CompilerConstraintList* constraints);
+ [[nodiscard]] bool linkSharedStubs(JSContext* cx);
void visitOsiPoint(LOsiPoint* lir);
void visitGoto(LGoto* lir);
@@ -466,7 +466,7 @@ class CodeGenerator final : public CodeGeneratorSpecific
bool strict, bool needsTypeBarrier, bool guardHoles,
jsbytecode* profilerLeavePc);
- MOZ_MUST_USE bool generateBranchV(const ValueOperand& value, Label* ifTrue, Label* ifFalse,
+ [[nodiscard]] bool generateBranchV(const ValueOperand& value, Label* ifTrue, Label* ifFalse,
FloatRegister fr);
void emitLambdaInit(Register resultReg, Register envChainReg,