Extend TF test coverage to supported targets.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 Aug 2014 10:47:01 +0000 (10:47 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 Aug 2014 10:47:01 +0000 (10:47 +0000)
R=danno@google.com, titzer@chromium.org
TEST=all

Review URL: https://codereview.chromium.org/432313002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22787 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/compiler.cc
src/compiler/pipeline.cc
tools/run-tests.py

index 962e7923e688b7fc4744358a1883c90bd3999a40..6d22db2dfba8cd00ab71999ae773dcd834799ffe 100644 (file)
@@ -413,10 +413,14 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() {
       info()->function()->dont_optimize_reason() != kTryCatchStatement &&
       info()->function()->dont_optimize_reason() != kTryFinallyStatement &&
       // TODO(turbofan): Make OSR work and remove this bailout.
-      !info()->is_osr()) {
+      !info()->is_osr() &&
+      // TODO(mstarzinger): Extend test coverage to unsupported targets.
+      compiler::Pipeline::SupportedTarget()) {
     compiler::Pipeline pipeline(info());
     pipeline.GenerateCode();
-    return SetLastStatus(SUCCEEDED);
+    if (!info()->code().is_null()) {
+      return SetLastStatus(SUCCEEDED);
+    }
   }
 
   if (FLAG_trace_hydrogen) {
index ef071bba8452a1aa354a0530437f238957624194..7a0460807d3274b970596d7d23a12de9104e60f6 100644 (file)
@@ -170,7 +170,7 @@ Handle<Code> Pipeline::GenerateCode() {
     }
   }
 
-  {
+  if (SupportedTarget()) {
     // Lower any remaining generic JSOperators.
     PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH,
                               "generic lowering");
index cbc6116f892035f6c8392444618154df25350081..5484b3f0472f51976c403852b8fa55b0b4f5bba7 100755 (executable)
@@ -62,7 +62,7 @@ VARIANT_FLAGS = {
     "turbofan": ["--turbo-filter=*", "--always-opt"],
     "nocrankshaft": ["--nocrankshaft"]}
 
-VARIANTS = ["default", "stress", "nocrankshaft"]
+VARIANTS = ["default", "stress", "turbofan", "nocrankshaft"]
 
 MODE_FLAGS = {
     "debug"   : ["--nohard-abort", "--nodead-code-elimination",