Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index c4bd1d2b4a283715566751c038feead60ec61554..a3fbb669ed3759087c5809d0816ce7d7565bd4d0 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -344,6 +344,13 @@ Reduction JSTypedLowering::ReduceJSAdd(Node* node) { |
Reduction JSTypedLowering::ReduceNumberBinop(Node* node, |
const Operator* numberOp) { |
JSBinopReduction r(this, node); |
+ if (is_strong(OpParameter<LanguageMode>(node))) { |
+ if (r.left_type()->Is(Type::Number()) && |
+ (r.right_type()->Is(Type::Number()))) { |
+ return r.ChangeToPureOperator(numberOp, Type::Number()); |
+ } |
+ return NoChange(); |
+ } |
Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); |
r.ConvertInputsToNumber(frame_state); |
return r.ChangeToPureOperator(numberOp, Type::Number()); |