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

Side by Side Diff: test/cctest/heap/utils-inl.h

Issue 1936233002: [heap] Fine-grained JSArrayBuffer tracking (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment Created 4 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 | « test/cctest/heap/test-array-buffer-tracker.cc ('k') | no next file » | 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 #ifndef HEAP_UTILS_H_ 5 #ifndef HEAP_UTILS_H_
6 #define HEAP_UTILS_H_ 6 #define HEAP_UTILS_H_
7 7
8 #include "src/factory.h" 8 #include "src/factory.h"
9 #include "src/heap/heap-inl.h" 9 #include "src/heap/heap-inl.h"
10 #include "src/heap/incremental-marking.h" 10 #include "src/heap/incremental-marking.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 while (!marking->IsComplete()) { 136 while (!marking->IsComplete()) {
137 marking->Step(i::MB, i::IncrementalMarking::NO_GC_VIA_STACK_GUARD); 137 marking->Step(i::MB, i::IncrementalMarking::NO_GC_VIA_STACK_GUARD);
138 if (marking->IsReadyToOverApproximateWeakClosure()) { 138 if (marking->IsReadyToOverApproximateWeakClosure()) {
139 marking->FinalizeIncrementally(); 139 marking->FinalizeIncrementally();
140 } 140 }
141 } 141 }
142 CHECK(marking->IsComplete()); 142 CHECK(marking->IsComplete());
143 } 143 }
144 144
145 static inline void AbandonCurrentlyFreeMemory(PagedSpace* space) {
146 space->EmptyAllocationInfo();
147 PageIterator pit(space);
148 while (pit.has_next()) {
149 pit.next()->MarkNeverAllocateForTesting();
150 }
151 }
152
145 } // namespace internal 153 } // namespace internal
146 } // namespace v8 154 } // namespace v8
147 155
148 #endif // HEAP_UTILS_H_ 156 #endif // HEAP_UTILS_H_
OLDNEW
« no previous file with comments | « test/cctest/heap/test-array-buffer-tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698