Lines Matching defs:platform
11 #include "include/v8-platform.h"
14 #include "src/base/platform/mutex.h"
15 #include "src/base/platform/platform.h"
16 #include "src/base/platform/time.h"
23 explicit PredictablePlatform(std::unique_ptr<Platform> platform)
24 : platform_(std::move(platform)) {
49 // The predictable platform executes everything on the main thread, but we
51 // unnecessarily change behaviour of the platform.
79 // posts tasks directly to the underlying default platform.
80 return platform::NewDefaultJobHandle(this, priority, std::move(job_task),
103 Platform* platform() const { return platform_.get(); }
111 std::unique_ptr<Platform> platform) {
112 return std::make_unique<PredictablePlatform>(std::move(platform));
117 explicit DelayedTasksPlatform(std::unique_ptr<Platform> platform)
118 : platform_(std::move(platform)) {
122 explicit DelayedTasksPlatform(std::unique_ptr<Platform> platform,
124 : platform_(std::move(platform)), rng_(random_seed) {
132 // When the platform shuts down, all task runners must be freed.
210 DelayedTasksPlatform* platform)
211 : task_runner_(task_runner), platform_(platform) {}
345 std::unique_ptr<Platform> platform, int64_t random_seed) {
347 return std::make_unique<DelayedTasksPlatform>(std::move(platform),
350 return std::make_unique<DelayedTasksPlatform>(std::move(platform));