Index: src/lookup.h |
diff --git a/src/lookup.h b/src/lookup.h |
index e0b40c40fe21c9650f266baf3cdd10ad9473d656..5f7a293e36fdf5ecf55bb3e192509bfd7ad8da17 100644 |
--- a/src/lookup.h |
+++ b/src/lookup.h |
@@ -288,7 +288,7 @@ class V8_EXPORT_PRIVATE LookupIterator final BASE_EMBEDDED { |
void NextInternal(Map* map, JSReceiver* holder); |
template <bool is_element> |
inline State LookupInHolder(Map* map, JSReceiver* holder) { |
- return map->instance_type() <= LAST_SPECIAL_RECEIVER_TYPE |
+ return map->IsSpecialReceiverMap() |
? LookupInSpecialHolder<is_element>(map, holder) |
: LookupInRegularHolder<is_element>(map, holder); |
} |