From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- js/src/debugger/DebugAPI.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/src/debugger/DebugAPI.h') diff --git a/js/src/debugger/DebugAPI.h b/js/src/debugger/DebugAPI.h index df082ab5ba..67f3b62883 100644 --- a/js/src/debugger/DebugAPI.h +++ b/js/src/debugger/DebugAPI.h @@ -7,6 +7,7 @@ #ifndef debugger_DebugAPI_h #define debugger_DebugAPI_h +#include "js/Debug.h" #include "vm/GlobalObject.h" #include "vm/Interpreter.h" #include "vm/JSContext.h" @@ -228,6 +229,8 @@ class DebugAPI { const CallArgs& args, CallReason reason); + static inline bool shouldAvoidSideEffects(JSContext* cx); + /* * Announce to the debugger a |debugger;| statement on has been * encountered on the youngest JS frame on |cx|. Call whatever hooks have @@ -385,6 +388,7 @@ class DebugAPI { static NativeResumeMode slowPathOnNativeCall(JSContext* cx, const CallArgs& args, CallReason reason); + static bool slowPathShouldAvoidSideEffects(JSContext* cx); [[nodiscard]] static bool slowPathOnDebuggerStatement(JSContext* cx, AbstractFramePtr frame); [[nodiscard]] static bool slowPathOnExceptionUnwind(JSContext* cx, -- cgit v1.2.3