| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_INSPECTOR_V8DEBUGGER_H_ | 5 #ifndef V8_INSPECTOR_V8DEBUGGER_H_ |
| 6 #define V8_INSPECTOR_V8DEBUGGER_H_ | 6 #define V8_INSPECTOR_V8DEBUGGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 }; | 125 }; |
| 126 v8::MaybeLocal<v8::Value> getTargetScopes(v8::Local<v8::Context>, | 126 v8::MaybeLocal<v8::Value> getTargetScopes(v8::Local<v8::Context>, |
| 127 v8::Local<v8::Value>, | 127 v8::Local<v8::Value>, |
| 128 ScopeTargetKind); | 128 ScopeTargetKind); |
| 129 | 129 |
| 130 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Context>, | 130 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Context>, |
| 131 v8::Local<v8::Function>); | 131 v8::Local<v8::Function>); |
| 132 v8::MaybeLocal<v8::Value> generatorScopes(v8::Local<v8::Context>, | 132 v8::MaybeLocal<v8::Value> generatorScopes(v8::Local<v8::Context>, |
| 133 v8::Local<v8::Value>); | 133 v8::Local<v8::Value>); |
| 134 | 134 |
| 135 void asyncTaskCreated(void* task, void* parentTask); |
| 136 |
| 135 // v8::debug::DebugEventListener implementation. | 137 // v8::debug::DebugEventListener implementation. |
| 136 void PromiseEventOccurred(v8::debug::PromiseDebugActionType type, | 138 void PromiseEventOccurred(v8::debug::PromiseDebugActionType type, int id, |
| 137 int id) override; | 139 int parentId) override; |
| 138 void ScriptCompiled(v8::Local<v8::debug::Script> script, | 140 void ScriptCompiled(v8::Local<v8::debug::Script> script, |
| 139 bool has_compile_error) override; | 141 bool has_compile_error) override; |
| 140 void BreakProgramRequested(v8::Local<v8::Context> paused_context, | 142 void BreakProgramRequested(v8::Local<v8::Context> paused_context, |
| 141 v8::Local<v8::Object> exec_state, | 143 v8::Local<v8::Object> exec_state, |
| 142 v8::Local<v8::Value> break_points_hit) override; | 144 v8::Local<v8::Value> break_points_hit) override; |
| 143 void ExceptionThrown(v8::Local<v8::Context> paused_context, | 145 void ExceptionThrown(v8::Local<v8::Context> paused_context, |
| 144 v8::Local<v8::Object> exec_state, | 146 v8::Local<v8::Object> exec_state, |
| 145 v8::Local<v8::Value> exception, | 147 v8::Local<v8::Value> exception, |
| 146 bool is_promise_rejection, bool is_uncaught) override; | 148 bool is_promise_rejection, bool is_uncaught) override; |
| 147 bool IsFunctionBlackboxed(v8::Local<v8::debug::Script> script, | 149 bool IsFunctionBlackboxed(v8::Local<v8::debug::Script> script, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 165 AsyncTaskToStackTrace m_asyncTaskStacks; | 167 AsyncTaskToStackTrace m_asyncTaskStacks; |
| 166 int m_maxAsyncCallStacks; | 168 int m_maxAsyncCallStacks; |
| 167 std::map<int, void*> m_idToTask; | 169 std::map<int, void*> m_idToTask; |
| 168 std::unordered_map<void*, int> m_taskToId; | 170 std::unordered_map<void*, int> m_taskToId; |
| 169 int m_lastTaskId; | 171 int m_lastTaskId; |
| 170 protocol::HashSet<void*> m_recurringTasks; | 172 protocol::HashSet<void*> m_recurringTasks; |
| 171 int m_maxAsyncCallStackDepth; | 173 int m_maxAsyncCallStackDepth; |
| 172 std::vector<void*> m_currentTasks; | 174 std::vector<void*> m_currentTasks; |
| 173 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 175 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
| 174 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 176 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
| 177 protocol::HashMap<void*, void*> m_parentTask; |
| 175 | 178 |
| 176 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; | 179 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
| 177 | 180 |
| 178 WasmTranslation m_wasmTranslation; | 181 WasmTranslation m_wasmTranslation; |
| 179 | 182 |
| 180 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 183 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
| 181 }; | 184 }; |
| 182 | 185 |
| 183 } // namespace v8_inspector | 186 } // namespace v8_inspector |
| 184 | 187 |
| 185 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 188 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |