v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
operation.h File Reference
#include <ostream>
Include dependency graph for operation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARITHMETIC_OPERATION_LIST(V)
 
#define UNARY_OPERATION_LIST(V)
 
#define COMPARISON_OPERATION_LIST(V)
 
#define OPERATION_LIST(V)
 
#define DEFINE_OP(name)
 
#define CASE(name)
 

Enumerations

enum class  Operation : uint8_t { DEFINE_OP }
 

Functions

std::ostream & operator<< (std::ostream &os, const Operation &operation)
 

Macro Definition Documentation

◆ ARITHMETIC_OPERATION_LIST

#define ARITHMETIC_OPERATION_LIST ( V)
Value:
V(Add) \
V(Subtract) \
V(Multiply) \
V(Divide) \
V(Modulus) \
V(Exponentiate) \
V(BitwiseAnd) \
V(BitwiseOr) \
V(BitwiseXor) \
V(ShiftLeft) \
V(ShiftRight) \
V(ShiftRightLogical)
#define V(Name)

Definition at line 10 of file operation.h.

◆ CASE

#define CASE ( name)
Value:
case Operation::k##name: \
return os << #name;
const char * name
Definition builtins.cc:39

◆ COMPARISON_OPERATION_LIST

#define COMPARISON_OPERATION_LIST ( V)
Value:
V(Equal) \
V(StrictEqual) \
V(LessThan) \
V(LessThanOrEqual) \
V(GreaterThan) \
V(GreaterThanOrEqual)

Definition at line 30 of file operation.h.

◆ DEFINE_OP

#define DEFINE_OP ( name)
Value:
k##name,

Definition at line 44 of file operation.h.

◆ OPERATION_LIST

#define OPERATION_LIST ( V)
Value:
UNARY_OPERATION_LIST(V) \
COMPARISON_OPERATION_LIST(V)
#define ARITHMETIC_OPERATION_LIST(V)
Definition operation.h:10

Definition at line 38 of file operation.h.

◆ UNARY_OPERATION_LIST

#define UNARY_OPERATION_LIST ( V)
Value:
V(BitwiseNot) \
V(Negate) \
V(Increment) \
V(Decrement)

Definition at line 24 of file operation.h.

Enumeration Type Documentation

◆ Operation

enum class Operation : uint8_t
strong
Enumerator
DEFINE_OP 

Definition at line 43 of file operation.h.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const Operation & operation )
inline

Definition at line 49 of file operation.h.

Here is the caller graph for this function: