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

Side by Side Diff: test/cctest/heap/test-lab.cc

Issue 2304553002: Include only stuff you need, part 6: Fix cctest.h. (Closed)
Patch Set: Created 4 years, 3 months 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-compaction.cc ('k') | test/cctest/heap/test-page-promotion.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 #include <vector> 5 #include <vector>
6 6
7 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/heap/spaces.h" 9 #include "src/heap/spaces.h"
10 #include "src/heap/spaces-inl.h" 10 #include "src/heap/spaces-inl.h"
11 // FIXME(mstarzinger, marja): This is weird, but required because of the missing
12 // (disallowed) include: src/heap/incremental-marking.h -> src/objects-inl.h
13 #include "src/objects-inl.h"
11 #include "test/cctest/cctest.h" 14 #include "test/cctest/cctest.h"
12 15
13 namespace v8 { 16 namespace v8 {
14 namespace internal { 17 namespace internal {
15 18
16 static Address AllocateLabBackingStore(Heap* heap, intptr_t size_in_bytes) { 19 static Address AllocateLabBackingStore(Heap* heap, intptr_t size_in_bytes) {
17 AllocationResult result = heap->old_space()->AllocateRaw( 20 AllocationResult result = heap->old_space()->AllocateRaw(
18 static_cast<int>(size_in_bytes), kDoubleAligned); 21 static_cast<int>(size_in_bytes), kDoubleAligned);
19 Object* obj = result.ToObjectChecked(); 22 Object* obj = result.ToObjectChecked();
20 Address adr = HeapObject::cast(obj)->address(); 23 Address adr = HeapObject::cast(obj)->address();
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 break; 279 break;
277 } 280 }
278 } 281 }
279 } 282 }
280 VerifyIterable(base, limit, expected_sizes); 283 VerifyIterable(base, limit, expected_sizes);
281 } 284 }
282 #endif // V8_HOST_ARCH_32_BIT 285 #endif // V8_HOST_ARCH_32_BIT
283 286
284 } // namespace internal 287 } // namespace internal
285 } // namespace v8 288 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/heap/test-compaction.cc ('k') | test/cctest/heap/test-page-promotion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698