Index: src/deoptimizer.cc |
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc |
index 21c39023b0353a3509a6166c6ba79db7497c406b..d4756ff18389d833774a02720ff1f9eebab677c9 100644 |
--- a/src/deoptimizer.cc |
+++ b/src/deoptimizer.cc |
@@ -1234,7 +1234,9 @@ void Deoptimizer::DoComputeInterpretedFrame(TranslatedFrame* translated_frame, |
// Set the bytecode array pointer. |
output_offset -= kPointerSize; |
- Object* bytecode_array = shared->bytecode_array(); |
+ Object* bytecode_array = shared->HasDebugInfo() |
+ ? shared->GetDebugInfo()->DebugBytecodeArray() |
+ : shared->bytecode_array(); |
WriteValueToOutput(bytecode_array, 0, frame_index, output_offset, |
"bytecode array "); |