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 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2807 | 2807 |
2808 LargeObjectSpace::LargeObjectSpace(Heap* heap, AllocationSpace id) | 2808 LargeObjectSpace::LargeObjectSpace(Heap* heap, AllocationSpace id) |
2809 : Space(heap, id, NOT_EXECUTABLE), // Managed on a per-allocation basis | 2809 : Space(heap, id, NOT_EXECUTABLE), // Managed on a per-allocation basis |
2810 first_page_(NULL), | 2810 first_page_(NULL), |
2811 size_(0), | 2811 size_(0), |
2812 page_count_(0), | 2812 page_count_(0), |
2813 objects_size_(0), | 2813 objects_size_(0), |
2814 chunk_map_(ComparePointers, 1024) {} | 2814 chunk_map_(ComparePointers, 1024) {} |
2815 | 2815 |
2816 | 2816 |
| 2817 LargeObjectSpace::~LargeObjectSpace() {} |
| 2818 |
| 2819 |
2817 bool LargeObjectSpace::SetUp() { | 2820 bool LargeObjectSpace::SetUp() { |
2818 first_page_ = NULL; | 2821 first_page_ = NULL; |
2819 size_ = 0; | 2822 size_ = 0; |
2820 maximum_committed_ = 0; | 2823 maximum_committed_ = 0; |
2821 page_count_ = 0; | 2824 page_count_ = 0; |
2822 objects_size_ = 0; | 2825 objects_size_ = 0; |
2823 chunk_map_.Clear(); | 2826 chunk_map_.Clear(); |
2824 return true; | 2827 return true; |
2825 } | 2828 } |
2826 | 2829 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3107 object->ShortPrint(); | 3110 object->ShortPrint(); |
3108 PrintF("\n"); | 3111 PrintF("\n"); |
3109 } | 3112 } |
3110 printf(" --------------------------------------\n"); | 3113 printf(" --------------------------------------\n"); |
3111 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3114 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3112 } | 3115 } |
3113 | 3116 |
3114 #endif // DEBUG | 3117 #endif // DEBUG |
3115 } // namespace internal | 3118 } // namespace internal |
3116 } // namespace v8 | 3119 } // namespace v8 |
OLD | NEW |