Revision: 14206
Author:   [email protected]
Date:     Wed Apr 10 02:53:43 2013
Log:      Put common case first

This might fix a 2% regression that we might be observing for CL 14128.

[email protected]
BUG=

Review URL: https://codereview.chromium.org/13811021
http://code.google.com/p/v8/source/detail?r=14206

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

=======================================
--- /branches/bleeding_edge/src/objects-inl.h   Wed Apr 10 02:24:31 2013
+++ /branches/bleeding_edge/src/objects-inl.h   Wed Apr 10 02:53:43 2013
@@ -2545,8 +2545,8 @@

 bool Name::Equals(Name* other) {
   if (other == this) return true;
-  if (this->IsSymbol() || other->IsSymbol() ||
-      (this->IsInternalizedString() && other->IsInternalizedString())) {
+  if ((this->IsInternalizedString() && other->IsInternalizedString()) ||
+      this->IsSymbol() || other->IsSymbol()) {
     return false;
   }
   return String::cast(this)->SlowEquals(String::cast(other));

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to