V8 Project
v8::internal::CallInterfaceDescriptor Class Reference

#include <interface-descriptors.h>

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

Public Member Functions

 CallInterfaceDescriptor ()
 
 CallInterfaceDescriptor (Isolate *isolate, CallDescriptors::Key key)
 
int GetEnvironmentLength () const
 
int GetRegisterParameterCount () const
 
Register GetParameterRegister (int index) const
 
Representation GetParameterRepresentation (int index) const
 
int GetEnvironmentParameterCount () const
 
Register GetEnvironmentParameterRegister (int index) const
 
Representation GetEnvironmentParameterRepresentation (int index) const
 
PlatformInterfaceDescriptorplatform_specific_descriptor () const
 
const char * DebugName (Isolate *isolate)
 

Static Public Member Functions

static const Register ContextRegister ()
 

Protected Member Functions

const CallInterfaceDescriptorDatadata () const
 

Private Attributes

const CallInterfaceDescriptorDatadata_
 

Detailed Description

Definition at line 118 of file interface-descriptors.h.

Constructor & Destructor Documentation

◆ CallInterfaceDescriptor() [1/2]

v8::internal::CallInterfaceDescriptor::CallInterfaceDescriptor ( )
inline

Definition at line 120 of file interface-descriptors.h.

120 : data_(NULL) {}
const CallInterfaceDescriptorData * data_
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

◆ CallInterfaceDescriptor() [2/2]

v8::internal::CallInterfaceDescriptor::CallInterfaceDescriptor ( Isolate isolate,
CallDescriptors::Key  key 
)
inline

Definition at line 122 of file interface-descriptors.h.

123  : data_(isolate->call_descriptor_data(key)) {}

Member Function Documentation

◆ ContextRegister()

static const Register v8::internal::CallInterfaceDescriptor::ContextRegister ( )
static

Referenced by v8::internal::CallInterfaceDescriptorData::Initialize().

+ Here is the caller graph for this function:

◆ data()

const CallInterfaceDescriptorData* v8::internal::CallInterfaceDescriptor::data ( ) const
inlineprotected

Definition at line 168 of file interface-descriptors.h.

168 { return data_; }

References data_.

Referenced by GetEnvironmentLength(), GetParameterRegister(), GetParameterRepresentation(), GetRegisterParameterCount(), and platform_specific_descriptor().

+ Here is the caller graph for this function:

◆ DebugName()

const char * v8::internal::CallInterfaceDescriptor::DebugName ( Isolate isolate)

Definition at line 45 of file interface-descriptors.cc.

45  {
46  CallInterfaceDescriptorData* start = isolate->call_descriptor_data(0);
47  size_t index = data_ - start;
49  CallDescriptors::Key key = static_cast<CallDescriptors::Key>(index);
50  switch (key) {
51 #define DEF_CASE(NAME) \
52  case CallDescriptors::NAME: \
53  return #NAME " Descriptor";
55 #undef DEF_CASE
57  break;
58  }
59  return "";
60 }
#define DEF_CASE(NAME)
#define INTERFACE_DESCRIPTOR_LIST(V)
#define DCHECK(condition)
Definition: logging.h:205

References v8::internal::Isolate::call_descriptor_data(), data_, DCHECK, DEF_CASE, INTERFACE_DESCRIPTOR_LIST, and v8::internal::CallDescriptors::NUMBER_OF_DESCRIPTORS.

Referenced by v8::internal::compiler::LinkageHelper< LinkageTraits >::GetStubCallDescriptor().

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

◆ GetEnvironmentLength()

int v8::internal::CallInterfaceDescriptor::GetEnvironmentLength ( ) const
inline

Definition at line 125 of file interface-descriptors.h.

125 { return data()->register_param_count(); }
const CallInterfaceDescriptorData * data() const

References data(), and v8::internal::CallInterfaceDescriptorData::register_param_count().

