|
8 | 8 | #include "v8.h" // NOLINT(build/include) |
9 | 9 |
|
10 | 10 | /** |
11 | | - * Debugger support for the V8 JavaScript engine. |
| 11 | + * ATTENTION: The debugger API exposed by this file is deprecated and will be |
| 12 | + * removed by the end of 2017. Please use the V8 inspector declared |
| 13 | + * in include/v8-inspector.h instead. |
12 | 14 | */ |
13 | 15 | namespace v8 { |
14 | 16 |
|
@@ -140,21 +142,19 @@ class V8_EXPORT Debug { |
140 | 142 | */ |
141 | 143 | typedef void (*MessageHandler)(const Message& message); |
142 | 144 |
|
143 | | - /** |
144 | | - * This is now a no-op. |
145 | | - */ |
146 | | - typedef void (*DebugMessageDispatchHandler)(); |
147 | | - |
148 | | - static bool SetDebugEventListener(Isolate* isolate, EventCallback that, |
149 | | - Local<Value> data = Local<Value>()); |
| 145 | + V8_DEPRECATED("No longer supported", static bool SetDebugEventListener( |
| 146 | + Isolate* isolate, EventCallback that, |
| 147 | + Local<Value> data = Local<Value>())); |
150 | 148 |
|
151 | 149 | // Schedule a debugger break to happen when JavaScript code is run |
152 | 150 | // in the given isolate. |
153 | | - static void DebugBreak(Isolate* isolate); |
| 151 | + V8_DEPRECATED("No longer supported", |
| 152 | + static void DebugBreak(Isolate* isolate)); |
154 | 153 |
|
155 | 154 | // Remove scheduled debugger break in given isolate if it has not |
156 | 155 | // happened yet. |
157 | | - static void CancelDebugBreak(Isolate* isolate); |
| 156 | + V8_DEPRECATED("No longer supported", |
| 157 | + static void CancelDebugBreak(Isolate* isolate)); |
158 | 158 |
|
159 | 159 | // Check if a debugger break is scheduled in the given isolate. |
160 | 160 | V8_DEPRECATED("No longer supported", |
@@ -189,10 +189,10 @@ class V8_EXPORT Debug { |
189 | 189 | * } |
190 | 190 | * \endcode |
191 | 191 | */ |
192 | | - // TODO(dcarney): data arg should be a MaybeLocal |
193 | | - static MaybeLocal<Value> Call(Local<Context> context, |
194 | | - v8::Local<v8::Function> fun, |
195 | | - Local<Value> data = Local<Value>()); |
| 192 | + V8_DEPRECATED("No longer supported", |
| 193 | + static MaybeLocal<Value> Call( |
| 194 | + Local<Context> context, v8::Local<v8::Function> fun, |
| 195 | + Local<Value> data = Local<Value>())); |
196 | 196 |
|
197 | 197 | // This is now a no-op. |
198 | 198 | V8_DEPRECATED("No longer supported", |
@@ -221,23 +221,28 @@ class V8_EXPORT Debug { |
221 | 221 | * (default Isolate if not provided). V8 will abort if LiveEdit is |
222 | 222 | * unexpectedly used. LiveEdit is enabled by default. |
223 | 223 | */ |
224 | | - static void SetLiveEditEnabled(Isolate* isolate, bool enable); |
| 224 | + V8_DEPRECATED("No longer supported", |
| 225 | + static void SetLiveEditEnabled(Isolate* isolate, bool enable)); |
225 | 226 |
|
226 | 227 | /** |
227 | 228 | * Returns array of internal properties specific to the value type. Result has |
228 | 229 | * the following format: [<name>, <value>,...,<name>, <value>]. Result array |
229 | 230 | * will be allocated in the current context. |
230 | 231 | */ |
231 | | - static MaybeLocal<Array> GetInternalProperties(Isolate* isolate, |
232 | | - Local<Value> value); |
| 232 | + V8_DEPRECATED("No longer supported", |
| 233 | + static MaybeLocal<Array> GetInternalProperties( |
| 234 | + Isolate* isolate, Local<Value> value)); |
233 | 235 |
|
234 | 236 | /** |
235 | 237 | * Defines if the ES2015 tail call elimination feature is enabled or not. |
236 | 238 | * The change of this flag triggers deoptimization of all functions that |
237 | 239 | * contain calls at tail position. |
238 | 240 | */ |
239 | | - static bool IsTailCallEliminationEnabled(Isolate* isolate); |
240 | | - static void SetTailCallEliminationEnabled(Isolate* isolate, bool enabled); |
| 241 | + V8_DEPRECATED("No longer supported", |
| 242 | + static bool IsTailCallEliminationEnabled(Isolate* isolate)); |
| 243 | + V8_DEPRECATED("No longer supported", |
| 244 | + static void SetTailCallEliminationEnabled(Isolate* isolate, |
| 245 | + bool enabled)); |
241 | 246 | }; |
242 | 247 |
|
243 | 248 |
|
|
0 commit comments