v8-debug.h | v8-debug.h | |||
---|---|---|---|---|
skipping to change at line 186 | skipping to change at line 186 | |||
* A MessageHandler does not take posession of the message data, | * A MessageHandler does not take posession of the message data, | |||
* and must not rely on the data persisting after the handler returns. | * and must not rely on the data persisting after the handler returns. | |||
*/ | */ | |||
typedef void (*MessageHandler2)(const Message& message); | typedef void (*MessageHandler2)(const Message& message); | |||
/** | /** | |||
* Debug host dispatch callback function. | * Debug host dispatch callback function. | |||
*/ | */ | |||
typedef void (*HostDispatchHandler)(); | typedef void (*HostDispatchHandler)(); | |||
/** | ||||
* Callback function for the host to ensure debug messages are processed. | ||||
*/ | ||||
typedef void (*DebugMessageDispatchHandler)(); | ||||
// Set a C debug event listener. | // Set a C debug event listener. | |||
static bool SetDebugEventListener(EventCallback that, | static bool SetDebugEventListener(EventCallback that, | |||
Handle<Value> data = Handle<Value>()); | Handle<Value> data = Handle<Value>()); | |||
// Set a JavaScript debug event listener. | // Set a JavaScript debug event listener. | |||
static bool SetDebugEventListener(v8::Handle<v8::Object> that, | static bool SetDebugEventListener(v8::Handle<v8::Object> that, | |||
Handle<Value> data = Handle<Value>()); | Handle<Value> data = Handle<Value>()); | |||
// Break execution of JavaScript. | // Break execution of JavaScript. | |||
static void DebugBreak(); | static void DebugBreak(); | |||
skipping to change at line 209 | skipping to change at line 214 | |||
static void SetMessageHandler(MessageHandler handler, | static void SetMessageHandler(MessageHandler handler, | |||
bool message_handler_thread = false); | bool message_handler_thread = false); | |||
static void SetMessageHandler2(MessageHandler2 handler); | static void SetMessageHandler2(MessageHandler2 handler); | |||
static void SendCommand(const uint16_t* command, int length, | static void SendCommand(const uint16_t* command, int length, | |||
ClientData* client_data = NULL); | ClientData* client_data = NULL); | |||
// Dispatch interface. | // Dispatch interface. | |||
static void SetHostDispatchHandler(HostDispatchHandler handler, | static void SetHostDispatchHandler(HostDispatchHandler handler, | |||
int period = 100); | int period = 100); | |||
/** | ||||
* Register a callback function to be called when a debug message has bee | ||||
n | ||||
* received and is ready to be processed. For the debug messages to be | ||||
* processed V8 needs to be entered, and in certain embedding scenarios t | ||||
his | ||||
* callback can be used to make sure V8 is entered for the debug message | ||||
to | ||||
* be processed. Note that debug messages will only be processed if there | ||||
is | ||||
* a V8 break. This can happen automatically by using the option | ||||
* --debugger-auto-break. | ||||
*/ | ||||
static void SetDebugMessageDispatchHandler( | ||||
DebugMessageDispatchHandler handler); | ||||
/** | /** | |||
* Run a JavaScript function in the debugger. | * Run a JavaScript function in the debugger. | |||
* \param fun the function to call | * \param fun the function to call | |||
* \param data passed as second argument to the function | * \param data passed as second argument to the function | |||
* With this call the debugger is entered and the function specified is ca lled | * With this call the debugger is entered and the function specified is ca lled | |||
* with the execution state as the first argument. This makes it possible to | * with the execution state as the first argument. This makes it possible to | |||
* get access to information otherwise not available during normal JavaScr ipt | * get access to information otherwise not available during normal JavaScr ipt | |||
* execution e.g. details on stack frames. The following example show a | * execution e.g. details on stack frames. The following example show a | |||
* JavaScript function which when passed to v8::Debug::Call will return th e | * JavaScript function which when passed to v8::Debug::Call will return th e | |||
* current line of JavaScript execution. | * current line of JavaScript execution. | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 21 lines changed or added | |||
v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 132 | skipping to change at line 132 | |||
class Signature; | class Signature; | |||
template <class T> class Handle; | template <class T> class Handle; | |||
template <class T> class Local; | template <class T> class Local; | |||
template <class T> class Persistent; | template <class T> class Persistent; | |||
class FunctionTemplate; | class FunctionTemplate; | |||
class ObjectTemplate; | class ObjectTemplate; | |||
class Data; | class Data; | |||
namespace internal { | namespace internal { | |||
class Object; | ||||
class Arguments; | class Arguments; | |||
class Object; | ||||
class Top; | ||||
} | } | |||
// --- W e a k H a n d l e s | // --- W e a k H a n d l e s | |||
/** | /** | |||
* A weak reference callback function. | * A weak reference callback function. | |||
* | * | |||
* \param object the weak global object to be reclaimed by the garbage coll ector | * \param object the weak global object to be reclaimed by the garbage coll ector | |||
* \param parameter the value passed in when making the weak global object | * \param parameter the value passed in when making the weak global object | |||
skipping to change at line 2469 | skipping to change at line 2470 | |||
*/ | */ | |||
void SetVerbose(bool value); | void SetVerbose(bool value); | |||
/** | /** | |||
* Set whether or not this TryCatch should capture a Message object | * Set whether or not this TryCatch should capture a Message object | |||
* which holds source information about where the exception | * which holds source information about where the exception | |||
* occurred. True by default. | * occurred. True by default. | |||
*/ | */ | |||
void SetCaptureMessage(bool value); | void SetCaptureMessage(bool value); | |||
public: | private: | |||
TryCatch* next_; | void* next_; | |||
void* exception_; | void* exception_; | |||
void* message_; | void* message_; | |||
bool is_verbose_ : 1; | bool is_verbose_ : 1; | |||
bool can_continue_ : 1; | bool can_continue_ : 1; | |||
bool capture_message_ : 1; | bool capture_message_ : 1; | |||
bool rethrow_ : 1; | bool rethrow_ : 1; | |||
void* js_handler_; | ||||
friend class v8::internal::Top; | ||||
}; | }; | |||
// --- C o n t e x t --- | // --- C o n t e x t --- | |||
/** | /** | |||
* Ignore | * Ignore | |||
*/ | */ | |||
class V8EXPORT ExtensionConfiguration { | class V8EXPORT ExtensionConfiguration { | |||
public: | public: | |||
ExtensionConfiguration(int name_count, const char* names[]) | ExtensionConfiguration(int name_count, const char* names[]) | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 6 lines changed or added | |||