OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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_V8_DEBUG_H_ | 5 #ifndef V8_V8_DEBUG_H_ |
6 #define V8_V8_DEBUG_H_ | 6 #define V8_V8_DEBUG_H_ |
7 | 7 |
8 #include "v8.h" | 8 #include "v8.h" |
9 | 9 |
10 /** | 10 /** |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 * be the debugger context global object, however this is a subject to change. | 195 * be the debugger context global object, however this is a subject to change. |
196 * The following example shows a JavaScript function which when passed to | 196 * The following example shows a JavaScript function which when passed to |
197 * v8::Debug::Call will return the current line of JavaScript execution. | 197 * v8::Debug::Call will return the current line of JavaScript execution. |
198 * | 198 * |
199 * \code | 199 * \code |
200 * function frame_source_line(exec_state) { | 200 * function frame_source_line(exec_state) { |
201 * return exec_state.frame(0).sourceLine(); | 201 * return exec_state.frame(0).sourceLine(); |
202 * } | 202 * } |
203 * \endcode | 203 * \endcode |
204 */ | 204 */ |
205 static Local<Value> Call(v8::Handle<v8::Function> fun, | 205 static V8_DEPRECATE_SOON( |
206 Handle<Value> data = Handle<Value>()); | 206 "Use maybe version", |
| 207 Local<Value> Call(v8::Handle<v8::Function> fun, |
| 208 Handle<Value> data = Handle<Value>())); |
| 209 // TODO(dcarney): data arg should be a MaybeLocal |
| 210 static MaybeLocal<Value> Call(Local<Context> context, |
| 211 v8::Handle<v8::Function> fun, |
| 212 Handle<Value> data = Handle<Value>()); |
207 | 213 |
208 /** | 214 /** |
209 * Returns a mirror object for the given object. | 215 * Returns a mirror object for the given object. |
210 */ | 216 */ |
211 static Local<Value> GetMirror(v8::Handle<v8::Value> obj); | 217 static V8_DEPRECATE_SOON("Use maybe version", |
| 218 Local<Value> GetMirror(v8::Handle<v8::Value> obj)); |
| 219 static MaybeLocal<Value> GetMirror(Local<Context> context, |
| 220 v8::Handle<v8::Value> obj); |
212 | 221 |
213 /** | 222 /** |
214 * Makes V8 process all pending debug messages. | 223 * Makes V8 process all pending debug messages. |
215 * | 224 * |
216 * From V8 point of view all debug messages come asynchronously (e.g. from | 225 * From V8 point of view all debug messages come asynchronously (e.g. from |
217 * remote debugger) but they all must be handled synchronously: V8 cannot | 226 * remote debugger) but they all must be handled synchronously: V8 cannot |
218 * do 2 things at one time so normal script execution must be interrupted | 227 * do 2 things at one time so normal script execution must be interrupted |
219 * for a while. | 228 * for a while. |
220 * | 229 * |
221 * Generally when message arrives V8 may be in one of 3 states: | 230 * Generally when message arrives V8 may be in one of 3 states: |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 }; | 270 }; |
262 | 271 |
263 | 272 |
264 } // namespace v8 | 273 } // namespace v8 |
265 | 274 |
266 | 275 |
267 #undef EXPORT | 276 #undef EXPORT |
268 | 277 |
269 | 278 |
270 #endif // V8_V8_DEBUG_H_ | 279 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |