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 2925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2936 | 2936 |
2937 // ----------------------------------------------------------------------------- | 2937 // ----------------------------------------------------------------------------- |
2938 // LargeObjectSpace | 2938 // LargeObjectSpace |
2939 | 2939 |
2940 LargeObjectSpace::LargeObjectSpace(Heap* heap, AllocationSpace id) | 2940 LargeObjectSpace::LargeObjectSpace(Heap* heap, AllocationSpace id) |
2941 : Space(heap, id, NOT_EXECUTABLE), // Managed on a per-allocation basis | 2941 : Space(heap, id, NOT_EXECUTABLE), // Managed on a per-allocation basis |
2942 first_page_(NULL), | 2942 first_page_(NULL), |
2943 size_(0), | 2943 size_(0), |
2944 page_count_(0), | 2944 page_count_(0), |
2945 objects_size_(0), | 2945 objects_size_(0), |
2946 chunk_map_(base::HashMap::PointersMatch, 1024) {} | 2946 chunk_map_(1024) {} |
2947 | 2947 |
2948 LargeObjectSpace::~LargeObjectSpace() {} | 2948 LargeObjectSpace::~LargeObjectSpace() {} |
2949 | 2949 |
2950 | 2950 |
2951 bool LargeObjectSpace::SetUp() { | 2951 bool LargeObjectSpace::SetUp() { |
2952 first_page_ = NULL; | 2952 first_page_ = NULL; |
2953 size_ = 0; | 2953 size_ = 0; |
2954 page_count_ = 0; | 2954 page_count_ = 0; |
2955 objects_size_ = 0; | 2955 objects_size_ = 0; |
2956 chunk_map_.Clear(); | 2956 chunk_map_.Clear(); |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3239 object->ShortPrint(); | 3239 object->ShortPrint(); |
3240 PrintF("\n"); | 3240 PrintF("\n"); |
3241 } | 3241 } |
3242 printf(" --------------------------------------\n"); | 3242 printf(" --------------------------------------\n"); |
3243 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); | 3243 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); |
3244 } | 3244 } |
3245 | 3245 |
3246 #endif // DEBUG | 3246 #endif // DEBUG |
3247 } // namespace internal | 3247 } // namespace internal |
3248 } // namespace v8 | 3248 } // namespace v8 |
OLD | NEW |