Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: src/heap/spaces.cc

Issue 2369963002: [base] Remove PointersMatch, making a separate std::equals hashmap (Closed)
Patch Set: Fix the other simulators Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/interpreter/constant-array-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/interpreter/constant-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698