| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 | 5 |
| 6 // Defined when linking against shared lib on Windows. | 6 // Defined when linking against shared lib on Windows. |
| 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) | 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) |
| 8 #define V8_SHARED | 8 #define V8_SHARED |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 133 } |
| 134 | 134 |
| 135 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, | 135 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, |
| 136 const char* name, const char* scope, uint64_t id, | 136 const char* name, const char* scope, uint64_t id, |
| 137 uint64_t bind_id, int numArgs, const char** argNames, | 137 uint64_t bind_id, int numArgs, const char** argNames, |
| 138 const uint8_t* argTypes, const uint64_t* argValues, | 138 const uint8_t* argTypes, const uint64_t* argValues, |
| 139 unsigned int flags) override { | 139 unsigned int flags) override { |
| 140 return 0; | 140 return 0; |
| 141 } | 141 } |
| 142 | 142 |
| 143 // TODO(fmeawad): Remove once all embedders implement the scope version. | |
| 144 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, | |
| 145 const char* name, uint64_t id, uint64_t bind_id, | |
| 146 int numArgs, const char** argNames, | |
| 147 const uint8_t* argTypes, const uint64_t* argValues, | |
| 148 unsigned int flags) override { | |
| 149 return 0; | |
| 150 } | |
| 151 | |
| 152 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, | 143 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, |
| 153 const char* name, uint64_t handle) override {} | 144 const char* name, uint64_t handle) override {} |
| 154 | 145 |
| 155 const uint8_t* GetCategoryGroupEnabled(const char* name) override { | 146 const uint8_t* GetCategoryGroupEnabled(const char* name) override { |
| 156 static uint8_t no = 0; | 147 static uint8_t no = 0; |
| 157 return &no; | 148 return &no; |
| 158 } | 149 } |
| 159 | 150 |
| 160 const char* GetCategoryGroupName( | 151 const char* GetCategoryGroupName( |
| 161 const uint8_t* categoryEnabledFlag) override { | 152 const uint8_t* categoryEnabledFlag) override { |
| (...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 } | 2554 } |
| 2564 | 2555 |
| 2565 } // namespace v8 | 2556 } // namespace v8 |
| 2566 | 2557 |
| 2567 | 2558 |
| 2568 #ifndef GOOGLE3 | 2559 #ifndef GOOGLE3 |
| 2569 int main(int argc, char* argv[]) { | 2560 int main(int argc, char* argv[]) { |
| 2570 return v8::Shell::Main(argc, argv); | 2561 return v8::Shell::Main(argc, argv); |
| 2571 } | 2562 } |
| 2572 #endif | 2563 #endif |
| OLD | NEW |