V8 Project
v8::internal::compiler::GraphReducerTest Class Reference
+ Inheritance diagram for v8::internal::compiler::GraphReducerTest:
+ Collaboration diagram for v8::internal::compiler::GraphReducerTest:

Public Member Functions

 GraphReducerTest ()
 
- Public Member Functions inherited from v8::internal::TestWithZone
 TestWithZone ()
 
virtual ~TestWithZone ()
 
Zonezone ()
 
- Public Member Functions inherited from v8::internal::TestWithIsolate
 TestWithIsolate ()
 
virtual ~TestWithIsolate ()
 
Factory * factory () const
 
Isolateisolate () const
 
- Public Member Functions inherited from v8::TestWithIsolate
 TestWithIsolate ()
 
Isolateisolate () const
 

Static Public Member Functions

static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
- Static Public Member Functions inherited from v8::TestWithIsolate
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 

Protected Member Functions

void ReduceNode (Node *node, Reducer *r)
 
void ReduceNode (Node *node, Reducer *r1, Reducer *r2)
 
void ReduceNode (Node *node, Reducer *r1, Reducer *r2, Reducer *r3)
 
Graphgraph ()
 

Private Attributes

Graph graph_
 

Detailed Description

Definition at line 34 of file graph-reducer-unittest.cc.

Constructor & Destructor Documentation

◆ GraphReducerTest()

v8::internal::compiler::GraphReducerTest::GraphReducerTest ( )
inline

Member Function Documentation

◆ graph()

Graph* v8::internal::compiler::GraphReducerTest::graph ( )
inlineprotected

Definition at line 70 of file graph-reducer-unittest.cc.

70 { return &graph_; }

References graph_.

Referenced by ReduceNode().

+ Here is the caller graph for this function:

◆ ReduceNode() [1/3]

void v8::internal::compiler::GraphReducerTest::ReduceNode ( Node *  node,
Reducer r 
)
inlineprotected

Definition at line 49 of file graph-reducer-unittest.cc.

49  {
50  GraphReducer reducer(graph());
51  reducer.AddReducer(r);
52  reducer.ReduceNode(node);
53  }

References graph().

+ Here is the call graph for this function:

◆ ReduceNode() [2/3]

void v8::internal::compiler::GraphReducerTest::ReduceNode ( Node *  node,
Reducer r1,
Reducer r2 
)
inlineprotected

Definition at line 55 of file graph-reducer-unittest.cc.

55  {
56  GraphReducer reducer(graph());
57  reducer.AddReducer(r1);
58  reducer.AddReducer(r2);
59  reducer.ReduceNode(node);
60  }
const Register r2
const Register r1

References graph(), v8::internal::r1, and v8::internal::r2.

+ Here is the call graph for this function:

◆ ReduceNode() [3/3]

void v8::internal::compiler::GraphReducerTest::ReduceNode ( Node *  node,
Reducer r1,
Reducer r2,
Reducer r3 
)
inlineprotected

Definition at line 62 of file graph-reducer-unittest.cc.

62  {
63  GraphReducer reducer(graph());
64  reducer.AddReducer(r1);
65  reducer.AddReducer(r2);
66  reducer.AddReducer(r3);
67  reducer.ReduceNode(node);
68  }
const Register r3

References graph(), v8::internal::r1, v8::internal::r2, and v8::internal::r3.

+ Here is the call graph for this function:

◆ SetUpTestCase()

static void v8::internal::compiler::GraphReducerTest::SetUpTestCase ( )
inlinestatic

Definition at line 38 of file graph-reducer-unittest.cc.

38  {
40  DefaultValue<Reduction>::Set(Reducer::NoChange());
41  }
static void SetUpTestCase()
Definition: test-utils.cc:23

References v8::internal::compiler::Reducer::NoChange(), and v8::TestWithIsolate::SetUpTestCase().

+ Here is the call graph for this function:

◆ TearDownTestCase()

static void v8::internal::compiler::GraphReducerTest::TearDownTestCase ( )
inlinestatic

Definition at line 43 of file graph-reducer-unittest.cc.

43  {
44  DefaultValue<Reduction>::Clear();
46  }
static void TearDownTestCase()
Definition: test-utils.cc:32

References v8::TestWithIsolate::TearDownTestCase().

+ Here is the call graph for this function:

Member Data Documentation

◆ graph_

Graph v8::internal::compiler::GraphReducerTest::graph_
private

Definition at line 73 of file graph-reducer-unittest.cc.

Referenced by graph().


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