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

Side by Side Diff: src/store-buffer.cc

Issue 374073002: We can iterate a scan on scavange page if it was precisely swept or just added to the old generatio… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/store-buffer.h" 5 #include "src/store-buffer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 LargePage* large_page = reinterpret_cast<LargePage*>(chunk); 517 LargePage* large_page = reinterpret_cast<LargePage*>(chunk);
518 HeapObject* array = large_page->GetObject(); 518 HeapObject* array = large_page->GetObject();
519 ASSERT(array->IsFixedArray()); 519 ASSERT(array->IsFixedArray());
520 Address start = array->address(); 520 Address start = array->address();
521 Address end = start + array->Size(); 521 Address end = start + array->Size();
522 FindPointersToNewSpaceInRegion(start, end, slot_callback, clear_maps); 522 FindPointersToNewSpaceInRegion(start, end, slot_callback, clear_maps);
523 } else { 523 } else {
524 Page* page = reinterpret_cast<Page*>(chunk); 524 Page* page = reinterpret_cast<Page*>(chunk);
525 ASSERT(page->owner() == heap_->map_space() || 525 ASSERT(page->owner() == heap_->map_space() ||
526 page->owner() == heap_->old_pointer_space()); 526 page->owner() == heap_->old_pointer_space());
527 CHECK(page->WasSweptPrecisely()); 527 CHECK(!page->WasSweptConservatively());
528 528
529 HeapObjectIterator iterator(page, NULL); 529 HeapObjectIterator iterator(page, NULL);
530 for (HeapObject* heap_object = iterator.Next(); 530 for (HeapObject* heap_object = iterator.Next();
531 heap_object != NULL; 531 heap_object != NULL;
532 heap_object = iterator.Next()) { 532 heap_object = iterator.Next()) {
533 // We iterate over objects that contain pointers only. 533 // We iterate over objects that contain pointers only.
534 if (heap_object->ContainsPointers()) { 534 if (heap_object->ContainsPointers()) {
535 FindPointersToNewSpaceInRegion( 535 FindPointersToNewSpaceInRegion(
536 heap_object->address() + HeapObject::kHeaderSize, 536 heap_object->address() + HeapObject::kHeaderSize,
537 heap_object->address() + heap_object->Size(), 537 heap_object->address() + heap_object->Size(),
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 } 596 }
597 old_buffer_is_sorted_ = false; 597 old_buffer_is_sorted_ = false;
598 old_buffer_is_filtered_ = false; 598 old_buffer_is_filtered_ = false;
599 *old_top_++ = reinterpret_cast<Address>(int_addr << kPointerSizeLog2); 599 *old_top_++ = reinterpret_cast<Address>(int_addr << kPointerSizeLog2);
600 ASSERT(old_top_ <= old_limit_); 600 ASSERT(old_top_ <= old_limit_);
601 } 601 }
602 heap_->isolate()->counters()->store_buffer_compactions()->Increment(); 602 heap_->isolate()->counters()->store_buffer_compactions()->Increment();
603 } 603 }
604 604
605 } } // namespace v8::internal 605 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698