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

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

Issue 1354613002: [heap] Cleanup: Align naming of parallel sweeping with parallel compaction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix initialization order in constructor Created 5 years, 3 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') | test/cctest/test-heap.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 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/slots-buffer.h" 10 #include "src/heap/slots-buffer.h"
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 chunk->area_start_ = area_start; 464 chunk->area_start_ = area_start;
465 chunk->area_end_ = area_end; 465 chunk->area_end_ = area_end;
466 chunk->flags_ = 0; 466 chunk->flags_ = 0;
467 chunk->set_owner(owner); 467 chunk->set_owner(owner);
468 chunk->InitializeReservedMemory(); 468 chunk->InitializeReservedMemory();
469 chunk->slots_buffer_ = NULL; 469 chunk->slots_buffer_ = NULL;
470 chunk->skip_list_ = NULL; 470 chunk->skip_list_ = NULL;
471 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; 471 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity;
472 chunk->progress_bar_ = 0; 472 chunk->progress_bar_ = 0;
473 chunk->high_water_mark_.SetValue(static_cast<intptr_t>(area_start - base)); 473 chunk->high_water_mark_.SetValue(static_cast<intptr_t>(area_start - base));
474 chunk->set_parallel_sweeping(SWEEPING_DONE); 474 chunk->parallel_sweeping_state().SetValue(kSweepingDone);
475 chunk->parallel_compaction_state().SetValue(kCompactingDone); 475 chunk->parallel_compaction_state().SetValue(kCompactingDone);
476 chunk->mutex_ = NULL; 476 chunk->mutex_ = NULL;
477 chunk->available_in_small_free_list_ = 0; 477 chunk->available_in_small_free_list_ = 0;
478 chunk->available_in_medium_free_list_ = 0; 478 chunk->available_in_medium_free_list_ = 0;
479 chunk->available_in_large_free_list_ = 0; 479 chunk->available_in_large_free_list_ = 0;
480 chunk->available_in_huge_free_list_ = 0; 480 chunk->available_in_huge_free_list_ = 0;
481 chunk->non_available_small_blocks_ = 0; 481 chunk->non_available_small_blocks_ = 0;
482 chunk->ResetLiveBytes(); 482 chunk->ResetLiveBytes();
483 Bitmap::Clear(chunk); 483 Bitmap::Clear(chunk);
484 chunk->initialize_scan_on_scavenge(false); 484 chunk->initialize_scan_on_scavenge(false);
(...skipping 2659 matching lines...) Expand 10 before | Expand all | Expand 10 after
3144 object->ShortPrint(); 3144 object->ShortPrint();
3145 PrintF("\n"); 3145 PrintF("\n");
3146 } 3146 }
3147 printf(" --------------------------------------\n"); 3147 printf(" --------------------------------------\n");
3148 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3148 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3149 } 3149 }
3150 3150
3151 #endif // DEBUG 3151 #endif // DEBUG
3152 } // namespace internal 3152 } // namespace internal
3153 } // namespace v8 3153 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/spaces.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698