v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
spaces.cc
Go to the documentation of this file.
1// Copyright 2011 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#include "src/heap/spaces.h"
6
7#include <algorithm>
8#include <cinttypes>
9#include <utility>
10
11#include "src/base/bits.h"
13#include "src/base/macros.h"
15#include "src/common/globals.h"
18#include "src/heap/heap.h"
26#include "src/heap/slot-set.h"
27#include "src/init/v8.h"
34#include "src/utils/ostreams.h"
35
36namespace v8 {
37namespace internal {
38
40 std::unique_ptr<FreeList> free_list)
41 : Space(heap, id, std::move(free_list)) {}
42
45
47
51 if (space) return true;
53 }
54
55 // No more spaces left.
56 return false;
57}
58
65
66} // namespace internal
67} // namespace v8
Space * space(int idx) const
Definition heap-inl.h:154
SpaceIterator(Heap *heap)
Definition spaces.cc:43
SpaceWithLinearArea(Heap *heap, AllocationSpace id, std::unique_ptr< FreeList > free_list)
Definition spaces.cc:39
STL namespace.
too high values may cause the compiler to set high thresholds for inlining to as much as possible avoid inlined allocation of objects that cannot escape trace load stores from virtual maglev objects use TurboFan fast string builder analyze liveness of environment slots and zap dead values trace TurboFan load elimination emit data about basic block usage in builtins to this enable builtin reordering when run mksnapshot flag for emit warnings when applying builtin profile data verify register allocation in TurboFan randomly schedule instructions to stress dependency tracking enable store store elimination in TurboFan rewrite far to near simulate GC compiler thread race related to allow float parameters to be passed in simulator mode JS Wasm Run additional turbo_optimize_inlined_js_wasm_wrappers enable experimental feedback collection in generic lowering enable Turboshaft s WasmLoadElimination enable Turboshaft s low level load elimination for JS enable Turboshaft s escape analysis for string concatenation use enable Turbolev features that we want to ship in the not too far future trace individual Turboshaft reduction steps trace intermediate Turboshaft reduction steps invocation count threshold for early optimization Enables optimizations which favor memory size over execution speed Enables sampling allocation profiler with X as a sample interval min size of a semi the new space consists of two semi spaces max size of the Collect garbage after Collect garbage after keeps maps alive for< n > old space garbage collections print one detailed trace line in allocation gc speed threshold for starting incremental marking via a task in percent of available space
Definition flags.cc:2128
@ FIRST_MUTABLE_SPACE
Definition globals.h:1324
@ LAST_MUTABLE_SPACE
Definition globals.h:1325
#define DCHECK_LE(v1, v2)
Definition logging.h:490
#define DCHECK_NOT_NULL(val)
Definition logging.h:492
Heap * heap_