Chromium Code Reviews| 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 8117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8128 | 8128 |
| 8129 inline void Initialize(); | 8129 inline void Initialize(); |
| 8130 | 8130 |
| 8131 // This method is expensive, it should only be called for reporting. | 8131 // This method is expensive, it should only be called for reporting. |
| 8132 bool IsNestedSite(); | 8132 bool IsNestedSite(); |
| 8133 | 8133 |
| 8134 class ElementsKindBits: public BitField<ElementsKind, 0, 15> {}; | 8134 class ElementsKindBits: public BitField<ElementsKind, 0, 15> {}; |
| 8135 class UnusedBits: public BitField<int, 15, 14> {}; | 8135 class UnusedBits: public BitField<int, 15, 14> {}; |
| 8136 class DoNotInlineBit: public BitField<bool, 29, 1> {}; | 8136 class DoNotInlineBit: public BitField<bool, 29, 1> {}; |
| 8137 | 8137 |
| 8138 inline void IncrementMementoFoundCount(); | 8138 inline bool IncrementMementoFoundCount(); |
|
mvstanton
2013/12/13 10:30:17
I guess this needs a comment to explain the motiva
Hannes Payer (out of office)
2013/12/18 14:29:19
Done.
| |
| 8139 | 8139 |
| 8140 inline void IncrementMementoCreateCount(); | 8140 inline void IncrementMementoCreateCount(); |
| 8141 | 8141 |
| 8142 PretenureFlag GetPretenureMode() { | 8142 PretenureFlag GetPretenureMode() { |
| 8143 int mode = pretenure_decision()->value(); | 8143 int mode = pretenure_decision()->value(); |
| 8144 // Zombie objects "decide" to be untenured. | 8144 // Zombie objects "decide" to be untenured. |
| 8145 return (mode == kTenure) ? TENURED : NOT_TENURED; | 8145 return (mode == kTenure) ? TENURED : NOT_TENURED; |
| 8146 } | 8146 } |
| 8147 | 8147 |
| 8148 // The pretenuring decision is made during gc, and the zombie state allows | 8148 // The pretenuring decision is made during gc, and the zombie state allows |
| (...skipping 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10614 } else { | 10614 } else { |
| 10615 value &= ~(1 << bit_position); | 10615 value &= ~(1 << bit_position); |
| 10616 } | 10616 } |
| 10617 return value; | 10617 return value; |
| 10618 } | 10618 } |
| 10619 }; | 10619 }; |
| 10620 | 10620 |
| 10621 } } // namespace v8::internal | 10621 } } // namespace v8::internal |
| 10622 | 10622 |
| 10623 #endif // V8_OBJECTS_H_ | 10623 #endif // V8_OBJECTS_H_ |
| OLD | NEW |