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

Side by Side Diff: src/heap/spaces.cc

Issue 1782043004: [heap] Use PageParallelJob for parallel evacuation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « src/heap/spaces.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #include "src/heap/spaces.h" 5 #include "src/heap/spaces.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 #include "src/full-codegen/full-codegen.h" 9 #include "src/full-codegen/full-codegen.h"
10 #include "src/heap/slot-set.h" 10 #include "src/heap/slot-set.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 chunk->set_owner(owner); 478 chunk->set_owner(owner);
479 chunk->InitializeReservedMemory(); 479 chunk->InitializeReservedMemory();
480 chunk->old_to_new_slots_ = nullptr; 480 chunk->old_to_new_slots_ = nullptr;
481 chunk->old_to_old_slots_ = nullptr; 481 chunk->old_to_old_slots_ = nullptr;
482 chunk->typed_old_to_old_slots_ = nullptr; 482 chunk->typed_old_to_old_slots_ = nullptr;
483 chunk->skip_list_ = nullptr; 483 chunk->skip_list_ = nullptr;
484 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; 484 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity;
485 chunk->progress_bar_ = 0; 485 chunk->progress_bar_ = 0;
486 chunk->high_water_mark_.SetValue(static_cast<intptr_t>(area_start - base)); 486 chunk->high_water_mark_.SetValue(static_cast<intptr_t>(area_start - base));
487 chunk->concurrent_sweeping_state().SetValue(kSweepingDone); 487 chunk->concurrent_sweeping_state().SetValue(kSweepingDone);
488 chunk->parallel_compaction_state().SetValue(kCompactingDone);
489 chunk->mutex_ = nullptr; 488 chunk->mutex_ = nullptr;
490 chunk->available_in_free_list_ = 0; 489 chunk->available_in_free_list_ = 0;
491 chunk->wasted_memory_ = 0; 490 chunk->wasted_memory_ = 0;
492 chunk->ResetLiveBytes(); 491 chunk->ResetLiveBytes();
493 Bitmap::Clear(chunk); 492 Bitmap::Clear(chunk);
494 chunk->set_next_chunk(nullptr); 493 chunk->set_next_chunk(nullptr);
495 chunk->set_prev_chunk(nullptr); 494 chunk->set_prev_chunk(nullptr);
496 495
497 DCHECK(OFFSET_OF(MemoryChunk, flags_) == kFlagsOffset); 496 DCHECK(OFFSET_OF(MemoryChunk, flags_) == kFlagsOffset);
498 DCHECK(OFFSET_OF(MemoryChunk, live_byte_count_) == kLiveBytesOffset); 497 DCHECK(OFFSET_OF(MemoryChunk, live_byte_count_) == kLiveBytesOffset);
(...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after
3242 object->ShortPrint(); 3241 object->ShortPrint();
3243 PrintF("\n"); 3242 PrintF("\n");
3244 } 3243 }
3245 printf(" --------------------------------------\n"); 3244 printf(" --------------------------------------\n");
3246 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3245 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3247 } 3246 }
3248 3247
3249 #endif // DEBUG 3248 #endif // DEBUG
3250 } // namespace internal 3249 } // namespace internal
3251 } // namespace v8 3250 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698