Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: test/mjsunit/debug-stepin-accessor-ic.js

Issue 1525173003: [debugger] remove step count parameter from prepare step. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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: --expose-debug-as debug 5 // Flags: --expose-debug-as debug
6 6
7 function get() { 7 function get() {
8 return 3; // Break 8 return 3; // Break
9 } // Break 9 } // Break
10 10
(...skipping 13 matching lines...) Expand all
24 } // Break 24 } // Break
25 25
26 var break_count = 0; 26 var break_count = 0;
27 var exception = null; 27 var exception = null;
28 28
29 function listener(event, exec_state, event_data, data) { 29 function listener(event, exec_state, event_data, data) {
30 if (event != Debug.DebugEvent.Break) return; 30 if (event != Debug.DebugEvent.Break) return;
31 try { 31 try {
32 var source_line = exec_state.frame(0).sourceLineText(); 32 var source_line = exec_state.frame(0).sourceLineText();
33 assertTrue(source_line.indexOf("// Break") > 0); 33 assertTrue(source_line.indexOf("// Break") > 0);
34 exec_state.prepareStep(Debug.StepAction.StepIn, 1); 34 exec_state.prepareStep(Debug.StepAction.StepIn);
35 break_count++; 35 break_count++;
36 } catch (e) { 36 } catch (e) {
37 exception = e; 37 exception = e;
38 } 38 }
39 } 39 }
40 40
41 var Debug = debug.Debug; 41 var Debug = debug.Debug;
42 Debug.setListener(listener); 42 Debug.setListener(listener);
43 43
44 debugger; // Break 44 debugger; // Break
45 f(); // Break 45 f(); // Break
46 46
47 Debug.setListener(null); // Break 47 Debug.setListener(null); // Break
48 assertEquals(86, break_count); 48 assertEquals(86, break_count);
49 assertNull(exception); 49 assertNull(exception);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698