Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: test/cctest/heap/test-incremental-marking.cc

Issue 1512553002: [cctest] Move most heap related tests to test/cctest/heap and clean wrt IWYU (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed compile time error due to missing header file Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/heap/test-heap.cc ('k') | test/cctest/heap/test-mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « test/cctest/heap/test-heap.cc ('k') | test/cctest/heap/test-mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698