| Index: src/code-stubs.cc
|
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc
|
| index df9855d09c34a50893549796c3d8c7f0f21088a7..aa2c82172c16250172db0fa2494b067b532ca0d9 100644
|
| --- a/src/code-stubs.cc
|
| +++ b/src/code-stubs.cc
|
| @@ -431,7 +431,9 @@ CompareNilICStub::Types CompareNilICStub::GetPatchedICFlags(
|
| } else if (object->IsUndefined()) {
|
| types = static_cast<CompareNilICStub::Types>(
|
| types | CompareNilICStub::kCompareAgainstUndefined);
|
| - } else if (object->IsUndetectableObject() || !object->IsHeapObject()) {
|
| + } else if (object->IsUndetectableObject() ||
|
| + object->IsOddball() ||
|
| + !object->IsHeapObject()) {
|
| types = CompareNilICStub::kFullCompare;
|
| } else if ((types & CompareNilICStub::kCompareAgainstMonomorphicMap) != 0) {
|
| types = CompareNilICStub::kFullCompare;
|
|
|