Index: src/spaces.h |
diff --git a/src/spaces.h b/src/spaces.h |
index 83f6467ad77732830eb76cf21b4b0ea2ee3fa9af..c554a37771b990e3aff3fc46378aaeecf6b3c252 100644 |
--- a/src/spaces.h |
+++ b/src/spaces.h |
@@ -1247,7 +1247,6 @@ class PagedSpace : public Space { |
}; |
-#if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) |
class NumberAndSizeInfo BASE_EMBEDDED { |
public: |
NumberAndSizeInfo() : number_(0), bytes_(0) {} |
@@ -1270,9 +1269,7 @@ class NumberAndSizeInfo BASE_EMBEDDED { |
// HistogramInfo class for recording a single "bar" of a histogram. This |
-// class is used for collecting statistics to print to stdout (when compiled |
-// with DEBUG) or to the log file (when compiled with |
-// ENABLE_LOGGING_AND_PROFILING). |
+// class is used for collecting statistics to print to the log file. |
class HistogramInfo: public NumberAndSizeInfo { |
public: |
HistogramInfo() : NumberAndSizeInfo() {} |
@@ -1283,7 +1280,6 @@ class HistogramInfo: public NumberAndSizeInfo { |
private: |
const char* name_; |
}; |
-#endif |
// ----------------------------------------------------------------------------- |
@@ -1606,7 +1602,6 @@ class NewSpace : public Space { |
virtual void Print() { to_space_.Print(); } |
#endif |
-#if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) |
// Iterates the active semispace to collect statistics. |
void CollectStatistics(); |
// Reports previously collected statistics of the active semispace. |
@@ -1619,7 +1614,6 @@ class NewSpace : public Space { |
// to space during a scavenge GC. |
void RecordAllocation(HeapObject* obj); |
void RecordPromotion(HeapObject* obj); |
-#endif |
// Return whether the operation succeded. |
bool CommitFromSpaceIfNeeded() { |
@@ -1648,10 +1642,8 @@ class NewSpace : public Space { |
AllocationInfo allocation_info_; |
AllocationInfo mc_forwarding_info_; |
-#if defined(DEBUG) || defined(ENABLE_LOGGING_AND_PROFILING) |
HistogramInfo* allocated_histogram_; |
HistogramInfo* promoted_histogram_; |
-#endif |
// Implementation of AllocateRaw and MCAllocateRaw. |
MUST_USE_RESULT inline MaybeObject* AllocateRawInternal( |