| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 89 const char* name, const char* scope, uint64_t id, |
| 90 uint64_t bind_id, int numArgs, const char** argNames, | 90 uint64_t bind_id, int numArgs, const char** argNames, |
| 91 const uint8_t* argTypes, const uint64_t* argValues, | 91 const uint8_t* argTypes, const uint64_t* argValues, |
| 92 unsigned int flags) override { | 92 unsigned int flags) override { |
| 93 return 0; | 93 return 0; |
| 94 } | 94 } |
| 95 | 95 |
| 96 // TODO(fmeawad): Remove once all embedders implement the scope version. | |
| 97 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, | |
| 98 const char* name, uint64_t id, uint64_t bind_id, | |
| 99 int numArgs, const char** argNames, | |
| 100 const uint8_t* argTypes, const uint64_t* argValues, | |
| 101 unsigned int flags) override { | |
| 102 return 0; | |
| 103 } | |
| 104 | |
| 105 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, | 96 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, |
| 106 const char* name, uint64_t handle) override {} | 97 const char* name, uint64_t handle) override {} |
| 107 | 98 |
| 108 const uint8_t* GetCategoryGroupEnabled(const char* name) override { | 99 const uint8_t* GetCategoryGroupEnabled(const char* name) override { |
| 109 static uint8_t no = 0; | 100 static uint8_t no = 0; |
| 110 return &no; | 101 return &no; |
| 111 } | 102 } |
| 112 | 103 |
| 113 const char* GetCategoryGroupName( | 104 const char* GetCategoryGroupName( |
| 114 const uint8_t* categoryEnabledFlag) override { | 105 const uint8_t* categoryEnabledFlag) override { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 while (!marking->IsStopped() && platform.PendingDelayedTask()) { | 189 while (!marking->IsStopped() && platform.PendingDelayedTask()) { |
| 199 platform.PerformDelayedTask(); | 190 platform.PerformDelayedTask(); |
| 200 } | 191 } |
| 201 // There could be pending delayed task from memory reducer after GC finishes. | 192 // There could be pending delayed task from memory reducer after GC finishes. |
| 202 CHECK(marking->IsStopped()); | 193 CHECK(marking->IsStopped()); |
| 203 i::V8::SetPlatformForTesting(old_platform); | 194 i::V8::SetPlatformForTesting(old_platform); |
| 204 } | 195 } |
| 205 | 196 |
| 206 } // namespace internal | 197 } // namespace internal |
| 207 } // namespace v8 | 198 } // namespace v8 |
| OLD | NEW |