Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: src/type-feedback-vector-inl.h

Issue 2666323002: [turbofan] Account for all initialized BinaryOp/CompareIC slots. (Closed)
Patch Set: REBASE Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-feedback-vector-inl.h
diff --git a/src/type-feedback-vector-inl.h b/src/type-feedback-vector-inl.h
index 43f055b7bd6f8af19a4b67e6fc9bc1eabb856b62..54010c68dde32a2c950cfd2c5722509820292171 100644
--- a/src/type-feedback-vector-inl.h
+++ b/src/type-feedback-vector-inl.h
@@ -199,7 +199,8 @@ void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic,
BinaryOperationHint hint = BinaryOperationHintFromFeedback(feedback);
if (hint == BinaryOperationHint::kAny) {
gen++;
- } else if (hint != BinaryOperationHint::kNone) {
+ }
+ if (hint != BinaryOperationHint::kNone) {
with++;
}
total++;
@@ -216,7 +217,8 @@ void TypeFeedbackVector::ComputeCounts(int* with_type_info, int* generic,
CompareOperationHintFromFeedback(feedback);
if (hint == CompareOperationHint::kAny) {
gen++;
- } else if (hint != CompareOperationHint::kNone) {
+ }
+ if (hint != CompareOperationHint::kNone) {
with++;
}
total++;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698