Index: src/heap.h |
=================================================================== |
--- src/heap.h (revision 1577) |
+++ src/heap.h (working copy) |
@@ -273,6 +273,12 @@ |
return new_space_.allocation_limit_address(); |
} |
+#ifdef ENABLE_HEAP_PROTECTION |
+ // Protect/unprotect the heap by marking all spaces read-only/writable. |
+ static void Protect(); |
+ static void Unprotect(); |
+#endif |
+ |
// Allocates and initializes a new JavaScript object based on a |
// constructor. |
// Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |