ConfigFlagsList.h 95 KB

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