summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2015-06-29 14:36:36 +0200
committerColin Ihrig <cjihrig@nodejs.org>2015-06-29 13:35:22 -0700
commit5a60e0d904c38c2bdb04785203b1b784967c870d (patch)
treeccf93222e4441abe5a65473196a63a0d12a8ed27
parent5fc4fb108b9fdfdb3057a4b6122edbf67489a4a4 (diff)
downloadnode-5a60e0d904c38c2bdb04785203b1b784967c870d.tar.gz
v8: back-port 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 <cjihrig@gmail.com> PR-URL: https://github.com/joyent/node/pull/25588
-rw-r--r--deps/v8/src/log.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/src/log.cc b/deps/v8/src/log.cc
index b049ffe4e..3ecc20496 100644
--- a/deps/v8/src/log.cc
+++ b/deps/v8/src/log.cc
@@ -1485,7 +1485,11 @@ void Logger::LogCodeObject(Object* object) {
tag = Logger::STUB_TAG;
break;
case Code::BUILTIN:
- description = "A builtin from the snapshot";
+ description =
+ Isolate::Current()->builtins()->Lookup(code_object->entry());
+ if (description == NULL) {
+ description = "A builtin from the snapshot";
+ }
tag = Logger::BUILTIN_TAG;
break;
case Code::KEYED_LOAD_IC: