| 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" | 
|   11 #include "src/debug/debug-interface.h" |   11 #include "src/debug/debug-interface.h" | 
|   12 #include "src/inspector/java-script-call-frame.h" |   12 #include "src/inspector/java-script-call-frame.h" | 
|   13 #include "src/inspector/protocol/Forward.h" |   13 #include "src/inspector/protocol/Forward.h" | 
|   14 #include "src/inspector/protocol/Runtime.h" |   14 #include "src/inspector/protocol/Runtime.h" | 
|   15 #include "src/inspector/v8-debugger-script.h" |   15 #include "src/inspector/v8-debugger-script.h" | 
 |   16 #include "src/inspector/wasm-translation.h" | 
|   16  |   17  | 
|   17 #include "include/v8-inspector.h" |   18 #include "include/v8-inspector.h" | 
|   18  |   19  | 
|   19 namespace v8_inspector { |   20 namespace v8_inspector { | 
|   20  |   21  | 
|   21 struct ScriptBreakpoint; |   22 struct ScriptBreakpoint; | 
|   22 class V8DebuggerAgentImpl; |   23 class V8DebuggerAgentImpl; | 
|   23 class V8InspectorImpl; |   24 class V8InspectorImpl; | 
|   24 class V8StackTraceImpl; |   25 class V8StackTraceImpl; | 
|   25  |   26  | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   87   void asyncTaskCanceled(void* task); |   88   void asyncTaskCanceled(void* task); | 
|   88   void asyncTaskStarted(void* task); |   89   void asyncTaskStarted(void* task); | 
|   89   void asyncTaskFinished(void* task); |   90   void asyncTaskFinished(void* task); | 
|   90   void allAsyncTasksCanceled(); |   91   void allAsyncTasksCanceled(); | 
|   91  |   92  | 
|   92   void muteScriptParsedEvents(); |   93   void muteScriptParsedEvents(); | 
|   93   void unmuteScriptParsedEvents(); |   94   void unmuteScriptParsedEvents(); | 
|   94  |   95  | 
|   95   V8InspectorImpl* inspector() { return m_inspector; } |   96   V8InspectorImpl* inspector() { return m_inspector; } | 
|   96  |   97  | 
 |   98   WasmTranslation* wasmTranslation() { return &m_wasmTranslation; } | 
 |   99  | 
|   97  private: |  100  private: | 
|   98   void compileDebuggerScript(); |  101   void compileDebuggerScript(); | 
|   99   v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, |  102   v8::MaybeLocal<v8::Value> callDebuggerMethod(const char* functionName, | 
|  100                                                int argc, |  103                                                int argc, | 
|  101                                                v8::Local<v8::Value> argv[]); |  104                                                v8::Local<v8::Value> argv[]); | 
|  102   v8::Local<v8::Context> debuggerContext() const; |  105   v8::Local<v8::Context> debuggerContext() const; | 
|  103   void clearBreakpoints(); |  106   void clearBreakpoints(); | 
|  104  |  107  | 
|  105   static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); |  108   static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 
|  106   void handleProgramBreak(v8::Local<v8::Context> pausedContext, |  109   void handleProgramBreak(v8::Local<v8::Context> pausedContext, | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  142       protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; |  145       protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; | 
|  143   AsyncTaskToStackTrace m_asyncTaskStacks; |  146   AsyncTaskToStackTrace m_asyncTaskStacks; | 
|  144   protocol::HashSet<void*> m_recurringTasks; |  147   protocol::HashSet<void*> m_recurringTasks; | 
|  145   int m_maxAsyncCallStackDepth; |  148   int m_maxAsyncCallStackDepth; | 
|  146   std::vector<void*> m_currentTasks; |  149   std::vector<void*> m_currentTasks; | 
|  147   std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |  150   std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 
|  148   protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |  151   protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 
|  149  |  152  | 
|  150   v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; |  153   v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; | 
|  151  |  154  | 
 |  155   WasmTranslation m_wasmTranslation; | 
 |  156  | 
|  152   DISALLOW_COPY_AND_ASSIGN(V8Debugger); |  157   DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 
|  153 }; |  158 }; | 
|  154  |  159  | 
|  155 }  // namespace v8_inspector |  160 }  // namespace v8_inspector | 
|  156  |  161  | 
|  157 #endif  // V8_INSPECTOR_V8DEBUGGER_H_ |  162 #endif  // V8_INSPECTOR_V8DEBUGGER_H_ | 
| OLD | NEW |