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

Public Member Functions

 JSBuiltinReducerTest ()
 
- Public Member Functions inherited from v8::internal::compiler::GraphTest
 GraphTest (int parameters=1)
 
virtual ~GraphTest ()
 
- Public Member Functions inherited from v8::TestWithContext
 TestWithContext ()
 
virtual ~TestWithContext ()
 
const Local< Context > & context () const
 
- Public Member Functions inherited from v8::TestWithIsolate
 TestWithIsolate ()
 
Isolateisolate () const
 
- 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
 

Protected Member Functions

Reduction Reduce (Node *node)
 
Node * Parameter (Type *t, int32_t index=0)
 
Node * UndefinedConstant ()
 
JSOperatorBuilderjavascript ()
 
- Protected Member Functions inherited from v8::internal::compiler::GraphTest
Node * Parameter (int32_t index)
 
Node * Float32Constant (volatile float value)
 
Node * Float64Constant (volatile double value)
 
Node * Int32Constant (int32_t value)
 
Node * Int64Constant (int64_t value)
 
Node * NumberConstant (volatile double value)
 
Node * HeapConstant (const Unique< HeapObject > &value)
 
Node * FalseConstant ()
 
Node * TrueConstant ()
 
Matcher< Node * > IsFalseConstant ()
 
Matcher< Node * > IsTrueConstant ()
 
CommonOperatorBuilder * common ()
 
Graphgraph ()
 

Private Attributes

JSOperatorBuilder javascript_
 

Additional Inherited Members

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

Detailed Description

Definition at line 18 of file js-builtin-reducer-unittest.cc.

Constructor & Destructor Documentation

◆ JSBuiltinReducerTest()

v8::internal::compiler::JSBuiltinReducerTest::JSBuiltinReducerTest ( )
inline

Member Function Documentation

◆ javascript()

JSOperatorBuilder* v8::internal::compiler::JSBuiltinReducerTest::javascript ( )
inlineprotected

Definition at line 42 of file js-builtin-reducer-unittest.cc.

42 { return &javascript_; }

References javascript_.

Referenced by Reduce().

+ Here is the caller graph for this function:

◆ Parameter()

Node* v8::internal::compiler::JSBuiltinReducerTest::Parameter ( Type t,
int32_t  index = 0 
)
inlineprotected

Definition at line 31 of file js-builtin-reducer-unittest.cc.

31  {
32  Node* n = graph()->NewNode(common()->Parameter(index), graph()->start());
34  return n;
35  }
CommonOperatorBuilder * common()
Node * NewNode(const Operator *op, int input_count, Node **inputs)
Definition: graph.cc:24
static void SetBounds(Node *node, Bounds bounds)
BoundsImpl< ZoneTypeConfig > Bounds
Definition: types.h:1047
@ None
Definition: v8.h:2211

References v8::internal::compiler::GraphTest::common(), v8::internal::compiler::GraphTest::graph(), v8::internal::compiler::Graph::NewNode(), v8::None, and v8::internal::compiler::NodeProperties::SetBounds().

+ Here is the call graph for this function:

◆ Reduce()

Reduction v8::internal::compiler::JSBuiltinReducerTest::Reduce ( Node *  node)
inlineprotected

Definition at line 23 of file js-builtin-reducer-unittest.cc.

23  {
24  Typer typer(zone());
25  MachineOperatorBuilder machine;
26  JSGraph jsgraph(graph(), common(), javascript(), &typer, &machine);
27  JSBuiltinReducer reducer(&jsgraph);
28  return reducer.Reduce(node);
29  }

References v8::internal::compiler::GraphTest::common(), v8::internal::compiler::GraphTest::graph(), javascript(), and v8::internal::TestWithZone::zone().

+ Here is the call graph for this function:

◆ UndefinedConstant()

Node* v8::internal::compiler::JSBuiltinReducerTest::UndefinedConstant ( )
inlineprotected

Definition at line 37 of file js-builtin-reducer-unittest.cc.

37  {
38  return HeapConstant(
39  Unique<HeapObject>::CreateImmovable(factory()->undefined_value()));
40  }
Factory * factory() const
Definition: test-utils.cc:52
static Unique< T > CreateImmovable(Handle< T > handle)
Definition: unique.h:116
Node * HeapConstant(const Unique< HeapObject > &value)

References v8::internal::TestWithIsolate::factory(), and v8::internal::compiler::GraphTest::HeapConstant().

+ Here is the call graph for this function:

Member Data Documentation

◆ javascript_

JSOperatorBuilder v8::internal::compiler::JSBuiltinReducerTest::javascript_
private

Definition at line 45 of file js-builtin-reducer-unittest.cc.

Referenced by javascript().


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