Index: include/v8.h |
=================================================================== |
--- include/v8.h (revision 13584) |
+++ include/v8.h (working copy) |
@@ -3042,8 +3042,17 @@ |
enum EventType { |
CODE_ADDED, |
CODE_MOVED, |
- CODE_REMOVED |
+ CODE_REMOVED, |
+ CODE_ADD_LINE_POS_INFO, |
+ CODE_START_LINE_INFO_RECORDING, |
+ CODE_END_LINE_INFO_RECORDING |
}; |
+ // Definition of the code position type. See comment for |
+ // RelocInfo::kNoPosition field. |
+ enum PositionType { |
+ POSITION, |
+ STATEMENT_POSITION |
+ }; |
// Type of event. |
EventType type; |
@@ -3051,6 +3060,11 @@ |
void* code_start; |
// Size of the instructions. |
size_t code_len; |
+ // Script info for CODE_ADDED event. |
+ Handle<Script> script; |
+ // User-defined data for other events. For example, the line_info_struct |
+ // for CODE_ADD_LINE_POS_INFO and CODE_END_LINE_INFO_RECORDING event |
+ void* user_data; |
union { |
// Only valid for CODE_ADDED. |
@@ -3061,6 +3075,17 @@ |
// Number of chars in str. |
size_t len; |
} name; |
+ |
+ // Only valid for CODE_ADD_LINE_POS_INFO |
+ struct { |
+ // 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. |
void* new_code_start; |
}; |