V8 Project
v8::internal::AllocationResult Class Reference

#include <spaces.h>

+ Collaboration diagram for v8::internal::AllocationResult:

Public Member Functions

 AllocationResult (Object *object)
 
 AllocationResult ()
 
bool IsRetry ()
 
template<typename T >
bool To (T **obj)
 
ObjectToObjectChecked ()
 
AllocationSpace RetrySpace ()
 

Static Public Member Functions

static AllocationResult Retry (AllocationSpace space=NEW_SPACE)
 

Private Member Functions

 AllocationResult (AllocationSpace space)
 

Private Attributes

Objectobject_
 
AllocationSpace retry_space_
 

Detailed Description

Definition at line 1607 of file spaces.h.

Constructor & Destructor Documentation

◆ AllocationResult() [1/3]

v8::internal::AllocationResult::AllocationResult ( Object object)
inline

Definition at line 1610 of file spaces.h.

1611  : object_(object),
AllocationSpace retry_space_
Definition: spaces.h:1644
@ INVALID_SPACE
Definition: globals.h:367

◆ AllocationResult() [2/3]

v8::internal::AllocationResult::AllocationResult ( )
inline

Definition at line 1614 of file spaces.h.

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 NULL

Referenced by Retry().

+ Here is the caller graph for this function:

◆ AllocationResult() [3/3]

v8::internal::AllocationResult::AllocationResult ( AllocationSpace  space)
inlineexplicitprivate

Definition at line 1640 of file spaces.h.

1641  : object_(NULL), retry_space_(space) {}
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)

Member Function Documentation

◆ IsRetry()

bool v8::internal::AllocationResult::IsRetry ( )
inline

Definition at line 1620 of file spaces.h.

1620 { return retry_space_ != INVALID_SPACE; }

References v8::internal::INVALID_SPACE, and retry_space_.

Referenced by v8::internal::Heap::AllocateRaw(), v8::internal::MarkCompactCollector::DiscoverAndEvacuateBlackObjectsOnPage(), RetrySpace(), To(), and ToObjectChecked().

+ Here is the caller graph for this function:

◆ Retry()

static AllocationResult v8::internal::AllocationResult::Retry ( AllocationSpace  space = NEW_SPACE)
inlinestatic

Definition at line 1616 of file spaces.h.

1616  {
1617  return AllocationResult(space);
1618  }

References AllocationResult(), and space().

Referenced by v8::internal::LargeObjectSpace::AllocateRaw(), v8::internal::PagedSpace::AllocateRaw(), v8::internal::Heap::AllocateRaw(), and v8::internal::NewSpace::SlowAllocateRaw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RetrySpace()

AllocationSpace v8::internal::AllocationResult::RetrySpace ( )
inline

Definition at line 1634 of file spaces.h.

1634  {
1635  DCHECK(IsRetry());
1636  return retry_space_;
1637  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, IsRetry(), and retry_space_.

+ Here is the call graph for this function:

◆ To()

template<typename T >
bool v8::internal::AllocationResult::To ( T **  obj)
inline

Definition at line 1623 of file spaces.h.

1623  {
1624  if (IsRetry()) return false;
1625  *obj = T::cast(object_);
1626  return true;
1627  }

References IsRetry(), and object_.

Referenced by v8::internal::Heap::Allocate(), v8::internal::Heap::AllocateByteArray(), v8::internal::Heap::AllocateCell(), v8::internal::Heap::AllocateCode(), v8::internal::Heap::AllocateConstantPoolArray(), v8::internal::Heap::AllocateEmptyConstantPoolArray(), v8::internal::Heap::AllocateEmptyFixedArray(), v8::internal::Heap::AllocateExtendedConstantPoolArray(), v8::internal::Heap::AllocateExternalArray(), v8::internal::Heap::AllocateFillerObject(), v8::internal::Heap::AllocateFixedArrayWithFiller(), v8::internal::Heap::AllocateFixedTypedArray(), v8::internal::Heap::AllocateForeign(), v8::internal::Heap::AllocateHeapNumber(), v8::internal::Heap::AllocateInternalizedStringImpl(), v8::internal::Heap::AllocateJSObject(), v8::internal::Heap::AllocateJSObjectFromMap(), v8::internal::Heap::AllocateMap(), v8::internal::Heap::AllocateOneByteInternalizedString(), v8::internal::Heap::AllocatePartialMap(), v8::internal::Heap::AllocatePropertyCell(), v8::internal::Heap::AllocateRaw(), v8::internal::Heap::AllocateRawFixedDoubleArray(), v8::internal::Heap::AllocateRawOneByteString(), v8::internal::Heap::AllocateRawTwoByteString(), v8::internal::Heap::AllocateStruct(), v8::internal::Heap::AllocateSymbol(), v8::internal::Heap::AllocateTwoByteInternalizedString(), v8::internal::Heap::AllocateUninitializedFixedArray(), v8::internal::Heap::AllocateUninitializedFixedDoubleArray(), v8::internal::Heap::CopyAndTenureFixedCOWArray(), v8::internal::Heap::CopyCode(), v8::internal::Heap::CopyConstantPoolArrayWithMap(), v8::internal::Heap::CopyFixedArrayWithMap(), v8::internal::Heap::CopyFixedDoubleArrayWithMap(), v8::internal::Heap::CopyJSObject(), v8::internal::Heap::CreateInitialMaps(), v8::internal::MarkCompactCollector::EvacuateLiveObjectsFromPage(), v8::internal::ScavengingVisitor< marks_handling, logging_and_profiling_mode >::PromoteObject(), v8::internal::Heap::ReserveSpace(), v8::internal::ScavengingVisitor< marks_handling, logging_and_profiling_mode >::SemiSpaceCopyObject(), and v8::internal::MarkCompactCollector::TryPromoteObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToObjectChecked()

Object* v8::internal::AllocationResult::ToObjectChecked ( )
inline

Definition at line 1629 of file spaces.h.

1629  {
1630  CHECK(!IsRetry());
1631  return object_;
1632  }
#define CHECK(condition)
Definition: logging.h:36

References CHECK, IsRetry(), and object_.

Referenced by v8::internal::Deserializer::Allocate(), and v8::internal::MarkCompactCollector::DiscoverAndEvacuateBlackObjectsOnPage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ object_

Object* v8::internal::AllocationResult::object_
private

Definition at line 1643 of file spaces.h.

Referenced by To(), and ToObjectChecked().

◆ retry_space_

AllocationSpace v8::internal::AllocationResult::retry_space_
private

Definition at line 1644 of file spaces.h.

Referenced by IsRetry(), and RetrySpace().


The documentation for this class was generated from the following file: