Index: src/snapshot/serializer.cc |
diff --git a/src/snapshot/serializer.cc b/src/snapshot/serializer.cc |
index 24041e3d93455136caabb91d1cf0258814c6d6c3..2e971e34071d036dee85b0dffd4590e3857e60c0 100644 |
--- a/src/snapshot/serializer.cc |
+++ b/src/snapshot/serializer.cc |
@@ -623,6 +623,7 @@ void Serializer::ObjectSerializer::VisitExternalReference(RelocInfo* rinfo) { |
sink_->Put(kExternalReference + how_to_code + kStartOfObject, "ExternalRef"); |
sink_->PutInt(skip, "SkipB4ExternalRef"); |
Address target = rinfo->target_external_reference(); |
+ DCHECK_NOT_NULL(target); // Code does not reference null. |
sink_->PutInt(serializer_->EncodeExternalReference(target), "reference id"); |
bytes_processed_so_far_ += rinfo->target_address_size(); |
} |