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 25 matching lines...) Expand all Loading... |
36 int markContext(const V8ContextInfo&); | 36 int markContext(const V8ContextInfo&); |
37 | 37 |
38 bool enabled() const; | 38 bool enabled() const; |
39 | 39 |
40 String16 setBreakpoint(const ScriptBreakpoint&, int* actualLineNumber, | 40 String16 setBreakpoint(const ScriptBreakpoint&, int* actualLineNumber, |
41 int* actualColumnNumber); | 41 int* actualColumnNumber); |
42 void removeBreakpoint(const String16& breakpointId); | 42 void removeBreakpoint(const String16& breakpointId); |
43 void setBreakpointsActivated(bool); | 43 void setBreakpointsActivated(bool); |
44 bool breakpointsActivated() const { return m_breakpointsActivated; } | 44 bool breakpointsActivated() const { return m_breakpointsActivated; } |
45 | 45 |
46 v8::DebugInterface::ExceptionBreakState getPauseOnExceptionsState(); | 46 v8::debug::ExceptionBreakState getPauseOnExceptionsState(); |
47 void setPauseOnExceptionsState(v8::DebugInterface::ExceptionBreakState); | 47 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState); |
48 void setPauseOnNextStatement(bool); | 48 void setPauseOnNextStatement(bool); |
49 bool canBreakProgram(); | 49 bool canBreakProgram(); |
50 void breakProgram(); | 50 void breakProgram(); |
51 void continueProgram(); | 51 void continueProgram(); |
52 void stepIntoStatement(); | 52 void stepIntoStatement(); |
53 void stepOverStatement(); | 53 void stepOverStatement(); |
54 void stepOutOfFunction(); | 54 void stepOutOfFunction(); |
55 void clearStepping(); | 55 void clearStepping(); |
56 | 56 |
57 Response setScriptSource( | 57 Response setScriptSource( |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 v8::Local<v8::Context> debuggerContext() const; | 105 v8::Local<v8::Context> debuggerContext() const; |
106 void clearBreakpoints(); | 106 void clearBreakpoints(); |
107 | 107 |
108 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 108 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
109 void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 109 void handleProgramBreak(v8::Local<v8::Context> pausedContext, |
110 v8::Local<v8::Object> executionState, | 110 v8::Local<v8::Object> executionState, |
111 v8::Local<v8::Value> exception, | 111 v8::Local<v8::Value> exception, |
112 v8::Local<v8::Array> hitBreakpoints, | 112 v8::Local<v8::Array> hitBreakpoints, |
113 bool isPromiseRejection = false, | 113 bool isPromiseRejection = false, |
114 bool isUncaught = false); | 114 bool isUncaught = false); |
115 static void v8DebugEventCallback(const v8::DebugInterface::EventDetails&); | 115 static void v8DebugEventCallback(const v8::debug::EventDetails&); |
116 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, | 116 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, |
117 const char* functionName); | 117 const char* functionName); |
118 void handleV8DebugEvent(const v8::DebugInterface::EventDetails&); | 118 void handleV8DebugEvent(const v8::debug::EventDetails&); |
119 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, | 119 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, |
120 v8::Local<v8::Object> executionState, | 120 v8::Local<v8::Object> executionState, |
121 v8::Local<v8::Object> eventData); | 121 v8::Local<v8::Object> eventData); |
122 | 122 |
123 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, | 123 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, |
124 v8::Local<v8::Object>); | 124 v8::Local<v8::Object>); |
125 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, | 125 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, |
126 v8::Local<v8::Object>); | 126 v8::Local<v8::Object>); |
127 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, | 127 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, |
128 v8::Local<v8::Function>); | 128 v8::Local<v8::Function>); |
(...skipping 25 matching lines...) Expand all Loading... |
154 | 154 |
155 using AsyncTaskToStackTrace = | 155 using AsyncTaskToStackTrace = |
156 protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; | 156 protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; |
157 AsyncTaskToStackTrace m_asyncTaskStacks; | 157 AsyncTaskToStackTrace m_asyncTaskStacks; |
158 protocol::HashSet<void*> m_recurringTasks; | 158 protocol::HashSet<void*> m_recurringTasks; |
159 int m_maxAsyncCallStackDepth; | 159 int m_maxAsyncCallStackDepth; |
160 std::vector<void*> m_currentTasks; | 160 std::vector<void*> m_currentTasks; |
161 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 161 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
162 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 162 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
163 | 163 |
164 v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; | 164 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
165 | 165 |
166 WasmTranslation m_wasmTranslation; | 166 WasmTranslation m_wasmTranslation; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 168 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace v8_inspector | 171 } // namespace v8_inspector |
172 | 172 |
173 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 173 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
OLD | NEW |