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

Unified Diff: src/IceDefs.h

Issue 1300993002: Use separate random number generator for each randomization pass (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 4 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/IceDefs.h
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 1908a034f4c19b151a9faa98a44a4bd2019f655f..7136bb7c192cf9ae3f1f7ef044f2e48047806bcf 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -275,6 +275,18 @@ llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
/// Options for pooling and randomization of immediates.
enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool };
+/// Salts for Random number generator for different randomization passes.
+enum RandomizationPassesEnum {
+ RPE_BasicBlockReordering,
+ RPE_ConstantBlinding,
+ RPE_FunctionReordering,
+ RPE_GlobalVariableReordering,
+ RPE_NopInsertion,
+ RPE_PooledConstantReordering,
+ RPE_RegAllocRandomization,
+ RPE_num
+};
+
} // end of namespace Ice
#endif // SUBZERO_SRC_ICEDEFS_H
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | src/IceRegAlloc.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698