Title: [184683] trunk/Tools
Revision
184683
Author
[email protected]
Date
2015-05-20 18:14:16 -0700 (Wed, 20 May 2015)

Log Message

Add option to run_jsc_stress_tests to disable JIT testing
https://bugs.webkit.org/show_bug.cgi?id=145233

Reviewed by Mark Lam.

Added --no-jit option.

* Scripts/run-jsc-stress-tests:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (184682 => 184683)


--- trunk/Tools/ChangeLog	2015-05-21 00:58:25 UTC (rev 184682)
+++ trunk/Tools/ChangeLog	2015-05-21 01:14:16 UTC (rev 184683)
@@ -1,3 +1,14 @@
+2015-05-20  Michael Saboff  <[email protected]>
+
+        Add option to run_jsc_stress_tests to disable JIT testing
+        https://bugs.webkit.org/show_bug.cgi?id=145233
+
+        Reviewed by Mark Lam.
+
+        Added --no-jit option.
+
+        * Scripts/run-jsc-stress-tests:
+
 2015-05-20  Alex Christensen  <[email protected]>
 
         Use correct String for StringView in WTF API tests

Modified: trunk/Tools/Scripts/run-jsc-stress-tests (184682 => 184683)


--- trunk/Tools/Scripts/run-jsc-stress-tests	2015-05-21 00:58:25 UTC (rev 184682)
+++ trunk/Tools/Scripts/run-jsc-stress-tests	2015-05-21 01:14:16 UTC (rev 184683)
@@ -91,6 +91,7 @@
 $jscPath = nil
 $doNotMessWithVMPath = false
 $enableFTL = false
+$jitTests = true
 $memoryLimited = false
 $outputDir = Pathname.new("results")
 $verbosity = 0
@@ -117,6 +118,7 @@
     puts "--ftl-jit                   Indicate that we have the FTL JIT."
     puts "--memory-limited            Indicate that we are targeting the test for a memory limited device."
     puts "                            Skip tests tagged with //@large-heap"
+    puts "--no-jit                    Do not run JIT specific tests."
     puts "--output-dir         (-o)   Path where to put results. Default is #{$outputDir}."
     puts "--verbose            (-v)   Print more things while running."
     puts "--run-bundle                Runs a bundle previously created by run-jsc-stress-tests."
@@ -143,6 +145,7 @@
                ['--no-copy', GetoptLong::NO_ARGUMENT],
                ['--ftl-jit', GetoptLong::NO_ARGUMENT],
                ['--memory-limited', GetoptLong::NO_ARGUMENT],
+               ['--no-jit', GetoptLong::NO_ARGUMENT],
                ['--output-dir', '-o', GetoptLong::REQUIRED_ARGUMENT],
                ['--run-bundle', GetoptLong::REQUIRED_ARGUMENT],
                ['--tarball', GetoptLong::OPTIONAL_ARGUMENT],
@@ -170,6 +173,8 @@
         $enableFTL = true
     when '--memory-limited'
         $memoryLimited = true
+    when '--no-jit'
+        $jitTests = false
     when '--verbose'
         $verbosity += 1
     when '--run-bundle'
@@ -225,6 +230,11 @@
     exit 1
 end
 
+if $enableFTL and !$jitTests
+    $stderr.puts "Error: can only specify one of --no-jit and --ftl-jit"
+    exit 1
+end
+
 if $doNotMessWithVMPath
     $jscPath = Pathname.new(jscArg)
 else
@@ -658,7 +668,9 @@
 end
 
 def runNoLLInt
-    run("no-llint", "--useLLInt=false")
+    if $jitTests
+        run("no-llint", "--useLLInt=false")
+    end
 end
 
 def runNoCJITValidate
@@ -731,16 +743,18 @@
 
 def defaultRun
     runDefault
-    runNoLLInt
     runAlwaysTriggerCopyPhase
