Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index fd4b397d2bf074090a0a4359cbf37b0778b2234f..2ec9afca87df686b3ee069baa46b2b2c1aa21ffb 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13453,6 +13453,14 @@ void Code::CopyFrom(const CodeDesc& desc) { |
CopyBytes(instruction_start(), desc.buffer, |
static_cast<size_t>(desc.instr_size)); |
+ // copy unwinding info, if any |
+ if (desc.unwinding_info) { |
+ DCHECK_GT(desc.unwinding_info_size, 0); |
+ set_unwinding_info_size(desc.unwinding_info_size); |
+ CopyBytes(unwinding_info_start(), desc.unwinding_info, |
+ static_cast<size_t>(desc.unwinding_info_size)); |
+ } |
+ |
// copy reloc info |
CopyBytes(relocation_start(), |
desc.buffer + desc.buffer_size - desc.reloc_size, |