v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 2360 | skipping to change at line 2360 | |||
* \param from_pos specified a point in a buffer to read from, 0 is the | * \param from_pos specified a point in a buffer to read from, 0 is the | |||
* beginning of a buffer. It is assumed that caller updates its current | * beginning of a buffer. It is assumed that caller updates its current | |||
* position using returned size value from the previous call. | * position using returned size value from the previous call. | |||
* \param dest_buf destination buffer for log data. | * \param dest_buf destination buffer for log data. | |||
* \param max_size size of the destination buffer. | * \param max_size size of the destination buffer. | |||
* \returns actual size of log data copied into buffer. | * \returns actual size of log data copied into buffer. | |||
*/ | */ | |||
static int GetLogLines(int from_pos, char* dest_buf, int max_size); | static int GetLogLines(int from_pos, char* dest_buf, int max_size); | |||
/** | /** | |||
* The minimum allowed size for a log lines buffer. If the size of | ||||
* the buffer given will not be enough to hold a line of the maximum | ||||
* length, an attempt to find a log line end in GetLogLines will | ||||
* fail, and an empty result will be returned. | ||||
*/ | ||||
static const int kMinimumSizeForLogLinesBuffer = 2048; | ||||
/** | ||||
* Retrieve the V8 thread id of the calling thread. | * Retrieve the V8 thread id of the calling thread. | |||
* | * | |||
* The thread id for a thread should only be retrieved after the V8 | * The thread id for a thread should only be retrieved after the V8 | |||
* lock has been acquired with a Locker object with that thread. | * lock has been acquired with a Locker object with that thread. | |||
*/ | */ | |||
static int GetCurrentThreadId(); | static int GetCurrentThreadId(); | |||
/** | /** | |||
* Forcefully terminate execution of a JavaScript thread. This can | * Forcefully terminate execution of a JavaScript thread. This can | |||
* be used to terminate long-running scripts. | * be used to terminate long-running scripts. | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 8 lines changed or added | |||