| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void ChangeBreakOnException(Isolate* isolate, ExceptionBreakState state); | 84 void ChangeBreakOnException(Isolate* isolate, ExceptionBreakState state); |
| 85 | 85 |
| 86 enum StepAction { | 86 enum StepAction { |
| 87 StepOut = 0, // Step out of the current function. | 87 StepOut = 0, // Step out of the current function. |
| 88 StepNext = 1, // Step to the next statement in the current function. | 88 StepNext = 1, // Step to the next statement in the current function. |
| 89 StepIn = 2 // Step into new functions invoked or the next statement | 89 StepIn = 2 // Step into new functions invoked or the next statement |
| 90 // in the current function. | 90 // in the current function. |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 void PrepareStep(Isolate* isolate, StepAction action); | 93 void PrepareStep(Isolate* isolate, StepAction action); |
| 94 void ClearStepping(Isolate* isolate); |
| 94 | 95 |
| 95 bool HasNonBlackboxedFrameOnStack(Isolate* isolate); | 96 bool HasNonBlackboxedFrameOnStack(Isolate* isolate); |
| 96 | 97 |
| 97 /** | 98 /** |
| 98 * Out-of-memory callback function. | 99 * Out-of-memory callback function. |
| 99 * The function is invoked when the heap size is close to the hard limit. | 100 * The function is invoked when the heap size is close to the hard limit. |
| 100 * | 101 * |
| 101 * \param data the parameter provided during callback installation. | 102 * \param data the parameter provided during callback installation. |
| 102 */ | 103 */ |
| 103 typedef void (*OutOfMemoryCallback)(void* data); | 104 typedef void (*OutOfMemoryCallback)(void* data); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 173 |
| 173 void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); | 174 void SetDebugDelegate(Isolate* isolate, DebugDelegate* listener); |
| 174 | 175 |
| 175 void ResetBlackboxedStateCache(Isolate* isolate, | 176 void ResetBlackboxedStateCache(Isolate* isolate, |
| 176 v8::Local<debug::Script> script); | 177 v8::Local<debug::Script> script); |
| 177 | 178 |
| 178 } // namespace debug | 179 } // namespace debug |
| 179 } // namespace v8 | 180 } // namespace v8 |
| 180 | 181 |
| 181 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 182 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
| OLD | NEW |