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

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

Issue 227533006: Synchronize store buffer processing and concurrent sweeping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | src/spaces.cc » ('J')
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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 517
518 AllocationMemento* memento = AllocationMemento::cast(candidate); 518 AllocationMemento* memento = AllocationMemento::cast(candidate);
519 if (!memento->IsValid()) return; 519 if (!memento->IsValid()) return;
520 520
521 if (memento->GetAllocationSite()->IncrementMementoFoundCount()) { 521 if (memento->GetAllocationSite()->IncrementMementoFoundCount()) {
522 heap->AddAllocationSiteToScratchpad(memento->GetAllocationSite(), mode); 522 heap->AddAllocationSiteToScratchpad(memento->GetAllocationSite(), mode);
523 } 523 }
524 } 524 }
525 525
526 526
527 void Heap::ScavengeObject(HeapObject** p, HeapObject* object) { 527 void Heap::ScavengeObject(HeapObject** p,
528 HeapObject* object,
529 Object* old_object) {
528 ASSERT(object->GetIsolate()->heap()->InFromSpace(object)); 530 ASSERT(object->GetIsolate()->heap()->InFromSpace(object));
529 531
530 // We use the first word (where the map pointer usually is) of a heap 532 // We use the first word (where the map pointer usually is) of a heap
531 // object to record the forwarding pointer. A forwarding pointer can 533 // object to record the forwarding pointer. A forwarding pointer can
532 // point to an old space, the code space, or the to space of the new 534 // point to an old space, the code space, or the to space of the new
533 // generation. 535 // generation.
534 MapWord first_word = object->map_word(); 536 MapWord first_word = object->map_word();
535 537
536 // If the first word is a forwarding address, the object has already been 538 // If the first word is a forwarding address, the object has already been
537 // copied. 539 // copied.
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 819
818 820
819 double GCTracer::SizeOfHeapObjects() { 821 double GCTracer::SizeOfHeapObjects() {
820 return (static_cast<double>(heap_->SizeOfObjects())) / MB; 822 return (static_cast<double>(heap_->SizeOfObjects())) / MB;
821 } 823 }
822 824
823 825
824 } } // namespace v8::internal 826 } } // namespace v8::internal
825 827
826 #endif // V8_HEAP_INL_H_ 828 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/mark-compact.cc » ('j') | src/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698