| 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.
|
|
|