OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_LIBPLATFORM_LIBPLATFORM_H_ | 5 #ifndef V8_LIBPLATFORM_LIBPLATFORM_H_ |
6 #define V8_LIBPLATFORM_LIBPLATFORM_H_ | 6 #define V8_LIBPLATFORM_LIBPLATFORM_H_ |
7 | 7 |
8 #include "include/libplatform/v8-tracing.h" | 8 #include "libplatform/v8-tracing.h" |
9 #include "v8-platform.h" // NOLINT(build/include) | 9 #include "v8-platform.h" // NOLINT(build/include) |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace platform { | 12 namespace platform { |
13 | 13 |
14 /** | 14 /** |
15 * Returns a new instance of the default v8::Platform implementation. | 15 * Returns a new instance of the default v8::Platform implementation. |
16 * | 16 * |
17 * The caller will take ownership of the returned pointer. |thread_pool_size| | 17 * The caller will take ownership of the returned pointer. |thread_pool_size| |
18 * is the number of worker threads to allocate for background jobs. If a value | 18 * is the number of worker threads to allocate for background jobs. If a value |
(...skipping 19 matching lines...) Expand all Loading... |
38 * The |platform| has to be created using |CreateDefaultPlatform|. | 38 * The |platform| has to be created using |CreateDefaultPlatform|. |
39 */ | 39 */ |
40 void SetTracingController( | 40 void SetTracingController( |
41 v8::Platform* platform, | 41 v8::Platform* platform, |
42 v8::platform::tracing::TracingController* tracing_controller); | 42 v8::platform::tracing::TracingController* tracing_controller); |
43 | 43 |
44 } // namespace platform | 44 } // namespace platform |
45 } // namespace v8 | 45 } // namespace v8 |
46 | 46 |
47 #endif // V8_LIBPLATFORM_LIBPLATFORM_H_ | 47 #endif // V8_LIBPLATFORM_LIBPLATFORM_H_ |
OLD | NEW |