diff options
Diffstat (limited to 'js/src/jsopcode.cpp')
-rw-r--r-- | js/src/jsopcode.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/jsopcode.cpp b/js/src/jsopcode.cpp index c9ec240e7f..b82715fb6e 100644 --- a/js/src/jsopcode.cpp +++ b/js/src/jsopcode.cpp @@ -149,7 +149,7 @@ js::StackDefs(JSScript* script, jsbytecode* pc) const char * PCCounts::numExecName = "interp"; -static MOZ_MUST_USE bool +[[nodiscard]] static bool DumpIonScriptCounts(Sprinter* sp, HandleScript script, jit::IonScriptCounts* ionCounts) { if (!sp->jsprintf("IonScript [%" PRIuSIZE " blocks]:\n", ionCounts->numBlocks())) @@ -181,7 +181,7 @@ DumpIonScriptCounts(Sprinter* sp, HandleScript script, jit::IonScriptCounts* ion return true; } -static MOZ_MUST_USE bool +[[nodiscard]] static bool DumpPCCounts(JSContext* cx, HandleScript script, Sprinter* sp) { MOZ_ASSERT(script->hasScriptCounts()); @@ -696,7 +696,7 @@ js::ReconstructStackDepth(JSContext* cx, JSScript* script, jsbytecode* pc, uint3 * current line. If showAll is true, include the source note type and the * entry stack depth. */ -static MOZ_MUST_USE bool +[[nodiscard]] static bool DisassembleAtPC(JSContext* cx, JSScript* scriptArg, bool lines, jsbytecode* pc, bool showAll, Sprinter* sp) { @@ -1861,7 +1861,7 @@ js::GetPCCountScriptCount(JSContext* cx) enum MaybeComma {NO_COMMA, COMMA}; -static MOZ_MUST_USE bool +[[nodiscard]] static bool AppendJSONProperty(StringBuffer& buf, const char* name, MaybeComma comma = COMMA) { if (comma && !buf.append(',')) |