Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1745)

Unified Diff: src/objects.cc

Issue 1419143003: Show builtin name when printing Code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 1e5315b978e67fb8e9314cd993a5184f60ff3269..943cef92ac09afca5795631e3053750cabe7215d 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -13314,6 +13314,11 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
}
if ((name != NULL) && (name[0] != '\0')) {
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) {
os << "stack_slots = " << stack_slots() << "\n";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698