summaryrefslogtreecommitdiffstats
path: root/js/src/debugger/DebugAPI.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/debugger/DebugAPI.h4
1 files changed, 4 insertions, 0 deletions
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,