V8 Project
spaces.h File Reference
#include "src/allocation.h"
#include "src/base/atomicops.h"
#include "src/base/bits.h"
#include "src/base/platform/mutex.h"
#include "src/hashmap.h"
#include "src/list.h"
#include "src/log.h"
#include "src/utils.h"
+ Include dependency graph for spaces.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  v8::internal::MarkBit
 
class  v8::internal::Bitmap
 
class  v8::internal::Bitmap::CellPrinter
 
class  v8::internal::MemoryChunk
 
class  v8::internal::Page
 
class  v8::internal::LargePage
 
class  v8::internal::Space
 
class  v8::internal::CodeRange
 
class  v8::internal::CodeRange::FreeBlock
 
class  v8::internal::SkipList
 
class  v8::internal::MemoryAllocator
 
struct  v8::internal::MemoryAllocator::MemoryAllocationCallbackRegistration
 
class  v8::internal::ObjectIterator
 
class  v8::internal::HeapObjectIterator
 
class  v8::internal::BASE_EMBEDDED< Visitor >
 
class  v8::internal::AllocationInfo
 
class  v8::internal::FreeListNode
 
class  v8::internal::FreeListCategory
 
class  v8::internal::FreeList
 
class  v8::internal::AllocationResult
 
class  v8::internal::PagedSpace
 
struct  v8::internal::PagedSpace::SizeStats
 
class  v8::internal::HistogramInfo
 
class  v8::internal::NewSpacePage
 
class  v8::internal::SemiSpace
 
class  v8::internal::SemiSpaceIterator
 
class  v8::internal::NewSpace
 
class  v8::internal::OldSpace
 
class  v8::internal::MapSpace
 
class  v8::internal::CellSpace
 
class  v8::internal::PropertyCellSpace
 
class  v8::internal::LargeObjectSpace
 
class  v8::internal::LargeObjectIterator
 

Namespaces

 v8
 Debugger support for the V8 JavaScript engine.
 
 v8::internal
 

Macros

#define DCHECK_PAGE_ALIGNED(address)    DCHECK((OffsetFrom(address) & Page::kPageAlignmentMask) == 0)
 
#define DCHECK_OBJECT_ALIGNED(address)    DCHECK((OffsetFrom(address) & kObjectAlignmentMask) == 0)
 
#define DCHECK_OBJECT_SIZE(size)    DCHECK((0 < size) && (size <= Page::kMaxRegularHeapObjectSize))
 
#define DCHECK_PAGE_OFFSET(offset)    DCHECK((Page::kObjectStartOffset <= offset) && (offset <= Page::kPageSize))
 
#define DCHECK_MAP_PAGE_INDEX(index)    DCHECK((0 <= index) && (index <= MapSpace::kMaxMapPageIndex))
 
#define FRAGMENTATION_STATS_ACCESSORS(type, name)
 
#define DCHECK_SEMISPACE_ALLOCATION_INFO(info, space)
 

Enumerations

enum  v8::internal::SemiSpaceId { v8::internal::kFromSpace = 0 , v8::internal::kToSpace = 1 }
 

Functions

 v8::internal::STATIC_ASSERT (sizeof(MemoryChunk)<=MemoryChunk::kHeaderSize)
 
 v8::internal::STATIC_ASSERT (sizeof(Page)<=MemoryChunk::kHeaderSize)
 
 v8::internal::STATIC_ASSERT (sizeof(LargePage)<=MemoryChunk::kHeaderSize)
 

Macro Definition Documentation

◆ DCHECK_MAP_PAGE_INDEX

#define DCHECK_MAP_PAGE_INDEX (   index)     DCHECK((0 <= index) && (index <= MapSpace::kMaxMapPageIndex))

Definition at line 90 of file spaces.h.

◆ DCHECK_OBJECT_ALIGNED

#define DCHECK_OBJECT_ALIGNED (   address)     DCHECK((OffsetFrom(address) & kObjectAlignmentMask) == 0)

Definition at line 81 of file spaces.h.

◆ DCHECK_OBJECT_SIZE

#define DCHECK_OBJECT_SIZE (   size)     DCHECK((0 < size) && (size <= Page::kMaxRegularHeapObjectSize))

Definition at line 84 of file spaces.h.

◆ DCHECK_PAGE_ALIGNED

#define DCHECK_PAGE_ALIGNED (   address)     DCHECK((OffsetFrom(address) & Page::kPageAlignmentMask) == 0)

Definition at line 78 of file spaces.h.

◆ DCHECK_PAGE_OFFSET

#define DCHECK_PAGE_OFFSET (   offset)     DCHECK((Page::kObjectStartOffset <= offset) && (offset <= Page::kPageSize))

Definition at line 87 of file spaces.h.

◆ DCHECK_SEMISPACE_ALLOCATION_INFO

#define DCHECK_SEMISPACE_ALLOCATION_INFO (   info,
  space 
)
Value:
SLOW_DCHECK((space).page_low() <= (info).top() && \
(info).top() <= (space).page_high() && \
(info).limit() <= (space).page_high())
#define SLOW_DCHECK(condition)
Definition: checks.h:30
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi space(in MBytes)

Definition at line 2611 of file spaces.h.

◆ FRAGMENTATION_STATS_ACCESSORS

#define FRAGMENTATION_STATS_ACCESSORS (   type,
  name 
)
Value:
type name() { return name##_; } \
void set_##name(type name) { name##_ = name; } \
void add_##name(type name) { name##_ += name; }
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define _

Definition at line 772 of file spaces.h.