Index: test/mjsunit/manual-parallel-recompile.js |
diff --git a/test/mjsunit/manual-parallel-recompile.js b/test/mjsunit/manual-parallel-recompile.js |
index 5253487f4bb8bb9623dd0af9888b23d4afe01ef3..3279f62711816ebdf4132c2f5d43c2550688cb27 100644 |
--- a/test/mjsunit/manual-parallel-recompile.js |
+++ b/test/mjsunit/manual-parallel-recompile.js |
@@ -28,6 +28,12 @@ |
// Flags: --allow-natives-syntax --expose-gc |
// Flags: --parallel-recompilation --parallel-recompilation-delay=50 |
+if (!%IsParallelRecompilationSupported()) { |
+ print("Parallel recompilation is disabled. Skipping this test."); |
+ quit(); |
+} |
+ |
+ |
function assertUnoptimized(fun) { |
assertTrue(%GetOptimizationStatus(fun) != 1); |
} |
@@ -60,10 +66,8 @@ assertUnoptimized(g); |
%OptimizeFunctionOnNextCall(g, "parallel"); |
f(g(2)); // Trigger optimization. |
-if (%IsParallelRecompilationSupported()) { |
- assertUnoptimized(f); // Not yet optimized. |
- assertUnoptimized(g); |
-} |
+assertUnoptimized(f); // Not yet optimized. |
+assertUnoptimized(g); |
%CompleteOptimization(f); // Wait till optimized code is installed. |
%CompleteOptimization(g); |