Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: src/debug/debug-interface.h

Issue 2655253004: [inspector] introduced stepIntoAsync for chained callbacks (Closed)
Patch Set: fixed async/await and added tests Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/debug/debug.cc ('k') | src/inspector/js_protocol.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DEBUG_DEBUG_INTERFACE_H_ 5 #ifndef V8_DEBUG_DEBUG_INTERFACE_H_
6 #define V8_DEBUG_DEBUG_INTERFACE_H_ 6 #define V8_DEBUG_DEBUG_INTERFACE_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "include/v8-debug.h" 10 #include "include/v8-debug.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void SetBreakPointsActive(Isolate* isolate, bool is_active); 94 void SetBreakPointsActive(Isolate* isolate, bool is_active);
95 95
96 enum StepAction { 96 enum StepAction {
97 StepOut = 0, // Step out of the current function. 97 StepOut = 0, // Step out of the current function.
98 StepNext = 1, // Step to the next statement in the current function. 98 StepNext = 1, // Step to the next statement in the current function.
99 StepIn = 2 // Step into new functions invoked or the next statement 99 StepIn = 2 // Step into new functions invoked or the next statement
100 // in the current function. 100 // in the current function.
101 }; 101 };
102 102
103 void PrepareStep(Isolate* isolate, StepAction action); 103 void PrepareStep(Isolate* isolate, StepAction action);
104 void ClearStepping(Isolate* isolate);
104 105
105 bool HasNonBlackboxedFrameOnStack(Isolate* isolate); 106 bool HasNonBlackboxedFrameOnStack(Isolate* isolate);
106 107
107 /** 108 /**
108 * Out-of-memory callback function. 109 * Out-of-memory callback function.
109 * The function is invoked when the heap size is close to the hard limit. 110 * The function is invoked when the heap size is close to the hard limit.
110 * 111 *
111 * \param data the parameter provided during callback installation. 112 * \param data the parameter provided during callback installation.
112 */ 113 */
113 typedef void (*OutOfMemoryCallback)(void* data); 114 typedef void (*OutOfMemoryCallback)(void* data);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 }; 157 };
157 158
158 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); 159 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts);
159 160
160 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, 161 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate,
161 Local<String> source); 162 Local<String> source);
162 163
163 class DebugDelegate { 164 class DebugDelegate {
164 public: 165 public:
165 virtual ~DebugDelegate() {} 166 virtual ~DebugDelegate() {}
166 virtual void PromiseEventOccurred(debug::PromiseDebugActionType type, int id, 167 virtual void PromiseEventOccurred(v8::Local<v8::Context> context,
167 int parent_id) {} 168 debug::PromiseDebugActionType type, int id,
169 int parent_id, bool breakable) {}
168 virtual void ScriptCompiled(v8::Local<Script> script, 170 virtual void ScriptCompiled(v8::Local<Script> script,
169 bool has_compile_error) {} 171 bool has_compile_error) {}
170 virtual void BreakProgramRequested(v8::Local<v8::Context> paused_context, 172 virtual void BreakProgramRequested(v8::Local<v8::Context> paused_context,
171 v8::Local<v8::Object> exec_state, 173 v8::Local<v8::Object> exec_state,
172 v8::Local<v8::Value> break_points_hit) {} 174 v8::Local<v8::Value> break_points_hit) {}
173 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, 175 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context,
174 v8::Local<v8::Object> exec_state, 176 v8::Local<v8::Object> exec_state,
175 v8::Local<v8::Value> exception, 177 v8::Local<v8::Value> exception,
176 v8::Local<v8::Value> promise, bool is_uncaught) { 178 v8::Local<v8::Value> promise, bool is_uncaught) {
177 } 179 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 ~Coverage(); 244 ~Coverage();
243 245
244 private: 246 private:
245 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} 247 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {}
246 i::Coverage* coverage_; 248 i::Coverage* coverage_;
247 }; 249 };
248 } // namespace debug 250 } // namespace debug
249 } // namespace v8 251 } // namespace v8
250 252
251 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ 253 #endif // V8_DEBUG_DEBUG_INTERFACE_H_
OLDNEW
« no previous file with comments | « src/debug/debug.cc ('k') | src/inspector/js_protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698