V8 Project
v8::internal::compiler::SimpleOperator Class Reference

#include <operator.h>

+ Inheritance diagram for v8::internal::compiler::SimpleOperator:
+ Collaboration diagram for v8::internal::compiler::SimpleOperator:

Public Member Functions

 SimpleOperator (Opcode opcode, Properties properties, int input_count, int output_count, const char *mnemonic)
 
 ~SimpleOperator ()
 
virtual bool Equals (const Operator *that) const FINAL
 
virtual int HashCode () const FINAL
 
virtual int InputCount () const FINAL
 
virtual int OutputCount () const FINAL
 
- Public Member Functions inherited from v8::internal::compiler::Operator
 Operator (Opcode opcode, Properties properties, const char *mnemonic)
 
virtual ~Operator ()
 
Opcode opcode () const
 
const char * mnemonic () const
 
bool HasProperty (Property property) const
 
Properties properties () const
 
- Public Member Functions inherited from v8::internal::ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Private Member Functions

virtual OStreamPrintTo (OStream &os) const FINAL
 
 DISALLOW_COPY_AND_ASSIGN (SimpleOperator)
 

Private Attributes

int input_count_
 
int output_count_
 

Additional Inherited Members

- Public Types inherited from v8::internal::compiler::Operator
enum  Property {
  kNoProperties = 0 , kReducible = 1 << 0 , kCommutative = 1 << 1 , kAssociative = 1 << 2 ,
  kIdempotent = 1 << 3 , kNoRead = 1 << 4 , kNoWrite = 1 << 5 , kNoThrow = 1 << 6 ,
  kFoldable = kNoRead | kNoWrite , kEliminatable = kNoWrite | kNoThrow , kPure = kNoRead | kNoWrite | kNoThrow | kIdempotent
}
 
typedef uint8_t Opcode
 
typedef base::Flags< Property, uint8_t > Properties
 

Detailed Description

Definition at line 108 of file operator.h.

Constructor & Destructor Documentation

◆ SimpleOperator()

v8::internal::compiler::SimpleOperator::SimpleOperator ( Opcode  opcode,
Properties  properties,
int  input_count,
int  output_count,
const char *  mnemonic 
)

Definition at line 14 of file operator.cc.

18  input_count_(input_count),
19  output_count_(output_count) {}
Properties properties() const
Definition: operator.h:84
const char * mnemonic() const
Definition: operator.h:61
Operator(Opcode opcode, Properties properties, const char *mnemonic)
Definition: operator.h:50

◆ ~SimpleOperator()

v8::internal::compiler::SimpleOperator::~SimpleOperator ( )

Definition at line 22 of file operator.cc.

22 {}

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

v8::internal::compiler::SimpleOperator::DISALLOW_COPY_AND_ASSIGN ( SimpleOperator  )
private

◆ Equals()

virtual bool v8::internal::compiler::SimpleOperator::Equals ( const Operator that) const
inlinevirtual

Implements v8::internal::compiler::Operator.

Definition at line 114 of file operator.h.

114  {
115  return opcode() == that->opcode();
116  }

References v8::internal::compiler::Operator::opcode().

+ Here is the call graph for this function:

◆ HashCode()

virtual int v8::internal::compiler::SimpleOperator::HashCode ( ) const
inlinevirtual

Implements v8::internal::compiler::Operator.

Definition at line 117 of file operator.h.

117 { return opcode(); }

References v8::internal::compiler::Operator::opcode().

+ Here is the call graph for this function:

◆ InputCount()

virtual int v8::internal::compiler::SimpleOperator::InputCount ( ) const
inlinevirtual

Implements v8::internal::compiler::Operator.

Definition at line 118 of file operator.h.

118 { return input_count_; }

References input_count_.

◆ OutputCount()

virtual int v8::internal::compiler::SimpleOperator::OutputCount ( ) const
inlinevirtual

Implements v8::internal::compiler::Operator.

Definition at line 119 of file operator.h.

119 { return output_count_; }

References output_count_.

◆ PrintTo()

virtual OStream& v8::internal::compiler::SimpleOperator::PrintTo ( OStream os) const
inlineprivatevirtual

Implements v8::internal::compiler::Operator.

Definition at line 122 of file operator.h.

122  { // NOLINT
123  return os << mnemonic();
124  }

References v8::internal::compiler::Operator::mnemonic().

+ Here is the call graph for this function:

Member Data Documentation

◆ input_count_

int v8::internal::compiler::SimpleOperator::input_count_
private

Definition at line 126 of file operator.h.

Referenced by InputCount().

◆ output_count_

int v8::internal::compiler::SimpleOperator::output_count_
private

Definition at line 127 of file operator.h.

Referenced by OutputCount().


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