v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FastCloneShallowArrayStub Class Reference

#include <code-stubs.h>

Inheritance diagram for FastCloneShallowArrayStub:
Collaboration diagram for FastCloneShallowArrayStub:

Public Types

enum  Mode {
  CLONE_ELEMENTS, CLONE_DOUBLE_ELEMENTS, COPY_ON_WRITE_ELEMENTS, CLONE_ANY_ELEMENTS,
  LAST_CLONE_MODE = CLONE_ANY_ELEMENTS
}
 
- Public Types inherited from HydrogenCodeStub
enum  InitializationState { UNINITIALIZED, INITIALIZED }
 

Public Member Functions

 FastCloneShallowArrayStub (Mode mode, AllocationSiteMode allocation_site_mode, int length)
 
Mode mode () const
 
int length () const
 
AllocationSiteMode allocation_site_mode () const
 
ElementsKind ComputeElementsKind () const
 
virtual Handle< CodeGenerateCode (Isolate *isolate)
 
virtual void InitializeInterfaceDescriptor (Isolate *isolate, CodeStubInterfaceDescriptor *descriptor)
 
- Public Member Functions inherited from HydrogenCodeStub
 HydrogenCodeStub (InitializationState state=INITIALIZED)
 
virtual Code::Kind GetCodeKind () const
 
CodeStubInterfaceDescriptorGetInterfaceDescriptor (Isolate *isolate)
 
bool IsUninitialized ()
 
Handle< CodeGenerateLightweightMissCode (Isolate *isolate)
 
template<class StateType >
void TraceTransition (StateType from, StateType to)
 

Static Public Member Functions

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

Static Public Attributes

static const int kMaximumClonedLength = 8
 
static const int kFastCloneModeCount = LAST_CLONE_MODE + 1
 

Detailed Description

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

Member Enumeration Documentation

enum Mode
Enumerator
CLONE_ELEMENTS 
CLONE_DOUBLE_ELEMENTS 
COPY_ON_WRITE_ELEMENTS 
CLONE_ANY_ELEMENTS 
LAST_CLONE_MODE 

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

Constructor & Destructor Documentation

FastCloneShallowArrayStub ( Mode  mode,
AllocationSiteMode  allocation_site_mode,
int  length 
)
inline

Member Function Documentation

AllocationSiteMode allocation_site_mode ( ) const
inline

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

Handle< Code > GenerateCode ( Isolate isolate)
virtual

Implements HydrogenCodeStub.

Definition at line 419 of file code-stubs-hydrogen.cc.

virtual void InitializeInterfaceDescriptor ( Isolate isolate,
CodeStubInterfaceDescriptor descriptor 
)
virtual

Implements HydrogenCodeStub.

void InstallDescriptors ( Isolate isolate)
static
int length ( ) const
inline

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

Mode mode ( ) const
inline

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

Referenced by FastCloneShallowArrayStub::ComputeElementsKind().

Field Documentation

const int kFastCloneModeCount = LAST_CLONE_MODE + 1
static

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

const int kMaximumClonedLength = 8
static

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

Referenced by FastCloneShallowArrayStub::FastCloneShallowArrayStub().


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