V8 Project
v8::internal::FastCloneShallowObjectStub Class Reference

#include <code-stubs.h>

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

Classes

class  LengthBits
 

Public Member Functions

 FastCloneShallowObjectStub (Isolate *isolate, int length)
 
int length () 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 Attributes

static const int kMaximumClonedProperties = 6
 

Private Member Functions

 DEFINE_CALL_INTERFACE_DESCRIPTOR (FastCloneShallowObject)
 
 DEFINE_HYDROGEN_CODE_STUB (FastCloneShallowObject, HydrogenCodeStub)
 

Additional Inherited Members

- Public Types inherited from v8::internal::HydrogenCodeStub
enum  InitializationState { UNINITIALIZED , INITIALIZED }
 
- Static Public Member Functions inherited from v8::internal::HydrogenCodeStub
template<class SubClass >
static Handle< CodeGetUninitialized (Isolate *isolate)
 
- 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
 
- Static Protected Attributes inherited from v8::internal::HydrogenCodeStub
static const int kSubMinorKeyBits = kStubMinorKeyBits - 1
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FastCloneShallowObjectStub()

v8::internal::FastCloneShallowObjectStub::FastCloneShallowObjectStub ( Isolate isolate,
int  length 
)
inline

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

644  : HydrogenCodeStub(isolate) {
645  DCHECK_GE(length, 0);
648  }
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_LE(v1, v2)
Definition: logging.h:210
#define DCHECK_GE(v1, v2)
Definition: logging.h:208

References DCHECK_GE, DCHECK_LE, v8::internal::BitFieldBase< T, shift, size, U >::encode(), kMaximumClonedProperties, length(), and v8::internal::HydrogenCodeStub::set_sub_minor_key().

+ Here is the call graph for this function:

Member Function Documentation

◆ DEFINE_CALL_INTERFACE_DESCRIPTOR()

v8::internal::FastCloneShallowObjectStub::DEFINE_CALL_INTERFACE_DESCRIPTOR ( FastCloneShallowObject  )
private

◆ DEFINE_HYDROGEN_CODE_STUB()

v8::internal::FastCloneShallowObjectStub::DEFINE_HYDROGEN_CODE_STUB ( FastCloneShallowObject  ,
HydrogenCodeStub   
)
private

◆ length()

int v8::internal::FastCloneShallowObjectStub::length ( ) const
inline

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

650 { return LengthBits::decode(sub_minor_key()); }
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 FastCloneShallowObjectStub().

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

Member Data Documentation

◆ kMaximumClonedProperties

const int v8::internal::FastCloneShallowObjectStub::kMaximumClonedProperties = 6
static

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

Referenced by FastCloneShallowObjectStub().


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