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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 bool use_scratchpad = | 518 bool use_scratchpad = |
519 allocation_sites_scratchpad_length < kAllocationSiteScratchpadSize; | 519 allocation_sites_scratchpad_length < kAllocationSiteScratchpadSize; |
520 | 520 |
521 int i = 0; | 521 int i = 0; |
522 Object* list_element = allocation_sites_list(); | 522 Object* list_element = allocation_sites_list(); |
523 while (use_scratchpad ? | 523 while (use_scratchpad ? |
524 i < allocation_sites_scratchpad_length : | 524 i < allocation_sites_scratchpad_length : |
525 list_element->IsAllocationSite()) { | 525 list_element->IsAllocationSite()) { |
526 AllocationSite* site = use_scratchpad ? | 526 AllocationSite* site = use_scratchpad ? |
527 allocation_sites_scratchpad[i] : AllocationSite::cast(list_element); | 527 allocation_sites_scratchpad[i] : AllocationSite::cast(list_element); |
528 allocation_mementos_found += site->memento_found_count()->value(); | 528 allocation_mementos_found += site->memento_found_count(); |
529 if (site->memento_found_count()->value() > 0) { | 529 if (site->memento_found_count() > 0) { |
530 active_allocation_sites++; | 530 active_allocation_sites++; |
531 } | 531 } |
532 if (site->DigestPretenuringFeedback()) { | 532 if (site->DigestPretenuringFeedback()) { |
533 if (site->GetPretenureMode() == TENURED) { | 533 if (site->GetPretenureMode() == TENURED) { |
534 tenure_decisions++; | 534 tenure_decisions++; |
535 } else { | 535 } else { |
536 dont_tenure_decisions++; | 536 dont_tenure_decisions++; |
537 } | 537 } |
538 } | 538 } |
539 allocation_sites++; | 539 allocation_sites++; |
(...skipping 7195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7735 static_cast<int>(object_sizes_last_time_[index])); | 7735 static_cast<int>(object_sizes_last_time_[index])); |
7736 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7736 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7737 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7737 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7738 | 7738 |
7739 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7739 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7740 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7740 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7741 ClearObjectStats(); | 7741 ClearObjectStats(); |
7742 } | 7742 } |
7743 | 7743 |
7744 } } // namespace v8::internal | 7744 } } // namespace v8::internal |
OLD | NEW |