Index: src/ia32/assembler-ia32-inl.h |
diff --git a/src/ia32/assembler-ia32-inl.h b/src/ia32/assembler-ia32-inl.h |
index 0c737acca524f3b721f107a2098e0535d5a97a6e..b6ef242a2c4e5350a0d207ce9cfcdd4fa6581217 100644 |
--- a/src/ia32/assembler-ia32-inl.h |
+++ b/src/ia32/assembler-ia32-inl.h |
@@ -132,6 +132,7 @@ Object** RelocInfo::target_object_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 && |