Index: test/unittests/compiler/linkage-tail-call-unittest.cc |
diff --git a/test/unittests/compiler/linkage-tail-call-unittest.cc b/test/unittests/compiler/linkage-tail-call-unittest.cc |
index 814f5efb8e684cd68a25b7a2ef6afa7fae19bb6e..255c8a1150f63a13cb2e91c32215632733ee7f75 100644 |
--- a/test/unittests/compiler/linkage-tail-call-unittest.cc |
+++ b/test/unittests/compiler/linkage-tail-call-unittest.cc |
@@ -157,8 +157,8 @@ TEST_F(LinkageTailCall, MoreRegisterAndStackParametersCallee) { |
const Operator* op = common.Call(desc2); |
Node* const node = Node::New(zone(), 1, op, 0, nullptr, false); |
int stack_param_delta = 0; |
- EXPECT_FALSE(desc1->CanTailCall(node, &stack_param_delta)); |
- EXPECT_EQ(1, stack_param_delta); |
+ EXPECT_TRUE(desc1->CanTailCall(node, &stack_param_delta)); |
+ EXPECT_EQ(-1, stack_param_delta); |
} |
@@ -179,7 +179,7 @@ TEST_F(LinkageTailCall, MoreRegisterAndStackParametersCaller) { |
Node* const node = Node::New(zone(), 1, op, 0, nullptr, false); |
int stack_param_delta = 0; |
EXPECT_TRUE(desc1->CanTailCall(node, &stack_param_delta)); |
- EXPECT_EQ(-1, stack_param_delta); |
+ EXPECT_EQ(1, stack_param_delta); |
} |
@@ -314,7 +314,7 @@ TEST_F(LinkageTailCall, MatchingStackParametersExtraCallerRegistersAndStack) { |
Node::New(zone(), 1, op, arraysize(parameters), parameters, false); |
int stack_param_delta = 0; |
EXPECT_TRUE(desc1->CanTailCall(node, &stack_param_delta)); |
- EXPECT_EQ(-1, stack_param_delta); |
+ EXPECT_EQ(1, stack_param_delta); |
} |
@@ -341,8 +341,8 @@ TEST_F(LinkageTailCall, MatchingStackParametersExtraCalleeRegistersAndStack) { |
Node* const node = |
Node::New(zone(), 1, op, arraysize(parameters), parameters, false); |
int stack_param_delta = 0; |
- EXPECT_FALSE(desc1->CanTailCall(node, &stack_param_delta)); |
- EXPECT_EQ(1, stack_param_delta); |
+ EXPECT_TRUE(desc1->CanTailCall(node, &stack_param_delta)); |
+ EXPECT_EQ(-1, stack_param_delta); |
} |
} // namespace compiler |