v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 3753 | skipping to change at line 3753 | |||
// Size of the instructions. | // Size of the instructions. | |||
size_t code_len; | size_t code_len; | |||
// Script info for CODE_ADDED event. | // Script info for CODE_ADDED event. | |||
Handle<Script> script; | Handle<Script> script; | |||
// User-defined data for *_LINE_INFO_* event. It's used to hold the sourc e | // User-defined data for *_LINE_INFO_* event. It's used to hold the sourc e | |||
// code line information which is returned from the | // code line information which is returned from the | |||
// CODE_START_LINE_INFO_RECORDING event. And it's passed to subsequent | // CODE_START_LINE_INFO_RECORDING event. And it's passed to subsequent | |||
// CODE_ADD_LINE_POS_INFO and CODE_END_LINE_INFO_RECORDING events. | // CODE_ADD_LINE_POS_INFO and CODE_END_LINE_INFO_RECORDING events. | |||
void* user_data; | void* user_data; | |||
struct name_t { | ||||
// Name of the object associated with the code, note that the string is | ||||
not | ||||
// zero-terminated. | ||||
const char* str; | ||||
// Number of chars in str. | ||||
size_t len; | ||||
}; | ||||
struct line_info_t { | ||||
// PC offset | ||||
size_t offset; | ||||
// Code postion | ||||
size_t pos; | ||||
// The position type. | ||||
PositionType position_type; | ||||
}; | ||||
union { | union { | |||
// Only valid for CODE_ADDED. | // Only valid for CODE_ADDED. | |||
struct { | struct name_t name; | |||
// Name of the object associated with the code, note that the string | ||||
is | ||||
// not zero-terminated. | ||||
const char* str; | ||||
// Number of chars in str. | ||||
size_t len; | ||||
} name; | ||||
// Only valid for CODE_ADD_LINE_POS_INFO | // Only valid for CODE_ADD_LINE_POS_INFO | |||
struct { | struct line_info_t line_info; | |||
// PC offset | ||||
size_t offset; | ||||
// Code postion | ||||
size_t pos; | ||||
// The position type. | ||||
PositionType position_type; | ||||
} line_info; | ||||
// New location of instructions. Only valid for CODE_MOVED. | // New location of instructions. Only valid for CODE_MOVED. | |||
void* new_code_start; | void* new_code_start; | |||
}; | }; | |||
}; | }; | |||
/** | /** | |||
* Option flags passed to the SetJitCodeEventHandler function. | * Option flags passed to the SetJitCodeEventHandler function. | |||
*/ | */ | |||
enum JitCodeEventOptions { | enum JitCodeEventOptions { | |||
skipping to change at line 4945 | skipping to change at line 4949 | |||
static const int kExternalTwoByteRepresentationTag = 0x02; | static const int kExternalTwoByteRepresentationTag = 0x02; | |||
static const int kExternalAsciiRepresentationTag = 0x06; | static const int kExternalAsciiRepresentationTag = 0x06; | |||
static const int kIsolateStateOffset = 0; | static const int kIsolateStateOffset = 0; | |||
static const int kIsolateEmbedderDataOffset = 1 * kApiPointerSize; | static const int kIsolateEmbedderDataOffset = 1 * kApiPointerSize; | |||
static const int kIsolateRootsOffset = 3 * kApiPointerSize; | static const int kIsolateRootsOffset = 3 * kApiPointerSize; | |||
static const int kUndefinedValueRootIndex = 5; | static const int kUndefinedValueRootIndex = 5; | |||
static const int kNullValueRootIndex = 7; | static const int kNullValueRootIndex = 7; | |||
static const int kTrueValueRootIndex = 8; | static const int kTrueValueRootIndex = 8; | |||
static const int kFalseValueRootIndex = 9; | static const int kFalseValueRootIndex = 9; | |||
static const int kEmptyStringRootIndex = 118; | static const int kEmptyStringRootIndex = 127; | |||
static const int kNodeClassIdOffset = 1 * kApiPointerSize; | static const int kNodeClassIdOffset = 1 * kApiPointerSize; | |||
static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; | static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; | |||
static const int kNodeStateMask = 0xf; | static const int kNodeStateMask = 0xf; | |||
static const int kNodeStateIsWeakValue = 2; | static const int kNodeStateIsWeakValue = 2; | |||
static const int kNodeStateIsNearDeathValue = 4; | static const int kNodeStateIsNearDeathValue = 4; | |||
static const int kNodeIsIndependentShift = 4; | static const int kNodeIsIndependentShift = 4; | |||
static const int kNodeIsPartiallyDependentShift = 5; | static const int kNodeIsPartiallyDependentShift = 5; | |||
static const int kJSObjectType = 0xae; | static const int kJSObjectType = 0xae; | |||
End of changes. 4 change blocks. | ||||
17 lines changed or deleted | 21 lines changed or added | |||