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/mark-compact.h" | 10 #include "src/heap/mark-compact.h" |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 chunk->size_ = size; | 486 chunk->size_ = size; |
487 chunk->area_start_ = area_start; | 487 chunk->area_start_ = area_start; |
488 chunk->area_end_ = area_end; | 488 chunk->area_end_ = area_end; |
489 chunk->flags_ = 0; | 489 chunk->flags_ = 0; |
490 chunk->set_owner(owner); | 490 chunk->set_owner(owner); |
491 chunk->InitializeReservedMemory(); | 491 chunk->InitializeReservedMemory(); |
492 chunk->slots_buffer_ = NULL; | 492 chunk->slots_buffer_ = NULL; |
493 chunk->skip_list_ = NULL; | 493 chunk->skip_list_ = NULL; |
494 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; | 494 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; |
495 chunk->progress_bar_ = 0; | 495 chunk->progress_bar_ = 0; |
496 chunk->high_water_mark_ = static_cast<int>(area_start - base); | 496 chunk->high_water_mark_.SetValue(static_cast<intptr_t>(area_start - base)); |
497 chunk->set_parallel_sweeping(SWEEPING_DONE); | 497 chunk->set_parallel_sweeping(SWEEPING_DONE); |
498 chunk->mutex_ = NULL; | 498 chunk->mutex_ = NULL; |
499 chunk->available_in_small_free_list_ = 0; | 499 chunk->available_in_small_free_list_ = 0; |
500 chunk->available_in_medium_free_list_ = 0; | 500 chunk->available_in_medium_free_list_ = 0; |
501 chunk->available_in_large_free_list_ = 0; | 501 chunk->available_in_large_free_list_ = 0; |
502 chunk->available_in_huge_free_list_ = 0; | 502 chunk->available_in_huge_free_list_ = 0; |
503 chunk->non_available_small_blocks_ = 0; | 503 chunk->non_available_small_blocks_ = 0; |
504 chunk->ResetLiveBytes(); | 504 chunk->ResetLiveBytes(); |
505 Bitmap::Clear(chunk); | 505 Bitmap::Clear(chunk); |
506 chunk->initialize_scan_on_scavenge(false); | 506 chunk->initialize_scan_on_scavenge(false); |
(...skipping 2678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3185 object->ShortPrint(); | 3185 object->ShortPrint(); |
3186 PrintF("\n"); | 3186 PrintF("\n"); |
3187 } | 3187 } |
3188 printf(" --------------------------------------\n"); | 3188 printf(" --------------------------------------\n"); |
3189 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3189 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3190 } | 3190 } |
3191 | 3191 |
3192 #endif // DEBUG | 3192 #endif // DEBUG |
3193 } // namespace internal | 3193 } // namespace internal |
3194 } // namespace v8 | 3194 } // namespace v8 |
OLD | NEW |