Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 2fa4eb4fae72c7e54a9769b4f0451980ba1a708b..60996e1ae51329bffa38bfebaceac4e644f6a4ed 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -28,36 +28,32 @@ class JSBinopReduction final { |
: lowering_(lowering), node_(node) {} |
BinaryOperationHints::Hint GetNumberBinaryOperationFeedback() { |
- if (!(lowering_->flags() & JSTypedLowering::kDeoptimizationEnabled) || |
- !(lowering_->flags() & JSTypedLowering::kTypeFeedbackEnabled)) { |
- return BinaryOperationHints::kAny; |
- } |
- DCHECK_NE(0, node_->op()->ControlOutputCount()); |
- DCHECK_EQ(1, node_->op()->EffectOutputCount()); |
- DCHECK_LE(1, OperatorProperties::GetFrameStateInputCount(node_->op())); |
- BinaryOperationHints hints = BinaryOperationHintsOf(node_->op()); |
- BinaryOperationHints::Hint combined = hints.combined(); |
- if (combined == BinaryOperationHints::kSignedSmall || |
- combined == BinaryOperationHints::kSigned32 || |
- combined == BinaryOperationHints::kNumberOrOddball) { |
- return combined; |
+ if (lowering_->flags() & JSTypedLowering::kDeoptimizationEnabled) { |
+ DCHECK_NE(0, node_->op()->ControlOutputCount()); |
+ DCHECK_EQ(1, node_->op()->EffectOutputCount()); |
+ DCHECK_LE(1, OperatorProperties::GetFrameStateInputCount(node_->op())); |
+ BinaryOperationHints hints = BinaryOperationHintsOf(node_->op()); |
+ BinaryOperationHints::Hint combined = hints.combined(); |
+ if (combined == BinaryOperationHints::kSignedSmall || |
+ combined == BinaryOperationHints::kSigned32 || |
+ combined == BinaryOperationHints::kNumberOrOddball) { |
+ return combined; |
+ } |
} |
return BinaryOperationHints::kAny; |
} |
CompareOperationHints::Hint GetNumberCompareOperationFeedback() { |
- if (!(lowering_->flags() & JSTypedLowering::kDeoptimizationEnabled) || |
- !(lowering_->flags() & JSTypedLowering::kTypeFeedbackEnabled)) { |
- return CompareOperationHints::kAny; |
- } |
- DCHECK_NE(0, node_->op()->ControlOutputCount()); |
- DCHECK_EQ(1, node_->op()->EffectOutputCount()); |
- DCHECK_EQ(1, OperatorProperties::GetFrameStateInputCount(node_->op())); |
- CompareOperationHints hints = CompareOperationHintsOf(node_->op()); |
- CompareOperationHints::Hint combined = hints.combined(); |
- if (combined == CompareOperationHints::kSignedSmall || |
- combined == CompareOperationHints::kNumberOrOddball) { |
- return combined; |
+ if (lowering_->flags() & JSTypedLowering::kDeoptimizationEnabled) { |
+ DCHECK_NE(0, node_->op()->ControlOutputCount()); |
+ DCHECK_EQ(1, node_->op()->EffectOutputCount()); |
+ DCHECK_EQ(1, OperatorProperties::GetFrameStateInputCount(node_->op())); |
+ CompareOperationHints hints = CompareOperationHintsOf(node_->op()); |
+ CompareOperationHints::Hint combined = hints.combined(); |
+ if (combined == CompareOperationHints::kSignedSmall || |
+ combined == CompareOperationHints::kNumberOrOddball) { |
+ return combined; |
+ } |
} |
return CompareOperationHints::kAny; |
} |