|
|
@@ -666,16 +666,12 @@ PHASE(All)
|
|
|
// Default values for stings must be prefixed with 'L'. See AsmDumpMode
|
|
|
// Scroll till the extreme right to see the default values
|
|
|
|
|
|
-#if defined(FLAG) || defined(FLAG_STRING) || defined(FLAG_REGOVR_EXP)
|
|
|
+#if defined(FLAG) || defined(FLAG_REGOVR_EXP)
|
|
|
|
|
|
#ifndef FLAG
|
|
|
#define FLAG(...)
|
|
|
#endif
|
|
|
|
|
|
-#ifndef FLAG_STRING
|
|
|
-#define FLAG_STRING(...)
|
|
|
-#endif
|
|
|
-
|
|
|
#ifndef FLAG_REGOVR_ASMJS
|
|
|
#define FLAG_REGOVR_ASMJS FLAG
|
|
|
#endif
|
|
|
@@ -690,9 +686,6 @@ PHASE(All)
|
|
|
// Regular FLAG
|
|
|
#define FLAGNR(Type, Name, String, Default) FLAG(Type, Name, String, Default, NoParent, FALSE)
|
|
|
|
|
|
-// Flags with a default string provided
|
|
|
-#define FLAGNR_STRING(Name, String, DefaultString) FLAG_STRING(Name, String, DefaultString, NoParent, FALSE)
|
|
|
-
|
|
|
// Regular flag with acronym
|
|
|
#ifndef FLAGNRA
|
|
|
#define FLAGNRA(Type, Name, Acronym, String, Default) \
|
|
|
@@ -700,12 +693,6 @@ PHASE(All)
|
|
|
FLAGNR(Type, Acronym, String, Default)
|
|
|
#endif
|
|
|
|
|
|
-#ifndef FLAGNRA_STRING
|
|
|
- #define FLAGNRA_STRING(Name, Acronym, String, Default) \
|
|
|
- FLAGNR_STRING(Name, String, Default) \
|
|
|
- FLAGNR_STRING(Acronym, String, Default)
|
|
|
-#endif
|
|
|
-
|
|
|
// Child FLAG with PARENT FLAG
|
|
|
#define FLAGPNR(Type, ParentName, Name, String, Default) FLAG(Type, Name, String, Default, ParentName, FALSE)
|
|
|
|
|
|
@@ -714,18 +701,12 @@ PHASE(All)
|
|
|
|
|
|
#else
|
|
|
#define FLAGNR(Type, Name, String, Default)
|
|
|
-#define FLAGNR_STRING(Name, String, Default)
|
|
|
|
|
|
#ifdef FLAGNRA
|
|
|
#undef FLAGNRA
|
|
|
#endif
|
|
|
#define FLAGNRA(Type, Name, Acronym, String, Default)
|
|
|
|
|
|
-#ifdef FLAGNRA_STRING
|
|
|
- #undef FLAGNRA_STRING
|
|
|
-#endif
|
|
|
-#define FLAGNRA_STRING(Name, Acronym, String, Default)
|
|
|
-
|
|
|
#define FLAGPNR(Type, ParentName, Name, String, Default)
|
|
|
#define FLAGNRC(Type, Name, String, Default)
|
|
|
#endif
|
|
|
@@ -846,7 +827,7 @@ FLAGNR(Boolean, NoDynamicProfileInMemoryCache, "Enable in-memory cache for dynam
|
|
|
FLAGNR(Boolean, ProfileBasedSpeculativeJit, "Enable dynamic profile based speculative JIT", DEFAULT_CONFIG_ProfileBasedSpeculativeJit)
|
|
|
FLAGNR(Number, ProfileBasedSpeculationCap, "In the presence of dynamic profile speculative JIT is capped to this many bytecode instructions", DEFAULT_CONFIG_ProfileBasedSpeculationCap)
|
|
|
#ifdef DYNAMIC_PROFILE_MUTATOR
|
|
|
-FLAGNR_STRING(DynamicProfileMutatorDll , "Path of the mutator DLL", "DynamicProfileMutatorImpl.dll")
|
|
|
+FLAGNR(String, DynamicProfileMutatorDll , "Path of the mutator DLL", CH_WSTR("DynamicProfileMutatorImpl.dll"))
|
|
|
FLAGNR(String, DynamicProfileMutator , "Type of local, temp, return, param, loop implicit flag and implicit flag. \n\t\t\t\t\ti.e local=LikelyArray_NoMissingValues_NonInts_NonFloats;temp=Int8Array;param=LikelyNumber;return=LikelyString;loopimplicitflag=ImplicitCall_ToPrimitive;implicitflag=ImplicitCall_None\n\t\t\t\t\tor pass DynamicProfileMutator:random\n\t\t\t\t\tSee DynamicProfileInfo.h for enum values", nullptr)
|
|
|
#endif
|
|
|
FLAGNR(Boolean, ExecuteByteCodeBufferReturnsInvalidByteCode, "Serialized byte code execution always returns SCRIPT_E_INVALID_BYTECODE", false)
|
|
|
@@ -984,9 +965,9 @@ FLAGNR(Number, FaultInjectionCount , "Injects an out of memory at the specifi
|
|
|
FLAGNR(String, FaultInjectionType , "FaultType (flag values) - 1 (Throw), 2 (NoThrow), 4 (MarkThrow), 8 (MarkNoThrow), FFFFFFFF (All)", nullptr)
|
|
|
FLAGNR(String, FaultInjectionFilter , "A string to restrict the fault injection, the string can be like ArenaAllocator name", nullptr)
|
|
|
FLAGNR(Number, FaultInjectionAllocSize, "Do fault injection only this size", -1)
|
|
|
-FLAGNR_STRING(FaultInjectionStackFile , "Stacks to match, default: stack.txt in current directory", "stack.txt")
|
|
|
+FLAGNR(String, FaultInjectionStackFile , "Stacks to match, default: stack.txt in current directory", CH_WSTR("stack.txt"))
|
|
|
FLAGNR(Number, FaultInjectionStackLineCount , "Count of lines in the stack file used for matching", -1)
|
|
|
-FLAGNR_STRING(FaultInjectionStackHash, "Match stacks hash on Chakra frames to inject the fault, hex string", "0")
|
|
|
+FLAGNR(String, FaultInjectionStackHash, "Match stacks hash on Chakra frames to inject the fault, hex string", CH_WSTR("0"))
|
|
|
FLAGNR(Number, FaultInjectionScriptContextToTerminateCount, "Script context# COUNT % (Number of script contexts) to terminate", 1)
|
|
|
#endif
|
|
|
FLAGNR(Number, InduceCodeGenFailure, "Probability of a codegen job failing.", DEFAULT_CONFIG_InduceCodeGenFailure)
|
|
|
@@ -1064,7 +1045,8 @@ FLAGR (Number, AutoProfilingInterpreter1Limit, "Limit after which to transition
|
|
|
FLAGR (Number, SimpleJitLimit, "Limit after which to transition to the next execution mode", DEFAULT_CONFIG_SimpleJitLimit)
|
|
|
FLAGR (Number, ProfilingInterpreter1Limit, "Limit after which to transition to the next execution mode", DEFAULT_CONFIG_ProfilingInterpreter1Limit)
|
|
|
|
|
|
-FLAGNRA_STRING(ExecutionModeLimits, Eml, "Execution mode limits in th form: AutoProfilingInterpreter0.ProfilingInterpreter0.AutoProfilingInterpreter1.SimpleJit.ProfilingInterpreter1 - Example: -ExecutionModeLimits:12.4.0.132.12", "")
|
|
|
+FLAGNRA(String, ExecutionModeLimits, Eml, "Execution mode limits in th form: AutoProfilingInterpreter0.ProfilingInterpreter0.AutoProfilingInterpreter1.SimpleJit.ProfilingInterpreter1 - Example: -ExecutionModeLimits:12.4.0.132.12", CH_WSTR(""))
|
|
|
+
|
|
|
FLAGRA(Boolean, EnforceExecutionModeLimits, Eeml, "Enforces the execution mode limits such that they are never exceeded.", false)
|
|
|
|
|
|
FLAGNRA(Number, SimpleJitAfter , Sja, "Number of calls to a function after which to simple-JIT the function", 0)
|
|
|
@@ -1100,8 +1082,8 @@ FLAGNR(Boolean, NoWinRTFastSig , "Disable fast call for common WinRT func
|
|
|
FLAGNR(Phases, Off , "Turn off specific phases or feature.(Might not work for all phases)", )
|
|
|
FLAGNR(Phases, OffProfiledByteCode , "Turn off specific byte code for phases or feature.(Might not work for all phases)", )
|
|
|
FLAGNR(Phases, On , "Turn on specific phases or feature.(Might not work for all phases)", )
|
|
|
-FLAGNR_STRING(OutputFile , "Log the output to a specified file. Default: output.log in the working directory.", "output.log")
|
|
|
-FLAGNR_STRING(OutputFileOpenMode , "File open mode for OutputFile. Default: wt, specify 'at' for append", "wt")
|
|
|
+FLAGNR(String, OutputFile , "Log the output to a specified file. Default: output.log in the working directory.", CH_WSTR("output.log"))
|
|
|
+FLAGNR(String, OutputFileOpenMode , "File open mode for OutputFile. Default: wt, specify 'at' for append", CH_WSTR("wt"))
|
|
|
#ifdef ENABLE_TRACE
|
|
|
FLAGNR(Boolean, InMemoryTrace , "Enable in-memory trace (investigate crash using trace in dump file). Use !jd.dumptrace to print it.", DEFAULT_CONFIG_InMemoryTrace)
|
|
|
FLAGNR(Number, InMemoryTraceBufferSize, "The size of circular buffer for in-memory trace (the units used is: number of trace calls). ", DEFAULT_CONFIG_InMemoryTraceBufferSize)
|
|
|
@@ -1287,7 +1269,7 @@ FLAGNR(Boolean, ChangeTypeOnProto, "When becoming a prototype should the object
|
|
|
FLAGNR(Boolean, ShareInlineCaches, "Determines whether inline caches are shared between all loads (or all stores) of the same property ID", DEFAULT_CONFIG_ShareInlineCaches)
|
|
|
FLAGNR(Boolean, DisableDebugObject, "Disable test only Debug object properties", DEFAULT_CONFIG_DisableDebugObject)
|
|
|
FLAGNR(Boolean, DumpHeap, "enable Debug.dumpHeap even when DisableDebugObject is set", DEFAULT_CONFIG_DumpHeap)
|
|
|
-FLAGNR_STRING(autoProxy, "enable creating proxy for each object creation", "__msTestHandler")
|
|
|
+FLAGNR(String, autoProxy, "enable creating proxy for each object creation", CH_WSTR("__msTestHandler"))
|
|
|
FLAGNR(Number, PerfHintLevel, "Specifies the perf-hint level (1,2) 1 == critical, 2 == only noisy", DEFAULT_CONFIG_PerfHintLevel)
|
|
|
#ifdef INTERNAL_MEM_PROTECT_HEAP_ALLOC
|
|
|
FLAGNR(Boolean, MemProtectHeap, "Use the mem protect heap as the default heap", DEFAULT_CONFIG_MemProtectHeap)
|
|
|
@@ -1357,15 +1339,12 @@ FLAGNR(Boolean, CFG, "Force enable CFG on jshost. version in the jshost's manife
|
|
|
#undef FLAG_REGOVR_ASMJS
|
|
|
|
|
|
#undef FLAG
|
|
|
-#undef FLAG_STRING
|
|
|
#undef FLAGP
|
|
|
|
|
|
#undef FLAGRA
|
|
|
|
|
|
#undef FLAGNR
|
|
|
-#undef FLAGNR_STRING
|
|
|
#undef FLAGNRA
|
|
|
-#undef FLAGNRA_STRING
|
|
|
#undef FLAGPNR
|
|
|
|
|
|
#endif
|