| 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. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 | 7 |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 | 9 |
| 10 #ifdef __linux__ | 10 #ifdef __linux__ |
| 11 #include <errno.h> | 11 #include <errno.h> |
| 12 #include <fcntl.h> | 12 #include <fcntl.h> |
| 13 #include <sys/stat.h> | 13 #include <sys/stat.h> |
| 14 #include <sys/types.h> | 14 #include <sys/types.h> |
| 15 #include <unistd.h> | 15 #include <unistd.h> |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 #include <utility> | 18 #include <utility> |
| 19 | 19 |
| 20 #include "src/v8.h" | 20 #include "src/v8.h" |
| 21 | 21 |
| 22 #include "src/full-codegen/full-codegen.h" | 22 #include "src/full-codegen/full-codegen.h" |
| 23 #include "src/global-handles.h" | 23 #include "src/global-handles.h" |
| 24 #include "test/cctest/cctest.h" | 24 #include "test/cctest/cctest.h" |
| 25 #include "test/cctest/heap/utils-inl.h" |
| 26 |
| 25 | 27 |
| 26 using v8::IdleTask; | 28 using v8::IdleTask; |
| 27 using v8::Task; | 29 using v8::Task; |
| 28 using v8::Isolate; | 30 using v8::Isolate; |
| 29 | 31 |
| 30 namespace v8 { | 32 namespace v8 { |
| 31 namespace internal { | 33 namespace internal { |
| 32 | 34 |
| 33 class MockPlatform : public v8::Platform { | 35 class MockPlatform : public v8::Platform { |
| 34 public: | 36 public: |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 while (!marking->IsStopped() && platform.PendingDelayedTask()) { | 170 while (!marking->IsStopped() && platform.PendingDelayedTask()) { |
| 169 platform.PerformDelayedTask(); | 171 platform.PerformDelayedTask(); |
| 170 } | 172 } |
| 171 // There could be pending delayed task from memory reducer after GC finishes. | 173 // There could be pending delayed task from memory reducer after GC finishes. |
| 172 CHECK(marking->IsStopped()); | 174 CHECK(marking->IsStopped()); |
| 173 i::V8::SetPlatformForTesting(old_platform); | 175 i::V8::SetPlatformForTesting(old_platform); |
| 174 } | 176 } |
| 175 | 177 |
| 176 } // namespace internal | 178 } // namespace internal |
| 177 } // namespace v8 | 179 } // namespace v8 |
| OLD | NEW |