diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-06-06 10:28:14 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-06-07 10:33:31 +0200 |
commit | 3dc8c3bed4cf3a77607edbb0b015e33f8b60fc09 (patch) | |
tree | 9dee56e142638b34f1eccbd0ad88c3bce5377c29 /deps/v8/src/log.h | |
parent | 91a1bbe3055a660194ca4d403795aa0c03e9d056 (diff) | |
download | android-node-v8-3dc8c3bed4cf3a77607edbb0b015e33f8b60fc09.tar.gz android-node-v8-3dc8c3bed4cf3a77607edbb0b015e33f8b60fc09.tar.bz2 android-node-v8-3dc8c3bed4cf3a77607edbb0b015e33f8b60fc09.zip |
deps: update V8 to 5.9.211.32
PR-URL: https://github.com/nodejs/node/pull/13263
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/src/log.h')
-rw-r--r-- | deps/v8/src/log.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/deps/v8/src/log.h b/deps/v8/src/log.h index 6fcb257cc9..0ed0580c37 100644 --- a/deps/v8/src/log.h +++ b/deps/v8/src/log.h @@ -58,6 +58,10 @@ namespace internal { // --prof // Collect statistical profiling information (ticks), default is off. The // tick profiler requires code events, so --prof implies --log-code. +// +// --prof-sampling-interval <microseconds> +// The interval between --prof samples, default is 1000 microseconds (5000 on +// Android). // Forward declarations. class CodeEventListener; @@ -181,7 +185,8 @@ class Logger : public CodeEventListener { void CodeNameEvent(Address addr, int pos, const char* code_name); - void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta); + void CodeDeoptEvent(Code* code, DeoptKind kind, Address pc, + int fp_to_sp_delta); void ICEvent(const char* type, bool keyed, const Address pc, int line, int column, Map* map, Object* key, char old_state, @@ -254,15 +259,6 @@ class Logger : public CodeEventListener { INLINE(static CodeEventListener::LogEventsAndTags ToNativeByScript( CodeEventListener::LogEventsAndTags, Script*)); - // Profiler's sampling interval (in milliseconds). -#if defined(ANDROID) - // Phones and tablets have processors that are much slower than desktop - // and laptop computers for which current heuristics are tuned. - static const int kSamplingIntervalMs = 5; -#else - static const int kSamplingIntervalMs = 1; -#endif - // Callback from Log, stops profiling in case of insufficient resources. void LogFailure(); @@ -399,7 +395,8 @@ class CodeEventLogger : public CodeEventListener { void SetterCallbackEvent(Name* name, Address entry_point) override {} void SharedFunctionInfoMoveEvent(Address from, Address to) override {} void CodeMovingGCEvent() override {} - void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta) override {} + void CodeDeoptEvent(Code* code, DeoptKind kind, Address pc, + int fp_to_sp_delta) override {} private: class NameBuffer; |