Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: include/v8.h

Issue 11552033: This patch is the propagation version of https://codereview.chromium.org/10824032 patch (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/assembler.h » ('j') | src/assembler.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « no previous file | src/assembler.h » ('j') | src/assembler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698