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/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 8129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8140 class DoNotInlineBit: public BitField<bool, 29, 1> {}; | 8140 class DoNotInlineBit: public BitField<bool, 29, 1> {}; |
8141 | 8141 |
8142 // Bitfields for pretenure_data | 8142 // Bitfields for pretenure_data |
8143 class MementoFoundCountBits: public BitField<int, 0, 26> {}; | 8143 class MementoFoundCountBits: public BitField<int, 0, 26> {}; |
8144 class PretenureDecisionBits: public BitField<PretenureDecision, 26, 3> {}; | 8144 class PretenureDecisionBits: public BitField<PretenureDecision, 26, 3> {}; |
8145 class DeoptDependentCodeBit: public BitField<bool, 29, 1> {}; | 8145 class DeoptDependentCodeBit: public BitField<bool, 29, 1> {}; |
8146 STATIC_ASSERT(PretenureDecisionBits::kMax >= kLastPretenureDecisionValue); | 8146 STATIC_ASSERT(PretenureDecisionBits::kMax >= kLastPretenureDecisionValue); |
8147 | 8147 |
8148 // Increments the mementos found counter and returns true when the first | 8148 // Increments the mementos found counter and returns true when the first |
8149 // memento was found for a given allocation site. | 8149 // memento was found for a given allocation site. |
8150 inline bool IncrementMementoFoundCount(); | 8150 inline bool IncrementMementoFoundCount(int increment = 1); |
8151 | 8151 |
8152 inline void IncrementMementoCreateCount(); | 8152 inline void IncrementMementoCreateCount(); |
8153 | 8153 |
8154 PretenureFlag GetPretenureMode(); | 8154 PretenureFlag GetPretenureMode(); |
8155 | 8155 |
8156 void ResetPretenureDecision(); | 8156 void ResetPretenureDecision(); |
8157 | 8157 |
8158 inline PretenureDecision pretenure_decision(); | 8158 inline PretenureDecision pretenure_decision(); |
8159 inline void set_pretenure_decision(PretenureDecision decision); | 8159 inline void set_pretenure_decision(PretenureDecision decision); |
8160 | 8160 |
(...skipping 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10737 } | 10737 } |
10738 return value; | 10738 return value; |
10739 } | 10739 } |
10740 }; | 10740 }; |
10741 | 10741 |
10742 | 10742 |
10743 } // NOLINT, false-positive due to second-order macros. | 10743 } // NOLINT, false-positive due to second-order macros. |
10744 } // NOLINT, false-positive due to second-order macros. | 10744 } // NOLINT, false-positive due to second-order macros. |
10745 | 10745 |
10746 #endif // V8_OBJECTS_H_ | 10746 #endif // V8_OBJECTS_H_ |
OLD | NEW |