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

Side by Side Diff: test/unittests/compiler/graph-unittest.cc

Issue 2223873002: [turbofan] Assign proper types to Parameter nodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE and fix. Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « test/cctest/compiler/test-js-typed-lowering.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "test/unittests/compiler/graph-unittest.h" 5 #include "test/unittests/compiler/graph-unittest.h"
6 6
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 #include "src/factory.h" 8 #include "src/factory.h"
9 #include "src/objects-inl.h" // TODO(everyone): Make typer.h IWYU compliant. 9 #include "src/objects-inl.h" // TODO(everyone): Make typer.h IWYU compliant.
10 #include "test/unittests/compiler/node-test-utils.h" 10 #include "test/unittests/compiler/node-test-utils.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 Matcher<Node*> GraphTest::IsTrueConstant() { 97 Matcher<Node*> GraphTest::IsTrueConstant() {
98 return IsHeapConstant(factory()->true_value()); 98 return IsHeapConstant(factory()->true_value());
99 } 99 }
100 100
101 101
102 Matcher<Node*> GraphTest::IsUndefinedConstant() { 102 Matcher<Node*> GraphTest::IsUndefinedConstant() {
103 return IsHeapConstant(factory()->undefined_value()); 103 return IsHeapConstant(factory()->undefined_value());
104 } 104 }
105 105
106
107 TypedGraphTest::TypedGraphTest(int num_parameters) 106 TypedGraphTest::TypedGraphTest(int num_parameters)
108 : GraphTest(num_parameters), typer_(isolate(), graph()) {} 107 : GraphTest(num_parameters), typer_(isolate(), Typer::kNoFlags, graph()) {}
109
110 108
111 TypedGraphTest::~TypedGraphTest() {} 109 TypedGraphTest::~TypedGraphTest() {}
112 110
113 111
114 Node* TypedGraphTest::Parameter(Type* type, int32_t index) { 112 Node* TypedGraphTest::Parameter(Type* type, int32_t index) {
115 Node* node = GraphTest::Parameter(index); 113 Node* node = GraphTest::Parameter(index);
116 NodeProperties::SetType(node, type); 114 NodeProperties::SetType(node, type);
117 return node; 115 return node;
118 } 116 }
119 117
(...skipping 13 matching lines...) Expand all
133 EXPECT_LT(0u, n0->id()); 131 EXPECT_LT(0u, n0->id());
134 EXPECT_LT(0u, n1->id()); 132 EXPECT_LT(0u, n1->id());
135 EXPECT_NE(n0->id(), n1->id()); 133 EXPECT_NE(n0->id(), n1->id());
136 EXPECT_EQ(&kDummyOperator, n0->op()); 134 EXPECT_EQ(&kDummyOperator, n0->op());
137 EXPECT_EQ(&kDummyOperator, n1->op()); 135 EXPECT_EQ(&kDummyOperator, n1->op());
138 } 136 }
139 137
140 } // namespace compiler 138 } // namespace compiler
141 } // namespace internal 139 } // namespace internal
142 } // namespace v8 140 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-js-typed-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698