V8 Project
v8::internal::ArrayConstructorStubBase Class Reference

#include <code-stubs.h>

+ Inheritance diagram for v8::internal::ArrayConstructorStubBase:
+ Collaboration diagram for v8::internal::ArrayConstructorStubBase:

Classes

class  AllocationSiteOverrideModeBits
 
class  ElementsKindBits
 

Public Member Functions

 ArrayConstructorStubBase (Isolate *isolate, ElementsKind kind, AllocationSiteOverrideMode override_mode)
 
ElementsKind elements_kind () const
 
AllocationSiteOverrideMode override_mode () const
 
- Public Member Functions inherited from v8::internal::HydrogenCodeStub
virtual Code::Kind GetCodeKind () const
 
virtual Handle< CodeGenerateCode ()=0
 
bool IsUninitialized () const
 
Handle< CodeGenerateLightweightMissCode (ExternalReference miss)
 
template<class StateType >
void TraceTransition (StateType from, StateType to)
 

Static Public Member Functions

static void GenerateStubsAheadOfTime (Isolate *isolate)
 
- Static Public Member Functions inherited from v8::internal::HydrogenCodeStub
template<class SubClass >
static Handle< CodeGetUninitialized (Isolate *isolate)
 

Static Public Attributes

static const int kConstructor = 0
 
static const int kAllocationSite = 1
 

Protected Member Functions

OStreamBasePrintName (OStream &os, const char *name) const
 
- Protected Member Functions inherited from v8::internal::HydrogenCodeStub
 HydrogenCodeStub (Isolate *isolate, InitializationState state=INITIALIZED)
 
void set_sub_minor_key (uint32_t key)
 
uint32_t sub_minor_key () const
 

Private Member Functions

 STATIC_ASSERT (LAST_ALLOCATION_SITE_OVERRIDE_MODE==1)
 
 DEFINE_CODE_STUB_BASE (ArrayConstructorStubBase, HydrogenCodeStub)
 

Additional Inherited Members

- Public Types inherited from v8::internal::HydrogenCodeStub
enum  InitializationState { UNINITIALIZED , INITIALIZED }
 
- Static Protected Attributes inherited from v8::internal::HydrogenCodeStub
static const int kSubMinorKeyBits = kStubMinorKeyBits - 1
 

Detailed Description

Definition at line 2015 of file code-stubs.h.

Constructor & Destructor Documentation

◆ ArrayConstructorStubBase()

v8::internal::ArrayConstructorStubBase::ArrayConstructorStubBase ( Isolate isolate,
ElementsKind  kind,
AllocationSiteOverrideMode  override_mode 
)
inline

Definition at line 2017 of file code-stubs.h.

2020  : HydrogenCodeStub(isolate) {
2021  // It only makes sense to override local allocation site behavior
2022  // if there is a difference between the global allocation site policy
2023  // for an ElementsKind and the desired usage of the stub.
2028  }
static AllocationSiteMode GetMode(ElementsKind boilerplate_elements_kind)
Definition: objects-inl.h:1591
AllocationSiteOverrideMode override_mode() const
Definition: code-stubs.h:2034
static U encode(T value)
Definition: utils.h:217
HydrogenCodeStub(Isolate *isolate, InitializationState state=INITIALIZED)
Definition: code-stubs.h:457
void set_sub_minor_key(uint32_t key)
Definition: code-stubs.h:463
#define DCHECK(condition)
Definition: logging.h:205
@ TRACK_ALLOCATION_SITE
Definition: objects.h:8085
@ DISABLE_ALLOCATION_SITES
Definition: code-stubs.h:718

References DCHECK, v8::internal::DISABLE_ALLOCATION_SITES, v8::internal::BitFieldBase< T, shift, size, U >::encode(), v8::internal::AllocationSite::GetMode(), override_mode(), v8::internal::HydrogenCodeStub::set_sub_minor_key(), and v8::internal::TRACK_ALLOCATION_SITE.

+ Here is the call graph for this function:

Member Function Documentation

◆ BasePrintName()

OStream & v8::internal::ArrayConstructorStubBase::BasePrintName ( OStream os,
const char *  name 
) const
protected

Definition at line 826 of file code-stubs.cc.

827  {
828  os << name << "_" << ElementsKindToString(elements_kind());
830  os << "_DISABLE_ALLOCATION_SITES";
831  }
832  return os;
833 }
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
const char * ElementsKindToString(ElementsKind kind)

References v8::internal::DISABLE_ALLOCATION_SITES, elements_kind(), v8::internal::ElementsKindToString(), name, and override_mode().

Referenced by v8::internal::ArraySingleArgumentConstructorStub::PrintName(), v8::internal::ArrayNArgumentsConstructorStub::PrintName(), and v8::internal::ArrayNoArgumentConstructorStub::PrintName().

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

◆ DEFINE_CODE_STUB_BASE()

v8::internal::ArrayConstructorStubBase::DEFINE_CODE_STUB_BASE ( ArrayConstructorStubBase  ,
HydrogenCodeStub   
)
private

◆ elements_kind()

ElementsKind v8::internal::ArrayConstructorStubBase::elements_kind ( ) const
inline

Definition at line 2030 of file code-stubs.h.

2030  {
2032  }
static T decode(U value)
Definition: utils.h:228
uint32_t sub_minor_key() const
Definition: code-stubs.h:467

References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::HydrogenCodeStub::sub_minor_key().

Referenced by BasePrintName().

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

◆ GenerateStubsAheadOfTime()

static void v8::internal::ArrayConstructorStubBase::GenerateStubsAheadOfTime ( Isolate isolate)
static

Referenced by v8::internal::ArrayConstructorStub::ArrayConstructorStub().

+ Here is the caller graph for this function:

◆ override_mode()

AllocationSiteOverrideMode v8::internal::ArrayConstructorStubBase::override_mode ( ) const
inline

Definition at line 2034 of file code-stubs.h.

2034  {
2036  }

References v8::internal::BitFieldBase< T, shift, size, U >::decode(), and v8::internal::HydrogenCodeStub::sub_minor_key().

Referenced by ArrayConstructorStubBase(), and BasePrintName().

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

◆ STATIC_ASSERT()

v8::internal::ArrayConstructorStubBase::STATIC_ASSERT ( LAST_ALLOCATION_SITE_OVERRIDE_MODE  = =1)
private

Member Data Documentation

◆ kAllocationSite

const int v8::internal::ArrayConstructorStubBase::kAllocationSite = 1
static

◆ kConstructor

const int v8::internal::ArrayConstructorStubBase::kConstructor = 0
static

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