Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 2ff1ce98500e5aa6e9c03faad4bd07b3c3736a8b..51b023b70027426e8fdc10e7f604e9f23fee8965 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -1350,7 +1350,7 @@ static inline HeapObject* ShortCircuitConsString(Object** p) { |
if (!FLAG_clever_optimizations) return object; |
Map* map = object->map(); |
InstanceType type = map->instance_type(); |
- if ((type & kShortcutTypeMask) != kShortcutTypeTag) return object; |
+ if (!IsShortcutCandidate(type)) return object; |
Object* second = reinterpret_cast<ConsString*>(object)->second(); |
Heap* heap = map->GetHeap(); |