BUG=
Review URL: https://codereview.chromium.org/
822693002
Cr-Commit-Position: refs/heads/master@{#25920}
if (has_unboxed_fields) return generic;
- const VisitorId specialization = static_cast<VisitorId>(
- base + (object_size >> kPointerSizeLog2) - kMinObjectSizeInWords);
+ int visitor_id =
+ Min(base + (object_size >> kPointerSizeLog2) - kMinObjectSizeInWords,
+ static_cast<int>(generic));
- return Min(specialization, generic);
+ return static_cast<VisitorId>(visitor_id);
}
};