OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 // TODO(jochen): Remove this after the setting is turned on globally. | |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | |
7 | |
8 #include <stdlib.h> | 5 #include <stdlib.h> |
9 | 6 |
10 #ifdef __linux__ | 7 #ifdef __linux__ |
11 #include <errno.h> | 8 #include <errno.h> |
12 #include <fcntl.h> | 9 #include <fcntl.h> |
13 #include <sys/stat.h> | 10 #include <sys/stat.h> |
14 #include <sys/types.h> | 11 #include <sys/types.h> |
15 #include <unistd.h> | 12 #include <unistd.h> |
16 #endif | 13 #endif |
17 | 14 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 while (!marking->IsStopped() && platform.PendingDelayedTask()) { | 165 while (!marking->IsStopped() && platform.PendingDelayedTask()) { |
169 platform.PerformDelayedTask(); | 166 platform.PerformDelayedTask(); |
170 } | 167 } |
171 // There could be pending delayed task from memory reducer after GC finishes. | 168 // There could be pending delayed task from memory reducer after GC finishes. |
172 CHECK(marking->IsStopped()); | 169 CHECK(marking->IsStopped()); |
173 i::V8::SetPlatformForTesting(old_platform); | 170 i::V8::SetPlatformForTesting(old_platform); |
174 } | 171 } |
175 | 172 |
176 } // namespace internal | 173 } // namespace internal |
177 } // namespace v8 | 174 } // namespace v8 |
OLD | NEW |