| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Flags: --allow-natives-syntax --expose-debug-as debug | |
| 6 | 5 |
| 7 // Test that PC in optimized frame would correctly translate into | 6 // Test that PC in optimized frame would correctly translate into |
| 8 // unoptimized frame when retrieving frame information in the debugger. | 7 // unoptimized frame when retrieving frame information in the debugger. |
| 9 | 8 |
| 10 function f() { | 9 function f() { |
| 11 debugger; | 10 debugger; |
| 12 } | 11 } |
| 13 | 12 |
| 14 function g(x) { | 13 function g(x) { |
| 15 return f(); | 14 return f(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 29 %OptimizeFunctionOnNextCall(g); | 28 %OptimizeFunctionOnNextCall(g); |
| 30 | 29 |
| 31 var Debug = debug.Debug; | 30 var Debug = debug.Debug; |
| 32 Debug.setListener(listener); | 31 Debug.setListener(listener); |
| 33 | 32 |
| 34 g(); | 33 g(); |
| 35 | 34 |
| 36 Debug.setListener(null); | 35 Debug.setListener(null); |
| 37 | 36 |
| 38 assertEquals(1, break_count); | 37 assertEquals(1, break_count); |
| OLD | NEW |