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 4555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4566 kNoAge = 0, | 4566 kNoAge = 0, |
4567 CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) | 4567 CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) |
4568 kAfterLastCodeAge, | 4568 kAfterLastCodeAge, |
4569 kLastCodeAge = kAfterLastCodeAge - 1, | 4569 kLastCodeAge = kAfterLastCodeAge - 1, |
4570 kCodeAgeCount = kAfterLastCodeAge - 1 | 4570 kCodeAgeCount = kAfterLastCodeAge - 1 |
4571 }; | 4571 }; |
4572 #undef DECLARE_CODE_AGE_ENUM | 4572 #undef DECLARE_CODE_AGE_ENUM |
4573 | 4573 |
4574 // Code aging | 4574 // Code aging |
4575 static void MakeCodeAgeSequenceYoung(byte* sequence); | 4575 static void MakeCodeAgeSequenceYoung(byte* sequence); |
4576 void MakeYoung(); | |
4577 void MakeOlder(MarkingParity); | 4576 void MakeOlder(MarkingParity); |
4578 static bool IsYoungSequence(byte* sequence); | 4577 static bool IsYoungSequence(byte* sequence); |
4579 bool IsOld(); | 4578 bool IsOld(); |
4580 | 4579 |
4581 // Max loop nesting marker used to postpose OSR. We don't take loop | 4580 // Max loop nesting marker used to postpose OSR. We don't take loop |
4582 // nesting that is deeper than 5 levels into account. | 4581 // nesting that is deeper than 5 levels into account. |
4583 static const int kMaxLoopNestingMarker = 6; | 4582 static const int kMaxLoopNestingMarker = 6; |
4584 | 4583 |
4585 // Layout description. | 4584 // Layout description. |
4586 static const int kInstructionSizeOffset = HeapObject::kHeaderSize; | 4585 static const int kInstructionSizeOffset = HeapObject::kHeaderSize; |
(...skipping 4421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9008 } else { | 9007 } else { |
9009 value &= ~(1 << bit_position); | 9008 value &= ~(1 << bit_position); |
9010 } | 9009 } |
9011 return value; | 9010 return value; |
9012 } | 9011 } |
9013 }; | 9012 }; |
9014 | 9013 |
9015 } } // namespace v8::internal | 9014 } } // namespace v8::internal |
9016 | 9015 |
9017 #endif // V8_OBJECTS_H_ | 9016 #endif // V8_OBJECTS_H_ |
OLD | NEW |