OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 * execution e.g. details on stack frames. The following example show a | 221 * execution e.g. details on stack frames. The following example show a |
222 * JavaScript function which when passed to v8::Debug::Call will return the | 222 * JavaScript function which when passed to v8::Debug::Call will return the |
223 * current line of JavaScript execution. | 223 * current line of JavaScript execution. |
224 * | 224 * |
225 * \code | 225 * \code |
226 * function frame_source_line(exec_state) { | 226 * function frame_source_line(exec_state) { |
227 * return exec_state.frame(0).sourceLine(); | 227 * return exec_state.frame(0).sourceLine(); |
228 * } | 228 * } |
229 * \endcode | 229 * \endcode |
230 */ | 230 */ |
231 static Handle<Value> Call(v8::Handle<v8::Function> fun, | 231 static Local<Value> Call(v8::Handle<v8::Function> fun, |
232 Handle<Value> data = Handle<Value>()); | 232 Handle<Value> data = Handle<Value>()); |
233 | 233 |
| 234 /** |
| 235 * Returns a mirror object for the given object. |
| 236 */ |
| 237 static Local<Value> GetMirror(v8::Handle<v8::Value> obj); |
| 238 |
234 /** | 239 /** |
235 * Enable the V8 builtin debug agent. The debugger agent will listen on the | 240 * Enable the V8 builtin debug agent. The debugger agent will listen on the |
236 * supplied TCP/IP port for remote debugger connection. | 241 * supplied TCP/IP port for remote debugger connection. |
237 * \param name the name of the embedding application | 242 * \param name the name of the embedding application |
238 * \param port the TCP/IP port to listen on | 243 * \param port the TCP/IP port to listen on |
239 */ | 244 */ |
240 static bool EnableAgent(const char* name, int port); | 245 static bool EnableAgent(const char* name, int port); |
241 }; | 246 }; |
242 | 247 |
243 | 248 |
244 } // namespace v8 | 249 } // namespace v8 |
245 | 250 |
246 | 251 |
247 #undef EXPORT | 252 #undef EXPORT |
248 | 253 |
249 | 254 |
250 #endif // V8_V8_DEBUG_H_ | 255 #endif // V8_V8_DEBUG_H_ |
OLD | NEW |