Commit 1c50fc11 authored by cbruni's avatar cbruni Committed by Commit bot

Show builtin name when printing Code objects.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#31500}
parent 11cd1f77
...@@ -13314,6 +13314,11 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT ...@@ -13314,6 +13314,11 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
} }
if ((name != NULL) && (name[0] != '\0')) { if ((name != NULL) && (name[0] != '\0')) {
os << "name = " << name << "\n"; os << "name = " << name << "\n";
} else if (kind() == BUILTIN) {
name = GetIsolate()->builtins()->Lookup(instruction_start());
if (name != NULL) {
os << "name = " << name << "\n";
}
} }
if (kind() == OPTIMIZED_FUNCTION) { if (kind() == OPTIMIZED_FUNCTION) {
os << "stack_slots = " << stack_slots() << "\n"; os << "stack_slots = " << stack_slots() << "\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