Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index dd3c0b182d616fda37b0c66d24acba52e2593570..18926bfbb1d57e9e0449ea888be13e4992b7cdb4 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -3193,6 +3193,7 @@ void ExternalAsciiString::update_data_cache() { |
void ExternalAsciiString::set_resource( |
const ExternalAsciiString::Resource* resource) { |
+ ASSERT(IsAligned(reinterpret_cast<intptr_t>(resource), kPointerSize)); |
*reinterpret_cast<const Resource**>( |
FIELD_ADDR(this, kResourceOffset)) = resource; |
if (resource != NULL) update_data_cache(); |