diff options
Diffstat (limited to 'deps/v8/src/inspector/v8-debugger.h')
-rw-r--r-- | deps/v8/src/inspector/v8-debugger.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/deps/v8/src/inspector/v8-debugger.h b/deps/v8/src/inspector/v8-debugger.h index a710726581..351e5b66ad 100644 --- a/deps/v8/src/inspector/v8-debugger.h +++ b/deps/v8/src/inspector/v8-debugger.h @@ -32,6 +32,8 @@ struct V8StackTraceId; using protocol::Response; using ScheduleStepIntoAsyncCallback = protocol::Debugger::Backend::ScheduleStepIntoAsyncCallback; +using TerminateExecutionCallback = + protocol::Runtime::Backend::TerminateExecutionCallback; class V8Debugger : public v8::debug::DebugDelegate { public: @@ -60,6 +62,8 @@ class V8Debugger : public v8::debug::DebugDelegate { void pauseOnAsyncCall(int targetContextGroupId, uintptr_t task, const String16& debuggerId); + void terminateExecution(std::unique_ptr<TerminateExecutionCallback> callback); + Response continueToLocation(int targetContextGroupId, V8DebuggerScript* script, std::unique_ptr<protocol::Debugger::Location>, @@ -131,7 +135,9 @@ class V8Debugger : public v8::debug::DebugDelegate { void clearContinueToLocation(); bool shouldContinueToCurrentLocation(); - static void v8OOMCallback(void* data); + static size_t nearHeapLimitCallback(void* data, size_t current_heap_limit, + size_t initial_heap_limit); + static void terminateExecutionCompletedCallback(v8::Isolate* isolate); void handleProgramBreak( v8::Local<v8::Context> pausedContext, v8::Local<v8::Value> exception, @@ -184,6 +190,7 @@ class V8Debugger : public v8::debug::DebugDelegate { int m_enableCount; int m_breakpointsActiveCount = 0; int m_ignoreScriptParsedEventsCounter; + size_t m_originalHeapLimit = 0; bool m_scheduledOOMBreak = false; bool m_scheduledAssertBreak = false; int m_targetContextGroupId = 0; @@ -232,6 +239,8 @@ class V8Debugger : public v8::debug::DebugDelegate { protocol::HashMap<String16, std::pair<int64_t, int64_t>> m_serializedDebuggerIdToDebuggerId; + std::unique_ptr<TerminateExecutionCallback> m_terminateExecutionCallback; + WasmTranslation m_wasmTranslation; DISALLOW_COPY_AND_ASSIGN(V8Debugger); |