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

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

Issue 2314803002: [heap] Switch to 500k pages (Closed)
Patch Set: Fix test Created 4 years, 3 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/globals.h ('k') | src/heap/mark-compact.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 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 Heap::Heap() 72 Heap::Heap()
73 : external_memory_(0), 73 : external_memory_(0),
74 external_memory_limit_(kExternalAllocationSoftLimit), 74 external_memory_limit_(kExternalAllocationSoftLimit),
75 external_memory_at_last_mark_compact_(0), 75 external_memory_at_last_mark_compact_(0),
76 isolate_(nullptr), 76 isolate_(nullptr),
77 code_range_size_(0), 77 code_range_size_(0),
78 // semispace_size_ should be a power of 2 and old_generation_size_ should 78 // semispace_size_ should be a power of 2 and old_generation_size_ should
79 // be a multiple of Page::kPageSize. 79 // be a multiple of Page::kPageSize.
80 max_semi_space_size_(8 * (kPointerSize / 4) * MB), 80 max_semi_space_size_(8 * (kPointerSize / 4) * MB),
81 initial_semispace_size_(Page::kPageSize), 81 initial_semispace_size_(MB),
82 max_old_generation_size_(700ul * (kPointerSize / 4) * MB), 82 max_old_generation_size_(700ul * (kPointerSize / 4) * MB),
83 initial_old_generation_size_(max_old_generation_size_ / 83 initial_old_generation_size_(max_old_generation_size_ /
84 kInitalOldGenerationLimitFactor), 84 kInitalOldGenerationLimitFactor),
85 old_generation_size_configured_(false), 85 old_generation_size_configured_(false),
86 max_executable_size_(256ul * (kPointerSize / 4) * MB), 86 max_executable_size_(256ul * (kPointerSize / 4) * MB),
87 // Variables set based on semispace_size_ and old_generation_size_ in 87 // Variables set based on semispace_size_ and old_generation_size_ in
88 // ConfigureHeap. 88 // ConfigureHeap.
89 // Will be 4 * reserved_semispace_size_ to ensure that young 89 // Will be 4 * reserved_semispace_size_ to ensure that young
90 // generation can be aligned to its size. 90 // generation can be aligned to its size.
91 maximum_committed_(0), 91 maximum_committed_(0),
(...skipping 6383 matching lines...) Expand 10 before | Expand all | Expand 10 after
6475 } 6475 }
6476 6476
6477 6477
6478 // static 6478 // static
6479 int Heap::GetStaticVisitorIdForMap(Map* map) { 6479 int Heap::GetStaticVisitorIdForMap(Map* map) {
6480 return StaticVisitorBase::GetVisitorId(map); 6480 return StaticVisitorBase::GetVisitorId(map);
6481 } 6481 }
6482 6482
6483 } // namespace internal 6483 } // namespace internal
6484 } // namespace v8 6484 } // namespace v8
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698