diff options
author | Matheus Marchini <matheus@sthima.com> | 2018-06-11 09:05:33 -0700 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-07-26 08:34:13 +0200 |
commit | 76f4a5e055c1b457b44a6dc1eae4cc759aa679f1 (patch) | |
tree | 2885ab408fd01da74c51fe601cb98cb50632c6c3 /deps/v8/src/log.h | |
parent | 71fae5e81dc96e5501ddb3e89e4a49c427d89398 (diff) | |
download | android-node-v8-76f4a5e055c1b457b44a6dc1eae4cc759aa679f1.tar.gz android-node-v8-76f4a5e055c1b457b44a6dc1eae4cc759aa679f1.tar.bz2 android-node-v8-76f4a5e055c1b457b44a6dc1eae4cc759aa679f1.zip |
deps: cherry-pick b20faff from upstream V8
Original commit message:
[log] fix ExistingCodeLogger behavior on edge case
ExistingCodeLogger was behaving incorrectly when the
CodeEventHandler API was used in combination with
--interpreted-frames-native-stack. Instead of collecting copied
trampolines as InterpretedFunction:functionName, they were being
collected as Builtin:IntepreterEntryTrampolines. This patch adds
special handling for copied trampolines when using
ExistingCodeLogger.
R=yangguo@google.com
Change-Id: I3ee4be03800122d28d53b51b20c60dcf6263e4c1
Reviewed-on: https://chromium-review.googlesource.com/1087813
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53624}
Refs: https://github.com/v8/v8/commit/b20faffb07bc97b869a00b935c639bd1c
PR-URL: https://github.com/nodejs/node/pull/21126
Refs: https://github.com/v8/v8/commit/aa6ce3e
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/log.h')
-rw-r--r-- | deps/v8/src/log.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/v8/src/log.h b/deps/v8/src/log.h index 738aef4d73..ad254097e6 100644 --- a/deps/v8/src/log.h +++ b/deps/v8/src/log.h @@ -109,7 +109,9 @@ class ExistingCodeLogger { void LogCompiledFunctions(); void LogExistingFunction(Handle<SharedFunctionInfo> shared, - Handle<AbstractCode> code); + Handle<AbstractCode> code, + CodeEventListener::LogEventsAndTags tag = + CodeEventListener::LAZY_COMPILE_TAG); void LogCodeObject(Object* object); void LogBytecodeHandler(interpreter::Bytecode bytecode, interpreter::OperandScale operand_scale, Code* code); |