Title: [288276] trunk/Tools
Revision
288276
Author
[email protected]
Date
2022-01-20 02:00:49 -0800 (Thu, 20 Jan 2022)

Log Message

[JSC] Further unification in run-jsc-stress-tests
https://bugs.webkit.org/show_bug.cgi?id=234343

Reviewed by Jonathan Bedard.

Extend defaultRunCfg to be able to omit a subset of the test
modes and change defaultNoNoLLIntRun, defaultNoEagerRun and
defaultNoSamplingProfilerRun to call into it.

When defaultNoNoLLIntRun was added in https://commits.webkit.org/176404@main,
it was a verbatim copy of defaultRun, except for the NoLLInt test
modes. It hasn't diverged further, so after this patch, the set of
tests executed remains the same.

When defaultNoEagerRun was added in https://commits.webkit.org/150033@main,
it was intended to be the same as defaultRun, minus the eager modes. It
hasn't been kept in sync, so this change results in few more testing modes for
the tests explicitly using defaultNoEagerRun.

defaultNoSamplingProfilerRun was ignoring quick mode and was dropping
runFTLNoCJITValidate when added in https://commits.webkit.org/171769@main.
This patch enables more test modes for the handful of tests that use
defaultNoSamplingProfilerRun.

* Scripts/run-jsc-stress-tests:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (288275 => 288276)


--- trunk/Tools/ChangeLog	2022-01-20 08:36:27 UTC (rev 288275)
+++ trunk/Tools/ChangeLog	2022-01-20 10:00:49 UTC (rev 288276)
@@ -1,3 +1,31 @@
+2022-01-20  Angelos Oikonomopoulos  <[email protected]>
+
+        [JSC] Further unification in run-jsc-stress-tests
+        https://bugs.webkit.org/show_bug.cgi?id=234343
+
+        Reviewed by Jonathan Bedard.
+
+        Extend defaultRunCfg to be able to omit a subset of the test
+        modes and change defaultNoNoLLIntRun, defaultNoEagerRun and
+        defaultNoSamplingProfilerRun to call into it.
+
+        When defaultNoNoLLIntRun was added in https://commits.webkit.org/176404@main,
+        it was a verbatim copy of defaultRun, except for the NoLLInt test
+        modes. It hasn't diverged further, so after this patch, the set of
+        tests executed remains the same.
+
+        When defaultNoEagerRun was added in https://commits.webkit.org/150033@main,
+        it was intended to be the same as defaultRun, minus the eager modes. It
+        hasn't been kept in sync, so this change results in few more testing modes for
+        the tests explicitly using defaultNoEagerRun.
+
+        defaultNoSamplingProfilerRun was ignoring quick mode and was dropping
+        runFTLNoCJITValidate when added in https://commits.webkit.org/171769@main.
+        This patch enables more test modes for the handful of tests that use
+        defaultNoSamplingProfilerRun.
+
+        * Scripts/run-jsc-stress-tests:
+
 2022-01-19  Jonathan Bedard  <[email protected]>
 
         [git-webkit] pull-request command should print the pr url

Modified: trunk/Tools/Scripts/run-jsc-stress-tests (288275 => 288276)


--- trunk/Tools/Scripts/run-jsc-stress-tests	2022-01-20 08:36:27 UTC (rev 288275)
+++ trunk/Tools/Scripts/run-jsc-stress-tests	2022-01-20 10:00:49 UTC (rev 288276)
@@ -1460,86 +1460,67 @@
 }
 
 # Default set of tests to run; propagates the cfg to every callee.
-def defaultRunCfg(cfg)
+def defaultRunCfg(cfg, subsetOptions, *optionalTestSpecificOptions)
     cfg.freeze
-    if $mode == "quick"
-        defaultQuickRunCfg(cfg)
+    if not subsetOptions.has_key?(:ignoreQuickMode) and $mode == "quick"
+        defaultQuickRunCfg(cfg, *optionalTestSpecificOptions)
     else
-        runDefaultCfg(cfg)
-        runBytecodeCacheCfg(cfg)
-        runMiniModeCfg(cfg)
+        runDefaultCfg(cfg, *optionalTestSpecificOptions)
+        runBytecodeCacheCfg(cfg, *optionalTestSpecificOptions)
+        runMiniModeCfg(cfg, *optionalTestSpecificOptions)
         if $jitTests
-            runNoLLIntCfg(cfg)
-            runNoCJITValidatePhasesCfg(cfg)
-            runNoCJITCollectContinuouslyCfg(cfg) if shouldCollectContinuously?
-            runDFGEagerCfg(cfg)
-            if $mode != "basic"
-                runDFGEagerNoCJITValidateCfg(cfg)
-                runEagerJettisonNoCJITCfg(cfg)
+            if not subsetOptions.has_key?(:skipNoLLInt)
+                runNoLLIntCfg(cfg, *optionalTestSpecificOptions)
             end
+            runNoCJITValidatePhasesCfg(cfg, *optionalTestSpecificOptions)
+            runNoCJITCollectContinuouslyCfg(cfg, *optionalTestSpecificOptions) if shouldCollectContinuously?
+            if not subsetOptions.has_key?(:skipEager)
+                runDFGEagerCfg(cfg)
+                if $mode != "basic"
+                    runDFGEagerNoCJITValidateCfg(cfg, *optionalTestSpecificOptions)
+                    runEagerJettisonNoCJITCfg(cfg, *optionalTestSpecificOptions)
+                end
+            end
 
             return if !$isFTLPlatform
 
