[v8] r12778 committed - Fast path for searching through simple transitions...

3 views
Skip to first unread message

codesite...@google.com

unread,
Oct 19, 2012, 11:03:54 AM10/19/12
to v8-...@googlegroups.com
Revision: 12778
Author: verw...@chromium.org
Date: Fri Oct 19 08:03:27 2012
Log: Fast path for searching through simple transitions

Review URL: https://chromiumcodereview.appspot.com/11189089
http://code.google.com/p/v8/source/detail?r=12778

Modified:
/branches/bleeding_edge/src/transitions-inl.h

=======================================
--- /branches/bleeding_edge/src/transitions-inl.h Wed Oct 17 06:04:49 2012
+++ /branches/bleeding_edge/src/transitions-inl.h Fri Oct 19 08:03:27 2012
@@ -191,6 +191,11 @@


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);
}

Reply all
Reply to author
Forward
0 new messages