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 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1547 static_cast<double>(found_count) / create_count : 0.0; | 1547 static_cast<double>(found_count) / create_count : 0.0; |
1548 PretenureFlag current_mode = GetPretenureMode(); | 1548 PretenureFlag current_mode = GetPretenureMode(); |
1549 | 1549 |
1550 if (minimum_mementos_created) { | 1550 if (minimum_mementos_created) { |
1551 PretenureDecision result = ratio >= kPretenureRatio | 1551 PretenureDecision result = ratio >= kPretenureRatio |
1552 ? kTenure | 1552 ? kTenure |
1553 : kDontTenure; | 1553 : kDontTenure; |
1554 set_pretenure_decision(result); | 1554 set_pretenure_decision(result); |
1555 if (current_mode != GetPretenureMode()) { | 1555 if (current_mode != GetPretenureMode()) { |
1556 decision_changed = true; | 1556 decision_changed = true; |
1557 dependent_code()->MarkCodeForDeoptimization( | 1557 set_deopt_dependent_code(true); |
1558 GetIsolate(), | |
1559 DependentCode::kAllocationSiteTenuringChangedGroup); | |
1560 } | 1558 } |
1561 } | 1559 } |
1562 | 1560 |
1563 if (FLAG_trace_pretenuring_statistics) { | 1561 if (FLAG_trace_pretenuring_statistics) { |
1564 PrintF( | 1562 PrintF( |
1565 "AllocationSite(%p): (created, found, ratio) (%d, %d, %f) %s => %s\n", | 1563 "AllocationSite(%p): (created, found, ratio) (%d, %d, %f) %s => %s\n", |
1566 static_cast<void*>(this), create_count, found_count, ratio, | 1564 static_cast<void*>(this), create_count, found_count, ratio, |
1567 current_mode == TENURED ? "tenured" : "not tenured", | 1565 current_mode == TENURED ? "tenured" : "not tenured", |
1568 GetPretenureMode() == TENURED ? "tenured" : "not tenured"); | 1566 GetPretenureMode() == TENURED ? "tenured" : "not tenured"); |
1569 } | 1567 } |
(...skipping 5164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6734 #undef READ_UINT32_FIELD | 6732 #undef READ_UINT32_FIELD |
6735 #undef WRITE_UINT32_FIELD | 6733 #undef WRITE_UINT32_FIELD |
6736 #undef READ_SHORT_FIELD | 6734 #undef READ_SHORT_FIELD |
6737 #undef WRITE_SHORT_FIELD | 6735 #undef WRITE_SHORT_FIELD |
6738 #undef READ_BYTE_FIELD | 6736 #undef READ_BYTE_FIELD |
6739 #undef WRITE_BYTE_FIELD | 6737 #undef WRITE_BYTE_FIELD |
6740 | 6738 |
6741 } } // namespace v8::internal | 6739 } } // namespace v8::internal |
6742 | 6740 |
6743 #endif // V8_OBJECTS_INL_H_ | 6741 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |