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

Side by Side Diff: test/cctest/heap/heap-utils.h

Issue 2311203002: Move kMaxRegularHeapObjectSize into globals (Closed)
Patch Set: Saving the file helps... 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/x87/macro-assembler-x87.cc ('k') | test/cctest/heap/test-alloc.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef HEAP_HEAP_UTILS_H_ 5 #ifndef HEAP_HEAP_UTILS_H_
6 #define HEAP_HEAP_UTILS_H_ 6 #define HEAP_HEAP_UTILS_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 namespace heap { 12 namespace heap {
13 13
14 void SealCurrentObjects(Heap* heap); 14 void SealCurrentObjects(Heap* heap);
15 15
16 int FixedArrayLenFromSize(int size); 16 int FixedArrayLenFromSize(int size);
17 17
18 // Fill a page with fixed arrays leaving remainder behind. The function does 18 // Fill a page with fixed arrays leaving remainder behind. The function does
19 // not create additional fillers and assumes that the space has just been 19 // not create additional fillers and assumes that the space has just been
20 // sealed. 20 // sealed.
21 std::vector<Handle<FixedArray>> FillOldSpacePageWithFixedArrays(Heap* heap, 21 std::vector<Handle<FixedArray>> FillOldSpacePageWithFixedArrays(Heap* heap,
22 int remainder); 22 int remainder);
23 23
24 std::vector<Handle<FixedArray>> CreatePadding( 24 std::vector<Handle<FixedArray>> CreatePadding(
25 Heap* heap, int padding_size, PretenureFlag tenure, 25 Heap* heap, int padding_size, PretenureFlag tenure,
26 int object_size = Page::kMaxRegularHeapObjectSize); 26 int object_size = kMaxRegularHeapObjectSize);
27 27
28 void AllocateAllButNBytes( 28 void AllocateAllButNBytes(
29 v8::internal::NewSpace* space, int extra_bytes, 29 v8::internal::NewSpace* space, int extra_bytes,
30 std::vector<Handle<FixedArray>>* out_handles = nullptr); 30 std::vector<Handle<FixedArray>>* out_handles = nullptr);
31 31
32 void FillCurrentPage(v8::internal::NewSpace* space, 32 void FillCurrentPage(v8::internal::NewSpace* space,
33 std::vector<Handle<FixedArray>>* out_handles = nullptr); 33 std::vector<Handle<FixedArray>>* out_handles = nullptr);
34 34
35 // Helper function that simulates a full new-space in the heap. 35 // Helper function that simulates a full new-space in the heap.
36 bool FillUpOnePage(v8::internal::NewSpace* space, 36 bool FillUpOnePage(v8::internal::NewSpace* space,
(...skipping 11 matching lines...) Expand all
48 48
49 void AbandonCurrentlyFreeMemory(PagedSpace* space); 49 void AbandonCurrentlyFreeMemory(PagedSpace* space);
50 50
51 void GcAndSweep(Heap* heap, AllocationSpace space); 51 void GcAndSweep(Heap* heap, AllocationSpace space);
52 52
53 } // namespace heap 53 } // namespace heap
54 } // namespace internal 54 } // namespace internal
55 } // namespace v8 55 } // namespace v8
56 56
57 #endif // HEAP_HEAP_UTILS_H_ 57 #endif // HEAP_HEAP_UTILS_H_
OLDNEW
« no previous file with comments | « src/x87/macro-assembler-x87.cc ('k') | test/cctest/heap/test-alloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698