Meaningful name for builtins in JitCodeEvent API.
authorben <ben@strongloop.com>
Mon, 29 Jun 2015 07:36:48 +0000 (00:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Jun 2015 07:37:02 +0000 (07:37 +0000)
Report builtins by name (e.g. "Builtin:ArgumentsAdaptorTrampoline")
instead of labeling everything "Builtin:A builtin from the snapshot".

BUG=

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

Cr-Commit-Position: refs/heads/master@{#29339}

src/log.cc

index c634d28..d68848b 100644 (file)
@@ -1610,7 +1610,7 @@ void Logger::LogCodeObject(Object* object) {
       tag = Logger::REG_EXP_TAG;
       break;
     case Code::BUILTIN:
-      description = "A builtin from the snapshot";
+      description = isolate_->builtins()->name(code_object->builtin_index());
       tag = Logger::BUILTIN_TAG;
       break;
     case Code::HANDLER: