Revision: 3573
Author: [email protected]
Date: Sun Jan 10 23:35:32 2010
Log: Fix wrong assert in compare stub minor key computation.

TBR=erik.corry
Review URL: http://codereview.chromium.org/536010
http://code.google.com/p/v8/source/detail?r=3573

Modified:
 /branches/bleeding_edge/src/arm/codegen-arm.cc

=======================================
--- /branches/bleeding_edge/src/arm/codegen-arm.cc      Fri Jan  8 03:58:15 2010
+++ /branches/bleeding_edge/src/arm/codegen-arm.cc      Sun Jan 10 23:35:32 2010
@@ -6563,7 +6563,7 @@

 int CompareStub::MinorKey() {
   // Encode the three parameters in a unique 16 bit value.
-  ASSERT(static_cast<unsigned>(cc_) < (1 << 14));
+  ASSERT((static_cast<unsigned>(cc_) >> 26) < (1 << 16));
   int nnn_value = (never_nan_nan_ ? 2 : 0);
   if (cc_ != eq) nnn_value = 0;  // Avoid duplicate stubs.
return (static_cast<unsigned>(cc_) >> 26) | nnn_value | (strict_ ? 1 : 0);
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to