Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 7dfdb9c8d25a01cf713e0f5af5d87a4336b31285..c14efed77124bf008597392b89d0179dbca32f9b 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -3103,6 +3103,7 @@ AllocationResult Heap::AllocateBytecodeArray(int length, |
instance->set_constant_pool(constant_pool); |
instance->set_handler_table(empty_fixed_array()); |
instance->set_source_position_table(empty_byte_array()); |
+ instance->set_stack_frame_cache(Smi::kZero); |
CopyBytes(instance->GetFirstBytecodeAddress(), raw_bytecodes, length); |
return result; |
@@ -3464,6 +3465,7 @@ AllocationResult Heap::CopyBytecodeArray(BytecodeArray* bytecode_array) { |
copy->set_parameter_count(bytecode_array->parameter_count()); |
copy->set_constant_pool(bytecode_array->constant_pool()); |
copy->set_handler_table(bytecode_array->handler_table()); |
+ copy->set_stack_frame_cache(bytecode_array->stack_frame_cache()); |
copy->set_source_position_table(bytecode_array->source_position_table()); |
copy->set_interrupt_budget(bytecode_array->interrupt_budget()); |
copy->set_osr_loop_nesting_level(bytecode_array->osr_loop_nesting_level()); |