| 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 6361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6372 + old_data_space_->SizeOfObjects() | 6372 + old_data_space_->SizeOfObjects() |
| 6373 + code_space_->SizeOfObjects() | 6373 + code_space_->SizeOfObjects() |
| 6374 + map_space_->SizeOfObjects() | 6374 + map_space_->SizeOfObjects() |
| 6375 + cell_space_->SizeOfObjects() | 6375 + cell_space_->SizeOfObjects() |
| 6376 + property_cell_space_->SizeOfObjects() | 6376 + property_cell_space_->SizeOfObjects() |
| 6377 + lo_space_->SizeOfObjects(); | 6377 + lo_space_->SizeOfObjects(); |
| 6378 } | 6378 } |
| 6379 | 6379 |
| 6380 | 6380 |
| 6381 bool Heap::AdvanceSweepers(int step_size) { | 6381 bool Heap::AdvanceSweepers(int step_size) { |
| 6382 ASSERT(isolate()->num_sweeper_threads() == 0); | 6382 ASSERT(!mark_compact_collector()->AreSweeperThreadsActivated()); |
| 6383 bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size); | 6383 bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size); |
| 6384 sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size); | 6384 sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size); |
| 6385 return sweeping_complete; | 6385 return sweeping_complete; |
| 6386 } | 6386 } |
| 6387 | 6387 |
| 6388 | 6388 |
| 6389 int64_t Heap::PromotedExternalMemorySize() { | 6389 int64_t Heap::PromotedExternalMemorySize() { |
| 6390 if (amount_of_external_allocated_memory_ | 6390 if (amount_of_external_allocated_memory_ |
| 6391 <= amount_of_external_allocated_memory_at_last_global_gc_) return 0; | 6391 <= amount_of_external_allocated_memory_at_last_global_gc_) return 0; |
| 6392 return amount_of_external_allocated_memory_ | 6392 return amount_of_external_allocated_memory_ |
| (...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7739 static_cast<int>(object_sizes_last_time_[index])); | 7739 static_cast<int>(object_sizes_last_time_[index])); |
| 7740 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7740 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7741 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7741 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7742 | 7742 |
| 7743 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7743 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7744 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7744 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7745 ClearObjectStats(); | 7745 ClearObjectStats(); |
| 7746 } | 7746 } |
| 7747 | 7747 |
| 7748 } } // namespace v8::internal | 7748 } } // namespace v8::internal |
| OLD | NEW |