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

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

Issue 1999753002: [heap] Harden heap-related cctests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix for win Created 4 years, 7 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 | « test/cctest/cctest.gyp ('k') | test/cctest/heap/heap-utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef HEAP_HEAP_UTILS_H_
6 #define HEAP_HEAP_UTILS_H_
7
8 #include "src/heap/heap.h"
9
10 namespace v8 {
11 namespace internal {
12 namespace heap {
13
14 void SealCurrentObjects(Heap* heap);
15
16 int FixedArrayLenFromSize(int size);
17
18 std::vector<Handle<FixedArray>> CreatePadding(
19 Heap* heap, int padding_size, PretenureFlag tenure,
20 int object_size = Page::kMaxRegularHeapObjectSize);
21
22 void AllocateAllButNBytes(
23 v8::internal::NewSpace* space, int extra_bytes,
24 std::vector<Handle<FixedArray>>* out_handles = nullptr);
25
26 void FillCurrentPage(v8::internal::NewSpace* space,
27 std::vector<Handle<FixedArray>>* out_handles = nullptr);
28
29 // Helper function that simulates a full new-space in the heap.
30 bool FillUpOnePage(v8::internal::NewSpace* space,
31 std::vector<Handle<FixedArray>>* out_handles = nullptr);
32
33 void SimulateFullSpace(v8::internal::NewSpace* space,
34 std::vector<Handle<FixedArray>>* out_handles = nullptr);
35
36 // Helper function that simulates many incremental marking steps until
37 // marking is completed.
38 void SimulateIncrementalMarking(i::Heap* heap, bool force_completion = true);
39
40 // Helper function that simulates a full old-space in the heap.
41 void SimulateFullSpace(v8::internal::PagedSpace* space);
42
43 } // namespace heap
44 } // namespace internal
45 } // namespace v8
46
47 #endif // HEAP_HEAP_UTILS_H_
OLDNEW
« no previous file with comments | « test/cctest/cctest.gyp ('k') | test/cctest/heap/heap-utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698