Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 0d63ebdf5cbca4718e83ea4b7eaf15ed62c2d0d9..8285e7e13daf852b55e61786d7710f55ca1a966f 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -218,7 +218,16 @@ class JSBinopReduction final { |
return ChangeToPureOperator(op, false, type); |
} |
- bool IsStrong() { return is_strong(OpParameter<LanguageMode>(node_)); } |
+ // TODO(turbofan): Strong mode should be killed soonish! |
Jarin
2015/12/01 07:31:00
???
|
+ bool IsStrong() const { |
+ if (node_->opcode() == IrOpcode::kJSLessThan || |
+ node_->opcode() == IrOpcode::kJSLessThanOrEqual || |
+ node_->opcode() == IrOpcode::kJSGreaterThan || |
+ node_->opcode() == IrOpcode::kJSGreaterThanOrEqual) { |
+ return is_strong(OpParameter<LanguageMode>(node_)); |
+ } |
+ return is_strong(BinaryOperationParametersOf(node_->op()).language_mode()); |
+ } |
bool LeftInputIs(Type* t) { return left_type()->Is(t); } |