summaryrefslogtreecommitdiff
path: root/js/src/jit/BaselineFrame.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit/BaselineFrame.h')
-rw-r--r--js/src/jit/BaselineFrame.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/src/jit/BaselineFrame.h b/js/src/jit/BaselineFrame.h
index c54569627f..165b78ab25 100644
--- a/js/src/jit/BaselineFrame.h
+++ b/js/src/jit/BaselineFrame.h
@@ -102,7 +102,7 @@ class BaselineFrame
// This is the old frame pointer saved in the prologue.
static const uint32_t FramePointerOffset = sizeof(void*);
- MOZ_MUST_USE bool initForOsr(InterpreterFrame* fp, uint32_t numStackValues);
+ [[nodiscard]] bool initForOsr(InterpreterFrame* fp, uint32_t numStackValues);
uint32_t frameSize() const {
return frameSize_;
@@ -259,12 +259,12 @@ class BaselineFrame
return &flags_;
}
- inline MOZ_MUST_USE bool pushLexicalEnvironment(JSContext* cx, Handle<LexicalScope*> scope);
- inline MOZ_MUST_USE bool freshenLexicalEnvironment(JSContext* cx);
- inline MOZ_MUST_USE bool recreateLexicalEnvironment(JSContext* cx);
+ [[nodiscard]] inline bool pushLexicalEnvironment(JSContext* cx, Handle<LexicalScope*> scope);
+ [[nodiscard]] inline bool freshenLexicalEnvironment(JSContext* cx);
+ [[nodiscard]] inline bool recreateLexicalEnvironment(JSContext* cx);
- MOZ_MUST_USE bool initFunctionEnvironmentObjects(JSContext* cx);
- MOZ_MUST_USE bool pushVarEnvironment(JSContext* cx, HandleScope scope);
+ [[nodiscard]] bool initFunctionEnvironmentObjects(JSContext* cx);
+ [[nodiscard]] bool pushVarEnvironment(JSContext* cx, HandleScope scope);
void initArgsObjUnchecked(ArgumentsObject& argsobj) {
flags_ |= HAS_ARGS_OBJ;