OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 5111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5122 void ClearTypeFeedbackCells(Heap* heap); | 5122 void ClearTypeFeedbackCells(Heap* heap); |
5123 | 5123 |
5124 BailoutId TranslatePcOffsetToAstId(uint32_t pc_offset); | 5124 BailoutId TranslatePcOffsetToAstId(uint32_t pc_offset); |
5125 | 5125 |
5126 #define DECLARE_CODE_AGE_ENUM(X) k##X##CodeAge, | 5126 #define DECLARE_CODE_AGE_ENUM(X) k##X##CodeAge, |
5127 enum Age { | 5127 enum Age { |
5128 kNoAge = 0, | 5128 kNoAge = 0, |
5129 CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) | 5129 CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) |
5130 kAfterLastCodeAge, | 5130 kAfterLastCodeAge, |
5131 kLastCodeAge = kAfterLastCodeAge - 1, | 5131 kLastCodeAge = kAfterLastCodeAge - 1, |
5132 kCodeAgeCount = kAfterLastCodeAge - 1 | 5132 kCodeAgeCount = kAfterLastCodeAge - 1, |
| 5133 kPreAgedCodeAge = kQuinquagenarianCodeAge, |
| 5134 kIsOldCodeAge = kSexagenarianCodeAge |
5133 }; | 5135 }; |
5134 #undef DECLARE_CODE_AGE_ENUM | 5136 #undef DECLARE_CODE_AGE_ENUM |
5135 | 5137 |
5136 // Code aging. Indicates how many full GCs this code has survived without | 5138 // Code aging. Indicates how many full GCs this code has survived without |
5137 // being entered through the prologue. Used to determine when it is | 5139 // being entered through the prologue. Used to determine when it is |
5138 // relatively safe to flush this code object and replace it with the lazy | 5140 // relatively safe to flush this code object and replace it with the lazy |
5139 // compilation stub. | 5141 // compilation stub. |
5140 static void MakeCodeAgeSequenceYoung(byte* sequence); | 5142 static void MakeCodeAgeSequenceYoung(byte* sequence); |
5141 void MakeOlder(MarkingParity); | 5143 void MakeOlder(MarkingParity); |
5142 static bool IsYoungSequence(byte* sequence); | 5144 static bool IsYoungSequence(byte* sequence); |
| 5145 static bool IsPreAgedSequence(byte* sequence); |
5143 bool IsOld(); | 5146 bool IsOld(); |
5144 int GetAge(); | 5147 int GetAge(); |
5145 | 5148 |
5146 void PrintDeoptLocation(int bailout_id); | 5149 void PrintDeoptLocation(int bailout_id); |
5147 bool CanDeoptAt(Address pc); | 5150 bool CanDeoptAt(Address pc); |
5148 | 5151 |
5149 #ifdef VERIFY_HEAP | 5152 #ifdef VERIFY_HEAP |
5150 void VerifyEmbeddedMapsDependency(); | 5153 void VerifyEmbeddedMapsDependency(); |
5151 #endif | 5154 #endif |
5152 | 5155 |
(...skipping 5071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10224 } else { | 10227 } else { |
10225 value &= ~(1 << bit_position); | 10228 value &= ~(1 << bit_position); |
10226 } | 10229 } |
10227 return value; | 10230 return value; |
10228 } | 10231 } |
10229 }; | 10232 }; |
10230 | 10233 |
10231 } } // namespace v8::internal | 10234 } } // namespace v8::internal |
10232 | 10235 |
10233 #endif // V8_OBJECTS_H_ | 10236 #endif // V8_OBJECTS_H_ |
OLD | NEW |