diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc index 6c641487cb..7ad1598e5e 100644 --- a/src/arm/codegen-arm.cc +++ b/src/arm/codegen-arm.cc @@ -6563,7 +6563,7 @@ const char* CompareStub::GetName() { int CompareStub::MinorKey() { // Encode the three parameters in a unique 16 bit value. - ASSERT(static_cast(cc_) < (1 << 14)); + ASSERT((static_cast(cc_) >> 26) < (1 << 16)); int nnn_value = (never_nan_nan_ ? 2 : 0); if (cc_ != eq) nnn_value = 0; // Avoid duplicate stubs. return (static_cast(cc_) >> 26) | nnn_value | (strict_ ? 1 : 0);