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

Unified Diff: src/objects.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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index c3958e2396848bc87a603b639aab13b42529c6e6..7cab68dfb58a9bc1f5dd4cb0b292b8b3dcef11e5 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -937,6 +937,7 @@ class MapWord BASE_EMBEDDED {
inline void ClearOverflow();
+#ifndef BASELINE_GC
// Compacting phase of a full compacting collection: the map word of live
// objects contains an encoding of the original map address along with the
// forwarding address (represented as an offset from the first live object
@@ -960,6 +961,7 @@ class MapWord BASE_EMBEDDED {
static inline MapWord FromEncodedAddress(Address address);
inline Address ToEncodedAddress();
+#endif
// Bits used by the marking phase of the garbage collector.
//
@@ -975,6 +977,7 @@ class MapWord BASE_EMBEDDED {
static const int kOverflowBit = 1; // overflow bit
static const int kOverflowMask = (1 << kOverflowBit); // overflow mask
+#ifndef BASELINE_GC
// Forwarding pointers and map pointer encoding. On 32 bit all the bits are
// used.
// +-----------------+------------------+-----------------+
@@ -1008,6 +1011,7 @@ class MapWord BASE_EMBEDDED {
((1 << kForwardingOffsetShift) - 1) & ~kMapPageIndexMask;
static const uintptr_t kForwardingOffsetMask =
~(kMapPageIndexMask | kMapPageOffsetMask);
+#endif
private:
// HeapObject calls the private constructor and directly reads the value.
« src/ia32/codegen-ia32.cc ('K') | « src/mark-compact.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698