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

Unified Diff: src/heap/heap-inl.h

Issue 1420423009: [heap] Black allocation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/incremental-marking.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap-inl.h
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
index de5446d0d53ad2ee80580e8edf405976ab4c6f3f..48ec1f17407cd7b8121f295288cd925f69d35de9 100644
--- a/src/heap/heap-inl.h
+++ b/src/heap/heap-inl.h
@@ -25,21 +25,23 @@
namespace v8 {
namespace internal {
-void PromotionQueue::insert(HeapObject* target, intptr_t size) {
+void PromotionQueue::insert(HeapObject* target, int32_t size,
+ bool was_marked_black) {
if (emergency_stack_ != NULL) {
- emergency_stack_->Add(Entry(target, size));
+ emergency_stack_->Add(Entry(target, size, was_marked_black));
return;
}
if ((rear_ - 1) < limit_) {
RelocateQueueHead();
- emergency_stack_->Add(Entry(target, size));
+ emergency_stack_->Add(Entry(target, size, was_marked_black));
return;
}
struct Entry* entry = reinterpret_cast<struct Entry*>(--rear_);
entry->obj_ = target;
entry->size_ = size;
+ entry->was_marked_black_ = was_marked_black;
// Assert no overflow into live objects.
#ifdef DEBUG
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/incremental-marking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698