Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 5c33aafbacaf759189f05f6fe57e878625eea9aa..9b7e0a76c3948ebcdf0ffe59856f997bd12bde39 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8816,6 +8816,8 @@ void Code::CopyFrom(const CodeDesc& desc) { |
memmove(instruction_start(), desc.buffer, desc.instr_size); |
// copy reloc info |
+ // TODO(mstarzinger): Remove once we found the bug. |
+ CHECK(relocation_info()->IsByteArray()); |
memmove(relocation_start(), |
desc.buffer + desc.buffer_size - desc.reloc_size, |
desc.reloc_size); |