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

Side by Side Diff: tests/standalone/debugger/break_at_equals_test.dart

Issue 1237203002: Insert debug step check at the beginning of a function. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "debug_lib.dart"; 5 import "debug_lib.dart";
6 6
7 class MyClass { 7 class MyClass {
8 operator ==(other) { 8 operator ==(other) {
9 print(other); 9 print(other);
10 return true; // Breakpoint #3. 10 return true; // Breakpoint #3.
(...skipping 15 matching lines...) Expand all
26 throw "unreachable"; 26 throw "unreachable";
27 } 27 }
28 print("ok"); 28 print("ok");
29 } 29 }
30 30
31 // Checks that debugger can stop at calls to == even if one 31 // Checks that debugger can stop at calls to == even if one
32 // of the operands is null. 32 // of the operands is null.
33 33
34 var testScript = [ 34 var testScript = [
35 MatchFrames(["main"]), 35 MatchFrames(["main"]),
36 MatchLine(15), 36 MatchLine(14),
37 SetBreakpoint(18), 37 SetBreakpoint(18),
38 SetBreakpoint(21), 38 SetBreakpoint(21),
39 SetBreakpoint(10), 39 SetBreakpoint(10),
40 SetBreakpoint(23), 40 SetBreakpoint(23),
41 Resume(), 41 Resume(),
42 MatchFrames(["main"]), 42 MatchFrames(["main"]),
43 MatchLine(18), // At breakpoint #1. 43 MatchLine(18), // At breakpoint #1.
44 Resume(), 44 Resume(),
45 MatchLine(21), // At breakpoint #2; didn't hit breakpoint in MyClass.==. 45 MatchLine(21), // At breakpoint #2; didn't hit breakpoint in MyClass.==.
46 Resume(), 46 Resume(),
47 MatchFrames(["MyClass.==", "main"]), 47 MatchFrames(["MyClass.==", "main"]),
48 MatchLine(10), // At breakpoint #3 in MyClass.==. 48 MatchLine(10), // At breakpoint #3 in MyClass.==.
49 Resume(), 49 Resume(),
50 MatchLine(23), // At breakpoint #4. 50 MatchLine(23), // At breakpoint #4.
51 Resume() 51 Resume()
52 ]; 52 ];
OLDNEW
« runtime/vm/flow_graph_builder.cc ('K') | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698