Commit cbbf2202 authored by ulan's avatar ulan Committed by Commit bot

Add compiler field to code print output.

BUG=

Review URL: https://codereview.chromium.org/1151883004

Cr-Commit-Position: refs/heads/master@{#28824}
parent 5ca1f24d
...@@ -11619,6 +11619,12 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT ...@@ -11619,6 +11619,12 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
if (kind() == OPTIMIZED_FUNCTION) { if (kind() == OPTIMIZED_FUNCTION) {
os << "stack_slots = " << stack_slots() << "\n"; os << "stack_slots = " << stack_slots() << "\n";
} }
os << "compiler = " << (is_turbofanned()
? "turbofan"
: is_crankshafted() ? "crankshaft"
: kind() == Code::FUNCTION
? "full-codegen"
: "unknown") << "\n";
os << "Instructions (size = " << instruction_size() << ")\n"; os << "Instructions (size = " << instruction_size() << ")\n";
{ {
......
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