Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 88ced6c4438e9bc587f5c262fdfc872fe342405d..0cbfac9749eba94c459b7c5def83a0d70ddecf7e 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -58,7 +58,7 @@ PropertyDetails PropertyDetails::AsDeleted() const { |
int PropertyDetails::field_width_in_words() const { |
- DCHECK(type() == DATA); |
+ DCHECK(location() == kField); |
if (!FLAG_unbox_double_fields) return 1; |
if (kDoubleSize == kPointerSize) return 1; |
return representation().IsDouble() ? kDoubleSize / kPointerSize : 1; |
@@ -3140,13 +3140,13 @@ PropertyType DescriptorArray::GetType(int descriptor_number) { |
int DescriptorArray::GetFieldIndex(int descriptor_number) { |
- DCHECK(GetDetails(descriptor_number).type() == DATA); |
+ DCHECK(GetDetails(descriptor_number).location() == kField); |
return GetDetails(descriptor_number).field_index(); |
} |
HeapType* DescriptorArray::GetFieldType(int descriptor_number) { |
- DCHECK(GetDetails(descriptor_number).type() == DATA); |
+ DCHECK(GetDetails(descriptor_number).location() == kField); |
return HeapType::cast(GetValue(descriptor_number)); |
} |