ConfigFlagsList.h 98 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #ifdef PHASE
  6. PHASE(All)
  7. PHASE(BGJit)
  8. PHASE(Module)
  9. PHASE(LibInit)
  10. PHASE(JsLibInit)
  11. PHASE(Parse)
  12. PHASE(RegexCompile)
  13. PHASE(DeferParse)
  14. PHASE(Redeferral)
  15. PHASE(DeferEventHandlers)
  16. PHASE(FunctionSourceInfoParse)
  17. PHASE(StringTemplateParse)
  18. PHASE(SkipNestedDeferred)
  19. PHASE(CacheScopeInfoNames)
  20. PHASE(ScanAhead)
  21. PHASE(ParallelParse)
  22. PHASE(EarlyReferenceErrors)
  23. PHASE(ByteCode)
  24. PHASE(CachedScope)
  25. PHASE(StackFunc)
  26. PHASE(StackClosure)
  27. PHASE(DisableStackFuncOnDeferredEscape)
  28. PHASE(DelayCapture)
  29. PHASE(DebuggerScope)
  30. PHASE(ByteCodeSerialization)
  31. PHASE(VariableIntEncoding)
  32. PHASE(NativeCodeSerialization)
  33. PHASE(OptimizeBlockScope)
  34. PHASE(Delay)
  35. PHASE(Speculation)
  36. PHASE(GatherCodeGenData)
  37. PHASE(Wasm)
  38. // Wasm frontend
  39. PHASE(WasmBytecode)
  40. PHASE(WasmReader)
  41. PHASE(WasmSection)
  42. PHASE(WasmLEB128)
  43. // Wasm features per functions
  44. PHASE(WasmDeferred)
  45. PHASE(WasmValidatePrejit)
  46. PHASE(WasmInOut) // Trace input and output of wasm calls
  47. PHASE(WasmMemWrites) // Trace memory writes
  48. PHASE(Asmjs)
  49. PHASE(AsmjsTmpRegisterAllocation)
  50. PHASE(AsmjsEncoder)
  51. PHASE(AsmjsInterpreter)
  52. PHASE(AsmJsJITTemplate)
  53. PHASE(AsmjsFunctionEntry)
  54. PHASE(AsmjsInterpreterStack)
  55. PHASE(AsmjsEntryPointInfo)
  56. PHASE(AsmjsCallDebugBreak)
  57. PHASE(BackEnd)
  58. PHASE(IRBuilder)
  59. PHASE(SwitchOpt)
  60. PHASE(BailOnNoProfile)
  61. PHASE(BackendConcatExprOpt)
  62. PHASE(ClosureRangeCheck)
  63. PHASE(ClosureRegCheck)
  64. PHASE(Inline)
  65. PHASE(InlineRecursive)
  66. PHASE(InlineAtEveryCaller) //Inlines a function, say, foo at every caller of foo. Doesn't guarantee all the calls within foo are inlined too.
  67. PHASE(InlineTree) //Inlines every function within a top function, say, foo (which needs to be top function) Note: -force:inline achieves the effect of both -force:InlineTree & -force:InlineAtEveryCaller
  68. PHASE(TryAggressiveInlining)
  69. PHASE(InlineConstructors)
  70. PHASE(InlineBuiltIn)
  71. PHASE(InlineInJitLoopBody)
  72. PHASE(InlineAccessors)
  73. PHASE(InlineGetters)
  74. PHASE(InlineSetters)
  75. PHASE(InlineApply)
  76. PHASE(InlineApplyTarget)
  77. PHASE(InlineApplyWithoutArrayArg)
  78. PHASE(BailOutOnNotStackArgs)
  79. PHASE(InlineCall)
  80. PHASE(InlineCallTarget)
  81. PHASE(PartialPolymorphicInline)
  82. PHASE(PolymorphicInline)
  83. PHASE(PolymorphicInlineFixedMethods)
  84. PHASE(InlineOutsideLoops)
  85. PHASE(InlineFunctionsWithLoops)
  86. PHASE(EliminateArgoutForInlinee)
  87. PHASE(InlineBuiltInCaller)
  88. PHASE(InlineArgsOpt)
  89. PHASE(RemoveInlineFrame)
  90. PHASE(InlinerConstFold)
  91. PHASE(ExecBOIFastPath)
  92. PHASE(FGBuild)
  93. PHASE(OptimizeTryFinally)
  94. PHASE(RemoveBreakBlock)
  95. PHASE(TailDup)
  96. PHASE(FGPeeps)
  97. PHASE(GlobOpt)
  98. PHASE(OptimizeTryCatch)
  99. PHASE(Backward)
  100. PHASE(TrackIntUsage)
  101. PHASE(TrackNegativeZero)
  102. PHASE(TypedArrayVirtual)
  103. PHASE(TrackIntOverflow)
  104. PHASE(TrackCompoundedIntOverflow)
  105. PHASE(Forward)
  106. PHASE(ValueTable)
  107. PHASE(PathDependentValues)
  108. PHASE(TrackRelativeIntBounds)
  109. PHASE(BoundCheckElimination)
  110. PHASE(BoundCheckHoist)
  111. PHASE(LoopCountBasedBoundCheckHoist)
  112. PHASE(CopyProp)
  113. PHASE(ObjPtrCopyProp)
  114. PHASE(ConstProp)
  115. PHASE(Int64ConstProp)
  116. PHASE(ConstFold)
  117. PHASE(CSE)
  118. PHASE(HoistConstInt)
  119. PHASE(TypeSpec)
  120. PHASE(AggressiveIntTypeSpec)
  121. PHASE(AggressiveMulIntTypeSpec)
  122. PHASE(LossyIntTypeSpec)
  123. PHASE(FloatTypeSpec)
  124. PHASE(StringTypeSpec)
  125. PHASE(InductionVars)
  126. PHASE(Invariants)
  127. PHASE(FieldCopyProp)
  128. PHASE(FieldHoist)
  129. PHASE(FieldPRE)
  130. PHASE(HostOpt)
  131. PHASE(ObjTypeSpec)
  132. PHASE(ObjTypeSpecNewObj)
  133. PHASE(ObjTypeSpecIsolatedFldOps)
  134. PHASE(ObjTypeSpecIsolatedFldOpsWithBailOut)
  135. PHASE(ObjTypeSpecStore)
  136. PHASE(EquivObjTypeSpec)
  137. PHASE(EquivObjTypeSpecByDefault)
  138. PHASE(TraceObjTypeSpecTypeGuards)
  139. PHASE(TraceObjTypeSpecWriteGuards)
  140. PHASE(LiveOutFields)
  141. PHASE(DisabledObjTypeSpec)
  142. #if DBG
  143. PHASE(SimulatePolyCacheWithOneTypeForFunction)
  144. #endif
  145. PHASE(CheckThis)
  146. PHASE(StackArgOpt)
  147. PHASE(StackArgFormalsOpt)
  148. PHASE(IndirCopyProp)
  149. PHASE(ArrayCheckHoist)
  150. PHASE(ArrayMissingValueCheckHoist)
  151. PHASE(ArraySegmentHoist)
  152. PHASE(JsArraySegmentHoist)
  153. PHASE(ArrayLengthHoist)
  154. PHASE(EliminateArrayAccessHelperCall)
  155. PHASE(NativeArray)
  156. PHASE(NativeNewScArray)
  157. PHASE(NativeArrayConversion)
  158. PHASE(CopyOnAccessArray)
  159. PHASE(NativeArrayLeafSegment)
  160. PHASE(TypedArrayTypeSpec)
  161. PHASE(LdLenIntSpec)
  162. PHASE(FixDataProps)
  163. PHASE(FixMethodProps)
  164. PHASE(FixAccessorProps)
  165. PHASE(FixDataVarProps)
  166. PHASE(UseFixedDataProps)
  167. PHASE(UseFixedDataPropsInInliner)
  168. PHASE(LazyBailout)
  169. PHASE(LazyFixedDataBailout)
  170. PHASE(LazyFixedTypeBailout)
  171. PHASE(FixedMethods)
  172. PHASE(FEFixedMethods)
  173. PHASE(FixedFieldGuardCheck)
  174. PHASE(FixedNewObj)
  175. PHASE(JitAllocNewObj)
  176. PHASE(FixedCtorInlining)
  177. PHASE(FixedCtorCalls)
  178. PHASE(FixedScriptMethodInlining)
  179. PHASE(FixedScriptMethodCalls)
  180. PHASE(FixedBuiltInMethodInlining)
  181. PHASE(FixedBuiltInMethodCalls)
  182. PHASE(SplitNewScObject)
  183. PHASE(OptTagChecks)
  184. PHASE(MemOp)
  185. PHASE(MemSet)
  186. PHASE(MemCopy)
  187. PHASE(IncrementalBailout)
  188. PHASE(DeadStore)
  189. PHASE(ReverseCopyProp)
  190. PHASE(MarkTemp)
  191. PHASE(MarkTempNumber)
  192. PHASE(MarkTempObject)
  193. PHASE(MarkTempNumberOnTempObject)
  194. PHASE(Lowerer)
  195. PHASE(FastPath)
  196. PHASE(LoopFastPath)
  197. PHASE(MathFastPath)
  198. PHASE(Atom)
  199. PHASE(MulStrengthReduction)
  200. PHASE(AgenPeeps)
  201. PHASE(BranchFastPath)
  202. PHASE(CallFastPath)
  203. PHASE(BitopsFastPath)
  204. PHASE(OtherFastPath)
  205. PHASE(ObjectFastPath)
  206. PHASE(ProfileBasedFldFastPath)
  207. PHASE(AddFldFastPath)
  208. PHASE(RootObjectFldFastPath)
  209. PHASE(ArrayLiteralFastPath)
  210. PHASE(ArrayCtorFastPath)
  211. PHASE(NewScopeSlotFastPath)
  212. PHASE(FrameDisplayFastPath)
  213. PHASE(HoistMarkTempInit)
  214. PHASE(HoistConstAddr)
  215. PHASE(JitWriteBarrier)
  216. PHASE(PreLowererPeeps)
  217. PHASE(CFGInJit)
  218. PHASE(TypedArray)
  219. PHASE(TracePinnedTypes)
  220. PHASE(InterruptProbe)
  221. PHASE(EncodeConstants)
  222. PHASE(RegAlloc)
  223. PHASE(Liveness)
  224. PHASE(RegParams)
  225. PHASE(LinearScan)
  226. PHASE(OpHelperRegOpt)
  227. PHASE(StackPack)
  228. PHASE(SecondChance)
  229. PHASE(RegionUseCount)
  230. PHASE(RegHoistLoads)
  231. PHASE(ClearRegLoopExit)
  232. PHASE(Peeps)
  233. PHASE(Layout)
  234. PHASE(EHBailoutPatchUp)
  235. PHASE(FinalLower)
  236. PHASE(PrologEpilog)
  237. PHASE(InsertNOPs)
  238. PHASE(Encoder)
  239. PHASE(Emitter)
  240. PHASE(DebugBreak)
  241. #if defined(_M_IX86) || defined(_M_X64)
  242. PHASE(BrShorten)
  243. PHASE(LoopAlign)
  244. #endif
  245. #ifdef RECYCLER_WRITE_BARRIER
  246. #if DBG_DUMP
  247. PHASE(SWB)
  248. #endif
  249. #endif
  250. PHASE(Run)
  251. PHASE(Interpreter)
  252. PHASE(EvalCompile)
  253. PHASE(FastIndirectEval)
  254. PHASE(IdleDecommit)
  255. PHASE(IdleCollect)
  256. PHASE(MemoryAllocation)
  257. #ifdef RECYCLER_PAGE_HEAP
  258. PHASE(PageHeap)
  259. #endif
  260. PHASE(LargeMemoryAllocation)
  261. PHASE(PageAllocatorAlloc)
  262. PHASE(Recycler)
  263. PHASE(ThreadCollect)
  264. PHASE(ExplicitFree)
  265. PHASE(ExpirableCollect)
  266. PHASE(GarbageCollect)
  267. PHASE(ConcurrentCollect)
  268. PHASE(BackgroundResetMarks)
  269. PHASE(BackgroundFindRoots)
  270. PHASE(BackgroundRescan)
  271. PHASE(BackgroundRepeatMark)
  272. PHASE(BackgroundFinishMark)
  273. PHASE(ConcurrentPartialCollect)
  274. PHASE(ParallelMark)
  275. PHASE(PartialCollect)
  276. PHASE(ResetMarks)
  277. PHASE(ResetWriteWatch)
  278. PHASE(FindRoot)
  279. PHASE(FindRootArena)
  280. PHASE(FindImplicitRoot)
  281. PHASE(FindRootExt)
  282. PHASE(ScanStack)
  283. PHASE(ConcurrentMark)
  284. PHASE(ConcurrentWait)
  285. PHASE(Rescan)
  286. PHASE(Mark)
  287. PHASE(Sweep)
  288. PHASE(SweepWeak)
  289. PHASE(SweepSmall)
  290. PHASE(SweepLarge)
  291. PHASE(SweepPartialReuse)
  292. PHASE(ConcurrentSweep)
  293. PHASE(Finalize)
  294. PHASE(Dispose)
  295. PHASE(FinishPartial)
  296. PHASE(Host)
  297. PHASE(BailOut)
  298. PHASE(RegexQc)
  299. PHASE(RegexOptBT)
  300. PHASE(InlineCache)
  301. PHASE(PolymorphicInlineCache)
  302. PHASE(MissingPropertyCache)
  303. PHASE(PropertyStringCache)
  304. PHASE(CloneCacheInCollision)
  305. PHASE(ConstructorCache)
  306. PHASE(InlineCandidate)
  307. PHASE(InlineHostCandidate)
  308. PHASE(ScriptFunctionWithInlineCache)
  309. PHASE(IsConcatSpreadableCache)
  310. PHASE(Arena)
  311. PHASE(ApplyUsage)
  312. PHASE(ObjectHeaderInlining)
  313. PHASE(ObjectHeaderInliningForConstructors)
  314. PHASE(ObjectHeaderInliningForObjectLiterals)
  315. PHASE(ObjectHeaderInliningForEmptyObjects)
  316. PHASE(OptUnknownElementName)
  317. #if DBG_DUMP
  318. PHASE(TypePropertyCache)
  319. PHASE(InlineSlots)
  320. #endif
  321. PHASE(DynamicProfile)
  322. #ifdef DYNAMIC_PROFILE_STORAGE
  323. PHASE(DynamicProfileStorage)
  324. #endif
  325. PHASE(JITLoopBody)
  326. PHASE(JITLoopBodyInTryCatch)
  327. PHASE(ReJIT)
  328. PHASE(ExecutionMode)
  329. PHASE(SimpleJitDynamicProfile)
  330. PHASE(SimpleJit)
  331. PHASE(FullJit)
  332. PHASE(FailNativeCodeInstall)
  333. PHASE(PixelArray)
  334. PHASE(Etw)
  335. PHASE(Profiler)
  336. PHASE(CustomHeap)
  337. PHASE(XDataAllocator)
  338. PHASE(PageAllocator)
  339. PHASE(StringConcat)
  340. #if DBG_DUMP
  341. PHASE(PRNG)
  342. #endif
  343. PHASE(PreReservedHeapAlloc)
  344. PHASE(CFG)
  345. PHASE(ExceptionStackTrace)
  346. PHASE(ExtendedExceptionInfoStackTrace)
  347. PHASE(ProjectionMetadata)
  348. PHASE(TypeHandlerTransition)
  349. PHASE(Debugger)
  350. PHASE(ENC)
  351. PHASE(ConsoleScope)
  352. PHASE(ScriptProfiler)
  353. PHASE(JSON)
  354. PHASE(RegexResultNotUsed)
  355. PHASE(Error)
  356. PHASE(PropertyRecord)
  357. PHASE(TypePathDynamicSize)
  358. PHASE(ConditionalCompilation)
  359. PHASE(InterpreterProfile)
  360. PHASE(InterpreterAutoProfile)
  361. PHASE(ByteCodeConcatExprOpt)
  362. PHASE(TraceInlineCacheInvalidation)
  363. PHASE(TracePropertyGuards)
  364. #ifdef ENABLE_JS_ETW
  365. PHASE(StackFramesEvent)
  366. #endif
  367. PHASE(PerfHint)
  368. PHASE(TypeShareForChangePrototype)
  369. PHASE(DeferSourceLoad)
  370. PHASE(ObjectMutationBreakpoint)
  371. PHASE(NativeCodeData)
  372. #undef PHASE
  373. #endif
  374. #ifndef DEFAULT_CONFIG_BgJitDelay
  375. #if _M_ARM
  376. #define DEFAULT_CONFIG_BgJitDelay (70)
  377. #else
  378. #define DEFAULT_CONFIG_BgJitDelay (30)
  379. #endif
  380. #define DEFAULT_CONFIG_ASMJS (true)
  381. #define DEFAULT_CONFIG_AsmJsEdge (false)
  382. #define DEFAULT_CONFIG_AsmJsStopOnError (false)
  383. #ifdef ENABLE_SIMDJS
  384. #ifdef COMPILE_DISABLE_Simdjs
  385. // If Simdjs needs to be disabled by compile flag, DEFAULT_CONFIG_SIMDJS should be false
  386. #define DEFAULT_CONFIG_SIMDJS (false)
  387. #else
  388. #define DEFAULT_CONFIG_SIMDJS (false)
  389. #endif
  390. #endif // #ifdef ENABLE_SIMDJS
  391. #define DEFAULT_CONFIG_Wasm (true)
  392. #define DEFAULT_CONFIG_WasmI64 (false)
  393. #if ENABLE_FAST_ARRAYBUFFER
  394. #define DEFAULT_CONFIG_WasmFastArray (true)
  395. #else
  396. #define DEFAULT_CONFIG_WasmFastArray (false)
  397. #endif
  398. #define DEFAULT_CONFIG_WasmCheckVersion (true)
  399. #define DEFAULT_CONFIG_WasmFold (true)
  400. #define DEFAULT_CONFIG_WasmMathExFilter (false)
  401. #define DEFAULT_CONFIG_WasmIgnoreResponse (false)
  402. #define DEFAULT_CONFIG_WasmMaxTableSize (10000000)
  403. #define DEFAULT_CONFIG_BgJitDelayFgBuffer (0)
  404. #define DEFAULT_CONFIG_BgJitPendingFuncCap (31)
  405. #define DEFAULT_CONFIG_CurrentSourceInfo (true)
  406. #define DEFAULT_CONFIG_CreateFunctionProxy (true)
  407. #define DEFAULT_CONFIG_HybridFgJit (false)
  408. #define DEFAULT_CONFIG_HybridFgJitBgQueueLengthThreshold (32)
  409. #define DEFAULT_CONFIG_Prejit (false)
  410. #define DEFAULT_CONFIG_DeferNested (true)
  411. #define DEFAULT_CONFIG_DeferTopLevelTillFirstCall (true)
  412. #define DEFAULT_CONFIG_DirectCallTelemetryStats (false)
  413. #define DEFAULT_CONFIG_errorStackTrace (true)
  414. #define DEFAULT_CONFIG_FastLineColumnCalculation (true)
  415. #define DEFAULT_CONFIG_PrintLineColumnInfo (false)
  416. #define DEFAULT_CONFIG_ForceDecommitOnCollect (false)
  417. #define DEFAULT_CONFIG_ForceDeferParse (false)
  418. #define DEFAULT_CONFIG_NoDeferParse (false)
  419. #define DEFAULT_CONFIG_ForceDynamicProfile (false)
  420. #define DEFAULT_CONFIG_ForceExpireOnNonCacheCollect (false)
  421. #define DEFAULT_CONFIG_ForceFastPath (false)
  422. #define DEFAULT_CONFIG_ForceJITLoopBody (false)
  423. #define DEFAULT_CONFIG_ForceStaticInterpreterThunk (false)
  424. #define DEFAULT_CONFIG_ForceCleanPropertyOnCollect (false)
  425. #define DEFAULT_CONFIG_ForceCleanCacheOnCollect (false)
  426. #define DEFAULT_CONFIG_ForceGCAfterJSONParse (false)
  427. #define DEFAULT_CONFIG_ForceSerialized (false)
  428. #define DEFAULT_CONFIG_ForceES5Array (false)
  429. #define DEFAULT_CONFIG_ForceAsmJsLinkFail (false)
  430. #define DEFAULT_CONFIG_DumpCommentsFromReferencedFiles (false)
  431. #define DEFAULT_CONFIG_ExtendedErrorStackForTestHost (false)
  432. #define DEFAULT_CONFIG_ForceSplitScope (false)
  433. #define DEFAULT_CONFIG_DelayFullJITSmallFunc (0)
  434. #define DEFAULT_CONFIG_EnableFatalErrorOnOOM (true)
  435. #define DEFAULT_CONFIG_RedeferralCap (3)
  436. //Following determines inline thresholds
  437. #define DEFAULT_CONFIG_InlineThreshold (35) //Default start
  438. #define DEFAULT_CONFIG_AggressiveInlineThreshold (80) //Limit for aggressive inlining.
  439. #define DEFAULT_CONFIG_InlineThresholdAdjustCountInLargeFunction (20)
  440. #define DEFAULT_CONFIG_InlineThresholdAdjustCountInMediumSizedFunction (6)
  441. #define DEFAULT_CONFIG_InlineThresholdAdjustCountInSmallFunction (10)
  442. #define DEFAULT_CONFIG_ConstructorInlineThreshold (21) //Monomorphic constructor threshold
  443. #define DEFAULT_CONFIG_ConstructorCallsRequiredToFinalizeCachedType (2)
  444. #define DEFAULT_CONFIG_OutsideLoopInlineThreshold (16) //Threshold to inline outside loops
  445. #define DEFAULT_CONFIG_LeafInlineThreshold (60) //Inlinee threshold for function which is leaf (irrespective of it has loops or not)
  446. #define DEFAULT_CONFIG_LoopInlineThreshold (25) //Inlinee threshold for function with loops
  447. #define DEFAULT_CONFIG_PolymorphicInlineThreshold (35) //Polymorphic inline threshold
  448. #define DEFAULT_CONFIG_InlineCountMax (1200) //Max sum of bytecodes of inlinees inlined into a function (excluding built-ins)
  449. #define DEFAULT_CONFIG_InlineCountMaxInLoopBodies (500) // Max sum of bytecodes of inlinees that can be inlined into a jitted loop body (excluding built-ins)
  450. #define DEFAULT_CONFIG_AggressiveInlineCountMax (8000) //Max sum of bytecodes of inlinees inlined into a function (excluding built-ins) when inlined aggressively
  451. #define DEFAULT_CONFIG_MaxFuncInlineDepth (2) //Maximum number of times a function can be inlined within a top function
  452. #define DEFAULT_CONFIG_MaxNumberOfInlineesWithLoop (40) //Inlinee with a loop is controlled by LoopInlineThreshold, though we don't want to inline lot of inlinees with loop, this ensures a limit.
  453. #define DEFAULT_CONFIG_ConstantArgumentInlineThreshold (157) // Bytecode threshold for functions with constant arguments which are used for branching
  454. #define DEFAULT_CONFIG_RecursiveInlineThreshold (2000) // Bytecode threshold recursive call at a call site
  455. #define DEFAULT_CONFIG_RecursiveInlineDepthMax (8) // Maximum inline depth for recursive calls
  456. #define DEFAULT_CONFIG_RecursiveInlineDepthMin (2) // Minimum inline depth for recursive call
  457. #define DEFAULT_CONFIG_InlineInLoopBodyScaleDownFactor (4)
  458. #define DEFAULT_CONFIG_StringCacheMissPenalty (10)
  459. #define DEFAULT_CONFIG_StringCacheMissThreshold (-100)
  460. #define DEFAULT_CONFIG_StringCacheMissReset (-5000)
  461. #define DEFAULT_CONFIG_CloneInlinedPolymorphicCaches (true)
  462. #define DEFAULT_CONFIG_HighPrecisionDate (false)
  463. #define DEFAULT_CONFIG_ForceOldDateAPI (false)
  464. #define DEFAULT_CONFIG_Loop (1)
  465. #define DEFAULT_CONFIG_ForceDiagnosticsMode (false)
  466. #define DEFAULT_CONFIG_EnableJitInDiagMode (true)
  467. #define DEFAULT_CONFIG_UseFullName (true)
  468. #define DEFAULT_CONFIG_EnableContinueAfterExceptionWrappersForHelpers (true)
  469. #define DEFAULT_CONFIG_EnableContinueAfterExceptionWrappersForBuiltIns (true)
  470. #define DEFAULT_CONFIG_EnableFunctionSourceReportForHeapEnum (true)
  471. #define DEFAULT_CONFIG_LoopInterpretCount (150)
  472. #define DEFAULT_CONFIG_LoopProfileIterations (25)
  473. #define DEFAULT_CONFIG_JitLoopBodyHotLoopThreshold (20000)
  474. #define DEFAULT_CONFIG_LoopBodySizeThresholdToDisableOpts (255)
  475. #define DEFAULT_CONFIG_MaxJitThreadCount (2)
  476. #define DEFAULT_CONFIG_ForceMaxJitThreadCount (false)
  477. #ifdef RECYCLER_PAGE_HEAP
  478. #define DEFAULT_CONFIG_PageHeap ((Js::Number) PageHeapMode::PageHeapModeOff)
  479. #define DEFAULT_CONFIG_PageHeapAllocStack (false)
  480. #define DEFAULT_CONFIG_PageHeapFreeStack (false)
  481. #define DEFAULT_CONFIG_PageHeapBlockType ((Js::Number) PageHeapBlockTypeFilter::PageHeapBlockTypeFilterAll)
  482. #endif
  483. #define DEFAULT_CONFIG_LowMemoryCap (0xB900000) // 185 MB - based on memory cap for process on low-capacity device
  484. #define DEFAULT_CONFIG_NewPagesCapDuringBGSweeping (15000)
  485. #define DEFAULT_CONFIG_MaxCodeFill (500)
  486. #define DEFAULT_CONFIG_MaxLoopsPerFunction (10)
  487. #define DEFAULT_CONFIG_NopFrequency (8)
  488. #define DEFAULT_CONFIG_SpeculationCap (1) // Needs to be 1 and not 0 since the compiler complains about a condition being always false
  489. #define DEFAULT_CONFIG_ProfileBasedSpeculationCap (1600)
  490. #define DEFAULT_CONFIG_Verbose (false)
  491. #define DEFAULT_CONFIG_ForceStrictMode (false)
  492. #define DEFAULT_CONFIG_EnableEvalMapCleanup (true)
  493. #define DEFAULT_CONFIG_ExpirableCollectionGCCount (5) // Number of GCs during which entry point profiling occurs
  494. #define DEFAULT_CONFIG_ExpirableCollectionTriggerThreshold (50) // Threshold at which Entry Point Collection is triggered
  495. #define DEFAULT_CONFIG_RegexTracing (false)
  496. #define DEFAULT_CONFIG_RegexProfile (false)
  497. #define DEFAULT_CONFIG_RegexDebug (false)
  498. #define DEFAULT_CONFIG_RegexOptimize (true)
  499. #define DEFAULT_CONFIG_DynamicRegexMruListSize (16)
  500. #define DEFAULT_CONFIG_GoptCleanupThreshold (25)
  501. #define DEFAULT_CONFIG_AsmGoptCleanupThreshold (500)
  502. #define DEFAULT_CONFIG_OptimizeForManyInstances (false)
  503. #define DEFAULT_CONFIG_EnableArrayTypeMutation (false)
  504. #define DEFAULT_CONFIG_DeferParseThreshold (4 * 1024) // Unit is number of characters
  505. #define DEFAULT_CONFIG_ProfileBasedDeferParseThreshold (100) // Unit is number of characters
  506. #define DEFAULT_CONFIG_ProfileBasedSpeculativeJit (true)
  507. #define DEFAULT_CONFIG_WininetProfileCache (true)
  508. #define DEFAULT_CONFIG_MinProfileCacheSize (5) // Minimum number of functions before profile is saved.
  509. #define DEFAULT_CONFIG_ProfileDifferencePercent (15) // If 15% of the functions have different profile we will trigger a save.
  510. #define DEFAULT_CONFIG_Intl (true)
  511. #define DEFAULT_CONFIG_IntlBuiltIns (true)
  512. // ES6 DEFAULT BEHAVIOR
  513. #define DEFAULT_CONFIG_ES6 (true) // master flag to gate all P0-spec-test compliant ES6 features
  514. //CollectGarbage is legacy IE specific global function disabled in Microsoft Edge.
  515. #define DEFAULT_CONFIG_CollectGarbage (false)
  516. // ES6 sub-feature gate - to enable-disable ES6 sub-feature when ES6 flag is enabled
  517. #define DEFAULT_CONFIG_ES6Species (true)
  518. #define DEFAULT_CONFIG_ES6Classes (true)
  519. #define DEFAULT_CONFIG_ES6DateParseFix (true)
  520. #define DEFAULT_CONFIG_ES6DefaultArgs (true)
  521. #define DEFAULT_CONFIG_ES6Destructuring (true)
  522. #define DEFAULT_CONFIG_ES6ForLoopSemantics (true)
  523. #define DEFAULT_CONFIG_ES6FunctionName (true)
  524. #ifdef COMPILE_DISABLE_ES6FunctionNameFull
  525. // If ES6FunctionNameFull needs to be disabled by compile flag, COMPILE_DISABLE_ES6FunctionNameFull should be false
  526. #define DEFAULT_CONFIG_ES6FunctionNameFull (false)
  527. #else
  528. #define DEFAULT_CONFIG_ES6FunctionNameFull (false)
  529. #endif
  530. #define DEFAULT_CONFIG_ES6Generators (true)
  531. #define DEFAULT_CONFIG_ES6IsConcatSpreadable (true)
  532. #define DEFAULT_CONFIG_ES6Math (true)
  533. #ifdef COMPILE_DISABLE_ES6Module
  534. // If ES6Module needs to be disabled by compile flag, DEFAULT_CONFIG_ES6Module should be false
  535. #define DEFAULT_CONFIG_ES6Module (false)
  536. #else
  537. #define DEFAULT_CONFIG_ES6Module (true)
  538. #endif
  539. #define DEFAULT_CONFIG_ES6Object (true)
  540. #define DEFAULT_CONFIG_ES6Number (true)
  541. #define DEFAULT_CONFIG_ES6ObjectLiterals (true)
  542. #define DEFAULT_CONFIG_ES6Promise (true)
  543. #define DEFAULT_CONFIG_ES6Proxy (true)
  544. #define DEFAULT_CONFIG_ES6Rest (true)
  545. #define DEFAULT_CONFIG_ES6Spread (true)
  546. #define DEFAULT_CONFIG_ES6String (true)
  547. #define DEFAULT_CONFIG_ES6StringPrototypeFixes (true)
  548. #ifdef COMPILE_DISABLE_ES6PrototypeChain
  549. // If ES6PrototypeChain needs to be disabled by compile flag, DEFAULT_CONFIG_ES6PrototypeChain should be false
  550. #define DEFAULT_CONFIG_ES6PrototypeChain (false)
  551. #else
  552. #define DEFAULT_CONFIG_ES6PrototypeChain (false)
  553. #endif
  554. #define DEFAULT_CONFIG_ES6ToPrimitive (true)
  555. #define DEFAULT_CONFIG_ES6ToLength (true)
  556. #define DEFAULT_CONFIG_ES6ToStringTag (true)
  557. #define DEFAULT_CONFIG_ES6Unicode (true)
  558. #define DEFAULT_CONFIG_ES6UnicodeVerbose (true)
  559. #define DEFAULT_CONFIG_ES6Unscopables (true)
  560. #define DEFAULT_CONFIG_ES6RegExSticky (true)
  561. #ifdef COMPILE_DISABLE_ES6RegExPrototypeProperties
  562. // If ES6RegExPrototypeProperties needs to be disabled by compile flag, DEFAULT_CONFIG_ES6RegExPrototypeProperties should be false
  563. #define DEFAULT_CONFIG_ES6RegExPrototypeProperties (false)
  564. #else
  565. #define DEFAULT_CONFIG_ES6RegExPrototypeProperties (false)
  566. #endif
  567. #ifdef COMPILE_DISABLE_ES6RegExSymbols
  568. // If ES6RegExSymbols needs to be disabled by compile flag, DEFAULT_CONFIG_ES6RegExSymbols should be false
  569. #define DEFAULT_CONFIG_ES6RegExSymbols (false)
  570. #else
  571. #define DEFAULT_CONFIG_ES6RegExSymbols (false)
  572. #endif
  573. #define DEFAULT_CONFIG_ES6HasInstance (true)
  574. #ifdef COMPILE_DISABLE_ArrayBufferTransfer
  575. // If ArrayBufferTransfer needs to be disabled by compile flag, DEFAULT_CONFIG_ArrayBufferTransfer should be false
  576. #define DEFAULT_CONFIG_ArrayBufferTransfer (false)
  577. #else
  578. #define DEFAULT_CONFIG_ArrayBufferTransfer (false)
  579. #endif
  580. #define DEFAULT_CONFIG_ES7AsyncAwait (true)
  581. #define DEFAULT_CONFIG_ES7ExponentionOperator (true)
  582. #define DEFAULT_CONFIG_ES7TrailingComma (true)
  583. #define DEFAULT_CONFIG_ES7ValuesEntries (true)
  584. #define DEFAULT_CONFIG_ESObjectGetOwnPropertyDescriptors (true)
  585. #define DEFAULT_CONFIG_ESSharedArrayBuffer (true)
  586. #define DEFAULT_CONFIG_ES6Verbose (false)
  587. #define DEFAULT_CONFIG_ES6All (false)
  588. // ES6 DEFAULT BEHAVIOR
  589. #define DEFAULT_CONFIG_AsyncDebugging (true)
  590. #define DEFAULT_CONFIG_TraceAsyncDebugCalls (false)
  591. #define DEFAULT_CONFIG_ForcePostLowerGlobOptInstrString (false)
  592. #define DEFAULT_CONFIG_EnumerateSpecialPropertiesInDebugger (true)
  593. #endif
  594. #define DEFAULT_CONFIG_MaxJITFunctionBytecodeByteLength (4800000)
  595. #define DEFAULT_CONFIG_MaxJITFunctionBytecodeCount (120000)
  596. #define DEFAULT_CONFIG_JitQueueThreshold (6)
  597. #define DEFAULT_CONFIG_FullJitRequeueThreshold (25) // Minimum number of times a function needs to be executed before it is re-added to the jit queue
  598. #define DEFAULT_CONFIG_MinTemplatizedJitRunCount (100) // Minimum number of times a function needs to be interpreted before it is jitted
  599. #define DEFAULT_CONFIG_MinAsmJsInterpreterRunCount (10) // Minimum number of times a function needs to be Asm interpreted before it is jitted
  600. #define DEFAULT_CONFIG_MinTemplatizedJitLoopRunCount (500) // Minimum number of times a function needs to be interpreted before it is jitted
  601. #define DEFAULT_CONFIG_MaxTemplatizedJitRunCount (-1) // Maximum number of times a function can be TJ before it is jitted
  602. #define DEFAULT_CONFIG_MaxAsmJsInterpreterRunCount (-1) // Maximum number of times a function can be Asm interpreted before it is jitted
  603. // Note: The following defaults only apply when the NewSimpleJit is on. The defaults for when it's off are computed in
  604. // ConfigFlagsTable::TranslateFlagConfiguration.
  605. #define DEFAULT_CONFIG_AutoProfilingInterpreter0Limit (12)
  606. #define DEFAULT_CONFIG_ProfilingInterpreter0Limit (4)
  607. #define DEFAULT_CONFIG_AutoProfilingInterpreter1Limit (0)
  608. #define DEFAULT_CONFIG_SimpleJitLimit (132)
  609. #define DEFAULT_CONFIG_ProfilingInterpreter1Limit (12)
  610. // These are used to compute the above defaults for when NewSimpleJit is off
  611. #define DEFAULT_CONFIG_AutoProfilingInterpreterLimit_OldSimpleJit (80)
  612. #define DEFAULT_CONFIG_SimpleJitLimit_OldSimpleJit (25)
  613. #define DEFAULT_CONFIG_MinProfileIterations (16)
  614. #define DEFAULT_CONFIG_MinProfileIterations_OldSimpleJit (25)
  615. #define DEFAULT_CONFIG_MinSimpleJitIterations (16)
  616. #define DEFAULT_CONFIG_NewSimpleJit (false)
  617. #define DEFAULT_CONFIG_MaxLinearIntCaseCount (3) // Maximum number of cases (in switch statement) for which instructions can be generated linearly.
  618. #define DEFAULT_CONFIG_MaxSingleCharStrJumpTableRatio (2) // Maximum single char string jump table size as multiples of the actual case arm
  619. #define DEFAULT_CONFIG_MaxSingleCharStrJumpTableSize (128) // Maximum single char string jump table size
  620. #define DEFAULT_CONFIG_MinSwitchJumpTableSize (9) // Minimum number of case target entries in the jump table(this may also include values that are missing in the consecutive set of integer case arms)
  621. #define DEFAULT_CONFIG_SwitchOptHolesThreshold (50) // Maximum percentage of holes (missing case values in a switch statement) with which a jump table can be created
  622. #define DEFAULT_CONFIG_MaxLinearStringCaseCount (4) // Maximum number of String cases (in switch statement) for which instructions can be generated linearly.
  623. #define DEFAULT_CONFIG_MinDeferredFuncTokenCount (20) // Minimum size in tokens of a defer-parsed function
  624. #if DBG
  625. #define DEFAULT_CONFIG_SkipFuncCountForBailOnNoProfile (0) //Initial Number of functions in a func body to be skipped from forcibly inserting BailOnNoProfile.
  626. #endif
  627. #define DEFAULT_CONFIG_BailOnNoProfileLimit 200 // The limit of bailout on no profile info before triggering a rejit
  628. #define DEFAULT_CONFIG_BailOnNoProfileRejitLimit (50) // The limit of bailout on no profile info before disable all the no profile bailouts
  629. #define DEFAULT_CONFIG_CallsToBailoutsRatioForRejit 10 // Ratio of function calls to bailouts above which a rejit is considered
  630. #define DEFAULT_CONFIG_LoopIterationsToBailoutsRatioForRejit 50 // Ratio of loop iteration count to bailouts above which a rejit of the loop body is considered
  631. #define DEFAULT_CONFIG_MinBailOutsBeforeRejit 2 // Minimum number of bailouts for a single bailout record after which a rejit is considered
  632. #define DEFAULT_CONFIG_MinBailOutsBeforeRejitForLoops 2 // Minimum number of bailouts for a single bailout record after which a rejit is considered
  633. #define DEFAULT_CONFIG_RejitMaxBailOutCount 500 // Maximum number of bailouts for a single bailout record after which rejit is forced.
  634. #define DEFAULT_CONFIG_Sse (-1)
  635. #define DEFAULT_CONFIG_DeletedPropertyReuseThreshold (32)
  636. #define DEFAULT_CONFIG_BigDictionaryTypeHandlerThreshold (0xffff)
  637. #define DEFAULT_CONFIG_ForceStringKeyedSimpleDictionaryTypeHandler (false)
  638. #define DEFAULT_CONFIG_TypeSnapshotEnumeration (true)
  639. #define DEFAULT_CONFIG_EnumerationCompat (false)
  640. #define DEFAULT_CONFIG_ConcurrentRuntime (false)
  641. #define DEFAULT_CONFIG_PrimeRecycler (false)
  642. #if defined(_WIN32)
  643. #define DEFAULT_CONFIG_PrivateHeap (true)
  644. #else // defined(_WIN32)
  645. // Don't use PrivateHeap on xplat where we statically link and override new/delete
  646. #define DEFAULT_CONFIG_PrivateHeap (false)
  647. #endif // defined(_WIN32)
  648. #define DEFAULT_CONFIG_DisableRentalThreading (false)
  649. #define DEFAULT_CONFIG_DisableDebugObject (false)
  650. #define DEFAULT_CONFIG_DumpHeap (false)
  651. #define DEFAULT_CONFIG_PerfHintLevel (1)
  652. #define DEFAULT_CONFIG_OOPJITMissingOpts (true)
  653. #define DEFAULT_CONFIG_OOPCFGRegistration (true)
  654. #define DEFAULT_CONFIG_ForceJITCFGCheck (false)
  655. #define DEFAULT_CONFIG_UseJITTrampoline (true)
  656. #define DEFAULT_CONFIG_FailFastIfDisconnectedDelegate (false)
  657. #define DEFAULT_CONFIG_IsolatePrototypes (true)
  658. #define DEFAULT_CONFIG_ChangeTypeOnProto (true)
  659. #define DEFAULT_CONFIG_FixPropsOnPathTypes (true)
  660. #define DEFAULT_CONFIG_BailoutTraceFilter (-1)
  661. #define DEFAULT_CONFIG_TempMin (0)
  662. #define DEFAULT_CONFIG_TempMax (INT_MAX)
  663. #define DEFAULT_CONFIG_LibraryStackFrame (true)
  664. #define DEFAULT_CONFIG_LibraryStackFrameDebugger (false)
  665. #define DEFAULT_CONFIG_FuncObjectInlineCacheThreshold (2) // Maximum number of inline caches a function body may have to allow for inline caches to be allocated on the function object.
  666. #define DEFAULT_CONFIG_ShareInlineCaches (true)
  667. #define DEFAULT_CONFIG_InlineCacheInvalidationListCompactionThreshold (4)
  668. #define DEFAULT_CONFIG_ConstructorCacheInvalidationThreshold (500)
  669. #define DEFAULT_CONFIG_InMemoryTrace (false)
  670. #define DEFAULT_CONFIG_InMemoryTraceBufferSize (1024)
  671. #define DEFAULT_CONFIG_RichTraceFormat (false)
  672. #define DEFAULT_CONFIG_TraceWithStack (false)
  673. #define DEFAULT_CONFIG_InjectPartiallyInitializedInterpreterFrameError (0)
  674. #define DEFAULT_CONFIG_InjectPartiallyInitializedInterpreterFrameErrorType (0)
  675. #define DEFAULT_CONFIG_InvalidateSolutionContextsForGetStructure (true)
  676. #define DEFAULT_CONFIG_DeferLoadingAvailableSource (false)
  677. #ifdef ENABLE_PROJECTION
  678. #define DEFAULT_CONFIG_NoWinRTFastSig (false)
  679. #define DEFAULT_CONFIG_TargetWinRTVersion (1)
  680. #define DEFAULT_CONFIG_WinRTDelegateInterfaces (false)
  681. #define DEFAULT_CONFIG_WinRTAdaptiveApps (true)
  682. #endif
  683. #define DEFAULT_CONFIG_RecyclerForceMarkInterior (false)
  684. #define DEFAULT_CONFIG_MemProtectHeap (false)
  685. #define DEFAULT_CONFIG_InduceCodeGenFailure (30) // When -InduceCodeGenFailure is passed in, 30% of JIT allocations will fail
  686. #define DEFAULT_CONFIG_SkipSplitWhenResultIgnored (false)
  687. #define DEFAULT_CONFIG_MinMemOpCount (16U)
  688. #if ENABLE_COPYONACCESS_ARRAY
  689. #define DEFAULT_CONFIG_MaxCopyOnAccessArrayLength (32U)
  690. #define DEFAULT_CONFIG_MinCopyOnAccessArrayLength (5U)
  691. #define DEFAULT_CONFIG_CopyOnAccessArraySegmentCacheSize (16U)
  692. #endif
  693. #if defined(_M_IX86) || defined(_M_X64)
  694. #define DEFAULT_CONFIG_LoopAlignNopLimit (6)
  695. #endif
  696. #if defined(_M_IX86) || defined(_M_X64)
  697. #define DEFAULT_CONFIG_ZeroMemoryWithNonTemporalStore (true)
  698. #endif
  699. #define DEFAULT_CONFIG_StrictWriteBarrierCheck (false)
  700. #define DEFAULT_CONFIG_KeepRecyclerTrackData (false)
  701. #define DEFAULT_CONFIG_EnableBGFreeZero (true)
  702. #if !GLOBAL_ENABLE_WRITE_BARRIER
  703. #define DEFAULT_CONFIG_ForceSoftwareWriteBarrier (false)
  704. #else
  705. #define DEFAULT_CONFIG_ForceSoftwareWriteBarrier (true)
  706. #endif
  707. #define DEFAULT_CONFIG_WriteBarrierTest (false)
  708. #define DEFAULT_CONFIG_VerifyBarrierBit (false)
  709. #define TraceLevel_Error (1)
  710. #define TraceLevel_Warning (2)
  711. #define TraceLevel_Info (3)
  712. #define TEMP_ENABLE_FLAG_FOR_APPX_BETA_ONLY 1
  713. #define INMEMORY_CACHE_MAX_URL (5) // This is the max number of URLs that the in-memory profile cache can hold.
  714. #define INMEMORY_CACHE_MAX_PROFILE_MANAGER (50) // This is the max number of dynamic scripts that the in-memory profile cache can have
  715. #ifdef SUPPORT_INTRUSIVE_TESTTRACES
  716. #define INTRUSIVE_TESTTRACE_PolymorphicInlineCache (1)
  717. #endif
  718. //
  719. //FLAG(type, name, description, defaultValue)
  720. //
  721. // types:
  722. // String
  723. // Phases
  724. // Number
  725. // Boolean
  726. //
  727. // If the default value is not required it should be left empty
  728. // For Phases, there is no default value. it should always be empty
  729. // Default values for stings must be prefixed with 'L'. See AsmDumpMode
  730. // Scroll till the extreme right to see the default values
  731. #if defined(FLAG) || defined(FLAG_REGOVR_EXP)
  732. #ifndef FLAG
  733. #define FLAG(...)
  734. #endif
  735. #ifndef FLAG_REGOVR_ASMJS
  736. #define FLAG_REGOVR_ASMJS FLAG
  737. #endif
  738. #ifndef FLAG_REGOVR_EXP
  739. #define FLAG_REGOVR_EXP FLAG
  740. #endif
  741. // NON-RELEASE FLAGS
  742. #ifdef ENABLE_DEBUG_CONFIG_OPTIONS
  743. // Regular FLAG
  744. #define FLAGNR(Type, Name, String, Default) FLAG(Type, Name, String, Default, NoParent, FALSE)
  745. // Regular flag with acronym
  746. #ifndef FLAGNRA
  747. #define FLAGNRA(Type, Name, Acronym, String, Default) \
  748. FLAGNR(Type, Name, String, Default) \
  749. FLAGNR(Type, Acronym, String, Default)
  750. #endif
  751. // Child FLAG with PARENT FLAG
  752. #define FLAGPNR(Type, ParentName, Name, String, Default) FLAG(Type, Name, String, Default, ParentName, FALSE)
  753. // Regular FLAG with callback function
  754. #define FLAGNRC(Type, Name, String, Default) FLAG(Type, Name, String, Default, NoParent, TRUE)
  755. #else
  756. #define FLAGNR(Type, Name, String, Default)
  757. #ifdef FLAGNRA
  758. #undef FLAGNRA
  759. #endif
  760. #define FLAGNRA(Type, Name, Acronym, String, Default)
  761. #define FLAGPNR(Type, ParentName, Name, String, Default)
  762. #define FLAGNRC(Type, Name, String, Default)
  763. #endif
  764. // RELEASE FLAGS
  765. #define FLAGPR(Type, ParentName, Name, String, Default) FLAG(Type, Name, String, Default, ParentName, FALSE)
  766. #define FLAGR(Type, Name, String, Default) FLAG(Type, Name, String, Default, NoParent, FALSE)
  767. // Release flags with parent and acronym
  768. #ifndef FLAGPRA
  769. #define FLAGPRA(Type, ParentName, Name, Acronym, String, Default) \
  770. FLAG_REGOVR_EXP(Type, Name, String, Default, ParentName, FALSE) \
  771. FLAGNR(Type, Acronym, String, Default)
  772. #endif
  773. // RELEASE FLAGS WITH REGISTRY OVERRIDE
  774. #define FLAGPR_REGOVR_ASMJS(Type, ParentName, Name, String, Default) FLAG_REGOVR_ASMJS(Type, Name, String, Default, ParentName, FALSE)
  775. #define FLAGPR_REGOVR_EXP(Type, ParentName, Name, String, Default) FLAG_REGOVR_EXP(Type, Name, String, Default, ParentName, FALSE)
  776. // Release flag with non-release acronym
  777. #ifndef FLAGRA
  778. #define FLAGRA(Type, Name, Acronym, String, Default) \
  779. FLAGR(Type, Name, String, Default) \
  780. FLAGNR(Type, Acronym, String, Default)
  781. #endif
  782. // Please keep this list alphabetically sorted
  783. #if DBG
  784. FLAGNR(Boolean, ArrayValidate , "Validate each array for valid elements (default: false)", false)
  785. FLAGNR(Boolean, MemOpMissingValueValidate, "Validate Missing Value Tracking on memset/memcopy", false)
  786. FLAGNR(Boolean, OOPJITFixupValidate, "Validate that all entries in fixup list are allocated as NativeCodeData and that all NativeCodeData gets fixed up", false)
  787. #endif
  788. #ifdef ARENA_MEMORY_VERIFY
  789. FLAGNR(Boolean, ArenaNoFreeList , "Do not free list in arena", false)
  790. FLAGNR(Boolean, ArenaNoPageReuse , "Do not reuse page in arena", false)
  791. FLAGNR(Boolean, ArenaUseHeapAlloc , "Arena use heap to allocate memory instead of page allocator", false)
  792. #endif
  793. FLAGNR(Boolean, ValidateInlineStack, "Does a stack walk on helper calls to validate inline stack is correctly restored", false)
  794. FLAGNR(Boolean, AsmDiff , "Dump the IR without memory locations and varying parameters.", false)
  795. FLAGNR(String, AsmDumpMode , "Dump the final assembly to a file without memory locations and varying parameters\n\t\t\t\t\tThe 'filename' is the file where the assembly will be dumped. Dump to console if no file is specified", nullptr)
  796. FLAGR (Boolean, Asmjs , "Enable Asmjs", DEFAULT_CONFIG_ASMJS)
  797. FLAGNR(Boolean, AsmJsStopOnError , "Stop execution on any AsmJs validation errors", DEFAULT_CONFIG_AsmJsStopOnError)
  798. FLAGNR(Boolean, AsmJsEdge , "Enable asm.js features which may have backward incompatible changes or not validate on old demos", DEFAULT_CONFIG_AsmJsEdge)
  799. FLAGNR(Boolean, Wasm , "Enable WebAssembly", DEFAULT_CONFIG_Wasm)
  800. FLAGNR(Boolean, WasmI64 , "Enable Int64 testing for WebAssembly. ArgIns can be [number,string,{low:number,high:number}]. Return values will be {low:number,high:number}", DEFAULT_CONFIG_WasmI64)
  801. FLAGNR(Boolean, WasmFastArray , "Enable fast array implementation for WebAssembly", DEFAULT_CONFIG_WasmFastArray)
  802. FLAGNR(Boolean, WasmMathExFilter , "Enable Math exception filter for WebAssembly", DEFAULT_CONFIG_WasmMathExFilter)
  803. FLAGNR(Boolean, WasmCheckVersion , "Check the binary version for WebAssembly", DEFAULT_CONFIG_WasmCheckVersion)
  804. FLAGNR(Boolean, WasmFold , "Enable i32/i64 const folding", DEFAULT_CONFIG_WasmFold)
  805. FLAGNR(Boolean, WasmIgnoreResponse , "Ignore the type of the Response object", DEFAULT_CONFIG_WasmIgnoreResponse)
  806. FLAGNR(Number, WasmMaxTableSize , "Maximum size allowed to the WebAssembly.Table", DEFAULT_CONFIG_WasmMaxTableSize)
  807. #ifdef ENABLE_SIMDJS
  808. #ifndef COMPILE_DISABLE_Simdjs
  809. #define COMPILE_DISABLE_Simdjs 0
  810. #endif
  811. FLAGPR_REGOVR_EXP(Boolean, ES6, Simdjs, "Enable Simdjs", DEFAULT_CONFIG_SIMDJS)
  812. FLAGR(Boolean, Simd128TypeSpec, "Enable type-specialization of Simd128 symbols", false)
  813. #endif // #ifdef ENABLE_SIMDJS
  814. FLAGNR(Boolean, AssertBreak , "Debug break on assert", false)
  815. FLAGNR(Boolean, AssertPopUp , "Pop up asserts (default: false)", false)
  816. FLAGNR(Boolean, AssertIgnore , "Ignores asserts if set", false)
  817. FLAGNR(Boolean, AsyncDebugging, "Enable async debugging feature (default: false)", DEFAULT_CONFIG_AsyncDebugging)
  818. FLAGNR(Number, BailOnNoProfileLimit, "The limit of bailout on no profile info before triggering a rejit", DEFAULT_CONFIG_BailOnNoProfileLimit)
  819. FLAGNR(Number, BailOnNoProfileRejitLimit, "The limit of bailout on no profile info before we disable the bailouts", DEFAULT_CONFIG_BailOnNoProfileRejitLimit)
  820. FLAGNR(Boolean, BaselineMode , "Dump only stable content that can be used for baseline comparison", false)
  821. FLAGNR(String, DumpOnCrash , "generate heap dump on asserts or unhandled exception if set", nullptr)
  822. FLAGNR(String, FullMemoryDump , "Will perform a full memory dump when -DumpOnCrash is supplied.", nullptr)
  823. #ifdef BAILOUT_INJECTION
  824. FLAGR (NumberPairSet, BailOut , "Source location to insert BailOut", )
  825. FLAGNR(Boolean, BailOutAtEveryLine , "Inserts BailOut at every line of source (default: false)", false)
  826. FLAGNR(Boolean, BailOutAtEveryByteCode, "Inserts BailOut at every Byte code (default: false)", false)
  827. FLAGNR(Boolean, BailOutAtEveryImplicitCall, "Force generating implicit call bailout even when we don't need it", false)
  828. FLAGR (NumberSet, BailOutByteCode , "Byte code location to insert BailOut. Use with -prejit only", )
  829. #endif
  830. FLAGNR(Boolean, Benchmark , "Disable security code which introduce variability in benchmarks", false)
  831. FLAGR (Boolean, BgJit , "Background JIT. Disable to force heuristic-based foreground JITting. (default: true)", true)
  832. FLAGNR(Number, BgJitDelay , "Delay to wait for speculative jitting before starting script execution", DEFAULT_CONFIG_BgJitDelay)
  833. FLAGNR(Number, BgJitDelayFgBuffer , "When speculatively jitting in the foreground thread, do so for (BgJitDelay - BgJitDelayBuffer) milliseconds", DEFAULT_CONFIG_BgJitDelayFgBuffer)
  834. FLAGNR(Number, BgJitPendingFuncCap , "Disable delay if pending function count larger then cap", DEFAULT_CONFIG_BgJitPendingFuncCap)
  835. FLAGNR(Boolean, CreateFunctionProxy , "Create function proxies instead of full function bodies", DEFAULT_CONFIG_CreateFunctionProxy)
  836. FLAGNR(Boolean, HybridFgJit , "When background JIT is enabled, enable jitting in the foreground based on heuristics. This flag is only effective when OptimizeForManyInstances is disabled (UI threads).", DEFAULT_CONFIG_HybridFgJit)
  837. FLAGNR(Number, HybridFgJitBgQueueLengthThreshold, "The background job queue length must exceed this threshold to consider jitting in the foreground", DEFAULT_CONFIG_HybridFgJitBgQueueLengthThreshold)
  838. FLAGNR(Boolean, BytecodeHist , "Provide a histogram of the bytecodes run by the script. (NoNative required).", false)
  839. FLAGNR(Boolean, CurrentSourceInfo , "Enable IASD get current script source info", DEFAULT_CONFIG_CurrentSourceInfo)
  840. FLAGNR(Boolean, CFGLog , "Log CFG checks", false)
  841. FLAGNR(Boolean, CheckAlignment , "Insert checks in the native code to verify 8-byte alignment of stack", false)
  842. FLAGNR(Boolean, CheckEmitBufferPermissions, "Check JIT code buffers at commit and decommit time to ensure no PAGE_EXECUTE_READWRITE pages.", false)
  843. #ifdef CHECK_MEMORY_LEAK
  844. FLAGR (Boolean, CheckMemoryLeak , "Check for heap memory leak", false)
  845. FLAGR (String, DumpOnLeak , "Create a dump on failed memory leak check", nullptr)
  846. #endif
  847. FLAGNR(Boolean, CheckOpHelpers , "Verify opHelper labels in the JIT are set properly", false)
  848. FLAGNR(Boolean, CloneInlinedPolymorphicCaches, "Clones polymorphic inline caches in inlined functions", DEFAULT_CONFIG_CloneInlinedPolymorphicCaches)
  849. FLAGNR(Boolean, ConcurrentRuntime , "Enable Concurrent GC and background JIT when creating runtime", DEFAULT_CONFIG_ConcurrentRuntime)
  850. #if CONFIG_CONSOLE_AVAILABLE
  851. FLAGNR(Boolean, Console , "Create console window in GUI app", false)
  852. FLAGNR(Boolean, ConsoleExitPause , "Pause on exit when a console window is created in GUI app", false)
  853. #endif
  854. FLAGNR(Number, ConstructorInlineThreshold , "Maximum size in bytecodes of a constructor inline candidate with monomorphic field access", DEFAULT_CONFIG_ConstructorInlineThreshold)
  855. FLAGNR(Number, ConstructorCallsRequiredToFinalizeCachedType, "Number of calls to a constructor required before the type cached in the constructor cache is finalized", DEFAULT_CONFIG_ConstructorCallsRequiredToFinalizeCachedType)
  856. FLAGNR(Number, StringCacheMissPenalty, "Number of string cache hits per miss needed to be worth using cache", DEFAULT_CONFIG_StringCacheMissPenalty)
  857. FLAGNR(Number, StringCacheMissThreshold, "Point at which we disable string property cache", DEFAULT_CONFIG_StringCacheMissThreshold)
  858. FLAGNR(Number, StringCacheMissReset, "Point at which we try to start using string cache after giving up", DEFAULT_CONFIG_StringCacheMissReset)
  859. #ifdef SECURITY_TESTING
  860. FLAGNR(Boolean, CrashOnException , "Removes the top-level exception handler, allowing jc.exe to crash on an unhandled exception. No effect on IE. (default: false)", false)
  861. #endif
  862. FLAGNR(Boolean, Debug , "Disable phases (layout, security code, etc) which makes JIT output harder to debug", false)
  863. FLAGNR(NumberSet, DebugBreak , "Index of the function where you want to break", )
  864. FLAGNR(NumberTrioSet, StatementDebugBreak, "Index of the statement where you want to break", )
  865. FLAGNR(Phases, DebugBreakOnPhaseBegin, "Break into debugger at the beginning of given phase for listed function", )
  866. FLAGNR(Boolean, DebugWindow , "Send console output to debugger window", false)
  867. FLAGNR(Boolean, DeferNested , "Enable deferred parsing of nested function", DEFAULT_CONFIG_DeferNested)
  868. FLAGNR(Boolean, DeferTopLevelTillFirstCall , "Enable tracking of deferred top level functions in a script file, until the first function of the script context is parsed.", DEFAULT_CONFIG_DeferTopLevelTillFirstCall)
  869. FLAGNR(Number, DeferParse , "Minimum size of defer-parsed script (non-zero only: use /nodeferparse do disable", 0)
  870. FLAGNR(Boolean, DirectCallTelemetryStats, "Enables logging stats for direct call telemetry", DEFAULT_CONFIG_DirectCallTelemetryStats)
  871. FLAGNR(Boolean, DisableArrayBTree , "Disable creation of BTree for Arrays", false)
  872. FLAGNR(Boolean, DisableRentalThreading, "Disable rental threading when creating runtime", DEFAULT_CONFIG_DisableRentalThreading)
  873. FLAGNR(Boolean, DisableVTuneSourceLineInfo, "Disable VTune Source line info for Dynamic JITted code", false)
  874. FLAGNR(Boolean, DisplayMemStats, "Display memory usage statistics", false)
  875. FLAGNR(Phases, Dump , "What All to dump", )
  876. #ifdef DUMP_FRAGMENTATION_STATS
  877. FLAGR (Boolean, DumpFragmentationStats, "Dump bucket state after every GC", false)
  878. #endif
  879. FLAGNR(Boolean, DumpIRAddresses, "Print addresses in IR dumps", false)
  880. FLAGNR(Boolean, DumpLineNoInColor, "Print the source code in high intensity color for better readability", false)
  881. #ifdef RECYCLER_DUMP_OBJECT_GRAPH
  882. FLAGR (Boolean, DumpObjectGraphOnExit , "Dump object graph on recycler destructor", false)
  883. FLAGR (Boolean, DumpObjectGraphOnCollect, "Dump object graph on recycler destructor", false)
  884. #endif
  885. FLAGNR(Boolean, DumpEvalStringOnRemoval, "Dumps an eval string when its being removed from the eval map", false)
  886. FLAGNR(Boolean, DumpObjectGraphOnEnum, "Dump object graph on recycler heap enumeration", false)
  887. #ifdef DYNAMIC_PROFILE_STORAGE
  888. FLAGNRA(String, DynamicProfileCache , Dpc, "File to cache dynamic profile information", nullptr)
  889. FLAGNR(String, DynamicProfileCacheDir, "Directory to cache dynamic profile information", nullptr)
  890. FLAGNRA(String, DynamicProfileInput , Dpi, "Read only file containing dynamic profile information", nullptr)
  891. #endif
  892. #ifdef EDIT_AND_CONTINUE
  893. FLAGNR(Boolean, EditTest , "Enable edit and continue test tools", false)
  894. #endif
  895. FLAGNR(Boolean, WininetProfileCache, "Use the WININET cache to save the profile information", DEFAULT_CONFIG_WininetProfileCache)
  896. FLAGNR(Boolean, NoDynamicProfileInMemoryCache, "Enable in-memory cache for dynamic sources", false)
  897. FLAGNR(Boolean, ProfileBasedSpeculativeJit, "Enable dynamic profile based speculative JIT", DEFAULT_CONFIG_ProfileBasedSpeculativeJit)
  898. FLAGNR(Number, ProfileBasedSpeculationCap, "In the presence of dynamic profile speculative JIT is capped to this many bytecode instructions", DEFAULT_CONFIG_ProfileBasedSpeculationCap)
  899. #ifdef DYNAMIC_PROFILE_MUTATOR
  900. FLAGNR(String, DynamicProfileMutatorDll , "Path of the mutator DLL", _u("DynamicProfileMutatorImpl.dll"))
  901. 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)
  902. #endif
  903. FLAGNR(Boolean, ExecuteByteCodeBufferReturnsInvalidByteCode, "Serialized byte code execution always returns SCRIPT_E_INVALID_BYTECODE", false)
  904. FLAGR(Number, ExpirableCollectionGCCount, "Number of GCs during which Expirable object profiling occurs", DEFAULT_CONFIG_ExpirableCollectionGCCount)
  905. FLAGR (Number, ExpirableCollectionTriggerThreshold, "Threshold at which Expirable Object Collection is triggered (In Percentage)", DEFAULT_CONFIG_ExpirableCollectionTriggerThreshold)
  906. FLAGR(Boolean, SkipSplitOnNoResult, "If the result of Regex split isn't used, skip executing the regex. (Perf optimization)", DEFAULT_CONFIG_SkipSplitWhenResultIgnored)
  907. #ifdef TEST_ETW_EVENTS
  908. FLAGNR(String, TestEtwDll , "Path of the TestEtwEventSink DLL", nullptr)
  909. #endif
  910. FLAGNR(Boolean, CollectGarbage , "Enable CollectGarbage API", DEFAULT_CONFIG_CollectGarbage)
  911. FLAGR (Boolean, Intl , "Intl object support", DEFAULT_CONFIG_Intl)
  912. FLAGNR(Boolean, IntlBuiltIns , "Intl built-in function support", DEFAULT_CONFIG_IntlBuiltIns)
  913. // ES6 (BLUE+1) features/flags
  914. // Master ES6 flag to enable STABLE ES6 features/flags
  915. FLAGR(Boolean, ES6 , "Enable ES6 stable features", DEFAULT_CONFIG_ES6)
  916. // Master ES6 flag to enable ALL sub ES6 features/flags
  917. FLAGNRC(Boolean, ES6All , "Enable all ES6 features, both stable and unstable", DEFAULT_CONFIG_ES6All)
  918. // Master ES6 flag to enable Threshold ES6 features/flags
  919. FLAGNRC(Boolean, ES6Experimental , "Enable all experimental features", DEFAULT_CONFIG_ES6All)
  920. // Per ES6 feature/flag
  921. FLAGPR (Boolean, ES6, ES6Species , "Enable ES6 '@@species' properties and built-in behaviors" , DEFAULT_CONFIG_ES6Species)
  922. FLAGPR (Boolean, ES6, ES7AsyncAwait , "Enable ES7 'async' and 'await' keywords" , DEFAULT_CONFIG_ES7AsyncAwait)
  923. FLAGPR (Boolean, ES6, ES6Classes , "Enable ES6 'class' and 'extends' keywords" , DEFAULT_CONFIG_ES6Classes)
  924. FLAGPR (Boolean, ES6, ES6DateParseFix , "Enable ES6 Date.parse fixes" , DEFAULT_CONFIG_ES6DateParseFix)
  925. FLAGPR (Boolean, ES6, ES6DefaultArgs , "Enable ES6 Default Arguments" , DEFAULT_CONFIG_ES6DefaultArgs)
  926. FLAGPR (Boolean, ES6, ES6Destructuring , "Enable ES6 Destructuring" , DEFAULT_CONFIG_ES6Destructuring)
  927. FLAGPR (Boolean, ES6, ES6ForLoopSemantics , "Enable ES6 for loop per iteration bindings" , DEFAULT_CONFIG_ES6ForLoopSemantics)
  928. FLAGPR (Boolean, ES6, ES6FunctionName , "Enable ES6 function.name" , DEFAULT_CONFIG_ES6FunctionName)
  929. #ifndef COMPILE_DISABLE_ES6FunctionNameFull
  930. #define COMPILE_DISABLE_ES6FunctionNameFull 0
  931. #endif
  932. FLAGPR_REGOVR_EXP(Boolean, ES6, ES6FunctionNameFull , "Enable ES6 Full function.name" , DEFAULT_CONFIG_ES6FunctionNameFull)
  933. FLAGPR (Boolean, ES6, ES6Generators , "Enable ES6 generators" , DEFAULT_CONFIG_ES6Generators)
  934. FLAGPR (Boolean, ES6, ES7ExponentiationOperator, "Enable ES7 exponentiation operator (**)" , DEFAULT_CONFIG_ES7ExponentionOperator)
  935. FLAGPR (Boolean, ES6, ES7ValuesEntries , "Enable ES7 Object.values and Object.entries" , DEFAULT_CONFIG_ES7ValuesEntries)
  936. FLAGPR (Boolean, ES6, ES7TrailingComma , "Enable ES7 trailing comma in function" , DEFAULT_CONFIG_ES7TrailingComma)
  937. FLAGPR (Boolean, ES6, ES6IsConcatSpreadable , "Enable ES6 isConcatSpreadable Symbol" , DEFAULT_CONFIG_ES6IsConcatSpreadable)
  938. FLAGPR (Boolean, ES6, ES6Math , "Enable ES6 Math extensions" , DEFAULT_CONFIG_ES6Math)
  939. FLAGPR (Boolean, ES6, ES6Module , "Enable ES6 Modules" , DEFAULT_CONFIG_ES6Module)
  940. FLAGPR (Boolean, ES6, ES6Object , "Enable ES6 Object extensions" , DEFAULT_CONFIG_ES6Object)
  941. FLAGPR (Boolean, ES6, ES6Number , "Enable ES6 Number extensions" , DEFAULT_CONFIG_ES6Number)
  942. FLAGPR (Boolean, ES6, ES6ObjectLiterals , "Enable ES6 Object literal extensions" , DEFAULT_CONFIG_ES6ObjectLiterals)
  943. FLAGPR (Boolean, ES6, ES6Promise , "Enable ES6 Promise feature" , DEFAULT_CONFIG_ES6Promise)
  944. FLAGPR (Boolean, ES6, ES6Proxy , "Enable ES6 Proxy feature" , DEFAULT_CONFIG_ES6Proxy)
  945. FLAGPR (Boolean, ES6, ES6Rest , "Enable ES6 Rest parameters" , DEFAULT_CONFIG_ES6Rest)
  946. FLAGPR (Boolean, ES6, ES6Spread , "Enable ES6 Spread support" , DEFAULT_CONFIG_ES6Spread)
  947. FLAGPR (Boolean, ES6, ES6String , "Enable ES6 String extensions" , DEFAULT_CONFIG_ES6String)
  948. FLAGPR (Boolean, ES6, ES6StringPrototypeFixes, "Enable ES6 String.prototype fixes" , DEFAULT_CONFIG_ES6StringPrototypeFixes)
  949. #ifndef COMPILE_DISABLE_ES6PrototypeChain
  950. #define COMPILE_DISABLE_ES6PrototypeChain 0
  951. #endif
  952. FLAGPR_REGOVR_EXP(Boolean, ES6, ES6PrototypeChain , "Enable ES6 prototypes (Example: Date prototype is object)", DEFAULT_CONFIG_ES6PrototypeChain)
  953. FLAGPR (Boolean, ES6, ES6ToPrimitive , "Enable ES6 ToPrimitive symbol" , DEFAULT_CONFIG_ES6ToPrimitive)
  954. FLAGPR (Boolean, ES6, ES6ToLength , "Enable ES6 ToLength fixes" , DEFAULT_CONFIG_ES6ToLength)
  955. FLAGPR (Boolean, ES6, ES6ToStringTag , "Enable ES6 ToStringTag symbol" , DEFAULT_CONFIG_ES6ToStringTag)
  956. FLAGPR (Boolean, ES6, ES6Unicode , "Enable ES6 Unicode 6.0 extensions" , DEFAULT_CONFIG_ES6Unicode)
  957. FLAGPR (Boolean, ES6, ES6UnicodeVerbose , "Enable ES6 Unicode 6.0 verbose failure output" , DEFAULT_CONFIG_ES6UnicodeVerbose)
  958. FLAGPR (Boolean, ES6, ES6Unscopables , "Enable ES6 With Statement Unscopables" , DEFAULT_CONFIG_ES6Unscopables)
  959. FLAGPR (Boolean, ES6, ES6RegExSticky , "Enable ES6 RegEx sticky flag" , DEFAULT_CONFIG_ES6RegExSticky)
  960. #ifndef COMPILE_DISABLE_ES6RegExPrototypeProperties
  961. #define COMPILE_DISABLE_ES6RegExPrototypeProperties 0
  962. #endif
  963. FLAGPR_REGOVR_EXP(Boolean, ES6, ES6RegExPrototypeProperties, "Enable ES6 properties on the RegEx prototype" , DEFAULT_CONFIG_ES6RegExPrototypeProperties)
  964. #ifndef COMPILE_DISABLE_ES6RegExSymbols
  965. #define COMPILE_DISABLE_ES6RegExSymbols 0
  966. #endif
  967. // When we enable ES6RegExSymbols check all String and Regex built-ins which are inlined in JIT and make sure the helper
  968. // sets implicit call flag before calling into script
  969. FLAGPR_REGOVR_EXP(Boolean, ES6, ES6RegExSymbols , "Enable ES6 RegExp symbols" , DEFAULT_CONFIG_ES6RegExSymbols)
  970. FLAGPR (Boolean, ES6, ES6HasInstance , "Enable ES6 @@hasInstance symbol" , DEFAULT_CONFIG_ES6HasInstance)
  971. FLAGPR (Boolean, ES6, ES6Verbose , "Enable ES6 verbose trace" , DEFAULT_CONFIG_ES6Verbose)
  972. #ifndef COMPILE_DISABLE_ArrayBufferTransfer
  973. #define COMPILE_DISABLE_ArrayBufferTransfer 0
  974. #endif
  975. FLAGPR_REGOVR_EXP(Boolean, ES6, ArrayBufferTransfer , "Enable ArrayBuffer.transfer" , DEFAULT_CONFIG_ArrayBufferTransfer)
  976. FLAGPR (Boolean, ES6, ESObjectGetOwnPropertyDescriptors, "Enable Object.getOwnPropertyDescriptors" , DEFAULT_CONFIG_ESObjectGetOwnPropertyDescriptors)
  977. #ifndef COMPILE_DISABLE_ESSharedArrayBuffer
  978. #define COMPILE_DISABLE_ESSharedArrayBuffer 0
  979. #endif
  980. FLAGPRA (Boolean, ES6, ESSharedArrayBuffer , sab , "Enable SharedArrayBuffer" , DEFAULT_CONFIG_ESSharedArrayBuffer)
  981. // /ES6 (BLUE+1) features/flags
  982. #ifdef ENABLE_PROJECTION
  983. FLAGNR(Boolean, WinRTDelegateInterfaces , "Treat WinRT Delegates as Interfaces when determining their resolvability.", DEFAULT_CONFIG_WinRTDelegateInterfaces)
  984. FLAGR(Boolean, WinRTAdaptiveApps , "Enable the adaptive apps feature, allowing for variable projection." , DEFAULT_CONFIG_WinRTAdaptiveApps)
  985. #endif
  986. // This flag to be removed once JITing generator functions is stable
  987. FLAGNR(Boolean, JitES6Generators , "Enable JITing of ES6 generators", false)
  988. FLAGNR(Boolean, FastLineColumnCalculation, "Enable fast calculation of line/column numbers from the source.", DEFAULT_CONFIG_FastLineColumnCalculation)
  989. FLAGR (String, Filename , "Jscript source file", nullptr)
  990. FLAGNR(Boolean, FreeRejittedCode , "Free rejitted code", true)
  991. FLAGNR(Boolean, ForceGuardPages , "Force the addition of guard pages", false)
  992. FLAGNR(Boolean, PrintGuardPageBounds , "Prints the bounds of a guard page", false)
  993. FLAGNR(Boolean, ForceLegacyEngine , "Force a jscrip9 dll load", false)
  994. FLAGNR(Phases, Force , "Force certain phase to run ignoring heuristics", )
  995. FLAGNR(Phases, Stress , "Stress certain phases by making them kick in even if they normally would not.", )
  996. FLAGNR(Boolean, ForceArrayBTree , "Force enable creation of BTree for Arrays", false)
  997. FLAGNR(Boolean, ForceCleanPropertyOnCollect, "Force cleaning of property on collection", DEFAULT_CONFIG_ForceCleanPropertyOnCollect)
  998. FLAGNR(Boolean, ForceCleanCacheOnCollect, "Force cleaning of dynamic caches on collection", DEFAULT_CONFIG_ForceCleanCacheOnCollect)
  999. FLAGNR(Boolean, ForceGCAfterJSONParse, "Force GC to happen after JSON parsing", DEFAULT_CONFIG_ForceGCAfterJSONParse)
  1000. FLAGNR(Boolean, ForceDecommitOnCollect, "Force decommit collect", DEFAULT_CONFIG_ForceDecommitOnCollect)
  1001. FLAGNR(Boolean, ForceDeferParse , "Defer parsing of all function bodies", DEFAULT_CONFIG_ForceDeferParse)
  1002. FLAGNR(Boolean, ForceDiagnosticsMode , "Enable diagnostics mode and debug interpreter loop", false)
  1003. FLAGNR(Boolean, ForceGetWriteWatchOOM , "Force GetWriteWatch to go into OOM codepath in HeapBlockMap rescan", false)
  1004. FLAGNR(Boolean, ForcePostLowerGlobOptInstrString, "Force tracking of globopt instr string post lower", DEFAULT_CONFIG_ForcePostLowerGlobOptInstrString)
  1005. FLAGNR(Boolean, ForceSplitScope , "All functions will have unmerged body and param scopes", DEFAULT_CONFIG_ForceSplitScope)
  1006. FLAGNR(Boolean, EnumerateSpecialPropertiesInDebugger, "Enable enumeration of special debug properties", DEFAULT_CONFIG_EnumerateSpecialPropertiesInDebugger)
  1007. FLAGNR(Boolean, EnableJitInDiagMode , "Enable Fast F12 (only applicable with ForceDiagnosticsMode or while under debugger)", DEFAULT_CONFIG_EnableJitInDiagMode)
  1008. FLAGNR(Boolean, EnableContinueAfterExceptionWrappersForHelpers, "Enable wrapper over helper methods in debugger, Fast F12 only", DEFAULT_CONFIG_EnableContinueAfterExceptionWrappersForHelpers)
  1009. FLAGNR(Boolean, EnableContinueAfterExceptionWrappersForBuiltIns, "Enable wrapper over library calls in debugger, Fast F12 only", DEFAULT_CONFIG_EnableContinueAfterExceptionWrappersForBuiltIns)
  1010. FLAGNR(Boolean, EnableFunctionSourceReportForHeapEnum, "During HeapEnum, whether to report function source info (url/row/col)", DEFAULT_CONFIG_EnableFunctionSourceReportForHeapEnum)
  1011. FLAGNR(Number, ForceFragmentAddressSpace , "Fragment the address space", 128 * 1024 * 1024)
  1012. FLAGNR(Number, ForceOOMOnEBCommit, "Force CommitBuffer to return OOM", 0)
  1013. FLAGR (Boolean, ForceDynamicProfile , "Force to always generate profiling byte code", DEFAULT_CONFIG_ForceDynamicProfile)
  1014. FLAGNR(Boolean, ForceES5Array , "Force using ES5Array", DEFAULT_CONFIG_ForceES5Array)
  1015. FLAGNR(Boolean, ForceAsmJsLinkFail , "Force asm.js link time validation to fail", DEFAULT_CONFIG_ForceAsmJsLinkFail)
  1016. FLAGNR(Boolean, ForceExpireOnNonCacheCollect, "Allow expiration collect outside of cache collection cleanups", DEFAULT_CONFIG_ForceExpireOnNonCacheCollect)
  1017. FLAGNR(Boolean, ForceFastPath , "Force fast-paths in native codegen", DEFAULT_CONFIG_ForceFastPath)
  1018. FLAGNR(Boolean, ForceFloatPref , "Force float preferencing (JIT only)", false)
  1019. FLAGNR(Boolean, ForceJITLoopBody , "Force jit loop body only", DEFAULT_CONFIG_ForceJITLoopBody)
  1020. FLAGNR(Boolean, ForceStaticInterpreterThunk, "Force using static interpreter thunk", DEFAULT_CONFIG_ForceStaticInterpreterThunk)
  1021. FLAGNR(Boolean, DumpCommentsFromReferencedFiles, "Allow printing comments of comment-table of the referenced file as well (use with -trace:CommentTable)", DEFAULT_CONFIG_DumpCommentsFromReferencedFiles)
  1022. FLAGNR(Number, DelayFullJITSmallFunc , "Scale Full JIT threshold for small functions which are going to be inlined soon. To provide fraction scale, the final scale is scale following this option devided by 10", DEFAULT_CONFIG_DelayFullJITSmallFunc)
  1023. FLAGNR(Boolean, EnableFatalErrorOnOOM, "Enabling failfast fatal error on OOM", DEFAULT_CONFIG_EnableFatalErrorOnOOM)
  1024. #ifdef _M_ARM
  1025. FLAGNR(Boolean, ForceLocalsPtr , "Force use of alternative locals pointer (JIT only)", false)
  1026. #endif
  1027. FLAGNR(Boolean, DeferLoadingAvailableSource, "Treat available source code as a dummy defer-mappable object to go through that code path.", DEFAULT_CONFIG_DeferLoadingAvailableSource)
  1028. FLAGR (Boolean, ForceNative , "Force JIT everything that is called before running it, ignoring limits", false)
  1029. FLAGNR(Boolean, ForceSerialized , "Always serialize and deserialize byte codes before execution", DEFAULT_CONFIG_ForceSerialized)
  1030. FLAGNR(Number, ForceSerializedBytecodeMajorVersion, "Force the byte code serializer to write this major version number", 0)
  1031. FLAGNR(Number, ForceSerializedBytecodeVersionSchema, "Force the byte code serializer to write this kind of version. Decimal 10 is engineering, 20 is release mode, and 0 means use the default setting.", 0)
  1032. FLAGNR(Boolean, ForceStrictMode, "Force strict mode checks on all functions", false)
  1033. FLAGNR(Boolean, ForceUndoDefer , "Defer parsing of all function bodies, but undo deferral", false)
  1034. FLAGNR(Boolean, ForceBlockingConcurrentCollect, "Force doing in-thread GC on concurrent thread- this will skip doing concurrent collect", false)
  1035. FLAGNR(Boolean, FreTestDiagMode, "Enabled collection of diagnostic information on fretest builds", false)
  1036. #ifdef BYTECODE_TESTING
  1037. FLAGNR(Number, ByteCodeBranchLimit, "Short branch limit before we use the branch island", 128)
  1038. FLAGNR(Boolean, MediumByteCodeLayout , "Always use medium layout for bytecodes", false)
  1039. FLAGNR(Boolean, LargeByteCodeLayout , "Always use large layout for bytecodes", false)
  1040. #endif
  1041. #ifdef FAULT_INJECTION
  1042. FLAGNR(Number, FaultInjection , "FaultInjectMode - 0 (count only), 1 (count equal), 2 (count at or above), 3 (stackhashing)",-1)
  1043. FLAGNR(Number, FaultInjectionCount , "Injects an out of memory at the specified allocation", -1)
  1044. FLAGNR(String, FaultInjectionType , "FaultType (flag values) - 1 (Throw), 2 (NoThrow), 4 (MarkThrow), 8 (MarkNoThrow), FFFFFFFF (All)", nullptr)
  1045. FLAGNR(String, FaultInjectionFilter , "A string to restrict the fault injection, the string can be like ArenaAllocator name", nullptr)
  1046. FLAGNR(Number, FaultInjectionAllocSize, "Do fault injection only this size", -1)
  1047. FLAGNR(String, FaultInjectionStackFile , "Stacks to match, default: stack.txt in current directory", _u("stack.txt"))
  1048. FLAGNR(Number, FaultInjectionStackLineCount , "Count of lines in the stack file used for matching", -1)
  1049. FLAGNR(String, FaultInjectionStackHash, "Match stacks hash on Chakra frames to inject the fault, hex string", _u("0"))
  1050. FLAGNR(Number, FaultInjectionScriptContextToTerminateCount, "Script context# COUNT % (Number of script contexts) to terminate", 1)
  1051. #endif
  1052. FLAGNR(Number, InduceCodeGenFailure, "Probability of a codegen job failing.", DEFAULT_CONFIG_InduceCodeGenFailure)
  1053. FLAGNR(Number, InduceCodeGenFailureSeed, "Seed used while calculating codegen failure probability", 0)
  1054. FLAGNR(Number, InjectPartiallyInitializedInterpreterFrameError, "The number of interpreter stack frame (with 1 being bottom-most) to inject error before the frame is initialized.", DEFAULT_CONFIG_InjectPartiallyInitializedInterpreterFrameError)
  1055. FLAGNR(Number, InjectPartiallyInitializedInterpreterFrameErrorType, "Type of error to inject: 0 - debug break, 1 - exception.", DEFAULT_CONFIG_InjectPartiallyInitializedInterpreterFrameErrorType)
  1056. FLAGNR(Boolean, GenerateByteCodeBufferReturnsCantGenerate, "Serialized byte code generation always returns SCRIPT_E_CANT_GENERATE", false)
  1057. FLAGNR(Number, GoptCleanupThreshold, "Number of instructions seen before we cleanup the value table", DEFAULT_CONFIG_GoptCleanupThreshold)
  1058. FLAGNR(Number, AsmGoptCleanupThreshold, "Number of instructions seen before we cleanup the value table", DEFAULT_CONFIG_AsmGoptCleanupThreshold)
  1059. FLAGNR(Boolean, HighPrecisionDate, "Enable sub-millisecond resolution in Javascript Date for benchmark timing", DEFAULT_CONFIG_HighPrecisionDate)
  1060. FLAGNR(Number, InlineCountMax , "Maximum count in bytecodes to inline in a given function", DEFAULT_CONFIG_InlineCountMax)
  1061. FLAGNRA(Number, InlineCountMaxInLoopBodies, icminlb, "Maximum count in bytecodes to inline in a given function", DEFAULT_CONFIG_InlineCountMaxInLoopBodies)
  1062. FLAGNRA(Number, InlineInLoopBodyScaleDownFactor, iilbsdf, "Maximum depth of a recursive inline call", DEFAULT_CONFIG_InlineInLoopBodyScaleDownFactor)
  1063. FLAGNR(Number, InlineThreshold , "Maximum size in bytecodes of an inline candidate", DEFAULT_CONFIG_InlineThreshold)
  1064. FLAGNR(Number, AggressiveInlineCountMax, "Maximum count in bytecodes to inline in a given function", DEFAULT_CONFIG_AggressiveInlineCountMax)
  1065. FLAGNR(Number, AggressiveInlineThreshold, "Maximum size in bytecodes of an inline candidate for aggressive inlining", DEFAULT_CONFIG_AggressiveInlineThreshold)
  1066. FLAGNR(Number, InlineThresholdAdjustCountInLargeFunction , "Adjustment in the maximum size in bytecodes of an inline candidate in a large function", DEFAULT_CONFIG_InlineThresholdAdjustCountInLargeFunction)
  1067. FLAGNR(Number, InlineThresholdAdjustCountInMediumSizedFunction , "Adjustment in the maximum size in bytecodes of an inline candidate in a medium sized function", DEFAULT_CONFIG_InlineThresholdAdjustCountInMediumSizedFunction)
  1068. FLAGNR(Number, InlineThresholdAdjustCountInSmallFunction , "Adjustment in the maximum size in bytecodes of an inline candidate in a small function", DEFAULT_CONFIG_InlineThresholdAdjustCountInSmallFunction)
  1069. FLAGNR(String, Interpret , "List of functions to interpret", nullptr)
  1070. FLAGNR(Phases, Instrument , "Instrument the generated code from the given phase", )
  1071. FLAGNR(Number, JitQueueThreshold , "Max number of work items/script context in the jit queue", DEFAULT_CONFIG_JitQueueThreshold)
  1072. #ifdef LEAK_REPORT
  1073. FLAGNR(String, LeakReport , "File name for the leak report", nullptr)
  1074. #endif
  1075. FLAGNR(Number, LoopInlineThreshold , "Maximum size in bytecodes of an inline candidate with loops or not enough profile data", DEFAULT_CONFIG_LoopInlineThreshold)
  1076. FLAGNR(Number, LeafInlineThreshold , "Maximum size in bytecodes of an inline candidate with loops or not enough profile data", DEFAULT_CONFIG_LeafInlineThreshold)
  1077. FLAGNR(Number, ConstantArgumentInlineThreshold, "Maximum size in bytecodes of an inline candidate with constant argument and the argument being used for a branch", DEFAULT_CONFIG_ConstantArgumentInlineThreshold)
  1078. FLAGNR(Number, RecursiveInlineThreshold, "Maximum size in bytecodes of an inline candidate to inline recursively", DEFAULT_CONFIG_RecursiveInlineThreshold)
  1079. FLAGNR(Number, RecursiveInlineDepthMax, "Maximum depth of a recursive inline call", DEFAULT_CONFIG_RecursiveInlineDepthMax)
  1080. FLAGNR(Number, RecursiveInlineDepthMin, "Maximum depth of a recursive inline call", DEFAULT_CONFIG_RecursiveInlineDepthMin)
  1081. FLAGNR(Number, RedeferralCap, "Number of compilations beyond which we stop redeferring a function", DEFAULT_CONFIG_RedeferralCap)
  1082. FLAGNR(Number, Loop , "Number of times to execute the script (useful for profiling short benchmarks and finding leaks)", DEFAULT_CONFIG_Loop)
  1083. FLAGRA(Number, LoopInterpretCount , lic, "Number of times loop has to be interpreted before JIT Loop body", DEFAULT_CONFIG_LoopInterpretCount)
  1084. FLAGNR(Number, LoopProfileIterations , "Number of iterations of a loop that must be profiled before jitting the loop body", DEFAULT_CONFIG_LoopProfileIterations)
  1085. FLAGNR(Number, OutsideLoopInlineThreshold , "Maximum size in bytecodes of an inline candidate outside a loop in inliner", DEFAULT_CONFIG_OutsideLoopInlineThreshold)
  1086. FLAGNR(Number, MaxFuncInlineDepth , "Number of times to allow inlining a function recursively, plus one (min: 1, max: 255)", DEFAULT_CONFIG_MaxFuncInlineDepth)
  1087. FLAGNR(Number, MaxNumberOfInlineesWithLoop, "Number of times to allow inlinees with a loop in a top function", DEFAULT_CONFIG_MaxNumberOfInlineesWithLoop)
  1088. #ifdef MEMSPECT_TRACKING
  1089. FLAGNR(Phases, Memspect, "Enables memspect tracking to perform memory investigations.", )
  1090. #endif
  1091. FLAGNR(Number, PolymorphicInlineThreshold , "Maximum size in bytecodes of a polymorphic inline candidate", DEFAULT_CONFIG_PolymorphicInlineThreshold)
  1092. FLAGNR(Boolean, PrimeRecycler , "Prime the recycler first", DEFAULT_CONFIG_PrimeRecycler)
  1093. FLAGNR(Boolean, PrivateHeap , "Use HeapAlloc with a private heap", DEFAULT_CONFIG_PrivateHeap)
  1094. #if defined(CHECK_MEMORY_LEAK) || defined(LEAK_REPORT)
  1095. FLAGNR(Boolean, LeakStackTrace , "Include stack trace on leaked pinned object and heap objects", false)
  1096. FLAGNR(Boolean, ForceMemoryLeak , "Fake leak some memory to test leak report and check memory leak", false)
  1097. #endif
  1098. FLAGNR(Boolean, ForceOldDateAPI , "Force Chakra to use old dates API regardless of availability of a new one", DEFAULT_CONFIG_ForceOldDateAPI)
  1099. FLAGNR(Number, JitLoopBodyHotLoopThreshold , "Number of times loop has to be iterated in jitloopbody before it is determined as hot", DEFAULT_CONFIG_JitLoopBodyHotLoopThreshold)
  1100. FLAGNR(Number, LoopBodySizeThresholdToDisableOpts, "Minimum bytecode size of a loop body, above which we might consider switching off optimizations in jit loop body to avoid rejits", DEFAULT_CONFIG_LoopBodySizeThresholdToDisableOpts)
  1101. FLAGNR(Number, MaxJitThreadCount , "Number of maximum allowed parallel jit threads (actual number is factor of number of processors and other heuristics)", DEFAULT_CONFIG_MaxJitThreadCount)
  1102. FLAGNR(Boolean, ForceMaxJitThreadCount, "Force the number of parallel jit threads as specified by MaxJitThreadCount flag (creation guaranteed)", DEFAULT_CONFIG_ForceMaxJitThreadCount)
  1103. FLAGNR(Number, MinInterpretCount , "Minimum number of times a function must be interpreted", 0)
  1104. FLAGNR(Number, MinSimpleJitRunCount , "Minimum number of times a function must be run in simple jit", 0)
  1105. FLAGNRA(Number, MaxInterpretCount , Mic, "Maximum number of times a function can be interpreted", 0)
  1106. FLAGNRA(Number, MaxSimpleJitRunCount , Msjrc, "Maximum number of times a function will be run in SimpleJitted code", 0)
  1107. FLAGNRA(Number, MinMemOpCount , Mmoc, "Minimum count of a loop to activate MemOp", DEFAULT_CONFIG_MinMemOpCount)
  1108. #if ENABLE_COPYONACCESS_ARRAY
  1109. FLAGNR(Number, MaxCopyOnAccessArrayLength, "Maximum length of copy-on-access array", DEFAULT_CONFIG_MaxCopyOnAccessArrayLength)
  1110. FLAGNR(Number, MinCopyOnAccessArrayLength, "Minimum length of copy-on-access array", DEFAULT_CONFIG_MinCopyOnAccessArrayLength)
  1111. FLAGNR(Number, CopyOnAccessArraySegmentCacheSize, "Size of copy-on-access array segment cache (1-32)", DEFAULT_CONFIG_CopyOnAccessArraySegmentCacheSize)
  1112. #endif
  1113. FLAGNR(Number, MinTemplatizedJitRunCount, "Minimum number of times a function must be Templatized Jitted", DEFAULT_CONFIG_MinTemplatizedJitRunCount)
  1114. FLAGNR(Number, MinAsmJsInterpreterRunCount, "Minimum number of times a function must be Asm Interpreted", DEFAULT_CONFIG_MinAsmJsInterpreterRunCount)
  1115. FLAGNR(Number, MinTemplatizedJitLoopRunCount, "Minimum LoopCount run of the Templatized Jit function to run FullJited", DEFAULT_CONFIG_MinTemplatizedJitLoopRunCount)
  1116. FLAGNRA(Number, MaxTemplatizedJitRunCount, Mtjrc, "Maximum number of times a function must be templatized jit", DEFAULT_CONFIG_MaxTemplatizedJitRunCount)
  1117. FLAGNRA(Number, MaxAsmJsInterpreterRunCount, Maic, "Maximum number of times a function must be interpreted in asmjs", DEFAULT_CONFIG_MaxAsmJsInterpreterRunCount)
  1118. FLAGR (Number, AutoProfilingInterpreter0Limit, "Limit after which to transition to the next execution mode", DEFAULT_CONFIG_AutoProfilingInterpreter0Limit)
  1119. FLAGR (Number, ProfilingInterpreter0Limit, "Limit after which to transition to the next execution mode", DEFAULT_CONFIG_ProfilingInterpreter0Limit)
  1120. FLAGR (Number, AutoProfilingInterpreter1Limit, "Limit after which to transition to the next execution mode", DEFAULT_CONFIG_AutoProfilingInterpreter1Limit)
  1121. FLAGR (Number, SimpleJitLimit, "Limit after which to transition to the next execution mode", DEFAULT_CONFIG_SimpleJitLimit)
  1122. FLAGR (Number, ProfilingInterpreter1Limit, "Limit after which to transition to the next execution mode", DEFAULT_CONFIG_ProfilingInterpreter1Limit)
  1123. FLAGNRA(String, ExecutionModeLimits, Eml, "Execution mode limits in th form: AutoProfilingInterpreter0.ProfilingInterpreter0.AutoProfilingInterpreter1.SimpleJit.ProfilingInterpreter1 - Example: -ExecutionModeLimits:12.4.0.132.12", _u(""))
  1124. FLAGRA(Boolean, EnforceExecutionModeLimits, Eeml, "Enforces the execution mode limits such that they are never exceeded.", false)
  1125. FLAGNRA(Number, SimpleJitAfter , Sja, "Number of calls to a function after which to simple-JIT the function", 0)
  1126. FLAGNRA(Number, FullJitAfter , Fja, "Number of calls to a function after which to full-JIT the function. The function will be profiled for every iteration.", 0)
  1127. FLAGNR(Boolean, NewSimpleJit , "Uses the new simple JIT", DEFAULT_CONFIG_NewSimpleJit)
  1128. FLAGNR(Number, MaxLinearIntCaseCount , "Maximum number of cases(in switch statement) for which instructions can be generated linearly",DEFAULT_CONFIG_MaxLinearIntCaseCount)
  1129. FLAGNR(Number, MaxSingleCharStrJumpTableSize, "Maximum single char string jump table size", DEFAULT_CONFIG_MaxSingleCharStrJumpTableSize)
  1130. FLAGNR(Number, MaxSingleCharStrJumpTableRatio, "Maximum single char string jump table size as multiples of the actual case arm", DEFAULT_CONFIG_MaxSingleCharStrJumpTableRatio)
  1131. FLAGNR(Number, MinSwitchJumpTableSize , "Minimum size of the jump table, that is created for consecutive integer case arms in a Switch Statement",DEFAULT_CONFIG_MinSwitchJumpTableSize)
  1132. FLAGNR(Number, MaxLinearStringCaseCount, "Maximum number of string cases(in switch statement) for which instructions can be generated linearly",DEFAULT_CONFIG_MaxLinearStringCaseCount)
  1133. FLAGR(Number, MinDeferredFuncTokenCount, "Minimum length in tokens of defer-parsed function", DEFAULT_CONFIG_MinDeferredFuncTokenCount)
  1134. #if DBG
  1135. FLAGNR(Number, SkipFuncCountForBailOnNoProfile, "Initial Number of functions in a func body to be skipped from forcibly inserting BailOnNoProfile.", DEFAULT_CONFIG_SkipFuncCountForBailOnNoProfile)
  1136. #endif
  1137. FLAGNR(Number, MaxJITFunctionBytecodeByteLength, "The biggest function we'll JIT (bytecode bytelength)", DEFAULT_CONFIG_MaxJITFunctionBytecodeByteLength)
  1138. FLAGNR(Number, MaxJITFunctionBytecodeCount, "The biggest function we'll JIT (bytecode count)", DEFAULT_CONFIG_MaxJITFunctionBytecodeCount)
  1139. FLAGNR(Number, MaxLoopsPerFunction , "Maximum number of loops in any function in the script", DEFAULT_CONFIG_MaxLoopsPerFunction)
  1140. FLAGNR(Number, FuncObjectInlineCacheThreshold , "Maximum number of inline caches a function body may have to allow for inline caches to be allocated on the function object", DEFAULT_CONFIG_FuncObjectInlineCacheThreshold)
  1141. FLAGNR(Boolean, NoDeferParse , "Disable deferred parsing", false)
  1142. FLAGNR(Boolean, NoLogo , "No logo, which we don't display anyways", false)
  1143. FLAGNR(Boolean, OOPJITMissingOpts , "Use optimizations that are missing from OOP JIT", DEFAULT_CONFIG_OOPJITMissingOpts)
  1144. FLAGNR(Boolean, OOPCFGRegistration , "Do CFG registration OOP (under OOP JIT)", DEFAULT_CONFIG_OOPCFGRegistration)
  1145. FLAGNR(Boolean, ForceJITCFGCheck , "Have JIT code always do CFG check even if range check succeeded", DEFAULT_CONFIG_ForceJITCFGCheck)
  1146. FLAGNR(Boolean, UseJITTrampoline , "Use trampoline for JIT entry points and emit range checks for it", DEFAULT_CONFIG_UseJITTrampoline)
  1147. #ifdef _ARM64_
  1148. FLAGR (Boolean, NoNative , "Disable native codegen", true)
  1149. #else
  1150. FLAGR (Boolean, NoNative , "Disable native codegen", false)
  1151. #endif
  1152. FLAGNR(Number, NopFrequency , "Frequency of NOPs inserted by NOP insertion phase. A NOP is guaranteed to be inserted within a range of (1<<n) instrs (default=8)", DEFAULT_CONFIG_NopFrequency)
  1153. FLAGNR(Boolean, NoStrictMode , "Disable strict mode checks on all functions", false)
  1154. FLAGNR(Boolean, NormalizeStats , "When dumping stats, do some normalization (used with -instrument:linearscan)", false)
  1155. #ifdef ENABLE_PROJECTION
  1156. FLAGNR(Boolean, NoWinRTFastSig , "Disable fast call for common WinRT function signatures", false)
  1157. #endif
  1158. FLAGNR(Phases, Off , "Turn off specific phases or feature.(Might not work for all phases)", )
  1159. FLAGNR(Phases, OffProfiledByteCode , "Turn off specific byte code for phases or feature.(Might not work for all phases)", )
  1160. FLAGNR(Phases, On , "Turn on specific phases or feature.(Might not work for all phases)", )
  1161. FLAGNR(String, OutputFile , "Log the output to a specified file. Default: output.log in the working directory.", _u("output.log"))
  1162. FLAGNR(String, OutputFileOpenMode , "File open mode for OutputFile. Default: wt, specify 'at' for append", _u("wt"))
  1163. #ifdef ENABLE_TRACE
  1164. FLAGNR(Boolean, InMemoryTrace , "Enable in-memory trace (investigate crash using trace in dump file). Use !jd.dumptrace to print it.", DEFAULT_CONFIG_InMemoryTrace)
  1165. FLAGNR(Number, InMemoryTraceBufferSize, "The size of circular buffer for in-memory trace (the units used is: number of trace calls). ", DEFAULT_CONFIG_InMemoryTraceBufferSize)
  1166. #if CONFIG_RICH_TRACE_FORMAT
  1167. FLAGNR(Boolean, RichTraceFormat, "Whether to use extra data in Output/Trace header.", DEFAULT_CONFIG_RichTraceFormat)
  1168. #endif
  1169. #ifdef STACK_BACK_TRACE
  1170. FLAGNR(Boolean, TraceWithStack, "Whether the trace need to include stack trace (for each trace entry).", DEFAULT_CONFIG_TraceWithStack)
  1171. #endif // STACK_BACK_TRACE
  1172. #endif // ENABLE_TRACE
  1173. FLAGNR(Boolean, PrintRunTimeDataCollectionTrace, "Print traces needed for runtime data collection", false)
  1174. #ifdef ENABLE_PREJIT
  1175. FLAGR (Boolean, Prejit , "Prejit everything, including things that are not called, ignoring limits (default: false)", DEFAULT_CONFIG_Prejit)
  1176. #endif
  1177. FLAGNR(Boolean, PrintSrcInDump , "Print the lineno and the source code in the intermediate dumps", true)
  1178. #if PROFILE_DICTIONARY
  1179. FLAGNR(Number, ProfileDictionary , "Profile dictionary usage. Only dictionaries with max depth of <number> or above are displayed (0=no filter).", -1)
  1180. #endif
  1181. #ifdef PROFILE_EXEC
  1182. FLAGNR(Phases, Profile , "Profile the given phase", )
  1183. FLAGNR(Number, ProfileThreshold , "A phase is displayed in the profiler report only if its contribution is more than this threshold", 0)
  1184. #endif
  1185. #ifdef PROFILE_OBJECT_LITERALS
  1186. FLAGNR(Boolean, ProfileObjectLiteral , "Profile Object literal usage", false)
  1187. #endif
  1188. #ifdef PROFILE_MEM
  1189. FLAGNR(String, ProfileMemory , "Profile memory usage", )
  1190. #endif
  1191. #ifdef PROFILE_STRINGS
  1192. FLAGNR(Boolean, ProfileStrings , "Profile string statistics", false)
  1193. #endif
  1194. #ifdef PROFILE_TYPES
  1195. FLAGNR(Boolean, ProfileTypes , "Profile type statistics", false)
  1196. #endif
  1197. #ifdef PROFILE_EVALMAP
  1198. FLAGNR(Boolean, ProfileEvalMap , "Profile eval map statistics", false)
  1199. #endif
  1200. #ifdef PROFILE_BAILOUT_RECORD_MEMORY
  1201. FLAGNR(Boolean, ProfileBailOutRecordMemory, "Profile bailout record memory statistics", false)
  1202. #endif
  1203. FLAGNR(Number, RejitMaxBailOutCount, "Maximum number of bailouts for a bailout record after which rejit is forced", DEFAULT_CONFIG_RejitMaxBailOutCount)
  1204. FLAGNR(Number, CallsToBailoutsRatioForRejit, "Ratio of function calls to bailouts above which a rejit is considered", DEFAULT_CONFIG_CallsToBailoutsRatioForRejit)
  1205. FLAGNR(Number, LoopIterationsToBailoutsRatioForRejit, "Ratio of loop iteration count to bailouts above which a rejit of the loop body is considered", DEFAULT_CONFIG_LoopIterationsToBailoutsRatioForRejit)
  1206. FLAGNR(Number, MinBailOutsBeforeRejit, "Minimum number of bailouts for a single bailout record after which a rejit is considered", DEFAULT_CONFIG_MinBailOutsBeforeRejit)
  1207. FLAGNR(Number, MinBailOutsBeforeRejitForLoops, "Minimum number of bailouts for a single bailout record after which a rejit is considered", DEFAULT_CONFIG_MinBailOutsBeforeRejitForLoops)
  1208. FLAGNR(Boolean, LibraryStackFrame , "Display library stack frame", DEFAULT_CONFIG_LibraryStackFrame)
  1209. FLAGNR(Boolean, LibraryStackFrameDebugger , "Assume debugger support for library stack frame", DEFAULT_CONFIG_LibraryStackFrameDebugger)
  1210. #ifdef RECYCLER_STRESS
  1211. FLAGNR(Boolean, RecyclerStress , "Stress the recycler by collect on every allocation call", false)
  1212. #if ENABLE_CONCURRENT_GC
  1213. FLAGNR(Boolean, RecyclerBackgroundStress , "Stress the recycler by collect in the background thread on every allocation call", false)
  1214. FLAGNR(Boolean, RecyclerConcurrentStress , "Stress the concurrent recycler by concurrent collect on every allocation call", false)
  1215. FLAGNR(Boolean, RecyclerConcurrentRepeatStress , "Stress the concurrent recycler by concurrent collect on every allocation call and repeat mark and rescan in the background thread", false)
  1216. #endif
  1217. #if ENABLE_PARTIAL_GC
  1218. FLAGNR(Boolean, RecyclerPartialStress , "Stress the partial recycler by partial collect on every allocation call", false)
  1219. #endif
  1220. FLAGNR(Boolean, RecyclerTrackStress, "Stress tracked object handling by simulating tracked objects for regular allocations", false)
  1221. FLAGNR(Boolean, RecyclerInduceFalsePositives, "Stress recycler by forcing false positive object marks", false)
  1222. #endif // RECYCLER_STRESS
  1223. FLAGNR(Boolean, RecyclerForceMarkInterior, "Force all the mark as interior", DEFAULT_CONFIG_RecyclerForceMarkInterior)
  1224. #if ENABLE_CONCURRENT_GC
  1225. FLAGNR(Number, RecyclerPriorityBoostTimeout, "Adjust priority boost timeout", 5000)
  1226. FLAGNR(Number, RecyclerThreadCollectTimeout, "Adjust thread collect timeout", 1000)
  1227. #endif
  1228. #ifdef RECYCLER_PAGE_HEAP
  1229. FLAGNR(Number, PageHeap, "Use full page for heap allocations", DEFAULT_CONFIG_PageHeap)
  1230. FLAGNR(Boolean, PageHeapAllocStack, "Capture alloc stack under page heap mode", DEFAULT_CONFIG_PageHeapAllocStack)
  1231. FLAGNR(Boolean, PageHeapFreeStack, "Capture free stack under page heap mode", DEFAULT_CONFIG_PageHeapFreeStack)
  1232. FLAGNR(NumberRange, PageHeapBucketNumber, "Bucket numbers to be used for page heap allocations", )
  1233. FLAGNR(Number, PageHeapBlockType, "Type of blocks to use page heap for", DEFAULT_CONFIG_PageHeapBlockType)
  1234. FLAGNR(Boolean, PageHeapDecommitGuardPage, "Decommit page heap guard page", true)
  1235. #endif
  1236. #ifdef RECYCLER_NO_PAGE_REUSE
  1237. FLAGNR(Boolean, RecyclerNoPageReuse, "Do not reuse page in recycler", false)
  1238. #endif
  1239. #ifdef RECYCLER_MEMORY_VERIFY
  1240. FLAGNR(Phases, RecyclerVerify , "Verify recycler memory", )
  1241. FLAGNR(Number, RecyclerVerifyPadSize , "Padding size to verify recycler memory", 12)
  1242. #endif
  1243. FLAGNR(Boolean, RecyclerTest , "Run recycler tests instead of executing script", false)
  1244. FLAGNR(Boolean, RecyclerProtectPagesOnRescan, "Temporarily switch all pages to read only during rescan", false)
  1245. #ifdef RECYCLER_VERIFY_MARK
  1246. FLAGNR(Boolean, RecyclerVerifyMark , "verify concurrent gc", false)
  1247. #endif
  1248. FLAGR (Number, LowMemoryCap , "Memory cap indicating a low-memory process", DEFAULT_CONFIG_LowMemoryCap)
  1249. FLAGNR(Number, NewPagesCapDuringBGSweeping, "New pages count allowed to be allocated during background sweeping", DEFAULT_CONFIG_NewPagesCapDuringBGSweeping)
  1250. #ifdef RUNTIME_DATA_COLLECTION
  1251. FLAGNR(String, RuntimeDataOutputFile, "Filename to write the dynamic profile info", nullptr)
  1252. #endif
  1253. FLAGNR(Boolean, ReportErrors , "Enable reporting of syntax errors", false)
  1254. FLAGR (Number, SpeculationCap , "How much bytecode we'll speculatively JIT", DEFAULT_CONFIG_SpeculationCap)
  1255. #if DBG_DUMP || defined(BGJIT_STATS) || defined(RECYCLER_STATS)
  1256. FLAGNR(Phases, Stats , "Stats the given phase", )
  1257. #endif
  1258. #if EXCEPTION_RECOVERY
  1259. FLAGNR(Boolean, SwallowExceptions , "Force a try/catch around every statement", false)
  1260. #endif
  1261. FLAGNR(Boolean, PrintSystemException , "Always print a message when there's OOM or OOS", false)
  1262. FLAGNR(Number, SwitchOptHolesThreshold, "Maximum percentage of holes (missing case values in a switch statement) with which a jump table can be created",DEFAULT_CONFIG_SwitchOptHolesThreshold)
  1263. FLAGR (Number, TempMin , "Temp number switch which code can temporarily use for debugging", DEFAULT_CONFIG_TempMin)
  1264. FLAGR (Number, TempMax , "Temp number switch which code can temporarily use for debugging", DEFAULT_CONFIG_TempMax)
  1265. FLAGNR(Phases, Trace , "Trace the given phase", )
  1266. #if defined(_M_IX86) || defined(_M_X64)
  1267. FLAGR(Number, LoopAlignNopLimit , "Max number of nops for loop alignment", DEFAULT_CONFIG_LoopAlignNopLimit)
  1268. #endif
  1269. #ifdef PROFILE_MEM
  1270. FLAGNR(Phases, TraceMemory , "Trace memory usage", )
  1271. #endif
  1272. #if DBG_DUMP || defined(RECYCLER_TRACE)
  1273. //TraceMetaDataParsing flag with optional levels:
  1274. // Level 1 = interfaces only
  1275. // Level 2 = interfaces and methods
  1276. // Level 3 = interfaces, methods and parameters
  1277. // Level 4 = interfaces and properties
  1278. // Level 5 (default) = ALL
  1279. FLAGNR(Number, TraceMetaDataParsing , "Trace metadata parsing for generating JS projections. [Levels 1-5, with 5 corresponding to most detailed]", 5)
  1280. FLAGNR(Boolean, TraceWin8Allocations , "Trace the win8 memory allocations", false)
  1281. FLAGNR(Boolean, TraceWin8DeallocationsImmediate , "Trace the win8 memory deallocations immediately", false)
  1282. FLAGNR(Boolean, PrintWin8StatsDetailed , "Print the detailed memory trace report", false)
  1283. FLAGNR(Boolean, TraceProtectPages , "Trace calls to protecting pages of custom heap allocated pages", false)
  1284. //TraceProjection flag with optional levels:
  1285. // Level 1 = error
  1286. // Level 2 = warning
  1287. // Level 3 = informational
  1288. FLAGNR(Number, TraceProjection , "Trace projection related activities, [Levels 1-3, with 3 corresponding to most detailed]", 3)
  1289. #endif
  1290. FLAGNR(Boolean, TraceAsyncDebugCalls , "Trace calls to async debugging API (default: false)", DEFAULT_CONFIG_TraceAsyncDebugCalls)
  1291. #ifdef TRACK_DISPATCH
  1292. FLAGNR(Boolean, TrackDispatch , "Save stack traces of where JavascriptDispatch/HostVariant are created", false)
  1293. #endif
  1294. FLAGNR(Boolean, Verbose , "Dump details", DEFAULT_CONFIG_Verbose)
  1295. FLAGNR(Boolean, UseFullName , "Enable fully qualified name", DEFAULT_CONFIG_UseFullName)
  1296. FLAGNR(Boolean, UseFunctionIdForTrace , "Use function id instead of function number for trace output", false)
  1297. FLAGNR(Boolean, Utf8 , "Use UTF8 for file output", false)
  1298. FLAGR (Number, Version , "Version in which to run the jscript engine. [one of 1,2,3,4,5,6]. Default is latest for jc/jshost, 1 for IE", 6 )
  1299. #ifdef ENABLE_PROJECTION
  1300. FLAGR (Number, HostType , "Host type in which to run the jscript engine. [one of 1,2]. Default is 1 = Browser.", 1)
  1301. #endif
  1302. FLAGR(Boolean, WERExceptionSupport , "WER feature for extended exception support. Enabled when WinRT is enabled", false)
  1303. #ifdef ENABLE_PROJECTION
  1304. FLAGR (Boolean, WinRTConstructorAllowed, "Whether WinRT constructors is allowed in WebView host type. Constructor is always allowed in other host type ", false)
  1305. #endif
  1306. FLAGNR(Boolean, ExtendedErrorStackForTestHost, "Enable passing extended error stack string to test host.", DEFAULT_CONFIG_ExtendedErrorStackForTestHost)
  1307. FLAGNR(Boolean, errorStackTrace , "error.StackTrace feature. Remove when feature complete", DEFAULT_CONFIG_errorStackTrace)
  1308. FLAGNR(Boolean, DoHeapEnumOnEngineShutdown, "Perform a heap enumeration whenever shut a script engine down", false)
  1309. #ifdef HEAP_ENUMERATION_VALIDATION
  1310. FLAGNR(Boolean, ValidateHeapEnum , "Validate that heap enumeration is reporting all Js::RecyclableObjects in the heap", false)
  1311. #endif
  1312. #if ENABLE_REGEX_CONFIG_OPTIONS
  1313. //
  1314. // Regex flags
  1315. //
  1316. FLAGR (Boolean, RegexTracing , "Trace all Regex invocations to the output.", DEFAULT_CONFIG_RegexTracing)
  1317. FLAGR (Boolean, RegexProfile , "Collect usage statistics on all Regex invocations.", DEFAULT_CONFIG_RegexProfile)
  1318. FLAGR (Boolean, RegexDebug , "Trace compilation of UnifiedRegex expressions.", DEFAULT_CONFIG_RegexDebug)
  1319. FLAGR (Boolean, RegexOptimize , "Optimize regular expressions in the unified Regex system (default: true)", DEFAULT_CONFIG_RegexOptimize)
  1320. FLAGR (Number, DynamicRegexMruListSize, "Size of the MRU list for dynamic regexes", DEFAULT_CONFIG_DynamicRegexMruListSize)
  1321. #endif
  1322. FLAGR (Boolean, OptimizeForManyInstances, "Optimize script engine for many instances (low memory footprint per engine, assume low spare CPU cycles) (default: false)", DEFAULT_CONFIG_OptimizeForManyInstances)
  1323. FLAGNR(Boolean, EnableArrayTypeMutation, "Enable force array type mutation on re-entrant region", DEFAULT_CONFIG_EnableArrayTypeMutation)
  1324. FLAGNR(Number, ArrayMutationTestSeed, "Seed used for the array mutation", 0)
  1325. FLAGNR(Phases, TestTrace , "Test trace for the given phase", )
  1326. FLAGNR(Boolean, EnableEvalMapCleanup, "Enable cleaning up the eval map", true)
  1327. #ifdef PROFILE_MEM
  1328. FLAGNR(Boolean, TraceObjectAllocation, "Enable cleaning up the eval map", false)
  1329. #endif
  1330. #ifdef ENABLE_PROJECTION
  1331. FLAGNR(Boolean, EnableThirdPartyGCPressure, "Enable use of GCPressure attribute value on 3rd party WinRT objects (not in Windows namespace) (default: false)", false)
  1332. FLAGNR(Number, TargetWinRTVersion, "Specifies WinRT version number to target. [one of 0,1,2,3,4]. Default is 1 = NTDDI_WIN8", DEFAULT_CONFIG_TargetWinRTVersion)
  1333. FLAGNR(Boolean, EnableVersioningAllAssemblies, "Enable versioning behavior for all assemblies, regardless of host flag (default: false)", false)
  1334. FLAGR(Boolean, FailFastIfDisconnectedDelegate, "When set fail fast if disconnected delegate is invoked", DEFAULT_CONFIG_FailFastIfDisconnectedDelegate)
  1335. #endif
  1336. FLAGNR(Number, Sse, "Virtually disables SSE-based optimizations above the specified SSE level in the Chakra JIT (does not affect CRT SSE usage)", DEFAULT_CONFIG_Sse)
  1337. FLAGNR(Number, DeletedPropertyReuseThreshold, "Start reusing deleted property indexes after this many properties are deleted. Zero to disable reuse.", DEFAULT_CONFIG_DeletedPropertyReuseThreshold)
  1338. FLAGNR(Boolean, ForceStringKeyedSimpleDictionaryTypeHandler, "Force switch to string keyed version of SimpleDictionaryTypeHandler on first new property added to a SimpleDictionaryTypeHandler", DEFAULT_CONFIG_ForceStringKeyedSimpleDictionaryTypeHandler)
  1339. FLAGNR(Number, BigDictionaryTypeHandlerThreshold, "Min Slot Capacity required to convert DictionaryTypeHandler to BigDictionaryTypeHandler.(Advisable to give more than 15 - to avoid false positive cases)", DEFAULT_CONFIG_BigDictionaryTypeHandlerThreshold)
  1340. FLAGNR(Boolean, TypeSnapshotEnumeration, "Create a true snapshot of the type of an object before enumeration and enumerate only those properties.", DEFAULT_CONFIG_TypeSnapshotEnumeration)
  1341. FLAGR (Boolean, EnumerationCompat, "When set in IE10 mode, restores enumeration behavior to RC behavior", DEFAULT_CONFIG_EnumerationCompat)
  1342. FLAGNR(Boolean, IsolatePrototypes, "Should prototypes get unique types not shared with other objects (default: true)?", DEFAULT_CONFIG_IsolatePrototypes)
  1343. FLAGNR(Boolean, ChangeTypeOnProto, "When becoming a prototype should the object switch to a new type (default: true)?", DEFAULT_CONFIG_ChangeTypeOnProto)
  1344. FLAGNR(Boolean, ShareInlineCaches, "Determines whether inline caches are shared between all loads (or all stores) of the same property ID", DEFAULT_CONFIG_ShareInlineCaches)
  1345. FLAGNR(Boolean, DisableDebugObject, "Disable test only Debug object properties", DEFAULT_CONFIG_DisableDebugObject)
  1346. FLAGNR(Boolean, DumpHeap, "enable Debug.dumpHeap even when DisableDebugObject is set", DEFAULT_CONFIG_DumpHeap)
  1347. FLAGNR(String, autoProxy, "enable creating proxy for each object creation", _u("__msTestHandler"))
  1348. FLAGNR(Number, PerfHintLevel, "Specifies the perf-hint level (1,2) 1 == critical, 2 == only noisy", DEFAULT_CONFIG_PerfHintLevel)
  1349. #ifdef INTERNAL_MEM_PROTECT_HEAP_ALLOC
  1350. FLAGNR(Boolean, MemProtectHeap, "Use the mem protect heap as the default heap", DEFAULT_CONFIG_MemProtectHeap)
  1351. #endif
  1352. #ifdef RECYCLER_STRESS
  1353. FLAGNR(Boolean, MemProtectHeapStress, "Stress the recycler by collect on every allocation call", false)
  1354. #if ENABLE_CONCURRENT_GC
  1355. FLAGNR(Boolean, MemProtectHeapBackgroundStress, "Stress the recycler by collect in the background thread on every allocation call", false)
  1356. FLAGNR(Boolean, MemProtectHeapConcurrentStress, "Stress the concurrent recycler by concurrent collect on every allocation call", false)
  1357. FLAGNR(Boolean, MemProtectHeapConcurrentRepeatStress, "Stress the concurrent recycler by concurrent collect on every allocation call and repeat mark and rescan in the background thread", false)
  1358. #endif
  1359. #if ENABLE_PARTIAL_GC
  1360. FLAGNR(Boolean, MemProtectHeapPartialStress, "Stress the partial recycler by partial collect on every allocation call", false)
  1361. #endif
  1362. #endif
  1363. #ifdef SUPPORT_FIXED_FIELDS_ON_PATH_TYPES
  1364. FLAGNR(Boolean, FixPropsOnPathTypes, "Mark properties as fixed on path types (default: false).", DEFAULT_CONFIG_FixPropsOnPathTypes)
  1365. #endif
  1366. FLAGNR(NumberSet, BailoutTraceFilter, "Filter the bailout trace messages to specific bailout kinds.", )
  1367. FLAGNR(NumberSet, RejitTraceFilter, "Filter the rejit trace messages to specific bailout kinds.", )
  1368. // recycler heuristic flags
  1369. FLAGNR(Number, MaxBackgroundFinishMarkCount, "Maximum number of background finish mark", 1)
  1370. FLAGNR(Number, BackgroundFinishMarkWaitTime, "Millisecond to wait for background finish mark", 15)
  1371. FLAGNR(Number, MinBackgroundRepeatMarkRescanBytes, "Minimum number of bytes rescan to trigger background finish mark", -1)
  1372. #if defined(_M_IX86) || defined(_M_X64)
  1373. FLAGNR(Boolean, ZeroMemoryWithNonTemporalStore, "Zero free memory with non-temporal stores to avoid evicting other content from processor cache", DEFAULT_CONFIG_ZeroMemoryWithNonTemporalStore)
  1374. #endif
  1375. // recycler memory restrict test flags
  1376. FLAGNR(Number, MaxMarkStackPageCount , "Restrict recycler mark stack size (in pages)", -1)
  1377. FLAGNR(Number, MaxTrackedObjectListCount, "Restrict recycler tracked object count during GC", -1)
  1378. // make the recycler page integration path easier to hit
  1379. FLAGNR(Number, NumberAllocPlusSize, "Additional bytes to allocate with JavascriptNumber from number allocator (0~496)", 0)
  1380. #if DBG
  1381. FLAGNR(Boolean, InitializeInterpreterSlotsWithInvalidStackVar, "Enable the initialization of the interpreter local slots with invalid stack vars", false)
  1382. #endif
  1383. #if DBG
  1384. FLAGNR(Number, PRNGSeed0, "Override seed0 for Math.Random()", 0)
  1385. FLAGNR(Number, PRNGSeed1, "Override seed1 for Math.Random()", 0)
  1386. #endif
  1387. FLAGNR(Boolean, ClearInlineCachesOnCollect, "Clear all inline caches on every garbage collection", false)
  1388. FLAGNR(Number, InlineCacheInvalidationListCompactionThreshold, "Compact inline cache invalidation lists if their utilization falls below this threshold", DEFAULT_CONFIG_InlineCacheInvalidationListCompactionThreshold)
  1389. FLAGNR(Number, ConstructorCacheInvalidationThreshold, "Clear uniquePropertyGuard entries from recyclableData if number of invalidations of constructor caches happened are more than the threshold.", DEFAULT_CONFIG_ConstructorCacheInvalidationThreshold)
  1390. #ifdef IR_VIEWER
  1391. FLAGNR(Boolean, IRViewer, "Enable IRViewer functionality (improved UI for various stages of IR generation)", false)
  1392. #endif /* IR_VIEWER */
  1393. FLAGNR(Boolean, InvalidateSolutionContextsForGetStructure, "To reduce memory consumption, in the end of GetStructure call, invalidate script contexts used only for GetStructure -- this would invalidate ones associated with solution files (not top-most references such as helpers.js)", DEFAULT_CONFIG_InvalidateSolutionContextsForGetStructure)
  1394. FLAGNR(Boolean, ES5LangTel, "Print ES5 language telemetry output.", false)
  1395. FLAGNR(Boolean, ES6LangTel, "Print ES6 language telemetry output.", false)
  1396. FLAGNR(Boolean, ESBLangTel, "Print ES built-ins telemetry output.", false)
  1397. FLAGNR(Boolean, DateParseTel, "Print Date.parse telemetry output.", false)
  1398. FLAGNR(Number, GCMemoryThreshold, "Threshold for allocation-based GC initiation (in MB)", 0)
  1399. #ifdef _CONTROL_FLOW_GUARD
  1400. FLAGNR(Boolean, PreReservedHeapAlloc, "Enable Pre-reserved Heap Page Allocator", true)
  1401. FLAGNR(Boolean, CFGInJit, "Enable CFG check in JIT", true)
  1402. FLAGNR(Boolean, CFG, "Force enable CFG on jshost. version in the jshost's manifest file disables CFG", true)
  1403. #endif
  1404. #if DBG
  1405. FLAGNR(Number, SimulatePolyCacheWithOneTypeForInlineCacheIndex, "Use with SimulatePolyCacheWithOneTypeForFunction to simulate creating a polymorphic inline cache containing only one type due to a collision, for testing ObjTypeSpec", -1)
  1406. #endif
  1407. FLAGR(Number, JITServerIdleTimeout, "Idle timeout in milliseconds to do the cleanup in JIT server", 500)
  1408. FLAGR(Number, JITServerMaxInactivePageAllocatorCount, "Max inactive page allocators to keep before schedule a cleanup", 10)
  1409. FLAGNR(Boolean, StrictWriteBarrierCheck, "Check write barrier setting on none write barrier pages", DEFAULT_CONFIG_StrictWriteBarrierCheck)
  1410. FLAGNR(Boolean, WriteBarrierTest, "Always return true while checking barrier to test recycler regardless of annotation", DEFAULT_CONFIG_WriteBarrierTest)
  1411. FLAGNR(Boolean, ForceSoftwareWriteBarrier, "Use to turn off write watch to test software write barrier on windows", DEFAULT_CONFIG_ForceSoftwareWriteBarrier)
  1412. FLAGNR(Boolean, VerifyBarrierBit, "Verify software write barrier bit is set while marking", DEFAULT_CONFIG_VerifyBarrierBit)
  1413. FLAGNR(Boolean, EnableBGFreeZero, "Use to turn off background freeing and zeroing to simulate linux", DEFAULT_CONFIG_EnableBGFreeZero)
  1414. FLAGNR(Boolean, KeepRecyclerTrackData, "Keep recycler track data after sweep until reuse", DEFAULT_CONFIG_KeepRecyclerTrackData)
  1415. #undef FLAG_REGOVR_EXP
  1416. #undef FLAG_REGOVR_ASMJS
  1417. #undef FLAG
  1418. #undef FLAGP
  1419. #undef FLAGRA
  1420. #undef FLAGNR
  1421. #undef FLAGNRA
  1422. #undef FLAGPNR
  1423. #undef FLAGPRA
  1424. #endif