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

Unified Diff: src/heap.h

Issue 6713075: Create an abstraction (MarkBit) object to hold the location of the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 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 | « no previous file | src/incremental-marking.h » ('j') | src/mark-compact.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
===================================================================
--- src/heap.h (revision 7247)
+++ src/heap.h (working copy)
@@ -1128,6 +1128,8 @@
}
static inline bool NextGCIsLikelyToBeFull() {
+ if (FLAG_gc_global) return true;
+
intptr_t total_promoted =
PromotedSpaceSize() + PromotedExternalMemorySize();
@@ -1771,7 +1773,7 @@
// otherwise mark the object as overflowed and wait for a rescan of the
// heap.
void Push(HeapObject* object) {
- CHECK(object->IsHeapObject());
+ ASSERT(object->IsHeapObject());
if (is_full()) {
object->SetOverflow();
overflowed_ = true;
@@ -1783,7 +1785,7 @@
HeapObject* Pop() {
ASSERT(!is_empty());
HeapObject* object = *(--top_);
- CHECK(object->IsHeapObject());
+ ASSERT(object->IsHeapObject());
Vyacheslav Egorov (Chromium) 2011/03/21 16:54:23 Do we really want this? Sometimes it's better to
Erik Corry 2011/03/21 20:48:53 This is inlined in some of our hottest GC function
return object;
}
« no previous file with comments | « no previous file | src/incremental-marking.h » ('j') | src/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698