| 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 5129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5140 void ClearTypeFeedbackCells(Heap* heap); | 5140 void ClearTypeFeedbackCells(Heap* heap); |
| 5141 | 5141 |
| 5142 BailoutId TranslatePcOffsetToAstId(uint32_t pc_offset); | 5142 BailoutId TranslatePcOffsetToAstId(uint32_t pc_offset); |
| 5143 | 5143 |
| 5144 #define DECLARE_CODE_AGE_ENUM(X) k##X##CodeAge, | 5144 #define DECLARE_CODE_AGE_ENUM(X) k##X##CodeAge, |
| 5145 enum Age { | 5145 enum Age { |
| 5146 kNoAge = 0, | 5146 kNoAge = 0, |
| 5147 CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) | 5147 CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) |
| 5148 kAfterLastCodeAge, | 5148 kAfterLastCodeAge, |
| 5149 kLastCodeAge = kAfterLastCodeAge - 1, | 5149 kLastCodeAge = kAfterLastCodeAge - 1, |
| 5150 kCodeAgeCount = kAfterLastCodeAge - 1 | 5150 kCodeAgeCount = kAfterLastCodeAge - 1, |
| 5151 kPreAgedCodeAge = kQuinquagenarianCodeAge, |
| 5152 kIsOldCodeAge = kSexagenarianCodeAge |
| 5151 }; | 5153 }; |
| 5152 #undef DECLARE_CODE_AGE_ENUM | 5154 #undef DECLARE_CODE_AGE_ENUM |
| 5153 | 5155 |
| 5154 // Code aging. Indicates how many full GCs this code has survived without | 5156 // Code aging. Indicates how many full GCs this code has survived without |
| 5155 // being entered through the prologue. Used to determine when it is | 5157 // being entered through the prologue. Used to determine when it is |
| 5156 // relatively safe to flush this code object and replace it with the lazy | 5158 // relatively safe to flush this code object and replace it with the lazy |
| 5157 // compilation stub. | 5159 // compilation stub. |
| 5158 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); | 5160 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); |
| 5159 void MakeOlder(MarkingParity); | 5161 void MakeOlder(MarkingParity); |
| 5160 static bool IsYoungSequence(byte* sequence); | 5162 static bool IsYoungSequence(byte* sequence); |
| 5163 static bool IsPreAgedSequence(byte* sequence); |
| 5161 bool IsOld(); | 5164 bool IsOld(); |
| 5162 int GetAge(); | 5165 int GetAge(); |
| 5163 | 5166 |
| 5164 void PrintDeoptLocation(int bailout_id); | 5167 void PrintDeoptLocation(int bailout_id); |
| 5165 bool CanDeoptAt(Address pc); | 5168 bool CanDeoptAt(Address pc); |
| 5166 | 5169 |
| 5167 #ifdef VERIFY_HEAP | 5170 #ifdef VERIFY_HEAP |
| 5168 void VerifyEmbeddedMapsDependency(); | 5171 void VerifyEmbeddedMapsDependency(); |
| 5169 #endif | 5172 #endif |
| 5170 | 5173 |
| (...skipping 5074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10245 } else { | 10248 } else { |
| 10246 value &= ~(1 << bit_position); | 10249 value &= ~(1 << bit_position); |
| 10247 } | 10250 } |
| 10248 return value; | 10251 return value; |
| 10249 } | 10252 } |
| 10250 }; | 10253 }; |
| 10251 | 10254 |
| 10252 } } // namespace v8::internal | 10255 } } // namespace v8::internal |
| 10253 | 10256 |
| 10254 #endif // V8_OBJECTS_H_ | 10257 #endif // V8_OBJECTS_H_ |
| OLD | NEW |