| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 chunk->area_start_ = area_start; | 506 chunk->area_start_ = area_start; |
| 507 chunk->area_end_ = area_end; | 507 chunk->area_end_ = area_end; |
| 508 chunk->flags_ = Flags(NO_FLAGS); | 508 chunk->flags_ = Flags(NO_FLAGS); |
| 509 chunk->set_owner(owner); | 509 chunk->set_owner(owner); |
| 510 chunk->InitializeReservedMemory(); | 510 chunk->InitializeReservedMemory(); |
| 511 chunk->old_to_new_slots_.SetValue(nullptr); | 511 chunk->old_to_new_slots_.SetValue(nullptr); |
| 512 chunk->old_to_old_slots_ = nullptr; | 512 chunk->old_to_old_slots_ = nullptr; |
| 513 chunk->typed_old_to_new_slots_.SetValue(nullptr); | 513 chunk->typed_old_to_new_slots_.SetValue(nullptr); |
| 514 chunk->typed_old_to_old_slots_ = nullptr; | 514 chunk->typed_old_to_old_slots_ = nullptr; |
| 515 chunk->skip_list_ = nullptr; | 515 chunk->skip_list_ = nullptr; |
| 516 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; | |
| 517 chunk->progress_bar_ = 0; | 516 chunk->progress_bar_ = 0; |
| 518 chunk->high_water_mark_.SetValue(static_cast<intptr_t>(area_start - base)); | 517 chunk->high_water_mark_.SetValue(static_cast<intptr_t>(area_start - base)); |
| 519 chunk->concurrent_sweeping_state().SetValue(kSweepingDone); | 518 chunk->concurrent_sweeping_state().SetValue(kSweepingDone); |
| 520 chunk->mutex_ = new base::Mutex(); | 519 chunk->mutex_ = new base::Mutex(); |
| 521 chunk->available_in_free_list_ = 0; | 520 chunk->available_in_free_list_ = 0; |
| 522 chunk->wasted_memory_ = 0; | 521 chunk->wasted_memory_ = 0; |
| 523 chunk->ResetLiveBytes(); | 522 chunk->ResetLiveBytes(); |
| 524 chunk->ClearLiveness(); | 523 chunk->ClearLiveness(); |
| 525 chunk->set_next_chunk(nullptr); | 524 chunk->set_next_chunk(nullptr); |
| 526 chunk->set_prev_chunk(nullptr); | 525 chunk->set_prev_chunk(nullptr); |
| (...skipping 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3235 object->ShortPrint(); | 3234 object->ShortPrint(); |
| 3236 PrintF("\n"); | 3235 PrintF("\n"); |
| 3237 } | 3236 } |
| 3238 printf(" --------------------------------------\n"); | 3237 printf(" --------------------------------------\n"); |
| 3239 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3238 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
| 3240 } | 3239 } |
| 3241 | 3240 |
| 3242 #endif // DEBUG | 3241 #endif // DEBUG |
| 3243 } // namespace internal | 3242 } // namespace internal |
| 3244 } // namespace v8 | 3243 } // namespace v8 |
| OLD | NEW |