From 88a27a96216ac7aa728419a693ce164e59fb29c6 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 29 Jun 2015 14:12:37 +0200 Subject: [PATCH] v8: cherry-pick JitCodeEvent patch from upstream Original commit log follows: Meaningful name for builtins in JitCodeEvent API. Report builtins by name (e.g. "Builtin:ArgumentsAdaptorTrampoline") instead of labeling everything "Builtin:A builtin from the snapshot" Review URL: https://codereview.chromium.org/1216833002 Reviewed-By: Colin Ihrig PR-URL: https://github.com/joyent/node/pull/25589 --- deps/v8/src/log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/v8/src/log.cc b/deps/v8/src/log.cc index 0c6c4355aad9cf..b2cce938b4cb5e 100644 --- a/deps/v8/src/log.cc +++ b/deps/v8/src/log.cc @@ -1648,7 +1648,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: