Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_V8DEBUGGERAGENTIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
| 6 #define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 6 #define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_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/inspector/java-script-call-frame.h" | 11 #include "src/inspector/java-script-call-frame.h" |
| 12 #include "src/inspector/protocol/Debugger.h" | 12 #include "src/inspector/protocol/Debugger.h" |
| 13 #include "src/inspector/protocol/Forward.h" | 13 #include "src/inspector/protocol/Forward.h" |
| 14 #include "src/inspector/wasm-translation.h" | |
| 14 | 15 |
| 15 namespace v8_inspector { | 16 namespace v8_inspector { |
| 16 | 17 |
| 17 struct ScriptBreakpoint; | 18 struct ScriptBreakpoint; |
| 18 class JavaScriptCallFrame; | 19 class JavaScriptCallFrame; |
| 19 class PromiseTracker; | 20 class PromiseTracker; |
| 20 class V8Debugger; | 21 class V8Debugger; |
| 21 class V8DebuggerScript; | 22 class V8DebuggerScript; |
| 22 class V8InspectorImpl; | 23 class V8InspectorImpl; |
| 23 class V8InspectorSessionImpl; | 24 class V8InspectorSessionImpl; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 | 136 |
| 136 // Interface for V8InspectorImpl | 137 // Interface for V8InspectorImpl |
| 137 SkipPauseRequest didPause(v8::Local<v8::Context>, | 138 SkipPauseRequest didPause(v8::Local<v8::Context>, |
| 138 v8::Local<v8::Value> exception, | 139 v8::Local<v8::Value> exception, |
| 139 const std::vector<String16>& hitBreakpoints, | 140 const std::vector<String16>& hitBreakpoints, |
| 140 bool isPromiseRejection, bool isUncaught); | 141 bool isPromiseRejection, bool isUncaught); |
| 141 void didContinue(); | 142 void didContinue(); |
| 142 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); | 143 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); |
| 143 void willExecuteScript(int scriptId); | 144 void willExecuteScript(int scriptId); |
| 144 void didExecuteScript(); | 145 void didExecuteScript(); |
| 146 void newWasmScript(v8::Local<v8::Object> scriptWrapper); | |
|
kozy
2016/11/16 16:44:53
I prefer to expose WasmTranslation* wasmTranslatio
Clemens Hammacher
2016/11/16 16:57:31
Done.
| |
| 147 | |
| 148 void translateWasmScriptLocation(String16* scriptId, int* lineNumber, | |
| 149 int* columnNumber); | |
| 145 | 150 |
| 146 v8::Isolate* isolate() { return m_isolate; } | 151 v8::Isolate* isolate() { return m_isolate; } |
| 147 | 152 |
| 148 private: | 153 private: |
| 149 void enableImpl(); | 154 void enableImpl(); |
| 150 | 155 |
| 151 SkipPauseRequest shouldSkipExceptionPause(JavaScriptCallFrame* topCallFrame); | 156 SkipPauseRequest shouldSkipExceptionPause(JavaScriptCallFrame* topCallFrame); |
| 152 SkipPauseRequest shouldSkipStepPause(JavaScriptCallFrame* topCallFrame); | 157 SkipPauseRequest shouldSkipStepPause(JavaScriptCallFrame* topCallFrame); |
| 153 | 158 |
| 154 void schedulePauseOnNextStatementIfSteppingInto(); | 159 void schedulePauseOnNextStatementIfSteppingInto(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 208 | 213 |
| 209 int m_skippedStepFrameCount; | 214 int m_skippedStepFrameCount; |
| 210 int m_recursionLevelForStepOut; | 215 int m_recursionLevelForStepOut; |
| 211 int m_recursionLevelForStepFrame; | 216 int m_recursionLevelForStepFrame; |
| 212 bool m_skipAllPauses; | 217 bool m_skipAllPauses; |
| 213 | 218 |
| 214 std::unique_ptr<V8Regex> m_blackboxPattern; | 219 std::unique_ptr<V8Regex> m_blackboxPattern; |
| 215 protocol::HashMap<String16, std::vector<std::pair<int, int>>> | 220 protocol::HashMap<String16, std::vector<std::pair<int, int>>> |
| 216 m_blackboxedPositions; | 221 m_blackboxedPositions; |
| 217 | 222 |
| 223 WasmTranslation m_wasmTranslation; | |
| 224 | |
| 225 friend class WasmTranslation; | |
|
kozy
2016/11/16 16:44:53
Why WasmTranslation is friend? It looks like WasmT
Clemens Hammacher
2016/11/16 16:57:31
Good catch! It's not needed any more, I removed it
| |
| 226 | |
| 218 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); | 227 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); |
| 219 }; | 228 }; |
| 220 | 229 |
| 221 } // namespace v8_inspector | 230 } // namespace v8_inspector |
| 222 | 231 |
| 223 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 232 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
| OLD | NEW |