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

Unified Diff: test/unittests/compiler/js-context-relaxation-unittest.cc

Issue 1410853007: [turbofan] Remove use of CallFunctionStub from TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/unittests/compiler/js-builtin-reducer-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/js-context-relaxation-unittest.cc
diff --git a/test/unittests/compiler/js-context-relaxation-unittest.cc b/test/unittests/compiler/js-context-relaxation-unittest.cc
index e139b781e524ad92d7789e29f73487a11989463a..0fcf9f708799a11a40f3615e59615c81b96e735a 100644
--- a/test/unittests/compiler/js-context-relaxation-unittest.cc
+++ b/test/unittests/compiler/js-context-relaxation-unittest.cc
@@ -83,9 +83,8 @@ TEST_F(JSContextRelaxationTest,
Node* const effect = graph()->start();
Node* const control = graph()->start();
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state, frame_state, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state, frame_state, effect, control);
Reduction const r = Reduce(node);
EXPECT_TRUE(r.Changed());
EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node));
@@ -102,9 +101,8 @@ TEST_F(JSContextRelaxationTest,
Node* const effect = graph()->start();
Node* const control = graph()->start();
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state, frame_state, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state, frame_state, effect, control);
Reduction const r = Reduce(node);
EXPECT_FALSE(r.Changed());
EXPECT_EQ(context, NodeProperties::GetContextInput(node));
@@ -121,9 +119,8 @@ TEST_F(JSContextRelaxationTest,
Node* const effect = graph()->start();
Node* const control = graph()->start();
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state, frame_state, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state, frame_state, effect, control);
Reduction const r = Reduce(node);
EXPECT_TRUE(r.Changed());
EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node));
@@ -140,9 +137,8 @@ TEST_F(JSContextRelaxationTest,
Node* const effect = graph()->start();
Node* const control = graph()->start();
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state, frame_state, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state, frame_state, effect, control);
Reduction const r = Reduce(node);
EXPECT_FALSE(r.Changed());
EXPECT_EQ(context, NodeProperties::GetContextInput(node));
@@ -162,9 +158,8 @@ TEST_F(JSContextRelaxationTest,
Node* const frame_state_2 =
ShallowFrameStateChain(nested_context, CALL_MAINTAINS_NATIVE_CONTEXT);
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state_2, frame_state_2, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state_2, frame_state_2, effect, control);
Reduction const r = Reduce(node);
EXPECT_TRUE(r.Changed());
EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node));
@@ -188,9 +183,8 @@ TEST_F(JSContextRelaxationTest,
Node* const frame_state_2 =
ShallowFrameStateChain(nested_context, CALL_MAINTAINS_NATIVE_CONTEXT);
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state_2, frame_state_2, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state_2, frame_state_2, effect, control);
Reduction const r = Reduce(node);
EXPECT_TRUE(r.Changed());
EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node));
@@ -212,9 +206,8 @@ TEST_F(JSContextRelaxationTest,
Node* const frame_state_2 =
ShallowFrameStateChain(nested_context, CALL_MAINTAINS_NATIVE_CONTEXT);
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state_2, frame_state_2, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state_2, frame_state_2, effect, control);
Reduction const r = Reduce(node);
EXPECT_TRUE(r.Changed());
EXPECT_EQ(outer_context, NodeProperties::GetContextInput(node));
@@ -238,9 +231,8 @@ TEST_F(JSContextRelaxationTest,
Node* const frame_state_2 =
ShallowFrameStateChain(nested_context, CALL_MAINTAINS_NATIVE_CONTEXT);
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state_2, frame_state_2, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state_2, frame_state_2, effect, control);
Reduction const r = Reduce(node);
EXPECT_TRUE(r.Changed());
EXPECT_EQ(nested_context, NodeProperties::GetContextInput(node));
@@ -261,9 +253,8 @@ TEST_F(JSContextRelaxationTest,
Node* const frame_state_2 =
ShallowFrameStateChain(nested_context, CALL_MAINTAINS_NATIVE_CONTEXT);
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state_2, frame_state_2, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state_2, frame_state_2, effect, control);
Reduction const r = Reduce(node);
EXPECT_TRUE(r.Changed());
EXPECT_EQ(nested_context, NodeProperties::GetContextInput(node));
@@ -284,9 +275,8 @@ TEST_F(JSContextRelaxationTest,
Node* const frame_state_2 =
ShallowFrameStateChain(nested_context, CALL_MAINTAINS_NATIVE_CONTEXT);
Node* node = graph()->NewNode(
- javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, STRICT,
- VectorSlotPair()),
- input0, input1, context, frame_state_2, frame_state_2, effect, control);
+ javascript()->CallFunction(2, STRICT, VectorSlotPair()), input0, input1,
+ context, frame_state_2, frame_state_2, effect, control);
Reduction const r = Reduce(node);
EXPECT_FALSE(r.Changed());
EXPECT_EQ(context, NodeProperties::GetContextInput(node));
« no previous file with comments | « test/unittests/compiler/js-builtin-reducer-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698