| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void compileDebuggerScript(); | 98 void compileDebuggerScript(); |
| 99 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, | 99 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, |
| 100 int argc, | 100 int argc, |
| 101 v8::Local<v8::Value> argv[], | 101 v8::Local<v8::Value> argv[], |
| 102 bool catchExceptions); | 102 bool catchExceptions); |
| 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 v8OOMCallback(void* data); | 106 static void v8OOMCallback(void* data); |
| 107 | 107 |
| 108 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | |
| 109 void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 108 void handleProgramBreak(v8::Local<v8::Context> pausedContext, |
| 110 v8::Local<v8::Object> executionState, | 109 v8::Local<v8::Object> executionState, |
| 111 v8::Local<v8::Value> exception, | 110 v8::Local<v8::Value> exception, |
| 112 v8::Local<v8::Array> hitBreakpoints, | 111 v8::Local<v8::Array> hitBreakpoints, |
| 113 bool isPromiseRejection = false, | 112 bool isPromiseRejection = false, |
| 114 bool isUncaught = false); | 113 bool isUncaught = false); |
| 115 | 114 |
| 116 enum ScopeTargetKind { | 115 enum ScopeTargetKind { |
| 117 FUNCTION, | 116 FUNCTION, |
| 118 GENERATOR, | 117 GENERATOR, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; | 183 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
| 185 | 184 |
| 186 WasmTranslation m_wasmTranslation; | 185 WasmTranslation m_wasmTranslation; |
| 187 | 186 |
| 188 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 187 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
| 189 }; | 188 }; |
| 190 | 189 |
| 191 } // namespace v8_inspector | 190 } // namespace v8_inspector |
| 192 | 191 |
| 193 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 192 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |