V8 Project
|
#include <operator.h>
Public Member Functions | |
Operator1 (Opcode opcode, Properties properties, int input_count, int output_count, const char *mnemonic, T parameter) | |
const T & | parameter () const |
virtual bool | Equals (const Operator *other) const OVERRIDE |
virtual int | HashCode () const OVERRIDE |
virtual int | InputCount () const OVERRIDE |
virtual int | OutputCount () const OVERRIDE |
virtual OStream & | PrintParameter (OStream &os) const |
![]() | |
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 |
![]() | |
INLINE (void *operator new(size_t size, Zone *zone)) | |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone) |
Protected Member Functions | |
virtual OStream & | PrintTo (OStream &os) const FINAL |
Private Attributes | |
int | input_count_ |
int | output_count_ |
T | parameter_ |
Additional Inherited Members | |
![]() | |
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 |
Definition at line 215 of file operator.h.
|
inline |
Definition at line 217 of file operator.h.
|
inlinevirtual |
Implements v8::internal::compiler::Operator.
Definition at line 226 of file operator.h.
References v8::internal::compiler::StaticParameterTraits< T >::Equals(), v8::internal::compiler::Operator::opcode(), and v8::internal::compiler::Operator1< T >::parameter_.
|
inlinevirtual |
Implements v8::internal::compiler::Operator.
Definition at line 231 of file operator.h.
References v8::internal::compiler::StaticParameterTraits< T >::HashCode(), v8::internal::compiler::Operator::opcode(), and v8::internal::compiler::Operator1< T >::parameter_.
|
inlinevirtual |
Implements v8::internal::compiler::Operator.
Definition at line 234 of file operator.h.
References v8::internal::compiler::Operator1< T >::input_count_.
|
inlinevirtual |
Implements v8::internal::compiler::Operator.
Definition at line 235 of file operator.h.
References v8::internal::compiler::Operator1< T >::output_count_.
|
inline |
Definition at line 224 of file operator.h.
References v8::internal::compiler::Operator1< T >::parameter_.
|
inlinevirtual |
Reimplemented in v8::internal::compiler::anonymous_namespace{common-operator.cc}::ControlOperator.
Definition at line 236 of file operator.h.
References v8::internal::compiler::Operator1< T >::parameter_, and v8::internal::compiler::StaticParameterTraits< T >::PrintTo().
Referenced by v8::internal::compiler::Operator1< T >::PrintTo().
|
inlineprotectedvirtual |
Implements v8::internal::compiler::Operator.
Definition at line 241 of file operator.h.
References v8::internal::compiler::Operator::mnemonic(), and v8::internal::compiler::Operator1< T >::PrintParameter().
|
private |
Definition at line 246 of file operator.h.
Referenced by v8::internal::compiler::Operator1< T >::InputCount().
|
private |
Definition at line 247 of file operator.h.
Referenced by v8::internal::compiler::Operator1< T >::OutputCount().
|
private |
Definition at line 248 of file operator.h.
Referenced by v8::internal::compiler::Operator1< T >::Equals(), v8::internal::compiler::Operator1< T >::HashCode(), v8::internal::compiler::Operator1< T >::parameter(), and v8::internal::compiler::Operator1< T >::PrintParameter().