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); | |
147 | |
148 WasmTranslation* wasmTranslation() { return &m_wasmTranslation; } | |
dgozman
2016/11/16 19:00:10
WasmTranslation should be a part of V8Debugger cla
Clemens Hammacher
2016/11/16 20:31:30
Done.
| |
145 | 149 |
146 v8::Isolate* isolate() { return m_isolate; } | 150 v8::Isolate* isolate() { return m_isolate; } |
147 | 151 |
148 private: | 152 private: |
149 void enableImpl(); | 153 void enableImpl(); |
150 | 154 |
151 SkipPauseRequest shouldSkipExceptionPause(JavaScriptCallFrame* topCallFrame); | 155 SkipPauseRequest shouldSkipExceptionPause(JavaScriptCallFrame* topCallFrame); |
152 SkipPauseRequest shouldSkipStepPause(JavaScriptCallFrame* topCallFrame); | 156 SkipPauseRequest shouldSkipStepPause(JavaScriptCallFrame* topCallFrame); |
153 | 157 |
154 void schedulePauseOnNextStatementIfSteppingInto(); | 158 void schedulePauseOnNextStatementIfSteppingInto(); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
208 | 212 |
209 int m_skippedStepFrameCount; | 213 int m_skippedStepFrameCount; |
210 int m_recursionLevelForStepOut; | 214 int m_recursionLevelForStepOut; |
211 int m_recursionLevelForStepFrame; | 215 int m_recursionLevelForStepFrame; |
212 bool m_skipAllPauses; | 216 bool m_skipAllPauses; |
213 | 217 |
214 std::unique_ptr<V8Regex> m_blackboxPattern; | 218 std::unique_ptr<V8Regex> m_blackboxPattern; |
215 protocol::HashMap<String16, std::vector<std::pair<int, int>>> | 219 protocol::HashMap<String16, std::vector<std::pair<int, int>>> |
216 m_blackboxedPositions; | 220 m_blackboxedPositions; |
217 | 221 |
222 WasmTranslation m_wasmTranslation; | |
223 | |
218 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); | 224 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); |
219 }; | 225 }; |
220 | 226 |
221 } // namespace v8_inspector | 227 } // namespace v8_inspector |
222 | 228 |
223 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 229 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
OLD | NEW |