Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 7d46c068589bfb707a43e93d84bf5cc74e328275..9084ea5bd8849193427436aad60f8a6912c0a677 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -4325,6 +4325,10 @@ class Code: public HeapObject { |
inline void set_ic_age(int count); |
inline int ic_age(); |
+ // [prologue_offset]: Offset of the prologue, used for IC aging. |
danno
2012/11/28 16:38:54
"IC" isn't correct, it's actually used for FUNCTIO
Sven Panne
2012/11/29 07:38:17
Done.
|
+ inline int prologue_offset(); |
+ inline void set_prologue_offset(int offset); |
+ |
// Unchecked accessors to be used during GC. |
inline ByteArray* unchecked_relocation_info(); |
inline FixedArray* unchecked_deoptimization_data(); |
@@ -4593,8 +4597,10 @@ class Code: public HeapObject { |
static const int kKindSpecificFlags1Offset = kFlagsOffset + kIntSize; |
static const int kKindSpecificFlags2Offset = |
kKindSpecificFlags1Offset + kIntSize; |
+ // Note: We might be able to squeeze this into the flags above. |
+ static const int kPrologueOffset = kKindSpecificFlags2Offset + kIntSize; |
- static const int kHeaderPaddingStart = kKindSpecificFlags2Offset + kIntSize; |
+ static const int kHeaderPaddingStart = kPrologueOffset + kIntSize; |
// Add padding to align the instruction start following right after |
// the Code object header. |
@@ -4688,7 +4694,6 @@ class Code: public HeapObject { |
static Code* GetCodeAgeStub(Age age, MarkingParity parity); |
// Code aging -- platform-specific |
- byte* FindPlatformCodeAgeSequence(); |
static void PatchPlatformCodeAge(byte* sequence, Age age, |
MarkingParity parity); |