Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: src/heap.cc

Issue 143803007: Introduce --job-based-sweeping flag and use individual jobs for sweeping if set (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698