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

#include <lithium.h>

Inheritance diagram for LOperand:
Collaboration diagram for LOperand:

Data Structures

class  KindField
 

Public Types

enum  Kind {
  INVALID, UNALLOCATED, CONSTANT_OPERAND, STACK_SLOT,
  DOUBLE_STACK_SLOT, REGISTER, DOUBLE_REGISTER, ARGUMENT
}
 

Public Member Functions

 LOperand ()
 
Kind kind () const
 
int index () const
 
bool Equals (LOperand *other) const
 
void PrintTo (StringStream *stream)
 
void ConvertTo (Kind kind, int index)
 
- Public Member Functions inherited from ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Static Public Member Functions

static void SetUpCaches ()
 
static void TearDownCaches ()
 

Protected Member Functions

 LOperand (Kind kind, int index)
 

Protected Attributes

unsigned value_
 

Static Protected Attributes

static const int kKindFieldWidth = 3
 

Detailed Description

Definition at line 46 of file lithium.h.

Member Enumeration Documentation

enum Kind
Enumerator
INVALID 
UNALLOCATED 
CONSTANT_OPERAND 
STACK_SLOT 
DOUBLE_STACK_SLOT 
REGISTER 
DOUBLE_REGISTER 
ARGUMENT 

Definition at line 48 of file lithium.h.

Constructor & Destructor Documentation

LOperand ( )
inline

Definition at line 59 of file lithium.h.

LOperand ( Kind  kind,
int  index 
)
inlineprotected

Definition at line 87 of file lithium.h.

References LOperand::ConvertTo().

Member Function Documentation

void ConvertTo ( Kind  kind,
int  index 
)
inline
bool Equals ( LOperand other) const
inline

Definition at line 70 of file lithium.h.

References LOperand::value_.

Referenced by LParallelMove::PrintDataTo().

Kind kind ( ) const
inline
void SetUpCaches ( )
static

Definition at line 132 of file lithium.cc.

References LITHIUM_OPERAND_LIST, and LITHIUM_OPERAND_SETUP.

void TearDownCaches ( )
static

Definition at line 139 of file lithium.cc.

References LITHIUM_OPERAND_LIST, and LITHIUM_OPERAND_TEARDOWN.

Referenced by V8::TearDown().

Field Documentation

const int kKindFieldWidth = 3
staticprotected

Definition at line 84 of file lithium.h.

Referenced by LOperand::ConvertTo(), and LOperand::index().


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