Commit 47f858d2 authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Account for all initialized BinaryOp/CompareIC slots.

When computing the type info for a given function, make sure to also
count generic BinaryOp and Compare IC slots. TurboFan can deal with
those, and often still generates good code.

R=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2666323002
Cr-Commit-Position: refs/heads/master@{#42992}
parent 0613128c
...@@ -202,7 +202,8 @@ void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic, ...@@ -202,7 +202,8 @@ void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic,
BinaryOperationHint hint = BinaryOperationHintFromFeedback(feedback); BinaryOperationHint hint = BinaryOperationHintFromFeedback(feedback);
if (hint == BinaryOperationHint::kAny) { if (hint == BinaryOperationHint::kAny) {
gen++; gen++;
} else if (hint != BinaryOperationHint::kNone) { }
if (hint != BinaryOperationHint::kNone) {
with++; with++;
} }
total++; total++;
...@@ -219,7 +220,8 @@ void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic, ...@@ -219,7 +220,8 @@ void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic,
CompareOperationHintFromFeedback(feedback); CompareOperationHintFromFeedback(feedback);
if (hint == CompareOperationHint::kAny) { if (hint == CompareOperationHint::kAny) {
gen++; gen++;
} else if (hint != CompareOperationHint::kNone) { }
if (hint != CompareOperationHint::kNone) {
with++; with++;
} }
total++; total++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment