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

Unified Diff: src/type-feedback-vector.cc

Issue 2686493002: [type-feedback-vector] Delete unused DiffersFrom(). (Closed)
Patch Set: 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 | « src/type-feedback-vector.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-feedback-vector.cc
diff --git a/src/type-feedback-vector.cc b/src/type-feedback-vector.cc
index 525a18e09497ab1ee70736f3774a4864367170b9..6e6714362e1e9b17660aeaf001058697325afcd2 100644
--- a/src/type-feedback-vector.cc
+++ b/src/type-feedback-vector.cc
@@ -122,24 +122,6 @@ bool TypeFeedbackMetadata::SpecDiffersFrom(
return false;
}
-bool TypeFeedbackMetadata::DiffersFrom(
- const TypeFeedbackMetadata* other_metadata) const {
- if (other_metadata->slot_count() != slot_count()) {
- return true;
- }
-
- int slots = slot_count();
- for (int i = 0; i < slots;) {
- FeedbackVectorSlot slot(i);
- FeedbackVectorSlotKind kind = GetKind(slot);
- int entry_size = TypeFeedbackMetadata::GetSlotSize(kind);
- if (GetKind(slot) != other_metadata->GetKind(slot)) {
- return true;
- }
- i += entry_size;
- }
- return false;
-}
const char* TypeFeedbackMetadata::Kind2String(FeedbackVectorSlotKind kind) {
switch (kind) {
« no previous file with comments | « src/type-feedback-vector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698