diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-03-12 09:01:49 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-03-14 18:49:21 +0100 |
commit | 7b48713334469818661fe276cf571de9c7899f2d (patch) | |
tree | 4dbda49ac88db76ce09dc330a0cb587e68e139ba /deps/v8/src/inspector/v8-debugger.h | |
parent | 8549ac09b256666cf5275224ec58fab9939ff32e (diff) | |
download | node-new-7b48713334469818661fe276cf571de9c7899f2d.tar.gz |
deps: update V8 to 7.3.492.25
PR-URL: https://github.com/nodejs/node/pull/25852
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'deps/v8/src/inspector/v8-debugger.h')
-rw-r--r-- | deps/v8/src/inspector/v8-debugger.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/deps/v8/src/inspector/v8-debugger.h b/deps/v8/src/inspector/v8-debugger.h index a99653add6..91d8c7e248 100644 --- a/deps/v8/src/inspector/v8-debugger.h +++ b/deps/v8/src/inspector/v8-debugger.h @@ -11,7 +11,7 @@ #include <vector> #include "src/base/macros.h" -#include "src/debug/debug-interface.h" +#include "src/inspector/inspected-context.h" #include "src/inspector/protocol/Debugger.h" #include "src/inspector/protocol/Forward.h" #include "src/inspector/protocol/Runtime.h" @@ -30,9 +30,9 @@ class V8InspectorImpl; class V8StackTraceImpl; struct V8StackTraceId; +enum class WrapMode { kForceValue, kNoPreview, kWithPreview }; + using protocol::Response; -using ScheduleStepIntoAsyncCallback = - protocol::Debugger::Backend::ScheduleStepIntoAsyncCallback; using TerminateExecutionCallback = protocol::Runtime::Backend::TerminateExecutionCallback; @@ -59,9 +59,6 @@ class V8Debugger : public v8::debug::DebugDelegate, void stepIntoStatement(int targetContextGroupId, bool breakOnAsyncCall); void stepOverStatement(int targetContextGroupId); void stepOutOfFunction(int targetContextGroupId); - void scheduleStepIntoAsync( - std::unique_ptr<ScheduleStepIntoAsyncCallback> callback, - int targetContextGroupId); void pauseOnAsyncCall(int targetContextGroupId, uintptr_t task, const String16& debuggerId); @@ -134,14 +131,19 @@ class V8Debugger : public v8::debug::DebugDelegate, std::shared_ptr<AsyncStackTrace> stackTraceFor(int contextGroupId, const V8StackTraceId& id); + void reportTermination(); + private: + bool addInternalObject(v8::Local<v8::Context> context, + v8::Local<v8::Object> object, + V8InternalValueType type); + void clearContinueToLocation(); bool shouldContinueToCurrentLocation(); 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, const std::vector<v8::debug::BreakpointId>& hitBreakpoints, @@ -160,6 +162,8 @@ class V8Debugger : public v8::debug::DebugDelegate, v8::Local<v8::Function>); v8::MaybeLocal<v8::Value> generatorScopes(v8::Local<v8::Context>, v8::Local<v8::Value>); + v8::MaybeLocal<v8::Array> collectionsEntries(v8::Local<v8::Context> context, + v8::Local<v8::Value> value); void asyncTaskScheduledForStack(const String16& taskName, void* task, bool recurring); @@ -191,12 +195,10 @@ class V8Debugger : public v8::debug::DebugDelegate, int currentContextGroupId(); bool asyncStepOutOfFunction(int targetContextGroupId, bool onlyAtReturn); - v8::MaybeLocal<v8::Uint32> stableObjectId(v8::Local<v8::Context>, - v8::Local<v8::Value>); - v8::Isolate* m_isolate; V8InspectorImpl* m_inspector; int m_enableCount; + int m_breakpointsActiveCount = 0; int m_ignoreScriptParsedEventsCounter; size_t m_originalHeapLimit = 0; @@ -231,7 +233,6 @@ class V8Debugger : public v8::debug::DebugDelegate, void* m_taskWithScheduledBreak = nullptr; String16 m_taskWithScheduledBreakDebuggerId; - std::unique_ptr<ScheduleStepIntoAsyncCallback> m_stepIntoAsyncCallback; bool m_breakRequested = false; v8::debug::ExceptionBreakState m_pauseOnExceptionsState; @@ -250,9 +251,6 @@ class V8Debugger : public v8::debug::DebugDelegate, std::unique_ptr<TerminateExecutionCallback> m_terminateExecutionCallback; - uint32_t m_lastStableObjectId = 0; - v8::Global<v8::debug::WeakMap> m_stableObjectId; - WasmTranslation m_wasmTranslation; DISALLOW_COPY_AND_ASSIGN(V8Debugger); |