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

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

Issue 2013713003: [heap] Switch to 500k pages (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix ReleaseOverReservedPages for no snapshot builds Created 4 years, 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/ast/context-slot-cache.h" 9 #include "src/ast/context-slot-cache.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 Heap::Heap() 71 Heap::Heap()
72 : external_memory_(0), 72 : external_memory_(0),
73 external_memory_limit_(kExternalAllocationLimit), 73 external_memory_limit_(kExternalAllocationLimit),
74 external_memory_at_last_mark_compact_(0), 74 external_memory_at_last_mark_compact_(0),
75 isolate_(nullptr), 75 isolate_(nullptr),
76 code_range_size_(0), 76 code_range_size_(0),
77 // semispace_size_ should be a power of 2 and old_generation_size_ should 77 // semispace_size_ should be a power of 2 and old_generation_size_ should
78 // be a multiple of Page::kPageSize. 78 // be a multiple of Page::kPageSize.
79 max_semi_space_size_(8 * (kPointerSize / 4) * MB), 79 max_semi_space_size_(8 * (kPointerSize / 4) * MB),
80 initial_semispace_size_(Page::kPageSize), 80 initial_semispace_size_(MB),
81 max_old_generation_size_(700ul * (kPointerSize / 4) * MB), 81 max_old_generation_size_(700ul * (kPointerSize / 4) * MB),
82 initial_old_generation_size_(max_old_generation_size_ / 82 initial_old_generation_size_(max_old_generation_size_ /
83 kInitalOldGenerationLimitFactor), 83 kInitalOldGenerationLimitFactor),
84 old_generation_size_configured_(false), 84 old_generation_size_configured_(false),
85 max_executable_size_(256ul * (kPointerSize / 4) * MB), 85 max_executable_size_(256ul * (kPointerSize / 4) * MB),
86 // Variables set based on semispace_size_ and old_generation_size_ in 86 // Variables set based on semispace_size_ and old_generation_size_ in
87 // ConfigureHeap. 87 // ConfigureHeap.
88 // Will be 4 * reserved_semispace_size_ to ensure that young 88 // Will be 4 * reserved_semispace_size_ to ensure that young
89 // generation can be aligned to its size. 89 // generation can be aligned to its size.
90 maximum_committed_(0), 90 maximum_committed_(0),
(...skipping 6370 matching lines...) Expand 10 before | Expand all | Expand 10 after
6461 } 6461 }
6462 6462
6463 6463
6464 // static 6464 // static
6465 int Heap::GetStaticVisitorIdForMap(Map* map) { 6465 int Heap::GetStaticVisitorIdForMap(Map* map) {
6466 return StaticVisitorBase::GetVisitorId(map); 6466 return StaticVisitorBase::GetVisitorId(map);
6467 } 6467 }
6468 6468
6469 } // namespace internal 6469 } // namespace internal
6470 } // namespace v8 6470 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698