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