| Index: src/compiler/js-typed-lowering.cc
|
| diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc
|
| index 20f33eed5e974e2c47cdc83e6265d759d99d9661..9094a662087ddb876fea4287a963d7e5ca462276 100644
|
| --- a/src/compiler/js-typed-lowering.cc
|
| +++ b/src/compiler/js-typed-lowering.cc
|
| @@ -18,6 +18,7 @@
|
| // TODO(turbofan): js-typed-lowering improvements possible
|
| // - immediately put in type bounds for all new nodes
|
| // - relax effects from generic but not-side-effecting operations
|
| +// - relax effects for ToNumber(mixed)
|
|
|
|
|
| // Relax the effects of {node} by immediately replacing effect uses of {node}
|
| @@ -730,9 +731,6 @@
|
| node->ReplaceInput(i, value);
|
| }
|
| node->TrimInputCount(input_count);
|
| - } else {
|
| - // JSToNumber(x:plain-primitive,context) => JSToNumber(x,no-context)
|
| - node->ReplaceInput(1, jsgraph()->NoContextConstant());
|
| }
|
| return Changed(node);
|
| }
|
|
|