Index: src/objects.h |
=================================================================== |
--- src/objects.h (revision 5008) |
+++ src/objects.h (working copy) |
@@ -2732,9 +2732,13 @@ |
inline int instruction_size(); |
inline void set_instruction_size(int value); |
- // [relocation_size]: Size of relocation information. |
+ // [relocation_info]: Code relocation information |
+ DECL_ACCESSORS(relocation_info, ByteArray) |
+ |
+ // Unchecked accessor to be used during GC. |
+ inline ByteArray* unchecked_relocation_info(); |
+ |
inline int relocation_size(); |
- inline void set_relocation_size(int value); |
// [sinfo_size]: Size of scope information. |
inline int sinfo_size(); |
@@ -2790,6 +2794,9 @@ |
// Returns the address of the first instruction. |
inline byte* instruction_start(); |
+ // Returns the address right after the last instruction. |
+ inline byte* instruction_end(); |
+ |
// Returns the size of the instructions, padding, and relocation information. |
inline int body_size(); |
@@ -2850,8 +2857,8 @@ |
// Layout description. |
static const int kInstructionSizeOffset = HeapObject::kHeaderSize; |
- static const int kRelocationSizeOffset = kInstructionSizeOffset + kIntSize; |
- static const int kSInfoSizeOffset = kRelocationSizeOffset + kIntSize; |
+ static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize; |
+ static const int kSInfoSizeOffset = kRelocationInfoOffset + kPointerSize; |
static const int kFlagsOffset = kSInfoSizeOffset + kIntSize; |
static const int kKindSpecificFlagsOffset = kFlagsOffset + kIntSize; |
// Add padding to align the instruction start following right after |