Commit 0613128c authored by franzih's avatar franzih Committed by Commit bot

[type-feedback-vector] Delete unused DiffersFrom().

BUG=

Review-Url: https://codereview.chromium.org/2686493002
Cr-Commit-Position: refs/heads/master@{#42991}
parent 8fcacb78
...@@ -122,24 +122,6 @@ bool TypeFeedbackMetadata::SpecDiffersFrom( ...@@ -122,24 +122,6 @@ bool TypeFeedbackMetadata::SpecDiffersFrom(
return false; 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) { const char* TypeFeedbackMetadata::Kind2String(FeedbackVectorSlotKind kind) {
switch (kind) { switch (kind) {
......
...@@ -230,8 +230,6 @@ class TypeFeedbackMetadata : public FixedArray { ...@@ -230,8 +230,6 @@ class TypeFeedbackMetadata : public FixedArray {
bool SpecDiffersFrom(const FeedbackVectorSpec* other_spec) const; bool SpecDiffersFrom(const FeedbackVectorSpec* other_spec) const;
bool DiffersFrom(const TypeFeedbackMetadata* other_metadata) const;
inline bool is_empty() const; inline bool is_empty() const;
// Returns number of slots in the vector. // Returns number of slots in the vector.
......
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