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

Side by Side Diff: src/heap/incremental-marking.cc

Issue 1948573003: [heap] Add regression test for chromium:598319 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Finish sweeping before checking invariants 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 | « no previous file | test/cctest/heap/test-heap.cc » ('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 #include "src/heap/incremental-marking.h" 5 #include "src/heap/incremental-marking.h"
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/compilation-cache.h" 8 #include "src/compilation-cache.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/heap/gc-idle-time-handler.h" 10 #include "src/heap/gc-idle-time-handler.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 return true; 272 return true;
273 } 273 }
274 return false; 274 return false;
275 } 275 }
276 }; 276 };
277 277
278 void IncrementalMarking::IterateBlackObject(HeapObject* object) { 278 void IncrementalMarking::IterateBlackObject(HeapObject* object) {
279 if (IsMarking() && Marking::IsBlack(Marking::MarkBitFrom(object))) { 279 if (IsMarking() && Marking::IsBlack(Marking::MarkBitFrom(object))) {
280 Page* page = Page::FromAddress(object->address()); 280 Page* page = Page::FromAddress(object->address());
281 if ((page->owner() != nullptr) && (page->owner()->identity() == LO_SPACE)) { 281 if ((page->owner() != nullptr) && (page->owner()->identity() == LO_SPACE)) {
282 // IterateBlackObject requires us to visit the hole object. 282 // IterateBlackObject requires us to visit the whole object.
283 page->ResetProgressBar(); 283 page->ResetProgressBar();
284 } 284 }
285 IncrementalMarkingMarkingVisitor::IterateBody(object->map(), object); 285 IncrementalMarkingMarkingVisitor::IterateBody(object->map(), object);
286 } 286 }
287 } 287 }
288 288
289 class IncrementalMarkingRootMarkingVisitor : public ObjectVisitor { 289 class IncrementalMarkingRootMarkingVisitor : public ObjectVisitor {
290 public: 290 public:
291 explicit IncrementalMarkingRootMarkingVisitor( 291 explicit IncrementalMarkingRootMarkingVisitor(
292 IncrementalMarking* incremental_marking) 292 IncrementalMarking* incremental_marking)
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 void IncrementalMarking::IncrementIdleMarkingDelayCounter() { 1245 void IncrementalMarking::IncrementIdleMarkingDelayCounter() {
1246 idle_marking_delay_counter_++; 1246 idle_marking_delay_counter_++;
1247 } 1247 }
1248 1248
1249 1249
1250 void IncrementalMarking::ClearIdleMarkingDelayCounter() { 1250 void IncrementalMarking::ClearIdleMarkingDelayCounter() {
1251 idle_marking_delay_counter_ = 0; 1251 idle_marking_delay_counter_ = 0;
1252 } 1252 }
1253 } // namespace internal 1253 } // namespace internal
1254 } // namespace v8 1254 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698