OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |