Lines Matching refs:platform
34 explicit MockPlatform(v8::Platform* platform) in MockPlatform() argument
35 : platform_(platform), idle_task_(nullptr), delayed_task_(nullptr) {} in MockPlatform()
121 MockPlatform platform(old_platform); in TEST() local
122 i::V8::SetPlatformForTesting(&platform); in TEST()
127 CHECK(platform.PendingIdleTask()); in TEST()
131 for (int i = 0; i < kShortStepCount && platform.PendingIdleTask(); i++) { in TEST()
132 platform.PerformIdleTask(kShortIdleTimeInSeconds); in TEST()
134 while (platform.PendingIdleTask()) { in TEST()
135 platform.PerformIdleTask(kLongIdleTimeInSeconds); in TEST()
146 MockPlatform platform(old_platform); in TEST() local
147 i::V8::SetPlatformForTesting(&platform); in TEST()
153 CHECK(platform.PendingIdleTask()); in TEST()
157 for (int i = 0; i < kShortStepCount && platform.PendingIdleTask(); i++) { in TEST()
158 platform.PerformIdleTask(kShortIdleTimeInSeconds); in TEST()
160 while (platform.PendingIdleTask()) { in TEST()
161 platform.PerformIdleTask(kLongIdleTimeInSeconds); in TEST()
172 MockPlatform platform(old_platform); in TEST() local
173 i::V8::SetPlatformForTesting(&platform); in TEST()
178 CHECK(platform.PendingIdleTask()); in TEST()
184 CHECK(platform.PendingDelayedTask()); in TEST()
185 platform.PerformDelayedTask(); in TEST()
189 while (!marking->IsStopped() && platform.PendingDelayedTask()) { in TEST()
190 platform.PerformDelayedTask(); in TEST()