test-spaces.cc
Source contains an unconditional loopimports src/base/platform/platform.h
SHA-256807211b282bbb316b31124a3985f79f8e47fb323b88ebb0992c3e49db8a254f8
MaleculeH(Db)Md(In)
Evidence
1// Copyright 2011 the V8 project authors. All rights reserved.
2// Redistribution and use in source and binary forms, with or without
3// modification, are permitted provided that the following conditions are
4// met:
5//
6// * Redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer.
8// * Redistributions in binary form must r …
18:22… PLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20// OWNER OR CONTRIBUTOR …
26:25… N IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28#include <stdlib.h>
29
30#include <memory>
31
32#include "include/v8-initialization.h"
33#include "include/v8-platform.h"
34#include "src/base/bounded-page-allocator.h"
35#include "src/base/macros.h"
36#include "src/base/platform/platform.h"
37#include "src/common/globals.h"
38#include "src/heap/allocation-result.h"
39#include "src/heap/factory.h"
40#include "src/heap/heap.h"
41#include "src/heap/large-spaces.h"
42#include "src/heap/main-allocator.h"
43#include "src/heap/memory-allocator.h"
44#include "src/heap/memory-pool.h"
45#include "src/heap/mutable-page-metadata.h"
46#include "src/heap/spaces-inl.h"
47#include "src/heap/spaces.h"
48#include "src/objects/free-space.h"
49#include "src/objects/objects-inl.h"
50#include "src/snapshot/snapshot.h"
51#include "test/cctest/cctest.h"
52#include "test/cctest/heap/heap-tester.h"
53#include "test/cctest/heap/heap-utils.h"
54
55namespace v8 {
⋯4 lines
167:26… _allocator = GetPlatformPageAllocator();
168 size_t area_size;
169
170 for (int i = 0; i < 100; i++) {
171 area_size =
172 RoundUp(PseudorandomAreaSize(), page_allocator->CommitPageSize());
173
174 const size_t code_range_ …
435:47… s(), kTaggedAligned));
436 // All large objects have the same alignment because they start at the
437 // same offset within a page. Fixed double arr …