diff options
author | Matheus Marchini <matheus@sthima.com> | 2018-06-04 09:33:17 -0700 |
---|---|---|
committer | Matheus Marchini <matheus@sthima.com> | 2018-06-22 09:42:46 -0700 |
commit | b3627560a94eaf51262cc041aebc9ef150b5fcbc (patch) | |
tree | 6f8cdb5e15f0bc7e686b018f952b21556cc6b91b /deps/v8/src/runtime | |
parent | 8689c785379293adc04ec2a3d47ed08a580fe521 (diff) | |
download | android-node-v8-b3627560a94eaf51262cc041aebc9ef150b5fcbc.tar.gz android-node-v8-b3627560a94eaf51262cc041aebc9ef150b5fcbc.tar.bz2 android-node-v8-b3627560a94eaf51262cc041aebc9ef150b5fcbc.zip |
deps: backport 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/aa6ce3ee617b2f324bea3a5d8e3263aee
PR-URL: https://github.com/nodejs/node/pull/21126
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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())); } |