| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 int argc, | 100 int argc, |
| 101 v8::Local<v8::Value> argv[]); | 101 v8::Local<v8::Value> argv[]); |
| 102 v8::Local<v8::Context> debuggerContext() const; | 102 v8::Local<v8::Context> debuggerContext() const; |
| 103 void clearBreakpoints(); | 103 void clearBreakpoints(); |
| 104 | 104 |
| 105 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 105 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 106 void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 106 void handleProgramBreak(v8::Local<v8::Context> pausedContext, |
| 107 v8::Local<v8::Object> executionState, | 107 v8::Local<v8::Object> executionState, |
| 108 v8::Local<v8::Value> exception, | 108 v8::Local<v8::Value> exception, |
| 109 v8::Local<v8::Array> hitBreakpoints, | 109 v8::Local<v8::Array> hitBreakpoints, |
| 110 bool isPromiseRejection = false); | 110 bool isPromiseRejection = false, |
| 111 bool isUncaught = false); |
| 111 static void v8DebugEventCallback(const v8::DebugInterface::EventDetails&); | 112 static void v8DebugEventCallback(const v8::DebugInterface::EventDetails&); |
| 112 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, | 113 v8::Local<v8::Value> callInternalGetterFunction(v8::Local<v8::Object>, |
| 113 const char* functionName); | 114 const char* functionName); |
| 114 void handleV8DebugEvent(const v8::DebugInterface::EventDetails&); | 115 void handleV8DebugEvent(const v8::DebugInterface::EventDetails&); |
| 115 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, | 116 void handleV8AsyncTaskEvent(v8::Local<v8::Context>, |
| 116 v8::Local<v8::Object> executionState, | 117 v8::Local<v8::Object> executionState, |
| 117 v8::Local<v8::Object> eventData); | 118 v8::Local<v8::Object> eventData); |
| 118 | 119 |
| 119 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, | 120 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, |
| 120 v8::Local<v8::Object>); | 121 v8::Local<v8::Object>); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 147 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 148 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
| 148 | 149 |
| 149 v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; | 150 v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; |
| 150 | 151 |
| 151 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 152 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 } // namespace v8_inspector | 155 } // namespace v8_inspector |
| 155 | 156 |
| 156 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 157 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |