| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 031c8049fcfb938b8242192288468f3b20538401..56be47d7d32258001964767040e8b297204308f7 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -77,9 +77,7 @@ Handle<HeapType> Object::OptimalType(Isolate* isolate,
|
| if (representation.IsHeapObject() && IsHeapObject()) {
|
| // We can track only JavaScript objects with stable maps.
|
| Handle<Map> map(HeapObject::cast(this)->map(), isolate);
|
| - if (map->is_stable() &&
|
| - map->instance_type() >= FIRST_NONCALLABLE_SPEC_OBJECT_TYPE &&
|
| - map->instance_type() <= LAST_NONCALLABLE_SPEC_OBJECT_TYPE) {
|
| + if (map->is_stable() && map->IsJSReceiverMap()) {
|
| return HeapType::Class(map, isolate);
|
| }
|
| }
|
|
|