Index: src/transitions-inl.h |
diff --git a/src/transitions-inl.h b/src/transitions-inl.h |
index 2df30028317e0c64e71c7f8edfc39e706cbd4339..cfaa99d737ac411cb92fc01b9a94e106e8dcaad1 100644 |
--- a/src/transitions-inl.h |
+++ b/src/transitions-inl.h |
@@ -191,6 +191,11 @@ PropertyDetails TransitionArray::GetTargetDetails(int transition_number) { |
int TransitionArray::Search(String* name) { |
+ if (IsSimpleTransition()) { |
+ String* key = GetKey(kSimpleTransitionIndex); |
+ if (key->Equals(name)) return kSimpleTransitionIndex; |
+ return kNotFound; |
+ } |
return internal::Search<ALL_ENTRIES>(this, name); |
} |