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

Side by Side Diff: src/heap/heap-inl.h

Issue 2810653002: Add a host parameter to ObjectVisitor methods. (Closed)
Patch Set: rebase Created 3 years, 7 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 | « src/heap/heap.cc ('k') | src/heap/mark-compact.h » ('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 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
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
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_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698