OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdlib.h> | 5 #include <stdlib.h> |
6 | 6 |
7 #ifdef __linux__ | 7 #ifdef __linux__ |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 bool PendingDelayedTask() { return delayed_task_ != nullptr; } | 79 bool PendingDelayedTask() { return delayed_task_ != nullptr; } |
80 | 80 |
81 void PerformDelayedTask() { | 81 void PerformDelayedTask() { |
82 Task* task = delayed_task_; | 82 Task* task = delayed_task_; |
83 delayed_task_ = nullptr; | 83 delayed_task_ = nullptr; |
84 task->Run(); | 84 task->Run(); |
85 delete task; | 85 delete task; |
86 } | 86 } |
87 | 87 |
88 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, | 88 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, |
| 89 const char* name, const char* scope, uint64_t id, |
| 90 uint64_t bind_id, int numArgs, const char** argNames, |
| 91 const uint8_t* argTypes, const uint64_t* argValues, |
| 92 unsigned int flags) override { |
| 93 return 0; |
| 94 } |
| 95 |
| 96 // TODO(fmeawad): Remove once all embedders implement the scope version. |
| 97 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, |
89 const char* name, uint64_t id, uint64_t bind_id, | 98 const char* name, uint64_t id, uint64_t bind_id, |
90 int numArgs, const char** argNames, | 99 int numArgs, const char** argNames, |
91 const uint8_t* argTypes, const uint64_t* argValues, | 100 const uint8_t* argTypes, const uint64_t* argValues, |
92 unsigned int flags) override { | 101 unsigned int flags) override { |
93 return 0; | 102 return 0; |
94 } | 103 } |
95 | 104 |
96 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, | 105 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, |
97 const char* name, uint64_t handle) override {} | 106 const char* name, uint64_t handle) override {} |
98 | 107 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 while (!marking->IsStopped() && platform.PendingDelayedTask()) { | 198 while (!marking->IsStopped() && platform.PendingDelayedTask()) { |
190 platform.PerformDelayedTask(); | 199 platform.PerformDelayedTask(); |
191 } | 200 } |
192 // There could be pending delayed task from memory reducer after GC finishes. | 201 // There could be pending delayed task from memory reducer after GC finishes. |
193 CHECK(marking->IsStopped()); | 202 CHECK(marking->IsStopped()); |
194 i::V8::SetPlatformForTesting(old_platform); | 203 i::V8::SetPlatformForTesting(old_platform); |
195 } | 204 } |
196 | 205 |
197 } // namespace internal | 206 } // namespace internal |
198 } // namespace v8 | 207 } // namespace v8 |
OLD | NEW |