diff --git a/src/heap.cc b/src/heap.cc index cad5d1d1c1..de12d3fa9a 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -839,6 +839,7 @@ void Heap::ScavengeObject(HeapObject** p, HeapObject* object) { static inline bool IsShortcutCandidate(HeapObject* object, Map* map) { + STATIC_ASSERT(kNotStringTag != 0 && kSymbolTag != 0); ASSERT(object->map() == map); InstanceType type = map->instance_type(); if ((type & kShortcutTypeMask) != kShortcutTypeTag) return false; diff --git a/src/objects.h b/src/objects.h index 3a1cd7ec58..ade282be69 100644 --- a/src/objects.h +++ b/src/objects.h @@ -447,7 +447,6 @@ enum StringRepresentationTag { // symbol. It's not common to have non-flat symbols, so we do not // shortcut them thereby avoiding turning symbols into strings. See // heap.cc and mark-compact.cc. -STATIC_ASSERT(kNotStringTag != 0 && kSymbolTag != 0); const uint32_t kShortcutTypeMask = kIsNotStringMask | kIsSymbolMask |