Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 918e25efb5a98a3f84a2acd4090db364af93028c..ad628303e0688c7acdcb1070496e22f55a7b281c 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -2149,16 +2149,16 @@ class HeapStats { |
}; |
-#ifdef DEBUG |
class DisallowAllocationFailure { |
public: |
inline DisallowAllocationFailure(); |
inline ~DisallowAllocationFailure(); |
+#ifdef DEBUG |
private: |
bool old_state_; |
-}; |
#endif |
+}; |
class AlwaysAllocateScope { |
@@ -2166,11 +2166,9 @@ class AlwaysAllocateScope { |
inline AlwaysAllocateScope(); |
inline ~AlwaysAllocateScope(); |
-#ifdef DEBUG |
private: |
// Implicitly disable artificial allocation failures. |
DisallowAllocationFailure disallow_allocation_failure_; |
-#endif |
}; |