| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 enum StepAction { | 97 enum StepAction { |
| 98 StepOut = 0, // Step out of the current function. | 98 StepOut = 0, // Step out of the current function. |
| 99 StepNext = 1, // Step to the next statement in the current function. | 99 StepNext = 1, // Step to the next statement in the current function. |
| 100 StepIn = 2 // Step into new functions invoked or the next statement | 100 StepIn = 2 // Step into new functions invoked or the next statement |
| 101 // in the current function. | 101 // in the current function. |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 void PrepareStep(Isolate* isolate, StepAction action); | 104 void PrepareStep(Isolate* isolate, StepAction action); |
| 105 void ClearStepping(Isolate* isolate); | 105 void ClearStepping(Isolate* isolate); |
| 106 void BreakRightNow(Isolate* isolate); |
| 106 | 107 |
| 107 bool AllFramesOnStackAreBlackboxed(Isolate* isolate); | 108 bool AllFramesOnStackAreBlackboxed(Isolate* isolate); |
| 108 | 109 |
| 109 /** | 110 /** |
| 110 * Out-of-memory callback function. | 111 * Out-of-memory callback function. |
| 111 * The function is invoked when the heap size is close to the hard limit. | 112 * The function is invoked when the heap size is close to the hard limit. |
| 112 * | 113 * |
| 113 * \param data the parameter provided during callback installation. | 114 * \param data the parameter provided during callback installation. |
| 114 */ | 115 */ |
| 115 typedef void (*OutOfMemoryCallback)(void* data); | 116 typedef void (*OutOfMemoryCallback)(void* data); |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 ~Coverage(); | 256 ~Coverage(); |
| 256 | 257 |
| 257 private: | 258 private: |
| 258 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} | 259 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} |
| 259 i::Coverage* coverage_; | 260 i::Coverage* coverage_; |
| 260 }; | 261 }; |
| 261 } // namespace debug | 262 } // namespace debug |
| 262 } // namespace v8 | 263 } // namespace v8 |
| 263 | 264 |
| 264 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 265 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
| OLD | NEW |