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

Unified Diff: test/unittests/compiler/state-values-utils-unittest.cc

Issue 1015423002: [turbofan] Remember types for deoptimization during simplified lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review comments Created 5 years, 9 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/unittests/compiler/liveness-analyzer-unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/compiler/state-values-utils-unittest.cc
diff --git a/test/unittests/compiler/state-values-utils-unittest.cc b/test/unittests/compiler/state-values-utils-unittest.cc
index 7bcdc5c068358479c0c82486bb5367fa3b1f13e2..e6f4701598fd11319b20453a5c00f024a494cf90 100644
--- a/test/unittests/compiler/state-values-utils-unittest.cc
+++ b/test/unittests/compiler/state-values-utils-unittest.cc
@@ -32,8 +32,8 @@ TEST_F(StateValuesIteratorTest, SimpleIteration) {
}
Node* state_values = StateValuesFromVector(&inputs);
int i = 0;
- for (Node* node : StateValuesAccess(state_values)) {
- EXPECT_THAT(node, IsInt32Constant(i));
+ for (StateValuesAccess::TypedNode node : StateValuesAccess(state_values)) {
+ EXPECT_THAT(node.node, IsInt32Constant(i));
i++;
}
EXPECT_EQ(count, i);
@@ -43,7 +43,7 @@ TEST_F(StateValuesIteratorTest, SimpleIteration) {
TEST_F(StateValuesIteratorTest, EmptyIteration) {
NodeVector inputs(zone());
Node* state_values = StateValuesFromVector(&inputs);
- for (Node* node : StateValuesAccess(state_values)) {
+ for (auto node : StateValuesAccess(state_values)) {
USE(node);
FAIL();
}
@@ -82,8 +82,8 @@ TEST_F(StateValuesIteratorTest, NestedIteration) {
}
Node* state_values = StateValuesFromVector(&inputs);
int i = 0;
- for (Node* node : StateValuesAccess(state_values)) {
- EXPECT_THAT(node, IsInt32Constant(i));
+ for (StateValuesAccess::TypedNode node : StateValuesAccess(state_values)) {
+ EXPECT_THAT(node.node, IsInt32Constant(i));
i++;
}
EXPECT_EQ(count, i);
@@ -110,8 +110,8 @@ TEST_F(StateValuesIteratorTest, TreeFromVector) {
// Check the tree contents with vector.
int i = 0;
- for (Node* node : StateValuesAccess(values_node)) {
- EXPECT_THAT(node, IsInt32Constant(i));
+ for (StateValuesAccess::TypedNode node : StateValuesAccess(values_node)) {
+ EXPECT_THAT(node.node, IsInt32Constant(i));
i++;
}
EXPECT_EQ(inputs.size(), static_cast<size_t>(i));
« no previous file with comments | « test/unittests/compiler/liveness-analyzer-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698