[turbofan] Also hook up BinaryOperationHints for CountOperation.
R=jarin@chromium.org BUG=v8:4583 LOG=n Review URL: https://codereview.chromium.org/1642653002 Cr-Commit-Position: refs/heads/master@{#33554}
This commit is contained in:
parent
cf71b0685a
commit
bf55c87ac8
@ -2726,7 +2726,7 @@ void AstGraphBuilder::VisitCountOperation(CountOperation* expr) {
|
||||
// TODO(bmeurer): Cleanup this feedback/bailout mess!
|
||||
FrameStateBeforeAndAfter states(this, BailoutId::None());
|
||||
value = BuildBinaryOp(old_value, jsgraph()->OneConstant(),
|
||||
expr->binary_op(), TypeFeedbackId::None());
|
||||
expr->binary_op(), expr->CountBinOpFeedbackId());
|
||||
// This should never deoptimize outside strong mode because otherwise we
|
||||
// have converted to number before.
|
||||
states.AddToNode(value, is_strong(language_mode()) ? expr->ToNumberId()
|
||||
|
Loading…
Reference in New Issue
Block a user