| Index: src/compiler/js-call-reducer.cc
|
| diff --git a/src/compiler/js-call-reducer.cc b/src/compiler/js-call-reducer.cc
|
| index 892dcc70ce361a413bf4b9404560c77e38998648..b3561e9a5465768f4fb5ecbecac9b7d27b101e0c 100644
|
| --- a/src/compiler/js-call-reducer.cc
|
| +++ b/src/compiler/js-call-reducer.cc
|
| @@ -326,9 +326,8 @@ Reduction JSCallReducer::ReduceJSCallFunction(Node* node) {
|
| }
|
|
|
| // Check that the {target} is still the {array_function}.
|
| - Node* check = effect =
|
| - graph()->NewNode(javascript()->StrictEqual(), target, array_function,
|
| - context, effect, control);
|
| + Node* check = graph()->NewNode(javascript()->StrictEqual(), target,
|
| + array_function, context);
|
| control = graph()->NewNode(common()->DeoptimizeUnless(), check, frame_state,
|
| effect, control);
|
|
|
| @@ -344,15 +343,13 @@ Reduction JSCallReducer::ReduceJSCallFunction(Node* node) {
|
| jsgraph()->Constant(handle(cell->value(), isolate()));
|
|
|
| // Check that the {target} is still the {target_function}.
|
| - Node* check = effect =
|
| - graph()->NewNode(javascript()->StrictEqual(), target, target_function,
|
| - context, effect, control);
|
| + Node* check = graph()->NewNode(javascript()->StrictEqual(), target,
|
| + target_function, context);
|
| control = graph()->NewNode(common()->DeoptimizeUnless(), check,
|
| frame_state, effect, control);
|
|
|
| // Specialize the JSCallFunction node to the {target_function}.
|
| NodeProperties::ReplaceValueInput(node, target_function, 0);
|
| - NodeProperties::ReplaceEffectInput(node, effect);
|
| NodeProperties::ReplaceControlInput(node, control);
|
|
|
| // Try to further reduce the JSCallFunction {node}.
|
| @@ -454,9 +451,8 @@ Reduction JSCallReducer::ReduceJSCallConstruct(Node* node) {
|
| }
|
|
|
| // Check that the {target} is still the {array_function}.
|
| - Node* check = effect =
|
| - graph()->NewNode(javascript()->StrictEqual(), target, array_function,
|
| - context, effect, control);
|
| + Node* check = graph()->NewNode(javascript()->StrictEqual(), target,
|
| + array_function, context);
|
| control = graph()->NewNode(common()->DeoptimizeUnless(), check, frame_state,
|
| effect, control);
|
|
|
| @@ -478,9 +474,8 @@ Reduction JSCallReducer::ReduceJSCallConstruct(Node* node) {
|
| jsgraph()->Constant(handle(cell->value(), isolate()));
|
|
|
| // Check that the {target} is still the {target_function}.
|
| - Node* check = effect =
|
| - graph()->NewNode(javascript()->StrictEqual(), target, target_function,
|
| - context, effect, control);
|
| + Node* check = graph()->NewNode(javascript()->StrictEqual(), target,
|
| + target_function, context);
|
| control = graph()->NewNode(common()->DeoptimizeUnless(), check,
|
| frame_state, effect, control);
|
|
|
|
|