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