Commit 65e68c66 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[interpreter] Make --trace-codegen also trace bytecode.

This ensures that both --trace-codegen as well as --print-ast work for
Ignition and print traces for generated bytecode as well. Here we do
consider "bytecode" to be "code" as well for tracing purposes.

R=rmcilroy@chromium.org

Review-Url: https://codereview.chromium.org/2443003003
Cr-Commit-Position: refs/heads/master@{#40531}
parent f8414ead
......@@ -197,6 +197,8 @@ InterpreterCompilationJob::Status InterpreterCompilationJob::FinalizeJobImpl() {
return FAILED;
}
CodeGenerator::MakeCodePrologue(info(), "interpreter");
if (FLAG_print_bytecode) {
OFStream os(stdout);
bytecodes->Print(os);
......
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