Index: include/v8.h |
=================================================================== |
--- include/v8.h (revision 13276) |
+++ include/v8.h (working copy) |
@@ -3030,7 +3030,10 @@ |
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 |
}; |
// Type of event. |
@@ -3039,6 +3042,9 @@ |
void* code_start; |
// Size of the instructions. |
size_t code_len; |
+ // Script info for CODE_ADDED event or line_info_struct |
+ // for CODE_ADD_LINE_POS_INFO and CODE_END_LINE_INFO_RECORDING event |
+ void* user_data; |
danno
2013/01/10 16:47:33
I don't think you saw my original comment complete
chunyang.dai
2013/01/18 10:22:44
Done.
|
union { |
// Only valid for CODE_ADDED. |
@@ -3049,6 +3055,18 @@ |
// 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; |
+ // Indicates whether this position is a "statement position". (as opposed |
+ // to the "postion". See comment for RelocInfo::kNoPosition field.) |
+ bool is_statement; |
danno
2013/01/10 16:47:33
please create an enum PositionType that can be eit
chunyang.dai
2013/01/18 10:22:44
Done.
|
+ } line_info; |
+ |
// New location of instructions. Only valid for CODE_MOVED. |
void* new_code_start; |
}; |