| 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_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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 virtual void PromiseEventOccurred(debug::PromiseDebugActionType type, int id, | 156 virtual void PromiseEventOccurred(debug::PromiseDebugActionType type, int id, |
| 157 int parent_id) {} | 157 int parent_id) {} |
| 158 virtual void ScriptCompiled(v8::Local<Script> script, | 158 virtual void ScriptCompiled(v8::Local<Script> script, |
| 159 bool has_compile_error) {} | 159 bool has_compile_error) {} |
| 160 virtual void BreakProgramRequested(v8::Local<v8::Context> paused_context, | 160 virtual void BreakProgramRequested(v8::Local<v8::Context> paused_context, |
| 161 v8::Local<v8::Object> exec_state, | 161 v8::Local<v8::Object> exec_state, |
| 162 v8::Local<v8::Value> break_points_hit) {} | 162 v8::Local<v8::Value> break_points_hit) {} |
| 163 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, | 163 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, |
| 164 v8::Local<v8::Object> exec_state, | 164 v8::Local<v8::Object> exec_state, |
| 165 v8::Local<v8::Value> exception, | 165 v8::Local<v8::Value> exception, |
| 166 bool is_promise_rejection, bool is_uncaught) {} | 166 v8::Local<v8::Value> promise, bool is_uncaught) { |
| 167 } |
| 167 virtual bool IsFunctionBlackboxed(v8::Local<debug::Script> script, | 168 virtual bool IsFunctionBlackboxed(v8::Local<debug::Script> script, |
| 168 const debug::Location& start, | 169 const debug::Location& start, |
| 169 const debug::Location& end) { | 170 const debug::Location& end) { |
| 170 return false; | 171 return false; |
| 171 } | 172 } |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); | 175 void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); |
| 175 | 176 |
| 176 void ResetBlackboxedStateCache(Isolate* isolate, | 177 void ResetBlackboxedStateCache(Isolate* isolate, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 192 debug::Location SuspendedLocation(); | 193 debug::Location SuspendedLocation(); |
| 193 bool IsSuspended(); | 194 bool IsSuspended(); |
| 194 | 195 |
| 195 static v8::Local<debug::GeneratorObject> Cast(v8::Local<v8::Value> value); | 196 static v8::Local<debug::GeneratorObject> Cast(v8::Local<v8::Value> value); |
| 196 }; | 197 }; |
| 197 | 198 |
| 198 } // namespace debug | 199 } // namespace debug |
| 199 } // namespace v8 | 200 } // namespace v8 |
| 200 | 201 |
| 201 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 202 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
| OLD | NEW |