| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 5328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5339 | 5339 |
| 5340 // Code aging. Indicates how many full GCs this code has survived without | 5340 // Code aging. Indicates how many full GCs this code has survived without |
| 5341 // being entered through the prologue. Used to determine when it is | 5341 // being entered through the prologue. Used to determine when it is |
| 5342 // relatively safe to flush this code object and replace it with the lazy | 5342 // relatively safe to flush this code object and replace it with the lazy |
| 5343 // compilation stub. | 5343 // compilation stub. |
| 5344 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); | 5344 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); |
| 5345 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate); | 5345 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate); |
| 5346 void MakeYoung(); | 5346 void MakeYoung(); |
| 5347 void MakeOlder(MarkingParity); | 5347 void MakeOlder(MarkingParity); |
| 5348 static bool IsYoungSequence(Isolate* isolate, byte* sequence); | 5348 static bool IsYoungSequence(Isolate* isolate, byte* sequence); |
| 5349 bool IsOld(); | 5349 bool IsOld(Heap* heap); |
| 5350 Age GetAge(); | 5350 Age GetAge(); |
| 5351 // Gets the raw code age, including psuedo code-age values such as | 5351 // Gets the raw code age, including psuedo code-age values such as |
| 5352 // kNotExecutedCodeAge and kExecutedOnceCodeAge. | 5352 // kNotExecutedCodeAge and kExecutedOnceCodeAge. |
| 5353 Age GetRawAge(); | 5353 Age GetRawAge(); |
| 5354 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { | 5354 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { |
| 5355 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); | 5355 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); |
| 5356 } | 5356 } |
| 5357 | 5357 |
| 5358 void PrintDeoptLocation(FILE* out, int bailout_id); | 5358 void PrintDeoptLocation(FILE* out, int bailout_id); |
| 5359 bool CanDeoptAt(Address pc); | 5359 bool CanDeoptAt(Address pc); |
| (...skipping 5547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10907 } else { | 10907 } else { |
| 10908 value &= ~(1 << bit_position); | 10908 value &= ~(1 << bit_position); |
| 10909 } | 10909 } |
| 10910 return value; | 10910 return value; |
| 10911 } | 10911 } |
| 10912 }; | 10912 }; |
| 10913 | 10913 |
| 10914 } } // namespace v8::internal | 10914 } } // namespace v8::internal |
| 10915 | 10915 |
| 10916 #endif // V8_OBJECTS_H_ | 10916 #endif // V8_OBJECTS_H_ |
| OLD | NEW |