| 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" |
| 11 #include "src/debug/debug-interface.h" |
| 11 #include "src/inspector/java-script-call-frame.h" | 12 #include "src/inspector/java-script-call-frame.h" |
| 12 #include "src/inspector/protocol/Forward.h" | 13 #include "src/inspector/protocol/Forward.h" |
| 13 #include "src/inspector/protocol/Runtime.h" | 14 #include "src/inspector/protocol/Runtime.h" |
| 14 #include "src/inspector/v8-debugger-script.h" | 15 #include "src/inspector/v8-debugger-script.h" |
| 15 | 16 |
| 16 #include "include/v8-debug.h" | |
| 17 #include "include/v8-inspector.h" | 17 #include "include/v8-inspector.h" |
| 18 | 18 |
| 19 namespace v8_inspector { | 19 namespace v8_inspector { |
| 20 | 20 |
| 21 struct ScriptBreakpoint; | 21 struct ScriptBreakpoint; |
| 22 class V8DebuggerAgentImpl; | 22 class V8DebuggerAgentImpl; |
| 23 class V8InspectorImpl; | 23 class V8InspectorImpl; |
| 24 class V8StackTraceImpl; | 24 class V8StackTraceImpl; |
| 25 | 25 |
| 26 using protocol::ErrorString; | 26 using protocol::ErrorString; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 v8::Local<v8::Value> argv[]); | 107 v8::Local<v8::Value> argv[]); |
| 108 v8::Local<v8::Context> debuggerContext() const; | 108 v8::Local<v8::Context> debuggerContext() const; |
| 109 void clearBreakpoints(); | 109 void clearBreakpoints(); |
| 110 | 110 |
| 111 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 111 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 112 void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 112 void handleProgramBreak(v8::Local<v8::Context> pausedContext, |
| 113 v8::Local<v8::Object> executionState, | 113 v8::Local<v8::Object> executionState, |
| 114 v8::Local<v8::Value> exception, | 114 v8::Local<v8::Value> exception, |
| 115 v8::Local<v8::Array> hitBreakpoints, | 115 v8::Local<v8::Array> hitBreakpoints, |
| 116 bool isPromiseRejection = false); | 116 bool isPromiseRejection = false); |
| 117 static void v8DebugEventCallback(const v8::Debug::EventDetails&); | 117 static void v8DebugEventCallback(const v8::DebugInterface::EventDetails&); |
| 118 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, | 118 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, |
| 119 const char* functionName); | 119 const char* functionName); |
| 120 void handleV8DebugEvent(const v8::Debug::EventDetails&); | 120 void handleV8DebugEvent(const v8::DebugInterface::EventDetails&); |
| 121 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, | 121 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, |
| 122 v8::Local<v8::Object> executionState, | 122 v8::Local<v8::Object> executionState, |
| 123 v8::Local<v8::Object> eventData); | 123 v8::Local<v8::Object> eventData); |
| 124 | 124 |
| 125 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, | 125 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, |
| 126 v8::Local<v8::Object>); | 126 v8::Local<v8::Object>); |
| 127 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, | 127 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, |
| 128 v8::Local<v8::Object>); | 128 v8::Local<v8::Object>); |
| 129 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, | 129 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, |
| 130 v8::Local<v8::Function>); | 130 v8::Local<v8::Function>); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 151 std::vector<void*> m_currentTasks; | 151 std::vector<void*> m_currentTasks; |
| 152 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 152 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
| 153 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 153 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 155 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace v8_inspector | 158 } // namespace v8_inspector |
| 159 | 159 |
| 160 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 160 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |