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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 */ | 54 */ |
55 // TODO(dcarney): data arg should be a MaybeLocal | 55 // TODO(dcarney): data arg should be a MaybeLocal |
56 MaybeLocal<Value> Call(Local<Context> context, v8::Local<v8::Function> fun, | 56 MaybeLocal<Value> Call(Local<Context> context, v8::Local<v8::Function> fun, |
57 Local<Value> data = Local<Value>()); | 57 Local<Value> data = Local<Value>()); |
58 | 58 |
59 /** | 59 /** |
60 * Enable/disable LiveEdit functionality for the given Isolate | 60 * Enable/disable LiveEdit functionality for the given Isolate |
61 * (default Isolate if not provided). V8 will abort if LiveEdit is | 61 * (default Isolate if not provided). V8 will abort if LiveEdit is |
62 * unexpectedly used. LiveEdit is enabled by default. | 62 * unexpectedly used. LiveEdit is enabled by default. |
63 */ | 63 */ |
64 void SetLiveEditEnabled(Isolate* isolate, bool enable); | 64 V8_EXPORT_PRIVATE void SetLiveEditEnabled(Isolate* isolate, bool enable); |
65 | 65 |
66 // Schedule a debugger break to happen when JavaScript code is run | 66 // Schedule a debugger break to happen when JavaScript code is run |
67 // in the given isolate. | 67 // in the given isolate. |
68 void DebugBreak(Isolate* isolate); | 68 void DebugBreak(Isolate* isolate); |
69 | 69 |
70 // Remove scheduled debugger break in given isolate if it has not | 70 // Remove scheduled debugger break in given isolate if it has not |
71 // happened yet. | 71 // happened yet. |
72 void CancelDebugBreak(Isolate* isolate); | 72 void CancelDebugBreak(Isolate* isolate); |
73 | 73 |
74 /** | 74 /** |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 ~Coverage(); | 255 ~Coverage(); |
256 | 256 |
257 private: | 257 private: |
258 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} | 258 explicit Coverage(i::Coverage* coverage) : coverage_(coverage) {} |
259 i::Coverage* coverage_; | 259 i::Coverage* coverage_; |
260 }; | 260 }; |
261 } // namespace debug | 261 } // namespace debug |
262 } // namespace v8 | 262 } // namespace v8 |
263 | 263 |
264 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ | 264 #endif // V8_DEBUG_DEBUG_INTERFACE_H_ |
OLD | NEW |