Add build flags to control the region selector default

This will be used to run automated builds testing the new
region selectors.
Esse commit está contido em:
bsimmers
2013-07-23 13:15:23 -07:00
commit de Sara Golemon
commit 7aa354b270
2 arquivos alterados com 14 adições e 1 exclusões
+13
Ver Arquivo
@@ -398,6 +398,19 @@ static inline bool evalJitDefault() {
return stat(path, &dummy) == 0;
}
static inline std::string regionSelectorDefault() {
#ifdef HHVM_REGION_SELECTOR_TRACELET
return "tracelet";
#else
#ifdef HHVM_REGION_SELECTOR_LEGACY
return "legacy";
#else
return "";
#endif
#endif
}
const uint64_t kEvalVMStackElmsDefault =
#ifdef VALGRIND
0x800
+1 -1
Ver Arquivo
@@ -444,7 +444,7 @@ public:
F(bool, HHIRDeadCodeElim, true) \
F(bool, HHIRPredictionOpts, true) \
F(bool, HHIRStressCodegenBlocks, false) \
F(string, JitRegionSelector, "") \
F(string, JitRegionSelector, regionSelectorDefault()) \
/* DumpBytecode =1 dumps user php, =2 dumps systemlib & user php */ \
F(int32_t, DumpBytecode, 0) \
F(bool, DumpTC, false) \