Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: test/compiler-unittests/graph-unittest.h

Issue 479793004: [turbofan] Initial import of SimplifiedOperatorReducer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/compiler-unittests/compiler-unittests.gyp ('k') | test/compiler-unittests/graph-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/compiler-unittests/graph-unittest.h
diff --git a/test/compiler-unittests/graph-unittest.h b/test/compiler-unittests/graph-unittest.h
index 2a5ba731f6dd5a7515be3cf6dbd39b02c9fb401f..80ed6d334d5102b34ea4fb741a1e476d682331fd 100644
--- a/test/compiler-unittests/graph-unittest.h
+++ b/test/compiler-unittests/graph-unittest.h
@@ -20,12 +20,26 @@ class PrintableUnique;
namespace compiler {
+using ::testing::Matcher;
+
+
class GraphTest : public CommonOperatorTest {
public:
explicit GraphTest(int parameters = 1);
virtual ~GraphTest();
protected:
+ Node* Parameter(int32_t index);
+ Node* Float64Constant(double value);
+ Node* Int32Constant(int32_t value);
+ Node* NumberConstant(double value);
+ Node* HeapConstant(const PrintableUnique<HeapObject>& value);
+ Node* FalseConstant();
+ Node* TrueConstant();
+
+ Matcher<Node*> IsFalseConstant();
+ Matcher<Node*> IsTrueConstant();
+
Graph* graph() { return &graph_; }
private:
@@ -33,9 +47,6 @@ class GraphTest : public CommonOperatorTest {
};
-using ::testing::Matcher;
-
-
Matcher<Node*> IsBranch(const Matcher<Node*>& value_matcher,
const Matcher<Node*>& control_matcher);
Matcher<Node*> IsMerge(const Matcher<Node*>& control0_matcher,
@@ -50,6 +61,7 @@ Matcher<Node*> IsExternalConstant(
const Matcher<ExternalReference>& value_matcher);
Matcher<Node*> IsHeapConstant(
const Matcher<PrintableUnique<HeapObject> >& value_matcher);
+Matcher<Node*> IsFloat64Constant(const Matcher<double>& value_matcher);
Matcher<Node*> IsInt32Constant(const Matcher<int32_t>& value_matcher);
Matcher<Node*> IsNumberConstant(const Matcher<double>& value_matcher);
Matcher<Node*> IsPhi(const Matcher<Node*>& value0_matcher,
« no previous file with comments | « test/compiler-unittests/compiler-unittests.gyp ('k') | test/compiler-unittests/graph-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698