Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f330a5ebbede7037b807303cae021467e79a6fa1..dbbec582228aad3e6d7b610d2a51d44205461ab9 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8813,19 +8813,12 @@ void Code::CopyFrom(const CodeDesc& desc) { |
ASSERT(Marking::Color(this) == Marking::WHITE_OBJECT); |
// copy code |
- CHECK(IsCode()); |
- CHECK(relocation_info()->IsByteArray()); |
- CHECK(reinterpret_cast<intptr_t>(instruction_start()) == |
- reinterpret_cast<intptr_t>(this) + Code::kHeaderSize - kHeapObjectTag); |
- CopyBytes<byte>(instruction_start(), desc.buffer, desc.instr_size); |
+ CopyBytes(instruction_start(), desc.buffer, desc.instr_size); |
// copy reloc info |
- // TODO(mstarzinger): Remove once we found the bug. |
- CHECK(IsCode()); |
- CHECK(relocation_info()->IsByteArray()); |
- CopyBytes<byte>(relocation_start(), |
- desc.buffer + desc.buffer_size - desc.reloc_size, |
- desc.reloc_size); |
+ CopyBytes(relocation_start(), |
+ desc.buffer + desc.buffer_size - desc.reloc_size, |
+ desc.reloc_size); |
// unbox handles and relocate |
intptr_t delta = instruction_start() - desc.buffer; |