OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef V8_HEAP_HEAP_INL_H_ | 5 #ifndef V8_HEAP_HEAP_INL_H_ |
6 #define V8_HEAP_HEAP_INL_H_ | 6 #define V8_HEAP_HEAP_INL_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
11 #include "src/counters-inl.h" | 11 #include "src/counters-inl.h" |
12 #include "src/heap/heap.h" | 12 #include "src/heap/heap.h" |
13 #include "src/heap/incremental-marking-inl.h" | 13 #include "src/heap/incremental-marking-inl.h" |
14 #include "src/heap/mark-compact.h" | 14 #include "src/heap/mark-compact.h" |
15 #include "src/heap/object-stats.h" | 15 #include "src/heap/object-stats.h" |
16 #include "src/heap/remembered-set.h" | 16 #include "src/heap/remembered-set.h" |
17 #include "src/heap/spaces-inl.h" | 17 #include "src/heap/spaces-inl.h" |
18 #include "src/heap/store-buffer.h" | 18 #include "src/heap/store-buffer.h" |
19 #include "src/isolate.h" | 19 #include "src/isolate.h" |
20 #include "src/list-inl.h" | 20 #include "src/list-inl.h" |
21 #include "src/log.h" | 21 #include "src/log.h" |
22 #include "src/msan.h" | 22 #include "src/msan.h" |
23 #include "src/objects-inl.h" | 23 #include "src/objects-inl.h" |
| 24 #include "src/objects/scope-info.h" |
24 #include "src/type-feedback-vector-inl.h" | 25 #include "src/type-feedback-vector-inl.h" |
25 | 26 |
26 namespace v8 { | 27 namespace v8 { |
27 namespace internal { | 28 namespace internal { |
28 | 29 |
29 AllocationSpace AllocationResult::RetrySpace() { | 30 AllocationSpace AllocationResult::RetrySpace() { |
30 DCHECK(IsRetry()); | 31 DCHECK(IsRetry()); |
31 return static_cast<AllocationSpace>(Smi::cast(object_)->value()); | 32 return static_cast<AllocationSpace>(Smi::cast(object_)->value()); |
32 } | 33 } |
33 | 34 |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 | 857 |
857 void VerifySmisVisitor::VisitPointers(Object** start, Object** end) { | 858 void VerifySmisVisitor::VisitPointers(Object** start, Object** end) { |
858 for (Object** current = start; current < end; current++) { | 859 for (Object** current = start; current < end; current++) { |
859 CHECK((*current)->IsSmi()); | 860 CHECK((*current)->IsSmi()); |
860 } | 861 } |
861 } | 862 } |
862 } // namespace internal | 863 } // namespace internal |
863 } // namespace v8 | 864 } // namespace v8 |
864 | 865 |
865 #endif // V8_HEAP_HEAP_INL_H_ | 866 #endif // V8_HEAP_HEAP_INL_H_ |
OLD | NEW |