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

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: Assign default value of ConstantBlindingCookie in its declaration 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..9267c01401ec96cad2e09f83186fb53e74fa9e5f 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 {
+ RS_BasicBlockReordering,
Jim Stichnoth 2015/08/19 19:03:04 Usually the enum value prefix is directly derived
qining 2015/08/19 23:25:48 Done.
+ RS_ConstantBlinding,
+ RS_FunctionReordering,
+ RS_GlobalVariableReordering,
+ RS_NopInsertion,
+ RS_PooledConstantReordering,
+ RS_RegAllocRandomization,
+ RS_END = 16
Jim Stichnoth 2015/08/19 19:03:04 Instead, use RPE_num The _num name is used in l
qining 2015/08/19 23:25:48 Done.
+};
+
} // end of namespace Ice
#endif // SUBZERO_SRC_ICEDEFS_H

Powered by Google App Engine
This is Rietveld 408576698