Referenced by GetEnvironmentParameterCount(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::New(), v8::internal::HOptimizedGraphBuilder::NewArgumentAdaptorCall(), and v8::internal::HOptimizedGraphBuilder::TryInlineApiCall().

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

◆ GetEnvironmentParameterCount()

int v8::internal::CallInterfaceDescriptor::GetEnvironmentParameterCount ( ) const
inline

Definition at line 146 of file interface-descriptors.h.

146  {
147  return GetEnvironmentLength() - 1;
148  }

References GetEnvironmentLength().

Referenced by v8::internal::CodeStubDescriptor::GetEnvironmentParameterCount(), v8::internal::CodeStubDescriptor::GetHandlerParameterCount(), and v8::internal::compiler::LinkageHelper< LinkageTraits >::GetStubCallDescriptor().

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

◆ GetEnvironmentParameterRegister()

Register v8::internal::CallInterfaceDescriptor::GetEnvironmentParameterRegister ( int  index) const
inline

Definition at line 150 of file interface-descriptors.h.

150  {
151  return GetParameterRegister(index + 1);
152  }
Register GetParameterRegister(int index) const

References GetParameterRegister().

Referenced by v8::internal::compiler::LinkageHelper< LinkageTraits >::GetStubCallDescriptor(), and v8::internal::CodeStubDescriptor::IsEnvironmentParameterCountRegister().

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

◆ GetEnvironmentParameterRepresentation()

Representation v8::internal::CallInterfaceDescriptor::GetEnvironmentParameterRepresentation ( int  index) const
inline

Definition at line 154 of file interface-descriptors.h.

154  {
155  return GetParameterRepresentation(index + 1);
156  }
Representation GetParameterRepresentation(int index) const

References GetParameterRepresentation().

Referenced by v8::internal::CodeStubDescriptor::GetEnvironmentParameterRepresentation().

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

◆ GetParameterRegister()

Register v8::internal::CallInterfaceDescriptor::GetParameterRegister ( int  index) const
inline

Definition at line 131 of file interface-descriptors.h.

131  {
132  return data()->register_param(index);
133  }

References data(), and v8::internal::CallInterfaceDescriptorData::register_param().

Referenced by GetEnvironmentParameterRegister().

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

◆ GetParameterRepresentation()

Representation v8::internal::CallInterfaceDescriptor::GetParameterRepresentation ( int  index) const
inline

Definition at line 135 of file interface-descriptors.h.

135  {
136  DCHECK(index < data()->register_param_count());
137  if (data()->register_param_representations() == NULL) {
138  return Representation::Tagged();
139  }
140 
141  return data()->register_param_representation(index);
142  }
Representation register_param_representation(int index) const
static Representation Tagged()

References data(), DCHECK, NULL, v8::internal::CallInterfaceDescriptorData::register_param_representation(), and v8::internal::Representation::Tagged().

Referenced by GetEnvironmentParameterRepresentation().

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

◆ GetRegisterParameterCount()

int v8::internal::CallInterfaceDescriptor::GetRegisterParameterCount ( ) const
inline

Definition at line 127 of file interface-descriptors.h.

127  {
128  return data()->register_param_count();
129  }

References data(), and v8::internal::CallInterfaceDescriptorData::register_param_count().

Referenced by v8::internal::FINAL< kOperandKind, kNumCachedOperands >::LCallWithDescriptor().

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

◆ platform_specific_descriptor()

PlatformInterfaceDescriptor* v8::internal::CallInterfaceDescriptor::platform_specific_descriptor ( ) const
inline

Definition at line 159 of file interface-descriptors.h.

159  {
161  }
PlatformInterfaceDescriptor * platform_specific_descriptor() const

References data(), and v8::internal::CallInterfaceDescriptorData::platform_specific_descriptor().

+ Here is the call graph for this function:

Member Data Documentation

◆ data_

const CallInterfaceDescriptorData* v8::internal::CallInterfaceDescriptor::data_
private

Definition at line 171 of file interface-descriptors.h.

Referenced by data(), and DebugName().


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