Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 332e9f7e4a5ff0450a0fb0fb3dc5cf1a3f9f8b55..b2d636dedda98f45c99205a5494911c1534d1e43 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8849,12 +8849,13 @@ void Code::CopyFrom(const CodeDesc& desc) { |
ASSERT(Marking::Color(this) == Marking::WHITE_OBJECT); |
// copy code |
- CopyBytes(instruction_start(), desc.buffer, desc.instr_size); |
+ CopyBytes(instruction_start(), desc.buffer, |
+ static_cast<size_t>(desc.instr_size)); |
// copy reloc info |
CopyBytes(relocation_start(), |
desc.buffer + desc.buffer_size - desc.reloc_size, |
- desc.reloc_size); |
+ static_cast<size_t>(desc.reloc_size)); |
// unbox handles and relocate |
intptr_t delta = instruction_start() - desc.buffer; |