V8 Project
v8::internal::compiler::NodeMatcher Struct Reference

#include <node-matchers.h>

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

Public Member Functions

 NodeMatcher (Node *node)
 
Node * node () const
 
const Operatorop () const
 
IrOpcode::Value opcode () const
 
bool HasProperty (Operator::Property property) const
 
Node * InputAt (int index) const
 

Private Attributes

Node * node_
 

Detailed Description

Definition at line 16 of file node-matchers.h.

Constructor & Destructor Documentation

◆ NodeMatcher()

v8::internal::compiler::NodeMatcher::NodeMatcher ( Node *  node)
inlineexplicit

Definition at line 17 of file node-matchers.h.

Member Function Documentation

◆ HasProperty()

bool v8::internal::compiler::NodeMatcher::HasProperty ( Operator::Property  property) const
inline

Definition at line 23 of file node-matchers.h.

23  {
24  return op()->HasProperty(property);
25  }
bool HasProperty(Property property) const
Definition: operator.h:74
const Operator * op() const
Definition: node-matchers.h:20

References v8::internal::compiler::Operator::HasProperty(), and op().

+ Here is the call graph for this function:

◆ InputAt()

Node* v8::internal::compiler::NodeMatcher::InputAt ( int  index) const
inline

Definition at line 26 of file node-matchers.h.

26 { return node()->InputAt(index); }

References node().

+ Here is the call graph for this function:

◆ node()

Node* v8::internal::compiler::NodeMatcher::node ( ) const
inline

Definition at line 19 of file node-matchers.h.

19 { return node_; }

References node_.

Referenced by InputAt(), v8::internal::compiler::ScaleFactorMatcher::Match(), v8::internal::compiler::IndexAndDisplacementMatcher::Match(), v8::internal::compiler::anonymous_namespace{graph-unittest.cc}::NodeMatcher::MatchAndExplain(), op(), opcode(), and v8::internal::compiler::ValueMatcher< T, kOpcode >::ValueMatcher().

+ Here is the caller graph for this function:

◆ op()

const Operator* v8::internal::compiler::NodeMatcher::op ( ) const
inline

Definition at line 20 of file node-matchers.h.

20 { return node()->op(); }

References node().

Referenced by HasProperty().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ opcode()

IrOpcode::Value v8::internal::compiler::NodeMatcher::opcode ( ) const
inline

Definition at line 21 of file node-matchers.h.

21 { return node()->opcode(); }

References node().

Referenced by v8::internal::compiler::ScaleFactorMatcher::Match(), and v8::internal::compiler::IndexAndDisplacementMatcher::Match().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ node_

Node* v8::internal::compiler::NodeMatcher::node_
private

Definition at line 34 of file node-matchers.h.

Referenced by node().


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