-    runNoCJITValidatePhases
-    runDFGEager
-    runDFGEagerNoCJITValidate
-    runDefaultFTL
-    runFTLNoCJITValidate
-    runFTLNoCJITNoInlineValidate
-    runFTLEager
-    runFTLEagerNoCJITValidate
+    if $jitTests
+        runNoLLInt
+        runNoCJITValidatePhases
+        runDFGEager
+        runDFGEagerNoCJITValidate
+        runDefaultFTL
+        runFTLNoCJITValidate
+        runFTLNoCJITNoInlineValidate
+        runFTLEager
+        runFTLEagerNoCJITValidate
+    end
 end
 
 def defaultQuickRun
@@ -749,7 +763,9 @@
         runFTLNoCJITValidate
     else
         runDefault
-        runNoCJITValidate
+        if $jitTests
+            runNoCJITValidate
+        end
     end
 end
 
@@ -766,12 +782,14 @@
 # by counting recompilations.
 def defaultNoEagerRun
     runDefault
-    runNoLLInt
     runAlwaysTriggerCopyPhase
-    runNoCJITValidatePhases
-    runDefaultFTL
-    runFTLNoCJITValidate
-    runFTLNoCJITNoInlineValidate
+    if $jitTests
+        runNoLLInt
+        runNoCJITValidatePhases
+        runDefaultFTL
+        runFTLNoCJITValidate
+        runFTLNoCJITNoInlineValidate
+    end
 end
 
 def runProfiler
@@ -800,6 +818,10 @@
 end
 
 def runTypeProfiler
+    if !$jitTests
+        return
+    end
+
     if $enableFTL
         run("ftl-no-cjit-type-profiler", "--enableTypeProfiler=true", *(FTL_OPTIONS + NO_CJIT_OPTIONS))
     else
@@ -808,6 +830,10 @@
 end
 
 def runControlFlowProfiler
+    if !$jitTests
+        return
+    end
+
     if $enableFTL
         run("ftl-no-cjit-type-profiler", "--enableControlFlowProfiler=true", *(FTL_OPTIONS + NO_CJIT_OPTIONS))
     else
@@ -863,17 +889,23 @@
 end
 
 def noFTLRunLayoutTest
-    runLayoutTestDefault
+    if !$jitTests
+        return
+    end
+
     runLayoutTestNoLLInt
     runLayoutTestNoCJIT
     runLayoutTestDFGEagerNoCJIT
 end
 
 def defaultRunLayoutTest
-    noFTLRunLayoutTest
-    runLayoutTestDefaultFTL
-    runLayoutTestFTLNoCJIT
-    runLayoutTestFTLEagerNoCJIT
+    runLayoutTestDefault
+    if $jitTests
+        noFTLRunLayoutTest
+        runLayoutTestDefaultFTL
+        runLayoutTestFTLNoCJIT
+        runLayoutTestFTLEagerNoCJIT
+    end
 end
 
 def prepareExtraRelativeFiles(extraFiles, destination)
@@ -951,11 +983,13 @@
 
 def defaultRunMozillaTest(mode, *extraFiles)
     runMozillaTestDefault(mode, *extraFiles)
-    runMozillaTestLLInt(mode, *extraFiles)
-    runMozillaTestBaselineJIT(mode, *extraFiles)
-    runMozillaTestDFGEagerNoCJITValidatePhases(mode, *extraFiles)
-    runMozillaTestDefaultFTL(mode, *extraFiles)
-    runMozillaTestFTLEagerNoCJITValidatePhases(mode, *extraFiles)
+    if $jitTests
+        runMozillaTestLLInt(mode, *extraFiles)
+        runMozillaTestBaselineJIT(mode, *extraFiles)
+        runMozillaTestDFGEagerNoCJITValidatePhases(mode, *extraFiles)
+        runMozillaTestDefaultFTL(mode, *extraFiles)
+        runMozillaTestFTLEagerNoCJITValidatePhases(mode, *extraFiles)
+    end
 end
 
 def skip
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to