diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-07-05 08:38:02 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-07-26 08:33:56 +0200 |
commit | 71fae5e81dc96e5501ddb3e89e4a49c427d89398 (patch) | |
tree | f88ad0e153839c5f902959ea5163a75a1cf42484 /deps/v8/src/runtime | |
parent | 9b5cba9104dd4203ed0eac1153a708803cbb677b (diff) | |
download | android-node-v8-71fae5e81dc96e5501ddb3e89e4a49c427d89398.tar.gz android-node-v8-71fae5e81dc96e5501ddb3e89e4a49c427d89398.tar.bz2 android-node-v8-71fae5e81dc96e5501ddb3e89e4a49c427d89398.zip |
deps: cherry-pick aa6ce3e from upstream V8
Original commit message:
[log][api] introduce public CodeEventListener API
Introduce a new public API called CodeEventListener to allow embedders
to better support external profilers and other diagnostic tools without
relying on unsupported methods like --perf-basic-prof.
Bug: v8:7694
Cq-Include-Trybots: luci.chromium.try:linux_chromium_rel_ng
Change-Id: I063cc965394d59401358757634c9ea84c11517e9
Co-authored-by: Daniel Beckert <daniel@sthima.com.br>
Reviewed-on: https://chromium-review.googlesource.com/1028770
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by: Hannes Payer <hpayer@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53382}
Refs: https://github.com/v8/v8/commit/aa6ce3ee617b2f324bea3a5d8e3263aee4cde6d7
PR-URL: https://github.com/nodejs/node/pull/21079
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yang Guo <yangguo@chromium.org>
Diffstat (limited to 'deps/v8/src/runtime')
-rw-r--r-- | deps/v8/src/runtime/runtime-function.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/runtime/runtime-function.cc b/deps/v8/src/runtime/runtime-function.cc index 5dcb4115e5..9f1cbc00e9 100644 --- a/deps/v8/src/runtime/runtime-function.cc +++ b/deps/v8/src/runtime/runtime-function.cc @@ -147,7 +147,8 @@ RUNTIME_FUNCTION(Runtime_SetCode) { // the target_shared optimized code map. JSFunction::EnsureFeedbackVector(target); - if (isolate->logger()->is_logging_code_events() || isolate->is_profiling()) { + if (isolate->logger()->is_listening_to_code_events() || + isolate->is_profiling()) { isolate->logger()->LogExistingFunction( source_shared, Handle<AbstractCode>(source_shared->abstract_code())); } |