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

Unified Diff: src/spaces.h

Issue 1519027: Make VM state tracking to be independent of logging and profiling. (Closed)
Patch Set: Created 10 years, 8 months 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
« no previous file with comments | « src/platform-win32.cc ('k') | src/v8.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/spaces.h
diff --git a/src/spaces.h b/src/spaces.h
index 850a723666e8973e73b9b01f73e4c861d477884f..1237bdf8883134f1aa40ca6d69a4e81a5c0c22f6 100644
--- a/src/spaces.h
+++ b/src/spaces.h
@@ -301,6 +301,12 @@ class Space : public Malloced {
virtual int Size() = 0;
+#ifdef ENABLE_HEAP_PROTECTION
+ // Protect/unprotect the space by marking it read-only/writable.
+ virtual void Protect() = 0;
+ virtual void Unprotect() = 0;
+#endif
+
#ifdef DEBUG
virtual void Print() = 0;
#endif
@@ -1169,6 +1175,12 @@ class SemiSpace : public Space {
bool Commit();
bool Uncommit();
+#ifdef ENABLE_HEAP_PROTECTION
+ // Protect/unprotect the space by marking it read-only/writable.
+ virtual void Protect() {}
+ virtual void Unprotect() {}
+#endif
+
#ifdef DEBUG
virtual void Print();
virtual void Verify();
« no previous file with comments | « src/platform-win32.cc ('k') | src/v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698