Index: src/objects-visiting.cc |
diff --git a/src/objects-visiting.cc b/src/objects-visiting.cc |
index e268768ccce631f901a3ce35697b538132617883..16c51676b5028ce2b24f6989bc0286b1768243ed 100644 |
--- a/src/objects-visiting.cc |
+++ b/src/objects-visiting.cc |
@@ -171,18 +171,14 @@ StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( |
return kVisitJSFunction; |
case HEAP_NUMBER_TYPE: |
- case EXTERNAL_PIXEL_ARRAY_TYPE: |
- case EXTERNAL_BYTE_ARRAY_TYPE: |
- case EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE: |
- case EXTERNAL_SHORT_ARRAY_TYPE: |
- case EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE: |
- case EXTERNAL_INT_ARRAY_TYPE: |
- case EXTERNAL_UNSIGNED_INT_ARRAY_TYPE: |
- case EXTERNAL_FLOAT_ARRAY_TYPE: |
- case EXTERNAL_DOUBLE_ARRAY_TYPE: |
+#define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
+ case EXTERNAL_##TYPE##_ARRAY_TYPE: |
+ |
+ TYPED_ARRAYS(EXTERNAL_ARRAY_CASE) |
return GetVisitorIdForSize(kVisitDataObject, |
kVisitDataObjectGeneric, |
instance_size); |
+#undef EXTERNAL_ARRAY_CASE |
case FIXED_UINT8_ARRAY_TYPE: |
case FIXED_INT8_ARRAY_TYPE: |