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
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
}
 

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 

Definition at line 48 of file lithium.h.

Constructor & Destructor Documentation

LOperand ( )
inline

Definition at line 58 of file lithium.h.

LOperand ( Kind  kind,
int  index 
)
inlineprotected

Definition at line 85 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 68 of file lithium.h.

References LOperand::value_.

void SetUpCaches ( )
static

Definition at line 139 of file lithium.cc.

References LITHIUM_OPERAND_LIST, and LITHIUM_OPERAND_SETUP.

void TearDownCaches ( )
static

Definition at line 146 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 82 of file lithium.h.

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


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