| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); | 145 void GetLoadedScripts(Isolate* isolate, PersistentValueVector<Script>& scripts); |
| 146 | 146 |
| 147 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, | 147 MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate, |
| 148 Local<String> source); | 148 Local<String> source); |
| 149 | 149 |
| 150 class DebugDelegate { | 150 class DebugDelegate { |
| 151 public: | 151 public: |
| 152 virtual ~DebugDelegate() {} | 152 virtual ~DebugDelegate() {} |
| 153 virtual void PromiseEventOccurred(debug::PromiseDebugActionType type, | 153 virtual void PromiseEventOccurred(debug::PromiseDebugActionType type, int id, |
| 154 int id) {} | 154 int parent_id) {} |
| 155 virtual void ScriptCompiled(v8::Local<Script> script, | 155 virtual void ScriptCompiled(v8::Local<Script> script, |
| 156 bool has_compile_error) {} | 156 bool has_compile_error) {} |
| 157 virtual void BreakProgramRequested(v8::Local<v8::Context> paused_context, | 157 virtual void BreakProgramRequested(v8::Local<v8::Context> paused_context, |
| 158 v8::Local<v8::Object> exec_state, | 158 v8::Local<v8::Object> exec_state, |
| 159 v8::Local<v8::Value> break_points_hit) {} | 159 v8::Local<v8::Value> break_points_hit) {} |
| 160 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context, | 160 virtual void ExceptionThrown(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> exception, | 162 v8::Local<v8::Value> exception, |
| 163 bool is_promise_rejection, bool is_uncaught) {} | 163 bool is_promise_rejection, bool is_uncaught) {} |
| 164 virtual bool IsFunctionBlackboxed(v8::Local<debug::Script> script, | 164 virtual bool IsFunctionBlackboxed(v8::Local<debug::Script> script, |
| 165 const debug::Location& start, | 165 const debug::Location& start, |
| 166 const debug::Location& end) { | 166 const debug::Location& end) { |
| 167 return false; | 167 return false; |
| 168 } | 168 } |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); | 171 void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); |
| 172 | 172 |
| 173 void ResetBlackboxedStateCache(Isolate* isolate, | 173 void ResetBlackboxedStateCache(Isolate* isolate, |
| 174 v8::Local<debug::Script> script); | 174 v8::Local<debug::Script> script); |
| 175 | 175 |
| 176 } // namespace debug | 176 } // namespace debug |
| 177 } // namespace v8 | 177 } // namespace v8 |
| 178 | 178 |
| 179 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 179 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
| OLD | NEW |