-            runNoFTLCfg(cfg)
-            runFTLEagerCfg(cfg)
-            runFTLEagerNoCJITValidateCfg(cfg) if $buildType == "release"
-            runFTLNoCJITSmallPoolCfg(cfg)
+            runNoFTLCfg(cfg, *optionalTestSpecificOptions)
+            if not subsetOptions.has_key?(:skipEager)
+                runFTLEagerCfg(cfg, *optionalTestSpecificOptions)
+                runFTLEagerNoCJITValidateCfg(cfg, *optionalTestSpecificOptions) if $buildType == "release"
+            end
+            runFTLNoCJITSmallPoolCfg(cfg, *optionalTestSpecificOptions)
 
             return if $mode == "basic"
 
-            runFTLNoCJITValidateCfg(cfg)
-            runFTLNoCJITB3O0Cfg(cfg)
-            runFTLNoCJITNoPutStackValidateCfg(cfg)
-            runFTLNoCJITNoInlineValidateCfg(cfg)
-            runFTLEagerNoCJITB3O1Cfg(cfg)
+            runFTLNoCJITValidateCfg(cfg, *optionalTestSpecificOptions)
+            runFTLNoCJITB3O0Cfg(cfg, *optionalTestSpecificOptions)
+            runFTLNoCJITNoPutStackValidateCfg(cfg, *optionalTestSpecificOptions)
+            runFTLNoCJITNoInlineValidateCfg(cfg, *optionalTestSpecificOptions)
+            if not subsetOptions.has_key?(:skipEager)
+                runFTLEagerNoCJITB3O1Cfg(cfg, *optionalTestSpecificOptions)
+            end
         end
     end
 end
 
 def defaultRun
-    defaultRunCfg({})
+    defaultRunCfg({}, {})
 end
 
 def defaultNoNoLLIntRun
-    if $mode == "quick"
-        defaultQuickRun
-    else
-        runDefault
-        if $jitTests
-            runNoCJITValidatePhases
-            runNoCJITCollectContinuously if shouldCollectContinuously?
-            runDFGEager
-            if $mode != "basic"
-                runDFGEagerNoCJITValidate
-                runEagerJettisonNoCJIT
-            end
-
-            return if !$isFTLPlatform
-
-            runNoFTL
-            runFTLNoCJITValidate
-            runFTLNoCJITSmallPool
-
-            return if $mode == "basic"
-
-            runFTLNoCJITB3O0
-            runFTLNoCJITNoPutStackValidate
-            runFTLNoCJITNoInlineValidate
-            runFTLEager
-            runFTLEagerNoCJITValidate if $buildType == "release"
-        end
-    end
+    defaultRunCfg({}, {:skipNoLLInt => true})
 end
 
-def defaultQuickRunCfg(cfg)
-    runDefaultCfg(cfg)
+def defaultQuickRunCfg(cfg, *optionalTestSpecificOptions)
+    runDefaultCfg(cfg, *optionalTestSpecificOptions)
     if $jitTests
-        runNoCJITValidateCfg(cfg)
+        runNoCJITValidateCfg(cfg, *optionalTestSpecificOptions)
 
         return if !$isFTLPlatform
 
-        runNoFTLCfg(cfg)
-        runFTLNoCJITValidateCfg(cfg)
+        runNoFTLCfg(cfg, *optionalTestSpecificOptions)
+        runFTLNoCJITValidateCfg(cfg, *optionalTestSpecificOptions)
     end
 end
 
@@ -1567,43 +1548,11 @@
 # for reasons that don't arise in the real world. It's used for tests that assert convergence
 # by counting recompilations.
 def defaultNoEagerRun(*optionalTestSpecificOptions)
-    runDefault(*optionalTestSpecificOptions)
-    if $jitTests
-        runNoLLInt(*optionalTestSpecificOptions)
-        runNoCJITValidatePhases(*optionalTestSpecificOptions)
-        runNoCJITCollectContinuously(*optionalTestSpecificOptions) if shouldCollectContinuously?
-
-        return if !$isFTLPlatform
-
-        runNoFTL(*optionalTestSpecificOptions)
-        runFTLNoCJITValidate(*optionalTestSpecificOptions)
-
-        return if $mode == "basic"
-
-        runFTLNoCJITNoInlineValidate(*optionalTestSpecificOptions)
-        runFTLNoCJITB3O0(*optionalTestSpecificOptions)
-    end
+    defaultRunCfg({}, { :skipEager => true }, *optionalTestSpecificOptions)
 end
 
 def defaultNoSamplingProfilerRun
-    runDefault
-    if $jitTests
-        runNoLLInt
-        runNoCJITValidatePhases
-        runNoCJITCollectContinuously if shouldCollectContinuously?
-        runDFGEager
-        runDFGEagerNoCJITValidate
-        runEagerJettisonNoCJIT
-
-        return if !$isFTLPlatform
-
-        runNoFTL
-        runFTLNoCJITNoPutStackValidate
-        runFTLNoCJITNoInlineValidate
-        runFTLEager
-        runFTLEagerNoCJITValidate if $buildType == "release"
-        runFTLNoCJITSmallPool
-    end
+    defaultRunCfg({}, { :ignoreQuickMode => true })
 end
 
 def runProfiler
@@ -2209,7 +2158,7 @@
         :outputHandler => noisyOutputHandler,
         :errorHandler => noisyErrorHandler,
     }
-    defaultRunCfg(cfg)
+    defaultRunCfg(cfg, {})
 end
 
 def skip
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to