Index: src/value-serializer.cc |
diff --git a/src/value-serializer.cc b/src/value-serializer.cc |
index 0452c9b6e59d764ea7a463324a1ddbd86fb2b5e2..955e73cfbfe3405d1743b9be6e1b637211c254ef 100644 |
--- a/src/value-serializer.cc |
+++ b/src/value-serializer.cc |
@@ -475,7 +475,8 @@ Maybe<bool> ValueSerializer::WriteJSObject(Handle<JSObject> object) { |
Handle<Object> value; |
if (V8_LIKELY(!map_changed)) map_changed = *map == object->map(); |
- if (V8_LIKELY(!map_changed && details.type() == DATA)) { |
+ if (V8_LIKELY(!map_changed && details.location() == kField)) { |
+ DCHECK_EQ(kData, details.kind()); |
FieldIndex field_index = FieldIndex::ForDescriptor(*map, i); |
value = JSObject::FastPropertyAt(object, details.representation(), |
field_index); |