Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 0a0c713314b2f0b3ea8ceedb428c78122692ccc9..bcd8e3fa79e427eb5fd8591002fbcc975e5c8dab 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -14274,13 +14274,15 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT |
} |
if ((name != nullptr) && (name[0] != '\0')) { |
os << "name = " << name << "\n"; |
- } else if (kind() == BUILTIN) { |
- name = GetIsolate()->builtins()->Lookup(instruction_start()); |
+ } else if (kind() == BYTECODE_HANDLER) { |
+ name = GetIsolate()->interpreter()->LookupNameOfBytecodeHandler(this); |
if (name != nullptr) { |
os << "name = " << name << "\n"; |
} |
- } else if (kind() == BYTECODE_HANDLER) { |
- name = GetIsolate()->interpreter()->LookupNameOfBytecodeHandler(this); |
+ } else { |
+ // There are some handlers and ICs that we can also find names for with |
+ // Builtins::Lookup. |
+ name = GetIsolate()->builtins()->Lookup(instruction_start()); |
if (name != nullptr) { |
os << "name = " << name << "\n"; |
} |