| Index: test/mjsunit/manual-parallel-recompile.js
|
| diff --git a/test/mjsunit/manual-parallel-recompile.js b/test/mjsunit/manual-parallel-recompile.js
|
| index b502fb19ade7fb216e132dec6ed7ad112de4a059..84bfff1a5735c7162b326a190227e24d8186ef06 100644
|
| --- a/test/mjsunit/manual-parallel-recompile.js
|
| +++ b/test/mjsunit/manual-parallel-recompile.js
|
| @@ -33,14 +33,6 @@ if (!%IsParallelRecompilationSupported()) {
|
| quit();
|
| }
|
|
|
| -function assertUnoptimized(fun) {
|
| - assertTrue(%GetOptimizationStatus(fun) != 1);
|
| -}
|
| -
|
| -function assertOptimized(fun) {
|
| - assertTrue(%GetOptimizationStatus(fun) != 2);
|
| -}
|
| -
|
| function f(x) {
|
| var xx = x * x;
|
| var xxstr = xx.toString();
|
| @@ -65,11 +57,8 @@ assertUnoptimized(g);
|
| %OptimizeFunctionOnNextCall(g, "parallel");
|
| f(g(2)); // Trigger optimization.
|
|
|
| -assertUnoptimized(f); // Not yet optimized.
|
| -assertUnoptimized(g);
|
| -
|
| -%CompleteOptimization(f); // Wait till optimized code is installed.
|
| -%CompleteOptimization(g);
|
| +assertUnoptimized(f, "no sync"); // Not yet optimized while parallel thread
|
| +assertUnoptimized(g, "no sync"); // is running.
|
|
|
| -assertOptimized(f); // Optimized now.
|
| -assertOptimized(g);
|
| +assertOptimized(f, "sync"); // Optimized once we sync with the parallel thread.
|
| +assertOptimized(g, "sync");
|
|
|