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" |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 | 849 |
850 AlwaysAllocateScope::AlwaysAllocateScope(Isolate* isolate) | 850 AlwaysAllocateScope::AlwaysAllocateScope(Isolate* isolate) |
851 : heap_(isolate->heap()) { | 851 : heap_(isolate->heap()) { |
852 heap_->always_allocate_scope_count_.Increment(1); | 852 heap_->always_allocate_scope_count_.Increment(1); |
853 } | 853 } |
854 | 854 |
855 AlwaysAllocateScope::~AlwaysAllocateScope() { | 855 AlwaysAllocateScope::~AlwaysAllocateScope() { |
856 heap_->always_allocate_scope_count_.Decrement(1); | 856 heap_->always_allocate_scope_count_.Decrement(1); |
857 } | 857 } |
858 | 858 |
859 void VerifyPointersVisitor::VisitPointers(Object** start, Object** end) { | 859 void VerifyPointersVisitor::VisitPointers(HeapObject* host, Object** start, |
| 860 Object** end) { |
860 VerifyPointers(start, end); | 861 VerifyPointers(start, end); |
861 } | 862 } |
862 | 863 |
863 void VerifyPointersVisitor::VisitRootPointers(Root root, Object** start, | 864 void VerifyPointersVisitor::VisitRootPointers(Root root, Object** start, |
864 Object** end) { | 865 Object** end) { |
865 VerifyPointers(start, end); | 866 VerifyPointers(start, end); |
866 } | 867 } |
867 | 868 |
868 void VerifyPointersVisitor::VerifyPointers(Object** start, Object** end) { | 869 void VerifyPointersVisitor::VerifyPointers(Object** start, Object** end) { |
869 for (Object** current = start; current < end; current++) { | 870 for (Object** current = start; current < end; current++) { |
(...skipping 10 matching lines...) Expand all Loading... |
880 void VerifySmisVisitor::VisitRootPointers(Root root, Object** start, | 881 void VerifySmisVisitor::VisitRootPointers(Root root, Object** start, |
881 Object** end) { | 882 Object** end) { |
882 for (Object** current = start; current < end; current++) { | 883 for (Object** current = start; current < end; current++) { |
883 CHECK((*current)->IsSmi()); | 884 CHECK((*current)->IsSmi()); |
884 } | 885 } |
885 } | 886 } |
886 } // namespace internal | 887 } // namespace internal |
887 } // namespace v8 | 888 } // namespace v8 |
888 | 889 |
889 #endif // V8_HEAP_HEAP_INL_H_ | 890 #endif // V8_HEAP_HEAP_INL_H_ |
OLD | NEW |