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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 v8::Local<v8::Context> debuggerContext() const; | 103 v8::Local<v8::Context> debuggerContext() const; |
104 void clearBreakpoints(); | 104 void clearBreakpoints(); |
105 | 105 |
106 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 106 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
107 void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 107 void handleProgramBreak(v8::Local<v8::Context> pausedContext, |
108 v8::Local<v8::Object> executionState, | 108 v8::Local<v8::Object> executionState, |
109 v8::Local<v8::Value> exception, | 109 v8::Local<v8::Value> exception, |
110 v8::Local<v8::Array> hitBreakpoints, | 110 v8::Local<v8::Array> hitBreakpoints, |
111 bool isPromiseRejection = false, | 111 bool isPromiseRejection = false, |
112 bool isUncaught = false); | 112 bool isUncaught = false); |
113 static void v8DebugEventCallback(const v8::debug::EventDetails&); | |
114 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, | |
115 const char* functionName); | |
116 void handleV8DebugEvent(const v8::debug::EventDetails&); | |
117 static void v8AsyncTaskListener(v8::debug::PromiseDebugActionType type, | 113 static void v8AsyncTaskListener(v8::debug::PromiseDebugActionType type, |
118 int id, void* data); | 114 int id, void* data); |
119 static void v8CompileEventListener(v8::Local<v8::debug::Script> script, | 115 static void v8CompileEventListener(v8::Local<v8::debug::Script> script, |
120 bool has_compile_error, void* data); | 116 bool has_compile_error, void* data); |
| 117 static void v8BreakEventListener(v8::Local<v8::Context> pausedContext, |
| 118 v8::Local<v8::Object> execState, |
| 119 v8::Local<v8::Value> breakPointsHit, |
| 120 void* data); |
| 121 static void v8ExceptionEventListener(v8::Local<v8::Context> pausedContext, |
| 122 v8::Local<v8::Object> execState, |
| 123 v8::Local<v8::Value> exception, |
| 124 bool isPromiseRejection, bool isUncaught, |
| 125 void* data); |
121 | 126 |
122 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, | 127 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, |
123 v8::Local<v8::Object>); | 128 v8::Local<v8::Object>); |
124 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, | 129 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, |
125 v8::Local<v8::Object>); | 130 v8::Local<v8::Object>); |
126 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, | 131 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, |
127 v8::Local<v8::Function>); | 132 v8::Local<v8::Function>); |
128 | 133 |
129 enum ScopeTargetKind { | 134 enum ScopeTargetKind { |
130 FUNCTION, | 135 FUNCTION, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; | 171 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
167 | 172 |
168 WasmTranslation m_wasmTranslation; | 173 WasmTranslation m_wasmTranslation; |
169 | 174 |
170 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 175 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
171 }; | 176 }; |
172 | 177 |
173 } // namespace v8_inspector | 178 } // namespace v8_inspector |
174 | 179 |
175 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 180 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
OLD | NEW |