Fix wrong assert in compare stub minor key computation.
TBR=erik.corry Review URL: http://codereview.chromium.org/536010 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3573 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
8c2620112c
commit
35fae75f01
@ -6563,7 +6563,7 @@ const char* CompareStub::GetName() {
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user