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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 UNREACHABLE(); | 130 UNREACHABLE(); |
131 } | 131 } |
132 | 132 |
133 bool IdleTasksEnabled(v8::Isolate* isolate) override { return false; } | 133 bool IdleTasksEnabled(v8::Isolate* isolate) override { return false; } |
134 | 134 |
135 double MonotonicallyIncreasingTime() override { | 135 double MonotonicallyIncreasingTime() override { |
136 return synthetic_time_in_sec_ += 0.00001; | 136 return synthetic_time_in_sec_ += 0.00001; |
137 } | 137 } |
138 | 138 |
139 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, | 139 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, |
| 140 const char* name, const char* scope, uint64_t id, |
| 141 uint64_t bind_id, int numArgs, const char** argNames, |
| 142 const uint8_t* argTypes, const uint64_t* argValues, |
| 143 unsigned int flags) override { |
| 144 return 0; |
| 145 } |
| 146 |
| 147 // TODO(fmeawad): Remove once all embedders implement the scope version. |
| 148 uint64_t AddTraceEvent(char phase, const uint8_t* categoryEnabledFlag, |
140 const char* name, uint64_t id, uint64_t bind_id, | 149 const char* name, uint64_t id, uint64_t bind_id, |
141 int numArgs, const char** argNames, | 150 int numArgs, const char** argNames, |
142 const uint8_t* argTypes, const uint64_t* argValues, | 151 const uint8_t* argTypes, const uint64_t* argValues, |
143 unsigned int flags) override { | 152 unsigned int flags) override { |
144 return 0; | 153 return 0; |
145 } | 154 } |
146 | 155 |
147 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, | 156 void UpdateTraceEventDuration(const uint8_t* categoryEnabledFlag, |
148 const char* name, uint64_t handle) override {} | 157 const char* name, uint64_t handle) override {} |
149 | 158 |
(...skipping 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 } | 2572 } |
2564 | 2573 |
2565 } // namespace v8 | 2574 } // namespace v8 |
2566 | 2575 |
2567 | 2576 |
2568 #ifndef GOOGLE3 | 2577 #ifndef GOOGLE3 |
2569 int main(int argc, char* argv[]) { | 2578 int main(int argc, char* argv[]) { |
2570 return v8::Shell::Main(argc, argv); | 2579 return v8::Shell::Main(argc, argv); |
2571 } | 2580 } |
2572 #endif | 2581 #endif |
OLD | NEW |