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

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

Issue 2319683002: [heap] Fixes for heap testing (Closed)
Patch Set: 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 | « no previous file | test/cctest/heap/test-heap.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 5037 matching lines...) Expand 10 before | Expand all | Expand 10 after
5048 5048
5049 if (Page::kPageSize > MB) { 5049 if (Page::kPageSize > MB) {
5050 max_semi_space_size_ = ROUND_UP(max_semi_space_size_, Page::kPageSize); 5050 max_semi_space_size_ = ROUND_UP(max_semi_space_size_, Page::kPageSize);
5051 max_old_generation_size_ = 5051 max_old_generation_size_ =
5052 ROUND_UP(max_old_generation_size_, Page::kPageSize); 5052 ROUND_UP(max_old_generation_size_, Page::kPageSize);
5053 max_executable_size_ = ROUND_UP(max_executable_size_, Page::kPageSize); 5053 max_executable_size_ = ROUND_UP(max_executable_size_, Page::kPageSize);
5054 } 5054 }
5055 5055
5056 if (FLAG_stress_compaction) { 5056 if (FLAG_stress_compaction) {
5057 // This will cause more frequent GCs when stressing. 5057 // This will cause more frequent GCs when stressing.
5058 max_semi_space_size_ = Page::kPageSize; 5058 max_semi_space_size_ = MB;
5059 } 5059 }
5060 5060
5061 // The new space size must be a power of two to support single-bit testing 5061 // The new space size must be a power of two to support single-bit testing
5062 // for containment. 5062 // for containment.
5063 max_semi_space_size_ = 5063 max_semi_space_size_ =
5064 base::bits::RoundUpToPowerOfTwo32(max_semi_space_size_); 5064 base::bits::RoundUpToPowerOfTwo32(max_semi_space_size_);
5065 5065
5066 if (FLAG_min_semi_space_size > 0) { 5066 if (FLAG_min_semi_space_size > 0) {
5067 int initial_semispace_size = FLAG_min_semi_space_size * MB; 5067 int initial_semispace_size = FLAG_min_semi_space_size * MB;
5068 if (initial_semispace_size > max_semi_space_size_) { 5068 if (initial_semispace_size > max_semi_space_size_) {
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
6529 } 6529 }
6530 6530
6531 6531
6532 // static 6532 // static
6533 int Heap::GetStaticVisitorIdForMap(Map* map) { 6533 int Heap::GetStaticVisitorIdForMap(Map* map) {
6534 return StaticVisitorBase::GetVisitorId(map); 6534 return StaticVisitorBase::GetVisitorId(map);
6535 } 6535 }
6536 6536
6537 } // namespace internal 6537 } // namespace internal
6538 } // namespace v8 6538 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698