Index: src/transitions-inl.h |
diff --git a/src/transitions-inl.h b/src/transitions-inl.h |
index 96d9495bf404cecb30760e01551bbd22a1fd7277..9424497e199ac2941e7eac15ff362701ed55933b 100644 |
--- a/src/transitions-inl.h |
+++ b/src/transitions-inl.h |
@@ -100,7 +100,9 @@ void TransitionArray::SetTarget(int transition_number, Map* value) { |
int TransitionArray::SearchName(Name* name, int* out_insertion_index) { |
- return internal::Search<ALL_ENTRIES>(this, name, 0, out_insertion_index); |
+ DCHECK(name->IsUniqueName()); |
+ return internal::Search<ALL_ENTRIES>(this, name, number_of_entries(), |
+ out_insertion_index); |
} |