| 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 "src/base/macros.h" | 8 #include "src/base/macros.h" |
| 9 #include "src/inspector/java-script-call-frame.h" | 9 #include "src/inspector/java-script-call-frame.h" |
| 10 #include "src/inspector/protocol/Forward.h" | 10 #include "src/inspector/protocol/Forward.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 v8::Local<v8::Object> eventData); | 125 v8::Local<v8::Object> eventData); |
| 126 | 126 |
| 127 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, | 127 v8::Local<v8::Value> collectionEntries(v8::Local<v8::Context>, |
| 128 v8::Local<v8::Object>); | 128 v8::Local<v8::Object>); |
| 129 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, | 129 v8::Local<v8::Value> generatorObjectLocation(v8::Local<v8::Context>, |
| 130 v8::Local<v8::Object>); | 130 v8::Local<v8::Object>); |
| 131 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, | 131 v8::Local<v8::Value> functionLocation(v8::Local<v8::Context>, |
| 132 v8::Local<v8::Function>); | 132 v8::Local<v8::Function>); |
| 133 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Context>, | 133 v8::MaybeLocal<v8::Value> functionScopes(v8::Local<v8::Context>, |
| 134 v8::Local<v8::Function>); | 134 v8::Local<v8::Function>); |
| 135 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring, |
| 136 bool skipInitialFrame); |
| 135 | 137 |
| 136 v8::Isolate* m_isolate; | 138 v8::Isolate* m_isolate; |
| 137 V8InspectorImpl* m_inspector; | 139 V8InspectorImpl* m_inspector; |
| 138 int m_lastContextId; | 140 int m_lastContextId; |
| 139 int m_enableCount; | 141 int m_enableCount; |
| 140 bool m_breakpointsActivated; | 142 bool m_breakpointsActivated; |
| 141 v8::Global<v8::Object> m_debuggerScript; | 143 v8::Global<v8::Object> m_debuggerScript; |
| 142 v8::Global<v8::Context> m_debuggerContext; | 144 v8::Global<v8::Context> m_debuggerContext; |
| 143 v8::Local<v8::Object> m_executionState; | 145 v8::Local<v8::Object> m_executionState; |
| 144 v8::Local<v8::Context> m_pausedContext; | 146 v8::Local<v8::Context> m_pausedContext; |
| 145 bool m_runningNestedMessageLoop; | 147 bool m_runningNestedMessageLoop; |
| 146 int m_ignoreScriptParsedEventsCounter; | 148 int m_ignoreScriptParsedEventsCounter; |
| 147 | 149 |
| 148 using AsyncTaskToStackTrace = | 150 using AsyncTaskToStackTrace = |
| 149 protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; | 151 protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; |
| 150 AsyncTaskToStackTrace m_asyncTaskStacks; | 152 AsyncTaskToStackTrace m_asyncTaskStacks; |
| 151 protocol::HashSet<void*> m_recurringTasks; | 153 protocol::HashSet<void*> m_recurringTasks; |
| 152 int m_maxAsyncCallStackDepth; | 154 int m_maxAsyncCallStackDepth; |
| 153 std::vector<void*> m_currentTasks; | 155 std::vector<void*> m_currentTasks; |
| 154 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 156 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
| 155 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 157 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
| 156 }; | 158 }; |
| 157 | 159 |
| 158 } // namespace v8_inspector | 160 } // namespace v8_inspector |
| 159 | 161 |
| 160 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 162 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |