Index: src/flag-definitions.h |
=================================================================== |
--- src/flag-definitions.h (revision 1577) |
+++ src/flag-definitions.h (working copy) |
@@ -337,10 +337,22 @@ |
DEFINE_bool(sliding_state_window, false, |
"Update sliding state window counters.") |
DEFINE_string(logfile, "v8.log", "Specify the name of the log file.") |
-DEFINE_bool(oprofile, false, |
- "Enable JIT agent for OProfile.") |
+DEFINE_bool(oprofile, false, "Enable JIT agent for OProfile.") |
// |
+// Heap protection flags |
+// Using heap protection requires ENABLE_LOGGING_AND_PROFILING as well. |
+// |
+#ifdef ENABLE_HEAP_PROTECTION |
+#undef FLAG |
+#define FLAG FLAG_FULL |
+ |
+DEFINE_bool(protect_heap, false, |
+ "Protect/unprotect V8's heap when leaving/entring the VM.") |
+ |
+#endif |
+ |
+// |
// Disassembler only flags |
// |
#undef FLAG |