| 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 var Debug = debug.Debug; | 6 var Debug = debug.Debug; |
| 8 | 7 |
| 9 var changed = false; | 8 var changed = false; |
| 10 | 9 |
| 11 function listenerSetJToResult( | 10 function listenerSetJToResult( |
| 12 event, exec_state, event_data, data) { | 11 event, exec_state, event_data, data) { |
| 13 | 12 |
| 14 if (event == Debug.DebugEvent.Break) { | 13 if (event == Debug.DebugEvent.Break) { |
| 15 var scope = exec_state.frame(1).scope(0); | 14 var scope = exec_state.frame(1).scope(0); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return j; | 109 return j; |
| 111 } | 110 } |
| 112 | 111 |
| 113 var r4 = ChangeIntVarAndOsr(); | 112 var r4 = ChangeIntVarAndOsr(); |
| 114 if (changed) { | 113 if (changed) { |
| 115 assertEquals(101, r4); | 114 assertEquals(101, r4); |
| 116 assertEquals(1, counter); | 115 assertEquals(1, counter); |
| 117 } else { | 116 } else { |
| 118 assertEquals(5, r4); | 117 assertEquals(5, r4); |
| 119 } | 118 } |
| OLD | NEW |