Index: test/unittests/compiler/js-builtin-reducer-unittest.cc |
diff --git a/test/unittests/compiler/js-builtin-reducer-unittest.cc b/test/unittests/compiler/js-builtin-reducer-unittest.cc |
index 090f6100660ca63ff006a8dbb787c0a413ca5ef5..a56fee1150e3107b367a398b302f105f5afce911 100644 |
--- a/test/unittests/compiler/js-builtin-reducer-unittest.cc |
+++ b/test/unittests/compiler/js-builtin-reducer-unittest.cc |
@@ -77,10 +77,14 @@ Type* const kNumberTypes[] = { |
TEST_F(JSBuiltinReducerTest, MathMax0) { |
Node* function = MathFunction("max"); |
+ Node* effect = graph()->start(); |
+ Node* control = graph()->start(); |
+ Node* frame_state = graph()->start(); |
TRACED_FOREACH(LanguageMode, language_mode, kLanguageModes) { |
Node* call = graph()->NewNode( |
javascript()->CallFunction(2, NO_CALL_FUNCTION_FLAGS, language_mode), |
- function, UndefinedConstant()); |
+ function, UndefinedConstant(), frame_state, frame_state, effect, |
+ control); |
Reduction r = Reduce(call); |
ASSERT_TRUE(r.Changed()); |
@@ -92,12 +96,16 @@ TEST_F(JSBuiltinReducerTest, MathMax0) { |
TEST_F(JSBuiltinReducerTest, MathMax1) { |
Node* function = MathFunction("max"); |
+ Node* effect = graph()->start(); |
+ Node* control = graph()->start(); |
+ Node* frame_state = graph()->start(); |
TRACED_FOREACH(LanguageMode, language_mode, kLanguageModes) { |
TRACED_FOREACH(Type*, t0, kNumberTypes) { |
Node* p0 = Parameter(t0, 0); |
Node* call = graph()->NewNode( |
javascript()->CallFunction(3, NO_CALL_FUNCTION_FLAGS, language_mode), |
- function, UndefinedConstant(), p0); |
+ function, UndefinedConstant(), p0, frame_state, frame_state, effect, |
+ control); |
Reduction r = Reduce(call); |
ASSERT_TRUE(r.Changed()); |
@@ -110,6 +118,9 @@ TEST_F(JSBuiltinReducerTest, MathMax1) { |
TEST_F(JSBuiltinReducerTest, MathMax2) { |
Node* function = MathFunction("max"); |
+ Node* effect = graph()->start(); |
+ Node* control = graph()->start(); |
+ Node* frame_state = graph()->start(); |
TRACED_FOREACH(LanguageMode, language_mode, kLanguageModes) { |
TRACED_FOREACH(Type*, t0, kIntegral32Types) { |
TRACED_FOREACH(Type*, t1, kIntegral32Types) { |
@@ -118,7 +129,8 @@ TEST_F(JSBuiltinReducerTest, MathMax2) { |
Node* call = |
graph()->NewNode(javascript()->CallFunction( |
4, NO_CALL_FUNCTION_FLAGS, language_mode), |
- function, UndefinedConstant(), p0, p1); |
+ function, UndefinedConstant(), p0, p1, frame_state, |
+ frame_state, effect, control); |
Reduction r = Reduce(call); |
ASSERT_TRUE(r.Changed()); |
@@ -137,6 +149,9 @@ TEST_F(JSBuiltinReducerTest, MathMax2) { |
TEST_F(JSBuiltinReducerTest, MathImul) { |
Node* function = MathFunction("imul"); |
+ Node* effect = graph()->start(); |
+ Node* control = graph()->start(); |
+ Node* frame_state = graph()->start(); |
TRACED_FOREACH(LanguageMode, language_mode, kLanguageModes) { |
TRACED_FOREACH(Type*, t0, kIntegral32Types) { |
TRACED_FOREACH(Type*, t1, kIntegral32Types) { |
@@ -145,7 +160,8 @@ TEST_F(JSBuiltinReducerTest, MathImul) { |
Node* call = |
graph()->NewNode(javascript()->CallFunction( |
4, NO_CALL_FUNCTION_FLAGS, language_mode), |
- function, UndefinedConstant(), p0, p1); |
+ function, UndefinedConstant(), p0, p1, frame_state, |
+ frame_state, effect, control); |
Reduction r = Reduce(call); |
ASSERT_TRUE(r.Changed()); |
@@ -163,12 +179,16 @@ TEST_F(JSBuiltinReducerTest, MathImul) { |
TEST_F(JSBuiltinReducerTest, MathFround) { |
Node* function = MathFunction("fround"); |
+ Node* effect = graph()->start(); |
+ Node* control = graph()->start(); |
+ Node* frame_state = graph()->start(); |
TRACED_FOREACH(LanguageMode, language_mode, kLanguageModes) { |
TRACED_FOREACH(Type*, t0, kNumberTypes) { |
Node* p0 = Parameter(t0, 0); |
Node* call = graph()->NewNode( |
javascript()->CallFunction(3, NO_CALL_FUNCTION_FLAGS, language_mode), |
- function, UndefinedConstant(), p0); |
+ function, UndefinedConstant(), p0, frame_state, frame_state, effect, |
+ control); |
Reduction r = Reduce(call); |
ASSERT_TRUE(r.Changed()); |