Revision f230a1cf deps/v8/test/mjsunit/regress/regress-opt-after-debug-deopt.js

View differences:

deps/v8/test/mjsunit/regress/regress-opt-after-debug-deopt.js
26 26
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27

  
28 28
// Flags: --expose-debug-as debug --allow-natives-syntax
29
// Flags: --concurrent-recompilation --concurrent-recompilation-delay=100
29
// Flags: --concurrent-recompilation --block-concurrent-recompilation
30 30

  
31 31
if (!%IsConcurrentRecompilationSupported()) {
32 32
  print("Concurrent recompilation is disabled. Skipping this test.");
......
60 60
%OptimizeFunctionOnNextCall(f, "concurrent");  // Mark with builtin.
61 61
f();                           // Kick off concurrent recompilation.
62 62

  
63
// After compile graph has been created...
63 64
Debug.setListener(listener);   // Activate debugger.
64 65
Debug.setBreakPoint(f, 2, 0);  // Force deopt.
66

  
67
// At this point, concurrent recompilation is still being blocked.
68
assertUnoptimized(f, "no sync");
69
// Let concurrent recompilation proceed.
70
%UnblockConcurrentRecompilation();
65 71
// Sync with optimization thread.  But no optimized code is installed.
66 72
assertUnoptimized(f, "sync");
67 73

  

Also available in: Unified diff