| 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/inspector/Allocator.h" | 8 #include "src/inspector/Allocator.h" |
| 9 #include "src/inspector/JavaScriptCallFrame.h" | 9 #include "src/inspector/JavaScriptCallFrame.h" |
| 10 #include "src/inspector/V8DebuggerScript.h" | 10 #include "src/inspector/V8DebuggerScript.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 bool recurring); | 93 bool recurring); |
| 94 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring); | 94 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring); |
| 95 void asyncTaskCanceled(void* task); | 95 void asyncTaskCanceled(void* task); |
| 96 void asyncTaskStarted(void* task); | 96 void asyncTaskStarted(void* task); |
| 97 void asyncTaskFinished(void* task); | 97 void asyncTaskFinished(void* task); |
| 98 void allAsyncTasksCanceled(); | 98 void allAsyncTasksCanceled(); |
| 99 | 99 |
| 100 void muteScriptParsedEvents(); | 100 void muteScriptParsedEvents(); |
| 101 void unmuteScriptParsedEvents(); | 101 void unmuteScriptParsedEvents(); |
| 102 | 102 |
| 103 V8InspectorImpl* inspector() { return m_inspector; } |
| 104 |
| 103 private: | 105 private: |
| 104 void compileDebuggerScript(); | 106 void compileDebuggerScript(); |
| 105 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, | 107 v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, |
| 106 int argc, | 108 int argc, |
| 107 v8::Local<v8::Value> argv[]); | 109 v8::Local<v8::Value> argv[]); |
| 108 v8::Local<v8::Context> debuggerContext() const; | 110 v8::Local<v8::Context> debuggerContext() const; |
| 109 void clearBreakpoints(); | 111 void clearBreakpoints(); |
| 110 | 112 |
| 111 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 113 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 112 void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 114 void handleProgramBreak(v8::Local<v8::Context> pausedContext, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 protocol::HashSet<void*> m_recurringTasks; | 151 protocol::HashSet<void*> m_recurringTasks; |
| 150 int m_maxAsyncCallStackDepth; | 152 int m_maxAsyncCallStackDepth; |
| 151 std::vector<void*> m_currentTasks; | 153 std::vector<void*> m_currentTasks; |
| 152 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 154 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
| 153 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 155 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 } // namespace v8_inspector | 158 } // namespace v8_inspector |
| 157 | 159 |
| 158 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 160 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |