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

Unified Diff: src/transitions-inl.h

Issue 725633002: Revert "TransitionArray::Search() now returns insertion index if the entry was not found." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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/transitions.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/transitions-inl.h
diff --git a/src/transitions-inl.h b/src/transitions-inl.h
index 087755d1bdde10f941d17e23f903a0660f5030b2..6ed86a1407e120b7f5ae279650b01d9c2fd665f5 100644
--- a/src/transitions-inl.h
+++ b/src/transitions-inl.h
@@ -140,16 +140,13 @@ Object* TransitionArray::GetTargetValue(int transition_number) {
}
-int TransitionArray::Search(Name* name, int* out_insertion_index) {
+int TransitionArray::Search(Name* name) {
if (IsSimpleTransition()) {
Name* key = GetKey(kSimpleTransitionIndex);
if (key->Equals(name)) return kSimpleTransitionIndex;
- if (out_insertion_index != NULL) {
- *out_insertion_index = key->Hash() > name->Hash() ? 0 : 1;
- }
return kNotFound;
}
- return internal::Search<ALL_ENTRIES>(this, name, 0, out_insertion_index);
+ return internal::Search<ALL_ENTRIES>(this, name);
}
« no previous file with comments | « src/transitions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698