Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 15b6a2357763a952fd17ce592d384998a09c01b2..4a83110747ef388215c9c88fccd25ecf6ae28f87 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -3038,6 +3038,7 @@ AllocationResult Heap::AllocateBytecodeArray(int length, |
instance->set_frame_size(frame_size); |
instance->set_parameter_count(parameter_count); |
instance->set_interrupt_budget(interpreter::Interpreter::InterruptBudget()); |
+ instance->set_osr_loop_nesting_level(0); |
instance->set_constant_pool(constant_pool); |
instance->set_handler_table(empty_fixed_array()); |
instance->set_source_position_table(empty_byte_array()); |
@@ -3399,6 +3400,7 @@ AllocationResult Heap::CopyBytecodeArray(BytecodeArray* bytecode_array) { |
copy->set_handler_table(bytecode_array->handler_table()); |
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()); |
bytecode_array->CopyBytecodesTo(copy); |
return copy; |
} |