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 #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 Loading... |
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 |
OLD | NEW |