OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 chunk->area_start_ = area_start; | 476 chunk->area_start_ = area_start; |
477 chunk->area_end_ = area_end; | 477 chunk->area_end_ = area_end; |
478 chunk->flags_ = 0; | 478 chunk->flags_ = 0; |
479 chunk->set_owner(owner); | 479 chunk->set_owner(owner); |
480 chunk->InitializeReservedMemory(); | 480 chunk->InitializeReservedMemory(); |
481 chunk->slots_buffer_ = NULL; | 481 chunk->slots_buffer_ = NULL; |
482 chunk->skip_list_ = NULL; | 482 chunk->skip_list_ = NULL; |
483 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; | 483 chunk->write_barrier_counter_ = kWriteBarrierCounterGranularity; |
484 chunk->progress_bar_ = 0; | 484 chunk->progress_bar_ = 0; |
485 chunk->high_water_mark_ = static_cast<int>(area_start - base); | 485 chunk->high_water_mark_ = static_cast<int>(area_start - base); |
486 chunk->parallel_sweeping_ = 0; | 486 chunk->set_parallel_sweeping(PARALLEL_SWEEPING_DONE); |
487 chunk->available_in_small_free_list_ = 0; | 487 chunk->available_in_small_free_list_ = 0; |
488 chunk->available_in_medium_free_list_ = 0; | 488 chunk->available_in_medium_free_list_ = 0; |
489 chunk->available_in_large_free_list_ = 0; | 489 chunk->available_in_large_free_list_ = 0; |
490 chunk->available_in_huge_free_list_ = 0; | 490 chunk->available_in_huge_free_list_ = 0; |
491 chunk->non_available_small_blocks_ = 0; | 491 chunk->non_available_small_blocks_ = 0; |
492 chunk->ResetLiveBytes(); | 492 chunk->ResetLiveBytes(); |
493 Bitmap::Clear(chunk); | 493 Bitmap::Clear(chunk); |
494 chunk->initialize_scan_on_scavenge(false); | 494 chunk->initialize_scan_on_scavenge(false); |
495 chunk->SetFlag(WAS_SWEPT_PRECISELY); | 495 chunk->SetFlag(WAS_SWEPT_PRECISELY); |
496 | 496 |
(...skipping 2704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3201 object->ShortPrint(); | 3201 object->ShortPrint(); |
3202 PrintF("\n"); | 3202 PrintF("\n"); |
3203 } | 3203 } |
3204 printf(" --------------------------------------\n"); | 3204 printf(" --------------------------------------\n"); |
3205 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3205 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3206 } | 3206 } |
3207 | 3207 |
3208 #endif // DEBUG | 3208 #endif // DEBUG |
3209 | 3209 |
3210 } } // namespace v8::internal | 3210 } } // namespace v8::internal |
OLD | NEW |