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

Unified Diff: src/heap.h

Issue 5745005: Provide baseline GC version. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years 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/globals.h ('k') | src/heap.cc » ('j') | src/ia32/codegen-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 06b3ee46890881d5ef82d18a232799ec955fae0b..235e2d9f0ce13381a2598e88b2a984f7d4514f6e 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -1252,13 +1252,20 @@ class Heap : public AllStatic {
// Support for computing object sizes during GC.
static HeapObjectCallback gc_safe_size_of_old_object_;
static int GcSafeSizeOfOldObject(HeapObject* object);
+#ifndef BASELINE_GC
static int GcSafeSizeOfOldObjectWithEncodedMap(HeapObject* object);
+#endif
// Update the GC state. Called from the mark-compact collector.
static void MarkMapPointersAsEncoded(bool encoded) {
+#ifndef BASELINE_GC
gc_safe_size_of_old_object_ = encoded
? &GcSafeSizeOfOldObjectWithEncodedMap
: &GcSafeSizeOfOldObject;
+#else
+ ASSERT(!encoded);
+ gc_safe_size_of_old_object_ = &GcSafeSizeOfOldObject;
+#endif
}
// Checks whether a global GC is necessary
@@ -1496,6 +1503,7 @@ class VerifyPointersVisitor: public ObjectVisitor {
};
+#ifndef BASELINE_GC
// Visitor class to verify interior pointers in spaces that use region marks
// to keep track of intergenerational references.
// As VerifyPointersVisitor but also checks that dirty marks are set
@@ -1518,6 +1526,7 @@ class VerifyPointersAndDirtyRegionsVisitor: public ObjectVisitor {
}
};
#endif
+#endif
// Space iterator for iterating over all spaces of the heap.
« no previous file with comments | « src/globals.h ('k') | src/heap.cc » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698