Commit 1b323b25 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[runtime] Remove unused argument from IsSortedNoDuplicates

Change-Id: I15aefc6ecfc6a8d65b6bd74af9e2331cdc49fdc4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2202986
Auto-Submit: Georg Neis <neis@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68012}
parent ec9401aa
...@@ -1662,8 +1662,7 @@ void JSObject::SpillInformation::Print() { ...@@ -1662,8 +1662,7 @@ void JSObject::SpillInformation::Print() {
PrintF("\n"); PrintF("\n");
} }
bool DescriptorArray::IsSortedNoDuplicates(int valid_entries) { bool DescriptorArray::IsSortedNoDuplicates() {
if (valid_entries == -1) valid_entries = number_of_descriptors();
Name current_key; Name current_key;
uint32_t current = 0; uint32_t current = 0;
for (int i = 0; i < number_of_descriptors(); i++) { for (int i = 0; i < number_of_descriptors(); i++) {
...@@ -1683,8 +1682,7 @@ bool DescriptorArray::IsSortedNoDuplicates(int valid_entries) { ...@@ -1683,8 +1682,7 @@ bool DescriptorArray::IsSortedNoDuplicates(int valid_entries) {
return true; return true;
} }
bool TransitionArray::IsSortedNoDuplicates(int valid_entries) { bool TransitionArray::IsSortedNoDuplicates() {
DCHECK_EQ(valid_entries, -1);
Name prev_key; Name prev_key;
PropertyKind prev_kind = kData; PropertyKind prev_kind = kData;
PropertyAttributes prev_attributes = NONE; PropertyAttributes prev_attributes = NONE;
......
...@@ -189,7 +189,7 @@ class DescriptorArray ...@@ -189,7 +189,7 @@ class DescriptorArray
#ifdef DEBUG #ifdef DEBUG
// Is the descriptor array sorted and without duplicates? // Is the descriptor array sorted and without duplicates?
V8_EXPORT_PRIVATE bool IsSortedNoDuplicates(int valid_descriptors = -1); V8_EXPORT_PRIVATE bool IsSortedNoDuplicates();
// Are two DescriptorArrays equal? // Are two DescriptorArrays equal?
bool IsEqualTo(DescriptorArray other); bool IsEqualTo(DescriptorArray other);
......
...@@ -228,7 +228,7 @@ class TransitionArray : public WeakFixedArray { ...@@ -228,7 +228,7 @@ class TransitionArray : public WeakFixedArray {
int GetSortedKeyIndex(int transition_number) { return transition_number; } int GetSortedKeyIndex(int transition_number) { return transition_number; }
inline int number_of_entries() const; inline int number_of_entries() const;
#ifdef DEBUG #ifdef DEBUG
V8_EXPORT_PRIVATE bool IsSortedNoDuplicates(int valid_entries = -1); V8_EXPORT_PRIVATE bool IsSortedNoDuplicates();
#endif #endif
void Sort(); void Sort();
......
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