Commit d9c6f517 authored by tebbi's avatar tebbi Committed by Commit bot

[deoptimizer] Added separators in deoptimization tracing output for full-codegen and ignition

BUG=v8:5330

R=bmeurer@chromium.org

Review-Url: https://codereview.chromium.org/2311153002
Cr-Commit-Position: refs/heads/master@{#39713}
parent d85a3497
...@@ -885,6 +885,10 @@ void Deoptimizer::DoComputeJSFrame(TranslatedFrame* translated_frame, ...@@ -885,6 +885,10 @@ void Deoptimizer::DoComputeJSFrame(TranslatedFrame* translated_frame,
output_offset); output_offset);
} }
if (trace_scope_ != nullptr) {
PrintF(trace_scope_->file(), " -------------------------\n");
}
// There are no translation commands for the caller's pc and fp, the // There are no translation commands for the caller's pc and fp, the
// context, and the function. Synthesize their values and set them up // context, and the function. Synthesize their values and set them up
// explicitly. // explicitly.
...@@ -980,6 +984,10 @@ void Deoptimizer::DoComputeJSFrame(TranslatedFrame* translated_frame, ...@@ -980,6 +984,10 @@ void Deoptimizer::DoComputeJSFrame(TranslatedFrame* translated_frame,
value = reinterpret_cast<intptr_t>(function); value = reinterpret_cast<intptr_t>(function);
WriteValueToOutput(function, 0, frame_index, output_offset, "function "); WriteValueToOutput(function, 0, frame_index, output_offset, "function ");
if (trace_scope_ != nullptr) {
PrintF(trace_scope_->file(), " -------------------------\n");
}
// Translate the rest of the frame. // Translate the rest of the frame.
for (unsigned i = 0; i < height; ++i) { for (unsigned i = 0; i < height; ++i) {
output_offset -= kPointerSize; output_offset -= kPointerSize;
...@@ -1122,6 +1130,10 @@ void Deoptimizer::DoComputeInterpretedFrame(TranslatedFrame* translated_frame, ...@@ -1122,6 +1130,10 @@ void Deoptimizer::DoComputeInterpretedFrame(TranslatedFrame* translated_frame,
output_offset); output_offset);
} }
if (trace_scope_ != nullptr) {
PrintF(trace_scope_->file(), " -------------------------\n");
}
// There are no translation commands for the caller's pc and fp, the // There are no translation commands for the caller's pc and fp, the
// context, the function, new.target and the bytecode offset. Synthesize // context, the function, new.target and the bytecode offset. Synthesize
// their values and set them up // their values and set them up
...@@ -1235,6 +1247,10 @@ void Deoptimizer::DoComputeInterpretedFrame(TranslatedFrame* translated_frame, ...@@ -1235,6 +1247,10 @@ void Deoptimizer::DoComputeInterpretedFrame(TranslatedFrame* translated_frame,
WriteValueToOutput(smi_bytecode_offset, 0, frame_index, output_offset, WriteValueToOutput(smi_bytecode_offset, 0, frame_index, output_offset,
"bytecode offset "); "bytecode offset ");
if (trace_scope_ != nullptr) {
PrintF(trace_scope_->file(), " -------------------------\n");
}
// Translate the rest of the interpreter registers in the frame. // Translate the rest of the interpreter registers in the frame.
for (unsigned i = 0; i < height - 1; ++i) { for (unsigned i = 0; i < height - 1; ++i) {
output_offset -= kPointerSize; output_offset -= kPointerSize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment