OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 5240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5251 }; | 5251 }; |
5252 #undef DECLARE_CODE_AGE_ENUM | 5252 #undef DECLARE_CODE_AGE_ENUM |
5253 | 5253 |
5254 // Code aging. Indicates how many full GCs this code has survived without | 5254 // Code aging. Indicates how many full GCs this code has survived without |
5255 // being entered through the prologue. Used to determine when it is | 5255 // being entered through the prologue. Used to determine when it is |
5256 // relatively safe to flush this code object and replace it with the lazy | 5256 // relatively safe to flush this code object and replace it with the lazy |
5257 // compilation stub. | 5257 // compilation stub. |
5258 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); | 5258 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); |
5259 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate); | 5259 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate); |
5260 void MakeYoung(Isolate* isolate); | 5260 void MakeYoung(Isolate* isolate); |
| 5261 void PreAge(Isolate* isolate); |
5261 void MarkToBeExecutedOnce(Isolate* isolate); | 5262 void MarkToBeExecutedOnce(Isolate* isolate); |
5262 void MakeOlder(MarkingParity); | 5263 void MakeOlder(MarkingParity); |
5263 static bool IsYoungSequence(Isolate* isolate, byte* sequence); | 5264 static bool IsYoungSequence(Isolate* isolate, byte* sequence); |
5264 bool IsOld(); | 5265 bool IsOld(); |
5265 Age GetAge(); | 5266 Age GetAge(); |
5266 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { | 5267 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { |
5267 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); | 5268 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); |
5268 } | 5269 } |
5269 | 5270 |
5270 void PrintDeoptLocation(FILE* out, Address pc); | 5271 void PrintDeoptLocation(FILE* out, Address pc); |
(...skipping 5616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10887 } | 10888 } |
10888 return value; | 10889 return value; |
10889 } | 10890 } |
10890 }; | 10891 }; |
10891 | 10892 |
10892 | 10893 |
10893 } // NOLINT, false-positive due to second-order macros. | 10894 } // NOLINT, false-positive due to second-order macros. |
10894 } // NOLINT, false-positive due to second-order macros. | 10895 } // NOLINT, false-positive due to second-order macros. |
10895 | 10896 |
10896 #endif // V8_OBJECTS_H_ | 10897 #endif // V8_OBJECTS_H_ |
OLD | NEW |