| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 V8InspectorImpl* inspector() { return m_inspector; } | 92 V8InspectorImpl* inspector() { return m_inspector; } |
| 93 | 93 |
| 94 WasmTranslation* wasmTranslation() { return &m_wasmTranslation; } | 94 WasmTranslation* wasmTranslation() { return &m_wasmTranslation; } |
| 95 | 95 |
| 96 void setMaxAsyncTaskStacksForTest(int limit) { m_maxAsyncCallStacks = limit; } | 96 void setMaxAsyncTaskStacksForTest(int limit) { m_maxAsyncCallStacks = limit; } |
| 97 | 97 |
| 98 private: | 98 private: |
| 99 void compileDebuggerScript(); | 99 void compileDebuggerScript(); |
| 100 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, | 100 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, |
| 101 int argc, | 101 int argc, |
| 102 v8::Local<v8::Value> argv[]); | 102 v8::Local<v8::Value> argv[], |
| 103 bool catchExceptions); |
| 103 v8::Local<v8::Context> debuggerContext() const; | 104 v8::Local<v8::Context> debuggerContext() const; |
| 104 void clearBreakpoints(); | 105 void clearBreakpoints(); |
| 105 | 106 |
| 106 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 107 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 107 void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 108 void handleProgramBreak(v8::Local<v8::Context> pausedContext, |
| 108 v8::Local<v8::Object> executionState, | 109 v8::Local<v8::Object> executionState, |
| 109 v8::Local<v8::Value> exception, | 110 v8::Local<v8::Value> exception, |
| 110 v8::Local<v8::Array> hitBreakpoints, | 111 v8::Local<v8::Array> hitBreakpoints, |
| 111 bool isPromiseRejection = false, | 112 bool isPromiseRejection = false, |
| 112 bool isUncaught = false); | 113 bool isUncaught = false); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; | 165 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
| 165 | 166 |
| 166 WasmTranslation m_wasmTranslation; | 167 WasmTranslation m_wasmTranslation; |
| 167 | 168 |
| 168 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 169 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 } // namespace v8_inspector | 172 } // namespace v8_inspector |
| 172 | 173 |
| 173 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 174 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |