Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index d1d6278c6687104b5df0bac7ef347cf9d9a686c4..1c231a70b62b5395d6b37bc333b751f2f7d98cdd 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -308,6 +308,7 @@ Address* RelocInfo::target_reference_address() { |
void RelocInfo::set_target_object(Object* target, WriteBarrierMode mode) { |
ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
+ ASSERT(!target->IsConsString()); |
Memory::Object_at(pc_) = target; |
CPU::FlushICache(pc_, sizeof(Address)); |
if (mode == UPDATE_WRITE_BARRIER && |