| 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 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 | 1735 |
| 1736 if (minimum_mementos_created) { | 1736 if (minimum_mementos_created) { |
| 1737 deopt = MakePretenureDecision( | 1737 deopt = MakePretenureDecision( |
| 1738 current_decision, ratio, maximum_size_scavenge); | 1738 current_decision, ratio, maximum_size_scavenge); |
| 1739 } | 1739 } |
| 1740 | 1740 |
| 1741 if (FLAG_trace_pretenuring_statistics) { | 1741 if (FLAG_trace_pretenuring_statistics) { |
| 1742 PrintIsolate(GetIsolate(), | 1742 PrintIsolate(GetIsolate(), |
| 1743 "pretenuring: AllocationSite(%p): (created, found, ratio) " | 1743 "pretenuring: AllocationSite(%p): (created, found, ratio) " |
| 1744 "(%d, %d, %f) %s => %s\n", | 1744 "(%d, %d, %f) %s => %s\n", |
| 1745 this, create_count, found_count, ratio, | 1745 static_cast<void*>(this), create_count, found_count, ratio, |
| 1746 PretenureDecisionName(current_decision), | 1746 PretenureDecisionName(current_decision), |
| 1747 PretenureDecisionName(pretenure_decision())); | 1747 PretenureDecisionName(pretenure_decision())); |
| 1748 } | 1748 } |
| 1749 | 1749 |
| 1750 // Clear feedback calculation fields until the next gc. | 1750 // Clear feedback calculation fields until the next gc. |
| 1751 set_memento_found_count(0); | 1751 set_memento_found_count(0); |
| 1752 set_memento_create_count(0); | 1752 set_memento_create_count(0); |
| 1753 return deopt; | 1753 return deopt; |
| 1754 } | 1754 } |
| 1755 | 1755 |
| (...skipping 6086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7842 #undef WRITE_INT64_FIELD | 7842 #undef WRITE_INT64_FIELD |
| 7843 #undef READ_BYTE_FIELD | 7843 #undef READ_BYTE_FIELD |
| 7844 #undef WRITE_BYTE_FIELD | 7844 #undef WRITE_BYTE_FIELD |
| 7845 #undef NOBARRIER_READ_BYTE_FIELD | 7845 #undef NOBARRIER_READ_BYTE_FIELD |
| 7846 #undef NOBARRIER_WRITE_BYTE_FIELD | 7846 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7847 | 7847 |
| 7848 } // namespace internal | 7848 } // namespace internal |
| 7849 } // namespace v8 | 7849 } // namespace v8 |
| 7850 | 7850 |
| 7851 #endif // V8_OBJECTS_INL_H_ | 7851 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |