diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2016-03-01 08:58:05 -0800 |
---|---|---|
committer | Ali Sheikh <ofrobots@lemonhope.roam.corp.google.com> | 2016-03-03 20:35:20 -0800 |
commit | 069e02ab47656b3efd1b6829c65856b2e1c2d1db (patch) | |
tree | eb643e0a2e88fd64bb9fc927423458d2ae96c2db /deps/v8/src/libplatform | |
parent | 8938355398c79f583a468284b768652d12ba9bc9 (diff) | |
download | node-new-069e02ab47656b3efd1b6829c65856b2e1c2d1db.tar.gz |
deps: upgrade to V8 4.9.385.18
Pick up the current branch head for V8 4.9
https://github.com/v8/v8/commit/1ecba0f
PR-URL: https://github.com/nodejs/node/pull/4722
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'deps/v8/src/libplatform')
-rw-r--r-- | deps/v8/src/libplatform/default-platform.cc | 25 | ||||
-rw-r--r-- | deps/v8/src/libplatform/default-platform.h | 11 |
2 files changed, 36 insertions, 0 deletions
diff --git a/deps/v8/src/libplatform/default-platform.cc b/deps/v8/src/libplatform/default-platform.cc index 383d8ce1e0..e8c15572ad 100644 --- a/deps/v8/src/libplatform/default-platform.cc +++ b/deps/v8/src/libplatform/default-platform.cc @@ -168,5 +168,30 @@ double DefaultPlatform::MonotonicallyIncreasingTime() { return base::TimeTicks::HighResolutionNow().ToInternalValue() / static_cast<double>(base::Time::kMicrosecondsPerSecond); } + + +uint64_t DefaultPlatform::AddTraceEvent( + char phase, const uint8_t* category_enabled_flag, const char* name, + uint64_t id, uint64_t bind_id, int num_args, const char** arg_names, + const uint8_t* arg_types, const uint64_t* arg_values, unsigned int flags) { + return 0; +} + + +void DefaultPlatform::UpdateTraceEventDuration( + const uint8_t* category_enabled_flag, const char* name, uint64_t handle) {} + + +const uint8_t* DefaultPlatform::GetCategoryGroupEnabled(const char* name) { + static uint8_t no = 0; + return &no; +} + + +const char* DefaultPlatform::GetCategoryGroupName( + const uint8_t* category_enabled_flag) { + static const char dummy[] = "dummy"; + return dummy; +} } // namespace platform } // namespace v8 diff --git a/deps/v8/src/libplatform/default-platform.h b/deps/v8/src/libplatform/default-platform.h index b452fdd345..8bdda95be6 100644 --- a/deps/v8/src/libplatform/default-platform.h +++ b/deps/v8/src/libplatform/default-platform.h @@ -42,6 +42,17 @@ class DefaultPlatform : public Platform { void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) override; bool IdleTasksEnabled(Isolate* isolate) override; double MonotonicallyIncreasingTime() override; + const uint8_t* GetCategoryGroupEnabled(const char* name) override; + const char* GetCategoryGroupName( + const uint8_t* category_enabled_flag) override; + uint64_t AddTraceEvent(char phase, const uint8_t* category_enabled_flag, + const char* name, uint64_t id, uint64_t bind_id, + int32_t num_args, const char** arg_names, + const uint8_t* arg_types, const uint64_t* arg_values, + unsigned int flags) override; + void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, + const char* name, uint64_t handle) override; + private: static const int kMaxThreadPoolSize; |