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

Unified Diff: src/heap/heap.h

Issue 2005173003: Immediatelly promote marked objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Polish 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/heap/heap-inl.h » ('j') | src/heap/heap-inl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 150647fbc7c0d2ad31dcc8a36ceaa8e01e54b833..da0ae7b7f76ed7a6eda4ea20dc3a84197261994e 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -302,6 +302,7 @@ class ScavengeJob;
class WeakObjectRetainer;
enum PromotionMode { FORCE_PROMOTION, DEFAULT_PROMOTION };
+enum MarksHandling { TRANSFER_MARKS, IGNORE_MARKS };
typedef void (*ObjectSlotCallback)(HeapObject** from, HeapObject* to,
PromotionMode mode);
@@ -777,6 +778,7 @@ class Heap {
// An object should be promoted if the object has survived a
// scavenge operation.
+ template <MarksHandling marks_handling>
inline bool ShouldBePromoted(Address old_address, int object_size);
void ClearNormalizedMapCaches();
« no previous file with comments | « no previous file | src/heap/heap-inl.h » ('j') | src/heap/heap-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698