Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 51ddc174cc94e9abc75dcf15c797e3f8fc386f6e..589040b5f140a3b60334fac096698694cb113b97 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -470,6 +470,9 @@ Reduction JSTypedLowering::ReduceJSComparison(Node* node) { |
} |
return r.ChangeToPureOperator(stringOp); |
} |
+ if (r.IsStrong() && !r.BothInputsAre(Type::Number())) { |
+ return NoChange(); |
+ } |
#if 0 |
// TODO(turbofan): General ToNumber disabled for now because: |
// a) The inserted ToNumber operation screws up observability of valueOf. |