Chromium Code Reviews| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 314 * The following example shows a JavaScript function which when passed to | 314 * The following example shows a JavaScript function which when passed to |
| 315 * v8::Debug::Call will return the current line of JavaScript execution. | 315 * v8::Debug::Call will return the current line of JavaScript execution. |
| 316 * | 316 * |
| 317 * \code | 317 * \code |
| 318 * function frame_source_line(exec_state) { | 318 * function frame_source_line(exec_state) { |
| 319 * return exec_state.frame(0).sourceLine(); | 319 * return exec_state.frame(0).sourceLine(); |
| 320 * } | 320 * } |
| 321 * \endcode | 321 * \endcode |
| 322 */ | 322 */ |
| 323 static Local<Value> Call(v8::Handle<v8::Function> fun, | 323 static Local<Value> Call(v8::Handle<v8::Function> fun, |
| 324 Handle<Value> data = Handle<Value>()); | 324 Handle<Value> data = Handle<Value>()); |
|
Erik Corry
2012/08/29 11:00:42
Wrong indentation.
| |
| 325 | 325 |
| 326 /** | 326 /** |
| 327 * Returns a mirror object for the given object. | 327 * Returns a mirror object for the given object. |
| 328 */ | 328 */ |
| 329 static Local<Value> GetMirror(v8::Handle<v8::Value> obj); | 329 static Local<Value> GetMirror(v8::Handle<v8::Value> obj); |
| 330 | 330 |
| 331 /** | 331 /** |
| 332 * Enable the V8 builtin debug agent. The debugger agent will listen on the | 332 * Enable the V8 builtin debug agent. The debugger agent will listen on the |
| 333 * supplied TCP/IP port for remote debugger connection. | 333 * supplied TCP/IP port for remote debugger connection. |
| 334 * \param name the name of the embedding application | 334 * \param name the name of the embedding application |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 381 */ | 381 */ |
| 382 static void ProcessDebugMessages(); | 382 static void ProcessDebugMessages(); |
| 383 | 383 |
| 384 /** | 384 /** |
| 385 * Debugger is running in its own context which is entered while debugger | 385 * Debugger is running in its own context which is entered while debugger |
| 386 * messages are being dispatched. This is an explicit getter for this | 386 * messages are being dispatched. This is an explicit getter for this |
| 387 * debugger context. Note that the content of the debugger context is subject | 387 * debugger context. Note that the content of the debugger context is subject |
| 388 * to change. | 388 * to change. |
| 389 */ | 389 */ |
| 390 static Local<Context> GetDebugContext(); | 390 static Local<Context> GetDebugContext(); |
| 391 | |
| 392 | |
| 393 /** | |
| 394 * Optionally enable/disable LiveEdit functionality for the given Isolate | |
|
Erik Corry
2012/08/29 11:00:42
You don't need the word "Optionally" here.
| |
| 395 * (default Isolate if not provided). V8 will abort if LiveEdit is | |
| 396 * unexpectedly used. LiveEdit is enabled by default. | |
| 397 */ | |
| 398 static void SetLiveEditEnabled(bool enable, Isolate* isolate = NULL); | |
| 391 }; | 399 }; |
| 392 | 400 |
| 393 | 401 |
| 394 } // namespace v8 | 402 } // namespace v8 |
| 395 | 403 |
| 396 | 404 |
| 397 #undef EXPORT | 405 #undef EXPORT |
| 398 | 406 |
| 399 | 407 |
| 400 #endif // V8_V8_DEBUG_H_ | 408 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |