[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}
This commit is contained in:
mstarzinger 2016-10-24 05:33:16 -07:00 committed by Commit bot
parent f8414ead48
commit 65e68c66af

View File

@ -197,6 +197,8 @@ InterpreterCompilationJob::Status InterpreterCompilationJob::FinalizeJobImpl() {
return FAILED;
}
CodeGenerator::MakeCodePrologue(info(), "interpreter");
if (FLAG_print_bytecode) {
OFStream os(stdout);
bytecodes->Print(os);