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

Unified Diff: src/flag-definitions.h

Issue 325553002: --verify-predictable mode added for ensuring that GC behaves deterministically. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
Index: src/flag-definitions.h
diff --git a/src/flag-definitions.h b/src/flag-definitions.h
index fa982200dff4203da715a7c19d4ca143b2c86788..67a1d39f0cf61d8f2b18265449e399bba4644bec 100644
--- a/src/flag-definitions.h
+++ b/src/flag-definitions.h
@@ -860,6 +860,31 @@ DEFINE_implication(print_all_code, trace_codegen)
#endif
#endif
+
+//
+// VERIFY_PREDICTABLE related flags
+//
+#undef FLAG
+
+#ifdef VERIFY_PREDICTABLE
+#define FLAG FLAG_FULL
+#else
+#define FLAG FLAG_READONLY
+#endif
+
+DEFINE_bool(verify_predictable, false,
+ "this mode is used for checking that V8 behaves predictably")
+DEFINE_bool(allocations_digest, false,
Hannes Payer (out of office) 2014/06/09 15:23:51 Do we need both, verify_predictable and allocation
Igor Sheludko 2014/06/10 08:22:54 Done.
+ "calculate hash over all allocations performed during program "
+ "execution")
+DEFINE_int(dump_allocations_digest_at_alloc, 0,
+ "dump allocations digest each n-th allocation")
+#ifdef VERIFY_PREDICTABLE
+DEFINE_implication(verify_predictable, allocations_digest)
+DEFINE_implication(dump_allocations_digest_at_alloc != 0, allocations_digest)
+#endif
+
+
//
// Read-only flags
//

Powered by Google App Engine
This is Rietveld 408576698