Index: src/transitions-inl.h |
diff --git a/src/transitions-inl.h b/src/transitions-inl.h |
index 6ed86a1407e120b7f5ae279650b01d9c2fd665f5..087755d1bdde10f941d17e23f903a0660f5030b2 100644 |
--- a/src/transitions-inl.h |
+++ b/src/transitions-inl.h |
@@ -140,13 +140,16 @@ Object* TransitionArray::GetTargetValue(int transition_number) { |
} |
-int TransitionArray::Search(Name* name) { |
+int TransitionArray::Search(Name* name, int* out_insertion_index) { |
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); |
+ return internal::Search<ALL_ENTRIES>(this, name, 0, out_insertion_index); |
} |