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

#include <opcodes.h>

+ Collaboration diagram for v8::internal::compiler::IrOpcode:

Public Types

enum  Value { kLast }
 

Static Public Member Functions

static const char * Mnemonic (Value val)
 
static bool IsJsOpcode (Value val)
 
static bool IsControlOpcode (Value val)
 
static bool IsCommonOpcode (Value val)
 

Detailed Description

Definition at line 243 of file opcodes.h.

Member Enumeration Documentation

◆ Value

Enumerator
kLast 

Definition at line 245 of file opcodes.h.

245  {
246 #define DECLARE_OPCODE(x) k##x,
248 #undef DECLARE_OPCODE
249  kLast = -1
250 #define COUNT_OPCODE(x) +1
252 #undef COUNT_OPCODE
253  };
#define COUNT_OPCODE(x)
#define ALL_OP_LIST(V)
Definition: opcodes.h:233
#define DECLARE_OPCODE(x)
Definition: opcodes.h:246

Member Function Documentation

◆ IsCommonOpcode()

static bool v8::internal::compiler::IrOpcode::IsCommonOpcode ( Value  val)
inlinestatic

Definition at line 292 of file opcodes.h.

292  {
293  switch (val) {
294 #define RETURN_NAME(x) \
295  case k##x: \
296  return true;
299 #undef RETURN_NAME
300  default:
301  return false;
302  }
303  }
#define RETURN_NAME(x)
#define CONTROL_OP_LIST(V)
Definition: opcodes.h:19
#define COMMON_OP_LIST(V)
Definition: opcodes.h:46

References COMMON_OP_LIST, CONTROL_OP_LIST, and RETURN_NAME.

◆ IsControlOpcode()

static bool v8::internal::compiler::IrOpcode::IsControlOpcode ( Value  val)
inlinestatic

Definition at line 280 of file opcodes.h.

280  {
281  switch (val) {
282 #define RETURN_NAME(x) \
283  case k##x: \
284  return true;
286 #undef RETURN_NAME
287  default:
288  return false;
289  }
290  }

References CONTROL_OP_LIST, and RETURN_NAME.

Referenced by v8::internal::compiler::Scheduler::ConnectFloatingControlSubgraph(), v8::internal::compiler::OperatorProperties::HasControlOutput(), and v8::internal::compiler::NodeProperties::IsControl().

+ Here is the caller graph for this function:

◆ IsJsOpcode()

static bool v8::internal::compiler::IrOpcode::IsJsOpcode ( Value  val)
inlinestatic

Definition at line 268 of file opcodes.h.

268  {
269  switch (val) {
270 #define RETURN_NAME(x) \
271  case k##x: \
272  return true;
274 #undef RETURN_NAME
275  default:
276  return false;
277  }
278  }
#define JS_OP_LIST(V)
Definition: opcodes.h:125

References JS_OP_LIST, and RETURN_NAME.

Referenced by v8::internal::compiler::OperatorProperties::HasContextInput().

+ Here is the caller graph for this function:

◆ Mnemonic()

static const char* v8::internal::compiler::IrOpcode::Mnemonic ( Value  val)
inlinestatic

Definition at line 256 of file opcodes.h.

256  {
257  switch (val) {
258 #define RETURN_NAME(x) \
259  case k##x: \
260  return #x;
262 #undef RETURN_NAME
263  default:
264  return "UnknownOpcode";
265  }
266  }

References ALL_OP_LIST, and RETURN_NAME.

Referenced by v8::internal::compiler::anonymous_namespace{graph-unittest.cc}::NodeMatcher::DescribeTo(), v8::internal::compiler::anonymous_namespace{graph-unittest.cc}::NodeMatcher::MatchAndExplain(), v8::internal::compiler::anonymous_namespace{simplified-operator-unittest.cc}::operator<<(), v8::internal::compiler::anonymous_namespace{common-operator-unittest.cc}::operator<<(), and v8::internal::compiler::JSONGraphNodeWriter::Pre().

+ Here is the caller graph for this function:

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