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

Side by Side Diff: test/mjsunit/debug-stepframe.js

Issue 1218493005: Debugger: use debug break slots instead of ICs (except for calls). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comments Created 5 years, 5 months 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
« no previous file with comments | « test/mjsunit/debug-breakpoints.js ('k') | test/mjsunit/es6/debug-step-into-constructor.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f0() { 7 function f0() {
8 var v00 = 0; // Break 1 8 var v00 = 0; // Break 1
9 var v01 = 1; 9 var v01 = 1;
10 // Normal function call in a catch scope. 10 // Normal function call in a catch scope.
11 try { 11 try {
12 throw 1; 12 throw 1;
13 } catch (e) { 13 } catch (e) {
14 try{ 14 try {
15 f1(); 15 f1();
16 } catch (e) { 16 } catch (e) {
17 var v02 = 2; // Break 13 17 var v02 = 2; // Break 13
18 } 18 }
19 } 19 }
20 var v03 = 3; 20 var v03 = 3;
21 var v04 = 4; 21 var v04 = 4;
22 eval('var v05 = 5; // Break 14');
23 var v06 = 6; // Break 15
22 } 24 }
23 25
24 function f1() { 26 function f1() {
25 var v10 = 0; // Break 2 27 var v10 = 0; // Break 2
26 var v11 = 1; 28 var v11 = 1;
27 // Getter call. 29 // Getter call.
28 var v12 = o.get; 30 var v12 = o.get;
29 var v13 = 3 // Break 4 31 var v13 = 3 // Break 4
30 // Setter call. 32 // Setter call.
31 o.set = 2; 33 o.set = 2;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 exception = e; 99 exception = e;
98 } 100 }
99 } 101 }
100 102
101 for (step_size = 1; step_size < 6; step_size++) { 103 for (step_size = 1; step_size < 6; step_size++) {
102 print("step size = " + step_size); 104 print("step size = " + step_size);
103 break_count = 0; 105 break_count = 0;
104 Debug.setListener(listener); 106 Debug.setListener(listener);
105 debugger; // Break 0 107 debugger; // Break 0
106 f0(); 108 f0();
107 Debug.setListener(null); // Break 14 109 Debug.setListener(null); // Break 16
108 assertTrue(break_count > 14); 110 assertTrue(break_count > 14);
109 } 111 }
110 112
111 assertNull(exception); 113 assertNull(exception);
OLDNEW
« no previous file with comments | « test/mjsunit/debug-breakpoints.js ('k') | test/mjsunit/es6/debug-step-into-constructor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698